hex

joined 1 year ago
[–] [email protected] 1 points 3 weeks ago (4 children)

Yes- exactly, they make comments wrong. But comments aren't always a waste of time, like in legacy code, or just in general code that isn't gonna change (mathematical equations too)

[–] [email protected] 5 points 3 weeks ago (6 children)

Fair. I guess in this case, it's a manner of gauging who you're working with. I'd much rather answer a question once in a while than over-comment (since refactors often make comments worthless and they're so easy to miss..), but if it's a regular occurrence, yeah it would get on my nerves. Read the fuckin name of the function! Or better yet go check out what the function does!

[–] [email protected] 3 points 3 weeks ago

Well, it literally is a yes man, it guesses what words are the most appropriate response to the words you said.

[–] [email protected] 6 points 3 weeks ago (4 children)

I mean, boolean short circuit is a super idiomatic pattern in Javascript

[–] [email protected] 7 points 3 weeks ago* (last edited 3 weeks ago) (10 children)

Yeah. I advocate for self explanatory code, but I definitely don't frown upon comments. Comments are super useful but soooo overused. I have coworkers that aren't that great that would definitely comment on the most basic if statements. That's why we have to push self explanatory code, because some beginners think they need to say:

//prints to the console
console.log("hello world");

I think by my logic, comments are kind of an advanced level concept, lol. Like you shouldn't really start using comments often until you're writing some pretty complex code, or using a giant codebase.

[–] [email protected] 5 points 4 weeks ago (3 children)
[–] [email protected] 5 points 4 weeks ago (2 children)
[–] [email protected] 3 points 4 weeks ago

Yeah, sure, and everyone is entitled to their opinion on this matter, but the fact is, as a public figure, you risk a LOT by saying such a thing.

[–] [email protected] 1 points 4 weeks ago

I think it's a money crisis.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

I hear ya, cool opinion.

Joking aside, I get it. Art is art. I respect it. Doesn't change my opinion that the comic doesn't add to the message. But I respect it.

view more: ‹ prev next ›