favorite list of tips for readable code is uncle Bob’s guide to Clean Code: A Handbook of Agile Software Craftsmanship. Even if on some occasions it gets tedious and overzealous, it is still a great read for the practical coder, dealing with many issues of writing readable code and refactoring.
- jcran
This is the contents of my .vim directory. It includes my vimrc, which you should symlink to ~/.vimrc in order to get the goodness. It includes several plugins: Git-vim, Gist, NERDtree, FuzzyFinder, FuzzyFinderTextmate, lots of color schemes, updated ruby bindings, and more. To use, copy this directory to ~/.vim and symlink ~/.vim/vimrc to ~/.vimrc.
- jcran
"fwiw, every bank i've worked with has had to deal with this in some form. Lots of reports of targeted (at the area code) bank-specific scams."
- jcran
"fwiw, every bank i've worked with has had to deal with this in some form. Lots of reports of targeted (at the area code) bank-specific scams."
- jcran
"fwiw, every bank i've worked with has had to deal with this in some form. Lots of reports of targeted (at the area code) bank-specific scams."
- jcran
generic example but the signature of the Vix_GetProperties() function is the important point here. You provide the handle followed by sets of name/value pairs and terminate it with the special VIX_PROPERTY_NONE property.
- jcran
We’ve now replaced the concrete values for the username and email with a call to the sequence method, which we pass the name of an attribute and a block. The block is passed a number, which we can use in the string value to create a unique value for each attribute. Now when we create a User from our factory it will have unique default username and email attributes.
- jcran
clicks the “signup” link, and fills out the form. After submitting the form, a new ledger is created for him, and he is automatically logged in and taken to the overview page. Jim, an experienced user, has received a new credit card and wants to set up a new account for it. He logs in, selects the ledger he wants to add the account to, and adds the account. He is then forwarded to the register for that account. Stacey is a disgruntled user. She has decided to cancel her account. Logging in, she goes to the “account preferences” page and cancels her account. Her data is all deleted and she is forwarded to a “sorry to see you go” page.
- jcran