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

This is my experience coding drunk as well. I also really hated the experience. As someone who enjoys getting lost and getting drunk and programming I thought I would love doing both together, it turns out for me drinking just maximizes the magical transient errors when coding caused by false assumptions which are always the hardest to debug.


These magical transient errors are exactly why one should choose language with immutable values. You have old value and you compute new one (with sharing if possible). You can continue to use old value or throw it away.

The mutation operation can be seen as resource management optimization, premature (and thusly evil) more often than not.




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

Search: