Live data from Hacker News

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

news.ycombinator.com

21–30 of 70 posts

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

#21
I think it's nearly impossible to "learn" to the same depth when someone else writes the code: it doesn't matter if its your teacher, friend, coworker, or AI writing the code. There absolutely is a difference between having to toil to come up with an answer, fail, fail some more, work through design flaws, then eventually come up with the right answer. You learn a lot in the process.

Versus someone or something giving you the, or even several, correct answers and you picking one. You are given what works. But you don't know why, and you don't know what doesn't work.

Learning from AI coding probably is somewhere between traditional coding and just reading about coding. I'm not sure which one it's closer to though.

However, it may not be necessary to learn to that depth now that AI coding is here. I don't really know.

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

#22

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…

True, but it very much depends on the domain and complexity of stack you're working in. For a lot of crud type dev work the problems are common to many and AI will have no trouble.

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

#23
Imo you need to struggle to learn and make things click.

I don't see why even with Ai you won't need to have a solid understanding of the parts of computing programing is built on top of.

Even if your prompting, you need to know what to prompt for. How are you going to ask it to make it faster if you don't know it can be faster, or if you waste time on trying to make something faster that can't be?

Go through something like cs classes from MIT and do the work.

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

#24
One can use AI to lead you to better sources. The issue I face is, whenever I search something I want to understand in a search engine, the first 10 links are always low-quality SEO links, or surface level AI generated tutorials. There is a treasure of high-quality blogs, books, interactive tutorials out there which don't show up when you search for it. For example, if you wanted to learn socket programming, you'd be better off following Beej's guide to socket programming instead of 100 g4g pages. Similarly, for Bash, you'd actually understand how every word you write works instead of just memorizing 20 commands if you followed TLDP's book or lhunath's guide. How do you find these resources? Use Perplexity or Reddit's AI to search for high-quality resources.

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

#25
> "the optimal path is somewhere in between"

I think this is the correct answer. Also we technically never stop learning. There's always some new coding trick that alluded us until AI spits it out.

My 2 cents: Switch to chat mode from agent mode and have better chats about approaches to code. I'm constantly challenging AI to explain its code, including talking about pros and cons of this or that method, and even the history of why certain new features were brought to javascript for example. It's also fun to query the AI about performance optimisation, presuming we all want the least amount of cycles used for the given procedure.

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

#26

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.

[deleted]

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

#27

Drop AI, open a basic editor and write everything by hand without asking anything to AI. Do searches by yourself. That’s how world worked for decades pre 2022. Debug by your own, without asking anything to AI as well.

+1

If you really can't drop the AI, ask it stuff when you are really blocked, but ask it not to provide code (you need to write it to understand and learn), but I suspect you'd be better served by a regular web search and by reading tutorials written by human beings who crafted and optimized the writting for pedagogy.

It will probably feel slow and tedious, but that's actually a good, mpre efficient use of your time.

At this point of your journey, where your goal is above all to learn, I doubt the AI works in your interest. It's already unclear it provides long term productivity boost to people who are a bit more experienced but still need to improve their craft.

You don't need to optimize the time it takes to build something. You are the one to "optimize".

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

#28
I don’t try to ship quickly. I started learning programming 2024, I’d say I’m pretty good with Python, proficient in vanilla web tech, ok with C, and I know basics of React/Fullstack. Starting from nothing I’d say I have progressed very fast, I follow a uni CS course. LLM’s have certainly helped in explaining concepts and to learn, but I don’t use them to code pretty much at all.

I recognised that my weaknesses are more in understanding the mathematical fundamentals of computation, so now I’m mostly studying maths rather than coding, currently linear algebra and propability theory. Coding is the easy part I’d say. Hopefully I get to concentrate on the study of my sworn enemy, algorithms, at some point.

I’d like to be able to do low-code and graphics/sound -programming some day. Or maybe use that knowledge some other cool stuff, if we are all replaced by robots anyway.

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

#29
I was talking about something similar with a friend before, I told him internet made people lazier, automation made people weaker, and AI apparently will make people more stupid.

Probably in 10y from now, it will be a flex if someone is building or doing stuff without using AI, just like now if you are using a manual screwdriver instead of impact driver or actually going to the library to research a topic instead of googling it.

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

#30
My two cents as a university teacher:

In my view AI tools are a sort of super-advanced interactive documentation. You can learn factual information (excluding allucinations) by either asking or looking at the generated code and explanations of it. But in the same way documentation alone was not a sufficient learning tool before, AI is not now.

What AI cannot give you and I suggest you to learn through other resources:

- algorithmic proficiency, i.e. how to decompose your problems into smaller parts and compose a solution. You don’t necessarily need a full algorithms course (even though you find good ones online for free) but familiarising with at least some classical non-trivial algorithm (e.g. sorting or graph-related ones) is mind-changing.

- high-level design and architecture, i.e. how to design abstractions and use them to obtain a maintainable codebase when size grows. Here the best way is to look at the code of established codebases in your preferred programming language. A good writer is an avid reader. A good programmer reads a lot of other people’s code.

- how programming languages work, i.e. the different paradigms and way of thinking about programming. This lets you avoid fixing on a single one and lets you pick the right tool for each task. I suggest learning both strongly-typed and dynamic languages, to get the feeling of their pros and cons.

That’s an incomplete list from the top of my mind.

You can still use AI as a tool in learning these things, but good old books and online resources (like Coursera) worked really well for decades and are not obsolete at all.

And the last thing is the most important: curiosity about how things work and about how to make them better!

Post reply on HN