News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by antifa on Thursday April 25, 2024 @08:12AM (#40156523)
As oppose to a zero cost build time check, that's 3 expensive runtime DB checks, plus an account and a member could have the same ID, so it might run anyways but on the wrong DB rows.
Re:TypeScript: Branded Types by z3t4 on Saturday April 27, 2024 @05:39PM (#40183813)
You made two points that are correct in theory, but in practice those lookups would/could take micro-seconds, and the bug would be detected within minutes in a production environment. And it would take five minutes or less to patch.
Re:TypeScript: Branded Types by antifa on Sunday April 28, 2024 @11:24AM (#40189294)
If you're cowboy coding as a solo dev, sure.
Re:TypeScript: Branded Types by z3t4 on Thursday May 02, 2024 @09:24AM (#40235956)
We could argue if having 1-3 code cowboys is better then a large team. If the code cowboys can produce higher quality, quicker. They will be difficult to replace after many years though.