Click here to Skip to main content

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.

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralSometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 1:49 
I've just seen this wonderful comment in the "Other suggestions" section of one of our beautiful CPP-headers:
 
//Other suggestions:
//80x24 fetishists: This code is optimezed for 1920x1200 -> the stone age is over, really!

GeneralRe: Sometimes I wonder about code commentsmemberPIEBALDconsult19 Feb '13 - 3:36 
Oy vey. My monitor is only 1680x1050, whatever will I do? Roll eyes | :rolleyes:
 
Perhaps whoever wrote that doesn't know that we can choose the size of our text? Confused | :confused:
 
And I suspect he hasn't learned from the past.
GeneralRe: Sometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 3:41 
PIEBALDconsult wrote:
Oy vey. My monitor is only 1680x1050, whatever will I do?

Nothing. May I should have mentioned that the program runs on a closed environment with a fixed screen size? Which makes the comment just more useless D'Oh! | :doh:
GeneralRe: Sometimes I wonder about code commentsmemberPIEBALDconsult19 Feb '13 - 3:57 
Marco Bertschi wrote:
runs on a closed environment

 
What does that matter when we're talking about the code?
GeneralRe: Sometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 4:12 
With closed environment like I mean: Even the screen size is predefined because the customer receives the medical diagnostic instrument with a built-in computer and a built-in screen which already has been defined in the requirements before a single line of code was written...
 
So it is not just logically a closed environemtn: It is physically close too.
GeneralRe: Sometimes I wonder about code commentsmemberCollin Jasnoch19 Feb '13 - 4:16 
Marco Bertschi wrote:
with a built-in computer and a built-in screen which already has been defined in the requirements before a single line of code was written...

 

So it is not just logically a closed environemtn: It is physically close too.

 

Until the customer requests a different screen size and your BD say "Sure no problem!"... Then your stuck holding the bag because the code committed a faux pas and assumed a specific screen size.
 
Have fun with that Laugh | :laugh:
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

GeneralRe: Sometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 4:36 
Collin Jasnoch wrote:
Until the customer requests a different screen size and your BD say "Sure no problem!"

They do not. This is medical business, changing something even if it is just a change at the monitor size does need a validation of the whole system and would cost millions.
 
But this restriction will fall down anyways with the next SW version. The app will finally become screen size-innocent.
GeneralRe: Sometimes I wonder about code commentsmemberCollin Jasnoch19 Feb '13 - 4:39 
Marco Bertschi wrote:
This is medical business, changing something even if it is just a change at the monitor size does need a validation of the whole system and would cost millions.

 

This does not mean it does not happen.
 

Marco Bertschi wrote:
But this restriction will fall down anyways with the next SW version. The app will finally become screen size-innocent.

It also does not mean you will get to start over. That is often a decision not made by the dev team or even the first layer or 2 of management. There are usually politics involved and it is much more likely they will say "Take what you have and make it do XYZ". Even if you have an argument that starting over will make XYZ easier and more main-table it does not mean that will not choose the path of continuing development on a broken system.
 
I work in the aerospace industry and it is also very slow moving... Yet I have just witnessed this happen and would like to slap some programmers around with my keyboard.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

GeneralRe: Sometimes I wonder about code commentsmemberSoMad19 Feb '13 - 9:56 
I thought the original comment was about the source code. Meaning you (yes, you the programmer, not the customer) would not be able to see the entire line of code in your IDE if you were using a lower screen resolution.
 
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

GeneralRe: Sometimes I wonder about code commentsmemberPIEBALDconsult19 Feb '13 - 12:59 
But the specifics of output device have nothing to do with the format of the source code.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 24 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid