Uplevel e-solutions

Webware and Rich Internet Applications

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
  • JRuby power !!

    If you just started to work with Ruby and if you are the Java Developer this is the most powerful solution for you - JRuby. That’s the magnificent synergy between power of Java( millions libraries, millions projects in whole world, millions Java programmers) and Ruby ( always giving productivity and fun). If you haven’t tried JRuby yet, there is a video you should see: JRuby: The power of Java and Ruby. Simple speaking it’s an 100% pure-Java implementation of the Ruby programming language. Of course we can using Ruby On Rails or Merb with it now :) Current version is 1.1.2 and it gives really good performance (opposite to the groovy which I was talking about last time). All your JRuby projects can be started later with for example GlassFish server.

    There is another interesting tool called JtestR - that will make it easier to test Java code with state of the art Ruby tools (RSpec, Test/Unit, dust, mocha and Active Support).

    So now the only way is to download it and start using :)

  • Comments
  • Filed under: Java, Ruby
  • Rubinius powstał w celu stworzenia najszybszej maszyny wirtualnej Rubiego oraz łatwego i szybkiego rozwoju dla samego języka Ruby. Podejście jest tutaj następujące: ponieważ implementacja wirtualnej maszyny napisana jest w Ruby i ma ona do czynienia właśnie z Ruby, znacznie łatwiej będzie rozwijać język. Niedawno Evan Phoenix na swoim blogu, doniósł że udało im się w końcu uruchomić Ruby on Rails, jest to kolejny sukces po tym jak uruchomili już framework Merb :)

    Rubinius nawiązuje do 30 lat doświadczeń Smalltalka. Jest w nim dobrze zaimplementowana wielowątkowość (Channels, Actors, Tasks, Threads). Rubinius napisany jest w oparciu o metodologię TDD/BDD, głównie we frameworku RSpec. Aby zobaczyć postęp prac lub też dołączyć do projektu warto odwiedzić Rubinius project on Lighthouse. Cały projekt jest niewątpliwie bardzo interesujący !:) Obecnie wszystkie prace są raczej prowadzone pod kątem funkcjonalnym niż wydajnościowym, czyli będzie dużo lepiej :) .

  • Comments
  • Filed under: Ruby