Reputation
4,560
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 12 31
Impact
~334k people reached

Aug
5
comment What would you change about C# if you could?
BTW, sorry about the meaningless edit. It wouldn't let me change my vote to an upvote otherwise.
Aug
5
revised What would you change about C# if you could?
added 1 characters in body
Aug
5
comment What would you change about C# if you could?
@bigown NM, I read the answer wrong the first time. I completely agree when it comes to basic reference types. All the if(variable == null) statements add no value to the code. Although, with nullable primitives (used for databases) the default value should be null to match their database table counterparts.
May
26
awarded  Pundit
Mar
28
comment How to not mix HTML with PHP?
@Rahul If you want to separate code (PHP) from presentation logic (HTML) you could always opt in to using a PHP framework like Zend, CakePHP, etc because they come with templating facilities build-in. But that would add more complexity/structure and a lot more files. Considering that your architect rejected Ext outright because of file size means that he would also probably reject using a PHP framework.
Mar
28
comment How to not mix HTML with PHP?
@Rahul Including both core and base causes issues because they're both meant to be run separately. Unfortunately, this means you either have to host ext-base yourself or ditch it altogether. Sorry, I wasn't aware of this limitation when I originally wrote the answer.
Mar
28
comment How to not mix HTML with PHP?
@Rahul After looking at the other post you made it looks as though this isn't a viable option. Ext-core is only a limited subset Ext that contains the foundational code and nothing else. Google probably doesn't host any of the other versions of Ext because of licensing issues. Ie, Ext-core is licensed under MIT (to match other libraries like jQuery) whereas Ext-base uses a dual GPL/commercial licensing scheme.
Mar
26
comment When/why is it easier to beg forgiveness than ask permission?
Making decisions means accepting responsibility in that decision leads to failure. The managers I've encountered in the past aren't necessarily cut-out for management. They've gained their position by not making decisions that led to failure (unfortunately, if you're a contractor like I was, it is absolutely impossible to get a straight forward decision from them to move forward). If you make the decision to go forward anyway (without permission) and it leads to failure, then the manager doesn't have to take the responsibility of a poor decision.
Mar
26
comment Scientific evidence that supports using long variable names instead of abbreviations?
It's not how much you can understand your own code, it's how much anybody can understand your code. How you abbreviate things isn't necessarily intuitive to anybody else (or even yourself in the distant future). If you spell it out, you can guarantee that the variable name's meaning won't get lost in translation.
Mar
26
comment best practice: setting up several IDE / frameworks (at file/dir level)
(cont) I also place my Dropbox folder on that partition with projects that I consider public (like open source) so I don't have to have to keep two different copies of my dropbox files synced (one for each OS). This setup makes managing files a lot easier, especially if your system crashes.
Mar
26
comment best practice: setting up several IDE / frameworks (at file/dir level)
+1 for "it is better if you use two partitions". I always use my D: partition (formatted as NTFS) as my 'docs' partition. In windows, you can re-map your "My Documents" folder by right clicking on it and changing the target. In Linux, I auto-mount it using fstab and symlink the folders on it into my 'home' folder. I don't move my whole 'home' folder to the partition because it would include all of the hidden user config folders/files too. Plus, file permissions on a NTFS drive can cause complications in *nix.
Mar
26
revised Where is the golden mean between language monoculture and polyculture?
added 813 characters in body; deleted 1 characters in body; deleted 7 characters in body; deleted 17 characters in body; added 10 characters in body
Mar
26
comment Where is the golden mean between language monoculture and polyculture?
@9000 Good point, I'll update my list of languages with more information on languages that can run on the JVM, since there are many more possibilities.
Mar
26
comment Are `break` and `continue` bad programming practices?
WHile I disagree with, "I actually think this is easier to read" this does accomplish the exact same purpose as the code above. I've never really thought of 'break' as a short-circuit operator until now but it makes perfect sense. As for,"Generally speaking the conditions for your loops should be contained purely within those loop conditions", what do you do when you're processing a foreach loop since there's really no way to insert conditional logic in the loop definition?
Mar
26
comment Are `break` and `continue` bad programming practices?
@Paul Then why don't we use pure math to write software? I'm not saying that they don't accomplish the same goal, I'm saying that programming is more expressive than math when it comes to logical flow. We're capable of expressing more detailed (or complex) logic because programming doesn't fall under the same constraints that math does. How do you write a loop in math that breaks execution of the current iteration but resumes at the beginning of the next iteration. It sounds like the person who wrote this answer doesn't fully understand how to use 'continue' statements.
Mar
26
revised Workflow Foundation to seperate data from business logic on a mid-sized App?
edited tags
Mar
26
revised What is a resonable workflow for designing webapps?
edited tags
Mar
25
revised Familiarizing with the Zend Framework in one week
edited tags
Mar
25
revised Why do business analysts and project managers get higher salaries than programmers?
edited tags
Mar
25
revised What is the difference between a great programmer and a financially successful programmer?
edited tags