the language of the gods - C++

This is a discussion on the language of the gods - C++ within the A Brief History of Cprogramming.com forums, part of the Community Boards category; "Music is the language of the Gods." - Gary L. McCann "So is C++." - Me "Java doesn't even come ...

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738

    Cool the language of the gods - C++

    "Music is the language of the Gods." - Gary L. McCann
    "So is C++." - Me
    "Java doesn't even come close." - Also by me
    My Website

    "Circular logic is good because it is."

  2. #2
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    C++ isn't that great for everything...I don't like super object oriented programming. i use inheritance in one class in my game engine, and all of my other classes are basically just structs, and it's that simple design that makes life easy for me. I love seeing people write templated polymorphic object oriented 'game engines' that look complicated and do absolutely nothing

    EDIT:
    of course that's a proven design that works for me...i think it depends on the individual. a, uhm, friend told me that the source code to some new game engine that was stolen off of the internet somehow is super object oriented, and it's supposed to be a hit game, but I don't know what it is...
    Last edited by Silvercord; 01-06-2004 at 10:28 AM.

  3. #3
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    half-life 2
    I came up with a cool phrase to put down here, but i forgot it...

  4. #4
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    C++ is the best language by far for my particular area. I wont argue about its use in areas I havent played in. But I've used quite a number of languages and for standard app development, it. is. the. best.

    And OOP is god. The beauty of it is not so much in small application development, as in the development of base level code such as engines for large projects. OOP is nice for basically everything, but its real strength lies in its robust usability, error management, and design cleanliness. I would wet myself if I was ever forced to write a 2000+ line app withough OOP design.

    [/tangent]
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I would wet myself if I was ever forced to write a 2000+ line app withough OOP design.
    2000+? That would be nice with or without OOD because it suggests a small and easy project. If the specification suggests 2k+ and goes over 10k without adding signifigant features, the project team has issues.

    >OOP is nice for basically everything
    In my experience, OOP is like alcohol: best used in moderation. Just about everyone who hails OOP as the best thing since binary overuses it to the point where their code is bloated and of poor quality. On the other hand, when used sparingly and intelligently, OOP can result in elegant and robust designs.
    My best code is written with the delete key.

  6. #6
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    the real use I see in super object oriented game engines is the modability of those engines, as well as the modularity. I havent seen any real use to OOP in my smaller applications, as it ends up being pretty worthless if you have under 1k lines.

  7. #7
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    People seem to forget that a function is a module. People also seem to forget that C is still a language based on objects, just without strict type safety. You can implement a lot of the useful functionality of C++ in C, i.e with so-called polymorphic data types you can have a structure with function pointers which are initialized based on whatever type you want to create, which is all a C++ virtual table is anyway. Although there are definitely times when I am glad I have C++.

    EDIT:
    I'm afraid to bring this up, because the cprogramming boards might explode, but I have done some normal winAPI programming, and then I went to try to learn MFC...and MFC was too confusing for what I wanted to get out of it, so I just went home, took a crap, and then stuck with normal winapi programming.

  8. #8
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Originally posted by Silvercord
    People seem to forget that a function is a module. People also seem to forget that C is still a language based on objects, just without strict type safety. You can implement a lot of the useful functionality of C++ in C, i.e with so-called polymorphic data types you can have a structure with function pointers which are initialized based on whatever type you want to create, which is all a C++ virtual table is anyway. Although there are definitely times when I am glad I have C++.

    EDIT:
    I'm afraid to bring this up, because the cprogramming boards might explode, but I have done some normal winAPI programming, and then I went to try to learn MFC...and MFC was too confusing for what I wanted to get out of it, so I just went home, took a crap, and then stuck with normal winapi programming.
    MFC != C++. I'm not a big fan of it, either.

    I've recently been trying to switch my brain from C to C++, but I can't for the life of me figure out why I'd need to make some things classes when I could do the same thing procedularly with less of a headache. That's about all I've been struggling with, though - I guess I just need to get used to it. Right now I just know procedural better than OOP so I guess it seems like overkill to code classes for certain things.

  9. #9
    ___
    Join Date
    Jun 2003
    Posts
    806
    I prefer C. I use linux, my kernel is made from C. Makes sence to use the "official" language of my operating system. For OOP, I use Python.
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  10. #10
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    MFC != C++.
    this statement doesn't even make sense and I'm trying to figure out where you are coming from with it...

  11. #11
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    It's not that the statement doesn't make since, it's just that they are different var types, and can not be compared with that simple operator.

    MFC is just a set of classes. C++ is a language.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  12. #12
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Originally posted by Silvercord
    this statement doesn't even make sense and I'm trying to figure out where you are coming from with it...
    >>I'm afraid to bring this up, because the cprogramming boards might explode, but I have done some normal winAPI programming, and then I went to try to learn MFC...and MFC was too confusing for what I wanted to get out of it, so I just went home, took a crap, and then stuck with normal winapi programming.<<

    It seemed like you were implying that MFC was the C++ version of WinAPI programming, which it most certainly is not. If you weren't, then nevermind .

  13. #13
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Originally posted by ZakkWylde969
    I prefer C. I use linux, my kernel is made from C. Makes sence to use the "official" language of my operating system. For OOP, I use Python.
    Quoted for being quite possibly the stupidest thing I've ever read.

  14. #14
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    >2000+? That would be nice with or without OOD because it suggests a small and easy project.

    True. But I find that a more OOP based app comes together in a more orderly fashion. The brain lends itself more to an object oriented concept than a modular one. We dont think in random chunks. OOP has a certain flow that, though I cont put it in words, usually results in less design errors.

    >In my experience, OOP is like alcohol: best used in moderation.

    Heh... Maybe that wasnt the best analogy, seeing as how I've been partying almost every night for the last... hmmm... 8 years. Seriously though, I see no issue with using an OO design in basically every situation except extremly small applications. Yes, its possible that bloating could occure in situations, but its not a fact. Everything has dangers. I just know that my OO apps are far more robust, more error free, easier to upkeep, more easily readable, and far easier to interface code with in general.

    Anyhow, I'm just raving on now. Its just that I used to use modular design over OO, and now that I'm a convert I have no idea how I ever managed without it. Its strongly my opinion that you need to have a firm understanding of it to ever write a commercial grade application.

    K, I'm finally done.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  15. #15
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    It seemed like you were implying that MFC was the C++ version of WinAPI programming, which it most certainly is not. If you weren't, then nevermind .
    you can't really compare an api and a language, but you do know that mfc is the microsoft foundation *CLASSES*, right? It's the object oriented version of winapi...and subsequently I think you're doing drugs

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What language did they make Java in?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 07-03-2005, 04:18 PM
  2. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 01:40 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  4. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  5. Languages dying
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 31
    Last Post: 07-29-2003, 10:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21