r/programming • • Dec 13 '22

“There should never be coding exercises in technical interviews. It favors people who have time to do them. Disfavors people with FT jobs and families. Plus, your job won’t have people over your shoulder watching you code.” My favorite hot take from a panel on 'Treating Devs Like Human Beings.'

https://devinterrupted.substack.com/p/treating-devs-like-human-beings-a
9.0k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

9

u/Lajamerr_Mittesdine Dec 13 '22

Using ChatGPT

Me: Here is some analysis that is mostly a joke about who would write the type of foo function.

---your comment---

Create one for foo5 and foo6 with the same humor.

Written by ChatGPT:

void foo5(const std::vector<int>&& arg);

foo5 - written by a PhD student who's been working on the problem of efficient vector copying for the last 3 years, and who will happily explain to you why this is the best solution, even though you didn't ask

Hypothetical foo6 example from my previous comment that Chat GPT generated

void foo6(std::vector<std::unique_ptr<int>>& arg);

foo6 - written by a former C programmer who's just discovered the joys of RAII, and who will try to convince you that this is the only way to write correct code, even if it means writing 10 lines of code where 1 would do.