Click here to Skip to main content
11,701,590 members (66,764 online)

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.

 
JokeRe: Pass by value and pass by reference Pin
Sherin Iranimose17-Jul-08 18:28
memberSherin Iranimose17-Jul-08 18:28 
GeneralRe: Pass by value and pass by reference Pin
Jahmani21-Jul-08 23:04
memberJahmani21-Jul-08 23:04 
GeneralRe: Pass by value and pass by reference Pin
Paul Conrad17-Jul-08 16:23
memberPaul Conrad17-Jul-08 16:23 
GeneralRe: Pass by value and pass by reference Pin
Sherin Iranimose17-Jul-08 18:23
memberSherin Iranimose17-Jul-08 18:23 
GeneralRe: Pass by value and pass by reference Pin
darkelv17-Jul-08 20:08
memberdarkelv17-Jul-08 20:08 
GeneralRe: Pass by value and pass by reference Pin
Paul Conrad18-Jul-08 2:55
memberPaul Conrad18-Jul-08 2:55 
GeneralRe: Pass by value and pass by reference Pin
V.17-Jul-08 22:17
memberV.17-Jul-08 22:17 
GeneralRe: Pass by value and pass by reference Pin
CPallini17-Jul-08 23:09
mvpCPallini17-Jul-08 23:09 
GeneralRe: Pass by value and pass by reference Pin
Joe Woodbury19-Jul-08 9:12
memberJoe Woodbury19-Jul-08 9:12 
GeneralRe: Pass by value and pass by reference Pin
CPallini20-Jul-08 3:56
mvpCPallini20-Jul-08 3:56 
GeneralRe: Pass by value and pass by reference Pin
Joe Woodbury19-Jul-08 9:07
memberJoe Woodbury19-Jul-08 9:07 
GeneralRe: Pass by value and pass by reference Pin
KarstenK21-Jul-08 2:42
memberKarstenK21-Jul-08 2:42 
AnswerRe: Pass by value and pass by reference Pin
Mitendra Anand21-Jul-08 20:58
memberMitendra Anand21-Jul-08 20:58 
GeneralRe: Pass by value and pass by reference Pin
jon_17523-Jul-08 12:00
memberjon_17523-Jul-08 12:00 
The object is passed by value, but the what is actually passed since it is a reference object is a pointer to the object. So, the "value" that is actually passed is the pointer not the object and therefore any changes made through the pointer change the original object. What you can't change is the pointer itself. That is the "value". Smile | :)
GeneralRe: Pass by value and pass by reference Pin
Mitendra Anand23-Jul-08 21:01
memberMitendra Anand23-Jul-08 21:01 
GeneralPadding an ID to six digits Pin
ClementsDan14-Jul-08 15:57
memberClementsDan14-Jul-08 15:57 
GeneralRe: Padding an ID to six digits Pin
_Damian S_14-Jul-08 17:01
member_Damian S_14-Jul-08 17:01 
GeneralRe: Padding an ID to six digits Pin
PIEBALDconsult15-Jul-08 4:31
memberPIEBALDconsult15-Jul-08 4:31 
GeneralRe: Padding an ID to six digits Pin
Stephen Hewitt14-Jul-08 17:53
mvpStephen Hewitt14-Jul-08 17:53 
GeneralRe: Padding an ID to six digits Pin
leppie14-Jul-08 21:26
memberleppie14-Jul-08 21:26 
GeneralRe: Padding an ID to six digits Pin
ClementsDan19-Jul-08 17:49
memberClementsDan19-Jul-08 17:49 
GeneralRe: Padding an ID to six digits Pin
geoffs14-Jul-08 20:50
membergeoffs14-Jul-08 20:50 
GeneralRe: Padding an ID to six digits Pin
BadKarma14-Jul-08 21:41
memberBadKarma14-Jul-08 21:41 
GeneralRe: Padding an ID to six digits Pin
PIEBALDconsult15-Jul-08 4:39
memberPIEBALDconsult15-Jul-08 4:39 
GeneralRe: Padding an ID to six digits Pin
Ri Qen-Sin17-Jul-08 3:42
memberRi Qen-Sin17-Jul-08 3:42 
GeneralRe: Padding an ID to six digits Pin
PIEBALDconsult17-Jul-08 8:38
memberPIEBALDconsult17-Jul-08 8:38 
GeneralRe: Padding an ID to six digits Pin
Paul Conrad16-Jul-08 9:15
memberPaul Conrad16-Jul-08 9:15 
GeneralRe: Padding an ID to six digits Pin
supercat918-Jul-08 5:30
membersupercat918-Jul-08 5:30 
GeneralRe: Padding an ID to six digits Pin
dybs16-Aug-08 18:18
memberdybs16-Aug-08 18:18 
General// Enforce Method Contract Pin
Josh Smith13-Jul-08 14:05
mvpJosh Smith13-Jul-08 14:05 
GeneralRe: // Enforce Method Contract Pin
DownUnderDev13-Jul-08 14:40
memberDownUnderDev13-Jul-08 14:40 
GeneralRe: // Enforce Method Contract Pin
CPallini13-Jul-08 21:10
mvpCPallini13-Jul-08 21:10 
GeneralRe: // Enforce Method Contract Pin
Simon Capewell15-Jul-08 2:16
memberSimon Capewell15-Jul-08 2:16 
GeneralRe: // Enforce Method Contract Pin
CIDev2-Sep-08 11:48
memberCIDev2-Sep-08 11:48 
GeneralRe: // Enforce Method Contract Pin
Paul Conrad14-Jul-08 7:03
memberPaul Conrad14-Jul-08 7:03 
GeneralRe: // Enforce Method Contract Pin
Pete O'Hanlon14-Jul-08 9:07
mvpPete O'Hanlon14-Jul-08 9:07 
GeneralRe: // Enforce Method Contract Pin
Josh Smith14-Jul-08 9:28
mvpJosh Smith14-Jul-08 9:28 
GeneralRe: // Enforce Method Contract Pin
Stephen Hewitt14-Jul-08 21:31
mvpStephen Hewitt14-Jul-08 21:31 
GeneralRe: // Enforce Method Contract Pin
David Kentley15-Jul-08 6:19
memberDavid Kentley15-Jul-08 6:19 
GeneralBoolean Variable Name Pin
Daniel Kanev11-Jul-08 4:19
memberDaniel Kanev11-Jul-08 4:19 
GeneralRe: Boolean Variable Name Pin
Rage11-Jul-08 4:57
memberRage11-Jul-08 4:57 
GeneralRe: Boolean Variable Name Pin
Daniel Kanev11-Jul-08 5:42
memberDaniel Kanev11-Jul-08 5:42 
GeneralRe: Boolean Variable Name Pin
williamnw13-Jul-08 22:10
memberwilliamnw13-Jul-08 22:10 
GeneralRe: Boolean Variable Name Pin
Philippe Lhoste11-Jul-08 11:10
memberPhilippe Lhoste11-Jul-08 11:10 
GeneralRe: Boolean Variable Name Pin
killabyte11-Jul-08 14:08
memberkillabyte11-Jul-08 14:08 
GeneralRe: Boolean Variable Name Pin
supercat914-Jul-08 6:13
membersupercat914-Jul-08 6:13 
GeneralRe: Boolean Variable Name Pin
CDP180221-Jul-08 2:00
memberCDP180221-Jul-08 2:00 
GeneralRe: Boolean Variable Name Pin
killabyte21-Jul-08 19:28
memberkillabyte21-Jul-08 19:28 
GeneralRe: Boolean Variable Name Pin
Paul Conrad12-Jul-08 7:18
memberPaul Conrad12-Jul-08 7:18 
GeneralRe: Boolean Variable Name Pin
gajatko16-Jul-08 11:29
membergajatko16-Jul-08 11:29 

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.150819.1 | Last Updated 27 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid