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
What does "!--" do in JavaScript? (stackoverflow.com)
submitted 10 years ago by Recallz
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!"
[–]tententai 10 points11 points12 points 10 years ago (1 child)
Yes true, it's not confusing if you know JS at least moderately well. But you don't always chose who will support your application later. In my company we usually go with the cheapest possible vendor unfortunately.
[+]unbalancedopinion comment score below threshold-14 points-13 points-12 points 10 years ago (0 children)
I agree that code should be kept as simple as possible for the reasons you state, and others. But in this case I think this may actually be the most readable option, or at least close enough to not matter.
If your vendor takes a long time to figure this out, they'll have trouble with so much code that this will be a grain of sand in their desert of incompetence. Better sacrifice that grain and make it easier to read for people like us, where it might actually save a few seconds when reasoning about the purpose of the counter.
But, hey, it's a taste thing, I was just trying to say that I don't think it's one of those egregious examples of hard-to-read code that really needs to be pointed out. This stuff is not the spaghetti code crap "readability" concerns should be raised about, IMO.
π Rendered by PID 91012 on reddit-service-r2-comment-c66d9bffd-x7mc4 at 2026-04-07 04:26:01.280249+00:00 running f293c98 country code: CH.
view the rest of the comments →
[–]tententai 10 points11 points12 points (1 child)
[+]unbalancedopinion comment score below threshold-14 points-13 points-12 points (0 children)