Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×

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

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?

Comment: Re:Watson is a scientist (Score 1) 235 235

measurable intelligence between sub-Saharan Black Africans and Ashkenazi Jews

Can anyone name me a black sub-suharan psychologist? Now, let's try the same with Ashkenazi Jews. (Freud comes to mind immediately for me -- but he's not the only brilliant mind)

I find it simpler to explain the differences in the tests with the differences of the people who created them.

Comment: I don't blame WalMart Employees (Score 4, Insightful) 287 287

After all, when your employer pays you terribly, why do you care? Reject the idea, customer complains to your manager. Who is also, may not be the brightest star in the constellation, who may discipline/fire you.

Also? Average wage at WalMart: $8/hr (weekly: 8*8=64 * 5 days=$320). Which means, pulling this once and reselling the console is almost a week's pay. Taking $300 from WalMart, whose family owns more money than the bottom 42% of the US combined to feed your family doesn't seem like the most heartless crime in the world.

Any programming language is at its best before it is implemented and used.