this post was submitted on 26 Oct 2023
905 points (96.4% liked)

Programmer Humor

19423 readers
233 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 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 93 points 1 year ago (5 children)

I am really happy when people are quite strict in code reviews, it makes me feel safer and I get to learn more.

Nothing worse than some silent approvals with no real feedback. What if I missed something obvious... and now it's merged.

To be fair, I also enjoy getting my grammar corrected. I'm juggling 3 languages and things can get messy.

[–] [email protected] 30 points 1 year ago (2 children)

In that spirit, I will call attention to your first sentence, specifically the comma. In my opinion, that can be improved. One of three other constructions would be more appropriate:

  • I am really happy when people are quite strict in code reviews. It makes me feel safer and I get to learn more.
  • I am really happy when people are quite strict in code reviews, because it makes me feel safer and I get to learn more.
  • I am really happy when people are quite strict in code reviews; it makes me feel safer and I get to learn more.

The first of my suggested changes is favoured by those who follow the school of thought that argues that written sentences should be kept short and uncomplicated to make processing easier for those less fluent. To me, it sounds choppy or that you've omitted someone asking "Why?" after the first sentence.

Personally, I prefer the middle one, because it is the full expression of a complete state of mind. You have a feeling and a reason for that feeling. There is a sense in which they are inseparable, so not splitting them up seems like a good idea. The "because" explicitly links the feeling and reason.

The semicolon construction was favoured by my grade school teachers in the 1960s, but, as with the first suggestion, it just feels choppy. I tend to overuse semicolons, so I try to go back and either replace them with periods or restructure the sentences to eliminate them. In this particular case, I think the semicolon is preferable to both comma and period, but still inferior to the "because" construction.

I've clearly spent too much time hashing stuff out in writers' groups. :)

[–] [email protected] 8 points 1 year ago (1 children)

This is what I live for. :D

I agree with most of that. In formal settings, I prefer full sentences with conjunctions; however, choppy sentences are the ones that often end up in my Lemmy comments.

[–] [email protected] 8 points 1 year ago

That only makes sense. We are having a conversation, not creating literature.

[–] [email protected] 6 points 1 year ago (1 children)

Strange, I get a mild hostility vibe from colleagues if I review too ambitiously.

[–] [email protected] 2 points 1 year ago

Reviews have to be balanced to circumstance. There is a big difference between putting out the sales brochure and the notice on the bulletin board. Likewise in coding a cryptographic framework for general consumption and that little script to create personal slideshows based on how you've tagged your photos.

As a general rule, wider distributions, public distributions, and long-lived distributions need more ambitious reviews. If the distribution is wide, public, and permanent, then everything needs very detailed scrutiny.

I have found some success in starting with and occasionally revisiting review goals. This helps create and maintain some consistency in a process that is scaled to the task at hand.

[–] [email protected] 11 points 1 year ago* (last edited 1 year ago) (1 children)

Like the other guy, I also read your comment twice looking for mistakes but found none.
You should of left something to fix!
😏

Edit: I'm glad there so many people who are as passionate about the correct spelling of "should've" as I am. I was testing you all, and you passed!

[–] [email protected] 15 points 1 year ago (2 children)

Correcting the reviewer.
Notes: "should of" isn't valid, should implies a verb, of isn't a verb. I expect you meant "should have". Please recall this in future submissions.

[–] [email protected] 5 points 1 year ago (2 children)

They should of course keep that in mind, but it's not that "should" should always be followed by a verb directly. The problem is that "of" in this context is a mishearing/spelling of "have", so they should in this case have written it like that instead.

[–] [email protected] 5 points 1 year ago (1 children)

I love that you used "should of" in a valid sentence.

[–] [email protected] 3 points 1 year ago

Except that it would be "they should, of course,".

[–] [email protected] 1 points 1 year ago

I would argue that "should of" is just a naive written rendition of the spoken contraction "should've". They are homophones, so it's a completely understandable error among those without the relevant education or background. I know only English and was in Grade 9 at a different school before someone corrected me.

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

Notes: “should of” isn’t valid, should implies a verb, of isn’t a verb. I expect you meant “should have”. Please recall this in future submissions.

😏

[–] [email protected] 6 points 1 year ago

Yeah, I learn so much from code reviews and they've saved me so much time from dumb mistakes I missed. I've also caught no shortage of bugs in other people's code that saved us all a stressful headache. It's just vastly easier to fix a bug before it merges than once it breaks a bunch of people.

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

I'm juggling 3 languages

We Americans like to forget that anyone might have any trouble understanding English especially in cases of polyglots.

I don't know which is your native tongue but from this comment it looks like you're doing a fine job.

[–] [email protected] 2 points 1 year ago

Assuming you have competent leadership, then it wouldn't be merged if you missed something obvious. I guess you're saying that you want more positive reinforcement.

[–] [email protected] 55 points 1 year ago (1 children)

I will correct both + your spelling because it drives me fucking nuts when I can't find a function or variable due to it being severely misspelled

[–] [email protected] 19 points 1 year ago (1 children)

Me omw to tell the POSiX guys it's supposed to be "O_CREATE" instead of "O_CREAT":

[–] [email protected] 31 points 1 year ago (2 children)
[–] [email protected] 16 points 1 year ago (2 children)
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

That's the Oracle way.

The Unix way: chexp.

[–] [email protected] 2 points 1 year ago (1 children)

Not gonna lie, I have no idea what chexp is supposed to mean

[–] [email protected] 2 points 1 year ago (1 children)

That never stopped a Unix programmer!

(But yeah, my comment was missing punctuation.)

[–] [email protected] 2 points 1 year ago

Ohh! Thanks, I mean, I had already got the grammatical meaning, but I just wasn't sure what "chexp" was, I thought you were talking about some obscure Unix command... so it was just the same phrase all along, lol

*shakes fist at the sky*
Damn you, Unix people

[–] [email protected] 3 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago

Th brnz age is where it's at

[–] [email protected] 3 points 1 year ago

I stand corrected:

Me omw tell POSiX "O_CREATE" not "O_CREAT":

[–] [email protected] 38 points 1 year ago (2 children)

Correcting my code is helpful. The machine didn't know what I even meant. Computers are interesting and changing rapidly.

Correcting my grammar is an unsolicited English lesson from someone who already knew what I meant. English is not interesting or changing quickly.

[–] [email protected] 10 points 1 year ago (2 children)

What if your grammar is that bad that people struggle to understand you?

I know someone who is incomprehensible most of the time. I have to ask probing questions just to vaguely understand what they're trying to communicate. I've politely told them more than once about the issue but they never try; they're not mentally challenged or anything, just an ass.

[–] [email protected] 1 points 1 year ago

Then they couldn't correct you.

load more comments (1 replies)
[–] [email protected] 2 points 1 year ago

fr fr no cap

[–] [email protected] 16 points 1 year ago (1 children)

It's actually "their'yre" dumby, learn ur words

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

It’s actually “their’yre” dumby, learn ur words

SOme morans should of staid inn School!!

[–] [email protected] 13 points 1 year ago (2 children)
[–] [email protected] 3 points 1 year ago

No, you're grammerer

[–] [email protected] 2 points 1 year ago
[–] [email protected] 9 points 1 year ago (1 children)
[–] [email protected] 5 points 1 year ago (3 children)

However, real grammar and prescribed textbook grammar are two different things.

load more comments (3 replies)
[–] [email protected] 4 points 1 year ago

I use incorrect grammar all the time on Lemmy because I'm writing colloquially, comma splices are my biggest offense.

[–] [email protected] 3 points 1 year ago

Someone Renames your objects "because they sound better that way"...

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

Fuck me, never touch my code, it is perfect.

[–] [email protected] 11 points 1 year ago (1 children)

Brother you don't even remember what it does, how and why after 3 days

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

Of course, but because it is perfect, no one, not even myself, needs to fix/modify/extend/understand

/s

[–] [email protected] 3 points 1 year ago

It should be normalized to kiss the furry femboy programmer who corrects your code as a thank you.

[–] [email protected] 1 points 1 year ago

Excuse me, I think you meant "correct's you're code"

load more comments
view more: next ›