[aida] Code stats - Aida vs. Seaside vs. Iliad

Nicolas Petton petton.nicolas at gmail.com
Fri Nov 12 11:47:07 CET 2010


Le jeudi 11 novembre 2010 à 22:13 +0100, Janko Mivšek a écrit :
> Dear all,
> 
> I'm currently working on comparison between three main web frameworks in
> Smalltalk and here is one interesting result I measured today:
> 
> Code stats            Aida    Seaside Iliad			
> Nr of packages          1      74      9
> Nr of categories       14     123     26
> Nr of classes         145     943    265
> Nr of methods        4.465   8.758  2.368
> Lines of code       33.578  66.337  9.794
> Avg methods/class     31      9       9
> Avg lines/method     7,5     7,6     4,1
> 		
> Code is loaded in Pharo with by Metacello configurations, tests are
> included, all code included except Grease, Sport, Swazoo, Magritte.
> 
> Note how small number of packages and classes has Aida comparing
> specially to Seaside, but only twice less methods. Is this a reason why
> everyone consider Aida as simple from first sight?

Hi guys,

Iliad is how it is because 1) Iliad is a vision about how we can build
web apps 2) I want Iliad to have a small, easy to maintain codebase

In a nutshell, the goal of Iliad is to help developers write web
applications with reusable, stateful web components, while liveraging
modern web technologies (like automatic, unobstrusive and degradable
AJAX), and keep clean, human readable and bookmarkable urls.

If I could reduce the number of lines of code in Iliad, I would
certainly do so.

I'm not saying that Iliad is better than <put whatever framework you
like here>. It may be _different_, and answer to web development issues
differently than other web frameworks do.

If some framework needs 10x more lines of code, maybe it's for a reason,
maybe not, but the complexity of an internal implementation of a
specific feature of a framework doesn't mean that this complexity is
shown to the developer. Afterall, that's the purpose of any framework.

So I think that instead of comparing the number of lines of code to
determine which framework is simpler for newcommers, one should try to
compare the complexity of the API provided by each framework, and what
it allows you to do with it.

Just my 2 cents,

Nico



More information about the Aida mailing list