(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # By default, Ruby invokes class methods based on the number of parameters, ignoring | |
| # the parameter type. I was curious if I could implement the method invocation pattern | |
| # used in Lisp's CLOS, where you can have multiple methods that each accepts the same | |
| # number of paraemters, but with different types. | |
| # | |
| # Needs Ruby 1.9 | |
| class Object | |
| def self.defm(sym, *classes, &block) | |
| @defm_methods ||= {} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| using System.Collections; | |
| using System.Runtime.Serialization.Formatters.Binary; | |
| using System.IO; | |
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| public class NetworkClient : MonoBehaviour { | |
| public string host = "127.0.0.1"; | |
| public int port = 8000; |