Create tests intended to fail compilation with the compile_fail attribute on documentation tests. Docs: https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#attributes http://geeklaunch.io/ Follow GeekLaunch on Twitter:...
active · last success 2026-06-18 23:29
Create tests intended to fail compilation with the compile_fail attribute on documentation tests. Docs: https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#attributes http://geeklaunch.io/ Follow GeekLaunch on Twitter:...
Easily specify a uniform dependency version for all crates in a workspace with the [workspace.dependencies] table in Cargo.toml. Docs: https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table http://geeklaunch.io/ Follow GeekLaunch on Twitter:...
Insert the README into a crate’s documentation by putting #![doc = include_str!("../README.md")] in lib.rs. This can help avoid duplicating information between the README and the documentation, and will also test README examples as doctests. Docs:...
If you have a reference to some data and you want to pass it to a function that takes a slice, you can use std::array::from_ref to cheaply create a slice without copying. Docs: https://doc.rust-lang.org/std/array/fn.from_ref.html http://geeklaunch.io/ Follow GeekLaunch on...
How much power can you derive from a good type system? Let's use Rust to illustrate a concept I never once heard in college, but has been invaluable to me throughout my software development career: "Make invalid states unrepresentable." You may have seen this statement on...
i hyperoptimize python with java like a gigachad Sauces: @ThePrimeagen @letsgetrusty @swanandx @Virbox @arikdotzip @conf42 @swlkr_ @richardbray @thestemgamer3346 ARE YOU NOT ENTERTAINED http://geeklaunch.net/ Follow GeekLaunch on Twitter: https://twitter.com/Geek_Launch Not a...
Former President of the United States of America, Donald J. Trump, has officially released a collection of NFT collectibles called "Trump Digital Trading Cards." How good is the smart contract behind the project? Smart contract code on Polygon:...
What does the never type mean in Rust? What does the exclamation point type mean in Rust? What is the return type of the panic macro in Rust? #rust #rustlang #programming #typetheory #computerscience #softwareengineering #development Bottom Type:...
The keywords memory, storage, calldata are a big pain point for new Solidity developers, but they don't have to be! We explore storage locations in-depth in the Ethereum ecosystem, as well as compare to NEAR Protocol. Read the accompanying blog post:...
There's more than one issue with the newly minted Miss Universe NFT project. We'll check out an issue with the dapp and the metadata/smart contract. I did make sure I contacted their support about this issue before even recording this video, but I never got a response. Note...
Generating random numbers in a decentralized context (like a blockchain network) is no easy task. We discuss verifiable random functions, decentralized random number generation protocols, and more. Contracts: Lottery:...
I had the great pleasure of speaking with Oliver Schantin, co-founder and CEO of basenode.io: a crypto accounting and invoicing software solution. We talk about crypto startups, coding, business practices, and more! Check out Basenode: https://basenode.io/ Find Oliver on...
Ben Shapiro's video: https://www.youtube.com/watch?v=2pR2gfogsk4 Forbes article: https://www.forbes.com/sites/baldwin/2021/05/27/what-hedges-your-bonds-best-gold-or-bitcoin/ http://geeklaunch.net/ Follow GeekLaunch on Twitter: https://twitter.com/Geek_Launch Not a geek? Start today!
Apple app store cuts transaction commission to 15% for small businesses (less than $1M/year): https://thenextweb.com/plugged/2020/11/18/apple-cuts-its-app-store-commission-from-30-to-15-if-your-apps-earn-less-than-1m/...
HTTPS-only: too little, too late? How do you approach a programming problem when you don't even know where to start? Also, what's the deal with YouTube's latest TOS update? Jacob and Troy discuss. Errata: joining the YouTube Partner Program requires 4,000 hours of watch time,...