zlacker

[parent] [thread] 8 comments
1. andy_p+(OP)[view] [source] 2025-08-22 11:54:52
They are forcing people to write Typescript code like it’s Golang where I am right now (amongst other extremely stupid decisions - only unit test service boundaries, do not pull out logic into pure functions, do not write UI tests, etc.). I really must remember to ask organisations to show me their code before joining them.

(I realise this isn’t who is hiring, but email in bio)

replies(3): >>theshr+W1 >>sebste+43 >>candid+Y4
2. theshr+W1[view] [source] 2025-08-22 12:09:20
>>andy_p+(OP)
Have you seen Java people write Python? Same vibe :)
replies(2): >>toaste+0f >>Mawr+BP1
3. sebste+43[view] [source] 2025-08-22 12:18:48
>>andy_p+(OP)
Ah yes. I love working at places that hire experts just to tell them how they should do the work they're an expert at.
4. candid+Y4[view] [source] 2025-08-22 12:28:29
>>andy_p+(OP)
I do this and think it works really well...

myfunc(arg: string): Value | Err

I really try not to throw anymore with typescript, I do error checking like in Go. When used with a Go backend, it makes context switching really easy...

replies(2): >>andy_p+Fq >>chamom+yB3
◧◩
5. toaste+0f[view] [source] [discussion] 2025-08-22 13:21:15
>>theshr+W1
Reminded me of this classic talk https://www.youtube.com/watch?v=o9pEzgHorH0
◧◩
6. andy_p+Fq[view] [source] [discussion] 2025-08-22 14:23:13
>>candid+Y4
They still throw and just have millions of try catch blocks repeated everywhere around almost every function :-/
◧◩
7. Mawr+BP1[view] [source] [discussion] 2025-08-22 22:08:45
>>theshr+W1
Sure have: https://youtu.be/wf-BqAjZb8M?t=831
◧◩
8. chamom+yB3[view] [source] [discussion] 2025-08-23 16:58:36
>>candid+Y4
I do actually love returning errors in TS. It solved most of the problems I have with error handling.
replies(1): >>andy_p+W15
◧◩◪
9. andy_p+W15[view] [source] [discussion] 2025-08-24 09:24:29
>>chamom+yB3
Yes not terrible, I think throwing is often worse. I do think that Golang forcing you to deal with Errors immediately is just a bit extreme, sometimes it’s nice to have a choice or create abstractions about how to handle them.
[go to top]