Hacker Newsnew | past | comments | ask | show | jobs | submit | marko424's commentslogin

hey thanks, there are, but as any style guide all of them are opinioated, including this one.



So when to use which?


If anyone wants to split, make backend and frontend repositories separate, take a look - https://github.com/mkosir/trpc-api-boilerplate



> I love enums in other languages

This. Also huge on enums elsewhere, just not in typescript. I think this could be the reason devs first reach out to enums, since familiarity from other languages.


In general nothing wrong with enums, but imo you need to be a bit more careful when utilising them.


Hey, since every code style guide is opinionated, mine is no different, would like to hear your agreed or disagreed opinions on it.


Hey, since every code style guide is opinionated, mine is no different, would like to hear your agreed or disagreed opinions on it.


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

Search: