Race condition? A Chase-Lev work-stealing deque, written carefully with memory barriers, compiler fences, and CAS — and still broken in a specific but totally realistic scenario on x86 TSO. Hint: the bug lives in exactly the place that looks the cleverest. 👀 #concurrency
Here’s Ben Stein in 1979 describing television as an engine of cultural demoralization. He argues that a small clique of producers and writers pushed a left-coded inversion of reality onto the public. They despised traditional power centers and hated figures like Buckley. They propagandized the nation into accepting a fake world where businessmen are villains, criminals are the good-guys, small towns are sinister, military officers are proto-fascists, and work barely exists.
Most people who say want they to "organize their code" actually mean they want to "taxonomize their code". People want to give "structure" to things, even if that structure provides not actual use. They have learnt that "structure is good" and therefore think any kind is "good".
#C / #C++ hashtag#benchmark tools are overhyped relics that mislead developers with skewed metrics, and their cult-like following blinds the industry to more accurate.
#Object-oriented programming (#oop) is a bloated, overrated mess that overcomplicates simple tasks, and the industry’s obsession with it is holding back more elegant, functional approaches. tl;dr: hashtag#oop is academic circle jerking.
Files with 1000+ lines is fine. Even 10000 lines is fine.
Often, the reason people split things up is because they navigate by clicking on filenames and then scrolling around.
Instead, use global symbol search to find the procedures and types you're looking for.
Speakers who do nothing but write a few hundred lines of code for show now make me sick. When I try to work with someone else, I can't communicate with the other party because this nonsense is believed like a religion.
I'm sure there is no other profession where there is so much nonsense. It's obvious what a processor is, how it works, and we're still talking about the same things like idiots under a different name as if it's something new. #programming#software
The greatest harm done to the world is that academics constantly produce nonsense words for masturbation purposes and people find them to be true. When you try to read a document, even the simplest information is explained with pages of nonsense.
Guidelines I follow to ship safe C++ (thread):
1. C constructs are a code smell. Replace raw pointers with smart pointers or references (no nulls!), replace C array with std::array (now it is safe to return). std::invoke, C++ casts, etc. Avoid preprocessor (#define and such)
@BenjDicken But how you know your data will be in real ram? It depends OS' working sets and page's size. So having cache is not solution if you don't have hacked os.
@cmuratori@FallenOne58035 That's Turkey, if you tweet something the president doesn't like, you're straight to jail. There are thousands of examples :)
@unclebobmartin Write a factory that returns every charachers from a string then past your "Hello World" to get chars and then call console printer that has 1254 sub classes. Am i good at clean code?