1

Used an anonymous function and a static variable in function and still alive.

😀😀😀😀

Comments
  • 0
  • 0
  • 0
    This looks like something a college of mine would write, and I usually want to hit him in the face with a monitor when I get glimpses of the code base.

    There’s is so much wrong in this 10 lines that I’m grabbing a monitor 😫
  • 0
    I do not like this code too...

    I maintain and update a web application born in 2009 with nearly 5k scripts and (only) 10 classes.

    But it works.
  • 0
    @PaulTheSaltyDev this function is called in each row of a table.

    The first time the headers column are calculated, the following times it return the data stored in the static variable
Add Comment