|memedumpster - 2016-10-12 |
This is the Borg Queen dialog in my rewrite of First Contact. She seduces Data by patching his integers. This foreshadows her demise when Data overflows the warp coolant. His line before breaking the tube is "negative two," because the integer errors in his positronic matrix gives rise to his free will.
Yeah, my rewrite is written by a hack, sorry.
|Robin Kestrel - 2016-10-12 |
There is a potential Donkey Kong kill screen coming up.
|mouser - 2016-10-12 |
operator overloading, especially assignment operators, are super evil.
But I would dig this. Except no go in Obj-C.
Calling things categorically "evil" isn't meant to be a substitute for thinking, but then again you're using Obj-C
Gdi I had a whole fake html-closing-brace that said "slash sarcastic burn, I don't care plz don't flame back unless ironic". I guess the web form sanitized the rest of my message away.
Then I said: if you want a drop-in replacement class for integers that throws an exception when they overflow, this is the right way to do it.
I posted this for his near-persecution complex, and his vehemence that this is a real important problem, despite no one really caring. I sort of sympathize, being a carer-of-things myself.
|That guy - 2016-10-13 |
He's just trying to keep us all safe??
|15th - 2016-10-13 |
i dunno im not an expert but if integers are overflowing you could divide them by a big number and make them really small or times them by zero which turns them into zero too. hope this helps
|pastorofmuppets - 2016-10-13 |
C++ is funny. I'd wager that most of the people who work in it write a very small subset (c.f. Google's style guide).
But folks who really love the language seem to want it to have every feature ever conceived of. Boost people most of all.
It's like, having 9 ways to shoot yourself in the foot is considered more elegant than having 8... but most people only know two, and their team only lets them use one.
Every fad language has had TIMTOWTDI in it somewhere since Perl, which is where the acronym comes from. I've seen it work really well with the right kind of discipline, but most coders I've met confuse discipline with ideological purity.
Not a big C++ fan, gotta admit. I still can't not think of it as C with added mess, and writing in it hasn't changed my mind much. Usually if I need the added mess, I opt for something a little newer. Out of the profession though, other than the occasional job for booze money, so what do I know?
: Assuming C++ isn't a fad language.
|Born in the RSR - 2016-10-13 |
I have a very vague understanding of what this guy's talking about, but gosh darn it I like his attitude!
|gravelstudios - 2016-10-13 |
In my beginning programming class, we used java, and one student would occasionally get into arguments with the professor --who has been teaching computer programming at this university for 40 years-- about why C++ is better. After taking a more advanced class on C++, I agree that java is better for beginners.
| Register or login To Post a Comment|