Click here to Skip to main content
15,909,747 members

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, embarrassing 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: Ran across this sql the other day. Pin
Paul Conrad16-Aug-08 5:52
professionalPaul Conrad16-Aug-08 5:52 
GeneralRe: Ran across this sql the other day. Pin
Yusuf16-Aug-08 17:27
Yusuf16-Aug-08 17:27 
GeneralRe: Ran across this sql the other day. Pin
Mike Dimmick17-Aug-08 10:17
Mike Dimmick17-Aug-08 10:17 
GeneralPractice safe programming ! Pin
User 4041112-Aug-08 23:13
User 4041112-Aug-08 23:13 
GeneralRe: Practice safe programming ! Pin
Anand Desai12-Aug-08 23:28
Anand Desai12-Aug-08 23:28 
GeneralRe: Practice safe programming ! Pin
Nemanja Trifunovic13-Aug-08 7:18
Nemanja Trifunovic13-Aug-08 7:18 
GeneralRe: Practice safe programming ! Pin
Kevin McFarlane13-Aug-08 9:49
Kevin McFarlane13-Aug-08 9:49 
GeneralRe: Practice safe programming ! Pin
Nemanja Trifunovic13-Aug-08 10:59
Nemanja Trifunovic13-Aug-08 10:59 
Kevin McFarlane wrote:
Perhaps it's a sign of misplaced C++ "machismo?"


Smile | :) On the contrary, I think it comes from the SmallTalk/Java style of OOP; create anonymous object and pass pointers/references to them around. Nothing wrong with that approach if you have a GC to clean up after you, but in C++ it is much better to create objects on stack than to worry about calling delete.


GeneralRe: Practice safe programming ! Pin
Yusuf13-Aug-08 15:24
Yusuf13-Aug-08 15:24 
GeneralRe: Practice safe programming ! Pin
Jörgen Sigvardsson22-Aug-08 10:23
Jörgen Sigvardsson22-Aug-08 10:23 
GeneralRe: Practice safe programming ! Pin
geoffs14-Aug-08 9:23
geoffs14-Aug-08 9:23 
GeneralRe: Practice safe programming ! Pin
Johann Gerell21-Aug-08 1:11
Johann Gerell21-Aug-08 1:11 
GeneralRe: Practice safe programming ! Pin
Paul Conrad13-Aug-08 9:27
professionalPaul Conrad13-Aug-08 9:27 
GeneralRe: Practice safe programming ! Pin
KarstenK14-Aug-08 3:48
mveKarstenK14-Aug-08 3:48 
GeneralRe: Practice safe programming ! Pin
Paul Conrad14-Aug-08 6:21
professionalPaul Conrad14-Aug-08 6:21 
GeneralCalling a subroutine Pin
Timothy Baldwin12-Aug-08 11:34
Timothy Baldwin12-Aug-08 11:34 
GeneralRe: Calling a subroutine Pin
Chris Maunder12-Aug-08 16:42
cofounderChris Maunder12-Aug-08 16:42 
GeneralRe: Calling a subroutine Pin
Mike Dimmick17-Aug-08 10:39
Mike Dimmick17-Aug-08 10:39 
GeneralRe: Calling a subroutine Pin
Timothy Baldwin21-Aug-08 5:14
Timothy Baldwin21-Aug-08 5:14 
GeneralRe: Calling a subroutine Pin
supercat917-Aug-08 11:59
supercat917-Aug-08 11:59 
GeneralCode which caused my PC hang [modified] PinPopular
Anand Desai6-Aug-08 22:41
Anand Desai6-Aug-08 22:41 
GeneralRe: Code which caused my PC hang PinPopular
leppie7-Aug-08 1:35
leppie7-Aug-08 1:35 
GeneralRe: Code which caused my PC hang Pin
Anand Desai7-Aug-08 2:14
Anand Desai7-Aug-08 2:14 
GeneralRe: Code which caused my PC hang Pin
leppie7-Aug-08 2:19
leppie7-Aug-08 2:19 
GeneralRe: Code which caused my PC hang Pin
Anand Desai7-Aug-08 2:21
Anand Desai7-Aug-08 2:21 

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.