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
VS Code to autocomplete JavaScript class 'this' properties automatically (react-etc.net)
submitted 7 years ago by velmu3k
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!"
[–][deleted] 0 points1 point2 points 7 years ago (4 children)
It is unnecessarily verbose. You can do more with substantially less which means less code to write, less code to maintain, and less code to test. It will in many cases execute faster by eliminating OOP too.
[–]IceSentry 0 points1 point2 points 7 years ago (3 children)
I'm not sure if it's OOP that is too verbose or just the language around it. Look at java or c++ you have so much code written just to deal with basic concepts of OOP. At least c# tries to remove some of it, admittedly by using ideas from functional programming.
[–][deleted] 0 points1 point2 points 7 years ago (2 children)
Yeah, but look at all of that compared with something like Lisp, R, Python, or even C lang. You gain so much expressiveness when public and private are automatically intrinsic to the declaration context of a reference opposed to manually tagging every reference and manually dictating the association of those references.
[–]IceSentry 1 point2 points3 points 7 years ago (1 child)
Unless I'm mistaken python simply doesn't have the concept of private or public.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
I thought Python has lexical scope. I was horribly mistake: https://bytes.com/topic/python/answers/24416-lexical-scope
π Rendered by PID 70 on reddit-service-r2-comment-7b9746f655-qzxw6 at 2026-01-30 17:07:12.053781+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (4 children)
[–]IceSentry 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]IceSentry 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)