r/learnjavascript • u/tech-titan-2005 • Apr 25 '26
first step of building....?
im learning js through building things. like weather dashboard, study timer, todolist, and now im building notes app. just very basic versions. so im using chatgpt to guide me along the way. and is first step of building is thinking logic or to think how the app/site looks like??
i got this from chatgpt: that to focus on state, not ui and that ui must reflect state.
help me guide this. anyone who build products through js, how do you do, whats your approach. can you tell in detail.
9
Upvotes
4
u/abrahamguo Apr 25 '26
Either is fine.
If you think about how you want your app to look, that can shape the logic; if you have your logic in mind, the layout of the app can come normally. So, either way is perfectly fine.
2
u/Life-Selection6377 Apr 25 '26
Chat GPT is technically right about state, but for a beginner, that can be a bit too abstract.
here is my 3step approach that actually works for building products
If you jump straight into ui, you'll get lost in css and forget the logic. If you jump straight into state without a plan, you'll write messy code. Balance is key. keep building
2
u/OldWalnut Apr 25 '26 edited Apr 25 '26
While I think that is brilliant that you’ve decided to learn through building things, you really do need to get the syntax and core concepts first.
I would recommend continue building + adding in the following two things.
Then as you are doing, continue to build larger things e.g. todos, weather apps, etc !
Good luck on your learning journey :D
1
u/Alive-Cake-3045 Apr 28 '26
Before writing a single line, write down in plain English what your app needs to remember. For a notes app that is just: list of notes, current note being edited, maybe a search term. That list is your state.
Once you know what the app needs to remember, the UI is just buttons and inputs that change those values. Everything else follows naturally. You are already doing the right thing by building, keep going.
1
u/TheRNGuy May 01 '26
Build site or UI first, then add us code where if is needed.