This file contains hidden or 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
// from http://www.conwaysgameoflife.net/ | |
function conwaysgameoflife() { | |
var M = '', | |
nb = '" for "gwt:onLoadErrorFn"', | |
lb = '" for "gwt:onPropertyErrorFn"', | |
Y = '"><\/script>', | |
$ = '#', | |
Lb = '.cache.html', | |
ab = '/', |
This file contains hidden or 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
(ns sieve | |
(:use clojure.test)) | |
(defn square [x] (* x x)) | |
(defn seq-contains? [ls x] | |
(boolean (some #(= x %) ls))) | |
(defn multiple-of? [product divisor] | |
(and (= 0 (mod product divisor)) |
This file contains hidden or 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
/** | |
move positions | |
0 | 1 | 2 | |
---+---+--- | |
3 | 4 | 5 | |
---+---+--- | |
6 | 7 | 8 | |
*/ |
This file contains hidden or 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
# move positions | |
# | |
# 0 | 1 | 2 | |
# ---+---+--- | |
# 3 | 4 | 5 | |
# ---+---+--- | |
# 6 | 7 | 8 | |
class TicTacToe | |
module Patterns |
This file contains hidden or 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
SOLID => | |
Single Responsibility Principle (SRP) => object should only have single responsiblity | |
Open/Closed Principle (OCP) => should be open for extension , but closed for modification | |
Liskov Substitution Principle (LSP) => design by contract | |
Interface Segregation Principle (ISP) => many client interfaces are better than one general purpose interface | |
Dependency Injection Principle (DIP) => one should 'depend upon abstractions, not depend upon concretions' | |
http://en.wikipedia.org/wiki/Solid_%28Object_Oriented_Design%29 | |
Code smell - http://en.wikipedia.org/wiki/Code_smell |
This file contains hidden or 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
## basic workflow | |
* edit files | |
* stage the changes | |
* review your changes | |
* commit the changes | |
## basic[er] workflow | |
* edit files |
This file contains hidden or 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
rubyquiz.com | |
projecteuler.net | |
gogaruco.com | |
edgecase.com | |
pragmaticstudio.com |
This file contains hidden or 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
web | |
Rails, PHP, Python, Java, .NET | |
rails host | |
# shared hosting | |
* HostGator | |
* HostingRails |
This file contains hidden or 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
Ruby VMs | |
YARV | |
Rubinius | |
JRuby | |
IronRuby | |
MacRuby |
This file contains hidden or 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
First, I would like to start out by recommending that anyone who is | |
serious about software craftsmanship go out and read Pete McBreen's | |
book "Software Craftsmanship". I think it's a critical starting place | |
for these discussions, and on a more personal note, the book had a | |
huge impact on me. Probably the biggest reason I am a part of this | |
group is that I have no where else to go. :) I was a later-in-life | |
self-taught programmer who had a wife and child(ren) to support from | |
the day I wrote my first for loop, so I have no formal scientific or | |
engineering education, and I don't have the option of taking time off | |
to obtain one. And yet I want to become great at what I do. In my |