After doing all of the business logic on the frontend, rich strings are built out with a step function that invokes six different lambdas, and deployed as static json to an s3 bucket, which then propagates back to the frontend via the RichStringWatcher service that runs onprem. This is all in the readme bruh
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
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"
77
u/[deleted] Jan 29 '26
Honestly, the "isLikely" is what scares me the most
4
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" 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/mohragk Feb 03 '26
This is called if-it-looks-like-a-duck checking. Very chic
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.