dougs

Remember Versailles...

Jul. 7th, 2008 | 02:39 pm
posted by: [info]dougs

Overheard recently at the G8 meeting:

"The heads of government are at the gate. They say that food is expensive."

Read more... )

Link | Leave a comment | Add to Memories | Tell a Friend

Hain Brought to Book

Jul. 7th, 2008 | 02:10 pm
posted by: [info]fifthnovember

The news that Peter Hain is working on a biography of Nelson Mandela disappoints Guido. Guido was hoping that Hain, who already has a criminal conviction for conspiracy, might work on a follow-up to his 1984 book, Political Trials in Britain (still available on Amazon.)

There should be an opportunity to update it with topical first hand reports.

That is if the CPS decides, for once, to prosecute a politician who breaks the law. Scotland Yard has handed over the file to the CPS. Just to re-cap, over a hundred thousand pounds of money was mysteriously laundered through a slush fund called the Progressive Policies Forum. Nobody had heard of this before and none of the donations were declared. Steve Morgan his campaign manager blames everyone else, Hain blames him. We all eagerly await their day in Court...

Link | Leave a comment | Add to Memories | Tell a Friend

Dork Tower for 07 Jul 2008

Jul. 7th, 2008 | 12:54 pm
posted by: [info]dorktowerfeed

Dork Tower by John Kovalic

Current Comic

Dork Tower
Please support John by buying his stuff at your favorite game or comic shop. Alternatively you can shop online at Warehouse 23.

DT syndication services provided by John 'FuzzFace' McMahon
fuzzface00@livejournal.com
http://fuzzface00.livejournal.com/


http://www.io.com/~fuzzface/dt/dt.xml
Last Build Date: Mon, 07 Jul 2008 07:00:00 UTC-0500

Link | Leave a comment {2} | Add to Memories | Tell a Friend

flyingsauce

This just in

Jul. 7th, 2008 | 01:24 pm
posted by: [info]flyingsauce

End of the world even more nigh. Still time for a drink and a bite to eat.

Are we are now all to be lectured on not wasting our food?

I can almost see the media running with this the way they have with other fronts in the War on the Innocent. Surely by now we've learned to spot an agenda-driven victimisation campaign at a hundred paces, designed both to make you feel guilty and hopefully sell a few more newspapers aswell. Previously we've had immigrants, asylum seekers, 4x4 drivers, drinkers, smokers, photographers, people with two mobile phones, people who live on credit, single mothers, anyone on benefits, people who get on a plane more than once a year, Muslims, meat-eaters, militant animal rights activists, anyone who's a burden on the NHS, or people who, by some arbitrary national consensus of opinion, end up with a fractionally bigger carbon footprint than the editor of the Daily Mail.

Here's a fact I worked out for myself because I know: every time a commercial jet lands anywhere on Earth, it contains enough wasted food to feed a small African village for a week. Do the math. 22 years ago I was shocked, now I just see it as inevitable.

Sorry for the rant, I'm still upset about Tom Disch.
Tags:

Link | Leave a comment {3} | Add to Memories | Tell a Friend

The Problem With Code Folding

Jul. 6th, 2008 | 11:59 pm
posted by: [info]codinghorror

When you join a team, it's important to bend your preferences a little to accommodate the generally accepted coding practices of that team. Not everyone has to agree on every miniscule detail of the code, of course, but it's a good idea to dicuss it with your team and decide on overall approaches and philosophy beforehand. It promotes team harmony, and more than that, it's just common courtesy. As they say, when in Rome, do as the Romans do.

I've always been wary of cowboy coders who rolled into an ongoing project on fresh horses and immediately started dictating terms. It's a very short trip indeed from there to Who Wrote This Crap, and the predictable, inevitable finger-pointing at the foolhardy programmers who came before you begins. Don't be that guy or gal. Work with your team, not against it.

Still, there are some coding preferences people may feel.. strongly.. about. If that's the case, try to clear the air and address those strong preferences up front, as early as possible. Don't let them simmer. For me, the use of #region is one of those things. I tried to make myself clear in this twitter message:

Twitter message from codinghorror about #regions

So what is #region? It's a named hint you place in C# or VB.NET code to set a code folding point. Any code placed inside that region is, by default, collapsed when you re-open it in the editor. Here's a random example from the Log4Net project:

C# region example, log4net.Util.NativeError

Immediately I have a problem: I can't see anything! I have to manually expand those sections to browse any of the code in this class. It is possible to configure the Visual Studio IDE to not fold any of the regions when files are opened, but this is the out of box behavior, so that's what most developers will see. And of course there are keyboard shortcuts to deal with the regions:

Ctrl+M, Ctrl+M Collapse or expand the block you're currently in.
Ctrl+M, Ctrl+O Collapse all blocks in the file
Ctrl+M, Ctrl+L Expand all blocks in the file
Ctrl+M, Ctrl+P Stop outlining mode. (Ctrl+M, Ctrl+O resumes)

Here's the really sick part: once you expand the above log4net code there's literally three pages worth of code there! After you strip out all the massive XMLDoc comments and the dozen or so #region directives, you could have had all the code at your fingertips with a minor flick of the mouse wheel, in a simple scrollable layout.

I daresay being able to see the damn code is more important than having it meticulously segmented into six pointless little named buckets, but apparently a lot of programmers can't get enough of stuffing their code into pointless little named buckets. It's as if they've forgotten what the scroll bar -- and incremental search -- is for.

The #region directive drives me bonkers. It's not evil, per se, but I feel it is criminally overused in practice and heavily prone to abuse. I strongly urge you to think about how you're using code folding, because as I see it, there are a lot of downsides:

  1. Folding directives are glorified comments. #region has zero meaning to the compiler; it's a hint to the editor to allow code folding. It doesn't do any namespacing or scoping. Why, exactly, are we writing code to accommodate the editor? It boggles my mind that we'd add significant lines of code to our project that do nothing but offer organizational hints to the editor. Even traditional comments are a better value for your keystroke, because they can be more expressive. And folding is certainly no substitute at all for bona-fide refactoring.

  2. Folding is used to sweep code under the rug. Got a bunch of boring boilerplate code that makes your eyes water? A slew of ugly, gnarly code that nobody in their right mind wants to look at? Hide it in a region and fold that sucker into oblivion! Problem solved, right? Hardly. Your project is now full of crappy code that you can't see. That's worse. Much worse! Code that hides from you is code that will rot in the most putrescent and painful way possible. Your code should be front and center at all times -- exposed to as many programmers' eyes, and as much healing light, as possible.

  3. Folding is used to mask excessive length. The presence of folded code can lull developers into a false sense of what clean code looks like. Under the cover of folding, you can end up writing long, horrible spaghetti code blocks. If the code needs the crutch of folding to look organized, it's bad code.

  4. Folding can hide deficiencies in your editor. The presence of so-called "standard" boilerplate regions like "Public Constructors" and "Public Properties" and "Events" is not a feature. It's a bug. The editor should automatically offer to fold up these common structural blocks for you! I'm continually amazed that programmers spend time doing this scutwork when they could be writing useful code. Or at least demanding a smarter code editor.

I urge developers to write code that doesn't need folding to be readable, clear, and concise. I'm sure there are sane uses for code folding out there somewhere, but I rarely see them.

[advertisement] Peer code review without meetings, paperwork, or stopwatches? No wonder Code Collaborator won the Jolt Award.

Link | Leave a comment | Add to Memories | Tell a Friend

It might be news

Jul. 7th, 2008 | 12:23 pm
posted by: [info]sideshow_avedon

Clark Hoyt: "TWO weeks ago, over the objections of his lawyer and the Central Intelligence Agency, The Times named the interrogator who used shrewd psychology, not rough stuff, to get Khalid Shaikh Mohammed, the mastermind of the 9/11 attacks, to talk. The interrogator and his family fear that the newspaper has endangered their lives, and many readers asked why The Times could not have withheld his name." Hoyt addresses the fears that the interrogator was endangered because Al Qaeda might be out to get him, and he may be right that those fears are a bit paranoid, but I was surprised to see no mention of the real danger to anyone who might undermine Bush's position that torture is a good thing, which won't come from Al Qaeda, but from the right wing at home.

It looks like the wingers are ready to go after Obama on drugs, now that they've found that passage from his in his own voice from the spoken-word version. Hugh Hewitt played it on his radio show, where he talks about having used drugs "enthusiastically", and there is speculation that we could be hearing it in anti-Obama ads. (There is also a passage where he is laudatory toward Rev. Wright and quotes from a sermon in which white folks' greed is identified as a problem. Oh, dear.) (via) No that it is likely to hurt him with libertarians, who are mostly okay with drugs, and increasingly seem to like him better than McCain - so much so that they actually seem hopeful that he will be another Bill Clinton. And Montana, of all places, seems to be turning blue.

Oh, great, now we have states wanting to help you wear your Christianity on your car. Time to demand an equivalent FSM design.

The British had a perfectly good way of counting votes, but then they decided to fix it: "there is insufficient evidence available to allow independent observers to state reliably whether the results declared in the May 2008 elections for the Mayor of London and the London Assembly are an accurate representation of voters' intentions.""

Link | Leave a comment | Add to Memories | Tell a Friend

sea_cucumber

Scary Doom!

Jul. 7th, 2008 | 01:07 pm
location: bournemouth university
mood: weird weird
music: random stuff
posted by: [info]sea_cucumber

Yesterday I got an email about a school reunion. Luckily it looks like a generic 'send to everyone that is on friends reunited from this school in this year' type thing and not someone actually emailing me. My reaction was to feel a bit sick. I think I will stick to getting on an aeroplane if I want to see anybody worthy from school :)

Actually, that's not quite fair, there are probably are a couple of people I have lost contact with who would be interesting to see. But I would have wanted to have done something more interesting so the rubbish people I would have to put up with to see the nice people would have been dazzled by my fabulousness!

Perhaps I should have tried to become an astronaut, after all :D

Link | Leave a comment | Add to Memories | Tell a Friend

Dinner, Strawberries and Wimbledon

Jul. 7th, 2008 | 11:54 am
posted by: [info]stsquad_real

I've just finished filling in a dead trees worth of documentation with relation to selling my house. The envelope was so large it didn't even fit in the post box!

The weekend has been a full an entertaining one, involving doing some entertaining as well as being entertained. It started on Friday with a visit to another one of our local pubs, The White Horse. We headed down after work to meat up with some work colleges as well as ex-work colleges I hadn't met before. It turned out Sarah, being an HR person and used to remembering names and faces, asked me if I had indeed gone to Sawston before informing me me she was in my year. Unfortunately my memory of my years there is more than clouded by intervening years but we exchanged a number of names that did ring bells.The pub was very nice too, and a landlord who knows his beers and gets a good selection of short-run guests in :-)

We headed into town on Saturday to do a little wardrobe re-stocking and picked up a new Le Creuset pan for the evening. We had both sets of parents over for an evening meal and bridge. Many comments on the cleanliness of the house were made and we felt very adult about our new home. It seems a good time was had by all which was nice.

Fliss was given some tickets to finals day at Wimbledon so Sunday was spent down in SW19. Unfortunately we didn't have centre court tickets but did catch the Boys Singles Final and a little doubles action before the traditional Wimbledon rain storm. We caught some of the main match on Henman Hill although it was very crowded. After the second rain delay we decided to head back to Cambridge and the warm comfort of the house. We caught snatches of the main game at the station and they were still playing when we got home so we caught to catch the end of a fantastic match before catching up with the finale of Who.

Link | Leave a comment {1} | Add to Memories | Tell a Friend

sphyg

(no subject)

Jul. 7th, 2008 | 12:50 pm
posted by: [info]sphyg

Article 2.0 Contest.
Tags: ,

Link | Leave a comment | Add to Memories | Tell a Friend

Let Them Eat Crusts

Jul. 7th, 2008 | 11:59 am
posted by: [info]fifthnovember

Fresh from saving the world by getting Marks and Sparks to charge for plastic bags, Gordon's latest encomium to "eat your crusts" strikes Guido as sub-Majoresque style cones-line floundering. That is the kind of thing Guido tells 3 year-old Ms Fawkes.

One of Guido's co-conspirators puts it very well
Zimbabwe in crisis. Iraq still a mess. Iran developing nuclear weapons. Roads system approaching gridlock. Filthy hospitals killing people. House prices collapse. Economy in meltdown. Treasury demoralised. Banks propped up by state money. Auditors say Government is fiddling national accounts.

What then does the PM choose to focus on? Why, a lot of it is all our fault. We are throwing away too much food that could be eaten.

Thank you Gordon. Your intellectual prowess is astounding. The scales have fallen from my eyes. Now I see it. Owing to the butterfly effect in chaos theory, that mouldy carrot in my kitchen has precipitated a global ecenomic crisis. That jar of pasta sauce just past its sell by date may be the key to our salvation - nay may even save the world.

Thanks Gordon, what would we do without you.
Quite.

Link | Leave a comment | Add to Memories | Tell a Friend

eggwhite

Today is recovery day...

Jul. 7th, 2008 | 11:39 am
posted by: [info]eggwhite

...so naturally I'm sitting here faffing around, working out what to do.

I had considered rearranging my media cupboard today (my TV, DVD player, etc... all reside in a cupboard) but I've hit a small snag. The snag is that I had to chack some cabling back there yesterday, and so ended up rearranging it then, leaving me nothing to do today. Still, I've got my record player back in action and I can now put sound from the X-Box, the Computer and the TV through the proper speakers rather than the crappy little ones.

I might go into staines around lunchtime and pop in to an early afternoon showing of Wanted. I've heard good things about it as a highly enjoyable mindless action flick, and I could possibly do with something like that. Is there anyone else in the "Not at work today" crowd who might be interested in going along?

I'm also toying with spending some time on my new website idea, or possibly looking at a redesign of the St. Jude's Players website (which I need to do at some point). But that might be a bit close to work at the moment, so I don't know.

Link | Leave a comment | Add to Memories | Tell a Friend

Marr Gets All Aggressive

Jul. 7th, 2008 | 10:22 am
posted by: [info]fifthnovember

The Indy this morning has an interview with Andrew Marr, this passage made Guido laugh:
"I can be exceedingly aggressive when I want to be," he says, claiming that encounters with Gordon Brown and Alistair Darling on his Sunday morning BBC1 programme, The Andrew Marr Show, "were as aggressive as any interview you will have seen for a long time".
Yes we all remember that aggression when a nervous Gordon Brown gave him an exclusive interview immediately post Gordon's attempted coup d' etat and was a crucial opportunity to get to the truth. Gordon's fingerprints were all over it, he was clearly lying about his knowledge of, and attitude to it. He had even met Tom Watson on the eve of the putsch. It was clear for all to see and Gordon was in difficulties. Nick Robinson, Paxman or Andrew Neil could have crucified Brown, Frost would have ambushed him silkily. Even Ant and Dec would probably have scored a goal. What did Marr do? This pathetic interview was the political equivalent of fellatio. Marr had an open goal yet Gordon left smiling and relieved.

It was hardly a fearsome interrogation that revealed Gordon would not be having an election., more a summons for an official communique delivered by Marr (see picture above). The eve of premiership biopic in Kirkcaldy was more soft-focus than hard questions was hardly aggressive. Marr may now regret being a patsy, but that is what he was, so spare us the false claims to aggression Andy. The reason he is Brown's preferred interlocutor is not because Brown is courageous...

N.B. Guido's favourite Rich and Mark's cartoon featuring ol' Jug Ears is here.

Link | Leave a comment | Add to Memories | Tell a Friend

surliminal

The etiquette of text

Jul. 7th, 2008 | 10:31 am
posted by: [info]surliminal

Glorious. Lynne TRuss and Will Self on txtspeak.

"Whether one should read texts in company is the trickiest issue. In America, now, where nearly everyone seems to own a Blackberry, there is a new facial expression I have observed which involves a fixed smile and panicky swivelled eyes, which means, "I am still listening to you, but I can see I have a message, but I am honestly still listening to you, I will read the message later, so tell me again, what did you say, I wish I could read my effing message."

Link | Leave a comment | Add to Memories | Tell a Friend

kingandy

(no subject)

Jul. 7th, 2008 | 09:49 am
posted by: [info]kingandy

Has anyone done/found a mashup of Mika's Love Today and the Teletubbies theme?

Incidentally, happy birthday to [info]pax_draconis and [info]wibblefish, who now that I think about it could well have been separated at birth.

Link | Leave a comment | Add to Memories | Tell a Friend

gustatory: Dictionary.com Word of the Day

Jul. 7th, 2008 | 07:59 am
posted by: [info]dictionary_wotd

gustatory: pertaining to the sense of taste.

Link | Leave a comment {1} | Add to Memories | Tell a Friend

justinar

Writer's Block: Hope

Jul. 7th, 2008 | 08:43 am
posted by: [info]justinar

What gives you hope for your future? How about hope for your world's future? Is hope hard to maintain?


View other answers

If hope keeps your fire burning when you're giving all your effort but you can see when to stop, then you've got hope nailed.  If you live in hope and use it to keep going when you should stop, or if you live in hope and therefore don't act, then it's got you nailed.

So, to answer your question, I try not to hope.  I do my best in the circumstances and keep a weather eye on conditions.  If things turn out well, I'm delighted.  If not - I try to turn my attention to something more useful.  


Link | Leave a comment {2} | Add to Memories | Tell a Friend

THOMAS M. DISCH

Jul. 6th, 2008 | 10:27 pm
posted by: [info]gibsonfeed

His review of The Difference Engine, in the New York Times, was perhaps the high point, for me, of the book's publication. He was a difficult critic to get anything past, but not in the least afraid of a difficult book. One learns to take reviews (particularly the positive ones) with a grain of salt, but the pleasure he took in our (as he put it) "immense, all-conquering parenthesis" delighted me deeply.

On Wings Of Song, as I've said elsewhere, and more than once, is one of the great neglected masterpieces of late 20th-century science fiction.

Link | Leave a comment | Add to Memories | Tell a Friend

Ba Dum Bum Psssh

Jul. 7th, 2008 | 02:29 am
posted by: [info]questionablerss

Today's comic goes out to my buddy Theo who looks a good ten or fifteen years younger than he actually is.

So I saw Wall-E this weekend and goddamn if it is not the best animated movie I have seen in a long, long time. I exhort you to go see it if you haven't already.

See you tomorrow.

Link | Leave a comment {12} | Add to Memories | Tell a Friend

replyhazy

phase 1 of their evil master plan

Jul. 7th, 2008 | 12:00 am
posted by: [info]replyhazy

The cat tries to take me out on the stairs.

I would toss off a little weekend update post about all the cool stuff we did this weekend -- the money we spent, the fun party we went to, the lunch my mom made me -- but it's all been knocked from my mind by falling down the stairs due to a cat.

Yes, it was Supper! Time! and Scout thought my walk down the stairs was to provide him with food. He put himself between my foot and the stair, and down I went. I caught at the banister to slow my descent and wrenched my shoulder. The back side of me feels as though I have been lovingly tapped with a baseball bat all over, as if I had a very cruel masseur.

I'm sure tomorrow is going to be just spectacular.

On the plus side, at least I didn't have a migraine today.

Link | Leave a comment {1} | Add to Memories | Tell a Friend

In Popular Culture

Jul. 7th, 2008 | 04:00 am
posted by: [info]xkcd_rss

Someday the 'in popular culture' section will have its own article with an 'in popular culture' section.  It will reference this title-text referencing it, and the blogosphere will implode.

Link | Leave a comment {121} | Add to Memories | Tell a Friend