288 reputation
38
bio website blog.jondh.me.uk
location West Mids, UK
age
visits member for 3 years, 3 months
seen Jan 21 at 23:08

Sep
19
awarded  Good Answer
Jan
21
awarded  Citizen Patrol
Jan
20
revised Programming PHP without MVC, classes or framework: rewrite or continue on new features?
Apply edits I made to Stack Overflow dup (shorten title, trim chat, spelling, tidy)
Jan
20
suggested approved edit on Programming PHP without MVC, classes or framework: rewrite or continue on new features?
Jan
20
answered Programming PHP without MVC, classes or framework: rewrite or continue on new features?
Nov
22
comment How do I bootstrap a P2P service so that users can locate each other?
Try this: stackoverflow.com/q/15956819/472495
Nov
12
comment Do $_POST, $_GET, etc violate the encapsulation principle?
I agree with Alexander - wrapping these special arrays in a class or method is the way to go if you want to maintain testability.
Mar
10
awarded  Critic
Feb
28
comment Why are references rarely used in PHP?
Using pass-by-reference parameters is "side-effect programming" - using a function to return a single value is significantly clearer when reading code. That said, quite a few PHP core functions use references.
Sep
26
awarded  Yearling
May
21
comment Given an idea for an application, how should I decide which web technologies to use?
I'd go with a mix of 'use what you know best' and 'use what will get you a prototype quickly'. Since you're a Java programmer, go with a Java framework you know well, or the most popular one if you've not done web stuff before. Whilst there are differences between various frameworks/languages, I see people get hung up on it too much, and their project has stalled as a result.
Apr
24
comment Freelancing - Share the source code?
Related/possible dup: programmers.stackexchange.com/questions/36367/…
Apr
24
comment Freelancing - Share the source code?
Are you able to point to the T&Cs for the freelance site in question? Also, did you draw up any contract/agreement, and was source code mentioned at all? If not, it should have been - make sure this is understood for all your future contracts :).
Feb
20
awarded  Enlightened
Feb
20
awarded  Nice Answer
Feb
20
comment How to explain your non-programmer boss you need to refactor a whole site?
Excellent, well get everything into a version control system you know - even files you think are dead. Then maybe get a link-checker to see if any stuff can be deleted or tidied to a different folder (of course make such changes carefully ;) ).
Feb
20
comment How to explain your non-programmer boss you need to refactor a whole site?
Is the whole site under version control, btw? If not, that would be the first thing I would do - it's a nice quick win. And essential, of course, if you're going to do branching.
Feb
20
comment How to explain your non-programmer boss you need to refactor a whole site?
We have the problem of directories having hundreds of files in them. One quite good solution to this problem is to change how you access files - for the most part I tend to use the Projects Explorer in NetBeans. But with hundreds of files in one directory, this is awkward, so I now use the 'Go To File' widget, and it is massively improves the speed with which I can get to the file I need. You hit your shortcut, then type a (wildcarded) filename, and it searches in realtime until your result list is small enough to choose from.
Feb
20
awarded  Commentator
Feb
20
comment How to explain your non-programmer boss you need to refactor a whole site?
In terms of warnings, we have loads, but we're working on a slow programme of removing them, and iteratively removing the template layer that is often their cause. It's low priority and the changes are small, so are non-disruptive.