Länkar till övningar som används för att illustrera agila principer:
http://tastycupcakes.com/
http://www.agilecoach.net/
måndag 22 november 2010
torsdag 11 november 2010
tisdag 9 november 2010
Öredev 2010 Dag 1 (tisdag) anteckningar
Koans, Katas, Oh my by Cory Foy
Corys slides and links can be found here: http://blog.coryfoy.com/2010/11/koans-and-katas-oh-my-slides-and-links-from-my-%C3%B8redev-2010-session/
Practice outside production is essential
Write dreyfus number 1-5 on head of others in conversation
Shu Ha Ri
Koans is a mindset, the actual excercises are katas.
Katas: You know solution, practice solving them
Code Kata origin: Dave Thomas
Katacasts
KataFizzBuzz
http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
TDD as you meant it (gojko.net)
Only refactor out production code
Code retreat - C0d3r3tr3at
Game Of Life
How do we try out stuff otherwise? We introduce in in our production code! Is that good?
Cory Haynes – Has done a lot of Javascript testing lately.
Scala Thinking by Ted Neward
Functional
- Order Does Not Matter à No notion of sequence like
· i=1;
· i =i+2;
- There is no shared state à always same return from function – no side effects.
- But: Sometimes order matter (fly before explodes)
- Scala says: There’s goodness in both functional and OO world.
What the outcome of combo of F and OO is not yet known, nobody knows!
Scala is impure FL, allows
- functions as first-class values
- strongly typed, type-inferenced
- immutable values
- expressions-not-statements
- typles, lists
- recursion
- pattern-matching
- currying, partial-application of functions
lambda calculus
f(x,y) = x + y
f(x,y,op) = x (op) y
add (x, y) = x + y
inc = add 1 (returns first class value function that takes one value)
Function that takes more than 2 parameters are too long – compare to Bob J
Currying à Pipelining
Val convertToInt = { x:String => x.toInt }
Val doubleIt = { x:Int => x * 2 }
Val sqrtIt = { x:Double => Mat.sqrt(x) }
Val pipeline = convertToInt andThen doubleIt andThen int2double andThen sqrtIt
RUN:
Scalac person.scala
Java –classpath ;. App
Javap Person (Shows java-code)
object App {
Unit testing? Yepp, but maybe Java TDD? Make unit testing first compile scala? Would be cool to integrate!
Using from Java?
Problems
lift framework
Tomorrow: Go to Java Bytecode!!!
Anything is better than java.
Why use scala: Unless you want to write tomorrows legacy code today.
måndag 8 november 2010
Katas etc
Katas
JavaScript
Video of Calculator Kata, in JavaScript, using Screw.Unit. IDE: RubyMine
http://anotherdave.wordpress.com/2010/01/13/calculator-tdd-kata-in-javascript/
Video of FizzBuzz using BDD framework Jasmine
http://www.youtube.com/watch?v=eqDfhdYK_wk
Blogs
Blog om katas etc
http://codekata.pragprog.com/2007/01/kata_kumite_koa.html
Övrigt
Kolla GoogleTechTalks på youtube
- FizzBuzz: http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
- String calculator: http://osherove.com/tdd-kata-1
- Game Of Life: http://coderetreat.org/gol
- Prime Numbers: http://katas.softwarecraftsmanship.org/?p=71
- Also see http://blog.coryfoy.com/2010/11/koans-and-katas-oh-my-slides-and-links-from-my-%C3%B8redev-2010-session/
- KataCasts – http://www.katacasts.com/
- Pragmatic Dave Thomas’s CodeKatas site – http://codekata.pragprog.com/
- Code retreat: http://www.coderetreat.com/how-it-works.html
JavaScript
Video of Calculator Kata, in JavaScript, using Screw.Unit. IDE: RubyMine
http://anotherdave.wordpress.com/2010/01/13/calculator-tdd-kata-in-javascript/
Video of FizzBuzz using BDD framework Jasmine
http://www.youtube.com/watch?v=eqDfhdYK_wk
Blogs
Blog om katas etc
http://codekata.pragprog.com/2007/01/kata_kumite_koa.html
Övrigt
Kolla GoogleTechTalks på youtube
söndag 7 november 2010
Planering
Det här är en sida om varför och hur man planerar.
Först ut: En sammanfattande video efter maildiskussion på Agile Sweden som kommer fram till att planera gör man i första hand för att bygga lagkänsla och man gör det så enkelt som möjligt.
http://www.youtube.com/watch?v=7JrJL7hHDmI
Först ut: En sammanfattande video efter maildiskussion på Agile Sweden som kommer fram till att planera gör man i första hand för att bygga lagkänsla och man gör det så enkelt som möjligt.
http://www.youtube.com/watch?v=7JrJL7hHDmI
Prenumerera på:
Inlägg (Atom)