Comment Re:That's some shitty coding you did there hoss (Score 1) 39
In the original comment I was showing the rules for leap years
with psuedo code. In my papal bull I was just showing off my
knowledge of the word 'bissextile', did you see how many times
I used it?
Sure you could write the code slightly more efficiently by testing the primary case first and the exceptions inside that. On most runs you would avoid 3 failed cmp ops and the pipeline flush that comes with it, but most developers don't care and don't need to care about that sort of thing. By the time you throw in 50 levels of abstraction and libraries do you really think that making the code any harder to read and gaining a slight level of efficiency is worth it?