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

 



Forgot your password?
typodupeerror

Comment Screw Karma (Score 2) 432 432

A worker works for who pays them. Hillary's current gig is financed by Goldman, Citigroup, and Chase. She'll say whatever she likes to get elected, and serve the people she works for. Biting the hand that feeds you is bad for business.

You could always vote for someone who takes money almost exclusively from unions and individuals and talked about corporate greed and struggling workers before it was "cool", but hey, how can you get elected without at least 3 major banks funding you?

Comment Re:Not just a GUI toolkit (Score 1) 80 80

why not write that in C/C++ and the rest in something easier?

I guess that's my point -- it's not easier anymore.

Python comes with its own problems; it's hard to write object oriented code in a weakly typed language because (1) changing object interfaces means your code appears to work until it suddenly fails during execution (typed languages check at compile time) (2) no IDE can autocomplete methods on an object (because it's impossible to infer the type and thus the impossible to infer the methods able to be called on an object) (3) writing "glue code" is not a 0 effort proposition (not writing any is;)) and the code itself can contain errors.

With Qt/C++11 it's entirely possbile to write code that is both performant AND readable with less effort than an interpreted language (even one I've been using for over a decade -- yes I'm Perl guy). YMMV.

Comment Re:Spending cuts one way or another (Score 1) 431 431

Real money does not come into being by magic, it is not printed into existence, it is not magically created on a computer. Real money is the result of productive activity

So basing your economy on shiny rocks? The Lakota Sioux thought the stuff was generally worthless and called it "the yellow metal that makes white people crazy" (no tribe in the Americas ever had a gold based currency). Good to see there's still some insanity left.

Comment Re:Not just a GUI toolkit (Score 1) 80 80

I don't have a direct comparison with my current project, but having worked on other projects in the HPC, it's not 2x. It's more like (O)n vs (O) n log n -- or worse. There was a project I worked on with did feature tracking and at one point, I was asked to save the data for a small project to a DB so another product within our company (team of around 20 on each project) who was working on equivalent functionality in Java. I lazily saved the whole thing for each change which took under a second, but it took 20 seconds to load the same data in Java-land. No matter what feature you tried, it was always dog-slow.
Think of it this way. You've got a triple nested for loops going over a 3D array of data (very common in vision, etc). So the C/C++ programmer goes in and you can optimize the innermost loop with extreme efficiency -- maybe even to the register level -- but it's rarely needed. Much more common is to simply try and reduce your new/frees to take outside of the loop and if it's really a bear, calling something like CUDA can increase performance dramatically (I've seen over 100x) as there's direct hooks from C++. But in Java/Scala/interpreted language land, you just optimize to the same level.
90% of your time is usually spent in 5% of your code, so it's really the ability to optimize easily when you need to without resorting to convoluted tricks and hooks into other languages.

Comment Not just a GUI toolkit (Score 5, Insightful) 80 80

Qt is not just a GUI toolkit. Doxygen has been using it for years. I do high performance computing and copy-on-write data structures (as Scott Myer suggest a decade ago in "More Effective C++") means I don't have to worry about functions returning references to a std::vector because QVector's copy constructor is O(1) as Scott Myers recommended a decade ago. I have a sane cross-platform cross-DB SQL interface. My strings are Unicode (and copy-on-write).
Qt allows you to write high performance code but in a style closer to Perl (especially with 11. "Auto" is "my") while enabling a coder to use high performance C code without needing to write fancy interfaces and compile schemes Everything from threading (QtConcurrent is great!) to file access to JSON to regex to is well-documented and the compile errors are sane (see: boost) and the code is terse (also: boost).
If you're doing serious C++ development with a small team, Qt is the best way to get things done in my experience...and it's also trivial to make a GUI to represent a SQL query.

Comment We'll See (Score 4, Interesting) 355 355

While I have never work in C# myself, the ability stop code in a debugger, write some code, and then continue executing (compiling your code in real-time) seemed like a really awesome feature (as a C++ guy, we don't get to do this).

The Unity engine is also quite popular and an increasingly popular choice is C# for use with it.

Maybe Microsoft can make one useful invention every decade?;)

Comment Re:And then? (Score 2) 26 26

So about a year or so ago when I was working for a company that doesn't comment on requests, I had the process explained to me.

Essentially, it's illegal to say that you have received a request -- which is something you learn when you get a request. If you haven't had a request however, there is nothing illegal about saying it hasn't happened to you. He'd suggested saying something like "We haven't received any requests this month" to alert people.

After all the BS is said and done, there's a very high likelihood they have received a request based on inability to confirm or deny. And once you get one, there's always more where that came from.

Comment Re:C++ is hard (Score 1) 757 757

You're a lucky person.

While everywhere I've worked has code reviews, there's no "retroactive reviews" for code written in the 90's which is truly horrid and fragile. I think we're also both lucky to have someone on our teams who is a language expert at C++ rather than a Java guy who dabbles -- but I've seen shitty code get into a workplace that way too.

Though the most depressing thing for me is doing a blame on good and bad code to find the author of the well-written code left the company and the terrible coder is in management.

Comment C++ is hard (Score 4, Informative) 757 757

C++ was the first popular fast OO language. As such, there's a lot of confusing cruft left behind. Consider overloading the && operator or || operators. You should never do this*. But someone will come along and do it anyway. You can't get rid of the feature because of backwards compatibility and yet it's miserable. We can go down the list from polymorphic arrays to calling virtual functions during constructors. All things one should never do, but the language keeps them there for the sake of backwards compatibility.

Languages like Java fix some of these problems by explicitly not allowing operator overloading (which is heavy-handed) but enforces some readability.

As others have said, using good 3rd party libraries like Qt makes the language tolerable, but in the legacy applications I've supported, there's no shortage of programming faux pas made possible by the language (like assumptions about the order of static variable destructors -- which is compiler dependent). As a programmer, it can be fun and productive since simply using the better parts of the language can make programs easy to write and read. As a maintainer, it's a smorgasbord of bad programming practices which the language makes no attempt to prevent.

That said, Linus really likes the new version of Subsurface based on Qt. So there;)

* Scott Meyers More Effective C++ p.35

Comment Surprise: Most People Voted Otherwise (Score 1) 497 497

It may seem odd, but most people in last election voted for Democrats, who have climate change as part of their platform.

In 2012, the first congressional election after the last round of gerrymandering, Democratic House candidates won 50.59 percent of the vote — or 1.37 million more votes than Republican candidates — yet secured only 201 seats in Congress, compared to 234 seats for Republicans. The House of Representatives, the “people’s house,” no longer requires the most votes for power. source

So blaming "democracy" seems a little odd -- especially since we're a Republic.

Comment *Sigh* (Score 0) 224 224

Just once I'd like to see a discussion on /. where women's experiences aren't discounted.

Maybe women have experiences men don't have and that we can't understand? Maybe us men shouldn't poo poo statistics just because they haven't "seen" discriminatory actions in the same way I shouldn't don't say there's no "racial bias" in policing just because I haven't experienced it personally (and probably won't).

But maybe I'm hoping for too much. Has /. even had a female on staff ever?

Comment Re:News at 11.. (Score 1) 719 719

Crackers are white people who brag. As William Shakespeare wrote:
"What cracker is this same that deafs our ears with this abundance of superfluous breath?" [from King John]

In that sense, I suppose, given the demographics of the hacker community and its outsize ego, maybe "cracker" is appropriate?

You will lose an important tape file.

Working...