One of those late-into-production problems i usually encounter is the dreaded DivideByZero exceptions, and it's usually quite annoying since then you usually have to do some kind of "if" or "?" statement and it gets daunting pretty fast. It got to a point where i felt a bit guilty every time i used a division. So i decided not to do divisions any more (well, atleast not directly). I made a small extension method: 1 And instead of using divison, now you use multiplication. Much safer! 1 That's...
Read More
Recent Comments