Skip to content

Instantly share code, notes, and snippets.

View natalie-o-perret's full-sized avatar
🐈
Meow.

Natalie Perret natalie-o-perret

🐈
Meow.
View GitHub Profile
@natalie-o-perret
natalie-o-perret / README.md
Created July 31, 2020 16:20
Expectations for an event store.md

Expectations

What I expect from some system managing storage of streams of events, intended to be used in an event-sourced system.

  • ability to create streams
  • ability to delete streams
  • ability to use optimistic locking on stream level
  • ability to write a batch of events in one stream atomically and durably
  • ability to read events from one stream
  • ability to read all events in the store ( the so called "$all" stream)
@natalie-o-perret
natalie-o-perret / Output.md
Created June 20, 2020 01:24
Cheap F# TypeClass Impl.
[|42; 42; 42|]
[42; 42; 42]
seq [42; 42; 42]
Some 42
Ok 42
@natalie-o-perret
natalie-o-perret / Program.cs
Last active June 16, 2020 21:52
Kevin Goss - Design and Code Tasks from Scratch
using System;
using System.Threading;
using System.Collections.Concurrent;
using System.Runtime.CompilerServices;
namespace CSharpStuff
{
// Alternative to referencing Microsoft.VisualStudio.Threading
public class SingleThreadedSynchronizationContext : SynchronizationContext
@natalie-o-perret
natalie-o-perret / machine-deep-learning-notes.md
Created February 18, 2019 22:08
Machine Learning / Deep Learning Notes

wip

@natalie-o-perret
natalie-o-perret / functional-programming-concepts.md
Last active February 18, 2019 22:07
Functional Programming Concepts

Algebraic structures groups

Monoids

Function that operates on a data type (or set)

Laws:

  • Associative, eg. 2 + 3 <=> 3 + 2
  • Binary Operations, eg. public static Foo Op(Foo x, Foo y)
  • With a neutral element (identity), eg. 2 + 3 + 0 &lt;=&gt; 3 + 2 + 0
@natalie-o-perret
natalie-o-perret / FunctionalCSharp.cs
Last active November 13, 2019 15:56
Zoran Horvat Principles
using System;
using System.Linq;
using System.Collections.Generic;
namespace ZoranHorvat
{
public static class FunctionalCSharp
{
public static void Main(params string[] args)
{
@natalie-o-perret
natalie-o-perret / 1 - 1.1 - Introducing Domain-Driven Design.md
Last active January 26, 2024 19:52
Domain Modeling Made Functional Notes

Importance of a Shared Model

Focus of developer:

  • Not to code
  • But to solve problems

Good thing to share a mental model with the:

  • Domain Experts
  • Development Team
  • Other stakeholders
@natalie-o-perret
natalie-o-perret / manjaro-setup.md
Last active September 26, 2020 15:03
Manjaro Install

pacman -Sy yay

yay -S \
dotnet-sdk \
jdk \
visual-studio-code-bin \
jetbrains-toolbox \
powershell-bin \
google-chrome \