News for hackers. Stuff that matters.
Re:Show HN: I'm 12, learning JS, and wrote Wolfram's cellula... by test6554 on Wednesday August 29, 2018 @05:31PM (#17872249)
Great job! One way to improve this code is to add comments. Use comments to describe what each function does and what the parameters are supposed to be. Then you can tell at a glance what the function does without having to analyze the code later on.

Us old people tend to forget things.

Re:Show HN: I'm 12, learning JS, and wrote Wolfram's cellula... by kazinator on Wednesday August 29, 2018 @08:43PM (#17873289)
Comments in a twelve-year-old's code? For whom? Seven-year-olds? (I'm serious.)
Re:Show HN: I'm 12, learning JS, and wrote Wolfram's cellula... by tchaffee on Wednesday August 29, 2018 @09:39PM (#17873526)
How about for a 32 year old who is just learning JavaScript and comes across this repo? Age has nothing to do with it.
Re:Show HN: I'm 12, learning JS, and wrote Wolfram's cellula... by Humdeee on Thursday August 30, 2018 @09:37AM (#17876565)
Perhaps for himself when he's thirteen or fourteen and wants to refactor
Re:Show HN: I'm 12, learning JS, and wrote Wolfram's cellula... by mergejoin on Thursday August 30, 2018 @04:22AM (#17874952)
Why not learn good programming practices at an early age?
Re:Show HN: I'm 12, learning JS, and wrote Wolfram's cellula... by crooked-v on Wednesday August 29, 2018 @06:27PM (#17872611)
Also, if you use JSDoc a lot of modern editors can use that to automatically provide type hinting, documentation references on mouseover, etc.