$30 off During Our Annual Pro Sale. View Details »

Level-Up Your Code-Fu With Chuck Norris (and ReSharper, VsVim and NCrunch)

Jaime
September 25, 2014

Level-Up Your Code-Fu With Chuck Norris (and ReSharper, VsVim and NCrunch)

Our minds possess an unlimited potential and are, without a doubt, the best tool we have in our software development arsenal. However, the interface between our minds and the computer - hands, keyboard, editors... - is imperfect and inefficient, and prevents us from expressing our thoughts in code freely.

But worry not! Chuck Norris is here to kick some ass and help you improve how well and how fast you express yourself in code. Master tools like ReSharper, VsVim and NCrunch and breach the gap between mind and matter.

Jaime

September 25, 2014
Tweet

More Decks by Jaime

Other Decks in Programming

Transcript

  1. CHUCK
    NORRIS

    View Slide

  2. Enthusiastic Software developer!
    Works at Medius R&D building a SPA...
    ... but also started jaimegonzalezgarcia.com
    Blogs at barbarianmeetscoding.com
    likes...
    fantasy
    sci-fi
    drawing
    Malin ???
    @vintharas

    View Slide

  3. for a
    Software Developer?
    Which is
    the most important tool

    View Slide

  4. View Slide

  5. View Slide

  6. it’s the BRAIN!!!!

    View Slide

  7. View Slide

  8. View Slide

  9. View Slide

  10. How is this talk gonna work?

    View Slide

  11. View Slide

  12. CREATE
    If Chuck Norris hits himself,
    he'll create an infinite loop
    by countering each blow,
    a paradox no one can solve.
    Except Chuck Norris.
    - Chuck Norris Fact

    View Slide

  13. View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. DEMO

    View Slide

  20. View Slide

  21. View Slide

  22. View Slide

  23. CTRL+T to find stuff
    CTRL+- to go back
    CTRL++ to go forward
    - Alexander Tuttle

    View Slide

  24. EXPLORE
    Chuck Norris can find gold
    in a silver mine.
    - Chuck Norris Fact

    View Slide

  25. View Slide

  26. View Slide

  27. View Slide

  28. View Slide

  29. DEMO

    View Slide

  30. View Slide

  31. View Slide

  32. View Slide

  33. Go To Word ReSharper Plugin
    (CTRL+T x 3 free text search)
    Mnemonics Plugin (1000 live
    templates)
    - Roland Wallin

    View Slide

  34. IMPROVE
    Chuck Norris uses Green-Refactor.
    The unit tests don’t dare fail on
    him.
    - Chuck Norris Fact

    View Slide

  35. View Slide

  36. View Slide

  37. View Slide

  38. View Slide

  39. View Slide

  40. DEMO

    View Slide

  41. View Slide

  42. View Slide

  43. View Slide

  44. Don’t Don’t use ReSharper
    - Pierre Fransson

    View Slide

  45. INTERLUDE
    ReSharper Basics

    View Slide

  46. ReSharper means
    MORE CONTROL
    to express yourself in code

    View Slide

  47. ReSharper means
    MORE AGILITY
    to express yourself in code

    View Slide

  48. ReSharper means
    MORE SPEED
    to express yourself in code

    View Slide

  49. ReSharper means
    MORE
    AWESOME

    View Slide

  50. ReSharper IN
    mouse OUT

    View Slide

  51. An there’s a ton of
    more stuff

    View Slide

  52. TEXT-EDITING
    LIKE A JEDI
    Chuck Norris was in all 6 star wars
    films as THE FORCE
    - Chuck Norris Fact

    View Slide

  53. …In the remotest galaxy…
    There’s
    Known as…
    planet
    a
    EARTH…

    View Slide

  54. Jaime ponders…
    True story

    View Slide

  55. View Slide

  56. View Slide

  57. Edit text at the speed of light
    Precise like a surgeon
    100% keyboard driven
    It’s on every platform
    Highly configurable
    Very extensible via plugins
    Great documentation
    It’s free
    Worthwhile long-term investment (since 1991/1976)

    View Slide

  58. Maximize what you can do with as few keystrokes as possible
    It’s all about editing text efficiently
    VIM Modes
    By using different modes you avoid the
    need to use weird combinations

    View Slide

  59. “You spend more time editing and
    manipulating text than writing it in the
    first place”
    That’s why the initial mode is the NORMAL mode

    View Slide

  60. The most important things are at the tip of your fingers
    You can move around
    right from the home row

    View Slide

  61. Vim commands build upon each other with
    logic and amazing results

    View Slide

  62. dw delete a word
    d2w delete two words
    di” delete inside “
    d delete

    View Slide

  63. d2wword
    delete
    two
    (operator, count, motion)

    View Slide

  64. i -> insert mode, ESC back to normal mode
    dd -> delete current line (and copy)
    y -> copy character (yank)
    p -> paste
    yy -> copy current line
    hjkl -> mode around (←↓↑→)
    u -> undo last change (undo)
    cw -> change word

    View Slide

  65. a -> insert after character (append)
    w -> go to the beginning of next word (word)
    b -> go to the beginning of last work (back)
    e -> go to the end of next word (end)
    dt) -> delete until the parenthesis
    di” -> delete inside quotes
    da” -> delete inside quotes and quotes
    d2/hello -> delete until second occurrence of hello

    View Slide

  66. Vim is design to tackle repetition
    Use the . command to repeat the last change
    You can use .

    View Slide

  67. I -> insert at the beginning of the line
    A -> append at the end of the line
    D -> delete until the end of the line
    C -> change until the end of the line
    O -> new line before the current line
    G -> go to the end of the file
    J -> append previous line

    View Slide

  68. View Slide

  69. DEMO

    View Slide

  70. View Slide

  71. View Slide

  72. View Slide

  73. CTRL+DELETE delete from cursor
    to the end of the word
    CTR:+BACKSPACE delete from
    cursor to the beginning of the word
    - Roland Wallin

    View Slide

  74. INTERLUDE
    ReSharper + VsVim

    View Slide

  75. INTERLUDE
    ReSharper + VsVim
    ReSharper + VsVim
    Create
    Explore
    Improve
    Macro Changes
    Precision
    Micro changes

    View Slide

  76. PROGRAMMING
    YOUR IDE
    Mortal Kombat is not difficult
    enough for Chuck Norris, so he got
    Immortal Kombat.
    - Chuck Norris Fact

    View Slide

  77. View Slide

  78. DEMO

    View Slide

  79. View Slide

  80. View Slide

  81. View Slide

  82. Use EditBox in Visual Studio
    ALT+hold mouse to create a box
    and edit a bunch of stuff
    - Jimmy Esbjörsson

    View Slide

  83. INTERLUDE
    ReSharper + VsVim
    + Metaprogramming

    View Slide

  84. INTERLUDE
    ReSharper + VsVim
    ReSharper + VsVim + Meta
    Create
    Explore
    Improve
    Macro Changes
    Precision
    Micro changes
    Extend
    Adapt
    Customize

    View Slide

  85. SPECIALIST
    FLOWs
    Chuck Norris special orders his
    pencils without erasers because
    Chuck Norris doesn't make
    mistakes.
    - Chuck Norris Fact

    View Slide

  86. View Slide

  87. DEMO

    View Slide

  88. View Slide

  89. View Slide

  90. View Slide

  91. Gated Check-ins to avoid breaking
    the build or committing broken
    tests.
    - Roland Wallin

    View Slide

  92. FINALE

    View Slide

  93. are not the point
    Gulp

    View Slide

  94. the point is

    View Slide

  95. code•think•improve
    find what works for you

    View Slide

  96. code•think•improve
    That’s my secret sauce for
    awesomeness.
    - Chuck Norris

    View Slide

  97. View Slide

  98. Thank you!!
    Any questions?

    View Slide

  99. And
    T-SHIRTis...
    the winner
    of the amazing

    View Slide