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…
Show HN: I taught my little brother JS, and he made this videogame in a week
281–285 of 285 posts
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#282Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#283Earlier 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…
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#284In "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?
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#285Look 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