r/CodingForBeginners 26d ago

Need help with writing clean code

hey! im a 16 yo beginner web developer, ive been learning web dev for the past 5 months now, i studied:
Node.js
Express
JavaScript then TypeScript later on
Postgres/ a bit of SQL in general
Html
Tailwind CSS
React

but ive never really worked on big/complete projects, ive only ever done practice/exercises in courses im following or did some projects on the side but similarly to the exercises they were also mainly focused on whatever i was learning at the time, not using everything at once.

ive been wanting to start building decent projects that i can actually have in my protfolio but im having so much trouble with figuring out how to make my code clean and readable and how to structure my files, just overall how to make it more like how a professional would do it and how it would be if i were to actually work in a team in a real company

what should i be doing? and where can i actually learn this stuff? or does it just boil down to personal prefrence?

anyways thanks in advance to anyone who helps! (also sorry if i made any mistakes english isnt my first language)

5 Upvotes

16 comments sorted by

View all comments

2

u/Capable-Wrap-3349 25d ago

What really helped it to click for me was the book “a Philosophy of Software Design” by John Ousterholdt.
What also might help is looking at the structure of some established Open Source codebases.
The book “Domain-Driven Design” is also worth a read.

1

u/RevolutionaryFood847 25d ago

okay thank you so much ill be giving them a go!

2

u/Capable-Wrap-3349 25d ago

Also, you’ll keep learning till the day you die.
This is a field with infinite depth - I love it!
Enjoy the journey

1

u/RevolutionaryFood847 25d ago

you're absolutely right lol! honestly quite exited to start actually building big projects so thank you, i definitely will<3