zlacker

[return to "Go is still not good"]
1. andy_p+Re[view] [source] 2025-08-22 11:54:52
>>ustad+(OP)
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)

◧◩
2. candid+Pj[view] [source] 2025-08-22 12:28:29
>>andy_p+Re
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...

◧◩◪
3. chamom+pQ3[view] [source] 2025-08-23 16:58:36
>>candid+Pj
I do actually love returning errors in TS. It solved most of the problems I have with error handling.
◧◩◪◨
4. andy_p+Ng5[view] [source] 2025-08-24 09:24:29
>>chamom+pQ3
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]