Categories
Uncategorized

Google Translate’s Strange Results

Here’s something pointed out by a guy on Reddit, who took his cue from an entry in the French blog Zorgloob: take a look what happens when you enter sarkozy sarkozy sarkozy (as in French president Nicolas Sarkozy) into Google Translate and select a French-to-English translation:

Screen capture of Google Translate’s French-to-English translation of “Sarkozy Sarkozy Sarkozy”: "Blair defends Bush"

Here’s some other input that yields interesting output:

Is it an Easter Egg by some politically-minded pranksters at Google? Or users abusing the “suggest a better translation” feature? Or a quirk of the way it translates, which one Reddit reader says is based on training by “feeding it documents which have been translated into many languages by the likes of the UN”?

Categories
Uncategorized

The REAL Reason GOTO is Considered Harmful

Man standing on a table in King Arthur’s court: “So then I typed GOTO 500″ — and here I am!
Comic taken from the book Thinking Forth.
Click the comic to see it in its original context.

(If you’re wondering why someone would GOTO a number, it’s likely that you’re too young to have worked with versions of BASIC that required line numbers. Consider yourself very, very, very lucky.)

Cross-posted to the Tucows Developer Blog

Categories
Uncategorized

The Language Adoption Debate and “Three Stooges Syndrome”

Tim “Ongoing” Bray’s Take

Tim Bray posted a blog entry on what drives adoption of a language in which he included some tables such as the only below:

Flawed
Founders
Polished
Successors
Procedural FORTRAN, COBOL, PL/1 C
Object-Oriented C++ Java
Higher-Level Perl, TCL Python, Ruby

This table of his should inspire a monkey knife fight on a number of blogs:

Flawed
Founders
Polished
Successors
Web-Centric WebObjects, ColdFusion, ASP.Net, Struts, etc.,
etc., etc., PHP
Rails

Here’s an interesting one. What will JavaScript’s successor be? My guess for the short-term (by that, I mean “the next half-dozen or so years”) is “the next version of JavaScript”.

Flawed
Founders
Polished
Successors
Mobile-Code JavaScript ?

The one about concurrent programming is a little more up in the air. Although there are other languages designed with concurrent programming in mind (either from the ground up or with concurrency retrofitted onto an existing language) and there have been for a while (I used Concurrent C in a course back at Crazy Go Nuts University in the early ’90s), Erlang is getting a lot of the attention these days since it has both a success story at Ericsson under its belt as well the clout of a Pragmatic Programmers book behind it. There is a feeling among some programmers (Bray included) that it isn’t going to be the language to turn concurrent programming from arcane art into mainstream practice:

Flawed
Founders
Polished
Successors
Concurrent Erlang ?

Shelley “BurningBird” Powers’ Take

Shelley Powers disagreed with Tim’s assessments in her posts Flaws are in the Eye of the Beholder:

I find it fascinating when a person marks as ‘flawed’ the languages that have, literally, defined not only the web but application development of all forms. Perhaps the metric shouldn’t be on syntax, form, or function, but on usability.

Here’s her own table on languages:

'Perfect', but barely used 'Flawed', but simple, approachable, powerful, popular
Higher-Level *Ruby (every time I see 'Ruby' I mentally add, Mama's precious little…)

*I’m giving Python a slide because Python has fairly widespread use today.

Perl
Client side code (The to-be-created scripting language that will take a nice, clean, easy to use language and morph it until it satisfies the purists, while breaking faith with the millions of users just trying to do a job) JavaScript
Object Oriented Java (bloated beyond recognition with senseless additions and overly complex infrastructures) C++ (which can kick Java's ass performance and resource wise)
Web-Centric Rails (you know that thing they used for the one application?) Cold Fusion, ASP and ASP.NET, PHP

Those of you who recall Bjarne “C++” Stroustrup’s line “There are just two kinds of languages: the ones everybody complains about and the ones nobody uses” or the essay Worse is Better (or the essay that led to it or Jamie Zawinski’s commentary on it) should be feeling deja vu now.

As for Shelley’s table, I’d probably have put “PHP” where “Perl” is right now.

My Own Take

I think that right now, the “scripting languages” are stuck in something akin to “Three Stooges Syndrome”. That’s the disease where Mr. Burns from The Simpsons, being so old and frail, has so many diseases trying to get at him at the same time that they’re all “stuck in the door”. The doctors illustrated the syndrome with a model, shown below:

“Three stooges syndrome” from “The Simpsons”: All the germs and viruses are stuck in the door because they tried to get in all at once.

And since Tim and Shelley have their tables, I thought I’d make one too:

Scripting Stooge What’s Driving It
Perl Legacy: it was the original “duct tape of the internet”.
PHP Widespread adoption, drives a lot of apps, easy to program, easy to deploy.
Python Very readable, one of the 4 languages approved for use at Google (the others being C++, Java and JavaScript, according to Steve Yegge).
Ruby Ruby on Rails, which is a very nice framework from the web app developer’s point of view. That and maybe the fact that DHH is rather photogenic (although PHPer-turned-Pythoner Leah Culver could give him some competition).


Cross-posted to the Tucows Developer Blog.

Categories
Uncategorized

The Official Segway of the Midlife Crisis

Ferrari-branded Segway

According to the Sybarites site, there’s a Ferrari-branded Segway:

Segway have teamed up with Ferrari to release a special limited edition version of their i2 Personal Transporter. Ferrari have used Segway’s as a transportation method around their Maranello factory for sometime now, the Segway PT i2 Ferrari Limited Edition comes in Ferrari’s signature color, red and features the Scuderia Ferrari logo at the base. It has a range of almost forty kilometers off one battery charge and can be easily stowed in the trunk of a car for longer journeys. It comes with a handlebar bag made of leather.

Categories
Uncategorized

Windows Startup Screens and Sounds, from 1.0 to Vista

Here’s a YouTube video that shows all the startup screens and sounds for Windows, from version 1.0 up to the present. If they ever make a geek version of Koyanisqatsi or Baraka, they should include something like this:


Can’t see the video? Click here.

Categories
Uncategorized

Google Tidbits

Google logoFor your lazy (or perhaps not-so-lazy…maybe you’re hitting that Erlang book — and good for you if you are!) Sunday reading, here are some Google stories for your enjoyment.

  • The Google Way: Give Engineers Room – A New York Times article in which Google software engineer Bharat Mediratta talks about the “Google 20%” — the portion of their working time in which they are encouraged to work on something company-related that interests them personally.

    For another Googler’s notes on the 20%, see Joe Beda’s oft-cited blog entry, Google 20% Time.

  • Google Execs Really Do Hate Evil: It’s a tiny part of a roundup of the last day of O’Reilly’s Web 2.0 Summit that took place in San Francisco this past week, but it’s interesting:

    During a panel of former Google employees, they confirmed to moderator and conference chair John Battelle that, yes, Larry Page and Sergey Brin do factor heavily into business and technology decisions whether they will have evil consequences.

  • Google. Who’s looking at you? – The Sunday Times has an editorial piece on Google…

    Google likes to think of itself as “crunchy” – wholesome and worthy – and, walking into the Googleplex, it looks, at first sight, a pretty crunchy kind of place. There’s free coffee and muesli in the No Name breakfast cafe. Everyone gets around the campus on free bicycles. In the car park, the canopies that protect the neat ranks of hybrid Toyota Priuses from the sun are made from solar panels that power each building in the 1.5-million-sq-ft complex. There are swimming pools, massage chairs and free medical checkups. A model of Sir Richard Branson’s SpaceShipTwo prototype commercial spacecraft hangs from the rafters in the lobby. This is rocket science, after all.

    But as it prepares to celebrate its 10th birthday, Google has developed serious engine trouble. A series of missteps have left it facing claims that it has gone from a benign project – creating the first free, open-all-hours global library – to the information society’s most determined Big Brother. It stands accused of plotting some sinister link between its computers and us: that it wants, somehow, to plug us into its giant mainframe – as imagined in The Matrix or Terminator.

  • Google Turns Out the Lights: Google turned their home page’s background black in support of the event Lights Out San Francisco, an event in which people in the city by the bay were encouraged to turn out their lights between 8 and 9 p.m. last night.

    It’s a good symbolic gesture, but there still seems to be some debate over whether a black Google screen uses less energy than a white one. I think the assertion was first made in the blog ecoIron, and Google has stated that black pages don’t necessarily use less energy than white ones. Can anyone point me to more info about the debate?

Categories
Uncategorized

Geekery Meets Pop Culture

A Different Kind of “Code Smell”

First, let’s look at a new ad for Axe body spray…

Axe body spray ad featuring fake code
Image courtesy of Miss Fipi Lele.

I think the suggestion in the ad goes double if you start pointing out what’s wrong with the code (“you == understand.this? get as an object name? Couldn’t they have hired a real programmer to write the ad copy?”).

359 is the new 555

Fictitious phone numbers on many TV shows and movies begin with the number 555, which I presume is to avoid the legal hassles that arise when people try to call those numbers (I remember that a number of people whose phone numbers were actually 867-5309 had their phones ringing day and night when Tommy Tutone’s song Jenny became a hit).

The people behind the TV show CSI: Miami probably wanted to avoid similar legal trouble in an episode where an IP address was shown onscreen. I don’t think I’d go to the trouble of portscanning some IP address I’d seen on a fiction TV show, but somewhere, out there, someone just might. Hence their invention of an IP address whose first “octet” is 359. It’s IPv4.5!

IP address displayed on a screen on the TV show “CSI”: 359.33.9.234

And finally, here’s a graphic that I whipped up for an article with links to recent articles on version control on the Tucows Developer Blog:

version_control_star_trek_style.jpg