I have always hated Regular Expressions and avoided to use it in favor of writing longer code that is just 10x readable (and not much slower).
It’s Apple again, moves slowly but surely.
Apple, a company admired by many people around the world. I will not talk much about its success but I talk about something I noticed in the way it pushes new technology and features.
I noticed that Apple slowly pushes new features and it continues to enhance them step by step to surely result in a better implementation over other ordinary solutions, which ultimately lets Apple overbeat its competitors.
Sounds not clear, lets take some examples:
The first iPhone generation was release in June 2007, It was running iOS 1.x which did not support any kind of multitasking (almost). Only one app could be run at a time. This fact continued to exist till iOS 4.0 was released 3 years later (2010). For these 3 years the iPhone have been showing competency with other smart phones through its unique UI/UX, long lasting battery and other powerful features. During those years multitasking have been a weak point for the iPhone. Apply was not concerned with just pushing dozens of features, Apple was much concerned about the quality. It could have pushed multitasking since iOS 1.0 like other competitors (For ex: Android and even Symbian OS had years multitasking before iOS).
But Apple don’t want its device performance or battery to get affected. It wanted to keep its edge in what it is better in (which is user friendly UI and amazing hardware experience). The results is that iOS 4.0 had mutlitasking that is much usable to the user and the iPhone battery lasts for days comparable to Android devices which barely last for one day of similar usage. Apple have implemented multitasking with some limitation to allow only important features/apps to run in the background. And apps that have nothing to do are just put to sleep and waked up again (in the same state) when user needs them. That way the processor (and battery) is not drained.
It did not stop there, 3 years laters again, iOS 7 now (2013) have smart multitasking, the iOS learns when the user likes to use his/her apps and can update the app content before the user launch them. which give a much better user experience that other systems can’t offers currently.
ARC is another example of how Apple goes slowly but surely for handling memory.
Years ago, most iOS apps and Mac OS X was built using objective-c which used release-retain memory management pattern. This required that developer send retain message (call retain) to each object that’s being used and send a release message it when he is done with that object, so object gets freed from memory when no one is retaining it.
Of course this was an overhead for developers, specially for those who were coming from the Java world where garabage collection is a builtin feature that comes for free. But when we look at release-retain pattern, we find that it is much better than automated garbage collectors (gc).
In Java world you don’t know when the gc will start to clean the memory. Suddenly while you run a Java program you find it hanging for a few seconds and then you say, oh gc must be running now.
In release-retain memory management, objects are freed just when they are not needed not when the gc decides. So you get free memory much sooner than gc and the app does not hang everywhile.
The only problem with release-retain was the overhead required by the developer to maintain release/retain calls approperly.
This was finally solved in 2011 when Apple introduced Automatic Reference Counting (ARC) which handles sending release/retains messages automatically. Actually ARC is done on the compiler level so it does not affect runtime performance as the gc does.
Now the developer have the luxury of using gc (almost) and the app is much faster and better in memory than gc apps which translates into better UX, battery usages and better Apple…
Do you have other examples that makes Apple “Slowely but shorely”? add them as a comment below.
Have a mobile idea and wanna convert to a real app? We will be happy to give a free quotation.
Millions of people are waiting for the new iPhone 6 (or 5S) and many speculations have been there. Some are waiting for a bigger iPhone some are waiting for something else.
Personally I have a strong feeling that Apple will release 2 iPhones, the first will most properly be like the current iPhone 5 but with more colors to choose from (not just white and black) and this will fit seamlessly with the new colorful iOS 7.
I also guess that a mini version will be released in that same way and for the same reasons Apple released the iPad mini. I guess it will have the same resolution as the classic iPhone (320x480) and a cheaper price than iPhone.
Do you have your own guesses, add them as a comment below : )