C or C++ from security perspective

C or C++ from security perspective

Post by exus69 on Mon Jul 19, 2010 11:03 am
([msg=42126]see C or C++ from security perspective[/msg])

Hello everyone,

Am a bit confused about which language to start with from infosec point of view C or
C++. I came across a book named "Same Teach Yourself C++ in One Hour a Day"
which says its advantageous to learn C++ and not C at all coz in case of learning C first, I'll have to unlearn parts of it to learn C++. Awaiting your valuable advice.

Thanks
exus69
New User
New User
 
Posts: 2
Joined: Mon Jul 19, 2010 10:59 am
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by thetan on Mon Jul 19, 2010 11:57 am
([msg=42132]see Re: C or C++ from security perspective[/msg])

this is a silly question really.

C and C++ are of the same hat. Theres a saying i picked up somewhere a while back (don't remember the source) that wen't something like "C is like a dog, while C++ is like that same dog made into an octopus by shaving the hair off of him and stapling an additional 4 legs to him". In the end the C++ octo-dog is still a dog underneath all the OOP abstraction layers. They are as i said of the same hat.

There are mixed opinions on this, most of which will be blatantly bias and are also retardedly lacking of any sensible logic.

My personal opinion, it doesn't matter. Pick one and learn it.

People will try and tell you "OMG LEARN THIS FIRST R U SUKZ", ignore them, as this is that insensible logic i was referring to earlier materializing.
"If art interprets our dreams, the computer executes them in the guise of programs!" - SICP

Image

“If at first, the idea is not absurd, then there is no hope for it” - Albert Einstein
User avatar
thetan
Contributor
Contributor
 
Posts: 657
Joined: Thu Dec 17, 2009 6:58 pm
Location: Various Bay Area Cities, California
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by exus69 on Tue Jul 20, 2010 3:41 am
([msg=42223]see Re: C or C++ from security perspective[/msg])

Thx thetan:)
exus69
New User
New User
 
Posts: 2
Joined: Mon Jul 19, 2010 10:59 am
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by tgoe on Wed Jul 21, 2010 2:51 am
([msg=42335]see Re: C or C++ from security perspective[/msg])

Regardless of your field of interest, these are facts:
  • The C language is tiny compared to C++
  • C++ is not C plus objects. C++ is way more complicated than that.
    C plus objects is C. (Mindfucking, I know)
  • C's power matches and exceeds C++'s
  • C is easier to learn than C++
  • C++ is a high-level language disguised as C
  • Books with titles that are similar to the pattern
    "Learn _____ in _____ minutes" are scams that prey on noob's wallets
  • Many languages look to C for inspiration... C++ does too...
  • You should learn more than one language
  • Learning C prepares you to learn most any other language (including C++)
  • "unlearn" is another noob-targeting device. Learning something new in addition
    to what you already know is always better and easier than "unlearning"
Learn C first for maximum enjoyment.
User avatar
tgoe
Contributor
Contributor
 
Posts: 668
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by thetan on Thu Jul 22, 2010 10:39 pm
([msg=42535]see Re: C or C++ from security perspective[/msg])

And this is what opinions and ass wholes have in common. Every one has them and they all smell like shit.
"If art interprets our dreams, the computer executes them in the guise of programs!" - SICP

Image

“If at first, the idea is not absurd, then there is no hope for it” - Albert Einstein
User avatar
thetan
Contributor
Contributor
 
Posts: 657
Joined: Thu Dec 17, 2009 6:58 pm
Location: Various Bay Area Cities, California
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by fashizzlepop on Thu Jul 22, 2010 11:23 pm
([msg=42540]see Re: C or C++ from security perspective[/msg])

exus69 wrote:from infosec point of view


I think that common tutorials of C will teach lower levels of the language that focus on buffer overflows and such, which is your "infosec" stuff. C++ tutorials will focus on higher level programming.

This is a very broad guess/generalization. I would say try C, personally.

Also, there are some cool lectures about computing and C on youtube from the Univ. of New South Wales. The Prof is funny and entertaining. You might want to check it out.

http://www.youtube.com/watch?v=hE7l6Adoiiw
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by Arameus on Sun Dec 05, 2010 3:11 am
([msg=50023]see Re: C or C++ from security perspective[/msg])

Well that depends. Would you trust your programs in the hands of Satan? Because that is what you are doing when you program in C++.
Arameus
New User
New User
 
Posts: 36
Joined: Mon Feb 01, 2010 6:53 pm
Location: Ballston Spa, NY
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by fashizzlepop on Sun Dec 05, 2010 8:35 pm
([msg=50074]see Re: C or C++ from security perspective[/msg])

Arameus wrote:Well that depends. Would you trust your programs in the hands of Satan? Because that is what you are doing when you program in C++.

Wow, way to pointlessly revive this dead thread. *shoots zombie*
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by fabianhjr on Sun Dec 05, 2010 9:26 pm
([msg=50081]see Re: C or C++ from security perspective[/msg])

Still, it is lulzy. We must keep it and continue making useless posts! For Satan!(Wait, was it his bday or why are we celebrating?)
Donate bitcoins to me! [1DhRP3hHgmSLQdRTZyT8VPTmzAj7Z2rsGA]
Dunno what bitcoins are? BitcoinMe
fabianhjr
Poster
Poster
 
Posts: 286
Joined: Tue Sep 21, 2010 7:48 pm
Blog: View Blog (0)


Re: C or C++ from security perspective

Post by Arameus on Sun Dec 05, 2010 9:34 pm
([msg=50084]see Re: C or C++ from security perspective[/msg])

is this a slow board? I didn't bother looking when it was posted. Well it's on the top now, anyway.
Arameus
New User
New User
 
Posts: 36
Joined: Mon Feb 01, 2010 6:53 pm
Location: Ballston Spa, NY
Blog: View Blog (0)


Next

Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests