Permalink
Browse files

Set up a sandbox.

  • Loading branch information...
1 parent 4f2f46b commit 6c5d67bab8ad1b863edc7a06a4b16513dc5c42f7 @r00k committed Apr 18, 2012
Showing with 38 additions and 6 deletions.
  1. +15 −6 notes.txt
  2. +23 −0 teacher_spec.rb
View
@@ -17,8 +17,8 @@ what holds intermediate vimmers back?
<Leader>w instead of C-w w
bind a ton of leaders
also watch for occasional operations that are particularly slow
- record a macro for turning var into a let
- record a macro for extracting a method (we're gonna do this later)
+ record a macro for turning var into a let (and we'll do this live)
+ record a macro for extracting a method
accept your typos and bind them
always be learning
understand accretion - have a cheat sheet
@@ -32,23 +32,32 @@ what holds intermediate vimmers back?
low-level
they use the arrow keys
+ they don't use command-t
+ they don't know important motions
+ w, t, f, i, a
+ dap (use whitespaced methods)
they never learned key concepts
registers
yanking into a register
:registers
"0
macros
+ turn var assign into a let
+ dump macro and then change method name
vimscript
+ steve losh's book
-contact/github info
+ pimp Drew's book
+
+ contact/github info
Todo:
- record macro for var into let
- practice macro for extract method (then do live)
+ practice macro for var into let
+ print notes
Setup:
text size huge
friendly resolution
invert colors
check registers for contraband
- make sure command-t works
+ verify teacher_spec.rb is good
View
@@ -0,0 +1,23 @@
+require 'spec_helper'
+
+describe Teacher do
+ context ".by_name" do
+ subject { Teacher.by_name }
+
+ it "sorts the result by name" do
+ bob = Factory(:teacher, name: 'Bob')
+ albert = Factory(:teacher, name: 'Albert')
+ subject.should == [albert, bob]
+ end
+ end
+end
+
+class Foo
+
+ def bar
+ end
+
+ def baz
+ end
+
+end

0 comments on commit 6c5d67b

Please sign in to comment.