How to disable the OSX dashboard

Every hard-at-work in OSX and suddenly a wayless key-command or gesture takes you to the useless Dashboard view?

Disable the Dashboard from launching ever again

    defaults write mcx-disabled -boolean YES

If you want the change to be affective immediatly, without restart, you will need to restart the Dock

killall Dock

Re-eabling the Dashboard feature

defaults write mcx-disabled -boolean NO