Reputation
3,124
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
15 24
Newest
 Excavator
Impact
~162k people reached

Jul
10
awarded  Excavator
Jul
10
revised Are there any OO-principles that are practically applicable for Javascript?
fixed tyop
Jul
8
comment Where to declare event handlers: Markup or Script?
"...separates the markup from the logic which is always a desirable property" Until you look at angular, knockout, react, or pretty much any other modern JS framework.
Jul
2
comment JS Asynchronous Load Pattern
The "very not fun callback work" is drastically simplified when you make use of promises.
Apr
27
revised Referencing external javascript vs. hosting my own copy
removed unnecessary [type] attributes
Apr
16
comment What makes BEM better than using a nestable style sheet language like LESS?
@CoreDumpError, it certainly might be. I find BEM easy to train new developers in and it makes it easy to code review, but SMACSS and OOCSS are good alternatives. I highly recommend looking into those options as an alternative. I will say that I use BEM for my own development so that I don't conflict with myself, especially with future me, who is stupid and forgets things.
Apr
16
comment What makes BEM better than using a nestable style sheet language like LESS?
@CoreDumpError, Consider this example. An author writing without BEM needs to spend additional effort to verify every combination of every module that might be added within their module. An author using BEM doesn't.
Apr
15
comment What makes BEM better than using a nestable style sheet language like LESS?
@CoreDumpError, the problem is when you start nesting modules within modules. "each developer can just nest their specific widget's code one level deeper" is not quite correct, each developer must nest their specific widget's code deeper and deeper otherwise naming collisions cascade in ways that are generally unintentional. The only way to avoid naming collisions is with some sort of namespacing, and BEM offers an easy way to consistently namespace classes.
Apr
15
awarded  Explainer
Apr
15
awarded  Organizer
Apr
15
revised What makes BEM better than using a nestable style sheet language like LESS?
edited tags; edited title
Apr
15
answered What makes BEM better than using a nestable style sheet language like LESS?
Apr
15
comment What makes BEM better than using a nestable style sheet language like LESS?
BEM and LESS serve different purposes. I use both BEM and LESS.
Mar
10
awarded  Popular Question
Feb
26
comment Is it worth even checking to see if Guid.NewGuid() is Guid.Empty?
an excellent example of programming by coincidence‌​.
Dec
18
comment Are all magic numbers created the same?
Relevant: thecodelesscode.com/case/19
Nov
25
comment Function guaranteed to never return the same value twice
function neverReturns() { throw new Exception(); } will never return the same value, but that's just because it never returns any value.
Nov
25
comment URLs in javascript in the browser
Ajax is often used to replace what a standard form would otherwise submit to the server, so one of the best places to put the URL is in the [action] attribute of a <form>.
Nov
17
awarded  Yearling
Oct
2
revised What is the benefit of a function without parameters which only calls another function
edited body