Thread: Do you use classes?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User DedicatedGamer's Avatar
    Join Date
    Mar 2016
    Posts
    21
    I do not use classes. I think they are slow and confusing. However, in order to contain a lot of code, I must use an advanced IDE environment like Microsoft's visual studio.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by DedicatedGamer View Post
    Are classes really necessary?
    Yes.

    Do you use classes?
    Yes.

    Do you think using classes makes a program faster or slower?
    Neither. Classes are tools. It all depends on how you write your code.

    Quote Originally Posted by DedicatedGamer View Post
    Do you think using classes makes writing a complex application easier or more confusing and tedious?
    Easier by a huge margin.

    Quote Originally Posted by DedicatedGamer View Post
    I do not use classes. I think they are slow and confusing.
    Classes are not slow. The code you write can be slow, but that isn't related to classes at all.
    If you find them confusing, then you had better start understanding them better. Classes are bread and butter in today's programming world because it's a value tool that makes code organization a lot easier.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Quote Originally Posted by DedicatedGamer View Post
    I do not use classes. I think they are slow and confusing. However, in order to contain a lot of code, I must use an advanced IDE environment like Microsoft's visual studio.
    Oh, and as to being confusing: that really just indicates you don't intuitively understand the concept yet. It can be confusing at first to learn to think in object-oriented terms, but once you can, it's very fast and easy.

    That will be the same with many concepts you'll come across in software. At first the ideas seem new and alien, and it's a struggle just to understand them. After a while, you develop some confidence, things go quicker, and as you keep on keeping on, eventually you develop mastery, and can quickly and easily think about problems in the right way. Pointers are one of the first conceptual hurdles most of us come across. Class-based OOP is another. There are plenty more to come - if you're not regularly having that experience, you're probably not developing your skillset as much as you really could.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array of classes with classes inside
    By questionmark in forum C++ Programming
    Replies: 3
    Last Post: 10-04-2013, 03:39 PM
  2. Conversions between base classes and derived classes
    By tharnier in forum C++ Programming
    Replies: 14
    Last Post: 03-18-2011, 10:50 AM
  3. Classes access other classes local variables
    By parad0x13 in forum C++ Programming
    Replies: 6
    Last Post: 01-14-2010, 04:36 AM
  4. Classes with Other Classes as Member Data
    By njd in forum C++ Programming
    Replies: 2
    Last Post: 09-27-2005, 09:30 AM
  5. Help accessing classes and derived classes
    By hobbes67 in forum C++ Programming
    Replies: 8
    Last Post: 07-14-2005, 02:46 PM