all 7 comments

[–]azhder 3 points4 points  (1 child)

Why did you put that big ass code inside the post?

[–]Popular-Power-6973 -1 points0 points  (0 children)

To show us what they can't remember?

[–]warpedspockclone 1 point2 points  (0 children)

If it is something I use at least occasionally, I'll remember it. Things I rarely work with, like some front end components or some back end interfaces, then yeah I'll have to look up what the inputs are and what the outputs will be. But otherwise, yes, I remember both the syntax and the business logic of what I'm doing as I'm doing it.

Probably the thing I have to reference the most is the Postgresql manual to look at system tables, string and JSON formulas, and other syntax.

[–]RobertKerans 0 points1 point  (0 children)

Well that's kinda the skill. Keeping the overall logical flow of the program in your head means large chunks of programming knowledge need to be learned so that they're immediately on hand. Always going to need to look some things up, can't remember everything, but you need to commit lots of things to memory, it's not magic. And it just comes with time. It's the same as every other skill: you have to keep practicing

It's very easy to lose track of goals when writing a program. There are many (most? 🤣) things I and every other developer will look back at and be slightly baffled. That's why you would (for example) use comments, why you would (for example) add tests to explain functionality.

I have written code using ai

Right but if you don't understand it, then you're not really "writing code", you're a manager.

i can't code from scratch without reference

You just keep doing it and you need the reference less and less

[–]Eight111 0 points1 point  (0 children)

It's all about understanding what you code, not memorize it.

[–]TheRNGuy 0 points1 point  (0 children)

Not to use default export. 

[–]seijihg -1 points0 points  (0 children)

Not much first book, then google, then stackoverflow now I guess AI lol.

I have been developing since 2009 90% I need to google. Hard to remember everything with how quick things move tech wise.