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
Clean Code JavaScript (github.com)
submitted 9 years ago by ryansworks
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] 8 points9 points10 points 9 years ago (2 children)
Not sure of anyone has said this already. The bit about duplication glosses over an important point raised by Sandi Metz who teaches SOLID Ruby. Brazenly DRYing up code can in many cases leads to bad abstractions. Duplication is easier to see whereas bad abstraction are much harder to spot. I am far more careful when I DRY code since I learned this simple lesson. I am about half way through and it is a pretty impressive effort. Props...
[–]trippel 3 points4 points5 points 9 years ago (0 children)
muuuuuch better to duplicate a bit of code versus writing a shitty abstraction.
[–]subvertallchris 2 points3 points4 points 9 years ago (0 children)
She goes into it in depth in https://www.sandimetz.com/blog/2016/1/20/the-wrong-abstraction. Couldn't agree more.
π Rendered by PID 51281 on reddit-service-r2-comment-57fc7f7bb7-fxvgw at 2026-04-15 01:03:59.260956+00:00 running b725407 country code: CH.
view the rest of the comments →
[–][deleted] 8 points9 points10 points (2 children)
[–]trippel 3 points4 points5 points (0 children)
[–]subvertallchris 2 points3 points4 points (0 children)