Thread: Writing OOP in C

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Writing OOP in C 
    Registered Member clankilla 1's Avatar
    Join Date
    Feb 2008
    Age
    31
    Posts
    170
    Thanks given
    1
    Thanks received
    6
    Rep Power
    53
    Please remove this, since the ignorance in here in trying to teach people how OO works internally, and people think that languages such as java, c++ are not actually just built upon C and let the compiler handle the messy code.
    Reply With Quote  
     

  2. #2  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    in java, class isn't capitalized. just thought i'd point that out.
    .
    Reply With Quote  
     

  3. #3  
    Renown Programmer

    Join Date
    Dec 2010
    Posts
    2,876
    Thanks given
    508
    Thanks received
    1,898
    Rep Power
    5000
    instead of writing an abominable mess of c, why not use c++ or even objective c
    Reply With Quote  
     

  4. #4  
    Registered Member clankilla 1's Avatar
    Join Date
    Feb 2008
    Age
    31
    Posts
    170
    Thanks given
    1
    Thanks received
    6
    Rep Power
    53
    Quote Originally Posted by S747 View Post
    instead of writing an abominable mess of c, why not use c++ or even objective c
    1 - C is better than C++ in terms of faster running time, gives you more access into lower level functions into the computer. (Is like saying why learning ASM if we got C, a ASM can run at the lowest machine level, and a good ASM code runs 10x faster than a good C code since it works at a lower level thus it does not need to do what C compilers do to make the code into ASM, same goes for C++, Java, C# they have to many process to be machine code making their execution slower than lower level languages).
    2 - Objective C is a platform dependant language, while using a multiplatform compiler for C (gcc) can run in windows, linux, mac with just a few changes.
    3 - This is to teach how languages like Java, C#, C++ and all the C derivated languages are written and work at a lower level.
    Reply With Quote  
     

  5. #5  
    Renown Programmer

    Join Date
    Dec 2010
    Posts
    2,876
    Thanks given
    508
    Thanks received
    1,898
    Rep Power
    5000
    Quote Originally Posted by clankilla 1 View Post
    1 - C is better than C++ in terms of faster running time, gives you more access into lower level functions into the computer. (Is like saying why learning ASM if we got C, a ASM can run at the lowest machine level, and a good ASM code runs 10x faster than a good C code since it works at a lower level thus it does not need to do what C compilers do to make the code into ASM, same goes for C++, Java, C# they have to many process to be machine code making their execution slower than lower level languages)..
    go ahead and use c then, just don't do this

    Quote Originally Posted by clankilla 1 View Post
    2 - Objective C is a platform dependant language, while using a multiplatform compiler for C (gcc) can run in windows, linux, mac with just a few changes.
    you can compile objective c for windows and linux

    Quote Originally Posted by clankilla 1 View Post
    3 - This is to teach how languages like Java, C#, C++ and all the C derivated languages are written and work at a lower level.
    you're missing a lot then
    Reply With Quote  
     

  6. #6  
    Registered Member clankilla 1's Avatar
    Join Date
    Feb 2008
    Age
    31
    Posts
    170
    Thanks given
    1
    Thanks received
    6
    Rep Power
    53
    Quote Originally Posted by S747 View Post
    go ahead and use c then, just don't do this


    you can compile objective c for windows and linux


    you're missing a lot then
    Every person has their favorite language mine is C, this is just a guide to help people who are new to OO or would like to understand how it was built, and works internally (in an easy, compact way to understand). Is not my fault you're close minded and think that higher levels came out of nowhere and does not have a lower level working behind. Is like saying Java does not handles pointers, at a programmer level sure, it does not, but internally it does.
    Reply With Quote  
     

  7. #7  
    fumant viriditas quotidiana

    saifix's Avatar
    Join Date
    Feb 2009
    Age
    30
    Posts
    1,237
    Thanks given
    275
    Thanks received
    957
    Rep Power
    3304
    people who are new to object oriented programming should not use this guide
    "Im so bluezd out of my box.
    Im so fkd i canr even sens makeas Smoke blunt 420hash e tizday" - A legendary guy (1993 - 2015)
    Quote Originally Posted by nmopal View Post
    I will be creating a grimy dubstep song using these lyrics and vocaloid please prepare your bodies
    Reply With Quote  
     

  8. Thankful users:


  9. #8  
    Registered Member
    whac's Avatar
    Join Date
    Nov 2011
    Posts
    176
    Thanks given
    35
    Thanks received
    84
    Rep Power
    245
    I dislike this "tutorial" if you can even call it that. Emulating object oriented programming in C is a terrible idea in several ways which I can list out if you want me to do so. Where is your evidence that C is "significantly faster" than C++? In most situations the difference in performance should be trivial, and you shouldn't be worrying about it anyway. If you want PRACTICAL object oriented programming, don't use C!
    Reply With Quote  
     

  10. #9  
    Registered Member

    Join Date
    Jan 2008
    Age
    31
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    If OOP is your desire then Java is your man. Java is based on OOP and should be used as such.

    Lesson: Object-Oriented Programming Concepts (The Java™ Tutorials > Learning the Java Language)

    C++ is just as good, but C is not a OOP language.
    Reply With Quote  
     

  11. #10  
    Banned

    Join Date
    Jul 2008
    Posts
    1,043
    Thanks given
    209
    Thanks received
    46
    Rep Power
    0
    BufferedReader in C? equalsIgnoreCase method? dude you're mixing Java, C & C++... you can't have methods inside structs in C...
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Oop
    By ByteValue in forum Application Development
    Replies: 4
    Last Post: 11-28-2012, 04:07 PM
  2. The four main concepts of OOP
    By Zetu in forum Application Development
    Replies: 5
    Last Post: 11-27-2012, 09:08 PM
  3. OOP - Part 1: Basics
    By Zeroth in forum Website Development
    Replies: 3
    Last Post: 09-02-2011, 03:11 PM
  4. Encapsulation in OOP JavaScript
    By JavaScriptBank in forum Website Development
    Replies: 0
    Last Post: 11-10-2010, 04:35 AM
  5. Basic OOP
    By Daniel in forum Tutorials
    Replies: 8
    Last Post: 03-18-2008, 11:42 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •