|
honey the codewitch wrote: burned your house down. It's much more time and space efficient than taking out the trash. How the heck is burning down a house every week efficient?
|
|
|
|
|
It saves you from having to take the garbage out.
Real programmers use butterflies
|
|
|
|
|
That's more like deleting your entire application to solve a single bug...
Maybe you just don't know how analogies work?
|
|
|
|
|
No, that's basically how my code works.
Real programmers use butterflies
|
|
|
|
|
|
Article methinks - I think you should write a book - Random thoughts of a clever mad Witch
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
You don't simply collect Garbage in Mordor!
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Garbage shall not pass.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
I reserve that one for some unit test. "YOU ! Shall! Not! Pass!"
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Sure, C++ is love, but at what price does this "love" cost? your soul, I am sure. We are talking about C++ here.
|
|
|
|
|
My soul? Oh that old thing? I think I traded it for some concert tickets back in the day.
Real programmers use butterflies
|
|
|
|
|
|
magic!
Real programmers use butterflies
|
|
|
|
|
Also confusing language and libraries. e.g. C++ managed and unmanaged.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Some of us find the light again. Some of us never lose it.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
When I saw your post, I wondered how badly you were going to get flamed, given the popularity of C# on this site. I never thought this thread would stay so civilized, let alone be fairly positive.
|
|
|
|
|
I share your surprise.
Real programmers use butterflies
|
|
|
|
|
The day is not over yet.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I don't hate C++, but I don't share your sentiments. This is almost certainly my own failing, though—it's not a problem with the language so much (which is alright, I guess), I just always end up fighting with the compiler/linker. I've never worked with C++ enough to become much more than minimally competent with it.
|
|
|
|
|
There's a certain point - and it can take awhile with C++ - where you reach a level that it is no longer intimidating or as frustrating.
True, I did recently spend all morning and ask a stackoverflow question because I missed a "=0" at the end of one of my functions and was responded to with "missing vtable for class" or some such, but that's life, you know?
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: The only downside with it is it hides nothing
Actually, it does. Time to move to Assembly.
|
|
|
|
|
Okay that's fair, except I can't think of much I can't get to in C++ with the right massaging of the compiler. I can manually build vtbls, i can make call stack frames myself, typically, I can even drop to inline assembly if I really want.
So I see it more as giving you more tools than ASM. I don't think it takes anything away.
Real programmers use butterflies
|
|
|
|
|
Make your own vtbls and call stack frames? Do tell. When do you find this useful?
My naughtiest code changed an object's class at runtime by changing its vptr. The two classes in question had a common base class and owned other objects, so this avoided a messy deep copy and fixing pointers to the morphed object. I wonder how many OO languages could do that.
|
|
|
|
|
The call stack frames can be useful for doing things like method logging frameworks
The vtbl manipulation is useful if your making a library to do hardcore COM interop
Real programmers use butterflies
|
|
|
|
|
John Lennon said, "All you need is love."
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|