632 reputation
414
bio website stephenorr.co.uk
location Walsall, United Kingdom
age 33
visits member for 4 years, 1 month
seen 17 hours ago

I'm a very dedicated developer, working with a multitude of languages in order to provide the best solution possible to my client. I started with PHP, but now also use Ruby, Objective-C and other languages where appropriate.

I'm currently working at Impact Applications in Wolverhampton, making enterprise web applications for the social housing industry. We use a standard LAMP stack primarily.

In my spare time I play and make games; as with most people, I hope to one day strike it rich with an iPhone app so that I can retire and program just for fun!


Aug
11
comment Is splitting up a function into several inner functions an anti-pattern?
This is part of the Single Responsibility Principle. Each method should only have a single responsibility - in this case, breaking a long method up into smaller methods is exactly the right thing to do.
Aug
5
comment How to handle bad code base
I've been in similar situations. Hopefully, in your case, the client is going to be open to spending the 20 hours a week on refactoring and documentation tasks. I suspect that's not the case however. They are likely to demand concrete features that make the system more complex for when you ultimately do rebuild.
Aug
5
comment How to handle bad code base
But faced with a terrible system, sometimes the only reasonable one. 20 hours a week though is nowhere near enough to make a reasonable dent in this sort of project; could you take an off-the-shelf CMS and add in some custom functionality to take care of your specific needs?
May
23
comment Large MySQL Batch Inserts From PHP: Run insert from script, or save as SQL file?
Agreed, if you were going to do it multiple times then I'd be looking at writing some logic to detect failed inserts and report them, and perhaps give the option of retrying or throwing away the entire import - but for a one-off, it's not worth the extra effort.
Mar
11
comment How fundamental to good development is BDD?
Good answer. A good developer learns as many techniques as they can, so that they're aware of the benefits and limitations of each and learn when to apply them or not. This is all part of that saying "if your only tool is a hammer, everything looks like a nail".
Jul
26
comment Make PHP code run on .net?
Your question doesn't make sense. You can run PHP on Windows, on an IIS server (or Apache, or anything else), but you can't turn PHP into .NET code without rewriting it.
Jul
8
comment What architectures are used commonly in php?
I wanted to say Spaghetti, or Big Ball of Mud... but that's just because those are very common, particularly in older PHP applications. MVC seems to have been settled on though...
May
17
comment New PHP Project - Should I still be supporting PHP 5.2?
@RickM Thanks for the clarification. If it's going to make a big difference to your development speed, I'd go with 5.3, otherwise stick with 5.2 for the larger market.
May
17
comment New PHP Project - Should I still be supporting PHP 5.2?
@tdammers Fair point - I've dealt with some providers who just would never upgrade, and others who were more than happy to do so.
May
17
comment New PHP Project - Should I still be supporting PHP 5.2?
@tdammers True, but the OP suggested that this will be a commercial project. In that situation, you'd have to assume that the customer will have more control over their environment. Like I said as well, shared hosting companies simply won't upgrade unless their customers demand it - so supporting older versions just delays the inevitable.
Apr
30
comment Multiple SSH keys for different organizations
I definitely need to know this too :)
Apr
22
comment Create a database for database tables
Worth mentioning that EAV can be a major resource hog, as there's no real way to rely on the DBMS's ability to index data. I've seen good implementations and terrible implementations, but even the good ones tended towards being painfully slow.
Apr
2
comment What to do when a client asks for something unreasonable (from my point of view)
You should definitely have defined these requirements ahead of time. The customer would be well within their rights to refuse to pay any invoice you issue for work done to resolve this situation; effectively, you would now be changing the terms of the contract under which you provided your services. That said, I've been there, and it sucks. Rather than being confrontational, I'd try to resolve this amicably by explaining that you've investigated as best you can (prove this!) and you have been unable to reproduce the scenario.
Feb
28
comment What are the key points of Code Complete?
@Colen: Although Code Complete deals with some simple topics mixed in with the complex ones, it's definitely not for beginners. Pretty much any developer at any level can benefit from reading it; you'd be surprised how little some "senior" developers actually know about the basics, especially if they've only ever programmed in one language or worked for one company their entire career.
Jan
29
comment How to fix bad fundamentals?
+1 for Pragmatic Programmer. I'd give you another +1 for recommending learning multiple languages, but I can't.
Jan
24
comment mvc pattern on procedural php
What you're proposing could work, but would require more babysitting and a lot more effort than the alternative MVC framework-based solution. I've had to work with a lot of procedural code in the past, some of it particularly awful in places, and I'm not going back :)
Nov
21
comment Rails - How to use modal form to add object in one model, then reflect that change on main page?
Sounds like a nice clear solution. Thanks, it'll help me too.
Jun
6
comment When do I need to use a framework?
+1 for @NickC, I couldn't agree more. Some frameworks claim to be dynamic and easy to change things around, but then you get to a certain point and you just... can't. I've whinged a lot about that sort of thing :)
Jun
6
comment How much should I worry about modeling/analyzing a web application?
@DanielRibeiro In that case, it still depends on the scope of the project. If you just want to get something out there to see if your idea has wings, by all means do it fast (but accept that you will have to go back and change it later). Look into Minimum Viable Product. If you had more time, perhaps you'd do the full-on analysis stuff.
Jun
1
comment How much should I worry about modeling/analyzing a web application?
I think this question is too general to be answered in a clear manner. Without knowing more about what the application is or the requirements, we can't advise you on anything.