This is my current Gemfile for River.
source 'http://rubygems.org'
gem 'god' # monitoring of Goliath & Sinatra apps
group :default do
gem 'yajl-ruby', :require => 'yajl' # fast JSON dumping/parsing
end
This is my current Gemfile for River.
source 'http://rubygems.org'
gem 'god' # monitoring of Goliath & Sinatra apps
group :default do
gem 'yajl-ruby', :require => 'yajl' # fast JSON dumping/parsing
end
# ios | |
cd /Users/sent-hil/Documents/play/phonegap/sdks/lib/ios | |
./bin/create ../../../ios com.{name} {name} | |
cd ../../../ios | |
# android (doesn't work, use http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android instead) | |
cd /Users/sent-hil/Documents/play/phonegap/sdks/lib/android | |
./bin/create ../../../ios com.{name} {name} |
GOAL: Become a much, much better programmer: | |
Get better at Ruby and OOP in general, | |
Open black boxes and see what goes on underneath. | |
TIME: Oct 22 - Dec 20. | |
IDEAS (all open sourced): | |
* Learn how interpreters work. | |
Status: Finished Scheme interpreter in Ruby. Rewrite in Go? |
WARNING: this is a draft and the list is by no means complete.
"If we did the things we are capable of doing, we would literally astound ourselves." Edison | |
"When the student is ready, the teacher appears." Buddhist proverb | |
"Too busy to care." | |
Berklee College of Music keynote by Sivers: https://sivers.org/berklee6 | |
The Mystery Box by JJ Abrams: http://www.ted.com/talks/j_j_abrams_mystery_box.html |
See: https://github.com/dannycoates/node-inspector
# Install node npm
npm -g install node-inspector
# Start debugger
node-inspector &
node --debug launch.js
Monads are a way to chain functions together. Maybe monad (from Haskell) is used to chain functions together when the functions might fail. It assumes:
x ||= y # x = y unless x
-------------------------- | |
Interfaces vs. Duck typing | |
Duck typing isn't really about checking whether the things you need are there and then using them. | |
Duck typing is about just using what you need. | |
Interfaces are named collections of method signatures. | |
https://gobyexample.com/interfaces | |
-------------------------- |
http://blog.firsthand.ca/2010/08/questions-asked-in-ruby-on-rails-job.html | |
Q. What is polymorphism? | |
* Allows values of different data types to be handled using an uniform interface. | |
* 3 types: | |
* Overloading: Methods of same name exists in different class. | |
Ex: + method operates differently for integers and floats. | |
* Parametric: Methods of same name, but accept diff. parameters. | |
* Inclusion: The ability to redefine methods in inherited classes. |