I’m planning to write a bit about data organization for multi-core scenarios. I started writing a first post but quickly realized that there’s a bunch of basics I need to cover first. In this post, I’ll try just that. This is a whirlwhind primer on CPU caches.
Why composition is often better than inheritanceAn important question in code structure is whether to make classes work together through composition or inheritance. The "has a" relationship versus the "is a" relationship. For example: a seat has a cushion and a seat is a piece of furniture.
The Algorithmic RaverIts hard to imagine a crowd of people dancing while staring mesmerised to someone hunched over a laptop programming in emacs.
The Swordsman and the Software EngineerOne of the largest mistakes you can make as a knowledge worker is to focus 100% of your time on your craft. It’s easy to believe that specializing and focusing will make you better than your peers, but I do not think that is the case.
Exploring Design Patterns with MongoDBA function that computes the n-th Fibonacci number is often one of the first things that you encounter when reading up on any language.
The weblog of Nicholas ChapmanThe RDTSC instruction on x86 CPUs is supposed to read a counter that is incremented (by one) every clock cycle. However, it doesn't actually do this. Instead, the counter increases at a fixed frequency, independent of the actual clock speed of your CPU, which varies based on load, temperature etc..
Markov Chains – ExplainedMarkov Chains is a probabilistic process, that relies on the current state to predict the next state.
Distinguished Lecture"A Software Crisis? 'Please, sir, may I have some more?'" David Notkin '77, University of Washington Thursday, February 21, 2013 at 4:00 P.M. Room 368 (CIT 3rd floor) That there is a "software crisis" has been asserted and repeated for half a century.
Rule of Thumb: Preconditions Should be PublicIn software, it's common to have operations that only make sense when an object is in a particular state. For example, in a guess-how-many-jelly-beans-are-in-the-jar contest, you're typically not allowed to guess the same number as someone else. Also, there can't be a winner if no one has guessed.
This Read-It-Later-list is just that, bookmarks of stuff I intend to read or have read. I do not necessarily agree with opinions or statements in the bookmarked articles.
This list is compiled from my Pocket list.