Live data from Hacker News

Show HN: I taught my little brother JS, and he made this videogame in a week

s-poony.github.io

281–285 of 285 posts

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#281
post #255

Earlier quoted context omitted.

My code when i was kid was half english and half swedish, heck even today when i write simple "run once"-code they often have some swedish named variable. Funny story from ~2005, a company developed a jvm for a special cpu and was aquired by a bigger company. After the aquasition 2 developers had to search the code base for two weeks after swedish swear words, they replaced them with the word of dandelion in swedish…

Yes, I've done it too (I am a french native). Especially common is writing code in English and commenting in ones native language. There are other cases, like when the english word is not known or to stay consistent with a data source. I've also seen the native word to avoid conflicts, like adding "2" at the end of a variable. That's bad, don't do it kids ;) But here, the "hero" has a "speed" while the "ennemi" (fren…

It can also go the other way, of course (variables in native language, or just single-letter variables, and comments in English). I seem to remember that Linus Torvalds commented all of his code in English without ever thinking about it.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#283

Earlier quoted context omitted.

Agreed. There are so many JS projects these days composed of a dozen abstraction layers and barely-used libraries all mixed together and spread out across multiple files with an insanely complex "build system" on top, that it's very refreshing to see simple, self-contained JS.

You don't need complexity until you do. Our company needed an internal tool, and they wanted remote access to it, but it was basically just a tool to generate a file based on a few inputs. We already had a command line program for it, so I wrapped it up in a web server and had it take input as a form input without any JS. It worked great for years, and then someone got tasked with updating it (mostly just combining i…

Yes one should assume most frameworks will be dead 2 years from now. Dependencies problems suck. And create security holes. When development starts going into the cloud get ready for a lot of pain the world has never seen before.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#284

In "taught" did you mean "write 80% of the code"? This follows coding conventions far too much for me to believe it's written by an complete beginner. To me it smells like karmafarming. How is everyone buying this? Where's your reasonable doubt?

I don't believe either.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#285

Look at the code guys [1]. I love it. This is simple. There is not a single line of bullshit. I hope he gonna become a great programmer and continue to make beautiful code like that. [1] https://github.com/S-poony/Ultra-Square-Catcher-USC-/blob/ma...

From the source, Shift = Brake

You would never know this unless you read the source. It's unlikely that you'd stumble across it.
Post reply on HN