- Is the code located such that reading at one location is sufficient to understand it? Or is it located in many locations?
- Is there any external documentation (wiki, onenote or word files)?
- Use of libraries with intuitive API
- wiki
- readme
[<AutoOpen>] | |
module AsyncResult | |
//from https://github.com/SuaveIO/suave/blob/master/src/Suave/WebPart.fs | |
type AsyncResult<'a,'e> = Async<Result< 'a,'e>> | |
let inline succeed x = async.Return (Ok x) | |
let bind (f: 'a -> AsyncResult<'b,'e>) (a: AsyncResult<'a,'e>) = async { | |
let! p = a | |
match p with |
using System; | |
namespace Namespace | |
{ | |
/// <summary> | |
/// Uri helpers | |
/// </summary> | |
public static class Uris | |
{ | |
/// <summary> |
using System; | |
using NUnit.Framework; | |
namespace Tests | |
{ | |
[TestFixture] | |
public class Uri_trycreate_can_do_path_combine | |
{ | |
public static Uri ToUri(string baseUrl, string path) | |
{ |
let verboseBuild verbosity (defaults:MSBuildParams)= | |
{ defaults with Verbosity = Some(verbosity) } | |
let quietBuild = verboseBuild Quiet | |
let withTargets targets (defaults:MSBuildParams)= | |
{ defaults with Targets = targets } | |
let rebuildBuild = withTargets ["ReBuild"] | |
let buildModeConfiguration buildMode (defaults:MSBuildParams)= | |
{ defaults with | |
Properties = |
/// <summary> | |
/// Decompose a flags enum value into the individual flags. | |
/// </summary> | |
public static T[] DeComposeFlags<T>(Enum value) | |
{ | |
var defaultV = default(T); | |
return Enum.GetValues(typeof(T)) | |
.Cast<Enum>() | |
.Where(e=> !defaultV.Equals(e) && value.HasFlag(e)) | |
.Cast<T>() |
## This is a directory/file filter for WinMerge | |
## This filter suppresses various binaries found in Visual C# source trees | |
name: Visual C# loose | |
desc: Suppresses various binaries found in Visual C# source trees | |
## This is an inclusive (loose) filter | |
## (it lets through everything not specified) | |
def: include | |
## Filters for filenames begin with f: |
REM http://ss64.com/nt/syntax.html | |
REM https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true | |
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild" "%~dp0\Somesolution.sln" |
var tigerWithTeethType = function(name){ | |
var that = this; | |
tigerType.call(this,name); // | |
this.bite = function(){ /*some code to bite the programmer ;)*/ }; | |
} |