Today I Learned - Rocky Kev

Tagged “programming”

  1. TIL Indirection and Swallowing the error

    Op shared a tryCatch util that is problematic.

  2. TIL reusing variables

    Do not reuse variables. Do not double define variables that represent the same thing.

  3. TIL about semaphores

    A semaphore limits access to a resource to some number of consumers. Any new requests for the resource will get stalled until later, eventually to be handled.

  4. TIL about Concurrency

    It means tasks can overlap.

  5. TIL ELI5 for Dependency Injection

    In a nutshell, what it means is that any given piece of code you write should be provided everything it needs to do its job, instead of creating things for itself.

  6. TIL about Debouncing/throttling

    Debouncing and throttling are too common techniques for dealing with things that happen 'too often', like typing.

  7. TIL of a nice ELI5 of code splitting

    Code splitting is the splitting of code into various bundles or components which can then be loaded on demand or in parallel

  8. TIL the Bus Factor

    The bus factor of a project is the number equal to the number of team members who, if run over by a bus, would put the project in jeopardy. If a project overly relies on the contributions or knowledge of one person, then you could say that the project’s bus factor is one.

  9. TIL Rule of Three in Refactoring

    Follow the Rule of Three. It makes it easier to find correct abstractions. Ignore the first. Duplicate the second. Refactor when you see it a third time.

  10. TIL a fancy word for auto-generating objects, A Factory Function

    So a factory function creates objects. That's all.

  11. TIL Declarative Vs Imperative Programming Paradigms

    Declarative Programming is like asking your friend to fix your car. You don’t care how to fix it, that’s up to her. Imperative Programming is like your friend calling your father that tells her how to fix your car step by step.

  12. TIL when to use SOLID in 2021

    SOLID is an acronym for 5 principles. But they were made when dinosaurs roam the earth.

  13. TIL YANGI principle

    YANGI principle: You aren't gonna need it

  14. TIL Bob who hired chinese developers to fix

    Bob had hired a consulting firm in China, sent the consultants the work assigned to him, and then got out of the way, collecting paychecks the whole time

  15. TIL Redefining the environment, not the function itself

    I think we all can agree that something smells with this code.

  16. TIL thinking in States

    This is a great reminder of how to approach a problem.

See all tags.