Reputation
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
16 24
Newest
 Yearling
Impact
~188k people reached

4h
revised Is Module Pattern in JavaScript is useful only for singleton creation?
added 506 characters in body
4h
answered Is Module Pattern in JavaScript is useful only for singleton creation?
Feb
2
comment Why is chaining setters unconventional?
"adding instance before each call is not making it clearer at all" I never claimed that adding the instance before each call made anything clearer, I just said that it was relatively equivalent.
Feb
2
comment Why is chaining setters unconventional?
@Benedictus, I was showing various different ways that OOP languages handle this issue without chaining. The point wasn't to provide identical code, the point was to show alternatives that make chaining unnecessary.
Feb
2
answered Why is chaining setters unconventional?
Jan
27
comment Is using Javascript/JQuery for layout and style bad practice?
@Andy, you're thinking in the context of a full app. This post is discussing MVC in the context of an individual web page. A view is a description of how data (the model) should be rendered, which is exactly what CSS does. The controller changes the state of the model which then is again rendered by the view (JS). If you separate your concerns properly, keeping your styles in CSS, your interactions in JS and your data in HTML everything will be simpler.
Dec
3
comment Is it bad practice to use <?= tag in PHP
@ircmaxell mind sharing which security implications you're referring to so that I can fix this post?
Nov
17
awarded  Yearling
Oct
14
comment Where to declare event handlers: Markup or Script?
relevant: stackoverflow.com/a/8780306/497418
Aug
4
comment Should I Include PHP code in HTML or HTML in PHP?
"But why would anyone still use them today?" brevity, when it's faster and simpler to write <a href="javascript:print()"><img src="print.png" alt="print"/></a> than it is to bother binding from a separate script. These situations are the exception, not the rule, but they do exist.
Aug
4
comment Should I Include PHP code in HTML or HTML in PHP?
This toes the line between "good subjective" and "bad subjective". I've seen situations where each have their merits.
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