Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:C++14 != C++98 (Score 1) 407

I'm cool with nullptr for 0. But auto absolutely causes bugs. I've seen it, where programmers assume the auto datatype is one thing and it turns out to be another. It was a major performance issue in a program I debugged. Turns out the compiler assumed they were using floating point where they wanted to use int, and the processor didn't have a floating point unit, so it was all emulated in software. Unfortunately it wasn't found until after release.

In addition, it decouples the data type from the code in maintenance. Want to know what that auto loop is actually doing? You need to find and check wherever the container was defined. This takes time, and leads to bugs when maintainers forget or make the wrong assumption. For saving 10 characters at writing time you cost orders of magnitude that when maintaining the code.

Furthermore- the reason for auto was they fucked up the STL by adding too many features (allocators) and insisting on their algorithms library (which in 15 years of writing C++, I have never seen used) being compatible with pointers as well without using a wrapping class. Stupid, stupid ideas. You don't perpetuate mistakes with new features which add new problems- you correct them.

I completely understand the new features of C++- I just think the vast majority are a bad idea.

Comment Re:Answers for both (Score 1) 235

Then you're extremely lucky, I've had iOS hard lock when dogfooding apps fairly frequently (although that was a few years ago, maybe they're better). But I don't trust ANY device without a real pull the plug option, not after years of doing firmware and mobile development. If a device needs batteries, I will not buy it unless those batteries are removable.

Comment Re:C++14 != C++98 (Score 0) 407

I wish people would stop adding to C++. C++ as it stood in 1998 was a good, if somewhat complex, language. The new additions (except for a few of the libraries) make the language way too complex and lead to unreadable code.

You need to learn that concise != good. If it did, everyone would be programming in perl 1 liners. Auto is the most braindead addition in history, it causes bugs, loses all the advantages of a typed language, and only needs to exist because they fucked up the STL by not using proper inheritance. Any code review that uses them is an auto bounce and fix. Templates are the most abused language concept in history- if you're using it for anything other than a container class, odds are 98% that you're writing hard to follow, hard to maintain code that should be rewritten

C== was better when it was treates as C++98.

Comment Re:Don't forget Firefox Hello! (Score 1) 147

In *browser*? Abso-fucking-lutely. If Mozilla Foundation wanted to write the Mozilla Videoconfrencing app, that would be fine. But there is 0 reason to put it in the browser, and it only decreases security of everyone involved by having it in there. A browser should display webpages- period.

Comment Re:As a millenial (Score 5, Insightful) 261

I read several novels a month. But I wouldn't read a technical book on an ereader if you gave it to me for free and paid me to do it. And I've tried- I originally bought it thinking it would be great for tech books. But the slow speed of page switching, the inability to flip through pages rapidly, the reduced area per page all make it an unbearable experience. Ereaders are good for fiction reading, they're completely unsuitable for anything that isn't read beginning to end with no branching or backtracking.

Comment Re:iPad too fucking expensive (Score 2) 139

Tablets are a horrible replacement for books. Lets ignore the fact they have massive amounts of distractions built in. They're harder to read, worse for your eyes, run out of batteries, are harder to take notes on, and worst of all hard or impossible to skim. I own over a thousand books on my kindle, but almost 0 technical books. Its just not a good medium for it.

Comment Re:why? (Score 1) 677

That's a great way to ensure your code will never perform well. Architectural and algorithmic based performance issue need to be solved at the same time as correctness and understandability, or you'll never achieve it. There's levels of micro-optimizations that can wait, but people stating this kind of shit as a rule are fucking inconmpetent.

Slashdot Top Deals

"Just think, with VLSI we can have 100 ENIACS on a chip!" -- Alan Perlis

Working...