[Gambas-user] Gambas code is much shorter

Eilert eilert-sprachen at ...221...
Wed May 4 09:20:09 CEST 2005


This is just a question about which I'd like to hear some comment from 
the professional programmers here.

Currently I'm migrating a project from VB to Gambas. Instead of 
retyping/copying the code, I found it easier to just use the overall 
ideas of the original VB code and re-invent them in Gambas. It's a 
translating job rather than a retyping one.

Anyway, after a while I found that Gambas code appears to be much 
smaller and compact than that of VB, though I couldn't make it out to 
some specific item. On average, I use about 20 - 30 % less code lines 
than in VB to achieve the same functionality within a comparable Sub or 
Function.

When I started, I expected it to be the opposite, as there are a few 
things which seemed to be rather roundabout to me. For example, you have 
to DIM every variable in a separate line, and I missed the practical 
dynamic more-dimensional string variables and structs. Meanwhile, 
however, I've got used to the Gambas ways of doing it.

So, this is what I would like to know: Why is my Gambas code so much 
less complex? Does anyone here have an explanation for it?

Rolf





More information about the User mailing list