Here’s a sample of how your “it’s easy” and my “sure, probably half an hour” becomes “half a day”:
- You want me to make the Thing clickable?
- Is just the Thing clickable or the whole line?
- Just the Thing – introduces technicalities (below)
- Whole line – quirky on small screens in portrait
- When you move your mouse over – how does it change to indicate it is clickable?
- How shall we give it an affordance (make it look clickable)?
- The heading nearby is the same color as our standard link color. If we are to use our standard link color for the Thing, we must make all headings dark blue, which results in disbalance.
- Add an icon – we’ll introduce clutter, plus the icon is not always visible on smaller screens, let alone it’s harder to implement
- We can reduce icon clutter by increasing line height, but then Other Things no longer align and the Whole Thing looks disbalanced
- The Thing sometimes displays in gray. How do we make THAT Thing clickable?
- Oh, and we’ll need to test pretty much every variation on PC, iPhone and Android and then when finally happy-ish – double check on all Internet Explorers.
All this just to make one thing clickable, that wasn’t ever really meant to be clickable.
Ah, here’s another one:
- Let’s have a chat facility…
- Let’s show user’s online status…
- How do we know they are logged in?
- What if they have the chat open multiple tabs?
- What if they log out in one of these tabs?
- Oh, let’s just see when they last loaded the page?
- What if they leave a tab open for 30 minutes, but don’t do anything?
- What if they have us as their homepage, therefore they visit often, but usually don’t even look at the chat?
- What if they go to another tab and browse Facebook?
- What if they have two tabs and go to another tab and don’t browse Facebook?
- What if they leave the page open and go home?
- What if they leave the chat open and go to the toilet for 30 minutes and then spend 30 minutes in Excel?
Oh, so we should have a state where they are “online”, but “idle”? Congratulations, you just doubled the complexity.
Some changes are easier. Some are even trickier. I can’t recall the last time I said “sure, it’s trivial”, and it really was…
☑ Write a blog post this year.
Two days ago Jakob Nielsen published a new Alertbox column: Mobile Site vs. Full Site, which seems to have caused some uproar in the web community, openly mocking his ideas:
Jakob Nielsen’s April Fools Day piece on mobile is HILARIOUS. So boneheadedly wrong. But why April 10? (@karenmcgrane)
The Coding Dojo page for this kata also has a video of it performed in Ruby. There’s also a link to a video of it in Excel, but as much as it sounds good, it’s just building a VB macro…
You can find my code on GitHub. I have also prepared a walk through on how I arrived at my solution (txt is the new ppt!)
The previous kata sessions used Jasmine – and it works just fine – but I chose to do things with YUI Test. If you feel like it – I prepared a skeleton for the project. Note that it loads YUI from Yahoo’s CDN, so make sure you’re online (or update the harness.html).
I already vented out my frustration with examples that have flaws, so this one is more constructive and tries to actually explain and solve things. You’re welcome to skip all of that and just get the example code.
It may not be 100% correct, it may have it’s own flaws, and obviously it may soon become obsolete, as Opera 11 is still in alpha, but I did create a more reliable example of how to communicate between the user scripts and popup windows.
This article assumes you already grok the introductory information on Opera extension. In fact, knowledge of Chrome extension flows may also help.
Positive start: my new Dell XPS 8100 is now ready for work. To achieve that I had to overcome a couple of puzzlers. They were mostly related to my weird requirements, which I guess are not the common set up path…
I have recently moved my dedicated server to a new provider. I mostly did this for pricing reasons, but there’s also the benefit of network speed, as most of my visitors and now – the server itself – are in Europe. This move, coupled with a few optimizations, has opened my eyes towards some data – the impact of page load time on “pages per visit” metric. While the general theory behind the relationship of the two is clear to everyone, the actual numbers did shock me.
This week I had a joy of spending several hours trying to solve and intermitently happening bug. In short, some 2 times out of 3 the YUI selector utility failed to lookup elements in an XHR loaded HTML fragment. After digging quite deep into the YUI code, I found that it was actually the fault of the way ASP.NET MVC treats partial views.
- ASP.NET MVC allows use of ASCX as “partial views”
- It correctly assumes, that uniqueness of ClientID should be preserved
- It incorrectly does not prepend an alpha-character to automatically generated GUID based IDs
- User agents and selector libraries may correctly ignore such invalid IDs
- Solution: override
Pretty much two weeks ago I dropped my notes from FullFrontal 2009 onto developer’s forum at work. And one full colleague of mine enquired why did I say that “
There is no long story. My blog in Lithuanian will have a second birthday in 5 days. Here’s my present to myself.
- I write, you read and comment
Oh, and yes, you’re right – now that I have a blog, I will not update it frequently.