this post was submitted on 22 Nov 2023
221 points (92.3% liked)

Programmer Humor

20039 readers
388 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Lowpast 71 points 1 year ago (13 children)

Sounds like you don't know how to properly use TypeScript...

[โ€“] Zangoose 31 points 1 year ago (12 children)

If I had the willpower or time to go through a multi-thousand line (not including the html templates) legacy Angular 6 codebase where almost every property is typed 'any' then I assure you I would have, it's driving me insane ๐Ÿ™ƒ, also why I prefer backend

[โ€“] [email protected] 14 points 1 year ago (6 children)

I kinda feel your pain. A project that I helped launch is written in Typescript technically, but the actual on-the-ground developers were averse to using type safety, so any is used everywhere. So, it becomes worst of both worlds, and the code is a mess (I don't have authority in the project anymore, and wouldn't touch it even if I could).

I'm also annoyed at some level because some of the devs are pretty junior, and I fear they are going to go forward thinking Typescript or type safety in general is bad, which hurts my type-safety-loving-soul

[โ€“] Lowpast 7 points 1 year ago

One file at a time. Make strong pre-commit eslint rules (that way you don't impact existing code), eventually update tsconfig. You'll get there :)

load more comments (5 replies)
load more comments (10 replies)
load more comments (10 replies)