In a Python dictionary, one way to return the value for a specific key is a_dictionary[key]. Another way is to use the get method: a_dictionary.get(key). The difference is when the key is not in the dictionary. The bracket method returns an error, but the get method is …
read moreAsteroids
Bcrypt with Rails
Bcrypt is an algorithm for hashing passwords that can be implemented in many programming languages. When a user signs up or logs in, the password they entered is sent to the server. SSL should be used for this stage, but that is separate from bcrypt. Bcrypt's job is to protect …
read morePollTheWorld
- Create polls, vote, and view responses summary.
- Heroku hosted Backbone.js application consuming RESTful Rails API
- Custom user authentication system with hashed passwords, session token and guest login
- Infinite scroll appends next page's Backbone collection on scroll off event
- Extends Backbone's model parsing to include relations
- Custom Backbone composite view …
The Practice of Programming
Disclaimer: This book does not have any python examples. But even before I began dabbling in C, I believe this book made me a better programmer. I recommend this book for the intermediate programmer who knows how to code, but may not be very good at coding with others. Someone …
read moreIntermediate Guess Number Python Game
In my first month of learning python, I wrote a simple guess the number game. It did not include exception handling, was not pep8 compliant, and was organized somewhat poorly. It also needed updating because it used what I like to call "C Print Formatting," which used to be correct …
read moreEasy Anagram Dictionaries Practice
I do not use dictionaries very often. Friday, I was without internet all day, so I took the opportunity to play with dir() and help() to discover some dictionary properties. My short-lived obsession with Draw Something on the iPhone has gotten me interested in anagrams (kicked the habit by reading …
read more