C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 05-24-2009, 05:29 PM   #1
Registered User
 
Join Date: May 2009
Posts: 25
New here, just sayin 'hi'

Hello, I'm argv. Just saying 'hello' to everyone.

I will probably stop in with some stupid questions once in a while, perhaps the occasional smart question, and just discussion.

I'm currently taking programming classes at a community college. I'm taking regular beginning "c" right now, and am trying to decide whether to take advanced "c" or go right into C++. I want to have a good grasp of the procedural language before going to the OOP stuff, even though "c" programming is all but dead. I dunno..

I also work with autocad and use (a very small amount) of visual basic and (alot) of LISP language.

anyways, thanks,

argv.
argv is offline   Reply With Quote
Old 05-24-2009, 05:34 PM   #2
int x = *((int *) NULL);
 
Cactus_Hugger's Avatar
 
Join Date: Jul 2003
Location: Banks of the River Styx
Posts: 902
Welcome to the boards.

Quote:
even though "c" programming is all but dead.
Don't under-estimate C! It used to be my language at heart, until I found std::string in C++. However, that said, there are still places where C is used. Drivers, and other areas close to the kernel of an OS, are generally C, and many embedded systems only have C compilers available.
Many libraries out there are written completely in C as well.
__________________
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
Cactus_Hugger is offline   Reply With Quote
Old 05-24-2009, 05:42 PM   #3
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
Welcome to CBoard.

I don't agree that C is dead. It may not be the language of the future, but C I have been working on commercial C code written in the last year or two. A lot of driver-code for all sorts of OS's is written in C. And the company I work for produces an embedded C++ OS - the reason I work in C more than C++ is that the drivers for graphics devices in the embedded systems are often written to work in several different OS's, and thus written in C rather than C++.

Whilst the process of getting the job done is a bit different between C++ and C, there is also a lot of commonality. So learning C first and then going C++ is certainly not a waste of effort.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 05-24-2009, 05:59 PM   #4
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,158
The linux kernel: C
The Perl interpreter, and AFAIK *most* scripting languages: C
openGL: C
and as I noticed today, directX: C [correction, directX is MS-COM, not C]
Rumour has it the *fastest* *most efficient* language: C

But I am kind of a charlatan who intends to learn C++...later, maybe. For what it's worth, I would say follow your interests.

Also (somebody correct me if I am wrong), I believe most embedded programming is probably in C. Which if you think about what that means, it would be very far from "dead".

In any case, hi argv, cboard is the best website on the internet -- congratulations.
__________________

"A man can't just sit around." -- Larry Walters

Last edited by MK27; 05-25-2009 at 07:31 AM.
MK27 is offline   Reply With Quote
Old 05-24-2009, 06:11 PM   #5
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
The C is faster than C++ is a myth. Most of the time this comes about from inexperienced programmers writing poor code (e.g. passing large class objects by value, which means the structure gets copied when the function is called). In C, the only way to copy a large amount of data when calling a function is by passing large structs by value. C++ has many more possibilities, since C++ also allows complex classes as well as the old-fashioned struct types.

C++ is also a much richer language, so there is more room for getting it wrong.

But given sufficient skill in the programmer, there should be no or littel difference between C and C++ - and in some cases, C++ is actually able to solve the problem in a very neat way.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 05-24-2009, 07:27 PM   #6
In my head
 
happyclown's Avatar
 
Join Date: Dec 2008
Location: In my head
Posts: 327
Welcome to the forum, argv!
__________________
M$ rules! *Turns towards Redmond and bows*
happyclown is offline   Reply With Quote
Old 05-24-2009, 10:44 PM   #7
and the hat of sweating
 
Join Date: Aug 2007
Location: Toronto, ON
Posts: 3,275
Quote:
Originally Posted by MK27 View Post
Rumour has it the *fastest* *most efficient* language: C
Try comparing the speed of qsort() to std::sort() and see which one wins.
__________________
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
cpjust is offline   Reply With Quote
Old 05-24-2009, 10:51 PM   #8
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,158
Quote:
Originally Posted by cpjust View Post
Try comparing the speed of qsort() to std::sort() and see which one wins.
Why does everyone always want to take the air out of my balloon?!!? Anyway, qsort is for quacks. That's why it's called qsnort, dope.

I would imagine the essence of speed is in the compiler, not obscure add on libraries.
__________________

"A man can't just sit around." -- Larry Walters

Last edited by MK27; 05-25-2009 at 08:03 AM.
MK27 is offline   Reply With Quote
Old 05-25-2009, 07:28 AM   #9
Mysterious C++ User
 
Elysia's Avatar
 
Join Date: Oct 2007
Posts: 14,781
Quote:
Originally Posted by MK27 View Post
and as I noticed today, directX: C
Also, DirectX is not C. It's COM.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 05-25-2009, 07:59 AM   #10
Hail to the king, baby.
 
Akkernight's Avatar
 
Join Date: Oct 2008
Location: Faroe Islands
Posts: 718
I heard they are working on and have made some progress on making the DirectX code into C++ code, dunno if this is true tho...
And to the topic starter's question, I'll always suggest C++, but I'm not one of the clever ones so I dunno what's best for you
__________________
Currently research OpenGL
Akkernight is offline   Reply With Quote
Old 05-25-2009, 09:12 AM   #11
Registered User
 
Join Date: May 2009
Posts: 25
Quote:
Originally Posted by matsp View Post
Welcome to CBoard.

I don't agree that C is dead. It may not be the language of the future, but C I have been working on commercial C code written in the last year or two. A lot of driver-code for all sorts of OS's is written in C. And the company I work for produces an embedded C++ OS - the reason I work in C more than C++ is that the drivers for graphics devices in the embedded systems are often written to work in several different OS's, and thus written in C rather than C++.

Whilst the process of getting the job done is a bit different between C++ and C, there is also a lot of commonality. So learning C first and then going C++ is certainly not a waste of effort.

--
Mats
That is true. I guess I should say that for what *i* plan to do with programming, C isn't going to be of much use. However, it would never be a waste of time to learn such a rich and open language. Besides, I forgot about hardware drivers. Cool, I'm glad C isn't dead. thats a good thing.
argv is offline   Reply With Quote
Old 05-25-2009, 09:15 AM   #12
Registered User
 
Join Date: May 2009
Posts: 25
sweet

Quote:
Originally Posted by MK27 View Post
The linux kernel: C
The Perl interpreter, and AFAIK *most* scripting languages: C
openGL: C
and as I noticed today, directX: C [correction, directX is MS-COM, not C]
Rumour has it the *fastest* *most efficient* language: C

But I am kind of a charlatan who intends to learn C++...later, maybe. For what it's worth, I would say follow your interests.

Also (somebody correct me if I am wrong), I believe most embedded programming is probably in C. Which if you think about what that means, it would be very far from "dead".

In any case, hi argv, cboard is the best website on the internet -- congratulations.
Thanks.

The only thing that is NOT good about C, is obviously the lack of OOP concept. I can use C++ libraies at my job to control autocad, but can't with C unfortunately. Thats all I'm saying I guess.
argv is offline   Reply With Quote
Old 05-25-2009, 09:18 AM   #13
Registered User
 
Join Date: May 2009
Posts: 25
nice name

Quote:
Originally Posted by Cactus_Hugger View Post
Welcome to the boards.


Don't under-estimate C! It used to be my language at heart, until I found std::string in C++. However, that said, there are still places where C is used. Drivers, and other areas close to the kernel of an OS, are generally C, and many embedded systems only have C compilers available.
Many libraries out there are written completely in C as well.
haha.. nice name. [cactus_hugger]. Uhm, yes. true. I'm glad to see so many dedicated C fans, thats encouraging.
argv is offline   Reply With Quote
Old 05-25-2009, 01:00 PM   #14
Banned
 
ಠ_ಠ's Avatar
 
Join Date: Mar 2009
Posts: 533
Welcome!

have you read your SICP today?
__________________
╔╗╔══╦╗
║║║╔╗║║
║╚╣╚╝║╚╗
╚═╩══╩═╝
ಠ_ಠ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 11:36 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22