Posted inInformation Technology / Thank You Sir May I Have Another

An Updated C_MEGA_MAIL Example

Things get dated. It is sad, but true. Time marches on and little snippets of code you squirreled away for future use start to not work as good, or not even compile because everything around them has changed. Such was the case recently with C_MEGA_MAIL.C. It stayed locked in time and VMS changed. Oh, it still compiled and seemed to work, but when you stuck it in something which sent hundreds of mail messages over … An Updated C_MEGA_MAIL ExampleRead more

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