Yet another rant about object-oriented programming, but mainly a collection of ideas stolen from functional programming to improve it.
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
/** | |
* Lightweight implementation of the famous `Maybe` type that safely wraps | |
* optional values without using `null` references. | |
* | |
* Add this file to your project and get three new namespaces: | |
* - `Option`: the base type, factories, operators (map, bind, filter, tap, | |
* flatten), and means to get the contained value. | |
* - `Option.Extras`: some utility functions like `IEnumerable.FirstOrNone()`, | |
* combinators (and, or, ...), and maybe-ready `TryParse` functions. | |
* - `Option.Async`: async variants of the operators so you can bind against |
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
// This needs to be executed multiple times, because it will crash with an out of memory exception. | |
// Once an assembly has been loaded with `Assembly.LoadFile()`, it cannot be unloaded again. The | |
// +10K DLLs to load will eat up all your memory, but the script will resume at the DLL that | |
// crashed the process, when it is restarted. | |
void Main() { | |
// Adjust those paths. | |
var resultStore = @"C:\Users\bert\Desktop\vs-style-baml-files.txt"; | |
var lastFileStore = @"C:\Users\bert\Desktop\vs-baml-files.last.txt"; | |
// Make sure this file exists (empty). |
- new release for every commit
- ability to skip release for certain commits
- Buzzword
- Short for REpresentational State Transfer
- Architectural style invented by Roy Fielding
- Set of constraints, rules, and conventions
- Very hard to do 100% right
- Replacement for RPC style applications