How about y’all just stop praying for a miracle, and start making one happen.Protiguous, 2021
Don’t do this. Seriously.
If I’m logged out because of a security action, just take me back to the login page. Seriously.
There’s no need for extra warnings, clicks, or telling me I’ve timed out. Seriously.
Also, make your login available on the Home Page of your website, preferably at the top right corner. Seriously.
Don’t make me hunt for it, or log in with extra steps. Seriously.
How to sanitize decimal numbers to the Nth decimal place without rounding.
For example, if you are dealing with crypto numbers like BTC (Bitcoin) or ETH (Etherium).
I mean, I did have another programmer vehemently argue once long ago that putting more code on one line would make it “run faster.” But of course he was stark raving nuts. Trying to explain to him (with a straight face–which was challenging) how the interpreter or compiler would break that long line apart into discrete one-instruction-per-line statements–essentially identical to the result if he had gone ahead and just made the code readable instead of trying to out-clever the compiler–had no effect on him whatsoever. But I digress.Craig Tullis on a StackOverflow answer.
We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.Famous computer scientist Donald Knuth
His quote is often clipped down to just “premature optimization is the root of all evil”, but that is NOT TRUE.
Yes, don’t micro-benchmark everything when you begin a project, but please do think ahead. And once you’ve got the program working as intended, then make it faster by profiling and looking for the bottlenecks.
Choose the proper data structures. Array? List? Hashset? Queue? Dictionary? Caching?
Take a few moments and think it over.
How often will this line of code be ran? Do I need to inline it, or pull it out into a separate method?
If you throw 100 darts and only 1 hits the bullseye, it doesn’t mean you’re good at darts.
Re: people spouting conspiracies constantly.
Get it working.Franks2000InchTV
Then get it working correctly.
Then get it working fast.
Then get it working fast correctly.
He has the haunted look of an idiot who secretly knows he’s an idiot pretending not to be an idiot.Protiguous, 2021. Talking about Mike Lindell’s claims that the 2020 election was stolen from Donald Trump.
select [d].[name] [Database Name] ,databasepropertyex( [d].[name], 'COLLATION' ) [Database Collation] ,serverproperty( 'COLLATION' ) [Server Collation] from [sys].[databases] [d] where ( databasepropertyex( [d].[name], 'COLLATION' )) != serverproperty( 'COLLATION' );