Thread: Class-C : new OOP C programming language

  1. #46
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by phantomotap View Post
    O_o

    I don't know about you, but I spend comparatively few minutes actually "producing code".

    The time consuming bits are deciding what code to produce and which of all those bits needs changed or eliminated.

    Soma
    Yeah, seems to be true for most people; but, there are still compilers/IDE that uses the keywords rapid/fast application development.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  2. #47
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Hodor View Post
    O_o
    Haha, touche soma-emoticon.

  3. #48
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by milgra View Post
    I had problems with C++/Objective-C, so I've just created my own version of the ideal object-oriented C language, maybe you find it useful also.

    It's almost standard C, defining a class is just putting your existing code in a top-level block - global variables become member variables, functions become methods. Header files are generated automatically by the compiler, multiple inheritance is allowed - that's all!

    But what do YOU think? I'm really interested in your opinion.
    I would take Elysia and MutantJohn's criticism with a grain of salt. They appear to believe C++ the OTL, the end.

    However I agree with whiteflags, your language doesn't seem to bring anything new to the table.
    I get it, minimalism, but humor the pragmatic. If you want your language to find niche use, I highly recommend you focus on fixing many of C's mistakes (like implicit booleanizing of any type, poor operator prioritization, etc) as well.

  4. #49
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Yarin View Post
    I would take Elysia and MutantJohn's criticism with a grain of salt. They appear to believe C++ the OTL, the end.
    Yeah, well, why not?
    I fail to see what C with classes brings to the table.
    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.

  5. #50
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Quote Originally Posted by Yarin View Post
    I highly recommend you focus on fixing many of C's mistakes (like implicit booleanizing of any type, poor operator prioritization, etc) as well.
    I don't consider that operator "prioritisation" (by which I assume you mean precedence, associativity, etc) is a fault in C - there are a couple of anomalies, but it generally makes sense.

    What is a problem is (the number of programmers who seem to take delight in) ability to abuse multiple operators in a single expression (e.g. mixing multiple operations with interacting side effects in a single expression, using multiple operations on a pointer at once). Defining and automatically enforcing a number reasonable constraints would be useful. The challenge would be finding a notion of "reasonable" that is applicable to most people.

    No question that C has its faults (like any programming language).

    Curiously, the trends in programming language design (at least the pragmatic ones) seem to go in two common directions. Those interested in general-purpose programming seem to be heading in the direction of more language/library features that allow more difficult things to be done more easily - which, if it succeeds, tends to produce a useful language that is hard to learn in entirety. Those interested in supporting a particular niche tend to go for "minimalism" (i.e. stripping features away that they deem irrelevant) - which, if it succeeds, tends to produce a language that is popular with those interested in that niche but otherwise unpopular. Both styles of language (and all those in between) then tend to find zealots. But the number of unsuccessful languages (in terms of uptake by real-world programmers for real-world tasks) in that spectrum significantly exceeds the number of successful ones.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  6. #51
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by MutantJohn View Post
    Nevertheless, C++ rules and all the other languages drool. Except for C, who sits dignified in the back.
    How many of the 'other languages' do you know ?

  7. #52
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Quote Originally Posted by manasij7479 View Post
    How many of the 'other languages' do you know ?
    I don't see where you're going with this...

    Do you have some favorite you're just like waiting to bust out and go "booya!" or something?

    Or are you going to be the biggest endorser of Class-C now?

  8. #53
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Using deductive reasoning, I would assume they were going in the direction of questioning how qualified you are to judge "the best language" based on how many languages you are actually familiar with.

    Of course, I cannot speak for manasij7479, but this seems a much more likely interpretation than them either (1) pulling out a language they think is "best", or (2) endorsing the language proposed in this thread.

    Because programming languages are tools - some are better suited for certain tasks, and others for different kinds of tasks. This means there is no global criteria which can be used to judge which programming language might be the "best", hence making such a comparison is simply not valid.

  9. #54
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    So I guess he just flat out didn't get my joke, did he?

    His location says he's in India so maybe he's not familiar with the grade school antics of children chanting, "Boys/Girls rule and girls/boys drool!"

  10. #55
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Quote Originally Posted by MutantJohn View Post
    But C++ is like the best language ever...
    Warning! That's an **opinion**, not a **fact**!!!
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  11. #56
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    one could say that assembly language is the best of all, because it does everything with equal inconvenience and difficulty, while with most languages, only a few things are inconvenient and difficult to do.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  12. #57
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Maybe you could call it C+ ('The Internship' reference) instead of Class-C, considering you're targeting something between C and C++.
    Last edited by Yarin; 12-13-2013 at 11:31 AM.

  13. #58
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    What is meant by "best language". That's like saying there's a "best video game". It doesn't really make sense if you think about it. It's better to say "favorite language" or "favorite video game".

  14. #59
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by c99tutorial View Post
    What is meant by "best language". That's like saying there's a "best video game". It doesn't really make sense if you think about it. It's better to say "favorite language" or "favorite video game".
    Nonsense, the Call of Duty and Halo franchises are the best games evar, the Quakes and Half-Lifes are just boring ripoffs.

  15. #60
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Lol I had an epic call of doody this morning, oh!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Which programming language?
    By Kranky in forum C++ Programming
    Replies: 6
    Last Post: 10-17-2012, 10:46 AM
  2. AI Programming language
    By knightjp in forum General AI Programming
    Replies: 37
    Last Post: 11-30-2008, 12:46 PM
  3. What's the Difference Between a Programming Language and a Scripting Language?
    By Krak in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 07-15-2005, 04:46 PM
  4. D programming language
    By silk.odyssey in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 01-07-2005, 08:58 AM
  5. which programming language should be used for socket programming?
    By albert_wong_bmw in forum Networking/Device Communication
    Replies: 8
    Last Post: 06-04-2004, 08:12 PM