Language and development rules: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
 
Line 70: Line 70:
====Closure or anonymous function====
====Closure or anonymous function====
If you new a function, just create a real one (or a method).
If you new a function, just create a real one (or a method).
Anonymous function are just forbidden (existing one should be removed), they brings a lot of problem:
Anonymous function are just '''forbidden''' (existing one should be removed), they brings a lot of problem:
* Code readability
* Code readability
* $tihs can create cyclic reference.
* Broken static analytics tools that can't guess type or path of variable
* Broken static analytics tools that can't guess type or path of variable
* Function documentation
* Unit test more difficult
* AI become crazy
* AI become crazy
* Coding debug trouble
* Coding debug trouble (no name function into stack trace)
* Impact analysis more difficult as the stack trace of code can't be guess easily when function are not named explicitely.  
* Impact analysis more difficult as the stack trace of code can't be guess easily when function are not named explicitely.
* Memory overload not under control.


====Comments====
====Comments====

Navigation menu