Please consider. This is the rare time I'd actually use some sort of !remindme bot. Most lurking autodidacts, I assume, are hoping that you consider it too.
Come out of the woodwork, let him know! If I can, you can.
Drive-by code reviews (and maybe other types of annotated "audits", like for security bugs) would be a nice feature source repo sites might consider adding one day. It seems like a missing practice in open source development, code reviews (if any) are done by active developers once on check-in/merge acceptance. But as we see here code reviews can be a useful way to pay it forward too, not just new code / issue fixes, and done out-of-band there's no pressure to bow to the reviewer just to get something in; you can just have conversations and learn things.
The video format is a nice twist, in my distributed teams sometimes we've done "code review meetings" for some changes that are rather involved to capture some of the benefits of in-person / video code reviews.
I showed your project to my 12 year old son who has just started to learn programming (in JS no less!) and his jaw dropped. In addition to being a programmer, you are now a role-model.
Really well done.
Tell your son that it took me a while, and a lot of work, but it feels great to finish something (there are a lot of projects that I don't finish...). I began learning using Scratch a long time ago. They even featured me last year (the project was a solar system in which I used sine and cosine to calculate the rotation of the planets). I then used blocklike.js to move to JS. I watch a lot of YouTube videos. I like The Coding Train, Carykh, and Code Bullet, and I get a lot of my ideas from their projects.
Startup Idea: Start a slack/discord group for aspiring students between the ages of [pick your age range, say (8-18)] and start a mentoring/support group with these like-minds...
You'll learn, build relationships and some of you will go off and found companies together.
I've considered building a "coding buddies" site. Something that's been lacking about the whole Codecademy/Hacker Rank/etc sites is the lack of intrinsic motivation. An actual person with whom you can work could potentially provide that.
I also picked up sine and cosine at around that age; it was thanks to programming.
Various example BASIC programs (e.g. Lissajous curve and circle plotters and such) used those functions and from their behavior I kind of picked up the relationship to both undulation and the circle. I found out about the arctangent function, and from that I realized that it could be used for 3D projection. I made a proof-of-concept program that mapped some connected points in 3D (boxes and whatnot) to 2D by calculating the visual angles using arctangents: i.e. I plotted the angle between the line of sight and each point, rather than a simple planar projection. It resulted in the objects appearing in a very nice "fish eye" perspective on the screen, which was very pleasing. From all that I learned about radians also and how there are "two pi" of them in a circle, since the functions accepted radians and not degrees. You know how they say that necessity is the mother of invention; it's also the mother of learning trigonometric functions and whatever else.
I learned how to use sine and cosine for drawing circles when I was probably 9 or 10. It was years before I found out what they actually mean and how they work. I didn't even know what the curves looked like.
I've got a 10 year old who's been making a lot of stuff in Scratch since he was 6. I've been trying to think of how to phase him over to less limited languages and wasn't aware of blocklike.js, so thank you for that idea.
Having a lot of projects that you don't finish is completely normal, so don't worry about that.
>I showed your project to my 12 year old son who has just started to learn programming (in JS no less!)
It would be much better if he would start with Scratch, Processing, Smalltalk, or even Python. On JS he'll have to lose time coping with complicated build tools, horrible package system, async etc.
Great work! I made a quick Observable notebook out of your code, in case anyone wants to see what it does without downloading or running it on their own machine:
Hey looks good :)! Just a few things you might not know about:
Google String.prototype.padEnd. It’s built in to JS and should be able to replace your zero fill function. And instead of mutating the ruleSet array you should be able to use Array.prototype.map like this: const ruleSet = zeroFill(8, rules.toString(2))
.split('')
.reverse()
.map(item => parseInt(item, 10)); And you can clone arrays like this, instead of using loops: const oldArr = [...arr]; Also arrays are still mutable even if you assign them to const variables. I’d offer more help but I’m on mobile. Sorry for the poor formatting. Hope this helps anyway. Good luck!
Comments (283) 76 threads
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 a lot!
Come out of the woodwork, let him know! If I can, you can.
The video format is a nice twist, in my distributed teams sometimes we've done "code review meetings" for some changes that are rather involved to capture some of the benefits of in-person / video code reviews.
Continue this thread — 6 more replies
I showed your project to my 12 year old son who has just started to learn programming (in JS no less!) and his jaw dropped.
In addition to being a programmer, you are now a role-model. Really well done.
Tell your son that it took me a while, and a lot of work, but it feels great to finish something (there are a lot of projects that I don't finish...).
I began learning using Scratch a long time ago. They even featured me last year (the project was a solar system in which I used sine and cosine to calculate the rotation of the planets). I then used blocklike.js to move to JS.
I watch a lot of YouTube videos. I like The Coding Train, Carykh, and Code Bullet, and I get a lot of my ideas from their projects.
You and me both. :)
You'll learn, build relationships and some of you will go off and found companies together.
Continue this thread — 1 reply
Continue this thread — 1 reply
Continue this thread — 4 replies
Various example BASIC programs (e.g. Lissajous curve and circle plotters and such) used those functions and from their behavior I kind of picked up the relationship to both undulation and the circle. I found out about the arctangent function, and from that I realized that it could be used for 3D projection. I made a proof-of-concept program that mapped some connected points in 3D (boxes and whatnot) to 2D by calculating the visual angles using arctangents: i.e. I plotted the angle between the line of sight and each point, rather than a simple planar projection. It resulted in the objects appearing in a very nice "fish eye" perspective on the screen, which was very pleasing. From all that I learned about radians also and how there are "two pi" of them in a circle, since the functions accepted radians and not degrees.
You know how they say that necessity is the mother of invention; it's also the mother of learning trigonometric functions and whatever else.
Continue this thread — 2 replies
Having a lot of projects that you don't finish is completely normal, so don't worry about that.
It would be much better if he would start with Scratch, Processing, Smalltalk, or even Python.
On JS he'll have to lose time coping with complicated build tools, horrible package system, async etc.
Continue this thread — 17 replies
https://beta.observablehq.com/@jrus/wolfram-cellular-automat...
Continue this thread — 2 replies
Google String.prototype.padEnd. It’s built in to JS and should be able to replace your zero fill function.
And instead of mutating the ruleSet array you should be able to use Array.prototype.map like this:
const ruleSet = zeroFill(8, rules.toString(2)) .split('') .reverse() .map(item => parseInt(item, 10));
And you can clone arrays like this, instead of using loops:
const oldArr = [...arr];
Also arrays are still mutable even if you assign them to const variables.
I’d offer more help but I’m on mobile. Sorry for the poor formatting. Hope this helps anyway. Good luck!
Continue this thread — 18 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.