3 ms·
Sorry for asking, but I just have to: for how long have you been programming and specifically in nodejs/javascript? I'm asking because your query IS THE most ba
by kklisura 4y ago
Sorry for asking, but I just have to: for how long have you been programming and specifically in nodejs/javascript? I'm asking because your query IS THE most basic programming task and, imho, nothing "to figure out". It should take 20 seconds to write that code.
- zamnos 4y agoFor your main language, you should definitely be able to do that off the top of your head, but in today's polyglot programming world? 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.
- creek567 4y agoI've been coding for 10+ years. If you're doing any serious coding day to day, you're likely doing these type of queries 10+ per day or more so over the day it saves a ton of time. You're not going to code this many functions bug free from your first try. If anything, you'll spend at least 30 secons on catching edge cases or off by one errors. 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.
- varispeed 4y agoThinking about this kind of low level stuff sometimes is exhausting. Of course it is basic, but since it is basic why should I even think about it. 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.