"Chuck Norris"-ing code

Monday, August 11th, 2008

Perl-expert Brian Foy explains what “Chuck Norris”-ing code means:

Sometimes when merlyn or I consult on Perl projects, it turns out that the client expects a magic wand. Somehow, because we have our names on books or speak at conferences, when we load code into an editor, that alone should magically fix things while at the same time not changing any code or any part of the process. Randal has started calling this “chuck norris”-ing the code.

He suggests these additional Chuck Norris Facts:

  • The system works because Chuck Norris tells it to work
  • Chuck Norris doesn’t need a test suite. The test suite needs Chuck Norris.
  • CPUs run faster to get away from Chuck Norris
  • Chuck Norris normalizes all schema just by inserting random data
  • Chuck Norris can compile syntax errors
  • Packets travel faster than the speed of light for Chuck Norris, but he can still catch them
  • Chuck Norris has Internet 3
  • Check Norris can parse invalid XML
  • Chuck Norris can break Moore’s Law
  • Chuck Norris’s brain is his revision control, and it works better than git
  • Chuck Norris can fix everything without changing anything.

The lesson here goes well beyond software projects.

Birth, death and shopping

Monday, August 11th, 2008

The Economist looks at Birth, death and shopping, and the evolution of the modern shopping mall, which started with the Southdale shopping center in Minnesota:

Southdale’s creator arrived in America as a refugee from Nazi-occupied Vienna. Victor Gruen was a Jewish bohemian who began to design shops for fellow immigrants in New York after failing in cabaret theatre. His work was admired partly for its uncluttered, modernist look, which seemed revolutionary in 1930s America. But Gruen’s secret was the way he used arcades and eye-level display cases to lure customers into stores almost against their will. As a critic complained, his shops were like mousetraps. A few years later the same would be said of his shopping malls.

By the 1940s department stores were already moving to the suburbs. Some had begun to build adjacent strips of shops, which they filled with boutiques in an attempt to re-create urban shopping districts. In 1947 a shopping centre opened in Los Angeles featuring two department stores, a cluster of small shops and a large car park. It was, in effect, an outdoor shopping mall. Fine for balmy southern California, perhaps, but not for Minnesota’s harsh climate. Commissioned to build a shopping centre at Southdale in 1956, Gruen threw a roof over the structure and installed an air-conditioning system to keep the temperature at 75°F (24°C) — which a contemporary press release called “Eternal Spring”. The mall was born.

Gruen got an extraordinary number of things right first time. He built a sloping road around the perimeter of the mall, so that half of the shoppers entered on the ground floor and half on the first floor — something that became a standard feature of malls. Southdale’s balconies were low, so that shoppers could see the shops on the floor above or below them. The car park had animal signs to help shoppers remember the way back to their vehicles. It was as though Orville and Wilbur Wright had not just discovered powered flight but had built a plane with tray tables and a duty-free service.

Oddly, this most suburban American invention was supposed to evoke a European city centre. Hence Southdale’s density and its atrium, where shoppers were expected to sit and debate over cups of coffee, just as they do in the Piazza San Marco or the Place Dauphine. Gruen exiled cars, which he thought noisy and anti-social, to the outside of his mall. Most contemporary critics thought Gruen had succeeded in bringing urbanity to the suburbs. Southdale was “more like downtown than downtown itself”, claimed the Architectural Record. Another asserted, in a rare example of journalistic hyperbole that turned out to be absolutely right, that the indoor shopping mall was henceforth “part of the American way”.

In the US, two developments boosted their growth:

The first was a change in the tax code which allowed investors to write down a large proportion of a new building’s cost as a loss. That made malls much more profitable. The second was a widespread property-tax revolt that deprived local governments of their most reliable source of income. Desperate, they tried to lure businesses that they could milk for taxes. They were particularly keen on shopping malls.

Now, of course, we’ve moved on to outdoor malls — or lifestyle centers, in the jargon of real-estate developers.

Sarkozy Forces the French to Join the 1980s

Saturday, August 9th, 2008

In commenting on the French — Sarkozy Forces the French to Join the 1980s — Michael Lewis (Liar’s Poker and Moneyball) explains the British transformation of the 1980s:

A few years after Margaret Thatcher came to power and launched what at the time seemed a futile war to compel the English people to embrace business values, I found myself dazed and confused in a London corner shop.

Down one aisle and up the other, I paced but found no trace of what I’d come for: the world’s finest pseudo-cookies. The shelf that once held those delicious McVitie’s wafers coated with milk chocolate was now stocked with less desirable items.

At length, I went to the middle-aged shop owner and asked where she’d hidden my favorite treats — this gift from the gods to those of us who want to pretend our cookies are merely crackers.

“We used to stock those,” she said, sweetly, “but we kept running out, so we’ve stopped.”

Right then I thought: Thatcherism is doomed. The English will never embrace efficiency, or money-making, or the-customer-is-always-right mindset, or any of those uneasy values that underpin modern capitalism.

I was wrong, obviously. The English have not merely embraced commercial values but have become so thoroughly imbued with them that London has displaced New York as the world’s money hub. A nation of people once embarrassed to complain that their soup was cold is now among the first to demand to speak to the manager.
[...]
Of course, it’s possible to change a society and to drag it into the global economic monoculture. Mrs. Thatcher showed how: Break up collectives and make people feel a little bit more alone in the world. Cut a few holes in the social safety net. Raise the status of money-making, and lower the status of every other activity. Stop giving knighthoods to artists and start giving them to department-store moguls. Stop listening to intellectuals and start listening to entrepreneurs and financiers.

Hate Becomes Love.

Don’t mind that artists and intellectuals hate you — or even that, for a time, the entire society seems to hate you. Stick to the plan long enough and the people who are good at making money acquire huge sums and, along with them, power. In time, they become the culture’s dominant voice. And they love you for it.

Tito Ortiz signs with Affliction

Thursday, August 7th, 2008

I did not realize that there was a Celebrity Apprentice, let alone that Tito Ortiz was on it and became friends with Donald Trump — who own the UFC’s latest competitor, Affliction. Now it looks like Tito Ortiz has signed with Affliction, and the deal is a big one:

“I guarantee you that my contract will be like no other,” said Ortiz, stopping short of giving away the specifics of a deal that could include responsibilities outside of the ring. “It will be a ground-breaking record contract for sure, without a doubt. There’s so much money to be made right now in mixed martial arts and it’s all about the fighters trying to make that money. It’s going to be a long-term deal where I put my heart and soul into the company and help build them. That’s something I’m interested in doing. They’re going to bring me on, not just as a fighter but also doing some of the back work also.”

Ortiz, who became a free agent on Monday after an 11-year career with the Ultimate Fighting Championship, met with Donald Trump on Tuesday to finalize the deal and is expected to be at Wednesday’s press conference where his first opponent will be Renato “Babalu” Sobral.

Ortiz, by the way, retired from the UFC after losing to Lyoto Machida. (It was pretty one-sided until Tito almost pulled off an impressive triangle in the final round.)

Nearly Waterless Washing Machine to Debut in 2009

Tuesday, August 5th, 2008

Nearly Waterless Washing Machine to Debut in 2009:

A new washing machine that uses just a cup of water, a pinch of detergent, and about 1,000 small plastic chips to clean clothes may be available for consumers in the UK next year.
Researchers at Leeds University designed the machine, which will be marketed by a spin-off company called Xeros Ltd (which means “dry” in Greek). Company founder Stephen Burkinshaw, a professor of textile chemistry, explains that the machine will reduce both water and energy consumption.

Currently, washing machine use accounts for 13 percent of daily household water consumption in the UK, or about 21 liters (5.5 gallons) of water per day, according to the UK organization Waterwise. Besides saving water, the Xeros machine uses just 2% of the energy of a conventional washing machine. And since clothes come out nearly dry, they don´t require the use of a dryer.

“We have shown that it can remove all sorts of everyday stains, including coffee and lipstick, while using a tiny fraction of the water used by conventional washing machines,” Burkinshaw said.

When doing a load of wash, users throw their clothes in like a normal washing machine. Then a cartridge in the back of the machine adds plastic chips — about 45 pounds (20 kg) of them — to the load. Next, a cup of water containing the detergent is added. After the water dissolves the dirt, the chips absorb the water, without the need for a rinse or spin cycle. When finished, a grill at the bottom of the machine opens to collect the chips.

According to Xeros, the chips can last for about 100 loads of laundry, or about six months for an average family. The company has not yet provided details on what the chips are made of, or how easily and safely the chips can be disposed of or recycled.

Working with Leeds University´s commercialization partner IP Group, Xeros has secured an investment of almost 500,000 pounds ($984,400) for the project. The price of the Xeros washing machines for consumers is “not expected to be dramatically different from (conventional) washing machines,” according to the company.

Toyota Announces Segway Killer: The Winglet Personal Transporter

Monday, August 4th, 2008

Toyota has announced its new Segway killer, the Winglet “personal transporter” — which seems to assume that the Segway needs a competitor to kill it:

Only a year after taking control of Sony’s robotics business, Toyota has come up with a vertical, mechanized scooter (or personal transporter, in future-speak) intended to help people move about in public areas.

Called the Winglet because of its fleet nature, it is the first gadget to duplicate the celebrated, and often mocked, navigation system of Dean Kamen’s Segway Transporter: self-balancing through gyroscopic sensors detecting the gentle directional tilts of a rider.

However, this personal scooter is probably not up to par to the Segway in speed or ruggedness. The newest Segway model can go up to 12.5 miles per hour (versus the Winglet’s 3.7 MPH), and the slightness of the Winglet’s frame probably wouldn’t survive a Police chase.

We Know How Many Kindles Amazon Has Sold: 240,000

Monday, August 4th, 2008

Erick Schonfeld of TechCrunch says, We know how many Kindles Amazon has sold: 240,000:

Doing a little back of the envelope math, that brings total sales of the device so far to between $86 million and $96 million (the price of the device was reduced to $360 from $400 last May). Then add the amounts spent on digital books, newspapers, and blogs purchased to read on the device, and you get a business that has easily brought in above $100 million so far. (Each $25 worth of digital reading material purchased per Kindle, add $6 million in total revenues).
[...]
Scott Devitt, an analyst at Stifel, Nicolaus & Co., predicts that Amazon is on track to sell 500,000 to 750,000 more Kindles over the next four quarters (including this one). He estimates that Kindle owners will buy an additional $120 to $150 worth of books and other content for each device, bringing the total revenues over that time period to somewhere between $225 million and $355 million. Based on that, he values the Kindle as a $1 billion business for Amazon.

Everybody’s Second Choice

Sunday, August 3rd, 2008

Michael Schrage cites former Chrysler vice chairman Robert Lutz on prototyping to avoid being everybody’s second choice:

When we showed the early prototype for the new “big-rig-inspired” dodge Ram pickup to consumer focus groups in the early ’90s, the reaction was so polarized that the room practically vibrated with magnetism. A whopping 80 percent of the respondents disliked the bold new drop-fendered design. A lot even hated it! They wanted their pickups to keep on resembling the horizontal cornflake boxes they were used to, not to be striking or bold. According to traditional consumer research strategy, we should have thrown that design out on its ear, or at least toned it down to placate the hatemongers. But that would have been looking through the wrong end of the telescope, for the remaining 20 percent of the clinic participants were saying they were truly, madly, deeply in love with the design. And since the old Ram had only about 4 percent of the market at the time, we figured, What the hell! even if only half of those positive respondents actually buy, we’ll more than double our share! The result? Our share of the pickup market shot up to 20 percent on the radical new design.

STRIPS and Black Boxes

Friday, August 1st, 2008

Michael Schrage warns of the dangers of black boxes:

In 1991, Kidder hired Joseph Jett to arbitrage treasury bonds and STRIPS (separate trading of registered interest and principal of securities, i.e., bonds stripped of their coupon payments). Such arbitrage is theoretically a riskless transaction and would thus not need to be tracked by Kidder’s standard market and credit risk management systems. The firm relied on a computerized expert system that allowed traders to model and simulate their trades in accordance with software rules about valuing such transactions in the bond market. The software also automatically updated the firm’s inventory, position, and profit-and-loss (P&L) statement. In keeping with market conventions, the system valued the STRIPS lower than their associated bonds. This difference was reflected in the firm’s P&L statement, which was also the basis for assessing trader bonuses. By entering into forward transaction on the synthetic STRIPS, Jett was able to defer when the actual losses were recognized on the P&L statement by taking up still larger positions in STRIPS and then digitally reconstituting synthetic STRIPS already in the system.

In 1993 Jett enjoyed STRIPS profits in excess of $150 million; he received a $12-million bonus and the chairman’s “Man of the Year” award. By March 1994, when Jett’s positions included $47 billion worth of STRIPS and $42 billion worth of reconstituted STRIPS, Kidder management decided to figure out Jett’s secret. A month later, the firm announced that Jett had falsely inflated his profits in excess of $350 million. He was fired and sued for fraud.

You Know Gas Prices Are High When Texans Start Driving Golf Carts

Friday, August 1st, 2008

You Know Gas Prices Are High When Texans Start Driving Golf Carts:

Small battery-powered vehicles have been on the market for years but have mainly been used by workers driving around factories and university campuses.

The small cars are powered by batteries charged by plugging them into regular 110-volt house current. Though they do look like golf carts, they have heftier frames and more powerful engines. Now, with high gasoline prices driving booming sales, many are going to ordinary folks like the Peterses, who have fallen in love with gasoline-free transportation.

Orders at ZAP, a Santa Rosa, Calif., maker of small electric cars, have exploded to about 50 a day from just five six months ago. Shipments at Chrysler LLC’s Global Electric Motorcars, or GEM, which made the Peterses’ cars, have jumped 30% from last year’s second quarter, with some of its 150 dealerships around the country tripling their sales.
[...]
The Peterses’ cars get about 30 miles from a full charge, which at about 15 cents per kilowatt hour, amounts to a 60-cent fill-up, or two cents a mile. Compare that with 20 cents a mile for a car that goes 20 miles on one $4 gallon of gasoline. [...] Electric cars like the Peterses’ can cost from about $7,000 to more than $18,000, depending on the model and accessories, though they paid about $10,000 altogether for the two cars, which they bought used off the Internet.

I don’t think many people want to hop into a low-performing car that looks like it’ll collapse in a collision, but an all-electric Civic or Prius would make a fine second family car.

GraphJam

Thursday, July 31st, 2008

GraphJam calls itself “pop culture for people in cubicles.” I enjoyed Wired‘s sampler of their work:

Website traders get rich quick

Thursday, July 31st, 2008

Website traders get rich quick by following a well-established off-line model — buy, fix up, and flip:

Dave Hermansen did not own a bird or a cage when he bought bird-cage.com, an online store, for $US1800 three years ago. He simply saw a website that was “very, very poorly done”, and begged the owners to sell it to him. He then redesigned the site, added advertising and drove up traffic. Last December, he sold it for $US173,000.
[...]
While there is no data on how many people flip websites, the number of sites sold on eBay has doubled over the past three months, the company says. At SitePoints marketplace, a similar forum where users can auction off websites, sales have quadrupled in the past year, says site founder Matt Mickiewicz.

The changing economics of the web have made it easier to find and exploit niche communities on the internet. Building niche websites and small-scale online stores has become cheap and easy. Free software, advertising systems such as Google’s, and “drop shipping” services that allow website owners to handle products through a third-party supplier, have lowered the cost of doing business.

Starbucks has deployed a new type of employee

Wednesday, July 30th, 2008

Starbucks has deployed a new type of employee at its 58th-St. store in New York, and Joel Spolsky is displeased:

This employee wore a radio headset. Her main job was to go down the line of people waiting to order and ask them what they wanted in advance of their arriving at the cash register.

What’s the problem?

There [at the register], they would be asked to repeat their order before paying and finally joining the line of customers waiting for their drinks to appear.

I have to agree; that sounds truly annoying. Someone at Starbucks Gossip explained the “benefit” of this system:

I learned from the website that the woman I had seen in the headset taking orders was officially called an expediter — but the job title is something of a red herring, according to the collective wisdom of the Starbucks staff members chatting on the site.

Expediters are not really there to see to it that a customer’s order is filled more quickly, they believe. Rather, expediters exist solely to prevent people in line from giving up and wandering off, maybe to go to the Dunkin’ Donuts around the corner. Once a customer places an order, the logic goes, he or she feels an ethical obligation to wait for it to be filled, no matter how long the process takes. Expediters are there to lock in that order as soon as possible.

Zucchiniware

Tuesday, July 29th, 2008

It has been a while since I mentioned Michael Schrage’s Serious Play, but I thought I’d share the story of Zucchiniware:

One of the dullest low-level tasks in creating software at Microsoft is managing “the daily build,” which is, in practice, a daily prototype of the product in process. The person performing the daily build collects all the code from the programmers on the product team and puts it on a single computer to see if it all works together. For years, this task was performed by an entry-level person and regarded as mind-numbing grunt work. One manager changed that in a way that made the process more efficient and more effective. Instead of delegating the task to a grunt, the manager gave the daily-build responsibilities to the people writing the code. Each day the programmers would give their code to one “buildmeister,” who put it all together. If the code wasn’t compatible, the person whose software “broke the build” became buildmeister as punishment until someone else’s code broke the build. In the summer of 1996, the buildmeister was also given an enormous zucchini — “the zucchini of questionable freshness,” — sometimes with Groucho Marx glasses and a fake nose, to keep until the next buildmeister was named.

Delegating the task of buildmesiter to the team changed Microsoft’s daily prototyping process for the better. More developers got to see how their work fit together, or didn’t. No one wanted to be buildmeister, so an extra incentive to hand in quality code was created. What’s more, the unpleasant task of build management was equitably shared by everyone in the group. Accountability, responsibility, and quality were thus aligned.

The realignment had other important repercussions. The smartest and savviest high-level software developers hated being buildmeisters and wanted to spend as little time on the task as possible. But instead of weaseling out, they wrote tools to automate the task of buildmeister. The result? Microsoft developrs now manage the build with a fraction of the friction and in a fraction of the time they did in the mid-1990s.

Tall ships make a comeback as oil price hits exports

Monday, July 28th, 2008

Tall ships make a comeback as oil price hits exports:

A British schooner docked in Penzance yesterday carrying 30,000 bottles of wine on a voyage that enthusiasts believe will herald a return to wind power in merchant shipping.

The first commercial cargo of French wine to be transported by sail in the modern era is due in Dublin this week after a six-day journey, which is being touted as a green and ultimately cheap alternative to fuel propulsion.

The 108-year-old, wooden, triple-masted Kathleen & May has been chartered by the Compagnie de Transport Maritime à la Voile (CTMV), a shipping company established in France to specialise in merchant sailing. “This is beyond anybody’s dreams,” said Steve Clarke, the owner of the Kathleen & May, which was built in 1900 in Ferguson and Baird’s yard at Connah’s Quay near Chester.

“When I bought this boat in 1966 it was going to be cut up with chainsaws. Nobody ever imagined it would ever sail again.” He said that amid high fuel costs and concern over carbon emissions, commercial sailing ships could have a future. “I think they might have hit on something.”

Amusingly, the Kathleen & May site is still offering “an exceptionally rare opportunity to purchase an important part of Britain’s maritime heritage”:

Built in 1900, the Kathleen & May is the only wooden triple-masted sailing schooner still in existence. One of only 60 famous tall ships on the UK’s National Register of Historic Vessels, neighbours include the Cutty Sark and HMS Victory. Beautiful and graceful, this tall ship has been completely and sympathetically renovated to its original 1900 specification.