Wednesday, June 28, 2006

Will you "Flex" or "Sparkle"?

So, Flex 2.0 is out! I've always been a big fan of Macromedia..ahem..Adobe. Would Flex really change the RIA world? And..why is everyone really going GA-GA over it?

As tradition goes, new products carry a lot of new features and spruce-ups - Eclipse based environment, new classes to play with, the look and feel factor, AS 3 and quite a few others. Ok, let me say that again. I did mention AS 3.0! All of us have been hanging out in the Labs to get the sneak peak and tried our hands at making something really kewl with AS 3.0. I dont know many developers (around here) who wanted to try Flex for Flex! We all talked about the new classes of AS 3.0! We all imagined what "Blaze" would be like and what we can do with it. True! that people did talk about Flex itself, but, they werent in the majority, as far as my eye could see around me. By the time Beta 2 came out, there were a lot of converts. Lots of people waited around for Flex and made sure they got good at it.

Now that Flash Professional 9 Preview has released, I wonder how many people will be downloading Flex for what it is?

One beast is out and we await the other one! Eventhough the release is quite far away. Many of us, in the community, have started discussions about "Sparkle" and Flex and where the world is going..besides..who will win the World Cup.

The early CTP (think it was Jan or Feb CTP..not sure!) of Sparkle was fantastic. I had a few performance issues, but, that didnt hamper my experience with it. Microsoft's beast did feel a lot more powerful..well..yuh..it has to be! You have the .NET engine behind it. For people like me, who dont use the .NET *.NET*, but, just hang around it, its awesome! I didnt have much time to hang around with it and try all its features..so I cant be the perfect judge of things. Anyhow, the May CTP is out and I've installed it on Vista and gave it a whirl.


The performance seems to have improved. Its a lot faster on my laptop now. Previously, I had to wait for quite a while after hitting F5 (Test project). Here are my first views:
1. Flex weighs about 140MB (approx); Expressions Interactive Designer weighs a mere 7MB (approx). The weight difference maybe because Flex carries the whole thing. To work EID, you will need to install the WinFX, which weighs 43MB.

2. Both use XML based markups to layout the interface. Its MXML for Flex and XAML for EID. Both are very similar.

3. To give it a whole lot more power - Use Flex with ColdFusion or .NET. So that's additional installation. EID has the power of the .NET Framework behind it. You've already installed WinFX (or .NET 3 as they call it!).

4. Getting around doing things is a bit more complicated in EID. They could have made it as easy as using VS.NET, but, its a lot different and seems like a mixture between VS.NET and..umm..something else.. Flex is a whole lot easier with its Eclipse based IDE.

5. Flex works on the Web. Now, thats a biggie. MS says that Future versions could be supporting the web and mobile. We'll have to wait and see. If MS does get it on the web..well..thats HUUUGEEE!

6. Working with Data : I just tried XML on EID and Flex. Its quite similar. Will only know better when I really use it and get to compare. Right now..I am not commenting on it right now.

7. Adding interactivity : Maybe I find it a bit wierd the way things are done on EID, since, I've been always with Flash. For a EID beginner, its a bit tough finding your way around creating buttons. Once you get the hang of it, its a whole lot easier..as is the case always. What I really loved and appreciated was that you can also create a DISABLED state for the button. Doing simpler things need to be kept a lot simpler on EID.

Its just the 7 of them for now. I need to really get down to comparitive studies of both to write out a better review. This is not a review, so, I'm coming back to the point now.

Flex will be a major release for Adobe till EID finally shows face. Now, that Flex 2 is out, MS can take advantage by really paying close attention to details and look at shortfalls and provide for them in EID.

As a developer and tech enthusiast, I am not going to lay down the gauntlet and say this is better than that. I love .NET and anything that provides the power of .NET would certainly make it to the top of my list. But, then again, I love Flash and dont really use Flex..so its here nor there right now! Confusing eh? Ok, I'll say it with a straight face - "When EID is out, I'll be using EID most certainly and I'll never give up Flash (atleast, I dont think I will for the moment). ITS THE LOVE OF MY LIFE!"



Monday, June 26, 2006

100% Reusability?

As developers, we often speak about "Reusability". We all want to make our code and components "reusable", to make life easier. Do we really have to make things "reusable"? In reality, how "reusable" are things? Well.. I am not an expert developer, but, I guess I learnt a lot from what I see around me..and.. almost 60% of what I see doesnt really fit into the reusability bracket. Ok, its time I mentioned that I am a Flash Developer. In the Flash world, we used to replicate behaviour to make things reusable back during the earlier versions. "Smart Movieclips" became an interesting concept and most people used it to a good extent. The capabilities of Flash has grown significantly, and, with MX 2004 came ActionScript 2.0.

AS 2.0 changed a lot of things - the way we thought and the way we did things. It brought in "Classes" and all those things that came with it! In a broader bracket - OOPS (Object Oriented Programming). AS 2.0 is not perfect OOPS, but, it is Object-oriented nevertheless. Anyhow, many people I know started to over use Classes and pushed it in whereever possible. "Frame Scripting", they said, wasnt the way to go, since, things have to be reusable and AS 2.0. This has been argued quite a few times and it is still misunderstood. The way a lot of people in the community use OOPS is foggy! Well.. to me, code isnt and shouldnt be 100% reusable. You need to have a good degree of flexibility in it. As human beings, the way we think about something changes every now and then. As a developer, we look at a piece of code after a week and feel that it could have been done in another, simpler and more efficient way. This is where "Flexibility" kicks in! I've seen code..which is resuable only as long as it keeps doing the same kind of things in the same way. Its more of a fireline..u cant cross it to do something a bit different. Its also about how easy it is to make it work. This is a reason I used to like the V1 components (shipped with MX) a lot more. The components were easy to use and easy to customize. It was as easy as editing a movieclip. V2 components do provide a whole lot of kewl features, but, I guess that the simpler things and things people want to do..have been made difficult.

The way I code has changed quite a lot from the time I started on my AS feeding bottle. My coding really depends on the functionality. If I have a 100 buttons that do the same thing, I'd link them to a class and make merry. If I feel that the buttons need to be dynamic in some ways, I use Properties, which can be defined. I also use Frame AS quite a lot. Parts that are solely meant for that SWF go into the frame. I am building a library of classes I reuse, so, I have it all in one place and accessible anytime. They are not always reusable as is..but..modification needed is minimal. Well, this wouldnt be the way you might look at it..lets say, as a web developer or an RIA developer. In my line of work, it isnt quite often that you can reuse a whole class, for example. Specification and functionality can differ quite a lot. It sometimes is easier to create from scratch than customize code. Common behaviours, custom events and functions that are common to all projects are being reused. We also reuse code internally within the product. But, here again, this code falls behind the fireline. You maynot be able to use it for other projects that vary in features and functionality
quite a lot.


So, code needs to be Reusable and Flexible. It doesnt mean that you need to use AS 2.0 to make things REUSABLE! Smart Clips wasnt AS 2.0!! It was Frame Script all the way! I am not trying to go back in my ways. Just trying to say.. use 'em both in the right way!

Tuesday, June 20, 2006

Vistaaaaaaa

I know I've left the Office 2K7 review at about 5%. There's so much left to say about it. I am planning on making it into episodes and concentrating on each component (word, Excel, Outlook..). I guess that would be taking a bit of time, now that I've got my hands on "Vista Beta 2".

I havent still completed my own download of it. Its about 30% done. One of my friends got it and passed it on. Well.. so I went ahead and installed on my laptop (Acer 3002NLC - AMD Sempron, 512MB RAM, 40GBHDD). I didnt want to disturb the XP partition, so, I installed it onto a different partition.

I've installed about 3 previous builds of Vista on the same laptop..and..I was kinda heartbroken after the last build - it was really slow and crashed quite a lot. Ofcourse, it was much stabler than the ones before. Anyhow, the beta 2 seemed a lot better with its cleaner installers. It took me about 90mins to install it.

Once it was done, my heart almost stopped working. It wasnt taking my display driver (SiS760GX) as plug n'play..so I had no display. I had to just switch off the whole thing and head to bed! I dont have a monitor with me to plug it in and check..so I had to wait till morning!

The morning came..and I took the laptop to the office. Plugged it into the IBM monitor I have at my desk.. whaddaya know? Vista booted up nicely! It all looked quite good..but..my Laptop's monitor was still..Lifeless!

Determined to make it work, I tried installing the drivers in various ways..nothing seemed to work. Finally, I got the idea to run the Driver installer in WinXP compatibilty mode. The installer ran once again..and it kinda looked as if it was unsure about installing the stuff. But, then, it did..very luckily and that still runs after 3-4 reboots. I'm smiling again!

What I thought would be a sticky issue once again..with Vista booting slowly and crashing would all disappear soon! I found it to be very stable and much much much faster. Not many big changes interface wise. There are a few things I have noticed so far..and..here's a list of them:
1. Nutty Defender popup : The previous builds had a nutty popup every time you ran..anything almost! If you have the UAC turned OFF, pop goes the weasel! You wont be asked questions anymore!

2. UAC : This was something that played a major role in breaking my heart in the previous build. I wasnt even able to run my Net Dialer Client. So, my activation ran out! When I learnt of that there was an option in the User Account Management Console to turn it off..I was happy to turn it off. Well, its useful for sure, but, I am not on a network and I am the only person who uses my Laptop!

3. Cleaner install : Well, the installer is the first thing you notice! It has improved quite a lot in all sorts of ways. More detailed info is available on whats happening - Copying files, expanding files..etc.. Thats nice!

4. Bootscreen : It still doesnt have a Vista logo..just the little progress bar. Looks silly!

5. Bootup time : The previous build took so much time, that, I could make a cup of tea. Beta 2 is much faster booting up..BIG STEP in the right direction!

6. The experience : Performance improvements are something you'd really notice from the earlier builds. Its much faster and smoother. Finally, we get to see atleast some of those transistions! I dont really have a "Vista compatible" PC, so, I guess I am lucky enough to be able to see atleast some effects/transistions etc..

7. Installing Updates : I dont know if this is new..but..like the windows update window. Its neat and has quite a lot of details like Update History etc. Very handy for someone like me who doesnt update too often.
Once the updates were installed, the box to restart the machine came up and I found another kewl addition. You can now set the time for the reminder..so..it doesnt popup every few seconds saying that the machine needs to be restarted! The maximum time is 4hrs.

Well, this is what I've got so far! I'll update the review as I discover stuff - good or bad!


Wednesday, June 14, 2006

Its all Dynamic!

The "Layout" days are finally over! The V6 of my site has now got a face. My ideas with the V5, which is, currently online and still half-baked, didnt spark well enough. I had some troubles with the structure and flexibiltiy it allowed...plus.. the Data Management System, which, I had created for it, wasnt good enough.

I've scrapped the good old structure that I had been following for quite sometime now, and, made a totally new one. The new structure works on "feeds". All the information - text and images come to it as XML feeds and fits into the layout, which, basically speaking, is just a skeleton. ASP.NET will still be there in the background to make management easier. Yeah, this is normal stuff that people do and very close to what I have been doing so far with my sites. What really takes the cake is the CMS that I've already started working on..again..created using Flash and ASP.NET. It would allow me to update the feeds and set them as "active" and "inactive". "Inactive" feeds will be archived automatically. Its nothing special really! The coding part is very simple and all possible without much effort or too much thinking.

I've scrapped plans of putting up my Blog into the site. The simpler and more ideal thing to do, would be, to aggregate this blog as an RSS feed. I havent really decided on the sections yet. It would be more in terms of user preferences. So, Regular Menu is also being scrapped, for a more suitable option.

One thing is for sure..there will be an "Image Gallery"!

Its all been planned, mouse to the mouse pad.. I just need to get on with the coding. :)

Thursday, June 01, 2006

"fanaa"-ed!

So we went for a movie yesterday! It wasnt Da Vinci Code..which comes to theatres here today, by the way. The movie wasn't really Star Wars type. It was a typical Bollywood flick..keeping to all its usual masala - songs, dances, dress changing, comedy etc.. On my scale, it would make 2/10 and I would suggest you go see it..only if..only if..u are totally bored and are very desperate to see a movie and live a theatre experience.

If you are wondering what "Fanaa" means, it means "destroyed in love". Its an Aamir Khan, Kajol starrer. Kajol's a blind Kashmiri girl and Aamir is a "terrorist on a mission". I am not going to play story teller here..maybe that would make u go see the movie!

First up, the thing I noticed - usually the heroine's friends look good...they still have silly names - Fatty (for Fathima) and Bobo! Strangely, they dont appear after the first part of the movie. The music is good and luckily the speakers in the theatre didnt sound flat and "trebled"! I liked the "Moula" track. Its seems to become a trend to have guitar riffs in songs these days..which is kewl! I also liked the patriotic dance track - not just the music, but also the picturization. The locations and shots are kewl too.

Well, if you are a "shayari" fan, it has some nice ones - some easy to understand and some others that will make you go buy that book you always wanted - "Understanding Shayarii for Dummies". There were some nice ones that I thought - I must remember this to quote in my impress my girlfriend ;-) But..I dont remember any! Would that go and make me see the movie? Well..uhh..NOPE!

Funny ones:
Movies have their funny moments.. not comedy scenes..like..for instance...
1. Once Kajol learns that Aamir is the wanted terrorist, she SOSes the military people via radio. They tell her - "we'll arrive tomorrow morning"..uhhh?
2. Ok, so the dude has killed a person and has come home. You know that he is a terrorist..what do u do, jack? what do u do? Umm..lets see..I drive to radio the military officials with my kid and wait there! Surely, my hubby is going to show up there..and..by the way..my hubby is the terrorist!
3. Heros always run their distance!
4. Right after an eye operation, doctors ask you to identify dead bodies?
5. Ahh yes and the best one - Terrorists use cellphones and radios to update information..like "I am having the trigger (aka detonator for the nuke!) and I will meet u at Blah place". They also call each other using real names..not code words.

Ok, I am not going to say these things anymore..I am hoping that'll get u to watch the flick! :)

Office "12" : At first glance

After freeing up quite a bit of space on my Windows partition, I was able to finally install Office 2007 aka "Office 12". It takes a whopping 1.3gig of space to install Word, Excel, Powerpoint, Access, Infopath, Outlook and all the other stuff that come with it.

It was love at first sight. The interface looks a lot kewler..no more drab formy looks! The interface is quite different from the previous versions, but, its very easy to get used to it. Basically, the old Menu style has been replaced with a more "tabbed layout".

Here are a few things I noticed at first glance:
1. Missing "File" menu : The first thing I noticed was the missing "File" menu, in its place was.. "Home". I also noticed the round button with the office logo on it, sitting at the top left corner of the screen...clicked it..and I smiled..I found the "File" menu! Strangely, Outlook still has the File menu in the main screen! When you compose a New message..it doesnt!

2. The "ALT" key effect : When you press and hold the ALT key on Windows apps, the Underline under the letters you need to press with ALT gets visible. Pressing the ALT key in Office 2K7 makes these tiny boxes containing the combination letters visible. It stays till u press ALT again.

3. Live Preview : So, now u can see what a font looks like before really using it.

4. Document File size : I didnt believe it when I read about it, so, I tried out a "hello world experiment". Typed "hello World" on an empty page in word and saved it using both 2K3 and 2K7 versions. 2K3 doc filesize - 19.5KB and 2K7 docx file size - 9.47KB.

5. Zoom : You also have a zoom slider at the right hand side bottom of the screen.

6. Help : The "Help" menu also has been popped out of the menubar. Its now a small blue round button located just below the "x" (close) button.

One funny thing I found.. the interfaces for Word, Excel, Powerpoint and Access are laid out in a similar way, but, Outlook is a "mixed bag" - it has a mix of both the old style (as in previous versions) and the new kewl blue style!

These are just somethings I found at my first glance. I will be adding more parts to the review, when I really play around with it.