re: What is an IIFE? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: As someone who came from python, where the convention is to define a main function, this looks like the ugliest design pattern in the world. It nev...
 

Thanks Dor! I agree it can be a bit obtuse to look at. What always gets me is having to go to tail of the code to see what parameters were being passed in from outside the IIFE's scope.

I agree that ES6 has definitely made this cleaner and easier to understand with classes and imports. However, I was looking around briefly to see if ES6 modules are actually a syntactic sugar over this, but did not come up with anything yet.

code of conduct - report abuse