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.
|
|
 |

|
try
{
account.Save();
}
catch { ; }
|
|
|
|

|
At least there are comments.
|
|
|
|

|
I can think of a few comments myself...
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|

|
Guess programmer was hungry thats why he "ate" the exception
Always Keep Smiling.
Yours Pankaj Nikam
|
|
|
|

|
Relax.
This is just sweeping under the rug.
It could be worse.
Mislim, dakle jeo sam.
|
|
|
|

|
I notice that a fair few of the recent posts here seem out of place.
Can't people read?
ps. I guess that by posting this, I now have to include myself in that category, but I'm hoping to be indulged.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|

|
Two wrongs don't make a right.
|
|
|
|

|
But three lefts do.
(well, someone had to do it!)
Quidquid latine dictum sit, altum viditur.
|
|
|
|

|
I resisted doing it myself.
|
|
|
|

|
It was better when it was the Hall of Shame, if you ask me.
|
|
|
|

|
Most of the time I just click the links from the main page to get to various threads, having no idea which forum they're in or what on earth the forum description is if any
|
|
|
|

|
Apparently some people can't even spell forum anymore let alone read a description about its purpose...
Rhys
"If you ever start taking things too seriously, just remember that we are talking monkeys on an organic spaceship flying through the Universe"
|
|
|
|

|
Well I had to have some kind of horror in their to justify posting to this forum
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|

|
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.
I'm not fully versed in .NET or Java coding. Anyone care to shed more light on the subject.
modified 9 May '13 - 20:02.
|
|
|
|

|
dusty_dex wrote: The CLR/JAVA Runtime are the only executable code DEP has any direct control of
Nope not true at all. It has full control over native code too. Also, don't forget that these runtimes are written in native code.
Just as a point of interest, some CPU's have a hardware based DEP[^]
.-.
|o,o|
,| _\=/_ .-""-.
||/_/_\_\ /[] _ _\
|_/|(_)|\\ _|_o_LII|_
\._. |\_/|"` |_| ==== |_|
|_|_| ||" || ||
|-|-| ||LI o ||
|_|_| ||'----'||
/_/ \_\ /__| |__\
|
|
|
|

|
Sorry, my wording could have been clearer.
[I've made a minor modification to the original post]
I know that the DEP handles *all* native code, but that's what I was getting at. The runtimes are native code but I wanted to know whether the MSIL code/ Java Bytecode is kept in the dcache or icache along with native code.
I thought native code, unless specifically marked as shared would otherwise be read-only and not modifiable at runtime. Which led me to wonder about the location .NET/Java bytecodes and the whole self-modifying code (code injection) problem, with the apparent side-stepping of DEP protection.
|
|
|
|
|

|
So which forum?
I based my decision on the WORST/BEST PRACTICES which is mentioned at the top.
|
|
|
|

|
I think the life of software developer is a nothing but "The journey between LOGIN & LOGOUT"
What is your opinion??
eNJOY c0ding....
|
|
|
|

|
it's just a job, and it doesn't count as life
d{^__^}b - it's time to fly
|
|
|
|

|
I agree it doesn't count life but it is not a part of life??
eNJOY c0ding....
|
|
|
|

|
it's a waste of life, mostly coding useless stuff
d{^__^}b - it's time to fly
|
|
|
|

|
I think you had something bad experience about cOding.
eNJOY c0ding....
|
|
|
|

|
i don't see whats so 'enjoyable', it's sunny warm day, and it's wasted sitting in the office...
d{^__^}b - it's time to fly
|
|
|
|

|
Take a break and spend time with friends and family.
it will remove your stress as you mentioned in you trailing message!!!
eNJOY c0ding....
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin