r/learnprogramming • • Apr 14 '23

I'm 39 and I'm learning programming amid talk that programming is dying.

I know that odds are not in my favor. I'm 39, with a wife and two kids. I'm learning alone (what they call self-taught). I have a job that has nothing to do with programming, so I code in my spare time.

Occasionally I hear opinions that programming is dying because of chatgpt and whatnot. And yet I keep going because of the kick I get out of solving problems. I don't expect to become a professional software engineer, but maybe I will, who knows.

So what I want to say, I guess, is keep grinding if this is your thing.

Ignore the noise.

1.6k Upvotes

511 comments sorted by

View all comments

Show parent comments

75

u/Blando-Cartesian Apr 15 '23

As pointed out by Kevlin Henney and others on Twitter, development shifts to doin a lot more testing and debugging; The parts that everybody wants to avoid.

People who are exited about generator AIs don’t understand how much that sucks. Development is already mostly debugging.

47

u/dkarlovi Apr 15 '23

I've used ChatGPT a few days ago to write an algorithm for a problem. I've described the problem with test cases (few shot), it wrote the code, I've tested it and it works. That part is IMO amazing.

It still doesn't know why I need the algo, what problem it solves and why, what are the relevant examples and why, if it actually works, etc.

I think going forward I'll be using a lot of AI exactly like that: well defined isolated chunks, I know I need them, it can crank them out, I integrate and test them.

I also see a future where these isolated chunks become larger: I write the tests upfront, it writes the code for them. TDD will become a mainstream practice.

45

u/douglasg14b Apr 15 '23

As pointed out by Kevlin Henney and others on Twitter, development shifts to doin a lot more testing and debugging; The parts that everybody wants to avoid.

The majority cost of software is already testing, debugging, and maintenance...

Literally the most expensive part of software development.

It's uneconomical to have AI write code that is even worse to test, debug, and maintain. Humans already do a spectacularly bad job of that by themselves. Making it worse just means less software gets shipped.

12

u/SalamanderOk6944 Apr 15 '23

Haha I spent a disproportionate amount of work protecting the product from the (bad) ideas of designers and engineers.

Not even debugging code, but debugging the thought process behind making a software product.

The problem with AI generators, imho, is that you have to be able to define a problem well in order to get valuable AI generated material. Else, you're just going to have to do all the iteration yourself, anyways.

Which leads to creation... needing some kind of machine learning algorithm to figure out if the new product is better than the old (or alternately, us all refining code until we arrive at a desired product). At a certain point, there aren't enough of us to test all the iterations that are happening... so that critical mass is reached pretty easily (based on my opinion)... and we may as well be back at refined products. The AI should do the heavy lifting to outfit these products, but I see large problems happening from yielding creative reigns.

35

u/[deleted] Apr 15 '23

You can’t have the good without the bad. It may make debugging a larger part, but in that we will be pushed to develop better tools and methods. The debugging process will also be shorter in many aspects, for example no more spending hours looking for a misplaced or forgotten character thanks to tools like AI.

We can’t stop advancing because we don’t like the boring part of something. End of the day there’s a boring part to everything in life.

16

u/J_Bunt Apr 15 '23

Most reasonable comment so far. I remember when I started learning by doing, I mistook a backtick for a single quote, took me an hour of almost pulling my hair out til I figured it out, lol. Also, AI can only generate code as good as your descriptions are, so yeah, we're far from not needing software engineers.

2

u/Slip_Freudian Apr 15 '23

Fuck, I didnt even think about this aspect. If so, there might be a lot of streamlining.