Skip to content

Instantly share code, notes, and snippets.

@MartinKoerner
MartinKoerner / Rubbish ruby code
Last active March 13, 2016 10:58
Implement the most rubbish ruby code you can think of...
DONE
- warnings are disabled
- Useless error message
- bad naming
- block formatting
- UTF8 variable names
- multiple commands per line
- different styles for string creation
- aliasing classes
- extend ruby core classes
@MartinKoerner
MartinKoerner / closure_tree_benchmark
Last active February 12, 2016 15:19
Small benchmark for closure tree specs
require 'benchmark'
TEST_COUNT = 20
overall_seconds = 0
tm_outer = Benchmark.measure do
TEST_COUNT.times do |n|
puts "Test run #{n+1}"
tm_inner = Benchmark.measure do
`rake spec all`