Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Is this bad or am I just picky? PinmemberBob G Beechey1-Feb-13 18:10 
GeneralRe: Is this bad or am I just picky? PinmvpMarcus Kramer1-Feb-13 19:28 
GeneralRe: Is this bad or am I just picky? PinmemberBob G Beechey1-Feb-13 19:31 
GeneralRe: Is this bad or am I just picky? PinmemberBrady Kelly2-Feb-13 0:56 
GeneralRe: Is this bad or am I just picky? PinmemberH.Brydon1-Mar-13 10:39 
GeneralRe: Is this bad or am I just picky? PinmemberGary Huck1-Feb-13 4:01 
GeneralRe: Is this bad or am I just picky? Pinmemberihoecken29-Jan-13 23:00 
GeneralRe: Is this bad or am I just picky? [modified] Pinmembers_mon30-Jan-13 11:03 
GeneralRe: Is this bad or am I just picky? PinmemberShameel30-Jan-13 23:25 
GeneralRe: Is this bad or am I just picky? Pinmemberjim lahey1-Feb-13 2:19 
GeneralRe: Is this bad or am I just picky? PinmemberS Houghtelin1-Feb-13 2:59 
GeneralRe: Is this bad or am I just picky? PinmemberSitalkes1-Feb-13 4:35 
GeneralRe: Is this bad or am I just picky? PinmemberScott Burkow1-Feb-13 4:36 
GeneralRe: Is this bad or am I just picky? Pinmembersatovey1-Feb-13 14:47 
After taking a good look see, this class
takes an array, converts it to strings and
tests to see if the string is a callable
object with a method inside.
 
In PHP, you can assign a function or object
name to a string and call it as though you
you had hard coded the name in the code.
 
This code, despite all the complaints is
actually what you would have to do in order
to avoid the exceptions that occur when
you call a function or object that does
not exist.
 
The author is utilizing a class perhaps to
keep all the related code in one place, but
a simple function would have sufficed.
GeneralStrangely Refactored Name PinprotectorAspDotNetDev28-Jan-13 15:55 
GeneralRe: Strangely Refactored Name PinmemberPIEBALDconsult28-Jan-13 16:20 
GeneralRe: Strangely Refactored Name Pinmember d@nish 28-Jan-13 20:41 
GeneralRe: Strangely Refactored Name PinmemberSoMad28-Jan-13 21:03 
GeneralRe: Strangely Refactored Name PinmemberFreak3028-Jan-13 23:31 
GeneralRe: Strangely Refactored Name PinmemberSoMad28-Jan-13 23:46 
GeneralRe: Strangely Refactored Name PinmemberPIEBALDconsult29-Jan-13 12:20 
GeneralRe: Strangely Refactored Name PinmemberHuntrCkr31-Jan-13 22:48 
GeneralRe: Strangely Refactored Name PinmemberSoMad31-Jan-13 23:38 
GeneralRe: Strangely Refactored Name Pinmemberjibesh28-Jan-13 21:19 
GeneralRe: Strangely Refactored Name PinmvpOriginalGriff28-Jan-13 21:43 
GeneralRe: Strangely Refactored Name PinmemberJonathan C Dickinson3-Feb-13 23:25 
GeneralHandling "Special" Cases in "Special" Ways PinprotectorAspDotNetDev23-Jan-13 15:14 
GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberPIEBALDconsult23-Jan-13 21:38 
GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberRobert Rohde23-Jan-13 21:42 
GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberPIEBALDconsult23-Jan-13 21:49 
GeneralRe: Handling "Special" Cases in "Special" Ways Pinmemberpeterchen28-Jan-13 22:57 
GeneralI am in love <3 PinmemberAmgad Fahmi17-Jan-13 12:11 
GeneralRe: I am in love <3 PinmemberRanjan.D17-Jan-13 12:27 
GeneralRe: I am in love <3 PinmemberAmgad Fahmi17-Jan-13 12:30 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 13:44 
GeneralRe: I am in love <3 Pinmemberlewax0017-Jan-13 14:06 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 14:15 
GeneralRe: I am in love <3 PinmemberBrisingr Aerowing17-Jan-13 15:15 
GeneralRe: I am in love <3 Pinmemberlewax0017-Jan-13 16:15 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 16:57 
GeneralRe: I am in love <3 PinmemberAmgad Fahmi17-Jan-13 22:54 
GeneralRe: I am in love <3 PinmemberChris Quinn17-Jan-13 22:15 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 13:43 
QuestionRe: I am in love <3 PinmemberGuirec Le Bars17-Jan-13 15:15 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 18:17 
AnswerRe: I am in love <3 PinmemberAmgad Fahmi17-Jan-13 22:56 
GeneralRe: I am in love <3 Pinmemberdeepakaitr1234522-Jan-13 3:08 
GeneralReversing time, without a flux capacitor PinmemberGary R. Wheeler17-Jan-13 5:03 
GeneralRe: Reversing time, without a flux capacitor PinmemberLloyd Atkinson17-Jan-13 6:57 
GeneralRe: Reversing time, without a flux capacitor PinmemberGary R. Wheeler17-Jan-13 10:25 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 22 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid