Sunday 14 February 2016

Checked keyword

Here comes another typical issue - this time it is related to date values. If you ever wondered why date starts at 1/1/1970 in some systems/applications, below video can provide you some idea about the reason. And, you also get to know that if you are not counting properly you would run into either integer overflow issue or integer underflow issue.

Btw, .NET has support to handle overflow scenarios. Refer unchecked and checked keywords in C#. It is rather less popular amongst developers because .NET runtime puts in plenty of checks and balances to ensure you are not turning into your enemy.



Check out other videos by Tom Scott. He is fantastic.

No comments:

Post a Comment