Currently showing 5 posts written by Dimitry
I couldn’t believe it! Have I finally figured out a way to stop the bedroom door from slamming closed?
I could potentially have one of the coolest and most expensive doorstops in the world!
Personally, even though it’s only $199, I simply cannot justify dumping my perfect 1st generation iPhone.
... is going to be a huge hit and a big upgrade. Until then, I’m perfectly happy.
John Gruber said it best:
Today’s message is pretty simple: Apple is going for iPhone market share in a big, big, way.
No front-facing camera. No video from the rear camera. Instead of building a better $400 iPhone, they worked on halving the price of last year’s phone.
‘nuff said
Here’s my quick view on the two strategies:

Old and busted: pages and technologies that work for older browsers
New hotness: think AJAX
Both strategies have the same end goal: provide support for the widest variety of user agents, but have opposite approaches of doing so.
This is a quick high level overview, so read below for more information and examples:
If you’re like me and use a lot of framework singletons, such as the popular YAHOO.util.Dom, there’s something you can do so speed things up.
Every time you use a global variable, the browser has to work its way up the scope chain until it reaches the global scope. By giving all those pesky global vars a local reference, you can significantly lower the time it takes to find that variable.
Remember, JavaScript code is executed on the end-user’s computer, so writing efficient code should always be the #1 priority. Here’s an example with using YUI core components which are accessed frequently:
(function() {
var lang = YAHOO.lang,
dom = YAHOO.util.Dom,
event = YAHOO.util.Event;
var newObject = function() {
// 'lang' is much faster to lookup than 'YAHOO.lang' and so on...
alert(lang.JSON.stringify({"key" : "value"}));
};
})();
By writing your code within a self-executing function, variables lang, dom, and event are only local to that function and everything inside of it. So, lookups to such frequent tools like YAHOO.util.Dom are much faster.
Similarly, lowering the times you access the DOM improves the performance as well, most of the times drastically.
So if you have something along the lines of this (but hopefully more profound):
for (var i=0; i<100; i++) {
document.getElementById('el').innerHTML = i;
}
Do this:
var el = document.getElementById('el');
for (var i=0; i<100; i++) {
el.innerHTML = i;
}
In other words, only do one DOM lookup per element and save the reference to a variable.
That’s it. Happy coding.
... at least according to the TIOBE index, which measures language popularity based on the number of web searches:
The ratings are calculated by counting hits of the most popular search engines. The search query that is used is +”<language> programming” The search query is executed for the regular Google, Google Blogs, MSN, Yahoo!, and YouTube web search for the last 12 months. The web site Alexa.com has been used to determine the most popular search engines.
In just a few short weeks, we will all have a new domain extension to be excited about: .me. On July 17th, 2008, .me domains will go on sale to be registered by the general public. They were available as early as May 1st for registered trademarks of Montenegro, the owner of this top-level domain.
Montenegro became independent from Serbia only 2 years ago on June 3rd, 2006. Its telephone country code is a boring +382, but its internet country code is most likely the next big thing in the domain name business.
I’m willing to bet that .me will be much more popular than .biz, .mobi or even .tv (if not all those combined). None of those really took off, but .me possibilities are much greater.
On January, 2008, GoDaddy was named one of operators of the .me domains (it currently operates .info and .org).
Imagine the possibilities. After all, .ME translates to a wide range of catchy words throughout the world – including the obvious English translations, such as “about me.” Others include “amar.me,” which means “love me” in Spanish, and “secondo.me,” which is Italian for “in my opinion.”
Currently, the domain is in “Landrush” period where you can submit domains that you’re interested in. If there are no other interested parties, you will be awarded the domain name. If there are, the domain enters a bidding war. Landrush ends June 26th, 2008 (register here).
As mentioned above, on July 17th, anyone will be able to register the domains on first come, first serve basis. They’re $49.99/year with 2 years minimum which reminds me of the good ol’ .com days.
Apple is registering apple.me, ipod.me, and itunes.me. (via Macworld)
Will you be grabbing one?
RSS Feed Really Simple Syndication for you!
This blog focuses primarily on technology, web development, and entrepreneurship. 50% of the time I'm right every time, so stick around and enjoy the show.