I hereby claim:
- I am braddle on github.
- I am braddle (https://keybase.io/braddle) on keybase.
- I have a public key ASD_jGYFUuS_awDxCJagjplIL2c4GP2CdceXFixHLumjBgo
To claim this, I am signing this object:
#!/bin/bash | |
interruptLoop() { | |
countdown=10 | |
until read -s -n 1 -t 1; do | |
if [ $countdown -eq 0 ]; then break; fi | |
prefix="\033[0;34m " | |
if [ $countdown -lt 6 ]; then prefix="\a\033[1;35m "; fi | |
echo -ne "$prefix Time til next run $countdown\033[0K\r" | |
((countdown = countdown - 1)) |
docker buildx build --platform linux/amd64 -f Dockerfile . -t apple-silicon |
I hereby claim:
To claim this, I am signing this object:
import ( | |
"testing" | |
. "github.com/onsi/ginkgo" | |
. "github.com/onsi/gomega" | |
) | |
var _ = Describe("$SPEC$", func() { | |
}) |
package math | |
type Table struct { | |
Base int | |
Result int | |
} | |
type Random interface { | |
GenerateInt() int | |
} |
func (s *$SUITE$Suite) SetupTest() { | |
$END$ | |
} |
func (s *$SUITE$) Test$NAME$() { | |
$END$ | |
} |
type $SUITE$Suite struct { | |
suite.Suite | |
} | |
func Test$SUITE$Suite(t *testing.T) { | |
suite.Run(t, new($SUITE$Suite)) | |
} |
Writing tests before you write production code can be an intimidating concept, but there is no need to be scared.
During this talk we will look at the concept of Test Driven Development (TDD) and what it takes to write tests first.
We will look at:
The talk will finish with a Mob Programming session where attendees can join in on ‘TDD-ing’ a simple piece of code.
<?php | |
declare(strict_types=1); | |
namespace Braddle\Licence; | |
class StubRandomNumberGenerator implements RandomNumberGenerator | |
{ | |
function createRandomNumber(int $numberOfDigits): string | |
{ | |
$numbers = ''; |