Tech Rumors
3 subscribers
235K photos
239K links
Download Telegram
cointelegraph.com

Crypto community reacts to mainstream media coverage of FTX’s implosion: criticism, misogyny and more
The crypto community has criticized Forbes magazine for dubbing Caroline Ellison “Queen Caroline” and “a new darling of the alt-right.”


dev.to

Code Smell 180 - BitWise Optimizations
Bitwise operators are faster. Avoid these micro-optimizations

TL;DR: Don't use bitwise operators unless your business model is bitwise logic.



Problems

Readability
Clevereness
Premature Optimization
Maintainability
Bijection Violation



Solutions

Improve readability



Context

Some clever programmers solve problems we don't have.

We should optimize code based on evidence and use the scientific method.

We should benchmark only if necessary and improve code only if really necessary and bear the cost of changeability and maintainability.



Sample Code



Wrong

const nowInSeconds = ~~(Date.now() / 1000)



Right

const nowInSeconds = Math.floor(Date.now() / 1000)



Detection

[X] Semi-Automatic

We can tell our linters to warn us and manually check if it is worth the change.



Exceptions

Real-time and mission-critical software.



Tags

Premature Optimization



Conclusion

If we find this code in a pull request or code review, we need to understand the reasons. If they are not justified, we should do a rollback and change it to a normal logic.



Relations








Code Smell 20 - Premature Optimization
Maxi Contieri ・ Nov 8 '20 ・ 2 min read

#oop
#developing
#coding
#codesmell











Code Smell 165 - Empty Exception Blocks
Maxi Contieri ・ Sep 24 ・ 2 min read

#webdev
#beginners
#programming
#python











Code Smell 06 - Too Clever Programmer
Maxi Contieri ・ Oct 25 '20 ・ 2 min read

#codenewbie
#tutorial
#beginners






More Info

Tilde Operator ~~

Javascript BitWise Operators



Disclaimer

Code Smells are just my opinion.



Credits

Photo by Frédéric Barriol on Unsplash

Original Article Here.

Watch the little things; a small leak will sink a great ship.

Benjamin Franklin








Software Engineering Great Quotes
Maxi Contieri ・ Dec 28 '20 ・ 13 min read

#codenewbie
#programming
#quotes
#software




This article is part of the CodeSmell Series.








How to Find the Stinky parts of your Code
Maxi Contieri ・ May 21 '21 ・ 8 min read

#codenewbie
#tutorial
#codequality
#beginners
#webdev #javascript #beginners #programming


theverge.com

Wickr’s free encrypted messaging app is shutting down next year
Illustration by Alex Castro / The Verge


Wickr Me, the free encrypted messaging app owned by Amazon Web Services, is shutting down on December 31st, 2023. In a post on its website, Wickr says the app will stop accepting new user registrations on December 31st, 2022 before going away completely next year.