Reputation
3,638
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 16 24
Impact
~210k people reached

1d
comment Different instances on deserialization of php objects?
@Praveen, it looks to me like you're running into the XY Problem. Given your example it seems like you're missing the point of serialization, so what is it that you hope to achieve at a high level?
Apr
20
comment Is there a language agnostic term for statement parameters?
"parameter" would be reasonably appropriate for most circumstances
Apr
10
comment Why are large amounts of magic numbers acceptable in CSS and SVGs?
I hate to break it to you @David Grinberg, but I just opened some code files in a hex editor, and literally every line appeared to be "seemingly random hard-coded values".
Apr
4
revised Can a programming language by design enforce “clean code”?
added 1055 characters in body
Apr
4
answered Can a programming language by design enforce “clean code”?
Mar
16
awarded  Great Answer
Feb
9
comment Why learn git when there are GUI apps for GitHub?
@jpmc26, I wrote this when I was new to git coming from SVN, pardon the terminology.
Feb
5
revised Is Module Pattern in JavaScript is useful only for singleton creation?
added 506 characters in body
Feb
5
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