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

191–200 of 285 posts

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

#192

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...

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.

My brain hurts just imagining this.

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

#196
post #186
post #176

Earlier quoted context omitted.

But what if he wanted to turn it into a AAA FPS game with RTS elements in a persistent online world that supports millions of simultaneous users?

If you're not joking and actually making that statement seriously you need to close your computer and go take a few hour walk.

He’s joking.

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

#198

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...

My only complaint is the global scope pollution with the top-level variables and lack of ‘var’ for those. But other than that, I agree.

That's a complaint about the JS language itself, that variables are global unless otherwise specified.

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

#199

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…

To be fair, in my experience rewrites always take longer regardless of technology choices. You are often reverse engineering requirements which is really consuming both in time and energy. That said, I agree with the point you're trying to make though (I strongly prefer software with less dependencies/frameworks)

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

#200

Earlier quoted context omitted.

That's…quite surprising. It's a cool feature, but I'm afraid that it's just another surface that can will be used for browser fingerprinting.

Surely it asks explicitly for permission to use the sensor?

Mobile safari on an iPhone XR just worked.
Post reply on HN