My newfound respect for C++ and OOP
I have been reading "C++ from the ground up" by Herbert Schildt in my spare time. It was a good deal. Original price: $64.99 My price: $7.99.
I just stared reading about classes last night and already I have fallen in love.
I come form a modest background. DJGPP(c) and Allegro. NOw I am using mingw with allegro in an attempt to begin learning C++, OOP, and windows programming.
Last night I made my first object. It was a blitter object (commonly reffered to as a "bob").
I loved my bob.
My bob loved me.
But somthing was missing. My bob was incomplete.
I mean, sure. It dynamicly allocated and deallocated memmory for bitmaps, handled multiple frames for animation with varying speed, and took care of blitting and blit-time transformations such as rotations and translucency.
but still it was incomplete.
perhaps it was the confusion that was missing. The disorginization that was so prominant in similar code written in good ol'' c.
Oh yes. I am converted. OOP makes programming so easy and fun. Its a breeze to do things that are unimaginably complicated otherwise.
I love my bob.
- Twisted Matrix
- Twisted Matrix
Uh. . . I''m happy for you. . . I guess.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Yes, please take a biscuit.
[ Google || Start Here || ACCU || MSDN || STL || GameCoding || BarrysWorld || E-Mail Me ]
[ Google || Start Here || ACCU || MSDN || STL || GameCoding || BarrysWorld || E-Mail Me ]
[ Google || Start Here || ACCU || STL || Boost || MSDN || GotW || CUJ || MSVC++ Library Fixes || BarrysWorld || [email=lektrix@barrysworld.com]E-Mail Me[/email] ]
quote:
I loved my bob.
My bob loved me.
Wow. Isn't OOP lovely...
If you wrote it in CSP, you and your bob could just 'synchronise' on the event love and not bother with this complicated two-way it-loves-me-and-I-love-it-back thing.
edit: oops, lost the /quote
[edited by - g on February 12, 2003 9:37:48 PM]
quote:
I loved my bob.
My bob loved me.
Two-way relationship (such as this) in the OOP world is quite dangerous.
"after many years of singularity, i'm still searching on the event horizon"
quote: Original post by TwistedMatrix
OOP makes programming so easy and fun. Its a breeze to do things that are unimaginably complicated otherwise.
WARNING: You are on the road to hell. Next two or three years you will spend in desperate and helpless attempts to learn fake, bogus programming methods that never work in the real life. You will question your sanity, you will feel stupid and different from other people, because you can''t come up with the "right" design. And then, one day, you will realize that you have been fooled - all the time and work has been wasted pointlessly, and you''ll have to re-learn everything.
However I''m not that stupid to hope you''ll believe me. But you have been warned.
Most Programmers don''t grok objects. In particular, most games programmers don''t grok object orientation.
[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement