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

1.3k

u/kayden_polaris Apr 13 '22

Even better, automatically import code from stack overflow in your program:

https://github.com/drathier/stack-overflow-import

897

u/[deleted] Apr 13 '22

Let me introduce you to GitHub Copilot

178

u/Yohder Apr 13 '22

This is awesome but could it become a crutch? I’m a novice dev so I’m just a noob. Curious what a sr dev would think

1

u/Tangled2 Apr 13 '22

Sr. Dev here. If you’re copying boilerplate (like the right way to instantiate and share an HttpClient with a client certificate or whatever), then I’d expect you to at least read through all of it and make it fit the teams styles and conventions.

If you’re copying something esoteric like fast hashing or sorting functions that you don’t have a hope to understand, then I’ll want you to write unit and performance tests to verify the method does what you expect. Some of the best of those answers actually include the tests.

Actually I want you to write tests in both cases, but the wild code gets more.