This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lean Software Development: An Agile Toolkit by Mary Poppendieck | |
http://www.amazon.com/gp/product/0321150783/ | |
Agile Estimating and Planning by Mike Cohn | |
http://www.amazon.com/gp/product/0131479415/ | |
Programming in Scala: A Comprehensive Step-by-step Guide by Martin Odersky | |
http://www.amazon.com/gp/product/0981531601/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ArcoIris | |
include Enumerable | |
def each() | |
yield "vermelho" | |
yield "laranja" | |
yield "amarelo" | |
yield "verde" | |
yield "azul" | |
yield "aniz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scala: | |
( _.bla() ) | |
Groovy: | |
{ it.bla() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'cucumber/rake/task' | |
namespace :cucumber do | |
Cucumber::Rake::Task.new(:plain) do |t| | |
t.cucumber_opts = "--format pretty" | |
t.step_list = %w{features/support/env.rb features/support/plain.rb features/step_definitions} | |
t.feature_list = %w{features/plain} | |
end | |
task :plain => 'db:test:prepare' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def method_missing(name, *args) | |
puts "<#{name}>#{args[0]}" | |
yield if block_given? | |
puts "</#{name}>" | |
end | |
html do | |
body do | |
h1 "My internal DSL" | |
div do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WebAppDeployer for jetty, which supports different war folders for different virtual hosts | |
package br.com.caelum.jetty; | |
import java.util.ArrayList; | |
import org.mortbay.component.AbstractLifeCycle; | |
import org.mortbay.jetty.Handler; | |
import org.mortbay.jetty.HandlerContainer; | |
import org.mortbay.jetty.deployer.WebAppDeployer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<path id="lib.classpath"> | |
<pathelement location="${build.lib.dir}/retroweaver-2.0.5.jar"/> | |
<pathelement location="${build.lib.dir}/retroweaver-rt-2.0.5.jar"/> | |
<pathelement location="${build.lib.dir}/backport-util-concurrent.jar"/> | |
<pathelement location="/usr/java/j2sdk1.4.2_16/jre/lib/rt.jar" /> | |
<pathelement location="${lib.dir}/bsf.jar" /> | |
</path> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sistema { | |
public void cadastra(Usuario usuario) { | |
mensageiro.enviaEmail(Emails.CONFIRMACAO, usuario); | |
// ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sistema { | |
@EnviaEmail(Emails.CONFIRMACAO) | |
public void cadastra(Usuario usuario) { | |
//... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Bicicleta { | |
@Transient | |
private double velocity; | |
} |