Click here to Skip to main content
15,891,785 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 CString Pin
steveb21-Jul-08 11:31
mvesteveb21-Jul-08 11:31 
GeneralRe: Fun With CString Pin
CPallini21-Jul-08 11:39
mveCPallini21-Jul-08 11:39 
GeneralRe: Fun With CString Pin
steveb21-Jul-08 11:57
mvesteveb21-Jul-08 11:57 
GeneralRe: Fun With CString Pin
CPallini21-Jul-08 20:53
mveCPallini21-Jul-08 20:53 
GeneralRe: Fun With CString Pin
Joe Woodbury21-Jul-08 20:59
professionalJoe Woodbury21-Jul-08 20:59 
GeneralRe: Fun With CString Pin
Rick York21-Jul-08 19:43
mveRick York21-Jul-08 19:43 
General[Message Deleted] PinPopular
Star Vega18-Jul-08 1:44
Star Vega18-Jul-08 1:44 
GeneralRe: Why not edit the Designer file? Pin
CPallini18-Jul-08 1:52
mveCPallini18-Jul-08 1:52 
Star Vega wrote:
I'm working on this horrible legacy... to give you an example, the main form contains about 48000 lines of code, containing gui, business and, yeah, all the data access. Nice, isn't it?

It's a horror. My former company had an MFC application featuring more than 100000 OMG | :OMG: lines of code for the frame window.

Star Vega wrote:
But here's (yet) the best part: if you want to display a checkbox at certain moments, why not surround the checkbox code in the form's designer code (auto-generated, remember) with an if-statement?
The difficult part is (you are guessing right!) that you have to rewrite this code very often (whén their code disappears, they don't have a clue). Clever as they are, they attached this text file with the code you have to rewrite so often.

Horror keeps running. Roll eyes | :rolleyes:

Star Vega wrote:
By the way, they offered me training - should I start looking for another company?

I did.
Smile | :)


[added]

Someone of my former company saw this post, I suppose... Roll eyes | :rolleyes:

[/added]

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


[My articles]

GeneralRe: Why not edit the auto-generated file? Pin
Pavel Vladov18-Jul-08 3:42
Pavel Vladov18-Jul-08 3:42 
GeneralRe: Why not edit the auto-generated file? Pin
Star Vega18-Jul-08 4:12
Star Vega18-Jul-08 4:12 
GeneralRe: Why not edit the auto-generated file? Pin
PIEBALDconsult18-Jul-08 7:20
mvePIEBALDconsult18-Jul-08 7:20 
GeneralRe: Why not edit the auto-generated file? Pin
Big Daddy Farang18-Jul-08 10:45
Big Daddy Farang18-Jul-08 10:45 
GeneralRe: Why not edit the auto-generated file? Pin
Lutosław21-Jul-08 11:54
Lutosław21-Jul-08 11:54 
GeneralRe: Why not edit the auto-generated file? [modified] Pin
Star Vega21-Jul-08 22:22
Star Vega21-Jul-08 22:22 
GeneralRe: [Message Deleted] Pin
Paul Conrad22-Jul-08 15:43
professionalPaul Conrad22-Jul-08 15:43 
GeneralRe: [Message Deleted] Pin
Lutosław26-Jul-08 12:17
Lutosław26-Jul-08 12:17 
GeneralPass by value and pass by reference Pin
Sherin Iranimose17-Jul-08 6:49
Sherin Iranimose17-Jul-08 6:49 
GeneralRe: Pass by value and pass by reference Pin
Maximilien17-Jul-08 7:26
Maximilien17-Jul-08 7:26 
GeneralRe: Pass by value and pass by reference Pin
Sherin Iranimose17-Jul-08 18:21
Sherin Iranimose17-Jul-08 18:21 
GeneralRe: Pass by value and pass by reference Pin
BillW333-Sep-08 2:44
professionalBillW333-Sep-08 2:44 
GeneralRe: Pass by value and pass by reference PinPopular
Pete O'Hanlon17-Jul-08 9:25
mvePete O'Hanlon17-Jul-08 9:25 
JokeRe: Pass by value and pass by reference Pin
Big Daddy Farang17-Jul-08 10:03
Big Daddy Farang17-Jul-08 10:03 
GeneralRe: Pass by value and pass by reference Pin
Chris Meech17-Jul-08 11:43
Chris Meech17-Jul-08 11:43 
GeneralRe: Pass by value and pass by reference Pin
Big Daddy Farang17-Jul-08 11:50
Big Daddy Farang17-Jul-08 11:50 
GeneralRe: Pass by value and pass by reference Pin
Paul Conrad17-Jul-08 16:24
professionalPaul Conrad17-Jul-08 16:24 

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.