- Simplicity !== Easy
- Easy is short term and can sometimes even introduce complexity
- Simplicity allows for easy while avoiding complexity
- Complect == tangling/braiding together
- Complexity is the result of something that has been complected
- Untangle complected code (e.g. decoupling of components)
- Do not chain calls (i.e. Law of Demeter)
- Consider Channels as form of asynchronous flow control
- Ask yourself all the time: "can this thing be moved? does it have well defined boundaries?"
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
// Original | |
public static Expression DispatchMethod( | |
Expression instance, | |
IEnumerable<MethodBase> methods, | |
IList<Type> typeArguments, | |
IList<Expression> arguments | |
) | |
{ | |
return methods | |
.Select(m => m is MethodInfo && ((MethodInfo) m).IsExtensionMethod() |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |