Tips and Tricks
Programming is a field where tips and tricks are abundant.
IT Hares proudly present their own bag of programming tips and tricks.
CAS (Re)Actor for Non-Blocking Multithreaded Primitives
July 23, 2018 by • “No Bugs” Bunny
Quote:
in 2017, I started to feel that the Dark Ages of mutex-based thread sync were over
Another Quote:
Another issue which almost universally rears its ugly head when speaking about not-so-trivial uses of CAS is the so-called ABA problem.
Filed under: On.System Architecture(Re)ActorsOn.ProgrammingTips and Tricks
Read moreHow to consume an HTTP API
June 11, 2018 by • “No Bugs” Bunny
Quote:
Programs are not the self-contained, self-reliant, self-sufficient things they once were.
Another Quote:
I highly recommend you log every HTTP request you send and every HTTP response you receive.
Filed under: On.ProgrammingTips and Tricks
Read moreC++: On Using int*_t as Overload and Template Parameters
May 14, 2018 by • “No Bugs” Bunny
Quote:
We decide which set of types we’re using (fundamental or int*_t), and use it consistently
Another Quote:
The only thing we’re doing here, is changing the name of the type, NOT its behavior
Filed under: On.ProgrammingTips and TricksProgramming Languages
Tagged With: C/C++
Read moreParallel STL for Newbies: Reduce and Independent Modifications
April 26, 2018 by • “No Bugs” Bunny
Quote:
with std::reduce() such code, while it compiles at least under MSVC, MAY occasionally provide wrong results
Another Quote:
if you happen to need something beyond that – take a deep breath and allocate at least several months to understand how does parallelism really work under the hood.
Filed under: On.ProgrammingTips and TricksOptimizations
Read more


