I saw the following post on twitter earlier this week: I have to admit that my first response was of course all the time. Then afterwards it got me thinking about those times that I broke this rule. Don’t look at me or tell me that you have never patched bad code. We all have …
Author Archives: dniswhite
Date Counting
Ok so I kind of left my previous post a bit incomplete. I did so because there was that bit of date calculation that I wasn’t yet done resolving. Remember this bit of code: int castedInterval = (int)interval; int minutes = (castedInterval / 60) % 60; Ok so I will be honest I wasn’t that …
Ternary, tertiary, terinary …
What really is the correct spelling for this conditional operator? Regardless of spelling I have never been that much a fan of its use. Most times that I have seen them used it was done so (in my opinion) to inflate the ego of the original programmer. We all have seen that code that solved …