I'm a relatively new dev so when I first heard about Chat GPT replacing jobs I got pretty scared. After spending some time with it practicing coding problems, I have no idea how any of you think that this thing is going to replace us any time soon (maybe one day though, who knows). Among a few other queries, I asked it to, "Write python code that takes a number, squares it, divides it by 27, and the converts the output number to a string, written in Roman numerals." And it spit out code that looked fine at first glance. So I started playing with inputs. process_num(10)? It spits out III. Okay. process_num(15)? IIIIIIII. What? process_num(20)? IIIIIIIIIIIIII. Okay. This thing does not work. My original intent was to see how it handled a code request that sounds possible but doesn't make sense (ie the request, as written, would clearly involve decimals (I said nothing about using ints) which Roman numerals don't support). I was unsurprised that it just barreled through, but I *was* surprised that even if we strip that part out, the answer it gave is still just blatantly wrong (for anyone curious, it seemed to think that the order of items the dictionary was constructed with meant that in a for loop, it would always go in that same order). Yeah, maybe if you feed this thing the *exact* LeetCode or Stack OverFlow questions it was trained on, it will give you an alright answer. But the critical thinking is just so clearly not there yet. This is one of the most popular LeetCode-ish brainteasers and when I asked for the slightest of variations on it, it gave me bad code. I'm sure that the technology will continue to evolve but I'm very confused as to why anyone is worried *now*. TC 80K (go ahead and laugh, it's okay)
80K is not bad for a new dev. I am sure you will climb up pretty quickly
I'll be honest with you. You've spoken like someone who hasn't learned how to effectively use ChatGPT.
Okay, so given the facts that Chat GPT didn't correctly identify the implicit issue with the request, and also didn't understand how a dictionary is looped over, how would you make a request that accounts for these things? Obviously I can put these into the request and just keep asking it to generate new code until it gives me something that works, but I don't see how I could have started from square 1 without putting in lines and lines of, "but account for that x might happen" into the prompt. What would you have written?
Yeah @Borx22 give us some intel on how you’ve learned to use it effectively.
I would approach the problem in the opposite manner. Start by generating failing tests then ask it to write code so the tests pass.
Tech Industry
Yesterday
2655
Quitting this Slave life
India
Yesterday
908
Modi is a legend, will be remembered for centuries to come
Working Parents
Yesterday
850
What do you think is wrong with a kid who got rejected by 9 colleges?
Tech Industry
Yesterday
2088
The end of Backdoor Roth?!
Tech Industry
Yesterday
334
Diversity: Indian and White Men
PM: hey look ChatGPT is a complete dumbass based this. Engineer: hey look all this is missing is a conversation from single digits to Roman Numerals. ChatGPT is awesome.
It is cool. Not saying it isn't. But it isn't coming for our jobs any time soon. "Yeah this thing is great at solving this leetcode problem about Roman Numerals, the only thing it's missing is correctly converting to Roman Numerals".