Thread: is C appropriate for intro to computers?

  1. #151
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > Then put yourself in the chair and assume it was a choice between C and C++. Which would you choose in this case?
    Depends on what sort of software is to be written :P

  2. #152
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Quote Originally Posted by Elysia View Post
    What I meant was...
    If you targeted a Windows PC, you could have the choice of using C or C#. Which would be better and why?
    Assume it's a company. They want software out there and they want it pronto. Lots of features, and few bugs (or they'd get complaints).

    Then put yourself in the chair and assume it was a choice between C and C++. Which would you choose in this case?
    Like others (and you) have said, it's not as clear-cut as that. It depends on the availability of skill as well as the type of program, as well as it's expected implementation. C and C++ and C# are all suited for a wide range of programming issues, but it doesn't mean that one is always best for a particular problem, or that you even have to use only one.

  3. #153
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well, if I ran that company, being the head programmer or something, I would recruit people for C# or C++, but definitely not C, seeing as developing with C++ would be faster than C with less bugs using known implementations.
    Which was kindof my point. When developing computer software, expectations are often high, and C does not too well in that regard because of its age and lack of modern features expected from modern languages.

    But I digress... all that really matters is that the job gets done. But for me, preferably not C. Just the type I am.
    Oh well, carry on.
    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.

  4. #154
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Yes, personal preference can definitely matter. Personal preference, you could say, is how comfortable you feel with the language, and therefore you might be able to program more effectively with it.

    However, don't mistake age for lacking capability. Likewise, don't mistake lacking modern features as necessarily limiting.

    C has a wide range of tools and methods to help with producing quality code because of it's age. Memory leak detectors, static analysis tools, code standards, well-known techniques and idioms even in specialized fields, etc.

    Also, some people prefer not to use modern features such as exceptions. Either it's not their style, or they're not comfortable with them, or perhaps their coding standards say not to use exceptions because they are more difficult to verify in a code review than conventional return-based code.

  5. #155
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    I am starting my bachelor in engineering (not software engineering) this year, and there is a mandatory programming course "Introduction to Computation in Engineering Design", and it is in C. We only cover the very basics, though - branching, looping, modularization, and the last unit is on arrays (no pointers except if you consider using arrays and scanf as such, and no dynamic memory). That takes about 2 months (3 hrs/week). And then we will be into things like software/hardware interfacing (reading from switches and writing to LEDs I heard), and "data acquisition" (no idea what that means =P).

    As for why C over C++, I don't know. We certainly don't need anything from C++ that's not in C, though.

    I heard in CS they are using Java and C++ in the first year.

  6. #156
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > I heard in CS they are using Java and C++ in the first year.
    Same at my Uni. The CS/SE students don't touch C until 3rd year (They teach Java to CS, SE, and actually all IT degrees in first year). However 1st year engineering students don't get to play with it :'(
    Last edited by zacs7; 10-11-2008 at 07:52 AM.

  7. #157
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    So if my name were Salem and I wanted to do the world a favor, I would sure be closing this thread about now.

  8. #158
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Meh. It is kinda fun watching Elysia make a complete fool of him/herself

  9. #159
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    I gotta say though, it's kindof nice to finish one of these kinds of threads without it getting shut down.

  10. #160
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > I gotta say though, it's kindof nice to finish one of these kinds of threads without it getting shut down.
    Your face! ... Ohh shutdown!

  11. #161
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Ooh, snap!

  12. #162
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    It seems that didn't work... oh well the mods must really want this to stay open

  13. #163
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Godwin's law is starting to work against us... I will just bide my time. Oh and for the record, I am not a C# fan either, Elysia. So don't let these folks try to convince you that it is God's gift to software. However, I still use it...

    C# is like wearing pants. Sure its inconvenient to put them on to go to the store. But the rules of society dictate that if I don't, I will get myself a Rodney King style beat down.

    WARNING! Reading the mindless analogy above will likely cause perminant brain damage! It is not only circular logic, but it isn't even logical. Thus it is circular non-logic.

  14. #164
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    You know who else didn't like C? Nazis.

    Yeah Godwin's law is fulfilled!

  15. #165
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    *slaps himself HARDLY for reading all the posts*
    I ll post because I was bored and read everything and want to feel better for not wasting completely my time (so I will waste more).

    I have to say that I actually see Elysia's point. I will more describe be as the "fun of programming". C++ in a way offers everything that C offers plus some new stuff. Like classes, exception handling. It makes the "game" more fun. Java and C# are really OOP. No fun. Because the fun is creating algorithms, not managing code.

    On the other hand, C++ is somehow incomplete. If you want OOP features you are really better with C#. If you don't want them you are fine with C. If you want something in between, then mostly likely you just like to code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Numeric addresses for computers
    By great in forum C Programming
    Replies: 4
    Last Post: 08-23-2010, 11:53 AM
  2. Computers as authors
    By hk_mp5kpdw in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-22-2004, 08:55 PM
  3. Industrial vs home computers
    By nbo10 in forum Tech Board
    Replies: 10
    Last Post: 09-01-2004, 02:04 AM
  4. Matrix and vector operations on computers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 05-11-2004, 06:36 AM
  5. Love programming, hate computers
    By PJYelton in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 12-14-2002, 01:04 PM