RSS
 

Posts Tagged ‘iphone’

Windows Phone app development and the significance of DSLs.

27 Jul

Computers were supposed to do all the work for all humans, but as programmers we often neglect that very basic purpose of these machines. So we go on writing code doing every little bit ourselves, sure there are libraries to do some of that but using libraries does not really solve the problem. Good design for software is important, but we should not be designing and thinking how to write code when we want to download a file from network, when we need to parse an XML file, or any other easy but mundane task.

I have always thought about domain specific languages as a way to not only boost productivity but also free our thoughts from these small menial and mundane tasks. I am so excited about domain specific languages that I have thought numerous times to continue some research studies in this area. Sadly I havent been able to find any good place yet in Helsinki.

QML or QtQuick is an excellent DSL for creating nicely animated user interfaces, not just for desktop computers but also for mobile devices. The productivity boost is immense, I wrote complete applications in Qt Quick in weeks which even iPhone developers took months to write. Still more wild that the Qt Quick app ran fine on N900, N8 and other Nokia Qt devices. Since that time I have been hooked on Qt Quick. I havent found a better DSL for UI’s than Qt Quick. It is so simple, no crazy xml syntax like in XAML. XAML might be more powerful but the power is lost in its complexity and IMO bad idea of using XML.

The second experience of DSL came with LINQ when I wrote my first app for Windows Phone. I had previously done similar app on Android, iPhone and Qt/Symbian where I needed to parse huge XML documents, so I had to spend weeks just to write the code to handle the SAX events and create a state machine. This code was fragile and just too much work. Thank god for json.

Coming back to the point, the experience of parsing XML with LINQ was quite the opposite, it was … pleasant and enjoyable. I was amused by the speed at which I wrote the code and how simple it was. It all made sense.

I think Microsoft is on the right path. They already have two DSL’s incorporated in Windows Phone development, writing apps therefore for WP is quite easy and fun experience.

I hope in the future DSL’s will become even more common and we will have write apps in DSLs which are then glued together by a general purpose language.

 

The iPhone OS 4.0 Agreement stink.

10 Apr

So the internets are abuzz with the news that the new iphone os 4.0 developer agreement prohibits using any non apple endorsed programming language, framework for iphone/ipad development. This is hardly any thing surprising, given the way apple has been acting ever since jobs came back in control. When they were irrelevant they didn’t have the power to make any rules, now that they have a good market share, they are showing it. It almost feels like a kid who lost a game in his teens taking revenge in his 50′s.

Some people are comparing this with the Window Phone 7 Series and how its limited to .NET and C#, well that’s not exactly the same thing, Windows Phone 7 has no market share as of now, it will be coming to market in the late 2010. Microsoft sets this standard before they have any kind of market share, and besides any language ( php, vb, python ) can be used to create CLR code and that can be used for making apps on wp7 ( yet ).

But I believe apple has every right to do what it is doing. It might be good for the company, but sad for most of the developers. I myself was looking at monotouch as a tool for doing apps for iphone, but I went with objective c instead, it was not that difficult to learn and I think if you are a good c++ programmer objective c would be a piece of cake to learn, in two or three days. Monothouch is also just too expensive in my opinion.

However, like google has said earlier and I believe it myself that webapps are the future way of doing apps. Phonegap for example is an awesome project and it has a lot of potential, what we need now is standardization of web apps / javascripts apis. W3C for example has now standardized the Geolocation api, I think we need similar standard apis for example to access the phone book, sensors etc ….

 

The iPad SDK aka iPhone OS 3.2 SDK

28 Jan

The iphone 3.2 sdk does not support the iphones and ipod touches.

But there are new apis in the sdk, all of which are just for the ipad. There is an api to handle documents much like a desktop os. Some new kind of views etc. etc.

But this ipad is very iphnoeish down to the OS level. So i believe ra1ndrop would also work on it ????? it can be jailbroken and then we have multitasking on it. wohoo ? not really! official multitasking support would mean $$ opportunities.

They say its another gold rush, i am not sure. I would hope for one but do people have more 500$ to burn after they have already burned/are burning quite a huge sum on the iphone?

But any ways, any other mobile os (except windows mobile and blackberry) would be good on it. Symbian, Maemo, Android or WebOS.

 
No Comments

Posted in ipad

 

iPhone OS 4 SDK, the iPad Mania today.

27 Jan

So here we go again, another new product from Apple and the Internets will be getting crazy tonight. A humongous iphone will be great for web surfing on the sofa if nothing else.

But what I am excited about is the background processes in the new sdk (which they are yet to announce, hopefully). Finally we can have some useful applications. What I would want is a nokia step counter kind of software. I already have it on my Nokia E72 and it is so useful. I have my daily goal set to 10 km of walking.

So just waiting for the new sdk to be posted on to the web and weeks of endless night hacking ahead. Time to market is the key.

 
 

porting Facebook Connect for iphone to Qt !

22 Nov

For a past couple of weeks I have been working on porting the facebook connect for iphone to Qt. Since Qt is going to make it big in next few years thanks to both Symbian 4 and Maemo 6 using it as their UI library, it makes a lot of sense to have a facebook  connect library for Qt, but since Facebook cares mostly about the platforms popular in the USA, which are iPhone and may be Android ( though there is no facebook connect for Android ) I took it upon myself to port this to Qt and learn objective-c and sharpen my Qt skills along the way.

the repository is hosted at http://gitorious.org/qfacebookconnect

Currently the project is in copy / paste / compile mode. But once I have all the files compiling I will optimize it for Qt. Please have a look and join if you are interested !

 
4 Comments

Posted in iphone, Qt

 

Macintosh and Fanboys, a blind faith.

31 May

It seems that Apple and its fanboy have blind faith in themselves and every thing that Apple makes, they just dont want to admit that many of the products that they produce are idiotic and that there are many flaws in their environments, in their closed garden models.  

For starters the mac keyboards dont have a home or end key, which is frustrating and if you dont admit it then you are just lying. Who came up with the idea of Home and End keys on a keyboard ? was it someone form Microsoft or did it exist before ? having to press two keys to get the action of home key wont cut it.

I never really thought much about the iphone app store and the tight control that apple has over developing applications for iphone or ipod until I applied for the apple developer program and it took too long for them to respond, they didnt reject me but  i just got frustrated that I cant even develop an application for myself, for a device which i paid 230 f..ing euros for. So infact apple if they choose so can lock out a particular developer or company from writing applications for iphone, and with iphone market share growing so much i wonder if this is anti competetive behaviour, seeems like what Microsoft did with IE but atleast they didnt stop people from publishing applications for Windows. Apple is getting evil more and more, money makes people evil. Imagine what apple would be like if they had more then 2% of desktop computer market, that is very scary.

So this is a relgion now, apple, a blind faith. 

*this is just an experiment to see how many visitors does an apple bashing post attract*

if you were here because of that apple bashing, please relax. go outside and take a walk, go to movies with your girlfriend or what ever, relax. :)

I dont care much about apple, microsoft or linux. i use them all.