2,079 reputation
1921
bio website gordiansolution.co.uk
location United Kingdom
age
visits member for 3 years, 6 months
seen Dec 3 at 7:35

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.


Aug
2
comment Inheritance using non-abstract base class
I'm not so sure about your first example. If you made Employee a superclass of Accountant then that would imply that someone who starts as an accountant will always be an accountant. Employee roles is often used as an archetypal example of roles. The Employee is not the job title, but has the job title. As they change departments, get promoted, etc, the title associated with the employee changes, making Accountant a role that an employee can take on and discard
Aug
1
answered Template rendering engine legitimate use of a singleton?
Aug
1
answered Is it bad coding practice to create something in a get if it does not exist?
Jul
31
comment Why can't the IT industry deliver large, faultless projects quickly as in other industries?
You talk that it's a given that projects that aren't software related are always more successful. That isn't necessarially true. Both the A380 and the Dreamliner had delays and cost overruns, and the F35 program is currently looking like a serious screwup, especially the B variant. Structural and mechanical engineering disciplines are more mature than those for software, that's certainly a factor, but there are plenty of projects that didn't go well that went nowhere near software.
Jul
26
comment How to store data in Gujarati language in SQLite?
It should just be a matter of using UTF8 and storing to the database the same way you would with anything else.
Jul
26
answered Is there any design pattern except MVC for web?
Jul
25
comment Does unit testing lead to premature generalization (specifically in the context of C++)?
Sir, I salute you.
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