-
Software Development
The importance of a data format: Part II – The environment matters
When designing a new data format, it is important to remember in what environment we’ll operate in, what are the…
Read More » -
Software Development
The importance of a data format: Part I – Current state problems
JSON is a really simple format. It make it very easy to work with it, interchange it, read it, etc.…
Read More » -
Software Development
Find the bug – The case of the degrading system – Answer
In my previous post I showed the following code, and asked what the bug was, and what the implications of…
Read More » -
Software Development
Find the bug – The case of the degrading system
The following code contains a bug, can you spot it? class Program{ private Timer nextcheck; public event EventHandler ServerSigFailed; static…
Read More » -
Software Development
Code review challenge – The concurrent dictionary refactoring – answer
Here is the full method that we refactored: public void ReturnMemory(byte* pointer) { var memoryDataForPointer = GetMemoryDataForPointer(pointer); _freeSegments.AddOrUpdate(memoryDataForPointer.SizeInBytes, x =>…
Read More » -
Software Development
Code review challenge – The concurrent dictionary refactoring
In a recent code review, I had modified the following code: _freeSegments.AddOrUpdate(memoryDataForPointer.SizeInBytes, x =>{ var newQueue = new ConcurrentQueue<AllocatedMemoryData>>();…
Read More » -
Career
Stories from the interview room: Should your code be doing THAT?
We require all candidates to do a coding test before we invite them to an interview. The purpose of the…
Read More » -
.NET
Production postmportem: “The case of the it is slow on that machine (only)”
A customer called with a major issue, on a customer machine, a particular operation took too long. In fact, it…
Read More » -
Software Development
Configuration is user input too
Every programmer knows that input validation is important for good application behavior. If you aren’t validating the input, you will…
Read More » -
.NET
Micro benchmarks and hot paths
I’m doing some work to refactor a complex piece of code, and I have a piece of memory that is…
Read More »