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
public class ItemPrinter { | |
public static void printItem(Integer i) { | |
System.out.println(i.toString()); | |
} | |
public static void printItem(String s) { | |
System.out.println(s); | |
} | |
} |
Testing JavaScript isn't just a thing you can read about in children's fairy tales.
This is just a scratch pad of everything I find. As the really good resources start to float to the top, I'll transition them to a more permanent GitHub repo.
- Test-Driven JavaScript Development [book]
- JavaScript Testing Recipes [book]
I stumble across a lot of interesting JavaScript resources (articles, tutorials, videos, etc.) day to day. Many I don't have time to read, at least not right away, so I am dumping them here. Some of these resources might suck, so bear with me.
- Ways Men in Tech are Unintentionally Sexist
- Trouble at the Koolaid Point (on Wired)
- The Other Side of Diversity
- Unconcious Bias at Work
- What Men (and Everyone, Really) Can Do To Support Gender Equity in Tech
- So You Want To Be An Ally
- Feminism: How to Be A (Male) Ally
- [Tools for White Guys who are Working for Social Change… and other people socialized in a society based on domination](http://www.xyonline.net/content/to
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
puts '=====' | |
puts 'defining the Parent class with #poop' | |
class Parent | |
def poop | |
puts "💩 💩" | |
end | |
end | |
puts 'defining the Child < Parent class with #poop' |
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
# with postgres DDL | |
execute SQL<<- | |
create table users( | |
... | |
created_at timestamptz not null, | |
updated_at timestamptz not null | |
); | |
SQL | |
# with Rails DSL |
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
> {a: 1, b: 2, c: 3}.slice(:a) | |
=> {:a=>1} | |
> {a: 1, b: 2, c: 3}.slice!(:a) | |
=> {:b=>2, :c=>3} |