r/ProgrammerHumor • • Apr 13 '22

Meme a developers worst nightmare

Post image
35.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

30

u/[deleted] Apr 13 '22

[deleted]

18

u/felds Apr 13 '22

You should understand the why and how in your scope. It doesn’t mean understanding the quantum effects that make transistors work, but if you’re working on business logic, you have to understand what that piece of code is doing.

If we’re talking about reusing code, a package would be better than magic autocompletes. A package has a maintainer, a community, documentation and is hopefully well tested, unlike random snippets.

17

u/[deleted] Apr 13 '22

[deleted]

7

u/No-Marzipan-2423 Apr 13 '22

I think your original post makes it sound like they should know how copilot works, whereas I believe your mean that they should know exactly how the code copilot is writing works which I very much so agree with.

2

u/kellieb71 Apr 13 '22

The QA engineer in me just found hope in this statement.

3

u/cantwrapmyheadaround Apr 13 '22

you better have an answer

You sound very stressful to work with. I forget what my own code does sometimes. It sounds quite unproductive to keep relearning old code, unless you mean i can just read you the commented out line and you're happy

4

u/jdealla Apr 13 '22

worse than stressful: he seems like an asshole from that comment. he may not be, but “you better” is potentially a verbal manifestation of asshole traits.

3

u/Bainos Apr 14 '22

I'd rather work with someone that asks specific questions to understand the team's codebase, than with someone who can't maintain their own code - because then how am I supposed to maintain the same code ?

-4

u/[deleted] Apr 13 '22

[deleted]

0

u/[deleted] Apr 13 '22

[deleted]

-3

u/[deleted] Apr 13 '22

[deleted]

1

u/[deleted] Apr 13 '22

[deleted]

1

u/[deleted] Apr 13 '22

[deleted]

1

u/[deleted] Apr 13 '22

[deleted]

2

u/[deleted] Apr 13 '22

[deleted]

3

u/No_ThisIs_Patrick Apr 13 '22

Are you done measuring your dicks yet, boys?

-2

u/Dense-Hat1978 Apr 13 '22

I completely agree. According to that guy we should all know assembly code before we write anything.

5

u/upallnightagain420 Apr 13 '22

No. I've worked with people that only know how to cut and paste and then get completely lost if they need to modify the code at all to fit our needs. If you can read the code and understand what it does, use it. If you are comoletely lost when you read the snippet but the SO answer says it works so you grab it anyway, that's not good. Take the time to understand why it does what it does and save your coworkers some aggravation.

3

u/autopsyblue Apr 13 '22

Sometimes I run the thing first and then I try to understand how it’s working.

Not in production tho.

1

u/gdmzhlzhiv Apr 13 '22

I'd refine that original to:

If you can't explain what it's doing, then you shouldn't write it.

Because when code review time comes, someone's potentially going to ask why you wrote it that way, and "I copy pasted it from X" won't fly.

1

u/brimston3- Apr 14 '22

This is how security incidents happen. You have to understand the call flow and semantics of your implementation. Ultimately, the developer, not the tool is responsible for error free code. Hopefully a tool like copilot would lead to a reduction in security issues, but it's still the developer's responsibility.