Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If it helps, here's a related blog post but with a C# slant:

https://andrewlock.net/using-strongly-typed-entity-ids-to-av...

The author refers to using primitives everywhere as "primitive obsession", and proposed using types instead.



Similar to the idea of "microtypes" (I've most often seen it used in Java circles):

https://www.markhneedham.com/blog/2009/03/10/oo-micro-types/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: