Category Archives: CODEX

Notes on Programming in C by Rob Pike

Notes on Programming in C

    Rob Pike                  
February 21, 1989

Introduction

     Kernighan and Plauger’s The Elements of Programming Style was an important and rightly influential book.  But sometimes I feel its concise rules were taken as a cookbook approach to good style instead of the succinct expression of a philosophy they were meant to be.  If the book claims that variable names should be chosen meaningfully, doesn’t it then follow that variables whose names are small essays on their use are even better?  Isn’t MaximumValueUntilOverflow a better name than maxval I don’t think so.
Continue reading Notes on Programming in C by Rob Pike

Django notes

1. create a new directory and start a project by run: django-admin.py startproject lsite
2. Running the development server: python manage.py runserver (just local)
3. start the interactive interpreter: python manage.py shell
4. setup TEMPLATE DIR  inside settings.py