Skip to content

Instantly share code, notes, and snippets.

View datenreisender's full-sized avatar
🏳️‍🌈

Marko Schulz datenreisender

🏳️‍🌈
View GitHub Profile
assertThat(afterScoring(3), scoreIsIncreasedBy(3));
assertThat(afterTeamAScores2(), scoreIs(0,2));
assertThat(after(Team.A).Scored(2), scoreIs(0,2));
assertThat(scorekeeper.countFor(Team.A).points(2), thenScoreIs(0,2));
assertThat(scorekeeper.countFor(Team.A, 2), thenScoreIs(0,2));
assertThat(scorekeeper.countFor(board.selectedTeam(), board.selectedPoints()), thenScoreIs(0,2));
@datenreisender
datenreisender / RomanNumbersTest.java
Created August 9, 2011 14:22 — forked from sanitz/RomanNumbersTest.java
Result of the roman numbers kata in Java
import static org.junit.Assert.*;
public class RomanNumbersTest {
enum Roman {
C(100), XC(90), L(50), XL(40), X(10), IX(9), V(5), IV(4), I(1);
final int decimal;
Roman(int decimal) { this.decimal = decimal; }
static String of(int n) {
@datenreisender
datenreisender / ccc_kata.rb
Created September 5, 2011 21:52 — forked from ah-itagile/ccc_kata.rb
Wie mir die Lösung von AH besser gefällt
require 'socket'
class CalcMessage
@@operators = {
'ADD' => :+,
'MULTIPLY' => :*,
'SUBTRACT' => :- }
def initialize request
@command, @id, *@numbers = request.split ':'
using NUnit.Framework;
namespace Algebra
{
[TestFixture]
public class AlgebraTest
{
[Test]
public void showsAdditionWorks()
{

Für weniger sensationelle Nachrichten

The Intercept berichtet, dass das FBI Soldaten empfiehlt, online keine Fotos von sich zu benutzen; sie sollten für Accounts lieber Cartoons oder ähnliche Avatar verwenden. Ich denke: Ja, und, wo ist die Sensation?

Und damit begehe ich genau den gleichen Fehler, den manche Kommentierende u.a. im Blog von Stefan Niggemeier immer wieder machen: Dort finden sich bei vielen Beiträgen sarkastische Kommentare nach dem Muster „Oh, da hat der Herr Niggemeier aber wieder einen ganz großen Skandal aufgedeckt! Was soll daran denn so aufregend sein?“

Aber warum soll es aufregend sein? Um die Welt zu verstehen, darf ich nicht nur auf die aufregenden, grellen Dinge gucken, ich muss auch die ruhigen Zusammenhänge erkennen.

Medien haben festgestellt, dass sie sich gut verkaufen lassen, wenn sie marktschreierisch daher kommen. Aber wenn ich das

Was mir in Ratgebern fehlt: Die Fehlschläge

Es gibt zu allen Themen dieser Welt Ratgeber, die einem erklären, wie man seine Zeit managt, Software baut, Kinder erzieht oder sein Geld anlegt. Was mir in diesen Ratgebern fehlt: Die Fehlschläge der Autoren.

Ich möchte nicht nur wissen, was der Autor mir empfiehlt. Ich will auch wissen, was der Autor probiert und verworfen hat, weil er damit auf die Nase gefallen ist. Und welche Ratschläge der Autor früher mal gegeben aber nun mittlerweile verworfen hat. Mit diesen Fehlschlägen könnte ich viel besser einordnen, ob seine Empfehlungen für mich passen.

Ausserdem würde ich dem Autor eher glauben. Ich hätte weniger den Eindruck, als ob da nur jemand sich was überlegt hat, was gut klingt (und sich gut verkaufen lässt), was er aber selber gar nicht ausreichend praktiziert hat.

@datenreisender
datenreisender / SoCraTes 2017.md
Last active August 27, 2017 18:44
SoCraTes 2017 summary

For me the SoCraTes was awesome! I am writing especially “for me” because I assume other people expect different things, e.g. less participatory, from a conference. And also for me, it took me some time to “get into” SoCraTes. What did help, was that I already knew some people (about half a dozen former colleagues were also there) and experienced other unconferences before.

Sessions

Some of the sessions I attended (beside bumblebeeing in and out of others, not mentioned here):

Career path as a developer

Only a bit interesting but my main outtake was to see – again – that others expect a lot of different things from their career and their employer. My age and having a lot of years and some “career twists” in our profession might have given me a different viewpoint here.

Introduction to FP

Keybase proof

I hereby claim:

  • I am datenreisender on github.
  • I am datenreisender (https://keybase.io/datenreisender) on keybase.
  • I have a public key whose fingerprint is 3445 F5A5 48FC 6AC4 5604 F18B DE9E 2689 7F99 E911

To claim this, I am signing this object:

When I hear a statement like “People like to improve”, I often cringe, because I hear an implicit generalisation. I assume the speaker means “All people like to improve”.

And you know how it is with generalisations: There usually are exceptions to the rule. And with a statement like this, the speaker seems to bluntly wipe out those exceptions.

But maybe I am wrong. Maybe the speaker really means “Most People like to improve”.

I want to worry less and presume more goodwill in others. By assuming, people usually do not mean “all”, but “most”.

Yes, there are cases, when the exceptions are really important and then it is valuable to question whether the speaker really has thought about them. Because the danger of forgetting exceptions lies in neglecting minorities.

@datenreisender
datenreisender / Eager validation in UIs.md
Last active January 8, 2019 07:43
Eager validation in UIs can be so annoying

I want to enter a timespan from 31.12.2018 to 1.1.2019 on the iPhone. After entering the start date the app prefills 31.12.2018 also as end date. I want to change the day from 31 to 1, but the app always changes it back to 31.

Me: Huh?

So I try to change the month from 12 to 1. Again, the app reverts it back to 12.

Me: Oh, you try to be clever and disallow the end date to be for the start date.

So I first change the year, then the month and than the day and everybody works.