10 Lessons from a Decade with Erlang ↗
-
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.
-
Opaque Data Structures
Use Opaque Data Structures to represent your entities.
-
Test Driven Development
Develop your systems incrementally using Test Driven Development.
-
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.
-
Test Speed
Keep your tests running smoothly and fast.
-
Behaviors
Invest time in understanding how the behaviors you use work and how to define and use your own ones.
-
Tools
Learn about all the tools that Erlang/OTP already provides to work better and avoid reinventing the wheel.
-
No Debugging
Do not debug, inspect and trace instead.
-
Engage with the Community
Join the community and don’t hesitate to ask for help.
-
Have fun!
Enjoy your time working with this amazing language!
You're welcome :)