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

I'd normalize on instantiation. It is both a performance win, smaller code, and much simplier. Chanel names don't change so you dont have to keep them in sync in any real sense, and if they do, the setter has a very trival job of setting both the real and normalized name.


The nice thing with wrapping it in an abstraction, is that you can change or add optimizations without having to change the code EVERYWHERE.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: