Basic unit type:
λ> replTy "()"
() :: ()
Basic functions:
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
Notes based on Greg Young's business perspective presentation | |
http://skillsmatter.com/podcast/agile-testing/greg-young-cqrs-event-sourcing-the-business-perspective | |
With a standard structural model we make assumptions of what the business may or may not want in the future. How can we presume to know what to track and what to discard. | |
CQRS/ES benefits: | |
* Captures behaviour explicitly, events carry the intent of users. | |
* We can derive any possible model about data that may be required. | |
* Allows domain experts and users to look at today in any way they may want to. |
class ActionDispatch::Routing::Mapper | |
def draw(routes_name) | |
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
end | |
end | |
BCX::Application.routes.draw do | |
draw :api | |
draw :account | |
draw :session |
public class Immutable { | |
public class Person { | |
public readonly string Firstname; | |
public readonly string Lastname; | |
public Person(string firstname, string lastname) { | |
Firstname = firstname; | |
Lastname = lastname; |
// ---------- | |
// Definition | |
// ---------- | |
class JDoc { | |
//--- Types --- | |
class ArrayBuilder<TOuter> { | |
//--- Methods --- |
Basic unit type:
λ> replTy "()"
() :: ()
Basic functions:
AWS recently released Versioning and Aliases for Lambda Functions. I'm going to outline how I've taken advantage of this to provide environmentally-aware Lambda function configurations in Python.
AWS Lambda doesn't currently support environment variables, so 12-factor-style configuration isn't an option. I'll be using seprate config files for each environment.
We're making two assumptions for this article: