SyntaxHighlighter

Friday 16 August 2013

Day 44: I once was a Python programmer..

Python

When they said Python was easy to learn, they weren't joking! I haven't actually programmed very much in Python before, so I was learning quite a bit as I progressed through writing the script. It is in fact a very quick to program and pretty easy to use language, with enough power to do wonderous things. Useful tool in my programmer's arsenal.

So today was spent just writing basically the whole script, encompassing all of the functionality intended apart from the last issue: ensuring the slave Pi's can be disconnected without corrupting the OS. This can be done by either making a non-writable SD or alternatively logging into the Pi and shutting it down via ssh. It is not enough to simply flip the read only switch on the SD card, the Pi will still mount itself with RW access. I'll fix this first thing tomorrow!

Also read through the Pi lab at http://studentnet.cs.manchester.ac.uk/ugt/2013/COMP10120/labscripts/rpi1.pdf and suggested a few improvements to Graham. Mainly I thought there was a bit too much of a "wall-of-text" effect and not enough enforced structure. Which makes it somewhat difficult to follow instructions as they are embedded as any number of sentences within paragraphs; and makes it somewhat easy to lose your way as you flip from the document to your Pi. An improvement would be to enforce some structure with bullet points, or numbering instructions to make them easy to follow and provide anchors in all the text so you can find your place easily.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.