Hi #Rustacean,
I built a simple CLI that suggests commit messages based on your git diff β perfect for lazy devs π
π github.com/IbrahimBagal...
Feel free to contribute: issues and PRs are welcome!
#Rust #CLI #Git #OpenSource
Hi #Rustacean,
I built a simple CLI that suggests commit messages based on your git diff β perfect for lazy devs π
π github.com/IbrahimBagal...
Feel free to contribute: issues and PRs are welcome!
#Rust #CLI #Git #OpenSource
π Rustβs Drop Order Rules π
Did you know? In Rust:
Variables (and function arguments) are dropped in reverse order of their declaration.
Nested values are dropped in source-code order.
π€ Does this behavior align with your expectations? Drop your thoughts below!
@iolivia.me thanks for clarification βΊοΈ
From byte to "bite me"
Rust Strings: What's Really Stored?
In Rust, when you assign a string, the variable doesnβt store the string itselfβit holds a pointer to the memory where the string starts.
So, if `let string = String::from("Hello");` points to 'H', where do the other characters go? π€
Thanks for sharing, Using `?` with `Option<T>` does make things easier. Iβll check out the Clippy suggestion! Have you used it in other places too?
π Rustaceans! Let's Talk About the ? Operator! π
Did you know the `?` operator in Rust can simplify your error handling? It automatically propagates errors, making your code cleaner and more readable!
Have you used the `?` operator in your Rust projects? Share your experiences and tips below! π
Waow congratulations π
β
Almost there thanks
Thanks for being my 10th! π
Bluesky now has over 10 million users, and I was #2,778,604! But until now I don't even have 10 followers π
@bsky.app
Firefox have changed their stance on JPEG XL to being supportive if a Rust implementation comes around
Motivation might change your day.
Discipline will change your life.
Good morning everyone π
Totally! Food + great company = tastier bites! ππ
π‘ How many parameters should a method have? Let's discuss! π€
1οΈβ£ 1-2 parameters
2οΈβ£ 3-4 parameters
3οΈβ£ 5+ parameters
4οΈβ£ Depends on the context
What do you think? Share your thoughts and experiences! π£π #CodeQuality #Programming #DevCommunity #TechTalk #SoftwareEngineering #BestPractices #CleanCode
Rust now supports diagnostic attributesΒ which helps you customize the error messages you get from the... dev.to/ibrahimbagal...
Example
Exciting News: Node.js Version 21.7.1 Solves Long-standing Environment Variables Issue! No External Packages Needed π #NodeJS #Update #Documentation #developer #javascript .
π If you're interested in learning more, check out the documentation here: nodejs.org/docs/latest/...