Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×

Comment Re:Lies? (Score 1) 501

The idea is you have logging that tells you what happened. If necessary that will include a stack trace that indicates exactly where the error occurred.

Computers do not read logs, nor do they parse stack traces. If you're at the point you're reading a log or stack trace, then there's obviously a serious problem with your code. Subtle problems are likely to never appear.

Do you often find yourself looking at a catch block and needing to know what throws to it?

Alas. Yes.

If so, why?

Because structurally it encourages developers to hide issues rather than handle them at the time. Exceptions are rarely exceptional, they're thrown over common situations such as files not existing or servers not responding with data over a network.

Really we need to rethink what we use exceptions for - and, indeed, if we should have them at all.

Comment Re: Internet Rape (Score 1) 489

Whatever you think, Trump is either the cure or the symptom. He is not the disease, and he is not part of the problem.

What? Of course he is. He is not the whole disease, but he is part of the disease. Think of THE PROBLEM (greed) like HIV. It attacks the immune system and makes you susceptible to other illnesses (Clinton, Trump, etc.)

Trump is a hypocrite. What more do you really need to know?

Comment Re:Scotland just announced a post-Brexit independe (Score 1) 440

But Scotland isn't a new entrant. They are already members of the EU, albeit through association with Great Britain. If Scotland votes for independence the EU can just interpret that not as the UK leaving and Scotland applying as a new member, but England leaving while Scotland retains it's current membership.

As I understand article 50, legally it's too late for that. Even if Scotland got independence tomorrow there is no provision to abort the exit process and if an agreement is not reached the treaties expire automatically. They can get more time, but only by an unanimous vote by the council. Other than that "If a State which has withdrawn from the Union asks to rejoin, its request shall be subject to the procedure referred to in Article 49." where article 49 is the general application process. Which means Scotland would essentially have to qualify as a new country. I'm sure that if Scotland acts quick enough the EU could fast track the process so the beginning of their membership starts as the UK's end, but to formally follow the Lisbon treaty it'd probably have to be "new" which means they'd have to fulfill the current eligibility requirements. Besides the EU would probably want that, they hate the special deals some countries have.

Comment Re:Europe is the one that should be scared. (Score 1) 440

Not only have Europe's demographics been utterly destroyed, but their overall EU economy and that of the member states is in utter turmoil. Greece has been a disaster for about a decade now. Spain is only slightly better off than Greece. Italy is barely hanging on. There are numerous banks, including at least one in the economic powerhouse of Germany, that are on the brink.

Sorry, but this is pretty much made up. Unemployment peaked around end of 2012 and is for the EA-19 (eurozone) now within 1% of the normal levels in the early 2000s. The full EU-28 is actually doing even better. Yes, a lot of big spender economies had to change things when Germany refused to let inflation run rampant but it also meant the government stopped skimming value from the private sector through printing money. All the other PIIGGS except Greece have sweated it out and taken steps to cut down public debt.

And despite what you might hear about Greece, they're a fart in the whole EU economy. Germany alone could clear out their entire public debt by increasing their debt/GDP ratio from 67% to 77%, still very much within financially solid levels. They just don't want other countries running around with credit cards and sticking Germany with the bill. I too have a great many concerns about the future of Europe culturally and demographically, but as an economic bloc the EU is doing just fine.

Comment Re:Scotland just announced a post-Brexit independe (Score 2) 440

Scotland just voted to have a post-Brexit independence referendum. Without Scotland, there is no UK. Just the greater Welsh Hegemony.

Well it would get interesting as the EU doesn't let new entrants in on legacy deals. It's the euro, Schengen, full package if Scotland wants to rejoin. Which would mean they'd have to leave the pound and put real border control on the UK border.

Comment Re:Simulator...interface is garbage (Score 1) 321

While sims are mostly faithful to their airplane type in the air, on the ground and landing, it isn't the same.

Certainly. Nor at any other time, unless maybe if you've got a very good motion simulator. That's how it is for driving, why would it be fundamentally different for flying?

There are small differences between the sim and the real thing that throw off landings.

Things like tarmac condition? Wind eddies? Windshield smudges? Temperature's effects on tire performance? Presumably, sooner or later the sims will model all these things, as well, and then some. And then it still won't be the same :)

On the other hand, simulator experience seems sufficiently relevant to the current discussion. It's enough fun when the runway is flat and straight, if you ratchet up the inclement conditions. Now make it round and curved in two dimensions and watch the fun begin!

I haven't even flown a sim in ages. I have yoke and pedal controllers, maybe I'll finally desk up so that I can use them.

Comment Re:Women even better off in industry (Score 2) 501

Outside of Silicon Valley women are usually treated well and as equals

Meh, I've witnessed awful treatment of women in the industry and never worked anywhere near SV.

Remember that stat, that 25% of women in colleges have been sexually assaulted? How initially it seems unbelievable because, hey, you wouldn't, and I wouldn't, and most men you know wouldn't, so how can that be?

The reason it's likely true is that it doesn't a huge proportion of men to be assholes for a disproportionate number of women to be affected. If, say, 2-5% of men in college think it's OK to touch women inappropriately and non-consensually in environments in which they can get away with it, and you assume each of them gets away with it, and so assaults multiple women, then, wow, you're up to 25% of college women being sexually assaulted pretty quickly.

And the same is true in businesses. Leaving aside institutional and structural problems - which exist everywhere - it doesn't really take a lot of male employees to be assholes, showing a level of disrespect for women they'd never show to men, for women to be disproportionately affected.

One office I worked for had such a person. As in every male member of the programming team knew he hated women, and that the extremely qualified, hard working, smart woman working with him was being treated like shit solely because she was a woman, and neither young nor blonde enough to make him at least be chivalrous to her as compensation.

To my and my coworkers shame we never did anything about it. We didn't talk to him about it, we continued to treat him as a - distant, perhaps - friends. We didn't talk to management about it. "G is strong", we told ourselves, "She doesn't put up with his bullshit", and, well, yeah, but bullying is bullying, and working in that environment wears down the strongest of all of us.

It's getting a lot of press in SV right now because SV is the hub of the tech industry, and has sizable number of progressives involved in it. But the idea it's limited to SV is absurd, that'd be to assume either that base human behavior (because there'll always be sexism) somehow is under control elsewhere, or that management skills have developed to a remarkable level outside of SV.

Comment Re:Lies? (Score 2) 501

I honestly can't remember the last time I used an explicit GOTO. That said, exception handling in most programming languages seems to actually be worse and I've used that.

Some time ago, someone proposed a spoof programming language, whose name temporarily escapes me, that included just about every bad idea possible. This included a "COMEFROM" structure that replaced GOTO - instead of marking where you wanted the jump at the location of the jump, you instead marked at at the location you jumped to.

Guaranteed unreadable. Worse than GOTO. And, hey, guess what, that's pretty much what exception handling is in 99% of implementations. The only way around it is to put one statement, and one statement only, in your try { ... } block, and who does that?

Comment Re:Only viable if all planes land themselves (Score 1) 321

The runway is banked, and the angle of the bank is proportional to the radius. Anything moving along the runway, at any speed, should naturally stay on the runway. Slower objects will roll towards the inner, flatter area, and faster objects will zip around the high rim.

The word you want is not banked, it is curved. Unless you say it is progressively banked, but that's solely an unnecessarily loquacious means of stating the same precise thing. But that's just another undesirable added complexity. Now if you don't touch down at the correct lateral position for your airspeed, you're going to have to deal with the runway trying to either dump you off the bottom, or squirt you off the top.

Slashdot Top Deals

Your fault -- core dumped