Live data from Hacker News

Ask HN: Anyone else struggle with how to learn coding in the AI era?

news.ycombinator.com

11–20 of 70 posts

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#12
post #2

Just don’t use an LLM for learning for doing projects at first. I only use it for things I already know how to do or for research. I treat it like a teenage intern.

> I only use it [..] for research.

And it can be pretty great for that. But I'm not sure if this works well for people who don't have experience reading API documentation or coding support sites like Stackoverflow. Beginners having a problem most likely don't know any abstract term for the problem they want to solve, so they'll feed their scenario meticulously to the LLM, causing it to output an already tailored solution which obfuscates the core logical solution.

It's like starting to learn how to code by reading advanced code of a sophisticated project.

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#13
Don't be afraid to go deep in simple sounding topics. The modern world is so full of learning material that there's the temptation to ingest as much of it as possible, but true learning happens when you give yourself time with one topic at a time. And I'd say this is more important than even, because generative AI is becoming great at precisely generating things, not so in understanding complex topics.

That said, learning the fundamental topics can limit your thinking first if they feel difficult, so it's an interesting question how to keep the naïve creativity of the beginner that's something that can really help when building with AI because there are less limitations in your thinking based on how things used to be.

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#14
I taught myself to code as a teenager back in the 80's on those early microcomputers (Commodore PET, Acorn Atom, BBC micro). Everything was much simpler, and easier to learn.

A career in software development 30+ years later, and I'm back learning from day one again, because LLMs are profoundly changing how we do this.

Example: two years ago, I built a website as an MVP to test a hypothesis about our customers. It took me 6 weeks, didn't look good, but worked and we used it to discover stuff about our customers. This week I've vibe-coded a much better version of that MVP in an afternoon. This is revolutionary for the industry.

The state of the art on LLM coding is changing fast and by orders of magnitude. They still get things wrong and screw up, but a lot less than they did a year ago. I fully expect that in a couple of years [0] writing code by hand will be completely archaic.

So, what does this mean for people learning to code?

Firstly, that hand-rolling code will become artisanal, a hobby. Hand-coding a program will become like hand-carving a spoon; the point is not to produce the best spoon in the most efficient manner, but to create Art.

Secondly, that commercial coding as a career will revolve around collecting business requirements, translating them into prompts, and orchestrating LLM code engines. This will be a cross between "Product Manager", "Project Manager", and "Solution Architect" in current role definitions.

Thirdly, that at least for next few years, understanding how code actually works and how to read it will be an advantage in that commercial career space. And then it'll be a disadvantage, unnecessary and potentially distracting. Soft social skills will be the primary factor in career success for this profession in the future.

The industry has been through similar changes before. Most obviously, the invention of compilers. Pre-compiler, programmers wrote machine code, and had to manage every single part of the operation of the computer themselves. Need a value from memory for an operation? You had to know where it was stored, clear a register to receive it, fetch it, and work out where to store the result. Post-compiler, the compiler managed all of that, and we were able to move to high-level languages where the actual operation of the computer was a couple of abstraction layers below where we're thinking. We no longer need to know the actual physical memory address of every value in our program. Or even manage memory allocation at all. The compiler does that.

And yes, there was a generation of programmers who hated this, and considered it to be "not real programming". They said the compilers would write worse, less efficient, programs. And for years they were right.

So, to answer your question:

> AI is clearlly changing the game here in terms of what it means to be a programmer.

> More concretely, what strategies do you use to both be efficient and able to ship / move quickly while ensuring you are also taking the time to really process and understand and learn what you are doing?

Embrace the change. Learn to manage an LLM, and never touch the code. Just like you're not writing machine code - you're writing a high-level language and the compiler writes the machine code - the future is not going to be writing code yourself.

Good luck with it :)

[0] There are lots of questions around the finances and sustainability of the entire LLM industry. I'm assuming that nothing bad happens and the current momentum is maintained for those couple of years. That may not be the case.

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#15
I'm an experienced dev, out of the industry now. I'm trying to level up in Rust, and here's what I do.

I bust my ass getting software written by hand using The Book and the API reference. Then I paste it into an LLM and ask it to review it. I steal the bits I like. The struggle is where we learn, after all.

I also bounce ideas off LLMs. I tell it of a few approaches I was considering and ask it to compare and contrast.

And I ask it to teach me about concepts. I tell it what my conception is, and ask it to help me better understand it. I had a big back and forth about Rust's autoderef this morning. Very informative.

I very, very rarely ask it to code things outright, preferring to have it send me to the API docs. Then I ask it more questions if I'm confused.

When learning, I use LLMs a lot. I just try to do it to maximize my knowledge gain instead of maximizing output.

I'm of the belief that LLMs are multipliers of skill. If your base skill is zero, well, the product isn't great. But if you possess skill level 100, then you can really cook.

Put more bluntly, a person with excellent base coding skills and great LLM skills with always outperform, significantly, someone with low base coding skills and great LLM skills.

If I were writing code for a living, I'd have it generate code for me like crazy. But I'd direct it architecturally and I'd use my skills to verify correctness. But when learning something, I think it's better to use it differently.

IMHO. :)

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#16
So long as you can prompt your AI to successfully debug your way out of problems - you don't need to understand code.

I appreciate this will be a deeply controversial statement here. As someone who's been coding for 25+ years and has some part of my identity in my ability to code this hurts and wounds me, but it is sadly true. The skills I've built and honed have little value in this new market. This must be how musicians felt when radio, records etc came about. My craft has been commoditized and it turns out nobody cared about the craft. They are happy listening to canned music in restaurants. Musicians are now like zoo animals where people pay an entry fee to see them for the novelty value. I exaggerate to illustrate the shift but part of me fears this might be more analogous than I dare to understand.

Code is about providing value to a business not in the lines of code themselves. Code is a means to an end.

If you want to understand coding for your own intellectual and hobbyist pursuit then please do. Generations of autistic-leaning people have found satisfaction doing so - but don't do it thinking it will remain a rewarding career.

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#17

So long as you can prompt your AI to successfully debug your way out of problems - you don't need to understand code. I appreciate this will be a deeply controversial statement here. As someone who's been coding for 25+ years and has some part of my identity in my ability to code this hurts and wounds me, but it is sadly true. The skills I've built and honed have little value in this new market. This must be how musi…

Okay, but most of the time you can't prompt your AI to successfully debug you out of problems if you don't understand code. Or when you do the AI will solve the problem in a way that creates a dozen more cascading problems an hour later. I've also been coding for 20 years now and I feel like my coding skills are just as important now as they were 10 years ago. Without them I'd never be able to use AI effectively.

The only exception really are greenfield apps like "create a toy todo app demo" or "scaffold this react project" but that's like 0.001% of real world engineering work.

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#19

I taught myself to code as a teenager back in the 80's on those early microcomputers (Commodore PET, Acorn Atom, BBC micro). Everything was much simpler, and easier to learn. A career in software development 30+ years later, and I'm back learning from day one again, because LLMs are profoundly changing how we do this. Example: two years ago, I built a website as an MVP to test a hypothesis about our customers. It too…

This is unbelievably depressing. Why to learn any skills at all, since some model is going to do it pretty soon and companies only need bunch of sales people, your Musk’s and Bezos’, to sell that crap. Rest of us rotten our brains online living on goverment hand-outs and designer drugs.

Re: Ask HN: Anyone else struggle with how to learn coding in the AI era?

#20

Is this like learning calligraphy in the typesetting era? Before the AI era, I didn’t know much bash, but I was a reasonably OK programmer besides that I think. I found by getting AI to write me a lot of bash scripts and following along and then making edits myself when I needed small things changed I ended up with the ability to write bash now, and actually kind of appreciated as a language where as before I thought…

This is a strange analogy, because learning calligraphy is essential for any type designer worth their salt. Read The Stroke by Gerrit Noordzij.

I don’t mean type designer I mean, the Gutenberg press. Before mechanical printing books were copied by monks using calligraphy weren’t they?
Post reply on HN