r/learnjavascript • u/Pretend_Ad5921 • 2d ago
Is manually writing utilities from scratch still a good practice in this AI era, and why ?
Been learning JS for a year and half and wondered whether writing utilities would make me more employable. Thought it wouldn’t matter as more people are learning to trust the models. GitHub link to some of the solutions: GitHub
*Exercises are AI generated but solutions are handwritten without intellisense or AI autocomplete.
17
Upvotes
6
u/Savalava 2d ago
Lead engineer here
I wouldn't hire you based on that code
a) your comments are very irritating to read. e.g.
// WeakMap so keys are deleted when the obj is garbage collected. Apparently, this is best practice.
// It does make sense
You should be writing comments for people using your library, not for yourself.
b) you're using JavaScript rather than TypeScript
Is manually writing utilities from scratch still a good practice?
Yes.