Closed HandsomeDan closed 8 years ago
Heya Dan! So, this was just a code organization habit that I had from my last job at Active Theory. In our JavaScript files/Classes we would always put the initial construction of the properties in an anonymous self-invoking function at the top - it was just so you had the visual grouping of the object properties there when you glanced at the file. So, no real benefit or reason for doing so - just a habit I had at the time :)
Thanks!
Hey Rachel I had a quick question about a pattern I saw you use in this example:
What in the world is going on with the constructor here? For the life of me I can't figure out what pattern this is and what problem it's solving.
Anyway, I'm a huge fan of your tutorials over at codepen.
Thanks for taking the time to read this.
-- Dan