On.Programming

For most of us, programming (or more generally – software development) is all the life is about.

IT Hares are not different. And they have more than just quite a few bits to share about programming…

War on Clones, Part I. IP-based (non-)Identification. Identifying PCs and Macs

July 11, 2016 by “No Bugs” Bunny

Login

Quote:

NEVER EVER use IPv4 for long-term bans

Another Quote:

If using MAC addresses to identify devices, you SHOULD gather stats on repeating MAC addresses within your DB

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VI1st beta of Vol. VII-IXOn.ProgrammingTips and TricksNetwork ProgrammingOn.SecurityFraud Prevention

Read more

Random Number Generation

June 21, 2016 by “No Bugs” Bunny

Random Number Generation

Quote:

even if your RNG is statistically perfect, people will still complain🙁

Another Quote:

On modern x86 CPUs, single core can generate 150M+ random bytes/second this way (and this is a Damn Lot).

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.ProgrammingTips and TricksOn.SecurityBest Practices

Read more

Implementing Queues for Event-Driven Programs

June 13, 2016 by “No Bugs” Bunny

Multiple Writers Single Reader Queue

Quote:

full queues SHOULD NOT happen during normal operation

Another Quote:

With queues-implemented-over-mutexes like the ones we’ve written above, the most annoying thing performance-wise is that there is a chance that the OS’s scheduler can force the preemptive context switch right when the thread-being-preempted-is-owning-our-mutex.

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.System Architecture(Re)ActorsOn.ProgrammingTips and Tricks

Read more

C++ Guidelines - Made-to-Measure vs One-Size-Fits-All

June 6, 2016 by “No Bugs” Bunny

One-Size-Fits-All vs Made-to-Measure

Abstract:

After bashing all those Big Name guys for making those over-arching sets of guidelines, it is perfectly logical for me myself to do the same?

Quote:

DON’T use C-style cast, EVER. If you DO need a cast – DO spend time on figuring out which of C++ *_cast<>s you really mean (and maybe, you’ll find a way to avoid that cast at all)

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.ProgrammingProgramming LanguagesOn.DevelopmentDevelopment Processes

Tagged With: C/C++
Read more