How much time will you spend in writing the original code and how much time
extending/maintaining it?

There is a saying (at least in German): the longest path between two points
is a short-cut ...

Therefore I'd rather worry about maintainability than about speed of
writing. Editor short-cuts might help with the latter.

Cheers,
Fritz

On Wed, 2 Jan 2013, Loren Schlomer wrote:

> A namespace using construct is not available in javascript.  You can
> however achieve this using a variable.  (Everything is an object, and all
> variables are pointers.)
>
> In the case of button, you can get a pointer to the Button constructor
>
> var Button = qx.ui.form.Button;
>
> and then
>
> var myButton = new Button();
>
>
> If you want a pointer to the ui namespace, just go that far:
>
> var ns = qx.ui;
>
> And then you can get to the constructors the same way
>
> var myButton = ns.form.Button();
> var myInput = ns.form.TextField();
>
> etc...
>
>
>
>
>
> On Wed, Jan 2, 2013 at 3:27 PM, Deisss <[email protected]> wrote:
>
>> Today, I read a lot about Qooxdoo coding speed & so. I'm still searching
>> for
>> perfect GUI builder btw, and I often loose time to remember which namespace
>> access to get some classes
>>
>>
>> But I'm wondering something : it doesn't seems to exist any "using
>> namespace" like C++ provide for example.
>>
>>
>> Like that :
>> /* ************************************************************************
>>
>> #using(qx.ui.form)
>>
>> ************************************************************************ */
>> qx.Class.define("qx.test.Cat", {
>>   extend: qx.core.Object,
>>   construct : function() {
>>     this.base(arguments);
>>     var c = new Button();
>>   }
>> });
>>
>>
>> Doing so it may create a really faster & readable code developpment no (or
>> maybe i miss something important) ?
>>
>> Because i'm seeing that most of code i wrote always reuse same "namespace"
>> :
>> qx.ui.form, qx.ui.container, qx.ui.layout are definitely over basic one
>> -over re-used-, many many lines of codes in every program i can see got
>> thoose namespaces, and it still takes time to wrote down.
>>
>> And Spekt IDE & co doesn't help so much due to tiny words "qx", "ui"...
>> Like
>> building a form is almost qx.ui.form every 2 lines...
>>
>>
>> So what do you think ? I can help to code that if needed, I know python,
>> and of course Qooxdoo ! But I never look at generator parser...

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to