LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2009, 06:37 AM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Rep: Reputation: 70
C/C++/C#


Hi all,

Two questions:

1. I've seen various references to a language called C# recently. I assume this is some new derivative of C or C++. For what reason has it been introduced? Is it worth learning?

2. Is ANSI C (as opposed to C++) withering on the vine? I mean, will it still be around in 10 or 20 years time?

THanks.
 
Old 08-16-2009, 07:53 AM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
[QUOTE=Completely Clueless;3645208]Hi all,
Quote:
Two questions:

1. I've seen various references to a language called C# recently. I assume this is some new derivative of C or C++. For what reason has it been introduced? Is it worth learning?
It started as Microsofts language to replace visual basic and it is a C based language with garbage collection, GUI build in and such other things. If you deem it worthy of learning then you would more than likely be using Mono which is the nix port of C#, as to if it is worth learning. It is more productive a language to use as opposed to C or C++ but you would have to evaluate its worth yourself. In some industries it is the main language for tools yet in many more it is not.

Quote:
2. Is ANSI C (as opposed to C++) withering on the vine? I mean, will it still be around in 10 or 20 years time?

THanks.
The C language is currently having a new standard drafted, even after it has been released it may take a few years to have the ANSI stamp (Do you know what ANSI is an acronym for?). In my opinion yes C will still be with us in that time frame.
 
Old 08-16-2009, 08:15 AM   #3
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
I'd say C# is a language to compete with Java and yes, in many respects it's better.
 
Old 08-16-2009, 08:17 AM   #4
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
The only things I've read about it compare C# with Java, also.
 
Old 08-16-2009, 08:39 AM   #5
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
OK, thanks guys.

I'm just about to start revising my rusty old C and thought I'd better check first if times had moved on too much. I don't need OOP and yes I do know what ANSI stands for. I'm most comfortable with the old K&R standard. I can therefore happily ignore C#, C++ and Java

THanks again.
 
Old 08-16-2009, 08:42 AM   #6
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I ignore C#, C++, and Java daily. I'm sticking with C and assembly.
 
Old 08-16-2009, 10:18 AM   #7
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Wink

Quote:
Originally Posted by joeBuffer View Post
I ignore C#, C++, and Java daily. I'm sticking with C and assembly.
You're my kind of guy, Joe!
 
Old 08-16-2009, 10:36 AM   #8
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by Completely Clueless View Post
OK, thanks guys.

I'm just about to start revising my rusty old C and thought I'd better check first if times had moved on too much. I don't need OOP and yes I do know what ANSI stands for. I'm most comfortable with the old K&R standard. I can therefore happily ignore C#, C++ and Java

THanks again.
ANSI is American National Standards Institute.

And it will be your gravest mistake to stick to K&R style - better use C89 == ANSI C and C99.
 
Old 08-16-2009, 10:38 AM   #9
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
Quote:
Originally Posted by joeBuffer View Post
I ignore C#, C++, and Java daily. I'm sticking with C and assembly.
I try to ignore forum comments daily.

Last edited by dmail; 08-16-2009 at 10:40 AM.
 
Old 08-16-2009, 10:42 AM   #10
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by dmail View Post
I try to ignore forum comments daily.
Well, then the logical question is: "what do you catch ?".
 
Old 08-16-2009, 10:44 AM   #11
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
Very good Sergei
 
Old 08-16-2009, 01:37 PM   #12
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Wink

Quote:
Originally Posted by Sergei Steshenko View Post
Well, then the logical question is: "what do you catch ?".
No idea what the above means, but.....

Quote:
If Python don't have unless construct, it means it doesn't need one.
I'll bet this - your sig - is written in Bash.
 
Old 08-16-2009, 02:41 PM   #13
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by Completely Clueless View Post
No idea what the above means, but.....



I'll bet this - your sig - is written in Bash.
Perform web search on

OOP try catch

- a useful concept to know; implemented in a vast variety of languages - not necessarily using the 'try', 'catch' keywords. And not specifically OOP related.
 
Old 08-16-2009, 10:21 PM   #14
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I should've emphasized how much I ignore Java.
Also, I know that try and catch are used in C++, but I've never seen them used anywhere else, personally. I thought they might be unique to C++, at least the specific words.

Last edited by joeBuffer; 08-17-2009 at 07:21 AM.
 
Old 08-17-2009, 01:03 AM   #15
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by Completely Clueless View Post
2. Is ANSI C (as opposed to C++) withering on the vine? I mean, will it still be around in 10 or 20 years time?
I think it will as it's the most universal language (in my humble opinion). It's available for nearly every platform that you can think of, from microcontrollers like the Microchip PIC family with something like 1k code memory, 64 bytes data memory and a few bytes stack space to PCs to system with terabytes of memory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration