- use nsdepcop instead of project dependencies for layering so you can keep things in the same project
- generic action result in controllers instead of base type
- explicitly register your controllers rather than letting Controller Activator use them
- ditch your IOC container entirely
- use ValueOf for ids instead of ints
- hard code all non-secret config values each environment in your source code (using code, not json) and choose the right one based off a single 'env' variable
- use OneOf instead of custom Result objects/ Exceptions for control flow
- partition by feature vertical, not layer
- use delegates for your ports/adapters
- isolate your domain and use composition root
This file contains hidden or 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
void Main() | |
{ | |
var events = new ObservableCollection<Event>(); | |
var state = new NotifyCollection<object>(); | |
events.OnAdd(next => | |
{ | |
if (next is UserWasAdded) | |
{ |
This file contains hidden or 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
.request{ | |
background-color: aliceblue; | |
} | |
.response.status200{ | |
background-color: f5fff0 | |
} |
This file contains hidden or 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 JSIL; | |
using JSIL.Meta; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class Program { | |
public static void Main () { | |
Dictionary<string, string[]> data = new Dictionary<string, string[]>(){ |
This file contains hidden or 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
namespace _10PrintHello.Apps.Things.SirenTables | |
{ | |
public class Comment | |
{ | |
public int postId { get; set; } | |
[Sortable] | |
public int id { get; set; } | |
[Sortable] |
OlderNewer