Hacker News new | ask | show | jobs
by mck- 4261 days ago
Todd Motto's angular style guide [1] has been one of the most helpful to me. It's always good to read multiple style guides and cherry-pick what works best for you :)

[1]: https://github.com/toddmotto/angularjs-styleguide

1 comments

The recommendations in the module section are pretty awful - I'd avoid doing so, and every other expert in the community I've spoken to also disagree with that suggestion of using global functions wrapped in an IIFE to prevent it from being published on window, which seems to exclusively come out of Google.
What does IIFE stand for? From your I'm guessing it's an immediately evaluating function - but I can't figure the initialism out
What should be used instead?
What's so bad about it?