Steve Barnes - Why develop a CLI Command Line Interface first?
569 views · Published 30 August 2018 · 25:12 · Indexed 21 September 2026
Channel: EuroPython Conference · 2018 · Science & Technology
Why develop a CLI (Command Line Interface) first? [EuroPython 2018 - Talk - 2018-07-26 - Lammermuir] [Edinburgh, UK] By Steve Barnes One of the core concepts of Application Development, (not just in python), is the separation between the Business Logic and the User Interface. However there is a strong temptation to start with the user interface and add the business logic to it some methodologies emphasize this with the process of prototyping the (G)UI first. The danger is that your business logic code can get too entangled with the UI and a change of platform or framework becomes almost impossible. This presentation will show how to maintain a clear separation between the Business Logic and the User Interface by starting with a command line interface using argparse and growing a GUI on top. We will cover: - Why maintain the seperation - Using argparse - Adding a GUI layer with wxPython - Automating the GUI generation - Adding a web interface - Testing advantages of this approach - Scripting advantages - Some packaging models. Slides and Samples all uploaded to https://github.com/GadgetSteve/EP2018_Talk License: This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/by-nc-sa/3.0/ Please see our speaker release agreement for details: https://ep2018.europython.eu/en/speaker-release-agreement/
More from this channel
-
35:13
Python at Cloudkick
-
33:42
Managing the cloud with libcloud
-
21:34
PyPy hands-on
-
39:57
Precompiling and deploying Python to any Linux, Mac OS X or FreeBSD system
-
1:15:34
Openstack Overview - Operational Detail of a large Python Project
-
56:26
Clone detection in python
-
49:46
Python - Qt - MySQL - Konga ERP.m4v
-
28:02
Schlomo Shapiro - Sponsoring Open Source