Click here to Skip to main content
15,860,972 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: Fun with pointers in C++ Pin
KP Lee1-Jul-15 15:44
KP Lee1-Jul-15 15:44 
GeneralRe: Fun with pointers in C++ Pin
KP Lee1-Jul-15 15:47
KP Lee1-Jul-15 15:47 
GeneralRe: Fun with pointers in C++ Pin
DEmberton26-Jun-15 3:30
DEmberton26-Jun-15 3:30 
GeneralRe: Fun with pointers in C++ Pin
C3D126-Jun-15 3:50
professionalC3D126-Jun-15 3:50 
GeneralRe: Fun with pointers in C++ Pin
James Curran26-Jun-15 5:22
James Curran26-Jun-15 5:22 
GeneralRe: Fun with pointers in C++ Pin
MarkTJohnson26-Jun-15 5:42
professionalMarkTJohnson26-Jun-15 5:42 
GeneralRe: Fun with pointers in C++ Pin
firegryphon29-Jun-15 10:02
firegryphon29-Jun-15 10:02 
GeneralRe: Fun with pointers in C++ Pin
BotReject29-Jun-15 22:58
BotReject29-Jun-15 22:58 
That's why I prefer to code in Java rather than C++. Though I have written small apps in C++, I prefer to focus on the logic of data flow instead of the detailed memory structure of the RAM. Indeed, this is why I prefer Java to C#, though again I have used the latter quite a lot. This might be because I write a lot of mathematical apps where the logic of data flow is hard enough without extra overheads. Java just seems relatively effortless for coding such applications. That said, I do occasionally code in C++, and even assembly language, simply because I like to be reminded how computers work for my own academic satisfaction. However, I do miss the days of C64 POKE and PEEK - one really felt as if one was in control of the computer in those days.
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 9:12
TheGreatAndPowerfulOz30-Jun-15 9:12 
GeneralRe: Fun with pointers in C++ Pin
James Curran30-Jun-15 10:16
James Curran30-Jun-15 10:16 
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 10:35
TheGreatAndPowerfulOz30-Jun-15 10:35 
GeneralRe: Fun with pointers in C++ Pin
James Curran30-Jun-15 11:24
James Curran30-Jun-15 11:24 
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 11:38
TheGreatAndPowerfulOz30-Jun-15 11:38 
GeneralRe: Fun with pointers in C++ Pin
Al Chak29-Jun-15 23:05
Al Chak29-Jun-15 23:05 
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 9:11
TheGreatAndPowerfulOz30-Jun-15 9:11 
GeneralSwitch boolean.... (reinventing if, unnecessarily) Pin
Rob Grainger25-Jun-15 5:25
Rob Grainger25-Jun-15 5:25 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Jeremy Falcon25-Jun-15 5:42
professionalJeremy Falcon25-Jun-15 5:42 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Freak3025-Jun-15 21:32
Freak3025-Jun-15 21:32 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Jeremy Falcon26-Jun-15 3:23
professionalJeremy Falcon26-Jun-15 3:23 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Bruce Patin26-Jun-15 6:16
Bruce Patin26-Jun-15 6:16 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
jibalt26-Jun-15 9:53
jibalt26-Jun-15 9:53 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
TheGreatAndPowerfulOz30-Jun-15 9:15
TheGreatAndPowerfulOz30-Jun-15 9:15 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
DSewhuk30-Jun-15 11:02
DSewhuk30-Jun-15 11:02 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
Daniel Pfeffer30-Jun-15 18:08
professionalDaniel Pfeffer30-Jun-15 18:08 
GeneralRe: Switch boolean.... (reinventing if, unnecessarily) Pin
ZurdoDev25-Jun-15 6:00
professionalZurdoDev25-Jun-15 6:00 

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.