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
package com.bakins_bits.types; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
import org.apache.commons.lang3.builder.EqualsBuilder; | |
import org.apache.commons.lang3.builder.HashCodeBuilder; | |
import com.google.common.base.Preconditions; |
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
static class AsyncResultExtensions | |
{ | |
//added to chain awaitable methods | |
public static async Task<Result<TResult>> OnSuccessAsync<T, TResult>(this Result<T> result, Func<T, Task<Result<TResult>>> func) | |
{ | |
var res = result; | |
if (res.Failed) | |
return Result<TResult>.Fail(res.Error); | |
return await func(res.Value); |
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
We programmers spend so much of our time coding everyday, and there's a wealth of information about | |
HOW we work hidden in our commit histories. | |
In this talk I'll share some of the ideas we experimented with to analyze our commit history in order | |
to gain insight into the way we work, and how the quality of our codebase has evolved over time. | |
Along the way, there were some rather interesting findings! | |
All the code examples will be in F#, but you can easily apply the same techniques in any other language. |