100 days of code: Day 2 - editor
Python Crash Course recommends Sublime Text as text editor for creating programs, though alternatives are mentioned in the appendix (Geany looks interesting). I have some familiarity with neovim and that will be my choice for writing Python programs.
Here are my configuration settings in
~/.config/nvim/init.vim for programming …
syntax on " syntax highlighting filetype plugin indent on " allow auto-indenting depending on file type set tabstop=4 " number of columns occupied by a tab character set expandtab " convert tabs to white space set shiftwidth=4 " width for autoindents set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing set showmatch " show matching brackets. set autoindent " indent a new line the same amount as the line just typed set number " add line numbers set cc=80 " set colour columns for good coding style
Programs I want to create:
- Weight and date tracker. I keep a daily log in a text file where I periodically record my weight and the corresponding date. I want to create a program that will scan my log, retrieve these entries, and generate graphs from the measurements. One of the projects in PCC is data visualization which sounds useful.
- “Don’t break the chain” tracker. Comedian Jerry Seinfeld was asked for some insight into his process for creating new material. He replied that he commits to a daily block of time for writing jokes and marks an ‘X’ on the calendar upon completion. The rows of Xs form a chain and it is most important “not to break the chain”. I want to create a program that will enable marking/displaying Xs on a calendar that track some consistent effort over time, with totals for length of current effort and highest-score effort.
- Keywords plugin. For my buildblog static site generator, I want to create a program that will scan my blog posts for keywords in the header and create tags for posts and the corresponding tag pages.