Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C++

Name: Anonymous 2013-03-08 4:06

C++ programs written where the writer has a basic grasp of object orientation are far more secure and reliable than equivalent C programs.

Compare std::string to char*. std::string always cleans up it's own memory in any situation, allocates the right amount every time. char*, you might forget to free, or double free, or not allocate enough memory. Whoops. Basic logic says that C++ programs are better and more secure than C programs.

Name: Anonymous 2013-03-08 4:15

Makes more sense to me, but I'm a plebeian.

Name: Anonymous 2013-03-08 4:21

0/10

Name: Anonymous 2013-03-08 4:23

>>1
This may surprise you, but an equivalent to the C++ strings class can be implemented and used from C, and they can be used in an equivalent manner. The only thing C++ has over C in this regard is the implicit destructor call when the local string variable's scope dies, but this can bite you just as often as it can help you. Explicit code for destructor calls makes them easier to follow and understand. Abstracting away a process like that only works when the process is fail safe. In C++ a segmentation fault can be due to implicit destructor calls, which are hard to understand. Destructors may not always be what you want, and insisting that there is only one destructor may be too inflexible for your needs.

You can never claim a program is secure based upon the language it is coded in. You're argument only supports C++ programs having a higher probability of being secure than C programs, which may be true depending on the type of programmers we are talking about here. But it is possible to write rock solid C that is easier to understand and easier to prove correct, than some styles of C++.

Name: Anonymous 2013-03-08 4:38

>>4
... easier to follow and understand ...
... which are hard to understand ...
So C is the retard's language of choice, got it.

Name: Anonymous 2013-03-08 4:41

>>5

You might want to examine the subject of those two sentences, and ask yourself if they are the same.

Name: Anonymous 2013-03-08 4:51

>>6
Sigh. Of course they are not the same, that was not my point. Try again.

Name: Anonymous 2013-03-08 4:52

The Amazon River dolphin or boto has been reported to form up in bands of 3–5 individuals enjoying group sex. The groups usually comprise young males and sometimes one or two females. Sex is often performed in non-reproductive ways, using snout, flippers and genital rubbing, without regards to gender.[58] In captivity, they have been observed to sometimes perform homosexual and heterosexual penetration of the blowhole, a hole homologous with the nostril of other mammals, making this the only known example of nasal sex in the animal kingdom.[58][59] The males will sometimes also perform sex with males from the tucuxi species, a type of small porpoise.[58]

Name: Anonymous 2013-03-08 4:54

without regards to gender.
Dolphins considered JEWS.

Name: Anonymous 2013-03-08 4:55

>>8
do they write in c++ or how it's related

Name: Anonymous 2013-03-08 5:06

>>7
Ok, I will try again.

X. Explicit code for destructor calls makes them easier to follow and understand.

Y. In C++ a segmentation fault can be due to implicit destructor calls, which are hard to understand.

From X and Y, derive Z:
Z. So C is the retard's language of choice, got it.

Hmmmmmmmm. Oh I know! Are you saying that C is the retard's language of choice because its alternatives to C++ are easier to understand? Well, if you don't want to be like the other retards, I have just the language for you.

https://en.wikipedia.org/wiki/Intercal

Name: Anonymous 2013-03-08 5:10

both are shit and should be avoided if possible

Name: Anonymous 2013-03-08 5:22

LEEEEEEEEEEEEEEEEEEEEEEEL LE /E/GIN UNDEFINED /G/ROSKI XDDDDDDDDDDDDDDDDDDDDDD
YHBT WHEN LE CANT INTO UNDEFINED BULLSHITHE
LE ISHYGDDT FACE.2011
XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD THAT WAS SO E/G/IN FOR LE IMPLICIT DESTRUCTION
XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Name: Anonymous 2013-03-08 5:28

>>8
Richard Stallmanu: Dolphinkin

Name: Anonymous 2013-03-08 6:00

>>11
You forgot the "if you're retarded" qualifier in both X and Y.

A five year old finds a book where there's one sentence per page, with illustrations, written in excessive detail, easier to understand than a normal book, but a non-retarded grown up person understands normal books just fine, while dilution and details in kids' books make them harder to read. You waste too much time turning pages, for one thing.

Same with programming languages: if you're retarded, you want to be held by the hand and walked through every detail every time. "This is Pyotr. Pyotr is a piglet. Piglet Pyotr is driving a tractor. The tractor is stolen. Pigled Pyotr has stolen the tractor that he is driving." Thus, languages like C, Java. When you're not retarded, you understand what's up the first time or even implicitly, and all this endless repetition only distracts and hides bugs.

I don't expect a retard to know the difference between brevity and intentional obfuscation like in Intercal, though: both are equally confounding for the poor goy.

>>14
Are dolphins afraid of spider plants though?

Name: Anonymous 2013-03-08 6:21

except those who use high level languages like php, javascript etc often don't understand how works what they do because details are hidden from them. so your analogy is false, you rather can imagine users of those languages driving a toy car in an amusement park while users of c/c++ drive a real car... or, without bigotry and more precise, like drivers of cars with automatic gearbox and with manual gearbox

Name: Anonymous 2013-03-08 7:06

>>16
I don't give a fuck about PHP codemonkeys. My analogy is about RAII and implicit destructors in C++ vs explicit destructors in C. Only in your deranged imagination the inadequacy of PHP coders somehow invalidates it. Please take your medication.

Name: Anonymous 2013-03-08 17:06

>>17
C Is a superior language to C++.

The. End.

Name: Anonymous 2013-03-08 19:18

>>18
Symta IS a superior language to everything.


The. End.[/.]

Name: Anonymous 2013-03-08 22:32

PHP saves the day!

http://jadnohra-tech.blogspot.ru/2008/08/mixing-php-and-c-preprocessor.html

what about using something like a php processor to meta-program c++ files?? One could do something like #include "Vector.php.hpp?dims=3"  Taking it to the extreme we would probably be able to do something like this:
#include "Vector.php.hpp?class=FunkyVector3D, dims=3", and have a resulting class called FunkyVector3D! changing names of classes at will, would that be a maintenance disaster? or simply more responsability?

Name: Anonymous 2013-03-09 0:43

>>15
You forgot the "if you're retarded" qualifier in both X and Y.
But they were not part of the original text.

When you're not retarded, you understand what's up the first time or even implicitly, and all this endless repetition only distracts and hides bugs.

LISP

C has the capability of abstraction. C++ is C with sugar for turning your katana into an out of control chainsaw. The difference between a katana and a chainsaw is that a chainsaw is more likely to do something that you didn't want to do. While a katana is with you, mind and body, an extension of yourself. Yes, maybe I might forget to decapitate a few people in line for execution. But if I let the chainsaw flip around and do it, it might get some innocents without my knowledge.

Name: Anonymous 2013-03-09 1:06

>>21

try to cut a tree with katana

Name: Anonymous 2013-03-09 1:08

>>22
That's what my teeth are for.

Name: Anonymous 2013-03-09 7:13

throw exceptions into my anus

Name: Anonymous 2013-03-09 8:23

>>21
C has the capability of abstraction. C++ is C with sugar for turning your katana into an out of control chainsaw.
C has the capability of being piece of shit. C++ is the same piece of shit with some vomit on the top.

Name: Anonymous 2013-03-09 8:39

Here is an example, how one uses Lisp in place of C/C++:
http://ahefner.livejournal.com/20528.html


and no PHP/M4/YACC preprocessor needed.

Name: Anonymous 2013-03-09 12:35

>>21
katanah
my claymore can break it in half.

Name: Anonymous 2013-03-09 14:10

>>27
My damascus sword can break both and show no signs of wear

Name: Anonymous 2013-03-09 23:13

C is a car
C++ is the same car with a cardboard spoiler

Name: Anonymous 2013-03-09 23:46

>>29
But the cardboard spoiler says "FRESH", and it has dice in the mirror.

You might even go as far as to say it's rare.

Name: Anonymous 2013-03-10 9:03

>>30
But then you couldn't be more wrong.

Don't change these.
Name: Email:
Entire Thread Thread List