Click here to Skip to main content
15,895,142 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsRoll up, roll up Pin
Pete O'Hanlon31-May-12 7:25
mvePete O'Hanlon31-May-12 7:25 
GeneralRe: Roll up, roll up Pin
Karl Sanford31-May-12 9:20
professionalKarl Sanford31-May-12 9:20 
News10 reasons to use PHP Pin
Terrence Dorsey30-May-12 11:08
sitebuilderTerrence Dorsey30-May-12 11:08 
GeneralRe: 10 reasons to use PHP Pin
Leonardo Paneque30-May-12 11:54
Leonardo Paneque30-May-12 11:54 
GeneralRe: 10 reasons to use PHP Pin
Dan Neely31-May-12 0:58
Dan Neely31-May-12 0:58 
GeneralRe: 10 reasons to use PHP PinPopular
AspDotNetDev30-May-12 12:30
protectorAspDotNetDev30-May-12 12:30 
GeneralRe: 10 reasons to use PHP PinPopular
Karl Sanford30-May-12 17:41
professionalKarl Sanford30-May-12 17:41 
GeneralRe: 10 reasons to use PHP Pin
jim lahey31-May-12 3:45
jim lahey31-May-12 3:45 
First you've got the language itself which is one giant WTF but then you're also faced with the sample code that floats round the web which includes but is not limited to any of the following:

No exception handling
No logging
Suppressing errors using "@" and simply letting the program run on
Scarce use of functions, let alone any proper encapsulation
Code reuse abuse via copypasta
Organisation of code through grouping unrelated bits of PHP into files like "App_Core.php.inc"
Database access code that formats and returns results as HTML
Using crontab to call a PHP script that then uses curl to call another PHP script that resides on an Apache server, because more potential points of failure mean that the chances of something failing at one specific point are greatly reduced
Opening a DB connection at the start of every request and closing it right at the end of every request, regardless of whether you need it or not
Creating a db schema that doesn't actually enforce relationships and implements FK relationships as comma-separated values in the PK table

I'm sure there are actually some very good PHP programmers out there, which begs the question: if they're technically well-versed, what are they doing with PHP?
GeneralRe: 10 reasons to use PHP Pin
ed welch31-May-12 3:38
ed welch31-May-12 3:38 
GeneralRe: 10 reasons to use PHP Pin
Karl Sanford31-May-12 4:13
professionalKarl Sanford31-May-12 4:13 
GeneralRe: 10 reasons to use PHP Pin
ed welch31-May-12 4:46
ed welch31-May-12 4:46 
GeneralRe: 10 reasons to use PHP Pin
Karl Sanford31-May-12 4:56
professionalKarl Sanford31-May-12 4:56 
GeneralRe: 10 reasons to use PHP Pin
ed welch31-May-12 5:04
ed welch31-May-12 5:04 
GeneralRe: 10 reasons to use PHP Pin
lewax0031-May-12 4:57
lewax0031-May-12 4:57 
GeneralRe: 10 reasons to use PHP Pin
ed welch31-May-12 5:06
ed welch31-May-12 5:06 
GeneralRe: 10 reasons to use PHP Pin
lewax0031-May-12 5:15
lewax0031-May-12 5:15 
GeneralRe: 10 reasons to use PHP Pin
ed welch31-May-12 5:51
ed welch31-May-12 5:51 
GeneralRe: 10 reasons to use PHP Pin
jesarg31-May-12 4:14
jesarg31-May-12 4:14 
GeneralRe: 10 reasons to use PHP Pin
Paul Conrad31-May-12 11:56
professionalPaul Conrad31-May-12 11:56 
GeneralRe: 10 reasons to use PHP Pin
Chris Losinger1-Jun-12 5:47
professionalChris Losinger1-Jun-12 5:47 
NewsShell scripting: Calculating Day of the Week Pin
Terrence Dorsey30-May-12 11:08
sitebuilderTerrence Dorsey30-May-12 11:08 
News20 lines of code that will beat A/B testing every time Pin
Terrence Dorsey30-May-12 11:07
sitebuilderTerrence Dorsey30-May-12 11:07 
News-2000 Lines Of Code PinPopular
Terrence Dorsey30-May-12 11:07
sitebuilderTerrence Dorsey30-May-12 11:07 
NewsThe Design of LLVM Pin
Terrence Dorsey30-May-12 11:06
sitebuilderTerrence Dorsey30-May-12 11:06 
News‘Flame’ Virus explained: How it works and who’s behind it Pin
Terrence Dorsey30-May-12 11:06
sitebuilderTerrence Dorsey30-May-12 11:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.