Nairaland Forum

Welcome, Guest: Join Nairaland / Login / Trending / Recent / New
Stats: 1285449 members, 1793262 topics. Date: Monday, 22 December 2014 at 10:24 PM

Is C# Better Than C/C++? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Is C# Better Than C/C++? (10277 Views)

Simple Code Challenge: C#, Java, C, C++ / Why Is C ++ Described As A Difficult Language. / How Powerful Is C++? (1) (2) (3) (4)

(0) (1) (Reply) (Go Down)

Is C# Better Than C/C++? by iGuru1(m): 3:56pm On Jan 12, 2010
Hi guys, i am curious to no if C# is beta or eqivalant to C/C++, before my choice.
Thx.
Re: Is C# Better Than C/C++? by joefazee(m): 5:01pm On Jan 12, 2010
C# is not better than C or C++, though C# is more easier to learn but only run on windows because of .NET framework.

C is the mother of all languages, most of C# libraries are written in C.

C++ is more closer to C but Fully Object Oriented Programming language, if you want to start programming, learn something like Python or PHP, then C, move to Java or C++. Avoid microsoft based programming language as that will restrict you to windows platform only. Most of the world best Hackers are from Unix platform, even Bill gate took many routines from Unix and Mac.

That is my own, everyone will reply based on their experience.
Re: Is C# Better Than C/C++? by Ogim: 5:03pm On Jan 12, 2010
To me the three programming language are thesame,since they all run under thesame virtual mechine and uses thesame class but at the end,the more you use and read about a programming lang the more things you'll be able to do with the programming language.
Re: Is C# Better Than C/C++? by Ogim: 5:20pm On Jan 12, 2010
Joefazee
C is not the mother of all language.pascal was not created from c. Assembly programming language is the mother of all language.
Re: Is C# Better Than C/C++? by Beaf: 2:55pm On Jan 13, 2010
joefazee:

C# is not better than C or C++, though C# is more easier to learn but only run on windows because of .NET framework.

C is the mother of all languages, most of C# libraries are written in C.

C++ is more closer to C but Fully Object Oriented Programming language, if you want to start programming, learn something like Python or PHP, then C, move to Java or C++. Avoid microsoft based programming language as that will restrict you to windows platform only. Most of the world best Hackers are from Unix platform, even Bill gate took many routines from Unix and Mac.

That is my own, everyone will reply based on their experience.

Religous crap.

How many PC's out there aren't running Windows? Do you even realise that both C# and VB.NET run on Linux/Mono? Don't teach people how to shoot themselves in the foot with that bullsh*t. Give him the best advice for whatever platform he is developing against.

My guy, if you are developing for the desktop, forget about C, C++, Java etc and concentrate 100% on C#. You will not regret it.
If you are developing for the web, you should consider between Ruby, Python, PHP and C#.
If it is 100% backend stuff you will be dealing with, then its between C# and Java (forget C++, except for specialised cases).

Performance wise C# can be faster, slower or roughly the same speed as C++; there's isn't much in it.

Productivity wise C# beats C++ hands down, by at least a factor of 5x (depending on what you are coding).
Re: Is C# Better Than C/C++? by iGuru1(m): 12:07am On Jan 14, 2010
@beaf,
Am i want language that will be able to make me easily understand hacking.
So most of the advice i got was, go for c++, assembly,python and mysql or php.
So what do you say about thay?
Re: Is C# Better Than C/C++? by Beaf: 12:15am On Jan 14, 2010
i-Guru:

@beaf,
Am i want language that will be able to make me easily understand hacking.
So most of the advice i got was, go for c++, assembly,python and mysql or php.
So what do you say about thay?

It depends on the sort of hacking you want to do. You cannot seriously mention C++, assembler on the one hand and toy languages like python and PHP; they are aimed at totally different scenario's.
I hope you aren't planning anything unethical.
Re: Is C# Better Than C/C++? by iGuru1(m): 1:12pm On Jan 17, 2010
@Beaf
I am thinking ethical,
So which one do you think is ok.
Thanks 4 d 4ma reply.
Re: Is C# Better Than C/C++? by Beaf: 3:04pm On Jan 17, 2010
Go for assembler if you want to hit Nirvana. grin

However, there is a lot of dedication required to master assembler. So if you are the laid back type choose in this scale (the higher, up the better).
[list]
[li]C[/li]
[li]C++[/li]
[li]C# / Java / Ruby / Classic VB[/li]
[li]PHP / ASP / Perl[/li]
[/list]
Re: Is C# Better Than C/C++? by alexis(m): 11:04am On Jan 18, 2010
Hmmmmmm,

Never knew Python & PHP were toy languages - I wonder why google and facebook will use them to power their sites and servers?

@i-Guru

Want to hack (ethical hacking) ----> You need to learn a language or couple of languages that can run on on major OS's i.e. Perl, C, python dominate the Unix/Linux and windows world when it comes to hacking. Perl has one of the largest repositories of codes online. Python is so expressive and addictive that if you get hooked, you probably will not use C. If you want go into hardware hacking - C will do.

If you want to build native MS apps - then dive into C# or VB ---- it's worth it.
Re: Is C# Better Than C/C++? by Beaf: 3:38pm On Jan 18, 2010
alexis:

Hmmmmmm,

Never knew Python & PHP were toy languages - I wonder why google and facebook will use them to power their sites and servers?

@i-Guru

Want to hack (ethical hacking) ----> You need to learn a language or couple of languages that can run on on major OS's i.e. Perl, C, python dominate the Unix/Linux and windows world when it comes to hacking. Perl has one of the largest repositories of codes online. Python is so expressive and addictive that if you get hooked, you probably will not use C. If you want go into hardware hacking - C will do.

If you want to build native MS apps - then dive into C# or VB ---- it's worth it.

PHP and Python are almost 100% web based. Python though can be compiled, but is nowhere near the low level capabilities of C, C++, C#, Java, Ruby, Classic VB, rather it is more useful as a macro language. Python is also on its way out due to Ruby. . . ASP, PHP and Python are toys.
Re: Is C# Better Than C/C++? by dueal(m): 4:10pm On Jan 18, 2010
@all. It strange to see people talking about this language or that language being a 'toy' with out specifying in what area(s) of software development the language can be considered as such. I've been in this arena for a while to give advice and truth be told, no one language is better than another with out analysis on what u the programmer want's to solve with it. In essence we have no 'generic toy language'.
@i-guru. Again my young nerd, u can't learn hacking u can only be a hacker in a certain field once u knw that little extra in that field. For instance, if u don't knw that extra about the c-shell and u knw tcl in linux then u can be a linux tcl hacker for maybe the gui of linux os's but that don't make u an internetwork hacker or a windows hacker, or an electronics hacker either.
Re: Is C# Better Than C/C++? by alexis(m): 7:04am On Jan 19, 2010
@Beaf,

Never knew python was 100% web based - have you used python? Python is used in so many fields i.e. animation - check out blender, pixar uses it for a couple of their 3D movies. Companies simulate biomolecules with Python. Python powers some of the biggest networking systems in banks.

What do you mean when you say python is not low level - please give me an example. I never knew Python is on it's way out due to Ruby - I imagined that headline was written in a newspaper or report we don't have links to.

PHP is a language dedicated for one purpose and it's good at it - building web apps.

@i-Guru

Pick an interest - then learn - each language has it's strength and weakness. Explore, imagine, create and most of all - write code, that is the only way you can learn.
Re: Is C# Better Than C/C++? by candylips(m): 12:35am On Jan 20, 2010
here we go again.

@poster use the search button this topic has been discussed a million times in the past.
Re: Is C# Better Than C/C++? by guru02(m): 3:39pm On Jan 20, 2010
@candylips,
Why don't u give me the link to the direct place.

1 Like

Re: Is C# Better Than C/C++? by alexis(m): 7:38am On Jan 21, 2010
@guru02,

What links do you need?
Re: Is C# Better Than C/C++? by candylips(m): 10:37am On Jan 21, 2010
guru02:

@candylips,
Why don't u give me the link to the direct place.

use the search button above. Search for C/C++
Re: Is C# Better Than C/C++? by guru02(m): 11:45pm On Jan 21, 2010
Thx but i couldn't find the info i needed.
Re: Is C# Better Than C/C++? by olud64: 2:24pm On Jan 22, 2010
My 2 pennies worth. You may have all available certification in all existing programming languages that exis and in fact know them very well. That knowledge will be useless to you if you are not creative, able to think out of the box, able to aptly apply the knowledge you have. That is the problem we have in nigeria, a lot of people have the knowledge butcan they apply it, can they be innovative with it?, can they be creative with it? maybe its time we started teaching ouselves how to think(application of knowledge) and not what to think(knowlwdge full stop)!
Re: Is C# Better Than C/C++? by dueal(m): 5:09pm On Jan 22, 2010
@olud64. That's what i call 'cutting the cancer where it hurts'. The joke we've seem to turn the face of programming and programmers into is just annoying in here. People seem to be grabing this language and that language but when it comes to getting something creative out of it they'll be like 'mmm, where is the next language that's in the spot light, i'm sure the language will be able to solve this new problem'. Shear ignorance! Many say i knw C++,JAVA,PYTHON,PHP,ML,SMALLTALK,CLU,J#,C#,##, That's not going to help anyone if u can't do nothing more than create an app to search a DB and that's all it will do. People flinging acronyms around, who give 2 fu*ks. The other time it was, 'what design pattern is the overall best', another just asked, 'who's the worlds best programmer', another said, 'python,php are toy languages'. Heafty ignorance on the essence of programming and the aims of software development. If i were the moderator on this programming topic alot of bull would be deleted before they got to the DB.
Re: Is C# Better Than C/C++? by guru02(m): 7:16pm On Jan 22, 2010
@Dueal,
What do you mean?
Re: Is C# Better Than C/C++? by turag: 5:03pm On Jan 25, 2010
..
Re: Is C# Better Than C/C++? by guru02(m): 7:32pm On Jan 25, 2010
@turag,
Thx man i appreciate your reply.
Re: Is C# Better Than C/C++? by iGuru1(m): 9:49pm On Jan 27, 2010
// My first programing language in C++
#include <iostream>
Using namespace std

Int main ( )
{
cout << " Programing is sweet";
cout << " hacking is sweeter";
cout << " NL is the sweetest, equal to money$$";
return 0;
}
This is just the beginning grin
Re: Is C# Better Than C/C++? by Beaf: 11:40pm On Jan 28, 2010
alexis:

@Beaf,

Never knew python was 100% web based - have you used python? Python is used in so many fields i.e. animation - check out blender, pixar uses it for a couple of their 3D movies. Companies simulate biomolecules with Python. Python powers some of the biggest networking systems in banks.

What do you mean when you say python is not low level - please give me an example. I never knew Python is on it's way out due to Ruby - I imagined that headline was written in a newspaper or report we don't have links to.

PHP is a language dedicated for one purpose and it's good at it - building web apps.

Damn! . . .These were my exact words "PHP and Python are [b]almost [/b]100% web based". Some "programmers" sha. grin
Attention to detail is extremely important in our field. Also, find out the background / built in capabilities of both Python and and Ruby and raw facts will fairly jump at you

@Other nay sayers
I say it again (with added emphasis); some languages are "toys". Simple example, C# can do everything that JavaScript can do; JavaScript can only do a fraction of what C# can do (e.g. ever heard of pure sockets in Javascript? Even worse dissassembling PE Files with Javascript?). Oh yes! Just before you jump around screaming "I got the basta'rd, there's a hole in his argument!", C# can also be used as a scripting language. Damn! grin
For the purposes of the current topic, it is easy to see how Javascript would be a toy for the hacker who wants to deal with desktop systems and networks.

It is common to find folk here claiming that languages don't make a difference, its somehow all down to the developer; well, thats how we separate the "he men" from the kids. Those people don't know what they are talking about. Has any self respecting hacker ever attempted any serious kernel stuff in pure Python or Ruby? Or do they have to call in the heavy lifters in asm, C and C++ or compile C#/VB.NET to assembler? Yes, I said "compile C#/VB.NET to assembler", that was no error.

If you ever read the novel, Roots, you'll be familiar with the saying; "the 'moto' of a man is different from that of a boy". grin
Re: Is C# Better Than C/C++? by iGuru1(m): 12:32pm On Jan 29, 2010
@Beaf,
Are you saying that you are man in developing.
grin *)
Re: Is C# Better Than C/C++? by Beaf: 1:21am On Jan 30, 2010
i-Guru:

@Beaf,
Are you saying that you are man in developing.
grin *)

Lets just say I'm no kid. grin grin grin grin grin grin grin
Re: Is C# Better Than C/C++? by iarm(m): 6:32am On Feb 10, 2010
There is no _better_ or _worse_ there is _objectives_ and desires, or, means to a certain end.

C is a language that was made to create the UNIX OS, and families. Some refer to it as high level assembly, where portability exists.

C++ is "aimed" at being a modern, object oriented C, with the incrementor operator suggesting that it's C + 1, but in actuality, it's probably C - 1, an extremely complex language that I'm not sure why so many people find wonderful (possibly boost?).

C# which is based on C++ (understandably so) focuses on Microsoft Windows based programming, originally made to manage .NET library frameworks, but so far has extended further. It has similar design goals as Java does (see the CLR) -- I don't have a lot to say about it.

Personally, learning C would be most beneficial, consider how much quicker you'd learn C++ and C# should you wish to veer into either one. It's a language that has small semantics and grammar, suitable for a learner to programming as a whole.

It's ultimately your choice, however it does depend again on your aspirations, maybe you could discuss them, further?

Also, there is no "ethical hacking". Your motivations for exploitation of a vulnerability are left aside, in my opinion.
Without C, your scope would be limited to web-based bugs, i.e sqli, rfi, etc. With C, web based exploitation would probably be easier to grasp, with the advantage of understanding system level programming concepts, and exploitation.

If you need any help -- message me.
Re: Is C# Better Than C/C++? by Cockyzy(m): 10:10am On Feb 11, 2010
Hello fellow coders, All C programming languages has their own specific use.I start learning with C,now i wanna self-learn C# as a guide to OOP before i would be school-taught C++. i need C# compiler,please someone should kindly send me: vic_lovingu@yahoo.com.Thanks.
Re: Is C# Better Than C/C++? by gongoaso1: 1:31pm On Feb 11, 2010
Re: Is C# Better Than C/C++? by Beaf: 10:57pm On Feb 12, 2010
Cockyzy:

Hello fellow coders, All C programming languages has their own specific use.I start learning with C,now i wanna self-learn C# as a guide to OOP before i would be school-taught C++. i need C# compiler,please someone should kindly send me: vic_lovingu@yahoo.com.Thanks.

The following are 100% free:

Microsoft Visual Basic 2008 Express Edition
Microsoft Visual C# 2008 Express Edition
Microsoft Visual C++ 2008 Express Edition

Download from here;
http://www.microsoft.com/express/Windows/
Re: Is C# Better Than C/C++? by iarm(m): 11:11pm On Feb 12, 2010
Beaf:

The following are 100% free:

Microsoft Visual Basic 2008 Express Edition
Microsoft Visual C# 2008 Express Edition
Microsoft Visual C++ 2008 Express Edition

Download from here;
http://www.microsoft.com/express/Windows/

I think that these are Windows specific API suites with a visual studio backend. Consider ANSI/ISO-C specification compilers, like mingw -- then the beginner might choose to consider leveraging availability of OS specific libraries.

(0) (1) (Reply)

The 3 Types Of Developers You Will Find In Africa. Which 1 Are You? / Can A Nigeria Programmer Afford A Range Rover Sport? / Funny Source Code Comments

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2014 Oluwaseun Osewa. All rights reserved. See Nairalist and How To Advertise. 89
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.