What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Best C Program?

Pages: (2): « First « 1 [ 2 ] Last »
Best C Program?
Author: Message:
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: Best C Program?
quote:
Originally posted by absorbation
Why teach C when you can teach a better language with more functions that is now used more today.
Any programming course for persons without prior programming experience (which, I assume, is what this is) will spend a lot of time dealing with general programming concepts -- different types of variables, what are functions and how to use them, loops and conditional statements, and so forth.   It so happens these are the things that overlap between C and C++. 

Where there are differences on that level, C++ ways are often more confusing to a novice. 

For example, a C++ course would be obligated to use streams (cout << "Hello world!") instead of stdio.h (printf("Hello world!").  Realize that the student is likely to see the above long before they've been told anything about operator overloading.  I'd hate to be the instructor having to explain how the C++ way works at that point, should an observant student inquire why we are using the bitwise left shift operator in a funny way.


This post was edited on 09-07-2006 at 09:30 PM by Adeptus.
09-07-2006 09:29 PM
Profile E-Mail PM Find Quote Report
lizard.boy
Veteran Member
*****

Avatar

Posts: 1708
Reputation: 24
34 / Male / Flag
Joined: Mar 2003
RE: Best C Program?
Hell, we learn VB6 in my school. (grade 10/11 for sure) I'm sure its partly because of the budget and not being able to afford newer versions, but really, they dont need to. VB is great for teaching people programming concepts, and once you get the main concepts you can take your knoledge to another language. The ideas are basically the same, the sytnax is different.
09-07-2006 10:04 PM
Profile E-Mail PM Find Quote Report
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: RE: Best C Program?
quote:
Originally posted by absorbation
quote:
Originally posted by segosa
Both languages have exactly the same syntax. It doesn't matter which you start with. Think of C++ as C with extra features.

Ya, my point exactly. Why teach C when you can teach a better language with more functions that is now used more today. It does have some changes, mainly to the basic structure of the code, but they say learning C++ is easier without knowing C. I found C++ a really easy language, mainly because it is so similar to PHP which is basically a web based version of C ++ :P


Simply put, "C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then)."
[Image: AndrewsStyle.png]
09-08-2006 06:48 AM
Profile E-Mail PM Web Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: RE: Best C Program?
quote:
Originally posted by lizard.boy
Hell, we learn VB6 in my school. (grade 10/11 for sure) I'm sure its partly because of the budget and not being able to afford newer versions, but really, they dont need to. VB is great for teaching people programming concepts, and once you get the main concepts you can take your knoledge to another language. The ideas are basically the same, the sytnax is different.


Have you learnt VB and then tried to learn a more low-level language like C++? I have. It's hell. VB totally distorts all your ideas of how programming should be and makes it very difficult to understand the  small intricacies of C or C++. A good example being pointers.
The previous sentence is false. The following sentence is true.
09-08-2006 07:46 AM
Profile PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Best C Program?
quote:
Originally posted by segosa
Have you learnt VB and then tried to learn a more low-level language like C++? I have. It's hell. VB totally distorts all your ideas of how programming should be and makes it very difficult to understand the  small intricacies of C or C++. A good example being pointers.

True, I have tried to learn VB, but  Visual Studio seemed bloated and because I know PHP the syntax or C++ came to me easier and I understood how it worked pretty quickly.

When I say C++ is better than C, I mean why are schools teachings older more outdated languages when they can teach newer ways to code software. Of course C had some advantages over C++. C++ was last revised in 2003 and hopefully should reflect changes in modern software :P

This post was edited on 09-08-2006 at 03:07 PM by absorbation.
09-08-2006 03:05 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Best C Program?
quote:
Originally posted by absorbation
I mean why are schools teachings older more outdated languages when they can teach newer ways to code software
Again, I must draw attention to the fact that the two most well-known operating systems (Windows and Linux) are written more in C than any other language. The same should apply to the BSDs, which grew from Unix, which was written in C. Far from being 'outdated', C is thriving. It's even nicked a few features from C++ along the way.
I know C was last updated in the 80s, but it just goes to show how well-designed a language it is, to have required no updates in two decades.

As a language to teach high-level concepts, C doesn't cut it, I admit. But that's why there's languages such as C++, C# and Java, which have a C-like syntax. For teaching low-level though, thsese high-level languages don't cut it. C does.

At the end of the day, for high-speed programs and low-level tasks, only assembly code is practically better than C. And assembly code is a real bitch compared to C.

This post was edited on 09-08-2006 at 03:37 PM by RaceProUK.
[Image: spartaafk.png]
09-08-2006 03:34 PM
Profile PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On