Re: Best way to work with gtkmm.



On Sun, 2006-03-05 at 21:25 +0100, Nathan Hüsken wrote:
> I don't want to start a flameware ... please do not flame :), but what 
> way would you recommend and why?

I would recommend libglademm.

Libglademm is better because:
      * UI changes without recompiling
      * Non-programmers can fiddle with UI, even once the program is
        installed
      * Overall compilation is faster
      * In a CVS/SVN repository, if you're using generated code, do you
        put it in the repository?
              * So when the code's regenerated does that constitute a
                difference?
              * If your developers have different versions of a code
                generator they'll have slightly different source files
                from the same glade.
              * If you don't put it in the repository then everyone has
                to have glade.
      * A library is easier to maintain (one lib, many bindings) than
        code generators (one for each supported language).  Even for the
        selfish programmer, it means that libglade is probably going to
        be more reliably maintained than a code generator.
      * Code generation drives me crazy (did I remember to click build?)

I'm sure I could think of some more...

Basically, code generation has only two advantages:
      * No libglade installation required
      * Don't need to find .glade file at runtime (but you need to find
        other files, right, so what's the problem?)

John




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]