As a developer I have noticed a trend in libraries where the library developer will write this amazing
library that does everything you need it to except that it has a .run()
or .start()
method. The
intent is for the user of said library to do the initialization code in the application entry point
and then do something like return app.run();
. Whether it's in Python, Java, C++, or Rust they all
abstratct away the application's main event loop.
What is an event loop?