3 ms·
Creating something that works in JavaScript requires hooking lots of libraries together. A recent bare-bones API project I was working on had 70 libraries (only
by smt88 11y ago
Creating something that works in JavaScript requires hooking lots of libraries together. A recent bare-bones API project I was working on had 70 libraries (only 10 of which were surface-level, the rest were dependencies).
Unfortunately, there isn't much of a standard in how libraries do things, so you won't ever have a cohesive standard in your own code.
For that reason, I suggest using whatever style creates more readable/maintainable code for you and your team. I suspect that it's LYBL, since that helps you avoid goto-based functionality, but it's a personal choice.