rc3.org

Strong opinions, weakly held

Month: March 2009 (page 3 of 4)

Links from March 12th

Educate, don’t advise

Last week I posted about the dangers of giving advice. I’ll say flat out that I’m not a fan of advice, even though people ask for it all the time. As an alternative, I would recommend education.

The other day a client who’s building an application in Rails sort of apologized for using Subversion for version control and said they were looking at migrating to Git. Other Rails developers had apparently asked why they weren’t using Git, and he seemed a bit abashed by it. I could have advised him to migrate to Git, or that he should stick with Subversion, but instead I explained how Git differs from Subversion, and what people like about it. Given a better understanding of how they differ, he was able to make his own decision. (He stuck with Subversion.) In the end, it was consideration of his own circumstances that led to what was probably a good decision. Some people working on the project use Windows, and aren’t interested in the headaches of using Git on that platform.

To be honest, I only realized that I prefer educating to giving advice recently, but I have been explaining why I’m against giving advice for a long time now. Advice is cheap and rarely productive, and nobody ought to be taking it without understanding the thought process of the person giving it. That’s particularly important because for all the value of an independent perspective, the other side is that advice givers often lack key pieces of information. The reasoning behind the advice is where the value is, because it enables you to see how the advice may apply to your specific circumstances.

I suspect the motives of people who give advice. Nearly all advice boils down to “be more like me,” and many advice givers are interested in the ego boost that comes from having people listen to the advice they’re giving. Hearing the words, “If I were you,” I generally want to flee.

The risks of journalism in Sri Lanka

The editor of Sri Lanka’s Sunday Leader newspaper was murdered on January 11. A few days before his murder, he wrote an editorial to be published upon his death:

No other profession calls on its practitioners to lay down their lives for their art save the armed forces and, in Sri Lanka, journalism. In the course of the past few years, the independent media have increasingly come under attack. Electronic and print-media institutions have been burnt, bombed, sealed and coerced. Countless journalists have been harassed, threatened and killed. It has been my honour to belong to all those categories and now especially the last.

Here is describing his newspaper’s mission:

Every newspaper has its angle, and we do not hide the fact that we have ours. Our commitment is to see Sri Lanka as a transparent, secular, liberal democracy. Think about those words, for they each has profound meaning. Transparent because government must be openly accountable to the people and never abuse their trust. Secular because in a multi-ethnic and multi-cultural society such as ours, secularism offers the only common ground by which we might all be united. Liberal because we recognise that all human beings are created different, and we need to accept others for what they are and not what we would like them to be. And democratic… well, if you need me to explain why that is important, you’d best stop buying this paper.

Today, The Big Picture has a series of photos from Sri Lanka’s once again escalating civil war, including one from the funeral of Lasantha Wickrematunga, the author of the linked editorial.

For background on Sri Lanka, see this 2003 New York Times article which describes how Tamil separatists in Sri Lanka perfected and popularized suicide bombing.

Also, Tony Bourdain’s travel show No Reservations featured Sri Lanka a couple of weeks ago. You can find some behind the scenes info at this blog, written by one of Tony’s hosts, Skiz.

Google’s new ads

Nelson Minar has a short post explaining Google’s new interest-based ads and the privacy controls available to users associated with them.

Here’s the crux:

I’m usually quick to criticize Google on privacy issues. But not this time. Because along with this juicy new ad product, they’re giving users unprecedented control and visibility into the ads they are shown. We can opt out of tracking entirely. Or we can set our ad preferences, viewing and altering Google’s profile of ourselves. And Google has a detailed and readable page describing how their ad products works with personal user data. All of this privacy protection looks real, a user-focussed product, not just some sham to satisify lawyers.

Reinventing business credit ratings

There was a presentation at ETech today on a topic that interests me — how to reinvent credit ratings given that the existing system failed catastrophically. The job of ratings firms like Moody’s and Standard & Poor’s is to rate the ability of businesses to repay their debts. Many firms that have collapsed retained AAA ratings right up to their moment of failure.

There have been some proposals that the federal government take over the traditional role of the ratings agencies, but I’ve been persuaded that’s not the right answer. Could an open data effort supplant the private ratings firms? It seems possible, given that the private agencies do not insure their predictions in any way. There was no financial penalty for the ratings agencies for completely missing the boat on AIG’s horribly bad bets on the real estate market.

I am very interested in seeing some real innovation in this business. It’s certainly overdue.

How simple features become complicated

This post is for all of my non-programmer readers who have to deal with programmers on a day to day basis. It’s a description of how things that may seem simple really aren’t. Maybe I’ll write another post later about how things that seem complicated can be very simple to fix.

I’m working on a Web page that is supposed to display some events from a Google calendar. When I started, it grabbed the JSON feed from the calendar and displayed the first two events in it. Generally speaking, these are the next two upcoming events on the calendar. The feed contains a lot more events, though — some from the past and a lot from the future.

Unfortunately displaying the first two events in the feed did not meet the exact requirement, which turned out to be: display the events from the first two upcoming dates on the calendar. If there are multiple events on one of those dates, show them all. If there are not two upcoming dates, show one or two dates from the most recent past (so that two dates are always displayed).

Outwardly, this seems simple. Reorder the calendar in ascending order and pick the right slice of events to show.

The old code just grabbed the first two events in the list and printed them. The new code had to do the following:

  1. Extract the dates from the feed and convert them into JavaScript Date objects.
  2. Sort the events from oldest to most recent.
  3. Split the events into two lists — events in the future and events in the past.
  4. Iterate over the future events, picking out the events from the next two dates, and adding them to a third “events to display” list.
  5. If there are not two dates with events in the future, sort the events from the past in the future in descending order then pick out enough dates to fill out the “events to display” list.
  6. Sort the “events to display list” in ascending order.
  7. Display the final list of events.

Making that list was easy, but figuring out all of the requirements and then coming up with the best way to implement the solution took plenty of time from the point when the designer said “sort the events in ascending rather than descending order” to the time it was deployed. And all this for one little module on a page that contains lots of other information.

This is why I generally forbid the use of the word “just” when people are making feature requests. When it comes to developers, the word I forbid is “should,” but that’s another story.

What would an economist do?

I really want to buy the new Neko Case album, released last week, but I have a suspicion that Amazon.com is going to make it the deal of the day sometime soon. What would an economist tell me? On one hand, it’s only $7.99, and it would probably be on sale for $1.99 (or $3.99, the daily deal price for most new releases). On the other hand, if I buy it for full price and they put it on sale a few days later, I’ll feel a tinge of regret. On one hand I want it now, on the other, I have the whole rest of my life to listen to it either way.

I’m pretty sure that any economist would tell me that every minute I’ve spent trying to time the market for this album has been wasted.

John Gruber reviews Safari 4

John Gruber today posted a lengthy review of Safari 4. If you’re keeping score at home, I:

  • Agree with his request to bring back the Safari 3 progress indicator.
  • I like the way the new tabbed interface looks, but I agree with nearly all of his complaints about the difficulties they present for users.
  • His complaints about the tab colors are something I’d never have noticed, but I agree should be rectified.
  • I love the new Top Sites feature, and I didn’t even know you could edit the list or that it checks for updates to those sites automatically.

All things considered, I’m pretty sure Apple should hire Gruber as QA lead for Safari. If nothing else, I hope the QA folks at Apple are reading his blog and filing bug reports.

How music gets sold (in 2009)

Today’s number one selling track in Amazon’s MP3 store is “Right Round” by Flo Rida.

Amazon.com MP3 Downloads_ Free music, bestselling songs from $.79, most albums $8.99 or lower. Compatible with MP3 players, including the iPodĀ®..png

Why is this obscure track today’s best seller? It was played over the opening credits of CSI: Miami last night. I know because I used Shazam for the iPhone to figure it out. There are a number of web sites that identify the songs played on TV shows as well. I think there’s a lesson in this for the music business.

Update: Rogers Cadenhead’s post on Life on Mars has some interesting music-related notes as well.

Links from March 1st

  • Dries Buytaert: Drupal sites. A big list of Drupal sites.
  • Hivelogic: Review: The NewerTech Voyager Q. Docking station that lets you use internal hard drives as external hard drives. Seems like a great solution for certain backup strategies.
  • Music Machinery: In search of the click track. Programmatically determining which drummers use click tracks and which don’t. Really, really interesting.
  • David Plotz: What I learned from reading the entire Biblee. I was obsessed with his Blogging the Bible series, and I’m glad to see it’s now a book.
  • TheMoneyIllusion: An open letter to Mr. Krugman. A really interesting alternative to the stimulus plan, suggesting novel monetary policy rather than fiscal policy. I have no idea whether this would work, but it’s an interesting idea.
Older posts Newer posts

© 2024 rc3.org

Theme by Anders NorenUp ↑