Saturday, June 14, 2014

Toggle Between Two and Four Spaces in Vim

To my fellow Vim users:

" Toggle between two and four spaces
let g:spaces = 2

function! TabToggle()
  if g:spaces == 2
    let g:spaces = 4
  else
    let g:spaces = 2
  endif
  echo "Switching to " . g:spaces . " spaces."
  let &tabstop     = g:spaces
  let &shiftwidth  = g:spaces
  let &softtabstop = g:spaces
endfunction

nmap <leader>t :call TabToggle()

Put that in your .vimrc and benefit.

Sunday, June 08, 2014

Everything Driven Development

I see a lot of parallels with web development in the 2010s and financial services in the 1970s.  Both are explosive, volatile industries with huge margins, marginal reputations, and loud voices.  Every new innovation seems to have implications.  Every app and every trade have the potential to change everything.

Once again, the web development community is awash in philosophical debate with no resolution in sight:  Heavily paraphrased, "should we do it this way or that way?"

Both ways work.  There are been major successes on either side.

In the 1970's, interest rates were at 20%.  A host of new products sprang up from a combination of easy money and new technology--  Bond coupons, mutual funds, real estate derivatives, and others.  The new market paved the way for even more innovation in the 80s and 90s.

But without too many exceptions, these products still exist, and companies still sell them.  Instead of disrupting the industry at every turn, they just carved out new niches.

Test Driven Development works because everything works.  Feature Driven Development works because everything works.  These are all niches that need definition.  There's a rising tide, and it's lifting all our ships.

Sunday, June 01, 2014

Top 5 Consumerism Wins

Here are the best five things I've purchased on the Internet (non-referral links so you know I'm telling the truth):

Odormute.  Magically good odor neutralizer.  Far superior to febreeze, and much cheaper.

503TORCH.  Small, cheap, effective butane lighter.  You need a butane lighter.

Zojirushi Travel Mug.  Nondescript travel mug that doesn't leak, ever.

Makita Vacuum.  Replaced my old vacuum, roomba, and broom.

Good Grips Tea Ball.  Makes tea.  Tea is awesome.