Lurker News

Comments (283) 76 threads

Show all comments

Showing thread 2 of 76

sramam2 replies#
Congratulations!

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.

liamilan4 replies#
Thanks a ton!

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.

FactolSarin1 reply#
> there are a lot of projects that I don't finish...

You and me both. :)

dajohnson89#
He's one of us :)
samstave3 replies#
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.

elliotec1 reply#
Starting a Slack group for students is a good idea, but decidedly not a startup idea.

Continue this thread — 1 reply

_hardwaregeek1 reply#
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.

Continue this thread — 1 reply

jakecopp4 replies#
I'm 21 but I wish something like this existed when I was younger!

Continue this thread — 4 replies

sramam2 replies#
sine and cosine last year? Now I want to know what your parents are feeding you!!! ;)
kazinator2 replies#
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.

Continue this thread — 2 replies

danellis#
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.
rothron#
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.

flavio815 replies#
>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.

skeeterbug1 reply#
Is this serious? I started programming around 9 or 10 on a Commodore 64. I would go to the local library to get programming books for it. Now you can hit F12 in your browser and get a powerful console into JS. JS is fine, encourage the thirst for knowledge.
not_kurt_godel4 replies#
JS is an objectively bad programming language. It is not fine, it is just annoyingly common and convenient. The main advances in its ecosystem are related to transpiling it from other, saner, languages. If he has fun writing JS, then great for him. He's 12, he'll do it if he wants. But it'd be doing him a disservice not to open his eyes to much wider, greener pastures of the programming world.
cztomsik#
JS was my second language (around the same age as he is, which is more than 15 years ago) and it is still my favourite one. You give zero arguments but I won't make the same mistake:

- devtools are unmatched for browser development (and getting better for node)
- absolutely best language for prototyping (dyn. typing, monkey-patching, eval, and a lot of other "evil" things you usually don't need in further phases but it's really great to have them for this exploratory phase)
- I respect that some people prefer static typing and code-completion but I prefer writing tests and having few well-known libraries for which I don't need completion at all
- no threads, no mutexes, no locks
- object literal, rest-spread, destructuring, classes are just ordinary (and mutable) objects, etc...
If you think people are doing JS just because it's the only language in the browser (not true anymore) you should seriously reconsider. There were to-js compilers before and it was always awful (remember gwt? dart?)
Of course, it depends on use-case, JS is not the best language for everything.

ascorbic#
Transpilation certainly has been important, but in no way is that the only or even the most important advance. The most significant advances are the massive changes in architecture that have turned it into a modern, fully-featured language. You can use most of those in all modern browsers right now. It might not be the best language, and isn't a great choice for a first language to learn, but it is a good one to learn next.
exDM691 reply#
JS is a bad language but it's the easiest environment to set up.

Back in the day we started with Qbasic not because it is a good language but because that was easy to set up, we all had it and our friends had it and our school computers had it.
And JS is less bad a language than Qbasic.

kilon1 reply#
That's debatable. It's not as if downloading Python and making your first app will take you more than a few seconds, minus download time.

Set up is rarely an issue, once you set up a language even as complex as C++ its completely automated. You press a button and magic happens.
If the biggest selling point of a programming language is that it comes preinstalled with the OS of your choice, its not much of a selling point when the average user downloads and installs GBs of data just to play the latest game hype like Fortnite.
The only people who mind installing stuff are predominately web devs. 99.9% of users out there are fine with it for more than 6 decades now and that wont be changing any time soon.

exDM691 reply#
It does make a difference especially to a beginner or a child. You might not have admin privileges at your school or your friends may not be able to install those tools so you can't show your work.

But you can hack away on any computer with a browser.

kilon#
there are tons of services only that will allow you to code online using any language eve C , C++ and Assembly. From inside the browser of course. Of course I am not recommending a beginner to start from any of those languages but it shows that JS does not have the monopoly of in browser coding. If you have to stick with browser no matter what.

Ideone is a popular example https://ideone.com/

gear54rus1 reply#
no man its objectively good language, believe me.

see how that sounds? that's how you js haters sounds each time I see this bs here on this and many other platforms that wouldn't be possible without js.

Continue this thread — 1 reply

Jgoure1 reply#
This kid is practicing calculus at 12 years old. He will be able to handle a package manager.
not_kurt_godel1 reply#
It's still a waste of his time to deal with it. The brain has only so many ultra-neuroplastic years, why burn them on dicking around with npm when they could be leveraged to focus on more universal concepts?

Continue this thread — 1 reply

sramam1 reply#
Isn't Liam's project proof that you don't need any complicated JS tooling?

A simple `node index.js` can go really far.

cphoover#
Yes amazingly he did this without the need of `left-pad` too. ><

Good job Liam

krapp#
The only thing you need to learn programming with JS is a text editor and some rudimentary HTML knowledge.

Everything else is unnecessary, at least as far as the programming language itself is concerned.

rymate1234#
You need none of those things to get started with JS development

It’s still perfectly possible to just create a html document, shove in a script tag, and start developing
And if you want to use packages from the npm ecosystem you can easily use https://unpkg.com/