Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?

Comment: Re: 1 thing (Score 3, Interesting) 437

Then you lose your offer when you're asked for a recent pay stub.

No you don't. Provide a fake payslip. Your current employer is legally bound from sharing your pay information and your future employer is legally bound from getting your pay information without your permission.

if anyone ever displays knowledge of your current pay then there is a criminal charge in their future regardless if it's the new place or the recruiter.

Everyone negotiates with full knowledge of the other parties price point or no one does. Turn about is fair play.

Comment: Re:How to read f*ucked up code (Score 2, Insightful) 335

by goose-incarnated (#49784665) Attached to: How Much C++ Should You Know For an Entry-Level C++ Job?

The biggest skill in C++ is how to read code that's got templates, generics, overloaded operators, and custom keywords.

"What do you mean they overloaded '+' to merge objects?"

"This doesn't look like C++, it looks like some foreign language."

"Oh, we reversed the meaning of + and - because the senior guy thought that the original semantics were incorrect. But only for some objects."

This. Outside of academia I've never encountered C++ written in a sane manner. Hell, even inside of academia things get a bit iffy. Things you can expect to see if you ever maintain C++ code:

* Objects passed by value which don't have a deep assignment copy constructor.

* File scope objects using other file-scope objects - "Because VS2010 ensures instantiation order."

* Dependencies with no real reason; this is especially bad on Qt projects. Why use std::vector when you can use a QVector?

* const char *use_this_later = MyQstringObject.toStdString().c_str(); // Bang! There goes another foot... maybe if we had GC...

* You used copy semantics? You *meant* move semantics (This should never had made it into the standard).

* Overloaded functions - "myfunc (foo);" does something different to "myfunc (bar);", because hilariously foo and bar are different types

* Ditto for operators - "foo + bar" does something quite different to "bar + foo".

* Other than "type var[size];" there is no primitive array type. Arrays are implemented in the library, not in the language like every other sane language.

* No GC. In other languages you can get away with it, but in C++ you stand no chance - someone, somewhere back in the mists of the past, would have created a critically dependent-upon class that *will* return a temporary object that gets deleted automatically while you still have references. QString, for example.

All of the above, in addition to all of the gotcha's in C as well. In this day and age there is very little reason to use C++. If you need objects, UI, etc use Java or C#. If you don't need objects use C; at least you can trivially expose every single piece of C code you've written to other languages via a library. This lets you reuse your code. The only C++ code you'll ever expose to other languages are C-compatible functions.

I'm looking, right now, at a mountain of code, some 20+ classes, many with file-scope instantiations, every single fucking object a Qt object. The original developer noticed that the code for Qt-derived classes won't compile without a copy constructor so he very cleverly made empty copy constructors for all the classes so that even a shallow copy won't be performed. As expected, he also stores instances in containers - which means every now and then the program would give incorrect results with seemingly no predictable occurrences. It doesn't crash, mind, just gives incorrect answers.

Good luck; you'll need it.

Stay away from C++ - stick to languages that implement context-free grammars only.

Comment: Re:You realize... (Score 1) 186

On the other hand, humanity going extinct would be exceedingly bad for humanity.

Are you suggesting nature gives a f about us?

He didn't. It's right there - "humanity going extinct would be exceedingly bad for humanity". He's not claiming that it will be bad for nature, or the earth, or ecology in general, he's making a specific claim that it will be bad for humanity. Of course he's correct - that's practically a tautology and may indicate lack of sleep and/or concentration on his part :-)

Comment: Re:Photo? (Score 1) 186

your link is still broken.

It is not broke. It is just not view-able if not logged in.

You do know there's a difference between public content and walled-off content? From this thread it appears that you consider walled-off content to be just as public as actual public content.

Comment: Re:NO MORE GIRL-CODERS FUCKING STORIES... (Score -1, Redundant) 446

coding... yes, its "masculine"!

Nobody told this silly female:

You point to an outlier and expect... what, exactly? Surely you're not making the ridiculous claim that all women, hell even most women, are budding Lovelace's or similar?

Comment: Re:no power (Score 1) 446

Of course, the basics that help make good STEM students - teaching kids how to learn instead of just rote memorization and regurgitation of facts, how to solve problems using the tools at hand, how to think critically - are very useful no matter what field someone ends up in, be it programming or performance art.

When I was in school, just after the last ice-age the teaching methods of the time relied heavily on rote memorization (times tables, for example). Thanks to that I can do extremely quick calculations in my head and get approximate answers (good enough, anyway). Hand me a slide rule and I'll do even more complex calculations.

There is nothing wrong with rote memorization as long as you understand it's just a tool to avoid time-wasting look-ups.

Comment: Re:females operate on emotion, not logic (Score 1) 446

If you can find it, I'd be interested in reading it :-) I'm not an SJW, so I can change my mind when presented with facts.

Hell I forgot about that study - quite recent too - It's in the CDC site somewhere (I trust you'll find it if you look :-) Basically as a woman your highest risk of domestic violence is *from* SO woman, not SO man. If you're a man your highest risk of domestic violence is *from* SO woman, not SO man.

In short, if you're a female you're safest living with a man; if you're a man you're safest living with a man too. If you're living with a woman your odds of getting seriously hurt and/or raped doubles (yes, literally doubles) over those that result from living with a man.

Comment: Re:Germany should pay war reparations for WWII (Score 1) 742

When you go bankrupt personally, you don't get to keep all your stuff anyway.

That's why I qualified it with "only negative consequence is lower credit rating" - Greece gets to keep all their existing stuff if they default.

Better to sell it and clear the debt, than to lose it and retain the debt because it sold for pennies on the dollar at auction.

They also do have the power to impose currency controls to prevent the outflow of capital.

Some other countries might trade with them, provided they can then sell the drachmas for another currency - but not too many people are going to want to hold drachmas.

Trade goes both ways - even if others don't want drachmas (they don't want to sell to Greece) they may still buy goods/services from Greece which is a net win for Greece.

Comment: Re:Germany should pay war reparations for WWII (Score 1) 742

You really should look at what happened to Argentina when they defaulted in 2002. It's still causing problems today.

In all fairness, I said they'd get the *ability* to bring the spiral under control, I didn't say they'd actually exercise that ability :-) The way things are now they don't have the option of currency controls!. If they get the option there is still the possibility that they abuse it.

From Greece's PoV, it's better to have the ability to control and not need it rather than needing the ability to control and not having it!

The austerity measures proposed would leave them with indefinite debt that can never be repaid. If the option of staying in the EU means that they'll be debtors for the rest of time then they may as well take their chances and default on the debt instead - defaulting at least gives them a chance.

Think about it this way: Let's say you are in debt, and the only penalty for defaulting is lower credit rating. If your creditor asks you to sell your means of earning money (say, sell all your computing equipment, car and house) as part of "austerity measures" before they give you any more money, you are better off defaulting on the debt. Their austerity measures will handicap your ability to repay the debt anyway, so why not default?

This is the state that Greece finds itself in, and the EU knows full well that if a precedence is set regarding defaults then just about all the weaker/debtor economies in EU will consider defaulting as well. After all, countries leaving the EU can still trade with China, Middle East and the whole of Africa for essentials - maybe the Russians too. It won't be perfect, nor better, but it will be an option. Trading with the strong economies do not work so well when you don't control your own currency.

Comment: Re:Germany should pay war reparations for WWII (Score 1) 742

...Greece probably won't care if no one wants their drachmas; creditors (like Germany) will have to either take it or forfeit the debt.

Wow - is that ever simplistic.

As simplistic as you think it is, it's happened before and it will happen again.

That kind of thinking leads to foreign investment dropping to absolute zero, tariffs and sanctions from your biggest sources of tourism (which makes up something like 20% of the Greek economy) - that's a bright future for Greece you're advocating. If they play all their cards right, maybe in a hundred years or so they'll be back at the level of Portugal.

You appear to be under the impression that this doesn't happen often, of that if it does the results are as dire as you say. In actual fact it happens so often with few highly negative consequences that there is even discussion about how to stop countries simply inflating away their debt.

Yes, it is that common, and countries regularly do this with few highly negative results, mostly because they are already at the bottom and can only go up. Greece is in this position - bowing to the EU pressure for certain austerity policies might hurt far far worse than simply telling the creditors to fuck off and printing their own money.

Regardless of how simplistic you may think this is, the only chance they have might be to print their own money, albeit in a responsible manner. The austerity measures proposed seem to be punitive at best; such measures would definitely result in almost perpetual debt (Some other poster elsethread posted a very informative and insightful breakdown of *why* the austerity measures are worse for greece than simply printing their own money).

If a 6600 used paper tape instead of core memory, it would use up tape at about 30 miles/second. -- Grishman, Assembly Language Programming