me learning about C++:
who the << fuck << thought << this << was << a << good << idea << '\n'
computer opinion Show more
@kinsey c++ is a garbage trashfire
@kinsey People who wanted to be able to combine binary and string data into single streams for storage and recall.
C: printf("Hello world\n");me: ah, okay, i can understand thatC++: cout << "Hello world" << endlme: the FUCK did you just call me
computers Show more
@kinsey the safer way to do it is actually std::cout << "Hello world" << std::endl;
i cannot believe this language is considered appropriate to introduce people to programming with at Sprawl State
It's easy. Don't teach the advanced features until later.
C++ is much more akin to Pascal than C, and the string class is super easy to learn.
@kinsey I prefer to use printf in C++ for the reason that cout is ridiculous
@kinsey I love this syntax. If the compiler warnings would be better I only would write c++ :D
@kinsey string streams are a crime
@kinsey operator overloading is evil in every language TBH.
In C++, it's just one of very many evils, so everyone using it accepts it as kind of normal. Poor souls.
@lupine @kinsey Operator overloading done properly is not evil and I will fight you.
Which is easier to read:Java: myString.equals(otherString)Kotlin: myString == otherString
Java: complex.add(otherNum)Kotlin: compex + otherNum
@PrincessRaspberry @kinsey the idea that strings might not be a core part of the language is also evil :-D. I guess overloading might be the lesser of the two
@PrincessRaspberry @kinsey but also, don't fight me, I am weak
@kinsey "it's like unix pipes... but not"