Don't people read anymore before commenting?
Blogs are funny things. We all have different reasons to write blog posts. Apart form the general stuff that almost everybody sometimes writes about (opinion pieces, general comments about something or other) I like writing tech articles.
Programming is my hobby, and sometimes I like to set myself a challenge, or want to see what sort of interesting things I can do with a given API / language / platform. Afterwards, I write an article about what I did, partially because I actually like writing things like that, and partially because you don't know if you understand something fully until you can sucessfully explain it to someone else, leaving out no details.
You'd be amazed about how many things you take for granted until you are forced to explain them step by step. And you'll quickly find out that some things you've never thought about twice were wrong.
Anyway, It takes a lot of time to write a detailed article about something technical (much longer than you'd expect). And I always hope that if you care enough about it to comment on it, you've actually read it. But sadly, I am often disappointed.
Take this article for example. I wrote it as an example of how it is possible to create a fifo queue without locks. In the article I mention that there is 1 writer, and 1 reader, and that my implementation is thread safe, specifically because of that. And after all, this is a simplified proof of concept of something, so lack of advanced features (like signalling) is to be expected.
And yet a lot of people comment the same thing every time 'Your code is wrong, this bit has a race condition. this is a basic mistake' and variations thereof. And then I think to myself 'Yes, of course there is a bloody race condition. That is why I mention that there should be only 1 reader and 1 writer!' What makes it even worse is that a number of people already commented this, and that I've already answered that comment several times.
I am definitely not a prima donna programmer. I never mind explaining something about my code or design, even if I have to do it a couple of times. And I really welcome comments, bugreports and other feedback about my code. If I made a mistake, I'd like to know. But I hate it when people start spewing comments without even bothering to read the article and / or the comments that have already been posted. Is it really that hard not to make an idiot of yourself?