Notes and recommended reading from my talk at Yow! on The Future of Software Development
Feel free to talk to me on twitter: @chadfowler
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreidn5o3js24ezzhq3p5h5qaprd3xtnwdopdmuojpl523zvcisinghy ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreidn5o3js24ezzhq3p5h5qaprd3xtnwdopdmuojpl523zvcisinghy ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
# How to find out where a method comes from. | |
# Learned this from Dave Thomas while teaching Advanced Ruby Studio | |
# Makes the case for separating method definitions into | |
# modules, especially when enhancing built-in classes. | |
module Perpetrator | |
def crime | |
end | |
end | |
class Fixnum |
require 'csv' | |
module Exporter | |
DEFAULT_EXPORT_TABLES = [ Invoice, InvoiceItem, Item, Merchant, Transaction, User ] | |
DESTINATION_FOLDER = "tmp/" | |
def self.included(klass) | |
klass.extend ClassLevelMethods | |
end |
Notes and recommended reading from my talk at Yow! on The Future of Software Development
Feel free to talk to me on twitter: @chadfowler
function(thing) { alert(thing) } // l33t |
We're going to go to this place called Lashouk by the Cinema Hotel. It's really good food-, drink-, and atmosphere-wise. We'll go around 7:45 or so. If anyone wants to join in, it's on Dizengoff Square. |
require 'fileutils' | |
Dir.mkdir("hello") unless Dir.exist?("hello") | |
FileUtils.mkdir_p("/tmp/foo/bar/baz/this/is/easy/no") | |
Dir["/etc/**/*"].each { |f| puts IO.readlines(f).grep(/chad/i) rescue nil} |
Welcome to Scala version 2.10.0 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_51). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> import play.api.db.slick.Config.driver.simple._ | |
import play.api.db.slick.Config.driver.simple._ | |
scala> new play.core.StaticApplication(new java.io.File("."))[info] play - database [default] connected at jdbc:mysql://localhost/scala_speakers?characterEncoding=UTF8 | |
[info] play - Application started (Prod) | |
res0: play.core.StaticApplication = play.core.StaticApplication@4aa65618 |
module Foo | |
def self.included(klass) | |
klass.extend ClassMethods | |
end | |
module ClassMethods | |
def foo(name) | |
(class << self; self; end).send :attr_accessor, name | |
end | |
end | |
end |