Our great sponsors
-
"Actual math" depends what you're after -- floats can give weird results, or even outright incorrect answers for large numbers, and the notion of 'equality' gets fuzzy, especially with oddities like "negative zero". They're good enough for quick, approximate answers, but usually exactly the wrong choice for things like currency (where you really want decimal), or if you actually want the right answer instead of an approximation (fraction).
-
I adhere to the philosophy of "system Python for system things, user-installed Python for my projects" and use asdf to manage Python versions.
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
Yes but most of the time you don't really need to care about what you need unless you know you can overflow or you have a powerful technical reason (i.e. trading lower precision for performance). Having to decide each time is just going to slow you down because the decision is not going to have a significant performance impact (if any). Having the default being i32 it's a good choice, even Rust manual agrees on that: