Daily Development Tips

Daily Development Tips

here's a few of our favourites tips about programming (editors, console and everything else).

Ce277a152d715dabd06058e0ef502137?s=128

Adam Nowak

May 15, 2015
Tweet

Transcript

  1. Daily development tips @lubieniebieski & @changs

  2. Agenda • Editors • Terminal & console • Browser extensions

    • System • Other
  3. Editors Vim, Sublime, Atom, …

  4. Editors (themes) • use a cool theme • think about

    dark/light variations • http://colorsublime.com • http://cocopon.me/app/vim-color-gallery/ • https://atom.io/themes • our favourites: • Solarized • Tomorrow Night • Spacegray fonts: • Source Code Pro • Ubuntu Mono • Inconsolata
  5. Editors (file mangement) • fuzzy search • [A] [S]: CMD+P

    / CMD+T • [V] CTRL+P https://github.com/kien/ctrlp.vim • go back to previous file • fuzzy search + enter • split tabs • [S]: CMD+ALT+2 (or more) • [V]: :sp / :vsp • show/hide file tree
  6. Editors (select) • copy and paste • quick find selected

    word • [V]: # • [A] [S]: CMD+e, CMD+g • select all occurrences in file • [A] [S]: CTRL+CMD+g • work with multiple cursors • [A] [S] CMD+SHIFT+l
  7. Editors (line manipulation) • delete line(s) • [A] [S]: CTRL+SHIFT+k

    • [V]: dd • join lines • [A] [S]: CMD+J • [V]: J • move line(s) up/down • [A] [S]: CTRL+CMD+up/ down • go to the end of line • [A] [S]: CMD+right • [V]: $ • go to the beginning of line • [A] [S]: CMD+left • [V]: ^ • move cursor left/right by word • [A] [S]: ALT+left/right • [V]: b / w, B / W
  8. Editors (search) • search everywhere • [A] [S]: CMD+SHIFT+f •

    quick change search word: CMD+d, CMD+e • [V]: Ag https://github.com/rking/ag.vim
  9. Editors (ctags) • go to definition • [A] [S]: CMD+SHIFT+down

    • [V]: CTRL+] • https://github.com/SublimeText/CTags • http://ctags.sourceforge.net/
  10. Editors (other) • go to file on github • https://github.com/tpope/vim-fugitive

    • https://github.com/ehamiter/ST2-GitHubinator • showing modified lines • git gutter
  11. Editors (working with git) • live demo

  12. Editors (plugins) • Vim • https://github.com/gmarik/Vundle.vim • https://github.com/kien/ctrlp.vim • https://github.com/scrooloose/nerdtree

    • https://github.com/tomtom/tcomment_vim • Sublime • https://netguru.co/blog/sublime-text-plugins-development • https://netguru.co/blog/11-sublime-plugins-html-developers
  13. Terminal & console

  14. slimzsh • https://github.com/changs/slimzsh

  15. Shortcuts (1) • cmd + a - początek linii •

    cmd + e - koniec linii • cmd + w - usunięcie wyrazu • cmd + f - forward word • cmd + b - back word • up - history or search • cmd + r - search in history
  16. Shortcuts (2) • navigate by words • ALT+left/right • beginning

    of line • CMD+left/right
  17. fasd

  18. fzf

  19. navigating between tabs • CMD+ALT+left/right • CMD+SHIFT+[ / ] •

    CMD+1/2/3/… • split • CMD+D • toggle: CMD+[ / ]
  20. Web Browsers extensions

  21. Safari • https://github.com/rs/SafariTabSwitching

  22. Chrome • tab wrangler - https://chrome.google.com/webstore/detail/tab-wrangler/ egnjhciaieeiiohknchakcodbpgjnchh • ublock -

    https://chrome.google.com/webstore/detail/ublock-origin/ cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=pl • github notifier - https://chrome.google.com/webstore/detail/github-notifier/ lmjdlojahmbbcodnpecnjnmlddbkjhnn • momentum - https://chrome.google.com/webstore/detail/momentum/ laookkfknpbbblfpciffpaejjkokdgca • postman - https://chrome.google.com/webstore/detail/postman-rest-client- packa/fhbjgbiflinjbdggehcddcbncdddomop • json view - https://chrome.google.com/webstore/detail/jsonview/ chklaanhfefbnpoihckbnefhakgolnmc
  23. System we’re talking OS X here

  24. Cool small tools • Owly - sleep prevention • https://itunes.apple.com/us/app/owly-sleep-

    prevention/id882812218?mt=12 • Copy/paste manager • http://www.clipmenu.com/ • Markdown editor • MacDown
  25. Navigating UI buttons with keyboard

  26. karabiner • https://pqrs.org/osx/karabiner/

  27. Other stuff everything else

  28. Stay healthy • drink water • do breaks • try

    pomodoro • don’t forget to eat • and eat away from the computer • use f.lux
  29. Communicate properly • be asynchronous • if you need an

    answer, please provide as much detail as possible • don’t wait with “hi” (and nothing more) until someone responds • use CC in emails • don’t use private channels - everybody loses • not all notifications are important - beware of distractions
  30. fin! adam & bartek