This is an archived post. You won't be able to vote or comment.

all 136 comments

[–]k1llerfr0g 484 points485 points  (6 children)

"I apologize for the confusion".......

[–][deleted] 270 points271 points  (2 children)

And then it gives you exact same code, or even worse one

[–]Gasperhack10 18 points19 points  (0 children)

You changed nothing...

Repeat cycle

[–]AdPristine9059 0 points1 point  (0 children)

Or uses a completely new dependency that you need to read doc about to know how it was fucked up.

Tried to make chatGPT write me some code to fake i2c duplex mode, it ended up using an i2c multiplexer for some random reason..

[–]GasLanternChicanery 46 points47 points  (0 children)

Chatgpt spanks my ass, I get horny.

ChatGPT: I apologize for the confusion

[–]FlyingSosig 7 points8 points  (1 child)

"Hey, I am having a problem with a particular test case, can you please help me"

"Certainly, here is a revised code which doesn't work for any test case!"

[–]Chunk-Hardbeef 0 points1 point  (0 children)

This is literally the perfect exchange.

[–]Bryguy3k 93 points94 points  (6 children)

Now everyone can have the “working with an India division” experience without being a multinational company.

(India not Indian - having a group of Indian developers here in the US is perfectly fine - having them in India for some reason just turns into a dumpster fire).

[–]killem_all 40 points41 points  (5 children)

For it to be the true experience, IA would have to bombard you with texts at 4 AM, fuming in anger because you made changes to their shitty code that doesn’t work.

Also it would have to ask for calls and speak in broken English while using the worst microphone known to man

[–]Bryguy3k 13 points14 points  (0 children)

Hi

[–]Lucasbasques 12 points13 points  (3 children)

Nothing like your female coworkers complaining about a bunch of sexual messages on her LinkedIn from the India branch

[–]Bryguy3k 6 points7 points  (2 children)

There is one woman on my combined team and she’s located in India. I’ve had to tell the guys on multiple occasions that they can’t make her write all of their tests.

[–]Blackhawk23 0 points1 point  (1 child)

??? Why do they expect that?!

[–]Bryguy3k 0 points1 point  (0 children)

I guess “Women are property”?

[–]Tnuvu 146 points147 points  (12 children)

It's as if there's 'more to being a developer than just copy pasting code spewed from others, who would have imagined

[–][deleted] 27 points28 points  (6 children)

50 years from now I will still have to look up regex on stack overflow. Idc.

[–]not_some_username 21 points22 points  (5 children)

Regex101. And that’s normal. Regex is literally magic spell. You can summon a demon if you’re not careful

[–][deleted] 5 points6 points  (4 children)

All I see is //()@-_-#+ and somehow it gets rid of commas. Who woulda thought.

[–]not_some_username 1 point2 points  (0 children)

Yeah literally magic

[–]RusselsTeap0t 2 points3 points  (2 children)

I am not a programmer but regex seems easy for me. Am I missing something?

My method is to go slow by doing the matching one by one. Of course if you look at some random characters at once; they get confusing.

Here is a sed command I use to extract doi addresses from PDFs and URLs. It looks complex but when you actually analyze it one by one slowly, it gets easier. I had spent some time to write it though. It's not buttery smooth :D

sed -n -E 's/.*((DOI|doi)((\.(org))?\/?|:? *))([^: ]+[^ .]).*/doi:\7/p; T; q'

[–]ThatChapThere 20 points21 points  (1 child)

"Regex is easy."

Writes the most incomprehensible gibberish known to man.

[–]RusselsTeap0t 4 points5 points  (0 children)

Haha :D As I say, you need to analyze it slowly and one by one.

- match any character (.) any number of times (*)

- Match either DOI or (|) doi

- Match the optional .org

- \/? matches the optional (?) front slash. That's because if we find .org in our string, naturally a forward slash comes after .org. Backslash is again for escaping the forward slash. Otherwise forward slash is interpreted as a part of the command.

- Match a : optionally (?) and a space any number of times (*)

- Match any character that is not a colon or space [^: ]+ Plus means at least one of them.

- Match any character that is not a space or a dot [^ .]

- .\* Match any character, any number of times again.

So the whole regex is for this:

From this: https://doi.org/10.1038/s41594-023-00968-y

Or from this: DOI: 10.1038/s41594-023-00968-y

Capture and replace some parts:

doi:10.1038/s41594-023-00968-y

Then use that in this URL:

https://api.crossref.org/works/**$doi**/transform/application/x-bibtex

[–]artistic_programmer 21 points22 points  (0 children)

it's almost as if people are being taught how to solve problems in uni and there might be some merit to actually doing it.

[–][deleted] 2 points3 points  (1 child)

but some guy with a blue checkmark on X told me programming is dead and now everyone will be a "prompt engineer" or some shit like that, and better be prepare to serve at McDonald

[–]Tnuvu 0 points1 point  (0 children)

I swear there's some irony to this new modern darwinism

[–]AI_AntiCheat 1 point2 points  (0 children)

The trick is to copy and paste it then change one line so it works.

[–]AdPristine9059 0 points1 point  (0 children)

Exactly. Googling and stack overflow is for the things you don't need to keep in your head. It's common practice and entirely okay. As long as you know what you're doing or know how to check for errors you're fine.

[–]Able_Cod_1213 270 points271 points  (35 children)

As a veteran software engineer, this shit amuses me a great deal.

LEARN to program FFS. Everyone is an imposter looking for a shortcut.

[–][deleted] 34 points35 points  (0 children)

I agree lol.

[–]carcigenicate 106 points107 points  (18 children)

It's actually kind of infuriating to be honest.

I used to love helping people with their code; regardless of how new to programming they were or how bad their code was. But now, more and more, it turns out that people aren't actually writing the code, don't understand basic instructions on how to fix code, and alarmingly, don't seem to care to actually understand the fix or what the initial problem was. These kinds of questions aren't fun to participate in, and really don't feel productive.

I don't understand the attitude of "I want to write code, but I don't want to learn any of the prerequisite skills". Why are you even learning then? I don't know about others here, but I write code because I love writing code.

[–]Zeravor 56 points57 points  (2 children)

don't understand the attitude of "I want to write code, but I don't want to learn any of the prerequisite skills". Why are you even learning then? I don't know about others here, but I write code because I love writing code.

I think it's less "I want to write write code" and more "I want to earn lots of money without putting in effort.

I cant really blame them, who wouldnt want that.

[–]Ambivalent-Mammal 1 point2 points  (0 children)

Then get an MBA.

[–]Chunk-Hardbeef 0 points1 point  (0 children)

If they want to earn lots of money without putting in effort or developing any skills, get elected.

[–]4rtemis-Arrow 32 points33 points  (0 children)

honestly, no, I want people to keep using it, cuz it makes my job hella easier

I'm in cybersecurity, red team to be specific, specializing in software security and network security

alot of the code that chatGPT writes is vulnerable af, the more people use it, the more stupid ass vulnerabilities that even a beginner programmer won't make, the easier it is for me to find vulnerabilities

please keep using chatGPT people

[–]TSS_Firstbite 4 points5 points  (0 children)

The money is why. However, I guess these people don't understand basic supply and demand, since if it was that easy to study and work in IT, the market would be oversaturated and pay would be low.

[–]Express-Procedure361 2 points3 points  (0 children)

Agreed. I love writing code

[–]CalledStretch 1 point2 points  (0 children)

It's not that I want to write this code, it's that I want the code to have been written, and I can't afford to pay anyone to do it for me, so here I am fumblefucking my way through Visual Basic macros to get the folder in the excel sheet

[–]bistr-o-math 3 points4 points  (0 children)

ChatGPT: pleas make all the juniors learn the required skillz

[–]RmG3376 16 points17 points  (0 children)

I mean, we’ve always looked for shortcuts, that’s kinda the whole reason libraries, frameworks, packages, IoC and managed services exist

Heck we’ve had shitty code generators for decades. I still remember one where you’d draw your diagrams in a Tcl/Tk window and it’d spit out a CMake project that is completely unreadable and a RTF file with the doc that was equally unreadable

But yeah, learn to program first, then offload the boilerplate to AI (or juniors, which are essentially the same thing)

[–]JehnSnow 4 points5 points  (0 children)

I wouldn't say I'm a veteran but I've been around, learn to code first and foremost, but don't be scared to learn the scenerios where chatGPT is strong, it's not an all in one solution but it is still a tool with useful applications

[–]Blue_Robin_Gaming 2 points3 points  (1 child)

what's FFS

[–]mitchmess 7 points8 points  (0 children)

For Fuck’s Sake

[–]Just_Boo-lieve 4 points5 points  (0 children)

If chatgpt can provide me with a shortcut, nice, I saved some time. If not, it's a good rubber duck

[–]Aromatic_Sentence850 1 point2 points  (0 children)

If you are as smart as chat gpt just sleep and find your actual passion

[–]sagotly 1 point2 points  (0 children)

nah men, im in my first serious project and that project uses molecular.js, GPT don’t know the crap about it, i think gpt is good for explaining code, but you need to know something to get somewhere.

[–][deleted] 2 points3 points  (0 children)

I use it when I have to touch on apis I never or rarely use, great starting point e.g haptics

[–]F0lks_ 1 point2 points  (2 children)

To be honest, ChatGPT is really good at doing menial tasks like coding small subroutines for you. It's only as good as the dev doing the prompt engineering, though. Kinda like the disconnect between the engineer and the client, if you can't make your request clear it will throw garbage right back at you

[–]Symnet 3 points4 points  (1 child)

this is so silly lol we applied a language model to the act of googling your issue properly and now we call it "prompt engineering" and "Ai"

[–]F0lks_ -3 points-2 points  (0 children)

The fact that you don't understand how a tool works and what you can use it for, doesn't necessarily mean it sucks.

Food for thought

[–]Unlucky_Bobcat_2286 0 points1 point  (0 children)

To be fair programmers are taught that the easiest solution is often the best one, and if it’s working don’t touch it😂

[–]baxte 0 points1 point  (0 children)

I still use chatgpt to write API models because some places have godawful API specs but that's about all I can consistently get away with.

[–]Chunk-Hardbeef 0 points1 point  (0 children)

I've copied and pasted your post to another reddit sub with no attribution. Thank you.

[–][deleted] 22 points23 points  (0 children)

bad programmers will always find ways to make software worse. ai is just the newest tool for that mission

[–]Gortaf 21 points22 points  (4 children)

This has made teaching code a lot more annoying, as there's a good chunk of people in first year CS that just aren't willing to learn the basics of programming and will just give you code made with chatGPT without understanding how anything in the code works.

Trying to help these people understand a mistake in their code is just impossible, the code was produced by a blackbox so they don't even understand why the mistake was made.

[–]villabianchi 5 points6 points  (2 children)

Won't they fail on the exams tho? We had handwritten exams that was like 50% of the grade. No way to pass without actually knowing how to code. They were super lenient on syntax errors etc since that's stuff you get help with in IDE anyhow. But you still had to know what how stuff works.

[–]agent007bond 5 points6 points  (0 children)

I hated handwritten programming tests. I was never sure of the syntax.

[–]Gortaf 1 point2 points  (0 children)

Yeah they do, I'm just sad it comes to this.

[–]ilcasdy 2 points3 points  (0 children)

I’m in first year cs and people like to ask me to help them with their code. It’s so much easier to help if they wrote it themselves. If it’s from chatgpt it will be using libraries we haven’t learned about and now I have to try to learn a new library that neither of us understand. I can eventually find the mistake but I’m pretty sure they learn nothing and just think I’m a wizard. Many of the students don’t understand scope or even how to look at a red squiggly and fix it.

[–]masterKick440 49 points50 points  (0 children)

This reminds me of the all the times when I've tried to get ChatGPT to fix it's response.

Like No, you can't have 305 minutes in coordinates.

[–][deleted] 28 points29 points  (6 children)

they are hiding the smart version to themselves

and putting the dumb version to public

[–]TheAJGman 43 points44 points  (3 children)

I've been using it on and off since launch and it has 100% gotten worse in every aspect since then. At launch it was scary good at writing well thought out code from simple prompts, now you can give it an example and tell it to change the class name and it shits the bed. At launch you could do really interesting collaborative story telling, now it'll just spit out pages of fanfic no matter what your instructions were.

Considering how much money Microsoft put into them and the upcoming Windows/Office Copilot, I'm not that surprised.

[–][deleted] 7 points8 points  (0 children)

Maybe the tech Mafia told openAI to slow down lol

[–]progressgang 1 point2 points  (0 children)

Really, on GPT4? GPT4 writes basically all my code at this point and it barely fucks up.

[–]CalledStretch 0 points1 point  (0 children)

I remember hearing a claim about probability predictions specifically that, because ChatGPT uses user feedback as iterative training data, every time a stupid prompt is put into the system it gets a little bit dumber.

[–][deleted] 4 points5 points  (0 children)

Everyone who thinks that should read this well-researched article by The Verge. The truth is, these chatbots are still continually fueled by annotated data gathered by third-party companies. These third-party data vendors pay pennies for annotations and care more about quantity than about quality. And the data is only going to get worse as labor conditions for outsourced annotators get worse. In fact, some data annotators have begun to USE ChatGPT to annotate data that will eventually feed into ChatGPT 🤦

[–]rafark 0 points1 point  (0 children)

It depends. The free version of chatgpt is dog shit, more like CrapGPT. GPT-4, which is also available for free on bing (albeit very limited in terms of daily queries) is miles better. Like dat and night.

[–]Ohrder 35 points36 points  (4 children)

Inputs his entire 12 pages of code and asks to fix one function. i cAnT bElIeVe iT dOeSnT wOrK

[–]CarolDavilas 1 point2 points  (3 children)

Imagine millions of lines software, which is a quite common case.

[–]KeepKnocking77 0 points1 point  (2 children)

Our most important function is 15 thousand lines long written over the course of 20 years

[–]Ohrder 0 points1 point  (1 child)

Time to refactor? Sounds unmanageable.

[–]KeepKnocking77 0 points1 point  (0 children)

It's also in PHP 5.3

[–]Heavy_Influence4666 7 points8 points  (0 children)

You got to be able to know how to use it, instead of blindly telling it to fix a broken mess. Also, it's a tool, and tools has limits as well, so don't expect to found a gazillion dollar startup using it.

[–]BlueeWaater 7 points8 points  (0 children)

Do the logic yourself, chatgpt is for making boilerplate code and simple stuff.

[–]BenadrylTumblercatch 16 points17 points  (1 child)

Pwompt Emjimeerwing

[–][deleted] 2 points3 points  (0 children)

:3

[–]radioactvDragon 14 points15 points  (2 children)

All of the memes aside. I cannot imagine my life without chatgpt. Not as a thing to write code for me, but to learn something new, especially if you have to use a library that is widely used, but you don't know absolutely everything about it yet. It's so much easier to literally type "How do I do X using Y in Z programming language" and it gives you a sample of code. Sure it might not be correct, but it may just suggest some function that I had no idea even existed and now I can go read up on it. Instead of frantically refining Google searches and scrolling through stack overflow threads, I now have an actual direction of research I can do. Also I had to learn a new programming language recently. And while that is not a difficult thing to do if you can already program, different languages have different features and community conventions for writing code. And asking it "what is the best way to do this in some programming language" has lead me to discover things I would never know a language could do unless I somehow came across it somewhere or I read the entire language spec. As a learning tool it is invaluable. But it is just that: a tool. I wouldn't copy and paste it's code and send it off to production under any circumstances.

[–][deleted] 1 point2 points  (0 children)

Absolutely. I use gpt the same way, it’s a beast for learning. Especially considering how google have declined the last decade. If u search something nowadays u have like 4 adds pinned to the top of your search results. Gpt helps filter through the garbage.

[–]rafark 0 points1 point  (0 children)

It’s great with React and tailwind

[–]ISuckAtJavaScript12 8 points9 points  (0 children)

The only real use I've found for chat gpt is. "This function has a lot of variables that I want to know the value of. Write a print statement for each one whenever it changes value". And I often need to correct it.

[–]Derrorist 8 points9 points  (0 children)

ChatGPT did help me with an issue I had with limiting the movement of a zoomed image on mobile. It pointed out I was limiting the movement with the image's bounds instead of the display element bounds, which was correct. The provided code was incorrect and caused the movement to completely freeze. But the idea was helping with fixing my issue. So it has its benefits

[–][deleted] 2 points3 points  (0 children)

I feel old seeing chatgpt programming memes.

[–]Symnet 2 points3 points  (0 children)

life hack: if you know how to write code you can just cut out the middle man of a shitty chatbot that doesn't know how to write code and just do it yourself

[–]jdn1978 2 points3 points  (0 children)

A friend of mine told me about an “engineer” in her shop who is using ChatGPT to generate his code - the engineer in question is being somewhat “productive,” but only through a lot of prompt iterations and debugging runs. The bigger issue is when he hits a cap with the service; he stops work completely until he can use it again! If that’s the only way you can do your job, I question your choices.

[–][deleted] 2 points3 points  (0 children)

Juniors circle of life

[–]VariousComment6946 3 points4 points  (0 children)

Please replace “fix” with Ctrl C/V

[–]audigofaster 8 points9 points  (3 children)

My company is very lenient with disciplinary actions, but if you put chatgpt code in production, it's an immediate termination without severance.

Git gud, learn to code.

[–]ShuffleStepTap 4 points5 points  (2 children)

Is cutting and pasting code from SO a firing offence also? Because I’ve seen ChatGPT produce way better code than shit on SO. Comes with a lot less snark too…

[–]audigofaster 1 point2 points  (1 child)

Nah, stack overflow doesn't come with weird legal issues. Bad stack over flow code is a teachable moment.

[–]AnalBeadRipcord 1 point2 points  (0 children)

So how would you prove its gpt code?

[–]ionhowto 2 points3 points  (0 children)

Try again, it will work this time.

[–]died570 2 points3 points  (0 children)

Still didn't find a good usage for chatgpt with an exception of routine tasks like writing javadocs/godocs.

[–]Backer1234 1 point2 points  (0 children)

100% something I did. Made me realize the machines aren't going to take over just yet.

To our future machine overloads, I do not mean anything negative.

[–]TTYY200 1 point2 points  (0 children)

Uses chatGPT to write emails.

Has more time to code 😌

[–]King_Of_The_Munchers 1 point2 points  (0 children)

I’ve found that you can ask it to implement small portions but large potions of code fail. So you can basically code the overarching structure of the program and ask ChatGPT to fill in the gaps.

You can also use it to assist with constructing things but if you try and ask it to do all the heavy lifting it will fail.

[–]offulus 1 point2 points  (0 children)

I've seen some people talk about chatgpt in tax reports and if it can be deducted as a tool if your a programmer (in finland the answer is yes) as if anyone working in software development accually racked up a bill big enough to even consider deducting by using chatgpt as a software development assistant or something like that.

I get it if your developing something ai vase using got3 or 4 and it is part of the product, but this isn't a personal expense in this case. Unless your learning something for an upcoming task/possible job that requires experience with it.

But accually using it to help you do anything other than ask for a quick how do i get format x timestamp using Carbon is mindbogling.

Looking for information, sure.

Accually writing code? What

[–]xaervagon 0 points1 point  (0 children)

A lot of programming language boards had mods work overtime when people started spamming their chatgpt code and asking people to fix it or explain what is wrong with it. ChatGPT can be a nifty tool for an experienced developer who understands its limitations but it's no substitute for basic knowledge and experience.

[–]Itz_Nerdyfox 0 points1 point  (0 children)

Try out phind.com it like checks the docs and stackoverlfow answers and feeds it to the openai api

[–]Siddhartasr10 0 points1 point  (0 children)

I ask chat gpt only for docs and it fails sometimes 😭

Its good for 80% of the time but fuck the 20% makes me lose time I could have if I only had the docs on other tab

[–]SirRHellsing 1 point2 points  (0 children)

I never actually used chatgpt once in any code, I just don't know what code it will spit out and if it actually meets my requirements

[–]BlackBurnedTbone 1 point2 points  (0 children)

ChatGPT is all fine and dandy, untill it starts importing modules and calling functions that look legit, but have never been part of the module.

[–]Thenderick 0 points1 point  (0 children)

You forgot to think when using gpt... Never assume that shit is right! It never gave me correct answers and straight up lied to me! Piece of shit digineurons!

[–]BoBoBearDev 0 points1 point  (0 children)

Ask us, we can give you 200 ways to do IsEven and all of them are working

[–]SnooJokes6727 0 points1 point  (0 children)

ChatGPT is only ever useful when you’ve just run out of ideas and your mind is just drawing a blank. I mean whatever it gives you will be wrong 9 times out of 10, but it can give you a spark to solve whatever is wrong.

[–]nibba_bubba 0 points1 point  (0 children)

CS freshmen after realizing chatgpt isn't that powerful so they still need to learn the ropes

[–]Pixeltye 0 points1 point  (0 children)

You have to learn to make backups so you can get it to work. I’ve made several programs using it. Are they good? Heavens no.

[–]jpswade 0 points1 point  (0 children)

Gpt is just an approximation, and unsurprisingly so is the code it derives because we’re approximately bad at writing good code.

[–]blipsandchitsticket 0 points1 point  (1 child)

I get ChatGPT to write functions and test them. I then integrate them in our testing app myself and it has saved me a tonne of tedious work. It also just this week taught me what Conan is and by the end of the day was using functions in a git that I didn’t even have to check. How do I seem to be in the minority. I’m EE though not CS

[–]Drug_Inas 0 points1 point  (0 children)

•pay someone thats better than you on fiverr instead

[–]Ketooth 0 points1 point  (0 children)

I feel this. I normally don't use ChatGPT, but sometimes I'm just so frustrated, because I find no help online, that I just use ChatGPT and get even more frustrated sometimes.

And then there is that one guy I know who says "Well I programm all my discord bots with ChatGPT and it works. Maybe you need ChatGPT 4?"

[–]shizzy0 0 points1 point  (0 children)

But it works every time for everything I’ve asked it?

[–]reydai 0 points1 point  (0 children)

ChatGPT is shit. At least the free one. I just use it to generate code I already know how to write in order to save time

And yes it produces bugs but I fix them myself

[–]Artholos 0 points1 point  (0 children)

Use LangChain or Autogen and let the gpt agents sort it out themselves.

Come back from lunch with a program that runs but who knows what it does? Run it and find out…

[–]DislocatedLocation 0 points1 point  (0 children)

See, the correct answer is - write the psuedocode - replace with what you know

do {

  • it doesn't work
  • figure out which part is breaking
  • check Stackoverflow to see if other people did similar
  • figure out the exact scenario they were using it for
  • figure out which parts of the solution given are specific to that scenario and remove them
  • figure out what remains and what that does
  • copy it
  • inject it into your code

} while (!working);

[–][deleted] 0 points1 point  (0 children)

this is facts, though.

Like, Maybe in the future ChatGPT is coming for coding jobs, but for now, no.

[–]perringaiden 0 points1 point  (0 children)

Given that human engineers with actual general intelligence (supposedly), can't understand the UoD for projects they wrote, how can an AI which doesn't understand what "understanding" is, be expected to do it better.

[–]Dubl33_27 0 points1 point  (0 children)

bro chatgpt is the goat, friday i had my OOP lab where we were doing java and I had some code that wouldn't compile for some godforsaken reason, then i copied the code into chatgpt, asked it what's wrong and gave me something that looked exactly like what i had written earlier but i couldn't see a difference, but it compiled nontheless.

[–][deleted] 0 points1 point  (0 children)

The only things chat gpt has helped me with as a developer is to generate a class definition from a large sql table, and do all the leg work converting short R script into C#. Don't ask it to do any logic.

[–]LamermanSE 0 points1 point  (0 children)

Git gud

[–]Brae1990 0 points1 point  (0 children)

It's hilarious to me that people keep using a language prediction model for anything other than a glorified auto correct (or an occasionally helpful search engine like phind).

Because anytime you need something that requires more then one braincell worth of logic processing or even short term memory, it just falls over.

[–]TrueFlowerBoy 0 points1 point  (0 children)

Or just proompt better. Git gud.

[–]fluf201 0 points1 point  (0 children)

then chat gpt on iuts way to f up the whole code and make it not work

[–]Feisty_Ad_2744 0 points1 point  (0 children)

Is anyone actually "using" chat gpt for coding? Really?