Editor
Overview
Teaching: 5 min
Exercises: 5 minQuestions
What are the expected features in an IDE editor?
Objectives
Understand the purpose of the features of a code editor
Editor integrates tools for an easy to use, efficient editing experience.
The Editor’s usual key features include:
- Syntax highlighting (
pygments
); - Real-time code and style analysis (
pyflakes
andpycodestyle
); - On-demand completion, calltips and go-to-definition features (
rope
andjedi
); - Function/Class browser, horizontal and vertical splitting.
Expected Benefits
- Less time and effort
- Enforce coding standards
- Project management
Let’s Write our first version of Bingo Cards generator
Let use a dictionary whose keys will be the letters B, I, N, G and O. The values will be the lists of five numbers that appear under each letter. Remember the “Free” in the center space.
Things to pay attention to:
- Static code analysis
- Syntax coloring
- Integrated help [CTRL+I]
- Panel layout
Batteries included
random
package of python’s standard library has asample
function that returns k unique random elements from a population sequence or set.
Key Points
A code editor fundamentally reduces your cognitive load
There is no need to use an IDE. It is just much harder work not to. (David Arno, Stackoverflow)