r/learnprogramming • • Nov 04 '26

Why was programming so quick to accept and adopt AI?

What I mean is, say, in writing or music or video/film, there is a ton of pushback on AI usage, but it seems like programming just kind of accepted and quickly began integrating it. Why is that, exactly? To be clear, this isn't me bashing the use of AI by programmers. I'm just genuinely curious.

One thought I had is that programming seems to have always been much more democratized than other fields, so using AI trained on others' code isn't seen as stealing the way it is in the arts. I'm not an experienced programmer, I'm a hobbyist, but I always see experienced programmers talk about how they sometimes just Google code and copy it when they get stuck. And, as someone who isn't skilled in it, the programming community has always seemed very willing to help. I was in a beginner-friendly programming channel on Discord and I actually asked why these experienced programmers take the time to help out people like me who are just doing it for fun, and the answer I got was basically, "because I remember being a beginner." Do you think that attitude is what made programming so open to AI?

ETA: Wow, I was not expecting this post to get anywhere near this much attention. I'm just some dope who makes games in Godot as a hobby and generally sucks at programming. 😂

546 Upvotes

829 comments sorted by

View all comments

Show parent comment

12

u/Nedddd1 Nov 04 '26

yeah but i'm talking about how people view it. You can put thought and meaning behind literally anything, the same way one can disregard the human aspect of art and appreciate them solely for their technical aspect. But engineering is largely viewed as a field where you create solutions, without much regard for how the solution was achieved, cuz engineering is suited for it. So engineers become engineers, and people turn to engineers when they need a solution, not a piece of self expression. Art on the other hand is a field suited for self expression, getting messages across, etc, so artist become artists to do that and people consume art to experience that. Usage of AI heavily diminishes that part of the experience, and since this is what people came for, they will express disdain. For engineering however this isn't the case cuz if it works it works, and people came here to get things that work. That's why i said that "people don't much care for human aspect of coding", it's about what the group values in the field, not about what you can and cannot express through that field. Of course engineering has space for self expression and art can be purely functional or comissioned, but again i'm talking about what the fields are suited for cuz that's what dictates what people value in those fields, and that in the end drives what those people will be for and against.

i am not saying that engineers should stop caring or whatnot, i'm just saying that because of how the field is, both the consumers and engineers are less inclined to be against AI, as it does not hurt what most of these people came here for(when AI is used right, of course).

There are also other aspects like engineers using ai to do busywork while they do the actual, well, engineering decisions, that make accepting AI more compelling to engineers than to, say, musicians

8

u/Wonderful-Habit-139 Nov 04 '26

I don’t understand why you’d care about how the least skilled people at a thing view things. I don’t know why this happens in coding but not in other professional things like sports where you’d care more about the opinion of a professional than an amateur.

Ofc the normies don’t care about the coding process. They know nothing about it.

4

u/MarsupialMisanthrope Nov 05 '26

I’m a professional with a lot of experience. If you think I’m crying about never writing the majority of the boilerplate I’ve been writing for decades again you’re wrong. I want to write the fun parts of code, the parts where I’m given a problem and challenged to figure out how to write something new in a way that’s correct, performant and elegant, not glue code I’ve written a thousand times before, now with new names.

1

u/Wonderful-Habit-139 Nov 05 '26

Yes, if you write CRUD apps and don't actually program interesting things. A lot of experience doesn't mean much in that case.

And also, I've had to deal with many engineers generating code for boilerplate code because "it's obvious", yet still end up generating slop even in the most straightforward parts of the codebase. You're still generating tech debt by doing this.

If you want to make sure you're not unnecessarily generating tech debt, you have to review every single line of code. If there is code that is unnecessarily long and repetitive, then you need better scaffolding tools and abstractions for that. You're not meant to write code that is not necessary.

One example of that can be seen in the Python ecosystem. Instead of writing DTOs, and defining methods where you validate what each field's values should be, you just use Pydantic, define the types that you need, and that's it. You do the least amount of work that is required to actually encode the business logic, the rest of the code you should be able to automate away through abstractions and better dev tools.

1

u/MarsupialMisanthrope Nov 05 '26

I guarantee you Pydantic itself contains a whole lot of boilerplate because there are APIs it’s going to be using to connect to databases and a lot of the the code that interacts with those looks the same everywhere. Someone had to write Pydantic, and I guarantee you they weren’t going through writing the code that unregisters callbacks as database connections are torn down or the code that actually marshals data in and out of the database thinking about how much they loved writing that code.

0

u/Wonderful-Habit-139 Nov 05 '26

You don’t know how open source developers work. You’re projecting your lack of passion for coding onto them.

You should avoid talking about code and coding quality if you don’t care about it in the first place.

1

u/MarsupialMisanthrope 29d ago

Dude, I love coding and spent 25 years doing it professionally at a FAANG, have multiple patents (which are bullshit but the game is the game) and have contributed to multiple opensource projects. I’m the type of person who’s written things like Pydantics. You don’t get to any of that without loving your work. If I never write another fucking interface file it will be too soon. The work that got me the patents was the best time of my life. The repetitive scutwork around them was absolutely not.

I’d rather write unit tests than manually unregister callbacks, because one of those is useful and lets me define the actual expected behavior of my code and the other is just shitwork that falls out of C manual memory management (another space the AI I can have, please and thanks).

1

u/Wonderful-Habit-139 29d ago

I guess we’re on different levels of loving coding. But you’re not like the AI bros still so it’s ok. I take back that you don’t like coding.

However, my point about people underestimating what is boilerplate and what is not stands, and at some point you should figure out ways to do the repetitive work more efficiently with scaffolding and macros and reusing code. AI is not needed for that.

1

u/ArcticCircleSystem Nov 05 '26

As a least skilled people, I think we should explode sportsball.

1

u/CalebAsimov 25d ago

It does happen in a lot of areas. I mean how do you win elections? It's not by appealing to the most informed voters, they can make a choice on their own. It's by appealing to the absolute morons because they are always up for grabs since they have no idea how or why anything works or any memory of past events or history.