Liam, this is incredible ! I thought it might be useful for you to incrementally see how someone in industry would review or change this code, so here's a little code review via video: https://youtu.be/UkVOrcS--04 We very incrementally build up to the final code, which can be found here: https://gist.github.com/stevekrenzel/b490564bf1c7f98e232a6c8... Hope you find it helpful!
If you would start a channel where you review code of random public repos I would definitely subscribe. Well done.
Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
231–240 of 304 posts
Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#232Liam, this is incredible ! I thought it might be useful for you to incrementally see how someone in industry would review or change this code, so here's a little code review via video: https://youtu.be/UkVOrcS--04 We very incrementally build up to the final code, which can be found here: https://gist.github.com/stevekrenzel/b490564bf1c7f98e232a6c8... Hope you find it helpful!
If you would start a channel where you review code of random public repos I would definitely subscribe. Well done.
Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#233Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#234Far better than I could do at that age! I think the furthest I was getting at that time was building out really terrible looking web pages in Notepad and making awful little animations in BASIC and Turing (learning lang). Keep it up!
I was on my Atari 800XL making games at that age. I started hitting problems that I thought should be easy. Like, I wanted to draw circles. But the library was just pixels and lines ( when I got to assembly programming, suddenly lines became a problem too ). There was no googling the answers, but luckily I could go "Daaaad..", who was a physicist, and he happily introduced me to trig and I eventually learned to draw…
Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#235Liam, this is incredible ! I thought it might be useful for you to incrementally see how someone in industry would review or change this code, so here's a little code review via video: https://youtu.be/UkVOrcS--04 We very incrementally build up to the final code, which can be found here: https://gist.github.com/stevekrenzel/b490564bf1c7f98e232a6c8... Hope you find it helpful!
Thanks Steve! I watched your video and although I don't understand everything, I learned a lot. Separating my program into functions is a good idea. Your video clarified the map function for me. Through your video, I understood that I was running code multiple times, when it only needs to run once (how I parsed my rules was one of these instances that you went over in your video), so thanks for pointing that out. Aga…
Whatever you do, hold on to that. Never be mad about feedback just try your best to understand it, and if it's wrong explain yourself without getting frustrated, this is worth more than a dozen senior developers who explode at feedback (I would argue they're junior developers :) and you will have a wonderful career. Also look for good mentors, and don't be afraid to ask questions about direct feedback, if you didn't understand something he said just ask (this becomes an immediate learning opportunity and you will be better off for it), even if he doesn't get to answer, someone else might. This is a field where learning is endless, you will always learn something new as a software developer, new platforms are made all the time to be programmed on / with.
Having soft skills[0] will be the biggest asset you can have as a software developer, whether you do it for money or just for fun, if you have to collaborate in the open you will need to communicate with others. Nothing breaks a team like terrible communication and someone who rejects feedback out of pride.
Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#236Liam, this is incredible ! I thought it might be useful for you to incrementally see how someone in industry would review or change this code, so here's a little code review via video: https://youtu.be/UkVOrcS--04 We very incrementally build up to the final code, which can be found here: https://gist.github.com/stevekrenzel/b490564bf1c7f98e232a6c8... Hope you find it helpful!
I'm a long time coder and still liked watching your video just for watching someone else work in emacs. How do you get emacs to highlight all occurrences of map? Was it a keybinding for "highlight-phrase"?
Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#237Earlier quoted context omitted.
I'm 21 but I wish something like this existed when I was younger!
I'm 47. There were computer camps and clubs when I was a kid. They probably took a downturn, though, as computing went mainstream and turned into consumption of video games and, later, online socializing. Maybe you were either too late, or too early, depending on perspective. :)
Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#238Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#239Re: Show HN: I'm 12, learning JS, and wrote Wolfram's cellular automaton in Node
#240Liam, this is incredible ! I thought it might be useful for you to incrementally see how someone in industry would review or change this code, so here's a little code review via video: https://youtu.be/UkVOrcS--04 We very incrementally build up to the final code, which can be found here: https://gist.github.com/stevekrenzel/b490564bf1c7f98e232a6c8... Hope you find it helpful!
I wish this inspires clever people to produce huge amounts of parody-videos "refactoring" the same piece of code. :)