Today I Learned - Rocky Kev

Tagged “loops”

  1. TIL what matters for JS optimization

    Optimizing your Javascript - Using getElementById() vs querySelector()? Doesn't matter. Loops? Doesn't matter. What matters: Render Blocking code, Repaints and Reflows, Memory allocation

  2. TIL map() only when you need it

    The origins of 'map()' was to create methods that allow us to manipulate array data without mutating it. It's part of the whole set of methods to make functional programming easier in Javascript.

  3. TIL Higher Order functions to reduce loops

    Higher Order Functions like Sum, Map, Filter, Reduce

  4. TIL Avoiding Off-by-one errors and state using Recusion

    Recursion is a function that calls itself.

  5. TIL Stateful and stateless

    An expression in a programming language can be “stateful” or “stateless”.

  6. TIL One-by-one errors

    An off-by-one error is when you expect something to be of value N, but in reality it ends up being `N-1` or `N+1`.

  7. TIL the problem with using Loops

    Loops tend to have some flaws. Instead use Higher Order Functions

See all tags.