Forgot your password?
typodupeerror

Comment: Information density is the controlling factor (Score 1) 224

by swm (#46694569) Attached to: Online Skim Reading Is Taking Over the Human Brain

My reading speed moves up and down to maintain a constant information density.
In a low-density text, like, ummm, Slashdot comments, I skim.
In a medium-density text, like a novel, I read every word.
In a high-density text, like a math book, I *study* every word.

And it's not something that I have to think about either: it happens automatically.
My subjective experience is that I'm managing a tradeoff between boredom (too slow) and incomprehension (too fast).

Comment: I'm Pappy (Score 1) 742

by swm (#46319961) Attached to: "Microsoft Killed My Pappy"

I'm Pappy. I'm not dead, but my kids have been hearing me bitch about Microsoft as long as they can remember. At this point, they probably think of it like a fixture of the landscape: the old man doesn't like Microsoft.

So my oldest finally graduates college, and gets his first real job. He's an engineer; industrial controls. The vendors only write drivers for Windows, so everyone uses Windows, and no one cares. He's provisioning servers in plants, and doing Windows installs, and running VMs, and trying to automate things. And it's all done in Windows Power Shell.

After a few months, I start getting calls from him. He's astonished: "This thing really sucks!" he tells me. It kind of a broken, crippled, over-engineered, badly implemented shell. It's always in his way. Everything is a needless problem. He talks about what a relief it is to go home on weekends, and work on his own systems, in Linux, running bash, and being able to work on the actual problem, instead of spending all his time fighting with the system and the tools. And every time he calls, it's the same refrain with more exclamation points: "This thing really sucks!!!"

So, yeah, he learned it from me, but then he learned it for himself.

Comment: Re:Read this before you blame the driver (Score 1) 664

by swm (#46311501) Attached to: Stack Overflow Could Explain Toyota Vehicles' Unintended Acceleration

local variables can cause stack overflows.

I've seen this assertion in two comments now.
How do local variables cause stack overflow?

If you aren't using recursion, then total stack space requirements can be computed from static code analysis.
If you are using recursion, then you can overflow the stack with return addresses alone.

BTW, I did read most of the expert testimony, and some of the expert report.
The suspect software is catastrophically bad.

Comment: Re:I was on that list too... (Score 1) 239

by swm (#46233865) Attached to: Government Secrecy Spurs $4 Million Lawsuit Over Simple 'No Fly' List Error

The late Senator Ted Kennedy was famously put on this list as well.

They wouldn't let him board a flight from Boston to Washington, so he was stuck in Boston for a few days until someone removed his name. Then he flew to Washington.

I was very disappointed by this. I was hoping that he would stay camped out at Logan airport, and pledge not to fly until the government created a procedure for people who aren't United States senators to get their names off of the list.

Comment: Problem? What problem? (Score 1) 308

by swm (#46140815) Attached to: Ask Slashdot: What Do You Do If You're Given a Broken Project?

If you are a contractor, and "there's plenty of jobs you can take", then you really don't have a problem here. Let's take it by cases.

1. You just don't want to deal with this app/code base/company/assignment
Then leave for one of those other jobs. That's part of what being a contractor is all about: being able to drop clients that you don't want to deal with.

You don't have to be rude or snarky about it. Give notice, complete whatever term or notice period is specified in your contract, and move on. If they ask why, tell them simply and honestly. Providing such information (if asked) is part of your service to them.

2. You are willing and able to do the work
Great! You've got a good gig, and from the sound of it, it could keep you in peanut butter and iPhones for a long time.

If the code base is a horrid mess--that's their problem, not yours.
If everything takes 2, or 5, or 10 times a long as it "should"--that's their problem, not yours.
If every time you fix a bug, the app breaks in two other places--that's their problem, not yours.

If they ask for schedules, give them your best estimates, based on what you know about the code base.
If they demand to know why everything takes so long, give them your best (diplomatic) explanation of the problems with the app. Speak only in terms of the code as it stands. The history of who wrote it and how it got that way is irrelevant.
If they decide you are incompetent and dismiss you, then you are back to case 1, above.
If they decide to cancel the whole project and terminate your contract, then you are back to case 1, above.

Part of what a company gets when they hire contractors is the ability to dump scut work on them (so that the "well respected" people don't have to do it), and the ability to dismiss them when circumstances change (w/o paying unemployment, etc.) If you're OK with that deal--the work, the scut, being low man on the totem pole, no job security--then give them the best 8 hours of your working day, cash their checks, and sleep soundly. The day you're not OK with it--the day you wake up thinking, "I *just* *can't* do this any more"--that's the day you give notice and move on.

Comment: It's like band practice (Score 1) 387

by swm (#46134605) Attached to: Should Everybody Learn To Code?

Along about 3rd grade, most schools offer musical instruction for a semester or a year.
The kids come home one day carrying a flute or a trumpet or a drum kit,
and they go to band practice once or twice a week and learn to make some noise\b\b\b\b\bmusic.

Some have no interest and no aptitude and drop it pretty quickly.
Some have some interest and aptitude and stay with it until they find other interests.
Some go on to become musicians.

I'd offer programming instruction on the same basis.
But I'd put it off until age 12 to 14 (when the capacity for abstract thought develops).

Comment: The flip side of passion (Score 3, Insightful) 533

by swm (#46122415) Attached to: The Moderately Enthusiastic Programmer

Most of the code that I see exhibits what I can only describe as a kind of aggressive indifference.
It's not just that they don't care.
They *totally* don't care.
And they're going to make sure you know it.
And suffer for it.

After a while, dealing with this stuff is just depressing.
Especially if you do care.

Comment: It's an optimization problem (Score 5, Insightful) 365

by swm (#45901371) Attached to: Ask Slashdot: How Many (Electronics) Gates Is That Software Algorithm?

You already have your algorithm running in electronic hardware, right?
Your current gate count is the sum of
  * the gate count of your CPU
  * the gate count of your RAM
  * the gate count of your program ROM

So that's an upper bound on the gate count.
If that number is too big for your manufacturing partner,
then you have an optimization problem.

Optimization is a hard problem...

Comment: I wish I could believe him... (Score 3, Insightful) 572

At this point, I think we'd be better off if the NSA's efficacy were reduced to zero (infinitely weaker: 1/x -> 0). Then we could rebuild it from the ground up with proper political, legal, and operational controls.

In fact, I suspect that the NSA retains most--if not all--of its operational capabilities.

The NSA doesn't face any significant legal restrictions. The law allows them to do most of what they want, and they just do the rest anyway, secure in the knowledge that the courts won't(?) can't(?) shut them down.

The NSA does have a political problem right now. It's not much of a political problem: most of the political establishment wants them to keep doing what they are doing. They wouldn't have any political problem at all if their P.R. weren't so inept. Hayden yammering about "defectors" and "treason" and "infinite weakness" is just more P.R.

Comment: And so it begins (Score 4, Informative) 339

by swm (#45747283) Attached to: Enormous Tunneling Machine 'Bertha' Blocked By 'The Object'

This tunnel was locally controversial, with opponents arguing that
- it was expensive
- it wouldn't help with Seattle's traffic problems, AND
- these monster boring machines have a track record of getting stuck underground, and then what are you going to do? Call Roto-Rooter?

Sounds like it's starting to come true...

It's later than you think, the joint Russian-American space mission has already begun.

Working...