r/reactjs • • Oct 24 '26

Needs Help I really need some pointers

I read a few books on JavaScript and coding in general

This was in late 2025 and a few months later I started writing react js,
Ai has gotten so good at writing code, it is way better than I am.

I have pretty okay fundamentals of coding that I have been able to spin up some interesting projects with Ai.

But if you ask me what some parts of the code does, I have very little idea about it.

How can I catch up with so many years old coding experience and survive in this field if Ai learns 20x faster.

7 Upvotes

24 comments sorted by

31

u/howdoigetauniquename Oct 24 '26

If you use AI to write everything then you won’t ever learn anything. The best way to learn is by doing.

Software development existed before AI and people learned without it, so can you.

9

u/HoratioWobbleClassic Oct 24 '26

The top comment nailed it but I'll add something that worked for me. When the AI spits out a chunk of code you don't understand, go line by line and break it apart. Delete a section, see what breaks, then figure out why. I spent a whole weekend once just reverse-engineering a custom hook I didn't write, and by Sunday night it finally clicked.

Also you're not competing with the AI, you're competing with other devs who also have AI. The gap isn't between you and the machine, it's between you and someone who can read, debug, and refactor what the machine produces. That skill still takes time and effort to build.

Start small. Next project, try writing one component completely by hand before asking the AI for help. You'll be slow at first but it compounds fast.

1

u/h_45n Oct 24 '26

Thanks

4

u/Level1_Crisis_Bot Oct 24 '26

I'm a senior engineer, and about five months ago I mostly stopped writing my own code at work, and so did the rest of my team. The new models are now faster and probably better than I’ll ever be, but I want to say that only works because I can read everything they produce. Code comprehension is the thing you said you’re missing, so I would focus on that. Make the agents walk you through every block of code they wrote. They're geared towards being helpful. Make them help you. For React specifically, I would say learn the basic patterns. Look at rendering, state, when effects run, why re-renders happen, but don’t waste your time staying current on every API change.

One other thing, I still do a lot of javascript drills and algo practice in my spare time so I don't forget the fundamentals. Once you can read code fluently, start spending time on higher level stuff, like architecture, design, and devops, since those are the decisions you make before the agents write anything. The person who understands the system is still the one who decides what gets built. For now.

2

u/h_45n Oct 24 '26

Thanks

2

u/MrET97 Oct 25 '26

Try to write the boiler plate, create the empty files think about components and state and hooks and stuff then tell AI to implement them.

Honestly I don't think you need to worry about the minor details. But do review the output. Try to apply good engineering principles you can find anywhere on the web. Use AI to carry out these reviewb passes too and learn from it.

Think bigger, think architecture, performance, extendability. I know it might sound like oh how do you do that without knowing the details and fundamentals? Try using the tools to learn have things explained, ask for different approach suggestions, ask for tradeoffs between approaches so later you can prescribe the approach yourself and notice issues.

2

u/h_45n Oct 25 '26

Thanks

1

u/MrET97 Oct 25 '26

Another interesting thing to try is, since we have AI now pick out some popular libraries that solve similar problems. Idk Redux and Zustand or something. Have AI research them, and then discuss tradeoffs of their design and also tradeoffs of using each library as a consumer.

Alot of experience in the past came from using these technologies in practice over time in real projects.

4

u/No_Cattle_9565 Oct 24 '26

You have to force yourself to write code yourself. If you cannot do that at work, do it at home. If you don't understand something don't ask the AI instantly, look at the documentation before. Plan yourself before doing something. If you believe AI will replace us all, it doesnt matter, if you don't believe that you need to be better at the rest. If you don't understand something try to build it yourself from scratch. 

4

u/Made4uo Oct 24 '26

You don't necessarily need to learn every legacy pattern from 10 years ago to be productive today, but you do need to understand the logic AI generates for you.

The job today is shifting from typing out boilerplate by hand to orchestrating, reviewing, and debugging what AI generates. Instead of trying to memorize syntax, focus on reading the code line by line and understanding why it works. Knowing how system architecture and modern tools fit together is where your real value will be.

2

u/azangru Oct 24 '26

> How can I catch up with so many years old coding experience and survive in this field if Ai learns 20x faster.

People with longer experience are asking the same thing :-)

1

u/ihorvorotnov Oct 24 '26

Knowing the coding part isn’t the leverage now. Architecture still is (and will be).

1

u/Outrageous-Chip-3961 Oct 24 '26

this is the real dilemma we will all face soon. I can't see a way out of it without just thinking, we need to be able to do the majority of coding manually, and have AI assist. Rather than have the AI do the coding whilst we assist. It's the only thing I can think of at the moment.

1

u/JimmayDoad Oct 25 '26

"Im trying to learn a programming concept, got any pointers?

Good one, Op.

1

u/Remarkable-Treat-139 Oct 25 '26

Stop treating AI as your code generator and start using it as a tutor to force you to understand the logic

1

u/otheyhigh Oct 25 '26

Actual code (syntax) is not very important. As someone mentioned, understanding how things work is the core part that you need to understand. With React, you need to understand both how JS operates as well as how React renders. My suggestions:

React
- Go through the guide page on the official React docs. They have some good info on the various features of React and how to use them correctly. Things like useEffect, useCallback etc even AI might generate sub-optimal components (re-rendering light components is usually not too impactful and hence it’s mostly ok to not worry about optimization)
- Get a solid understanding of the React component lifecycle. The render loop is critical to build optimized apps.
- Use GH explore and check out some of the top/trending repos for React. Check out the awesome-lists for React.

JavaScript
- JS call stack, event loop, callback queue
- Pass by value, pass by reference (update vs re-assign difference)
- this and its context. Arrow vs named functions

1

u/GianniMariani Oct 26 '26

You can't catch up in the same way as you would have pre-ai. I place a very small wager that the code that your agent is writing is not exemplary code and in fact you probably don't want to replicate what your agent is doing. You want to think a little bit more carefully about how to make it so that your agent writes code in a better way. But then again, it could be that nobody cares anymore anyway, especially for UI code where performance is not the most critical nor a security critical in that scenario.

I tend to think that to get the best out of an llm, you need to use a declarative API or a domain specific language which limits the scope for the LLM to make mistakes or hallucinate. Now I've seen extremely good results with llms using domain specific languages or declarative apis. However, very few people I know care enough to push this boundary.

1

u/[deleted] Oct 26 '26

Best way to learn is to build something, can use AI as a tutor to literally train you on main concepts with coding tasks.

Not sure you will survive competition with AI, not sure I will with 8 YoE.

Can focus on quality guardrails with AI, tests, linters, etc. Again, will have to build something, preferably something you are using yourself.

1

u/PontyPandy Oct 27 '26

You can ask AI to explain the code to you. You can also ask it to create some exercises for you to solve. You're a human and your power is creativity. AI is a tool you can apply your creativity towards. Also, a warning, if you're new to coding then you won't recognize when AI doesn't do a stellar job. AI often has problems with code quality. I'd recommend you start studying coding best practices too.

0

u/KnightOfAntioch Oct 24 '26

Wrong language, pointers are in C. (Fuck I'm lame haha)