Posted inExperience / Information Technology / Thank You Sir May I Have Another

Checking return values

Yes, I had to post one more, hopefully shorter, rant on logger.c. This has to do with “checking return values” in OpenSource code. #ifndef MSG_NOSIGNAL # define MSG_NOSIGNAL 0 #endif if (sendmsg(ctl->fd, &message, MSG_NOSIGNAL) < 0) { logger_reopen(ctl); if (sendmsg(ctl->fd, &message, MSG_NOSIGNAL) < 0) warn(_(“send message failed”)); } Code like this is rampant in OpenSource. It passes the quick and dirty teen age “code review” but it is not production quality. If Linux and the … Checking return valuesRead more

Posted inExperience / Information Technology / Thank You Sir May I Have Another

It’s okay to hate the 12 year old boys who write the bulk of OpenSource code

Even if their biological clock states they are north of 40, they never got past 12 when it comes to coding. In case you can’t see the featured image, the source file came from here. And since they will _hopefully_ sweep that up, here is the first snippet. /* this creates a timestamp based on current time according to the * fine rules of RFC3164, most importantly it ensures in a portable * way that … It’s okay to hate the 12 year old boys who write the bulk of OpenSource codeRead more

Posted inInformation Technology / Thank You Sir May I Have Another

And Still We Learn Nothing

People get upset with me when I say the bulk of OpenSource code is written by 12 year old boys, even if they happen to be north of 40 they simply never progressed past the age of 12 where it counts. This morning I’m digging into some rsyslog code and found this in datetime.c /* the following table saves us from computing an additional date to get * the ordinal day of the year – … And Still We Learn NothingRead more