3 ms·
Joe Armstrong had some similar thoughts: "Why do we need modules at all?". https://erlang.org/pipermail/erlang-questions/2011-May/058768.html https://erlang.or
by nemetroid 5y ago
Joe Armstrong had some similar thoughts: "Why do we need modules at all?".
https://erlang.org/pipermail/erlang-questions/2011-May/058768.html https://erlang.org/pipermail/erlang-questions/2011-May/05876...
- KronisLV 5y agoYou know, the "all functions have unique distinct names" idea is pretty interesting! Honestly, that reminds me of the PHP standard library a bit, which feels oriented towards procedural programming at times. Now, the language and the actual implementation of the functions aside, i found that pattern really pleasant to work with, especially since it let me work more in line with functional programming principles as well - pure functions and no global state (even if passing data around was more difficult). Now, i won't say that the approach fits every project or domain out there, but at the very least having a clear idea of what your code depends on and what's going on inside of your code base is an idea that i still stand by. Sadly, the only tool that i found that at least tries to make this easier was Sourcetrail, which is essentially dead now: https://www.sourcetrail.com/ https://www.sourcetrail.com/