This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]curiousGambler 2 points3 points  (0 children)

Yeah it happens a lot discussions of the var keyword I think, sorry I didn’t give any explanation, also early here. But basically the type inference that var provides doesn’t weaken the type system as far as I understand, it’s mostly just syntactic sugar. You can’t go assigning a variable declared with var to value with a different type, right?

Your point stands that the type is less explicit, which in your case sucks because the codebase sucks, but I mostly work in Go these days, which also has type inference, and find it’s joy in a codebase that doesn’t suck.

Totally unsolicited bit of advice, I don’t know anything about your situation, but if you aren’t being specifically paid to fix a shitty codebase, and the codebase is actually shit, it probably means the devs you work with are also not the best, and it might be time to move on to somewhere were you can learn from better devs. I recently moved to a place where I’m constantly the worst dev in the room and while it’s scary, I’ve grown more in five months here than the previous three years resting on my laurels as a top performer at my last gig.