- Intro: https://www.youtube.com/playlist?list=PL697D36B35F92E9E4 (1)
- JS:
- Single page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript (2)
- Video: http://video.ch9.ms/ch9/DF01/97ECAC6F-5413-486A-B9D5-9EB60082DF01/MIX11HTM06_high_ch9.mp4 (5)
- Intermediate: http://ejohn.org/apps/learn (6)
- Philip Roberts: What the heck is the event loop anyway? https://www.youtube.com/watch?v=8aGhZQkoFbQ
This file contains 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
using System; | |
using System.Collections.Generic; | |
using Autofac; | |
using Nancy; | |
using Nancy.Bootstrapper; | |
using Nancy.Bootstrappers.Autofac; | |
using Nancy.Hosting.Self; | |
using Nancy.Routing; | |
public class Bootstrapper : AutofacNancyBootstrapper |
This file contains 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
//An implementation of basic non-negative integers, based on https://gist.github.com/akimboyko/7019648, | |
//but rewritten in a more F# idiomatic way | |
module Naturals | |
open System | |
type Natural = | |
| Zero | |
| Succ of Natural | |
member x.IsZero' = x = Zero |
This file contains 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
"Hopefully the third answer is right; but who knows, maybe I made a mistake; I’m just a human, I can throw exceptions as well." | |
"I am waving my hands on purpose here, this is very spaghetti like code. And spaghetti is great as food, but not good as code." | |
"flatMap will allow us to focus on the happy path. flatMap will take care of all the noise. flatMap is the dolby for programmers." | |
"Great programmers write baby code" | |
"it's obviously correct" |
This file contains 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 static class EnumerableEx | |
{ | |
public static IEnumerable<R> Select<T1, T2, R>(this IEnumerable<Tuple<T1, T2>> source, Func<T1, T2, R> f) | |
{ | |
return source.Select(t => f(t.Item1, t.Item2)); | |
} | |
} | |
Enumerable.Range(1, 10) | |
.Select(x => Tuple.Create(x, x)) |