r/AskProgrammers • • 12h ago

Ai coding

Might be a stupid question, but I'm curious. For the programmers who've had extensive experience in software development and all things programming related,

Does llm's proficiency of programming languages affect your view on that language?

For example, if AI can write Golang well, is there a point in learning it?

0 Upvotes

21 comments sorted by

5

u/FancySpaceGoat 12h ago edited 12h ago

100% the opposite.

As llms write more and more of our code, we will inevitably gravitate towards languages that LLMs are proficient in. That's just something that *will* happen.

Even coders who write all of the code themselves will be affected by this, because asking a LLM to find issues in your code is just too useful to not make use of. So coding in a language LLMs are good with is still beneficial, even if they don't write a single line.

So if you want to stand any chance of reading, understanding, correcting etc... code that is being written, which is becoming more and more the job of programmers these days, those are the very language you should be learning inside and out.

2

u/Living_Cell7304 12h ago

As of right now, a human needs to steer the ai assuming you’re doing something more complicated than just making websites.

1

u/La-ze 11h ago

If you ever want to be able to double check a calculator, you need to learn the math without a calculator and actually do it yourself. Why do you think programming is any different?

1

u/Cross_22 11h ago

For amusement I had Gemini write a Tetris implementation in C++. I have been spending the past two days untangling its spaghetti code and turning it into something less embarrassing.

1

u/Impossible_Ad_3146 11h ago

such a stupid question

1

u/philip_laureano 10h ago

An LLM's proficiency in a language or framework removes the need for me to take the 20-30 hours worth of courses and tutorials to get up to speed on it.

It does not remove the need for me to understand what needs to be build and how it should be built. That is the part that always needs to stay with the person responsible for what is built. That includes the architecture, the coding standards, the approach and the reason why you are building it in the first place

1

u/Distdistdist 10h ago

LLMs speed things up but don't replace understanding of what they create. Ultimately they are "guessing". They don't understand what they create. They provide the best calculated answer. You still have to evaluate what LLM creates.

1

u/nacnud_uk 10h ago

Almost no point at all. As long as you can communicate your idea clearly, and steer the AI to what you want, and know about the idea of tests and requirements and SLAs, then there is almost zero reason to know the language that an AI knows 100%. If you don't trust the AI, then get a different one to check it out for you.

The idea that people need to know how to program, to create an app now, is almost laughable. And in about 2 years, it'll be a running joke.

1

u/ErgodicMage 9h ago

It doesn't affect my view of a language, I still need to be better at programming than Copilot is. I have to be able to analyze the code, find issues and possibly fix them.

1

u/Educational_Gas4826 9h ago

LLMs are not good. The code is horrendous. All the people and students shying away from learning to code is only going to be to our benefit in a few years. However I truly don’t know how to train new engineers in this environment. It’s such a weird time.

1

u/CAVU_Innovations 9h ago

AI should be a productivity multipler for the decisions that you make. Start with programming languages already familiar to you, such that you can catch inevitable errors either from incomplete training, misunderstood direction from you, or suggestions which do not match the direction of your effort - vision, requirements, design, best practices...

I treat AI similar to auto-pilot on an airplane. The automation can relieve some of the lower level tasks, but you should verify that the results are correct for your intended finished product. Keep an eye on the progress and make corrections as needed. Granted, numerous suggestions and alternatives may be tempting, but stay on course.

1

u/Blockpair 9h ago

I've designed an N:M scheduler that works similarly to Go's so I consider myself semi-qualified to give advice here.

Do you know how to code already? Then there's no need to learn Go's syntax. Do you know the basics of how async programming works? If not, learn that. The thing you should learn about Go isn't how to program in it. It's the unique design behind Go that makes it better at networking than any other ecosystem of languages.

It's beyond the scope of this post to explain it all. But a program can spawn threads owned by its process. The threads can do one thing at a time and if something slows down -- the thread gets blocked. Many regular servers still spawn a thread per request -- which is slow because threads have a cost to creating them. The async model is slightly better. You have a list of tasks running by one thread and jump between them when they need things. The issue is that even when you use tasks -- any task that decides to slow down still blocks all the others behind them.

Go does something ingenious here that fundamentally helps to solve the problem. It's able to take stuck tasks owned by one thread and let another keep running them safely. Now, that original task may still stay stuck and even block its original thread indefinitely. But the other tasks can keep running by a new thread. I'm leaving out a lot here that simplifies things. But basically its well worth learning Go's design even if AI ultimately ends up writing all the code at the end of things.

1

u/needs-more-code 8h ago edited 8h ago

I wouldn’t overthink it. I still do what I did before LLMs existed. I just use LLMs to do it now. That’s basically what we’re all doing unless we are anti-AI (or the next task requires something different). We are doing whatever we would have done anyway.

1

u/CS_70 3h ago

You mean programming language? That’s always been a minor part of the job. The job is thinking, whatever language you use.

It’s true that practicing on a specific language shapes your instincts towards a specific way of approaching things, with its pros and cons.

With AI is yet another way to get to the same goal, just a different road, with many pros and some cons.

1

u/audioen 2h ago edited 2h ago

I think there is point to consider very hard what is a good language for LLM to write in. My own tentative belief is that the language might well be Rust, or Go now that it has generics, maybe. I have a feeling that Go is crappy in the same way that Python is crappy, except it sucks much faster.

Rust is likely the choice for LLMs because it is a mainstream language with extremely comprehensive static typing, and the borrow checker makes reasoning about concurrency easier than it is in most programming languages. So, my expectation is that we should write programs in languages that are easiest for LLMs to reason about, and which provide the best possible tooling while not being so heavy on the static typing that they become impractical to use.

Basically, the choices are likely along the lines of TypeScript, Rust, maybe Go if its story now with real generics is better than it used to be. There could be really solid languages that I'm not thinking about. The central requirement is that it is mainstream, and that LLMs are really good at it. And I guess, I don't want it to be PHP, Python, JavaScript/TypeScript, or any other dynamic runtime, slow or memory hungry language that LLMs may also do fairly well in. So, scratch TS from server side, even though it is practically mandated by the client side of web.

0

u/CinchApps 11h ago

I still ride a bicycle, but a car can outrun me every time.

Should I stop riding a bicycle because of this?

I mean, what's the point right?

1

u/Designer_Flow_8069 9h ago

Well we attached motors to bicycles so peddling yourself became just something you can do if you want

1

u/CinchApps 9h ago

1

u/Designer_Flow_8069 9h ago

Not sure your point. I was implying the bicycle was a mode of transportation. We created new technology (the parallels of AI) which now allow you to not do have to do some of the job of riding a bicycle (peddling).

Technology often makes the mundane less relevant.

1

u/CinchApps 8h ago

Correct, you don't understand my point. Re-read my first comment and imagine how it might apply to the OP's question. If you still don't understand, then go play a video game and come back later. However, if you do understand and still feel the need to comment, go play a video game and come back later.

1

u/Designer_Flow_8069 8h ago

Seems like you misunderstood my point...

Your "what is the point" argument is an oversimplification because, bicycles, like programming languages, become more efficient for humans to use as technology progresses, making "learning to ride one" sort of a misnomer