How many different languages can you do that in, in 20 seconds, without looking it up?
Personally, I think I can only do it in Python and C off the top of my head without looking. I'd have to look up how to do it, idiomatically, in C++, Rust, Go, Perl, PHP, and Javascript.
I'm not going to memorize random functions off the top of my head and I'm not going to waste brainspace on something I can use chatgpt really quickly and move on with others tasks more specific to my domain.
I'd rather focus and use energy on business logic + the part that are more specific to my domain than generic functions I can ask chatgpt and come back in a little bit.
It's like trying to bake a pizza and having to think how to grow tomatoes.
If ChatGPT can free you up from thinking about the basics, you can channel your energy into some more advanced concepts.
ChatGPT is literally 0 brain space for these simple tasks. If you had to code it you're at least thinking about edge cases etc. Plus there's 0% chance it would take you 20 seconds for 10+ tasks of these per day. if you're coding at 50 wmp these would take you at least 1 minute to type out, let alone implement correctly.
by your logic you should never use google or SO because it's quicker to just implement it instead of opening a browser, typing the question, looking at responses etc.
If I caught one of the other engineers on my team wasting time on google or SO looking up such basic stuff I’d question his career choice.
you seem to have an emotional reaction against chatgpt, or are just really dense. that's okay for you. but I hope your team knows that you're limiting their career growth by having you as a manager.
If you didn't code it you REALLY need to be thinking about edge cases, etc. ChatGPT (or stack overflow for that matter) makes tons of mistakes, at least as much as your average human.
Personally I find it harder to validate the behavior of code I didn't write than code I've gone through the creation process of myself.
Sometimes it is not perfect and a couple of times I had a case where ChatGPT couldn't code something and it would go into a loop coming back to the permutation of wrong answer over and over. Most of the time starting over with different prompt describing the same task in a different way fixes it.
Sometimes I feel it reads my mind. It's of course wrong many times, but the way it autocompletes code means, I am no longer hesitant writing a lot of code just to try things out, as it is much more enjoyable - this combined with ChatGPT really feels like having a superpower.
My most recent query from yesterday ways "iterate over a nodejs array, the array has 10 or less elements. The increment should be in chunks of two. Stop when the index is bigger than 10, or when there are no more elements"
I can figure this stuff out myself too, but with chatgpt, I can query it and come back in 20 seconds and use whatever the output is. 95% of the time is correct, and the rest I can just quickly fix it myself. Plus i can ask follow on questions and refine it even more. This stuff would have taken me 5+ mins looking over stack overflow and then coding it and testing it. Plus ChatGpt handles edge case so I don't have to worry about them.
The efficiency is much much better than SO. I can't imagine going back to Google or SO for any coding questions. I only wish they kept the service up more during the day time. It's available in the morning or at night, but most afternoons it's a hit or miss.