r/learnprogramming • • 23d ago

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. 😂

543 Upvotes

832 comments sorted by

View all comments

24

u/lskesm 23d ago

Programming is not art, we accept new tech and tools quite fast especially if it makes our lives easier.

Art is very different, it’s about the self expression more than the polished final product you make money on. If your art sells and you make money on it, great, but that’s not really the point of it. I come from the art (music and painting) background and I don’t know a single person that got into it to get rich and popular. The process of creating something is very therapeutic to many people I know.

AI “art” is awful, soulless and has no personality. Sometimes beauty comes from imperfection, mistakes and happy accidents.

Some things you just can’t replace with a robot and that’s ok.

9

u/atropicalstorm 23d ago

That’s funny though because I consider an elegant, concise bit of code that solves a problem tidily to be beautiful, almost like art.

And that’s the part that’s missing when LLMs spew out excessively verbose, over complicated solutions that technically work
 but are about 10x as many lines as they need to be.

Coincidence when they’re charging per token out, and per token in when you need them to maintain it?

4

u/Round_Abal0ne 23d ago

AI is pretty bad at making actually efficient code. And if you want you can absolutely make better, more efficient tools than AI will ever spit out. But it will just take far longer

→ More replies (3)

1

u/Afmj 23d ago

I get what you are saying, but this elegant piece of code is probably well made and works well, if you solution is the best one, then people will just copy it, because its the best one. You can like how it looks, but when trying to make a functional production most people don't want you to get creative, they want you to build something that works, and if that happens to be a nice looking code then good.

1

u/lskesm 22d ago

LLM spewing out excessively verbose, overcomplicated solutions sounds like a skill issue to me. Just saying.

→ More replies (2)
→ More replies (2)

5

u/MisterGerry 23d ago

Lots of people got into programming for the same reasons you mention for artists. There is a whole movement of people who write programs for free and receive no recognition or payment.

→ More replies (4)

4

u/Akarastio 23d ago

Tbh this is your definition. For many art is creation and cash cow.

2

u/lskesm 23d ago

That was 100% my definition of art and what I think it’s purpose is. I did in the end spoke for myself.

I do agree with you that some people make art to make money, but those are not the people that are opposed to AI.

17

u/snaidamast 23d ago

This is where you are completely wrong. Programming has always been both an art and a science. People who fail to understand that often make for bad developers and rarely accede to the software engineering level.

4

u/Illustrious_Read8038 23d ago

The vast vast majority of programmers do it as a day job and that's it.  They don't think of it as art. It's a job, and any tool to make the job easier is a benefit. 

→ More replies (1)

7

u/HenryFromNineWorlds 23d ago

99.99% of code is purely functional with zero intent to be art. Code can be art but it’s a vanishingly small subset of it 

4

u/LSF604 23d ago

your (in the general sense) perspective probably comes from what your specific role is. that number is a lot lower in (for example) game development

→ More replies (2)

5

u/mikekchar 23d ago

I'm a person who treats programming like poetry. To me it is a literary art. However, I put it into the category of "can be an art" in the same way that painting "can be an art" even though usually when you paint a fence, it isn't art.

Programming where your goal is to produce an artefact (rather than the goal of simply writing code) is, at its highest levels, a craft. But, again, not everybody does that. Is a craft art? I think it can be, but it also doesn't have to be.

I find it funny that "artisanal" is spelled "art is anal". It always makes me laugh. Artisanal crafts have enormous attention to detail. I don't think this is quite enough to propel it to the lofty heights of "art", though. IMHO, with art, there is an effort to communicate something to the person experiencing the art. This is one of the problems I have with programming as an art. Often there is no viewer. You write code, but nobody reads it.

I am unapologetically an "artsy fartsy" programmer and I get very frustrated if I write code at work and for one reason or another, nobody reviews it. I don't care if you don't like it. I don't care if you want me to change it, ultimately. I just want someone to read my code at least once. To me, that's the essence of programming as an art.

Having said that, there are artistic expressions that use the programming language as the tool, rather than the expression itself. There are lots of "art games", for example. However, this doesn't usually translate well to the commercial world of building endless web apps, for example. Again, this lends itself better to being a craft.

With AI, it becomes problematic. The code that AI writes is, by definition, not an artefact (something which a human has produced). I think AI can be used effectively as a tool to enhance the process of the creation of art, but you must put yourself, as the programmer, in the center of the production. I think of it similarly to the difference between using a paint brush to paint a picture and using a camera to take a photograph. Both can be art, but with the latter, it isn't art if you simply take random photographs. The art is in the appropriate use of the tool to communicate to the audience.

Aside: To be fair, randomly splattering paint on a canvas with a paint brush is also not artistic in my opinion... The extent to which it is art depends on the intentionality... but I suspect this would be a point of contention for many famous modern artists ;-). I will admit to enjoying the strategic use of chaos in some media, so perhaps I could even be convinced for some situations.

I think of "engineering" as an activity that builds withing constraints in order to hit specific safety or performance targets. Engineering requires understanding the behaviour of the properties of the materials you are using, measuring your application of those materials and being able to quantify the extent to which your artefact will hit the targets. To me, this is completely disjoint from art. While it will often use science to achieve its goal, engineering is mostly an application of design within measurable constraints. For programming, the best examples of engineering are real time systems that guarantee specific performance, or embedded systems that guarantee memory usage, etc. These days engineering is getting more and more important, but back when I was starting out as a programmer, almost nobody did any actual engineering. I will say that the average programmer still does absolutely no engineering at all. They neither know their performance targets, nor understand how to apply constraints in their programming to hit them.

Looping back to the top of this exceptionally long comment, I admit that poetry is really just prose with constraints (something this comment could certainly benefit from). Artistic programming often imposes constraints for artistic reasons. I think that well engineered solutions can often be artistic. However, I'm not sure that I agree that the arrow points from art to engineering. My experience has been that the opposite is more often true. A person who works hard at their engineering can sometimes find themselve producing a work of art.

Yes, I think about this stuff far too much :-D I hope you found it entertaining, even if you don't agree.

2

u/Neither_Berry_100 23d ago

I also really care about the quality of my code. I don't necessarily look at it as art the same way you do. But I clean up AI code heavily. And that is after very detailed prompts and such. Heck just now I noticed it was casting a variable every loop (processing pixels in an image). I pointed it out and suggested fixing it by using better types and it gave me the solution. Most AI coders wouldn't bother with this level of detail. And that was only one thing I fixed.

4

u/C0nf0rt4blyNumb 23d ago

He might be wrong on the concept of art and even in that no one has a definitive response. It’s a point of divergence. But he answered the question nonetheless. He’s far from “completely wrong”.

My opinion is that programming is not art because art comes from subjectivity. From how the artist interprets the exterior, internalizes it and chose to express that. That is influenced by its culture and personal experiences. Programming is objective. If I share a piece of programming here and it is wrong it is objectively wrong. There are patterns and rules that are universally followed. I could say creating an innovative product is art, but programming is just a repetitive step.

7

u/snaidamast 23d ago • Heartwarming

Programming is art in the sense as to how a developer goes about creating the code for is or her project. I have been in the profession since 1974, retiring after 44 years of professional work. Nonetheless, I am still heavily involved in the coding of projects on my own.

For many years,many of us in the field took pride how we created our code and developed our own unique styles. That was the art.

However, I can understand your viewpoint given that in recent years so much has been done to relegate programming to just a job of mundane repetition. And it may seem like that for many younger professionals given the horrible environments that they are employed in.

Nonetheless, I suspect once the AI hype collapses (and it will), the AI companies go bankrupt (which they will as well), and AI becomes just another tool in a professional's tool-kit, the art of programming will slowly return to our industry.

Look at it this way, if they built modern aircraft in the same way that our profession is now forced to produce code, such aircraft would never get off the ground. And this has been the down fall of the Boeing Corporation, which in 1995 won the international award for excellence for its 757 Project.

5

u/lskesm 23d ago

I think you’re pushing the “art” here a little to far. Don’t get me wrong, it absolutely is a craft for sure and enthusiasts can find beauty in well written code. I do appreciate elegant solutions, well organised projects, innovation and all of that. I take pride in my work, but so does the the bricklayer, an electrician or a plumber and they’re not necessarily artists (they might disagree, who knows)

Art is subjective, my definition may not match yours, your may not match mine and it’s absolutely fine.

I shared my opinion about AI adoption between tech professionals and enthusiasts vs artists and that’s all you got out of it?

→ More replies (5)

1

u/Spirited_Bag_332 22d ago

You could not be further from the truth. Your "universally followed patterns and rules" are just suggestions and is nothing that should be adopted blindly. Programming is extremely subjective or we would not have all those discussions about code styles, architecture and good/bad practice (while both practices would work).

1

u/Odexios 21d ago

Programming is not objective. There are objective criterias on which you can validate part of the output of programming, but the code itself, the process, and a plethora of small and big decisions that affect programming are drenched in subjectivity. Even the output of the process itself, the actual program, will be wildly different depending on the programmer(s) who took care of the process.

The moment you get out of simple algorithmic programs, there is a world of ambiguity, subjectivity and artistry in the process of programming. Are you a professional developer?

1

u/Several_Clue9859 22d ago

Your definition of art is wrong. Art has no correct answers. Art does not need to have a use. Art can be entirely useless. There is "map" for creating art. Programming was never an art. It is always a science. There are wrong answers, there is a map of how to do things. There is no such thing in the arts. 

1

u/yabai90 20d ago edited 20d ago

Writing code is a science but not an art at all. Programming can be an art if you consider it as a field. Software création is an art yes. Writing code absolutely not. You can have fun doing so and make it beautiful yes (subjectively), that doesn't really make it an art. Its purpose is function, not expression. That being said "art" has a subjective and vague definition so if for you code is an art, then it is for you. Both can be true. But generally speaking you write code to make the software you want. Code is like the paint tube and your brush. It's a tool, not the final piece of interest. If tomorrow painters have a new brush that can change itself into various type of brush and generate the color automatically that doesn't change the art piece. You will paint faster, maybe better but it just made the art more accessible and faster. The painting is still you.

1

u/nextnode 20d ago

Most of the field disagrees with you. It is engineering.

→ More replies (4)

2

u/Important_Citron_340 23d ago

Nah programming is art but artists don't care

1

u/Sad_Tale7758 18d ago

Why is programming not art? Are you saying what this guy does isn't art?

https://www.xordev.com/arsenal

→ More replies (12)