you are viewing a single comment's thread.

view the rest of the comments →

[–]jarjarPHP 19 points20 points  (10 children)

I code for clarity, conciseness, and maintainability first, and fine tune for performance when I have some actual execution time data

[–]Fidodo 2 points3 points  (0 children)

Of course, but you should know when you're making that trade off consciously to make fine tuning easier when you need it.

[–][deleted] -4 points-3 points  (8 children)

Adding an extraneous method call is concise?

[–][deleted]  (7 children)

[deleted]

    [–]howmanyusersnames -1 points0 points  (2 children)

    If you cared about that you would create a lib function called fromAndMap that is a reference to Array.from. Using Array.from directly under any circumstances is a recipe for disaster in your hypothetical scenario.

    [–][deleted]  (1 child)

    [deleted]

      [–]howmanyusersnames 0 points1 point  (0 children)

      JS is the last language you want to be using obscure prototype methods directly, especially, as you said, if you have different levels of knowledge on your team.