1,996 reputation
819
bio website gordiansolution.co.uk
location United Kingdom
age
visits member for 3 years
seen Jun 29 at 7:24

I'm a professional PHP programmer with almost a decade of professional experience and considerably more as a hobbyist programmer. I've also had some exposure to Java, Object Pascal and am interested in learning objective C

I've started work on a PHP framework, though it's still at a very early stage and not yet really useful. The current source is available on GitHub.

I've also begun development of a CSS3 elastic grid for use on my own projects and had published that on GitHub as well.


Jul
16
comment PHP function __autoload($class_name) how to Load two class path directories
+1 for spl_autoload
Jul
16
comment PHP function __autoload($class_name) how to Load two class path directories
I'd advise against using __autoload as it only lets you register a single autoload method. The addition of spl_autoload_register has pretty much made __autoload redundant, and provides more flexibility.
Jul
12
comment Confusion of scope of a variable: Is Global Variable a solution?
@mattnz It serves its purpose, especially for beginner programmers. Before you know when it's legitimate to break the rules you have to know what the rules are and how to adhere to them.
Jul
12
answered Confusion of scope of a variable: Is Global Variable a solution?
Jul
10
answered test coverage reality
Jul
6
answered How many developers actually have private offices?
Jun
29
awarded  Nice Answer
Jun
28
comment My boss decided to add a “person to blame” field to every bug report. How can I convince him that it's a bad idea?
I would upvote for the first paragraph, but the second one seems questionable to me. In my experience the kind of people who suggest ideas like a blame field in the first place aren't the kind of people who worry about making people uncomfortable.
Jun
28
answered My boss decided to add a “person to blame” field to every bug report. How can I convince him that it's a bad idea?
Jun
28
answered Are there any good use-cases for variable variables?
Jun
23
awarded  Yearling
May
31
comment What are the alternatives to “overriding a method” when using composition instead of inheritance?
It's a bit of an oversimplification to say "composition good, inheritance bad". Inheritance is in fact the preferred method when dealing with "is a" relationships. Composition is meant for "has a" relationships. The trick is determining which relationships are "is a" and which are "has a". For example, at a school would student and teacher be subclasses of person, or would teacher and student be roles that a person could take on?
May
29
comment Is writing software in the absence of requirements a skill to possess or a situation I should avoid?
If you fail to plan, you plan to fail. These projects built without requirements may or may not meed the customer's expectations when they leave the shop but they almost certainly hide a multitude of sins that mean that when the requirements change (and they always do) a world of hurt awaits the person who has to make the necessary changes. Programmers who write without formal requirements shouldn't be praised, they should be reprimanded for failing to be prepared for the long term future maintenance of the project
May
25
comment Is it legal to use icons from some other application while developing?
Everything that you create is implicitly copyrighted to you (or your company if you do it on company time). Even if he's not planning on redistributing the icons there's always a risk that it will happen by accident (they publish the app and forget to replace one or two rarely-seen icons). Is it really worth the risk of a lawsuit, especially when there are already plenty of icon packs available on the internet with liberal licensing terms or fully public domain?
May
25
answered Is it legal to use icons from some other application while developing?
May
24
comment Should we avoid object creation in Java?
A well-designed class shouldn't do heavy-lifting in its constructor, for just this reason. For example, your file-reading class could lower its cost of instantiation by only verifying that its target file exists on startup, and deferring any actual file operations until the first method call that needs data from the file.
May
24
comment What was the historical impact of Ariane 5's Flight 501?
My own memories of engineering ethics lectures when studying computer science at university :)
May
23
answered What was the historical impact of Ariane 5's Flight 501?
May
23
awarded  Nice Answer
May
23
answered Web Developer interview questions