UGN Security
Posted By: Moffesto C, C++ or C#? - 06/23/02 04:22 AM
Which language do you use? which is the best in your opinion and why? and whats the difference smile
Posted By: olosoft Re: C, C++ or C#? - 06/23/02 06:05 AM
i dont know why you would still use c when c++ is available, so im gonna say c++ only becuase i havent tried c# yet, pronounced c sharp, not c pound or c hash as ive heard some people say it.
Posted By: SilentRage Re: C, C++ or C#? - 06/23/02 03:49 PM
C

There's nothing wrong with C++. I just like to work low-level and wanted to get away from object-oriented programming for when I make the jump to ASM.
Posted By: Moffesto Re: C, C++ or C#? - 06/23/02 10:59 PM
Im working with C++ now, i just started like a week ago. Its fun... complicated and adventurous (i guess thats the right word to use). C++ being more powerful... i rather learn it smile . I dunno about C# yet, ive only seen few things said about it. Im sure ill find sumthing about it and when i do i will post it smile
Posted By: SilentRage Re: C, C++ or C#? - 06/24/02 12:40 PM
Quote:
Originally posted by Moffesto:
C++ being more powerful...
C++ being more powerful than what? C? Try again. The lower level you go the more powerful the language. If you can program in machine language - that is the most powerful you can go. ASM is the next step. With each step the language becomes easier to use and restricts you a little bit more. After ASM came Fortran and Basic - very powerful languages. Eventually C came out - and the beauty of this language is you can make platform independant code. After C came C++ and VB (renown for english-like syntax) and other object-oriented languages. The beauty of THAT is the self-contained object code which made modularization and program production a lot easier. Then after that came stuff like Perl and then Java which produces platform independant PROGRAMS.

So I really question what you mean by C++ being the more powerful... More powerful than VB? There ya go, you got a winner.
Posted By: Moffesto Re: C, C++ or C#? - 06/24/02 04:08 PM
sorry, i just got told wink . Thanks for clearing that up.
Posted By: Moffesto Re: C, C++ or C#? - 06/24/02 06:38 PM
i thought C++ was like C and more... having more capabilities than C.
Posted By: SilentRage Re: C, C++ or C#? - 06/24/02 07:10 PM
Well, the reason I said that there's nothing wrong with C++ is cause you can include C code within your C++ code. This makes it have all the power of C. C++ makes things faster and easier than being forced to do so much work all the time in C.

So it really is the better way to go - Unless...

Any object-oriented programming spoils you so that you will find it harder to learn structured programming like C. This is not a problem if you never plan on learning C or never have to read C code. Also, you can do low-level stuff in C you cannot do with straight C++ coding, but if you never require such power (and you rarely do) then again, it's not a problem.

As I said, the only reason I'm learning C - and no C++ - is cause C is merely the diving board for when I switch to heavy ASM coding.
Posted By: Moffesto Re: C, C++ or C#? - 06/24/02 07:21 PM
ahhh, i c now. thanks for the explaning smile i learned sumthing new today <img border="0" alt="[Alien]" title="" src="graemlins/alien.gif" />
Posted By: dashocker Re: C, C++ or C#? - 07/18/02 04:47 PM
yeah, also C# has nothing to do wit C or C++.
I believe it is the m$oft standard language for writing .NET or something along those lines :x

L8r
Posted By: ninjaneo Re: C, C++ or C#? - 07/20/02 03:28 PM
dash: think of C# as a new language but still as C++v7.0

C# = Elite i've been reading a book on it
Make sure you have a 500mhz or + comp tho cuz it checks for sys requirments

If you can do C# DO IT!

its uber elite I swear to god
Posted By: dashocker Re: C, C++ or C#? - 07/21/02 12:40 AM
it cant be c++ v. 7.0 it was made by microsoft :x
they arent cool enough :x
Posted By: ninjaneo Re: C, C++ or C#? - 07/23/02 09:04 PM
hehehe they made 6.0 tho :-x
Posted By: dashocker Re: C, C++ or C#? - 07/23/02 10:01 PM
maybe thats why its so confusing...
Posted By: zenon Re: C, C++ or C#? - 07/26/02 05:53 AM
I don't mean to be rude, but I really hate when people go out and shout:
Quote:
C# = Elite i've been reading a book on it
Make sure you have a 500mhz or + comp tho cuz it checks for sys requirments

If you can do C# DO IT!

its uber elite I swear to god
It's actually a bit anoying. First off all, what makes a language ELITE?? The abillity of creating complex structures? The abillity of using the same code on ALL OS's without having to change annything before compilation? The abillity to multithread processes at anny time and call them by using ONE command? Then.. C# is used to do what exactly? As far as I know, not all languages are created to perform annything. My father is a programmer and has been programming since 1970. As far as I know, he has been into several languages/computers as:

-Z80
-COBOL
-RPG400
-386 Systems
-FORTRAN
-BASIC
-ASSEMBLE
-QB
-VB
-C
-C++

When I say that we have LOADS of books on languages in our livingroom I mean it!
Now, myself I like C++.
Not only is it a reliable language, the code is simple to read (depending on each programmer of course) and it's also easy to learn. Once you understand (by understanding I mean learning to the very point where the code becomes naturall to you) C++, you can really create wonders. Right now, I'm trying to learn Visual C++.

That's all, and It's NOT a flame. I'm just trying to make a point that NO language is ELITE they are just good at different things. (Eccept VB and QB and Basic, those suck bonehard).
laugh
Posted By: SilentRage Re: C, C++ or C#? - 07/26/02 01:07 PM
Assembler is elite! And my grounds for eliteness is the power a language provides. Assembler can do more than any other language besides machine code - heh. I don't particularly care that it is more difficult to learn or that it takes longer to program in or anything like that. Any program can be decompiled to it's assembler state and modified and recompiled.

:p

languages that != elite are those with huge overhead. Instead they can deserve names like "useful" or "convenient" or "answer-to-our-prayers" whatever... smile
Posted By: Asteos Re: C, C++ or C#? - 07/28/02 06:16 AM
I believe the origninal question was what diffrentiates C, C++, and C#?
I'm a little confused as far as the C++ goes. There's so many diffferent versions I've heard of. What's the differences between them? There's Turbo C++, Visual C++ (Microsoft?), and then juss plain ol' C++. My uncle wants me to learn C++ because it's a major language n [censored] but personally I'm more of a perl guy. I've been looking into perl for a long time and have collected a bunch of books on it, now it's just a matter of finding time to study them. Is it a good idea to learn perl before starting C++?
C++ is an object oriented language, as opossed to C, which I'm pretty sure is not. Iv'e never heard of C# so I don't know about that one. Just what the hell is C# anyway?
Posted By: dashocker Re: C, C++ or C#? - 07/28/02 08:10 PM
Heh, Asteos, PERL rules! learn it if u can. The only downside i see to it is it is a scripting and not compiled language. All u need to get a good handle in it is a begginer book (I prefer the teach urself in 24 hours series) and the included documentation.
Posted By: Scallion Re: C, C++ or C#? - 07/29/02 07:12 PM
I'm all about the PHP. C++ is good, C is hard to deal with the pointers and stuff, and C# is just a pathetic m$ attempt at Java.

Nono, let me rephrase that for SR: I believe that C# is a microsoft alias to Java, but I deeply respect those users of C# and the lovers of M$.

PHP is sleek, fast, object oriented, high level, easy to use, network easy...it's everything you want in a high level language. For down and dirty work on OS stuff, I go for the C though.
Posted By: SephiroX Re: C, C++ or C#? - 07/29/02 11:02 PM
So what your saying is, C can do deeper into programing then c++?
Posted By: SilentRage Re: C, C++ or C#? - 07/29/02 11:56 PM
lol scallion. Feel free to target products with your flames (if somebody takes it personal than that's their problem), just don't target mass groups of people and you won't irritate me (and everybody else) much - (unless you go into over-used subjects like windows and [censored])

C# fits under my definition of "useful" or "convenient" or whatever. It certainly does not match what I would consider 'elite'. It's cause of the overhead. overhead sucks big turn-pike. Perl also has huge overhead which is why I do NOT recommend using perl to write anything for the windows platform unless it be CGI backends. And for mean programs, not for any platform. Perl was provided to simplify coding for platform independant programming. You do NOT want to write firewalls in perl for example. laugh

C++ and especially ANSI-C kicks all kinds of cheek. VC++ doesn't count. I love pointers. I've actually manipulated pointers in VB I love 'em so much. laugh
Posted By: psychogen Re: C, C++ or C#? - 07/31/02 01:31 PM
Hehehe,

Well ASM is the language to understand, but actually coding in ASM is allmost impossible from my point of view. Understaning ASM is another thing, but writing it - hmm I dunno on that one.

Well impossible is a bit harsh its just im too lazy to dedicate my head to it smile I prefer knowing what to look for when debugging/hooking applications than to actually learn its raw code outline.

My personal choice would be C++ sofar because as stated in another post up there its the only language which I have been exposed too and also because I love its relevance to Java, which makes Java a whole lot easier to understand if you know C++.

But since I am spending more and more time on *nix platforms now I really am wanting to get aquainted with C. But lets see everything with its time.

And C# is something I will definately invest in learning cause from what I have seen what .net apps are able to do I am totally for it.

Ohh and Seph, what they mean is that C as it is a predecessor to C++ (C with classes) it has more power over the manipulation of the system itself, you can write C code that will be understood by, I guess, allmost all platforms but C++ is much more architecture sepcific, for example, Coding C++ under Linux will be different to coding C++ under Windows - why? Cause those platforms are already compiled with their default Header file names and so on, accessing a system resource or a shared driver/kernel file would be handled differently under the two platforms. Whereas C is more of a universal language that requires more in depth programming but will achieve in allmost every case the same results under the two platforms.

Bah I think I explained that allright but I think i mixed up a point there somehere, someone have a look!
© UGN Security Forum