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: Something original PinmemberSentenryu14-Aug-13 4:22 
GeneralRe: Something original PinmemberJacek Gajek14-Aug-13 5:21 
GeneralRe: Something original PinmemberBCantor13-Aug-13 6:05 
GeneralRe: Something original PinmemberJacek Gajek13-Aug-13 6:51 
public class TrafficLightsWentWrong
{
    public string manufacturer
    {
        get { return Manufacturer; }
        set { Manufacturer = value; }
    }
    public string Manufacturer
    {
        get { return _manufacturer; }
        set { _manufacturer = value; }
    }
    public string _manufacturer
    {
        get
        { 
            // reducing memory usage
           return manufacturer;
        }
        set { manufacturer = value; }
    }
}
Greetings - Jacek

GeneralRe: Something original PinprofessionalBrisingr Aerowing19-Aug-13 17:20 
GeneralRe: Something original PingroupExcellentOrg21-Aug-13 1:04 
RantFsking ASP.NET! PinprofessionalRichard Deeming6-Aug-13 11:00 
GeneralRe: Fsking ASP.NET! PinprofessionalBernhard Hiller6-Aug-13 21:57 
GeneralRe: Fsking ASP.NET! PinmemberSentenryu7-Aug-13 10:08 
GeneralWhen things to more than you think Pinmemberimagiro6-Aug-13 8:17 

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
Web04 | 2.8.150327.1 | Last Updated 1 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid