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.


May
12
comment What do I need to do to NOT steal “Hello World” code with a GPL license?
You try telling that to Oracle!
May
12
comment Has test driven development (TDD) actually benefited a real world project?
Sadly not, because nobody else seems to build unit tests, at least not on any of the code I've inherited from previous developers. My life would have been a hell of a lot easier if they had. I'd suggest you check out the book in the link, which does have real world examples, though it's for PHP rather than Rails. amazon.com/…
May
12
accepted Separation of concerns in an RMR framework
May
12
comment Separation of concerns in an RMR framework
I tend to do validation in 2 places. The models all have sanity checks on their setters that throw exceptions if you try to feed in invalid input, and I validate the input form before it gets presented to the model in the first place so I can handle errors in a more friendly way than by tossing an exeption at the user. I guess you just need to think in a different ray in RMR.
May
12
answered Has test driven development (TDD) actually benefited a real world project?
May
12
comment What do I need to do to NOT steal “Hello World” code with a GPL license?
Also, it's obvious that my code isn't a copy because it uses a greater than instead of a less than!
May
12
comment What do I need to do to NOT steal “Hello World” code with a GPL license?
You're not. But if you used my code you can claim you used it in good faith.
May
12
answered What do I need to do to NOT steal “Hello World” code with a GPL license?
May
11
awarded  Guru
May
11
awarded  Mortarboard
May
11
awarded  Good Answer
May
11
comment Why is Global State so Evil?
@frankc See my comment to briddums
May
11
comment Why is Global State so Evil?
@briddums in that case you'd use constants! :) And that is still problematic because the code becomes dependant on the constant. Even non-mutable global state is best avoided. Like I said, my answer isn't by any means exhaustive.
May
10
awarded  Enlightened
May
10
awarded  Nice Answer
May
10
revised Why is Global State so Evil?
added 1752 characters in body
May
10
comment Why is Global State so Evil?
@Truth I got the impression you were asking why global state was bad. You might want to update your question to make it clearer you're asking about alternative approaches as well. Am going to make an edit to the answer, but usually dependency injection is favoured these days.
May
10
revised Why is Global State so Evil?
added 1482 characters in body
May
10
answered Why is Global State so Evil?
Apr
30
comment Separation of concerns in an RMR framework
I don't think that's going to be much of an issue, the outputting (representation or view) is separate from the business logic (model or resource) in both systems. The problems I'm running into have to do with things I would have put in the controller before should go now.