John Rasch

ArticleTypeCodeSOD

by in CodeSOD on

Code generation can be an effective tool for strongly-typing your custom domains if the given domain is constrained to a specific set of values. Acceptable examples would include color names, statuses, and U.S. states, among several others.

In some scenarios it is completely redundant to do so, for example, if you are strongly-typing the alphabet:


The Power of True

by in CodeSOD on

Most computer scientists could rattle off their powers of 2 just as easily as their powers of 10.

Unfortunately in this instance, Daniel has discovered that possessing such "power"ful knowledge could prove dangerous when it comes to validation:


Archives