Archive for the 'Web 2.0' Category

AJAX and .NET 2.0 platform

I’ve been without posting for a little time. Meanwhile I started (and finished) reading Daniel Woolston’s “Pro Ajax and the .net 2.0 platform” book.

In the end I’ve learned quite a lot about ASP .net 2.0, but most important, I was quite impressed with chapter 7 (well, not the chapter itself, but with the different set of libraries and frameworks for implementing AJAX in 2.0).

From all the different libraries, maybe, Michael Schwarz’s Ajax.NET is the most famous. But there are also Jason Diamond’s Anthem (I’ll be covering it on this post), Daniel Zeiss’s ComfortASP.NET, MagicAjax.NET and Microsoft’s Atlas (especially useful for those wanting to bring some of the Ajax’s magic to the former ASP websites (please note that I’m not calling them ASP applications). Continue reading ‘AJAX and .NET 2.0 platform’


Sparklines in Flex

My last project was to build a dashboard where the main goal was to prove that it was possible to build Decision Support System using sparklines as the main data visualization component.
So I went searching for sparkline implementations and I found it on several programming languages such as PHP, Ruby and even Here is what I consider a good implementation in PHP. Nonetheless, I had to build then using Flex 2 or Flash 9, so I went Flex 2 + Flex Charting API.
Just before getting in more details about the implementation there are a few issues that must be kept in mind when building Sparklines:
Continue reading ‘Sparklines in Flex’

Type Casting and ObjectUtil.copy(obj) in ActionScript 3.0

When programming in Object Oriented Languages, in this case ActionScript 3.0, having different copies of the same object is sometimes a common need.
For many, the most obvious approach would be to simply assign one object to another, like this:

myObj2 = myObj1;

But this approach would not copy the objects. Instead this approach would only copy the object references. In the end there will be only one object, which would be referenced from two places, meaning that changing myObj1 is the same as changing myObj2 and vice-versa.
By the way, in Flex everything is a reference!

The question is how do we clone an object in ActionScript 3.0?

Continue reading ‘Type Casting and ObjectUtil.copy(obj) in ActionScript 3.0’

Flex or Ajax? Or both?

[Edited on April 10, 2008]

Two weeks ago (counting from this post date), while talking to a colleague, I found myself trying to find out reasons to say that Flex easily outcomes Ajax. The truth is that it’s much easier for me to talk about Flex than Ajax, in fact, I’ve been programming on Flex 2 for the last 9 to 10 months.
Still, I claim my self has being technology agnostic… So I went searching about Ajax and how it is related to Flex. And the main conclusion is that both of them aim at something… the Web 2.0. How they do it it’s a different story.
Ajax its a set of technologies that allows the incremental update of website pages without having to refresh the whole page every time the user makes a request. If you’ve read my Web 2.0 post, this is how Ajax makes websites more responsive. Still, if users want rich GUI they will have to rely on JavaScript (which in fact can be very tedious!).
Flex, on the other hand, is a presentation tier and server which allows the development of Desktop-Like web applications. In fact, Flex developers claim that they don’t develop websites but yes web applications. And this is easily proved because websites are a sequence of pages (static or dynamic) while Flex applications only (this only is more like everything) reflect the values of each variable in every state… and that’s what Flex applications are.. a sequence of states!

Lets then compare Flex and Ajax… Continue reading ‘Flex or Ajax? Or both?’

Web 2.0

Common Client-Server web applications no longer fulfill user demands on distributed applications. In fact, with current networking infrastructures, the usage of Standard Client-Server applications does not only slow down users intentions – resulting in loss of context, it also forces users to follow a rigid workflow if they ever want to get things done.

As a result of new user needs relating web applications, a new concept emerged – The Web 2.0. Web 2.0 applications, also know as Rich Internet Applications (RIAs), are emerging. These applications make use of a variety of techniques, such as Web services, Asyncronous JavaScript and XML (Ajax), Flex, Really Simple [Web] Syndication (RSS), and others to break the rigid workflow created by standard Client-Server infrastructures.

Since its first days, web has been evolving. Web 2.0 is the third (and current) stage of that evolution process that started with Web 1.0.

Continue reading ‘Web 2.0’