Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #11
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Easy fix, don't use anonymous functions I personally don't like them.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  2. #12
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Easy fix, don't use anonymous functions I personally don't like them.
    Nothing wrong with the anonymous function. In fact, if you declared a named function elsewhere, it'd be more work to access the grid and its store, no? A local named function in the initComponent() function doesn't buy anything unless you have reason to call it from more than one place.

  3. #13
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,289
    Vote Rating
    109
    LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light

      0  

    Default


    evant,

    What compressor is used to compress Ext4?

    Google Closure Compiler ignores the "me = this" technique, see below:

    http://closure-compiler.appspot.com/home

    Code:
    function doA(){this.a();this.b();this.c();this.d()};

  4. #14
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Makes code cleaner IMHO. Course with MVC, you really aren't going to have too many as views usually won't handle anything, controllers will do the lifting.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #15
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    Code:
    // ADD YOUR CODE HERE
    function doA() {
    var me = this;
    
    me.a();
    me.b();
    me.c();
    me.d();
    me.e();
    me.f();
    me.g();
    me.h();
    me.i();
    me.j();
    me.k();
    me.l();
    }
    
    function doB() {
    this.a();
    this.b();
    this.c();
    this.d();
    this.e();
    this.f();
    this.g();
    this.h();
    this.i();
    this.j();
    this.k();
    this.l();
    }
    Code:
    function doA(){this.a();this.b();this.c();this.d();this.e();this.f();this.g();this.h();this.i();this.j();this.k();this.l()}function doB(){this.a();this.b();this.c();this.d();this.e();this.f();this.g();this.h();this.i();this.j();this.k();this.l()};
    Compilation was a success!
    Original Size: 292 bytes (150 bytes gzipped)
    Compiled Size: 247 bytes (85 bytes gzipped)
    Saved 15.41% off the original size (43.33% off the gzipped size)

  6. #16
    Ext JS Premium Member skullbooks's Avatar
    Join Date
    Nov 2010
    Location
    Dillenburg, Hessen, Germany
    Posts
    35
    Vote Rating
    1
    skullbooks is on a distinguished road

      0  

    Default


    hey

    by the compression benefit isn't just meant the gzip compression of the webserver or the fact that me is shorter than this.
    the fact is more the build compression when you minify your js. and this compression should/will do for example an m out of the me or something else short, because it's a variable an not a constant.
    and in this case you could use any word instead of me and it will be shorter at the end, also if the word is 'honululu'...

    as evant wrote on page 1 (please read)

    Code:
    function doA() {
        var me = this;
        
        me.a();
        me.b();
        me.c();
        me.d();
    }
    
    function doAA() {
        var honululu = this;
        
        honululu.a();
        honululu.b();
        honululu.c();
        honululu.d();
    }
    
    function doB() {
        this.a();
        this.b();
        this.c();
        this.d();
    }
    will be minifyed to

    Code:
    function doA(){var a=this;a.a();a.b();a.c();a.d()};
    function doAA(){var b=this;b.a();b.b();b.c();b.d()};
    function doB(){this.a();this.b();this.c();this.d()};
    the web server delivers this small version and shure should compress it anyway, but that's not point why using me instead of this.

  7. #17
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,656
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    I wonder how much energy all spend on this issue
    I also like Nil's version
    Code:
    var that = this;
    Winning some bytes with this and losing plenty of bytes with unefficient functions ... Does i t really harm if complete application is 1K less at the end?
    I concentrate on other parts of coding
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  8. #18
    Ext JS Premium Member KimSchneider's Avatar
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    68
    Vote Rating
    0
    KimSchneider is on a distinguished road

      0  

    Default


    My oppinnion is, that var = this is bad coding style.

    For example: If you want a different scope in your buttons handler, use scope! If you want to access the button, the first param of the handler IS your button

    No reason to assign this to a variable. Sometimes that makes things more complicated as they are. Saving 1K is not really a reason, the code has to be readable and easy to follow for anyone that reads it.
    Kim Schneider
    Lead Developer

    Server-Eye
    Alte Koßmannschule
    Koßmannstraße 7
    66571 Eppelborn
    Germany

    Email: kim.schneider@server-eye.de
    Homepage: www.server-eye.de

    Do you know our revolution in network- and servermonitoring?
    www.server-eye.de

  9. #19
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by KimSchneider View Post
    My oppinnion is, that var = this is bad coding style.

    For example: If you want a different scope in your buttons handler, use scope! If you want to access the button, the first param of the handler IS your button

    No reason to assign this to a variable. Sometimes that makes things more complicated as they are. Saving 1K is not really a reason, the code has to be readable and easy to follow for anyone that reads it.
    It's not a matter of a scope issue, just saving space.

    So you all don't care if Sencha does everything to keep file size to a minimum? I am working at a client location and we have over 140 apps within this one app. One of the "subapps" is 250 Kb (uncompressed) and it's not even the largest so if I can save 1 Kb when I go to compress then it's worth it to me. This is more true when you start thinking about Sencha Touch, that framework is rather large for mobile devices.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  10. #20
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    Code:
    $ cat test.js
    var COUNT = 100000;
    
    function test() {
    	var me = this;
    	var i, start, elapsed;
    
    	this.x = 0;
    	start = new Date().getTime();
    	for (i=0; i<COUNT; i++) {
    		this.x = this.x + 1;
    	}
    	elapsed = new Date().getTime() - start;
    	print('Elapsed: ' + elapsed);
    	
    	me.x = 0;
    	start = new Date().getTime();
    	for (i=0; i<COUNT; i++) {
    		me.x = me.x + 1;
    	}
    	elapsed = new Date().getTime() - start;
    	print('Elapsed: ' + elapsed);
    }
    
    test();
    Code:
    $ rhino test.js
    Elapsed: 360
    Elapsed: 205
    Someone want to try it with nodejs?

Similar Threads

  1. Replies: 5
    Last Post: 2 Jan 2014, 9:08 AM
  2. Replies: 4
    Last Post: 31 Mar 2011, 9:04 AM
  3. Replies: 3
    Last Post: 28 Oct 2009, 6:38 AM
  4. replace the "south" with the "new Ext.StatusBar" in "layout:'border'"
    By ealpha in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 18 May 2008, 8:28 PM

Thread Participants: 14