Click here to Skip to main content
13,259,986 members (51,060 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, 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: Why not: // just shoot me! Pin
esaulsberry22-May-13 4:21
memberesaulsberry22-May-13 4:21 
GeneralRe: Why not: // just shoot me! Pin
Konstardiy from Tbilisi27-May-13 0:07
memberKonstardiy from Tbilisi27-May-13 0:07 
GeneralCan't people read the form description anymore? Pin
Rob Grainger16-May-13 4:20
memberRob Grainger16-May-13 4:20 
GeneralRe: Can't people read the form description anymore? Pin
PIEBALDconsult16-May-13 5:21
professionalPIEBALDconsult16-May-13 5:21 
JokeRe: Can't people read the form description anymore? Pin
Carlos Fonseca16-May-13 5:31
memberCarlos Fonseca16-May-13 5:31 
GeneralRe: Can't people read the form description anymore? Pin
PIEBALDconsult16-May-13 5:37
professionalPIEBALDconsult16-May-13 5:37 
GeneralRe: Can't people read the form description anymore? Pin
BrainiacV21-May-13 4:32
memberBrainiacV21-May-13 4:32 
GeneralRe: Can't people read the form description anymore? Pin
BobJanova16-May-13 5:43
memberBobJanova16-May-13 5:43 
GeneralRe: Can't people read the form description anymore? Pin
Dave Calkins16-May-13 8:41
memberDave Calkins16-May-13 8:41 
JokeRe: Can't people read the form description anymore? Pin
Rhys Gravell17-May-13 5:02
professionalRhys Gravell17-May-13 5:02 
GeneralRe: Can't people read the form description anymore? Pin
Rob Grainger20-May-13 23:33
memberRob Grainger20-May-13 23:33 
GeneralRe: Can't people read the form description anymore? Pin
BrainiacV21-May-13 4:33
memberBrainiacV21-May-13 4:33 
JokeRe: Can't people read the form description anymore? Pin
ryanb3121-May-13 5:06
memberryanb3121-May-13 5:06 
GeneralCode Safety and The .Net CLR & Java Runtime Pin
dusty_dex9-May-13 13:36
memberdusty_dex9-May-13 13:36 
Apologies if this subject has already been discussed before.

After stumbling upon last September's Best C# Article NET-CLR-Injection-Modify-IL-Code-during-Run-time and learning about endless security issues with the Java Runtime.

Are these platforms actually safer than conventional compiled executables?

Isn't the whole point of Data Execution Prevention (DEP) meant to stop run-time modification of running code? The CLR/JAVA Runtime engines have the only *native* code that DEP has any direct control of, but they are allowed to run without question, because of some dubious assumption that code for a virtual cpu/machine can do no real damage.

Maybe I'm wrong, but I can't help thinking that code under direct control of the 'real' cpu is safer than these virtualized runtime environments. Suspicious | :suss:

I'm not fully versed in .NET or Java coding. Anyone care to shed more light on the subject.



modified 9-May-13 20:02pm.

GeneralRe: Code Safety and The .Net CLR & Java Runtime Pin
Lloyd Atkinson9-May-13 14:31
memberLloyd Atkinson9-May-13 14:31 
GeneralRe: Code Safety and The .Net CLR & Java Runtime Pin
dusty_dex9-May-13 14:57
memberdusty_dex9-May-13 14:57 
GeneralRe: Code Safety and The .Net CLR & Java Runtime Pin
PIEBALDconsult9-May-13 17:09
professionalPIEBALDconsult9-May-13 17:09 
GeneralRe: Code Safety and The .Net CLR & Java Runtime Pin
dusty_dex10-May-13 0:55
memberdusty_dex10-May-13 0:55 
GeneralLife of Software Developer Pin
Juhi Paunikar6-May-13 3:32
memberJuhi Paunikar6-May-13 3:32 
GeneralRe: Life of Software Developer Pin
radioman.lt6-May-13 4:41
memberradioman.lt6-May-13 4:41 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar6-May-13 21:18
memberJuhi Paunikar6-May-13 21:18 
GeneralRe: Life of Software Developer Pin
radioman.lt6-May-13 21:41
memberradioman.lt6-May-13 21:41 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar6-May-13 22:01
memberJuhi Paunikar6-May-13 22:01 
GeneralRe: Life of Software Developer Pin
radioman.lt6-May-13 22:06
memberradioman.lt6-May-13 22:06 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar6-May-13 22:14
memberJuhi Paunikar6-May-13 22:14 
GeneralRe: Life of Software Developer Pin
radioman.lt6-May-13 22:19
memberradioman.lt6-May-13 22:19 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar6-May-13 23:32
memberJuhi Paunikar6-May-13 23:32 
GeneralRe: Life of Software Developer Pin
radioman.lt6-May-13 23:40
memberradioman.lt6-May-13 23:40 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar7-May-13 0:07
memberJuhi Paunikar7-May-13 0:07 
GeneralRe: Life of Software Developer Pin
Suvabrata Roy6-May-13 5:22
professionalSuvabrata Roy6-May-13 5:22 
GeneralRe: Life of Software Developer Pin
Dennis E White6-May-13 5:35
memberDennis E White6-May-13 5:35 
GeneralRe: Life of Software Developer Pin
PIEBALDconsult6-May-13 5:54
professionalPIEBALDconsult6-May-13 5:54 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar6-May-13 21:17
memberJuhi Paunikar6-May-13 21:17 
GeneralRe: Life of Software Developer Pin
Peter_in_27806-May-13 23:39
memberPeter_in_27806-May-13 23:39 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar7-May-13 0:10
memberJuhi Paunikar7-May-13 0:10 
GeneralRe: Life of Software Developer Pin
Pete O'Hanlon7-May-13 1:53
protectorPete O'Hanlon7-May-13 1:53 
GeneralRe: Life of Software Developer Pin
Juhi Paunikar7-May-13 2:04
memberJuhi Paunikar7-May-13 2:04 
GeneralRe: Life of Software Developer Pin
Pete O'Hanlon7-May-13 2:07
protectorPete O'Hanlon7-May-13 2:07 
GeneralRe: Life of Software Developer Pin
Pete O'Hanlon7-May-13 2:32
protectorPete O'Hanlon7-May-13 2:32 
GeneralRe: Life of Software Developer Pin
Marc Clifton6-May-13 10:26
protectorMarc Clifton6-May-13 10:26 
AnswerRe: Life of Software Developer Pin
tumbledDown2earth9-May-13 22:27
membertumbledDown2earth9-May-13 22:27 
GeneralRe: Life of Software Developer Pin
Bikash Prakash Dash11-May-13 5:59
memberBikash Prakash Dash11-May-13 5:59 
GeneralRe: Life of Software Developer Pin
harshal768918-May-13 0:29
memberharshal768918-May-13 0:29 
GeneralRe: Life of Software Developer Pin
Filipe Moreira de Oliveira18-May-13 6:05
professionalFilipe Moreira de Oliveira18-May-13 6:05 
Generalfor(int i=0; i<size; i++) Pin
tumbledDown2earth29-Apr-13 22:58
membertumbledDown2earth29-Apr-13 22:58 
GeneralRe: for(int i=0; i<size; i++) Pin
Lloyd Atkinson29-Apr-13 23:03
memberLloyd Atkinson29-Apr-13 23:03 
GeneralRe: for(int i=0; i<size; i++) Pin
Freak3029-Apr-13 23:38
memberFreak3029-Apr-13 23:38 
GeneralRe: for(int i=0; i<size; i++) Pin
Member 46088983-May-13 20:46
memberMember 46088983-May-13 20:46 
GeneralRe: for(int i=0; i<size; i++) Pin
Amarnath S30-Apr-13 0:48
memberAmarnath S30-Apr-13 0:48 
GeneralRe: for(int i=0; i<size; i++) Pin
Rosenne30-Apr-13 21:18
memberRosenne30-Apr-13 21:18 

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.


Advertise | Privacy |
Web04 | 2.8.171114.1 | Last Updated 24 Nov 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid