News for hackers. Stuff that matters.

marko424

Re:Show HN: TypeScript Guide on Thursday August 24, 2023 @03:29PM (#37253475)
hey thanks, there are, but as any style guide all of them are opinioated, including this one.

Show HN: TypeScript Guide

TypeScript Style Guide provides a concise set of conventions and best practices used to create consistent, maintainable code.https://mkosir.github.io/typescript-style-guide/

( Read More... | 4 comments | on HN )
Re:TypeScript – Annotation vs. Inference Help on Thursday August 17, 2023 @06:35AM (#37159650)
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
Re: on Thursday August 10, 2023 @11:09AM (#37077139)
Re: on Saturday July 29, 2023 @08:40AM (#36919706)
> 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.

Re: on Saturday July 29, 2023 @08:38AM (#36919692)
In general nothing wrong with enums, but imo you need to be a bit more careful when utilising them.
Re: on Thursday July 20, 2023 @02:35AM (#36797467)
Hey, since every code style guide is opinionated, mine is no different, would like to hear your agreed or disagreed opinions on it.
Re:Show HN: TypeScript and React Style Guide on Sunday July 16, 2023 @06:46AM (#36745456)
Hey, since every code style guide is opinionated, mine is no different, would like to hear your agreed or disagreed opinions on it.

Show HN: tRPC API boilerplate – separate BE-FE repositories

https://github.com/mkosir/trpc-fe-boilerplate

I think tRPC https://trpc.io/ is really nice piece of technology thats well put together for all TypeScript enthusiasts.However majority of projects I noticed is used as monorepo (mostly Nextjs), which is nice, but I would still prefer to embrace split between BE & FE, as thats the frequent case for others REST, GraphQL etc., especially for bigger projects/companies.BE boilerplate -...

( Read More... | no comments | on HN )