|
oh that burns But I console myself with the fact they I work at an hourly rate. The more you elephant it up, the more money I bank. I love legacy code - it's never my fault.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Sounds like the Console class to me.
|
|
|
|
|
I guess it should be called COMMON and be a byte array onto which any user might impose their own structure.
|
|
|
|
|
Now there's a great idea! Talk about reusable code; that would make it almost universal. The only thing better would be to add indirection, along with a couple of methods to expand or contract the space allocated, and we're covered for any contingency.
Will Rogers never met me.
|
|
|
|
|
Inheritance is ONLY somewhat useful?
Wow, base classes that do all of the definition, layout and heavy lifting are the lifeblood of most of my programs.
Specifically base forms that add the core functionality, are inherited multiple times in multiple ways, and that standard functionality applied across similar but different screens.
My jaw is still dropped...
BTW, most C guys are trainable. Show them how to refactor their code. Catch this in code reviews, and make sure it does not happen again.
|
|
|
|
|
Kirk - not arguing, but you've gone right where I've found inheritance to be most useful - definition, layout, base behavior of graphical items - completely agree.
What I've found is that when I start getting into more application domain objects, one needs be very, very careful.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Charlie,
Absolutely. Inheritance is core to GUI components (a button). Subclassing that, and making it a graphic button, etc. Wonderful.
But it is the ONE area of OOP that really requires "Architectural Forethought". And if I am not building a complete framework, I try to limit my inheritance requirements. But it is great when you have a client say: We need to generate a PDF of any of the given screens, and you can add that to the base class, expose the access method and bam... 40 screens now have cool functionality!
|
|
|
|
|
Now that's just a good damn idea - right up there with a brilliant flash of the obvious. You could almost leave the base class empty as a hook.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
If you are out to impress the ladies, wear a Selachimorpha costume.
'Cause every girl crazy 'bout a shark dressed man.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
But some choose to be lone sharks.
|
|
|
|
|
|
How do you Mako this stuff up?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Which one: [^] ?
Them is can be pricy: [^].
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
|
|
|
|
|
Something very fishy about that one. Nonetheless, it will tide me over until tomorrow.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
You need a porpoise in your life.
|
|
|
|
|
On a scale from one to ten, how does carping as a pro-fish-ional pundit fill the bill?
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I fear it's too late for that. Fins aren't what they used to be!
|
|
|
|
|
I just found out the project I've been working on for the past few months needs IE8 support...
Step 1: Bravely start by changing your version of jQuery.
Step 2: Behold all the errors as IE revels in wickedness.
Step 3: Cry.
Step 4: Apply for a job at McDonalds.
Whyyyyyyy!?
|
|
|
|
|
Sander Rossel wrote: Apply for a job at McDonalds.
Whyyyyyyy!?
Because you're lovin' it?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Compared to IE8? Oh yes, I love McDonalds!
|
|
|
|
|
Put this in the html header and you're done:
<!--
|
|
|
|
|
Why stop at IE9?
|
|
|
|
|
It could have been worse... IE6...
|
|
|
|
|
Or Netscape
|
|
|
|