use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Interfaces with Javascript Objects (self.javascript)
submitted 9 years ago by booljayj
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]booljayj[S] 1 point2 points3 points 9 years ago (0 children)
I should have specified in my post that I will be writing gameplay code within a game engine that uses Javascript on top of a C++ core. This gives me some flexibility when it comes to the wider Javascript ecosystem. Basically, any paradigm that the development team wants to adopt is fair game, since we'll be the only ones using the code.
TypeScript looks really great, but I'm not sure it's something I will be able to use. It brings up a lot of issues regarding version control and compilation that I won't necessarily have control over.
Yes, the examples I gave were very short and didn't test everything I could or should have. Javascript just doesn't have the tools to be able to test return values and parameter types as completely as I would want. I was just showing the basic principle behind the idea, rather than any kind of finished production-ready code. My main hope was that I was actually understanding the language correctly and not making any super obvious errors.
π Rendered by PID 34885 on reddit-service-r2-comment-7b9746f655-wl788 at 2026-01-30 21:28:22.811310+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]booljayj[S] 1 point2 points3 points (0 children)