Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×

Comment Re:Define "Greater Good" (Score 5, Insightful) 197

Indeed. I'd also like to hear how Mr. Chen proposes to follow his vision of the greater good, where he has access to everyone's data and will hand it over for any trumped-up warrant, without a backdoor in his soon-to-be-extinct Blackberry's.

Or is he going to do the politician thing and define "backdoor" to mean something conveniently different than what Blackberry has.

Submission + - More TSA Security Theater - Slamming the Face of a Disabled Cancer Patient (theguardian.com) 1

Kobun writes: From the Guardian: "A disabled teenage cancer patient was injured during a violent arrest by security agents at Memphis international airport, her family has alleged in a lawsuit filed against the Transport Security Administration." A disabled and confused brain cancer survivor doesn't immediately comply with TSA officers, earning her face a violent meeting with the ground and a night in jail. The TSA has yet to provide a non-answer or statement.

Comment Re: What is this I don't even (Score 1) 268

I don't think it's a particular direction; the point is more that the distortion behaves like a normal physical object in that it can be rotated by someone picking it up and moving it. Some other phenomena like electron clouds only exhibit measurable orientations in the presence of other charged particles.

Comment Re: Sweet (Score 1) 286

It's a little more nuanced than that; I'm im scientific computing, so I have the luxury of wasting months of my life hammering out memory leaks in the pursuit of tighter code. I'd be using pure C if I didn't absolutely need classes and operator overloading.

But immediately after I posted that comment, other posts on this story convinced me to give modern C++, particularly the C++11 changes, another look. So don't worry yet...

As for the with keyword: this is an entirely separate grievance I have from a language design perspective. The syntax they chose is very illegible and breaks pace with what is probably the most sacred construct in any curly-bracket language aside from an empty scope. In no other language that I know of can you find code between the "if" keyword and its corresponding expression. Maybe "with" is the wrong choice of a keyword for C++'s situation, but the pattern of using a separate phrase like that is definitely the right overall structure. Stuff like that doesn't make the language more complex, in my opinion, particularly as it's something an unfamiliar reader should easily be able to intuit.

Comment Re: Sweet (Score 1) 286

My personal approach to using C++ has always been to use mostly C with basic involvement of C++ classes and relatively little else. I tend to think that any programmer with both Java and C experience should be able to read the code, memory management aside. (I rarely even use iterators or templates.) There's no real need to engage with all the innovation/creativity/alcoholism that's been added in more recently, at least not for my work, and I think using such a restrained and archaic style will probably be ideal for maintainability (including on ancient compilers from obscure vendors). Maybe if you look at C++ as less of an obligation and more of a landfill full of broken dreams, you'll find it less chafing.

For example, I'm terrified of the if initializers that the summary links to, and would have strongly preferred the with() syntax. I can't imagine a bigger problem for code legibility than sticking declarations inside of what people universally trust as the simplest case of expression evaluation. The logic for rejecting with() is perfect, too: "That would require teaching a new keyword and thereby reveal our design is bad."

Slashdot Top Deals

The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows. - Frank Zappa