Changes 11/21/13 Part 2
Math Drill:
- Made a .vimrc file to set tab to four spaces, which makes python programming much easier
- Added comments to postStudents() method explaining what certain code does
- Saved the <textarea> input to a variable so that it can be parsed and added to students[]
- Learned that you can write mergedList = list1 + list2, which is good to know for future code
- Keep running into weird problems where the server will give a 500 page but not output any python errors. This is frustrating and it is very hard to tell what is going wrong.
Vim is actually a very powerful editor. It is highly configurable. Also useful for python programming is to bind a key (I like to use a function key like <F3>) to run your python script and then return to the editing window after you hit <Enter>. (see http://openbookproject.net/pybiblio/tips/elkner/vim4python.php)
ReplyDeleteA quick google search on vimrc will reveal a wealth of riches. This one:
http://amix.dk/vim/vimrc.html
This blog looks pretty useful as well:
http://www.derekwyatt.org/vim/the-vimrc-file/
You'll earn bonus points (not that you need them) for teaching me some cool vimrc tricks ;-)