Skip to content

Instantly share code, notes, and snippets.

View natalie-o-perret's full-sized avatar
🐈
F#-ing

Natalie Perret natalie-o-perret

🐈
F#-ing
View GitHub Profile
@natalie-o-perret
natalie-o-perret / Online Pair Programming Tools.md
Last active June 20, 2018 08:35
Online Pair Programming Tools
<ranting enabled="on">
  Cause I am really pissed when interviewers asked me to share my screen over Skype during interviews:
  1. I have my private stuff on my comput-ah => privacy concerns, do you understand that? Do you actually consider the candidate?
  2. There are builtin tools these days... for God's sake... are you living in a fucking cave?

  And you interviewers if you are checking this out: Stop being freaking arrogant!!! 

  If the candidate has forgotten something don't laugh at him or her like a moron and MOVE the FUCKING ON! (it just shows how CONDESCENDING YOU ARE) 
 
@natalie-o-perret
natalie-o-perret / csharp-object-calisthenics.md
Last active December 27, 2019 13:31
Object Calisthenics in C#

Just a warm remainder about Object Calisthenics (in C#) for my golden fish memory that tend to be flushed every now and then...


Only One Level Of Indentation Per Method

AKA No nested stuff: increase readability.

WRONG
@natalie-o-perret
natalie-o-perret / alzheimers-disease.md
Last active February 16, 2019 21:46
Alzheimer's Disease

DSA

Complexity

Common Time Complexities

Name Running Time: T(n) Example
Constant O(1) Finding the median value in a list of sorted numbers
Logarithmic O(log n) Binary search
@natalie-o-perret
natalie-o-perret / linux-rust-setup.md
Created December 4, 2018 12:37
Linux Rust Setup

Rust Installation

Go to: https://rustup.rs

e.g. curl https://sh.rustup.rs -sSf | sh

Follow the instructions.

Install LLDB

@natalie-o-perret
natalie-o-perret / c#-to-rust.md
Created December 10, 2018 19:38 — forked from carols10cents/c#-to-rust.md
C# to Rust Cheat Sheet

Thanks to @seejee for making this for me!!!

C# to Rust Cheat Sheet

The goal of this is to have an easily-scannable reference for the most common syntax idioms in C# and Rust so that programmers most comfortable with C# can quickly get through the syntax differences and feel like they could read and write basic Rust programs.

What do you think? Does this meet its goal? If not, why not?

Variables

@natalie-o-perret
natalie-o-perret / Example.Decompiled.cs
Last active January 12, 2019 19:37
C# yield keyword compilation rewriting example
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
[assembly: CompilationRelaxations(8)]
@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 \
@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 / 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 / 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