whats wrong with c++?
1
Name:
Anonymous
2012-06-14 4:55
it has namespaces, better standard libraries, a plethora of modern conveniences, and all of c's functionality.
if you don't like objects don't use them
if you want to feel like a programming badass and do everything low level then learn assembly
81
Name:
Anonymous
2012-06-19 17:57
82
Name:
Anonymous
2012-06-19 19:03
>>80
Even the best programmers make mistakes, and C gives you more rope to hang yourself with.
83
Name:
Anonymous
2012-06-19 19:19
signal(SIGSEGV, SIG_IGN);
Stop worrying about segfaults.
84
Name:
Anonymous
2012-06-19 20:28
C gives you more rope to hang yourself with.
#include <cstdlib>
#include <iostream>
void *f(bool x) {
if(x) {
OHSHIT:
std::cout << "At least C doesn't give you rope like this..." << std::endl;
exit(0);
} else {
void *pointy = &&OHSHIT;
return pointy;
}
}
void g(void *WHAT) {
goto *WHAT;
STUFF:
std::cout << &&STUFF << std::endl;
}
int main() {
g(f(false));
return 0;
}
85
Name:
Anonymous
2012-06-19 21:21
The worst part about C++ are the programmers. C++ as a language is fine, but it takes a while, probabbly longer than C to get a good grasp on what you are doing, and what the best way to do things is. Too many people try to do "C in C++" for example.
If you are using C++ then do C++. If you are doing C then do C.
86
Name:
Anonymous
2012-06-19 22:01
>>84
On my system that only executes
STUFF.
87
Name:
Anonymous
2012-06-19 22:26
88
Name:
Anonymous
2012-06-19 22:26
>>87
You missed the dubs dude!
89
Name:
Anonymous
2012-06-19 22:31
>>84
Shitty example. Why would anyone want to do this to begin with?
90
Name:
Anonymous
2012-06-19 23:09
>>89
A sane person wouldn't. That's why allowing it makes Sepples inferior to C.
>>86
Try this one:
#include <cstdlib>
#include <iostream>
void *f(bool x) {
if(x) {
OHSHIT:
std::cout << "At least C doesn't give you rope like this..." << std::endl;
exit(0);
} else {
void *pointy = &&OHSHIT;
return pointy;
}
}
void g(void *WHAT) {
goto *WHAT;
STUFF:
if(&&STUFF) std::cout << "";
}
int main() {
g(f(false));
return 0;
}
91
Name:
Anonymous
2012-06-20 1:08
>>90
The problem is C
does allow it. How do you think Sepples was created?
92
Name:
Anonymous
2012-06-20 1:19
93
Name:
Anonymous
2012-06-20 1:50
94
Name:
Cudder
!MhMRSATORI!FBeUS42x4uM+kgp
2012-06-20 5:26
>>84,90
This is neither standard C nor C++.
95
Name:
Anonymous
2012-06-20 5:56
Why do people use the word "object" to refer to classes?
The way I see it, the below definition creates an object.
int i;
Is it wrong to call "i" an object!??!!?!?!
96
Name:
Anonymous
2012-06-20 5:57
97
Name:
Anonymous
2012-06-20 5:59
>>95
OO is all about self contained modules known as classes that pass messages to other classes. An instance of the class is known as the object.
98
Name:
Anonymous
2012-06-20 6:53
>>93-94
All non-trivial Sepples code is non-standard.
99
Name:
Anonymous
2012-06-20 7:31
>>98
All trivial Sepples code is non-standard.
100
Name:
Anonymous
2012-06-20 7:38
>>99
nice dubs
check mine too
101
Name:
Anonymous
2012-06-20 13:41
I've heard that C++ produces much code bloat, creates hard to read Template compile error messages, and makes you use dumb shit like const
102
Name:
Anonymous
2012-06-20 13:59
>>101
don't even get me started on template errors, i swear to god its the most unreadable shit ever created
103
Name:
Anonymous
2012-06-20 14:09
Just admit it. C++ is too hard . There's no point in learning such language.
I could complete at least ten projects with C during the time it would take me to learn C++ basics. Simple is better.
104
Name:
Anonymous
2012-06-20 16:07
>>103
We don't need programs written in C anymore.
Newer Posts