Click here to Skip to main content
15,895,256 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: An XSLT version of an old favourite Pin
Nemanja Trifunovic14-Feb-08 6:36
Nemanja Trifunovic14-Feb-08 6:36 
GeneralRe: An XSLT version of an old favourite Pin
Shog914-Feb-08 8:24
sitebuilderShog914-Feb-08 8:24 
GeneralRe: An XSLT version of an old favourite Pin
Rob Grainger15-Feb-08 2:42
Rob Grainger15-Feb-08 2:42 
JokeJava Memory Management PinPopular
ClementsDan11-Feb-08 16:40
ClementsDan11-Feb-08 16:40 
GeneralRe: Java Memory Management Pin
NormDroid12-Feb-08 1:47
professionalNormDroid12-Feb-08 1:47 
GeneralRe: Java Memory Management Pin
dojohansen12-Feb-08 3:10
dojohansen12-Feb-08 3:10 
GeneralRe: Java Memory Management Pin
Mike Dimmick15-Feb-08 1:25
Mike Dimmick15-Feb-08 1:25 
GeneralRe: Java Memory Management Pin
dojohansen15-Feb-08 2:18
dojohansen15-Feb-08 2:18 
From Tess' blog:

"Virtual memory allocations are not necessarily (or very seldom) lined up nicely in memory. For example, dll’s have preferred loading addresses so gaps are left between them, and virtual allocations that have been de-allocated will also leave gaps. This means that even though you can address 2 GB of virtual memory you may not be able to use it all since when enough memory is used, the memory will look somewhat like a Swiss cheese and your plug might have a big enough hole to fit in.

This is what happens when you get an OutOfMemory exception."

It seems to me like what these two blogs are saying is conflicting, and I don't know which one to believe.
GeneralRe: Java Memory Management Pin
TheGreatAndPowerfulOz18-Feb-08 12:02
TheGreatAndPowerfulOz18-Feb-08 12:02 
GeneralRe: Java Memory Management Pin
dojohansen18-Feb-08 21:57
dojohansen18-Feb-08 21:57 
GeneralRe: Java Memory Management Pin
KarstenK13-Feb-08 20:45
mveKarstenK13-Feb-08 20:45 
Generaljavascript-professionals Pin
wickdom8-Feb-08 5:56
wickdom8-Feb-08 5:56 
GeneralRe: javascript-professionals PinPopular
PIEBALDconsult9-Feb-08 17:59
mvePIEBALDconsult9-Feb-08 17:59 
GeneralRe: javascript-professionals Pin
Paul Conrad17-Feb-08 6:49
professionalPaul Conrad17-Feb-08 6:49 
GeneralBool expression?? Pin
Erich Ledesma7-Feb-08 18:41
Erich Ledesma7-Feb-08 18:41 
GeneralRe: Bool expression?? Pin
leppie7-Feb-08 21:32
leppie7-Feb-08 21:32 
GeneralRe: Bool expression?? Pin
AEternal8-Feb-08 2:43
AEternal8-Feb-08 2:43 
GeneralRe: Bool expression?? Pin
PIEBALDconsult8-Feb-08 4:03
mvePIEBALDconsult8-Feb-08 4:03 
JokeRe: Bool expression?? Pin
BadKarma8-Feb-08 4:16
BadKarma8-Feb-08 4:16 
GeneralRe: Bool expression?? Pin
AEternal8-Feb-08 4:34
AEternal8-Feb-08 4:34 
GeneralRe: Bool expression?? PinPopular
PIEBALDconsult8-Feb-08 6:53
mvePIEBALDconsult8-Feb-08 6:53 
GeneralRe: Bool expression?? Pin
Vasudevan Deepak Kumar14-Feb-08 3:39
Vasudevan Deepak Kumar14-Feb-08 3:39 
GeneralRe: Bool expression?? Pin
Michael P. Scherer13-Feb-08 11:05
Michael P. Scherer13-Feb-08 11:05 
GeneralRe: Bool expression?? Pin
BadKarma13-Feb-08 21:19
BadKarma13-Feb-08 21:19 
GeneralRe: Bool expression?? Pin
Vasudevan Deepak Kumar14-Feb-08 3:40
Vasudevan Deepak Kumar14-Feb-08 3:40 

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.