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 MvuCsharp | |
{ | |
public class Cmd | |
{ | |
public static readonly Cmd None = new Cmd(); | |
public static Cmd OfMsg(IMessage msg) => new Cmd(); // TODO | |
} | |
} |
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 FabulousSubModules | |
open Fabulous.Core | |
open Fabulous.DynamicViews | |
open Xamarin.Forms | |
module App = | |
type Model = | |
{ Global: GlobalModel | |
Page1: Page1.Model |
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 Foo | |
module Bar = | |
let RelationsReducer (state:RelationState) action = | |
match action with | |
| ActivitiesRequestSucceeded (id, items) | |
-> { state with FacilityActivity = state.FacilityActivity |> Array.filter (fun (f, _) -> f <> id) | |
|> Array.append (items |> Array.map (fun item -> (id, item.Id))) } | |
| _ -> state |
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
let rec ggT a b = | |
let r = a % b | |
if r = 0 || r = b then | |
b, 0, 1 | |
else | |
let q = a / b | |
let g, s, t = ggT b r | |
g, t, s - q * t |
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
#r "System.Net.Http" | |
open System.Net.Http | |
type Foo = Foo of HttpRequestMessage |
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.IO; | |
using Java.Security; | |
using Java.Security.Cert; | |
using Javax.Net.Ssl; | |
using Xamarin.Android.Net; | |
namespace NeunundsechzigGrad.Foo | |
{ | |
public class DroidTlsClientHandler : AndroidClientHandler | |
{ |
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
[<Test>] | |
let ``Die Backtick-Syntax ist eigentlich ganz cool, wenn man sich mal daran gewöhnt hat.``() = | |
Assert.IsTrue(true) |
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
#r "tools/FAKE/FakeLib.dll" | |
open Fake | |
open System | |
open System.IO | |
let Exec command args = | |
let result = Shell.Exec(command, args) | |
if result <> 0 then failwithf "%s exited with error %d" command result |
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
Pull-Requests funktionieren wunderbar für kleinere Sachen: Bugfixes, kleinere Features. | |
Alles, wo die Anzahl der Changes überschaubar bleibt und sich ein Review in kurzer Zeit | |
gut bewerkstelligen lässt. Siehe: http://blog.ploeh.dk/2015/01/15/10-tips-for-better-pull-requests/ | |
Die Frage ist, wie man das bei größeren Features organisiert. | |
Angenommen ein Entwickler bekommt die Aufgabe, ein komplett neues Modul in einer App | |
zu bauen. Bricht man die Aufgabe – was für die Reviews wichtig ist – in kleine | |
Einheiten auf, hilft das sicherlich auch schon mal allgemein bei der Strukturierung. |
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
public class PdfMerger | |
{ | |
private readonly IFileSystemUtility _fileSystem; | |
public PdfMerger(IFileSystemUtility fileSystem) | |
{ | |
_fileSystem = fileSystem; | |
} | |
public string Merge(params string[] paths) |