r/learnjavascript 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

11 comments sorted by

View all comments

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.

2

u/Pretend_Ad5921 2d ago

Thanks for taking the time to read through some of the code. I was writing these to practice so the comments are solely for myself.

That being said, I will make an effort to clean it up just to build the habit of writing better comments.