Platform Comparison Review
00:00 Project Platform Comparison: Recap. Let’s take a quick recap at programming that simple application across three platforms. First, as you can see onscreen, the CLI version is extremely simple. Even with the addition of a header, it only takes up five lines of code, and that could easily be compacted to three.
00:20 Secondly, the GUI version. This takes significantly more code because we need to tell the library what kind of elements we want onscreen, so text, inputs, and buttons all need to be specified and formatted appropriately.
00:34 We create a window, and have an event loop which handles the activities from within the program. And once finished, we need to clean up after ourselves, so there’s significant overhead with this.
00:54 There was more code which needed to be implemented, multiple routes to handle, different elements of the program to allow for the input, calculation, and output. But remember, while this is more complicated, it may be the preferred choice of interface for many users, and when an appropriate application is possible to reach hundreds, thousands, even millions of users—none of whom will have to install any of your software—they’ll just be able to point a browser at it and use the program straight away.
Become a Member to join the conversation.