1,703 reputation
1713
bio website
location
age
visits member for 3 years, 1 month
seen yesterday

Sep
4
comment How can designing for inheritance cause extra cost?
Also security is a reason to use it! Consider a sandboxed application trying to access a file. The sandbox might test the filename-strings, but what if an attacker could send you a mutable String and then they mutate it after the security-check but before the I/O? I believe that type of scenario is why Java's String is marked final (similar to sealed) and I bet the same logic underpins some C# decisions.
Aug
30
comment Avoiding boilerplate in PHP classes
If you have too many classes, then templates/macros are the answer. If you have too many arguments to a single class' constructor, then it may be time to reconsider how you are creating instances of that class instead.
Aug
30
revised Two components offering the same functionality, required by different dependencies
added 32 characters in body
Aug
30
revised Two components offering the same functionality, required by different dependencies
added 35 characters in body
Aug
30
answered Two components offering the same functionality, required by different dependencies
Jun
6
awarded  Yearling
Oct
5
revised What are some really simple rules to keep a PHP codebase organized?
added 671 characters in body
Oct
4
revised What are some really simple rules to keep a PHP codebase organized?
added 147 characters in body
Oct
4
answered What are some really simple rules to keep a PHP codebase organized?
Jun
15
awarded  Nice Answer
Jun
6
awarded  Yearling
Jun
5
answered Is it bad practice to use <?= tag in PHP
Feb
3
comment Unit-testing of inherently random/non-deterministic algorithms
Regarding the "random table" approach, you can also use a test-implementation that contains a "reversible" number-generating algorithm. This allow you to "rewind" the PRNG or even query it to see what the last N outputs were. It would allow much more in-depth debugging in certain scenarios.
Aug
19
comment How do I transition from a large enterprise to a small startup?
My experience going from "10-person startup" to "300-person company" was great: I could focus on good code instead of being randomized every day with some new emergency or "customers on server X think it is slow" complaint.
Aug
17
answered How do I transition from a large enterprise to a small startup?
Aug
17
comment Selenium and non technical team members
Regarding brittleness, I've been experimenting with custom locator for Selenium-IDE which I'm pretty happy with. It still generates XPath expressions, but they represent a path based on the hierarchy of custom data-test-label attributes on elements. I'd put it on GitHub, but it was made on company time...
Aug
15
comment Java SE and Java EE?
@MattC: Doesn't it depend on the version of EJB too?
Aug
5
comment How to organise Website CSS
Side note: You really, really want to have a "CSS Reset" stylesheet as the first one that gets hit. That will removes all of the styling different browsers apply by default, and allow you to style things much more consistently.
Aug
5
comment Where are octals useful?
On that note, watch out for Javascript when handling user input. parseInt(011)==9
Aug
4
comment Which things instantly ring alarm bells when looking at code?
I know some people learned that every method should have only one return statement, but when it causes 6+ levels of if/then nesting I think its doing far more harm than good.