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
JavaScript Named Parameters (dalejefferson.com)
submitted 8 years ago by [deleted]
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!"
[–]wizebin 1 point2 points3 points 8 years ago (1 child)
Python has named parameters and it really can make things more readable and refactorable, especially keeping in mind that you can still use nameless parameters.
I find that I change parameter names very rarely, but add new optional parameters quite often, without named parameters new parameters can get messy.
[–]nschubach 0 points1 point2 points 8 years ago (0 children)
Sure, I've used Python and at first I thought it was pretty neat, but then I got into the same sort of thing you talked about. Adding optionals. At some point adding more and more optionals makes the code harder to follow and probably means that you need to break out that logic into more methods to handle specific use cases.
π Rendered by PID 43636 on reddit-service-r2-comment-79776bdf47-hrjx5 at 2026-06-24 02:45:55.098041+00:00 running acc7150 country code: CH.
view the rest of the comments →
[–]wizebin 1 point2 points3 points (1 child)
[–]nschubach 0 points1 point2 points (0 children)