Inline Anonymous Funcion Pattern

This is an archived post from the ExtJS era — the code may be obsolete, but the principles often still apply.

Code in this post can be obsolete, however, principles and theory may still apply.

5 comments

  1. RameshJuly 15, 2009archive
    What are the advantages? Does in-lining will improve performance?
  2. SakiJuly 15, 2009archive
    Sometimes you need to calculate result, e.g. while configuring a component, one of the options has to be "calculated". Performance is not a point here.
  3. Jose SousaJuly 19, 2009archive
    Hi, In your examples you have the line: Where i can find this file extjs.ico ? Please, can you send to me ? Beast regard´s, Jose Sousa
  4. Jose SousaJuly 19, 2009archive
    Hi, In your examples you have the line: link rel="shortcut icon" ref="./img/extjs.ico" Where i can find this file extjs.ico ? Please, can you send to me ? Beast regard´s, Jose Sousa
  5. Andrew LiangFebruary 15, 2013archive
    At first glance, the only advantage I see here is you can easily create a private function without polluting the global namespace. The main disadvantage is you can't re-use the function.

Comments are closed on archived posts.