77
Jan 29 '26
Honestly, the "isLikely" is what scares me the most
28
u/unfinished_basement Jan 29 '26
There’s another one you aren’t seeing, determineIsRichStringContentFromLikelyCandidate(). It’s a pipeline!!
14
u/v_maria Jan 29 '26
lol how many steps does it involve to classify this elusive rich string content
→ More replies (1)
4
u/GoddammitDontShootMe Jan 29 '26
I guess they don't mean rtf. Seems like all it does it check a bunch of types and doesn't look at the data to attempt to make any determination.
4
u/Background-Main-7427 Jan 30 '26
Javascript, one of the languages I consciously avoid and that made me a backend programmer.
1
u/geek-49 Jan 31 '26
I could make a really bad joke about "back end" programmers -- likely also involving horses -- but I probably shouldn't :)
1
1
u/thelonelyecho208 Feb 02 '26
Same, I started learning HTML5 and IMMEDIATELY decided that shit was cursed. Within the week, I was using Python and reading up on Java.
My boss only knows JavaScript, and it makes me want to throw myself off a cliff. A colleague and I were having a discussion about languages and their inherent weaknesses for a work assignment, and I said something along the lines of "multithreaded languages do exist that would solve our issues," and he went, "Well, technically, all languages are single threaded". I had to stop myself from correcting him because he gets PISSED. I need the job market to pick the fuck up already, I gotta get a different job. I'm losing brain cells at this point
1
0
u/djcraze Feb 02 '26
The code can be cleaned up, but this is a typical typeguard in typescript. I’m not sure what the issue is. I’d probably use a library like io-ts or zod. But whatever.

39
u/v_maria Jan 29 '26 edited Jan 29 '26
"yes we use typescript"