Monday, 15 June 2015

Two Great Essays on Software and Programmers

For many years, the stand-out essay on programming and programmers has been Rands’ The Nerd Handbook. It’s one of those essays which makes you wonder when you met the writer and how he got into your head so quickly. If you’re a programmer or engineering type, and have doubts about the acceptability of your behaviour and the way you look at the world, then read this and know that You Are One of Many.

Last week I read another essay that made me think “this guy has been there, understands what he's looking at, and has nailed it”. Paul Ford’s What Is Code? is the best essay I’ve read about software, programming, managing software projects, and the personalities and motives involved. Uniquely, Ford manages to explain software developers' concerns in managerial terms and managerial concerns in terms I hope software developers will understand. It’s a must-read.

The whole thing is quotable, but this one hit me especially...
What no one in engineering can understand is that what they perceive as static, slow-moving, exhausting, the enemy of progress—the corporate world that surrounds them, the world in which they work—is not static. Slow-moving, yes, but so are battleships when they leave port. What the coders aren’t seeing...is that the staid enterprise world that they fear isn’t the consequence of dead-eyed apathy but rather détente. 
They can’t see how hard-fought that stability is. Where they see obstacles and intransigence, [managers] see a huge, complex, dynamic system through which flows a river of money and where people are deeply afraid to move anything that would dam that river.
You want to understand the culture of a large company, grok that second paragraph. The word afraid is exactly the right one. Management doesn’t really know why the river of money flows through their organisation, because they know that all the competing organisations are no better or worse. So it must be magic. And they are afraid that someone will do something to turn the magic off.

If you haven't read either, read both.

Thursday, 11 June 2015

Principles Not Personalities

Every now and then, someone points out that the AA co-founders were far from calm, balanced, morally sound people. Matt Forney just did so in an article on RoK. Then he made a claim about the high failure rate of AA. As opposed to the high success rates of all the medical treatments for alcoholism. Oh. Wait. There aren’t any. Because if there were, all those movies stars and rock stars would pop some pills instead of going to meetings. However, I’m not going to deny that a lot of newcomers start the program, and a lot of them drop out.

So. Personalities first. I don’t give a damn that Dr Bob was the worst doctor in his small town and a degenerate opium addict to boot. Nor do I care that Bill W took all sorts of highs, 13-Stepped and mooched on his wife. Partly because they are both dead, so I will never have to deal with them at dinner, but mostly because I don’t follow their example, I follow their program. As do all the other 12-Step people I listen to in meetings. Alcoholics learn to put principles before personalities, because the principles aren’t bad, but a lot of the personalities are pretty flawed. civilians still confuse the two. After all, if you insist that you will only adopt ideas that come from morally flawless people, you can keep your brain idea-free for your entire life. Judging ideas by their creators is what conformists do.

Sure there’s a high recidivism from AA. If I stop taking my Lanzoprosole, my acid reflux comes back within about forty-eight hours. Does that mean it’s useless? Acid reflux is what happens when a sphincter at the top of your stomach goes wibbly. There’s no cure or surgery for it. All I can do is take a palliative, and thank my lucky stars that it’s one that works, rather than a piece of chemical toxic junk with a name ending in “statin” or “formin”. Well, it’s the same with AA. There’s no cure for alcoholism: if there was, all those movie stars and rock stars would be paying for it. But no, they go to meetings just like the rest of us regular drunks. What it gives us is a palliative. Treatment centres can help start, but the recovering drunk has to prove it every day on the street. For. The. Rest. Of. His. Life.

There’s a phrase we know by heart:
“Rarely have we seen someone fail who has thoroughly followed our path. Those who do not recover are people who cannot or will not completely give themselves to this simple program, usually men and women who are constitutionally incapable of being honest with themselves. There are such unfortunates. They are not at fault; they seem to have been born that way. They are naturally incapable of grasping and developing a manner of living which demands rigorous honesty. Their chances are less than average. There are those, too, who suffer from grave emotional and mental disorders, but many of them do recover if they have the capacity to be honest."
A 12-Step program is tough to work, or rather, it’s tough to take the consequences. The hardest thing to accept is that sobriety comes before everything else. Job. House. Relationships. Fun. Fitness. Name it. This is not how normal people live. They juggle priorities, they compromise on their goals and principles if that's what's needed to advance something else they want to do. That includes getting drunk at and taking cabs home from a leaving do that over-ran, in the name of "networking". Alkies don't live that way. If something or someone clashes with what we need to do to stay sober, guess what? It gets or they get dumped. But then not having a drink today is the foundation of all the rest of the good stuff in my life: I lose it and all the rest goes. I turn back into a pathetic little jerk with the social skills of a resentful teenager.

AA is not a cure, and anyone who tells you it is? Don’t trust them when they tell you the time either. But then, don’t trust anyone who tells you there’s a cure for addiction, acid reflux, wilful stupidity, being a jerk, chronic lack of fitness or excess weight. There isn’t. There is only endless vigilance and practicing the programme.

And the next time someone tells you that something must be a bad idea because the person who invented it was a Bad Person, remind them that if ideas were only as good as their creators were moral, we’d all still be living in grass huts.

Monday, 8 June 2015

Circumcision: After All These Years, I'll Go There

TRIGGER WARNING: This subject can set some people off like a burning stick in a box of fireworks.

I read a couple of articles recently about male circumcision. One against it over at RoK, and one in favour from Milo Yiannopoulos at Brietbart. Milo’s article was dismissed by a chunk of his commentators as click-bait in the worst taste, and that’s what it is. The RoK article hits all the minor points, and the commentators prattle on about the Bible and cultural practices. Look around the Net and you will find everything from mad conspiracy theorists to sound medical research.

I'm cut, and I've never really thought about it, but this time I got interested. So I read around a little.

If you think that male circumcision is a harmless cultural practice and anyway it doesn’t matter because babies don’t remember, then you may want to watch this video. I can watch film of births and surgical operations. I’m not squeamish. I jumped the intro to about 5:00 in and stopped it only seconds afterwards. You may also want to read some of the comments. Some are horrified, and some are deranged: all are strongly expressed.

Welcome back. I don't know which procedure they used on me, but now you know what I went through. As do I.

Circumcision is an operation on the second-most sensitive part of a man's body (after the eyes), it’s done on baby boys without anaesthetics and it’s not a five-minute job. An adult suffering that much pain involuntarily would be traumatised for a long while.

That much involuntary-inflicted pain changes the child's base hormone levels and gives him new, often dysfunctional, reflexes. This changes the way the child thinks, feels and reacts, to other people, its own emotions and everyday events. Glands, hormones, nerves and synapses don’t know they are only three weeks old, nor that this is a cultural tradition and so nothing to be scared about. Some of those babies may find their hormones and reflexes go back to normal, and they start trusting again, but others may never get over it.

If you've read the comments on that video, you'll gather that pro-cutters come across as deranged, lacking empathy, or just superficial. Here's Yiannopoulos being superficial...
Most men can barely last twenty thrusts… but those with snipped Johnsons tend, in my experience, to have significantly better stamina than their raincoated colleagues. (The research backs me up on this one.) In what world is climaxing sooner a good thing? Getting the chop does indeed reduce sensitivity up top. In the process, it makes you better at sex, and reduces the chance of you passing on anything nasty.
In what world is climaxing sooner a good thing? A world in which you barely climax at all. I’m cut and I was Mr All-Night. Only one of my girlfriends made me feel as if I was going to have an orgasm at a time that suited us both. With the others, it was all a bit hit and miss. Sex became something that was more enjoyable in the anticipation than the afterglow. When that starts to happen, it’s not long before the anticipation wanes as well. After a while, the sexual act itself became secondary to the rest of the experience. I was chasing girls for sex, but only because I’m a straight single man and it’s a reflex. I’ve read that cut men achieve orgasm as much as uncut men (I suspect some faking good in the interviews), but the same anecdotes say that we don’t get the same range of pleasurable sensations, and we are more focussed on the orgasm than the process. Which sounds like my entire life, never mind the sex.

As for the supposed benefits for sexual performance, here’s some research (see the link for references):
Several studies report that male circumcision also adversely affects female sexuality. Warren & Bigelow (1994) report the foreskin avoids problems with vaginal dryness. Fleiss & Hodges (2002) explain that the lack of gliding action in the circumcised male partner causes the taut shaft skin to drag the vaginal lubrication out of the vagina. O’Hara & O’Hara (1999) surveyed women in the United States who had had sex with both circumcised and intact partners. They report the women preferred the partner to be intact by a ratio of 8.6 to one. Women reported that they were more likely to be orgasmic and even have multiple orgasms when the male partner is intact. Bensley & Boyle (2001) surveyed 35 women in Australia who had sexual experience with both circumcised and intact partners. Eleven, who had a mean age of 27.3 years, indicated a preference for a circumcised partner. Eleven, who had a mean age of 36.4 years indicated they would choose a genitally intact partner. They reported that circumcised males are significantly less likely to use condoms because of concern about reduced penile sensitivity. In addition, the females were significantly more likely to report vaginal dryness with a circumcised partner. The experience reported with a circumcised male partner is similar to the symptoms of “female arousal disorder.” Female arousal disorder may be a normal response to sex with a circumcised male partner. Frisch et al. (2011) report that male circumcision is associated with “orgasm difficulties, dyspareunia and a sense of incomplete sexual needs fulfilment".
The NHS stopped doing routine circumcision in 1950, and now regards it as a last-resort treatment for certain specific problems. I’m not Jewish, so I don’t know why I was cut. My father was intact. Back in those days doctors and hospitals differed and parents were more impressed by the Man In The White Coat. Has it affected the way I developed? Well, I've gone with YES for the quality of my sex life.

My state of mind? Hmmm. For around thirty years, I had low self-confidence, the feeling that the world was against me, that no-one could be trusted, I was turned-inwards, and had many of the symptoms of PTSD, though without the flashbacks. I had the occasional good patch, but in the same way the English weather is occasionally sunny. There was no event or period in my life which divided a happy before with a miserable after. I had always felt a mess. I could never remember a time when it was “all right”: it was always wrong. I had over thirty years of that. It started to fade as my alcoholism took off.

I’m sure there are cut men with sunny dispositions and happy lives, and I’m just as sure there are intact men who felt every bit as bad as I did: it’s not cause-and-effect on a species-wide scale. But then, some people die from gunshot wounds and some don't. That doesn't mean it's okay to shoot people, and then blame them for having the wrong reaction. Something happened and very early in my life. Unless there's a gene that makes young men feel the way I felt, I'll go with this.

I've kept this personal. Making it about gender, culture, politics or religion brings out far too many crazies and moral bankrupts. This isn't for them. It's for someone else out there without a foreskin, who wonders what the hell happened to him that made him so distrustful of adults and authority.

Thursday, 4 June 2015

Is String Theory Bad Science and Misleading Hype?

String Theory has been around for 30 years, since the first superstring revolution which made it a contender theory for high-energy physics. It has yet to produce one testable prediction, and no-one is even talking about a decisive experiment that would confirm String Theory while refuting, say, Loop Quantum Gravity. They haven’t even derived the existing Standard Model from String Theory yet, and to understand how bad that is, deriving Newtonian Gravity from General Relativity is now left to the reader as an elementary exercise. It’s really, really serious that literally thousands of super-bright physicists, including the man said to be as smart as Einstein, haven’t shown how to get the current theory of elementary particles from String Theory. But a lot of families get fed off the back of String Theory professorships, and a lot of money gets made by publishers and authors from popularisations and textbooks - even I have both volumes of Polchinski.

I’m fairly confident that String Theory will take the same place in the history of science as epicycles do now. Or maybe phlogiston. (There’s a difference: epicycles can be seen as using a partial Fourier analysis of the planet’s observed orbit – it’s acceptable curve-fitting and inacceptable physics; phlogiston was acceptable but wrong physics.) For the moment, it’s creating enough problems for some people to want to re-define science so that String Theory, with its lack of actual predictions, is still science. Well, they don’t need to. Let’s look at the idea of testability.

Suppose the theory only makes predictions at energy levels that needed a lot of expensive kit, and then Governments cancelled the programme and used the money to save the banks (again). That doesn’t make the theory untestable. Now suppose that there simply isn’t enough money in the world, or ever will be, to build the kit to test the theory. This doesn’t make the theory untestable-in-principle, simply untestable-in-practice. Now suppose it simply wasn’t practically possible to build a piece of kit that would be able to test the theory, cost aside. Same thing: untestable-in-principle, simply untestable-in-practice. The theory is still making empirical predictions. Now suppose that there’s actually no piece of kit that will test the theory, because the kit would use all the energy in the Universe and there would be no-one around to see the results. That’s untestable-in-principle. None of these apply to String Theory.

What applies to String Theory is that the theorists just haven’t come up with a prediction, let alone the budget-busting kit to test it. This could mean
  1. The theorists aren’t as smart as they say they are
  2. The theorists are as smart as they say they are, but it’s really hard to get a prediction out of all those equations
  3. Actually, there aren’t any predictions to be gotten out of the theory. It just doesn’t touch the real world.
It’s worth noting that so far in the history of science, all the Hall-of-Fame theories came with novel predictions, often in the paper that first introduced the theory. I’m stretching the point a bit with electromagnetism, as Maxwell had three shots at it over a couple of decades, but once he embraced the field theory and dumbed the mechanical models for his 1865 paper, that prediction of light as electromagnetic radiation is as carefully contrived a throw-away as you could find. Some of this was, of course, because the pace of life was slower back then, and people could afford to hold back on publication until they had a good prediction. Because a good novel prediction is great for credibility.

Testability comes from Karl Popper’s Logic of Scientific Discovery. His original objection to Marxism and psychoanalysis was that, no matter what happened, the theorists could always interpret it post-hoc as a success, but not in a way that would make new predictions (that last clause was added by Lakatos). String theory would be untestable in this sense if there was always an ad-hoc way of re-jigging it to explain the result post-hoc. That shows up in the practice of the theorists or the structure of the theory itself. Woit has a few posts where he describes the dodges and retractions of String Theorists in response to actual lack of anything from CERN. Because their ability to feed their children and travel to conferences in exotic places depends on String Theory, it’s pretty clear that nothing would actually make these physicists give up their livelihoods reject String Theory. Until they have somewhere else to go.

Peter Woit’s point is that the String Guys have had enough time and should quit. Lakatos made the point that it is never irrational to carry on working on a degenerating programme, but what is irrational is to deny its track record and continue to hype it as the “only game in town”. The theory may yet yield a prediction that can be tested in this world, but the current bunch of theorists have failed to get it to do so. If they are sensible, they should give it break and go do something else on the taxpayer’s dime. What they do in their spare time is entirely up to them.

In summary:

Is String Theory science? Yes.

Is String Theory a good scientific theory? NO. (Though it might be)

Are String Theorists who carry on hyping it behaving like “good scientists”? NO

Are String Theorists who take on doctoral students fulfilling their duty to advise well? Tougher: we’re dealing with consenting adults here. But if the advisor waves visions of glittering careers in front of their student, I’d say we have a case of deception.

Does String Theory deserve taxpayers’ and institutional support? NO. No more grants. But give them a severance package or a sabbatical to find some more dignified profession or fruitful field of study.

Should some physicists work on it in their spare time? YES. Should it be taught in schools and at undergraduate level as the dominant theory of fundamental particles? NO.

Should academic publishers be wary of selling books touting String Theory as the Only Game In Town For A Final Theory? YES. Academic publishers have a minimal duty to filter for cranks and hype.

Should commercial publishers be wary of selling books touting String Theory as the Only Game In Town For A Final Theory? NO. Commercial printers are not intellectual gatekeepers and do not have the resources to be. Let ‘em print what they think will sell.

Monday, 1 June 2015

May 2015 Review

You are reading the words of a man with braces on his upper teeth. Small, enamel-coloured bits of plastic stuck to the tooth to locate a piece of wire that is pulling my front teeth back and together. Later I will get braces on my lower teeth, which is what I and the orthodontist really want to do, as my lower back teeth look like a wall that’s falling in. I am not going to describe what it’s like having sharp bits of plastic and metal in my mouth. But it’s something that has to be done. Already the gaps between my front upper teeth have closed up so that I don’t get food stuck there. Now I get food stuck in the braces. I have to brush my teeth every time I eat or my mouth feels like there’s a three-course dinner stuck there.

And I had my first session of personal training. I’m going for increased flexibility and giving weights a rest. This means all sorts of odd exercises using the vipr and those weighted balls with grips. My actual flexibility is almost zero. This means I don’t wake up so ache-y from the previous evening’s sessions.

There was a power outage one night, which means my Roberts CD/Radio lost all its settings and I woke up at 06:25. By rushing a bit and not cooking breakfast, I made it to the 07:15 and into the office about ten minutes late. I felt much better than if I had woken up at 05:30. I’m now going to try 06:00 and a light breakfast as my new wake-up time.

I’ve been coding in Python, using IDLE. There are a couple of file-handling utilities I wanted, one of which is to copy imported photographs to the relevant month-year directory of the photo archive. I’m going to write about using and writing Python later. Home coding is relaxing, time-passing and I never feel like I’ve wasted time.

I visited my friend over in Utrecht over my birthday weekend. Hence the Zandvoort photographs. The Monday after I left, he and his partner went to Patmos. They were going to do that anyway.

I drove my mother down to a hotel in the middle of the New Forest (so called because it’s mostly moorland) one Sunday so she wouldn’t have to sit on replacement rail service buses for hours on end. On the way down I got confused by the junctions outside Portsmouth and we did a quick detour back to some junction, turned round and took another shot. On the way back, there were no complicated junctions at all. Whizz. Straight through.

Sis and I had supper in Polpo at Notting Hill. Pleasant and good food. Being wonderful, she brought me the catalogues from the Christie’s February Contemporary sales, which they get where she works. If you’re not checking her site (On The Fly on the blogroll) you’re missing some good photography.

Not a single movie. Lie to Me S3 on DVD.

I fell asleep on the train. A lot. It’s the pollen. I still managed to read a bit more of Music In The Castle of Heaven, all of Michael Harris’ Mathematics Without Apologies, Why Men Love Bitches by a (delusional) Sherry Argov, and not much more. If you don’t count a lot of stuff on Tkinter objects, of course. Also volume 3 of Fables and volume 1 of Sex Criminals.

I finished the month with a cold, so I spent the entire weekend coding, re-stocking the sites on my Feedly, looking over new music sites, and browsing lots of math stuff. Because I decided to start polishing the Riemann-Roch essay for completion.

Thursday, 28 May 2015

More Zandvoort

 

Like I said: I like beaches. And I didn't have two deserts: the pannacotta looked delicious and I'm sure you will love it, but it has ameretto in the sponge, so it's a no-no for me. Hence the apple pie. I'm surprised at how understanding cafes are when I ask them if it has alcohol and then say I can't have it. I should and usually do ask, but sometimes there are fringe cases, of which pannacotta is one.

These were touched up and levelled out using Pictures for the first time. Haven't quite got the workflow down pat, but it's getting there. I have cheated in two and removed a flagpole. And I tried the panorama function on my Lumix DMC-TZ 40 for the first time (I'm a Late Adopter).

Monday, 25 May 2015

Dumbing-Down GCSE Maths - Again?

The Guardian had another "tough maths question" on Friday, to accompany an article about how the GCSE exam boards were being asked to dumb-down make the exam accessible to pupils of all abilities. We’ll pass that one over, because the fact the request was leaked means that even the exam boards think it’s ridiculous.

So here’s the question:


And here’s the answer:

Angle TAP is a right angle, because PTN is an equilateral triangle (all sides equal) and it’s half-way along, so bisects the angle at P and must do so perpendicularly. OP can be calculated from Pythagorus (sqrt(90^2 – 40^2) = 80.62. AT is 20cm long and is the hypotenuse of a right triangle ATP, so AP = sqrt(40^2 – 20^2) = 30.64. We know OP and AP and tan(OAP) = OP/AP = 2.327 and angle OAP = arctan(2.327) = 1.165 radians = 66.75 degrees.

The question is two applications of Pythagorus’ theorem, one of SOHCAHTOA and one of the properties of equilateral triangles. The question points towards the solution by a) asking you to calculate angle TAP and then calculating AP. In the context of GCSE maths, you can only calculate AP if angle TAP is a right-angle. They don’t do the general version of Pythagorus. That’s a clue right there.

What makes it difficult is that the prompts in the question only take you half-way there. To get angle OAP, you need its sin, cos or tan, and you can’t read those off from the question. Because OA is not as long as ON. (Following the hint that TON is an isosceles triangle will take you up the garden path.) We know AP so we need OA or OP. OPT is a right triangle with two known lengths (PT and OT), so we calculate OP. This gives us the Opposite and the Adjacent of angle OAP, and that’s its tangent. Now find the arctan on your calculator.

It’s the need for sustained reasoning, for spotting the false starts, and for solving the problem of the missing bit of information, that makes this a difficult question. It’s not the maths that’s hard - this is Year 8 at most - but the ability to perform sustained reasoning and problem-solving.

Most people can’t do that, anymore than most people can run five-minute miles or deadlift 200+ lbs. So there’s two things here: the first is to sort out the young people who show some aptitude for it, so they can pointed to subjects where it is needed; the second is how to design a syllabus and examination that gives the rest of the world something useful. Even if you can’t deadlift 200lbs (I can’t) you can still be taught useful exercises. Even if you can’t conduct a chain of reasoning, you can still be taught to do basic numeracy, estimation, ratios and comparisons.

My memory is that, one year after doing O-level maths, and so half-way through an OND in engineering, I and everybody else on the course looked at an O-level paper and realised it was trivial compared to what we had learned since. How had we ever thought it was hard? That was when the O-level included calculus, and most of us knew about “imaginary numbers” and had done ever since learning the formula for solving a quadratic equation. Back then the maths teachers used to say they thought that including complex arithmetic in the O-level was only a couple of years away. Well, we’re regressed a lot since then.