Skip to content

Instantly share code, notes, and snippets.

@mariusbutuc
Last active July 17, 2020 06:54
Show Gist options
  • Save mariusbutuc/686323f01dabbd40a94a2f66329fdaa5 to your computer and use it in GitHub Desktop.
Save mariusbutuc/686323f01dabbd40a94a2f66329fdaa5 to your computer and use it in GitHub Desktop.
10 Lessons from a Decade with Erlang

10 Lessons from a Decade with Erlang

  1. Higher-order Constructs

    Use higher-order constructs (libraries, frameworks, tools) instead of building everything from scratch. If there is no higher-order construct yet, build one.

  2. Opaque Data Structures

    Use Opaque Data Structures to represent your entities.

  3. Test Driven Development

    Develop your systems incrementally using Test Driven Development.

  4. Meta-Testing

    Dialyzer is never wrong. A warning emitted by dialyzer means there is a bug somewhere.

    Use dialyzer, xref, and elvis in your projects constantly and consistently. Start using those tools as soon as you start developing your system.

  5. Test Speed

    Keep your tests running smoothly and fast.

  6. Behaviors

    Invest time in understanding how the behaviors you use work and how to define and use your own ones.

  7. Tools

    Learn about all the tools that Erlang/OTP already provides to work better and avoid reinventing the wheel.

  8. No Debugging

    Do not debug, inspect and trace instead.

  9. Engage with the Community

    Join the community and don’t hesitate to ask for help.

  10. Have fun!

    Enjoy your time working with this amazing language!

Thank you!

@elbrujohalcon
Copy link

You're welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment