Uplevel e-solutions

Webware and Rich Internet Applications

Archive for the ‘smalltalk’ Category

Adobe Air and Smalltalk integration example

Another good news for someone who really likes Adobe Flex/AIR and Smalltalk environments. Last time I wrote here about Glare project, and now there is an excellent example to build simple Adobe Air app with Smalltalk backend. I have only a one wish, if Glare will be available on other smalltalk platforms for example Squeak not only commercial VisualWorks, that’s gonna be something called “dreams come true”.

adobe air and smalltalk example

Here is an example to do something like on picture above.

  • Comments
  • Filed under: AS3, Flex, smalltalk
  • Smalltalk and Adobe Flex

    Some time ago i have written about seaside and squeak on my polish blog - here. reason for that was because people do not always realized that smalltalk didn’t die at the same time as dinosaurs. Anyway, i’m lucky and working not only with one technology so was very happy to find something called Glare. What it is ? This is simple speaking a project that integrate smalltalk (visualworks in that case) and adobe flex. Sounds brilliant at the first look, but when i thought about it, was really confused. Why ? Smalltalk for example in Squeak or VisualWorks implementation is for development the same thing like ipod for music listening. It’s just incredible well thought. Everything is in one place, and we have IDE which is really truly intregrated. This IDE is not like NetBeans for Rails for example -  there are not a big difference to develop with simple editor or complicated IDE. But here IDE is one of the biggest advantage of using Suqeak for example. So now, when you think about it, we have two different style of thinking about web development:

    1. Adobe Flex & AS3 - brilliant RIA framework with AS3, which is not the best language ever and comparing to smalltalk really complicated (+ use with puremvc, caingorm etc.)
    2. Smalltalk (VisualWorks & Squeak) - brilliant language with DSL, Metaprogramming and IDE which gives us improvement kick.
    Old-Simpl—Beautiful and New-Complicated-Enterprise, it is good connection or not ? Not so simple to asnwer, but i’m not a big enthusiast of connecting milion technologies in one place, unfortunatelly often it’s a must. I’m also using Ruby on Rails and Flex but the best practice will be using one technology, one language, sadly you are not doing what you want everytime. But glare is really interesting thing to try. On other hand remember that we have here Gemstone/S giving really scallable possibilities. I’m not sure we can use it inside glare but if so, this solution will be brilliant.
  • Comments
  • Filed under: Flex, smalltalk
  • BDD with Smalltalk

    One of the most exciting thing in Ruby and Ruby frameworks like Rails and Merb is Behavior Driven Development framework - RSpec. Generally BDD provides new quality in testing and documenting our code. RSpec is a brilliant example of Ruby possibilities, I mean DSL ( Domain Specific Language ). But like I said last time DSLs aren’t only Ruby but also (or maybe more) Smalltalk. We know that “Smalltalk can do nothing but build domain specific languages”, so it’s natural that we should have something like RSpec in our Smalltalk world, and we have ! It called SSpec. Of course you probably say that we have SUnit which is satisfactory, and you’re right. What is more SUnit is excellent and like everything in my favorit Squeak outstanding integrated with it. But it’s still TDD, and what we need here is BDD - next generation of testing family. So if you want to try it, go to the www.squeaksource.com/SSpec/ and download it, helpfuly will be also SSpec documentation which you can download here:

    http://daveastels.com/files/sspec_manual.pdf
    http://daveastels.com/files/sSpec_QuickRef.pdf

    SSpec is maybe not so active and popular like RSpec but really interesting, so if you want to try BDD testing in your Smalltalk project you should use it :)

  • Comments
  • Filed under: smalltalk