profile
viewpoint
Tim Jarratt tjarratt Pivotal Labs Paris, France (!!!) http://dev/null Just a cat wearing a tie, sitting on a macbook.

maxbrunsfeld/counterfeiter 431

A tool for generating self-contained, type-safe test doubles in go

maximilien/i18n4go 261

i18n tooling for Golang

cppforlife/BetterConsole 61

Xcode 4 plugin to improve console area

felipec/soap4r 47

SOAP4R is an implementation of SOAP 1.1 (W3C Note) for Ruby

tjarratt/babble 39

A small utility to generate random words in #golang

cppforlife/CedarShortcuts 36

Xcode 4 plugin for Cedar focused tests

tjarratt/BDDShortcuts 17

An Xcode 8+ extension with common shortcuts for Quick, Cedar, Kiwi, Specta, etc...

tjarratt/candiedyaml 2

YAML for Go

andymoe/nodefu 1

NodeFu is an experimental node.js hosting service

push eventtjarratt/Exercism

Tim Jarratt

commit sha 7de2861d70791c8901fb48223c94bb10b3939d7c

Happy little implementation for accumulate

view details

push time in 5 hours

push eventtjarratt/Exercism

Tim Jarratt

commit sha 1a9baee503782adfa2d4600b830a1cb94119141c

Remove unused variables

view details

push time in 2 days

push eventtjarratt/Exercism

Tim Jarratt

commit sha 8ec5e94cb891e9f2c49e8af1b7665d58951c4418

Add solution for Nucleotide counts

view details

push time in 2 days

push eventtjarratt/Exercism

Tim Jarratt

commit sha de88735e8b422bf03c4fc5896d57c02272705d84

Complete hamming. Using zip rather than simpler for loop or map

view details

Tim Jarratt

commit sha 30df9c20f980572a6b4c687066b7aecee1aaef61

More compact solution, with less nil checking

view details

push time in 3 days

push eventtjarratt/Exercism

Tim Jarratt

commit sha 3b5726b7a848dda04ca7bd7d0b704bc04b196639

Add solution for Grains

view details

push time in 4 days

push eventtjarratt/Exercism

Tim Jarratt

commit sha 97854f507c08ca718778ed7e78410c9d60808cd8

First implmentation for sum of multiples

view details

Tim Jarratt

commit sha 3ad8e7657b2a50472ce3b429ec1bcbba6550e0f2

Simple green for Bob

view details

Tim Jarratt

commit sha f7488abcdf7d4dc8c4866af88464f27753fbe15a

Simple green for SpaceAge

view details

push time in 8 days

push eventtjarratt/Exercism

Tim Jarratt

commit sha fc0f8355adc0737372b740eafd68614058d21510

Solution for RNATranscription exercise

view details

push time in 10 days

issue openedcrazymykl/rust-koans

Could not force a panic with arrays without adding a trait

Hello, I'd like to thank you for all the hard work that has gone into building this codebase. I've been telling myself for years now that I should learn rust, and with your help I've just started to write my first rust code. There's a lot I still don't know about rust, so this issue may be very naive.

After installing rust version 1.45.0 I began working through the koans until I got to arrays.rs which has a test to cause a panic with an invalid array index, as you can see below :

// Attempting to access an array at an index that is
// out of its bounds will cause an error. Let's cause
// that error in this example.
#[test]
#[should_panic]
#[allow(const_err)]
#[alllow(unconditional_panic)]
fn out_of_index() {
    let arr: [&'static str; 5] = ["rust", "is", "mostly", "for", "nerds"];
    arr[__];
}

However, I was unable to make this pass by simply using an invalid index such as 6. With a [little bit of googling])https://doc.rust-lang.org/reference/expressions/array-expr.html) I was able to find out that you can add a trait to allow for unconditional panics.

// Attempting to access an array at an index that is
// out of its bounds will cause an error. Let's cause
// that error in this example.
#[test]
#[should_panic]
#[allow(const_err)]
#[alllow(unconditional_panic)]
fn out_of_index() {
    let arr: [&'static str; 5] = ["rust", "is", "mostly", "for", "nerds"];
    arr[666];
}

It seems like one of the following is true

  • I don't fully understand this koan
  • the trait [allow(const_err)] should be changed to #[alllow(unconditional_panic)]

If the second is true I would be more than happy to issue you a pull request.

created time in 15 days

create barnchtjarratt/Exercism

branch : main

created branch time in 16 days

created repositorytjarratt/Exercism

created time in 16 days

push eventtjarratt/jlox

Tim Jarratt

commit sha 148b91ac82fffa7f11f3c04919bc663b9a87068d

Add parser support for the comma operator

view details

Tim Jarratt

commit sha cf7219efcdecde61a2cab52aac37cf5fe724796a

Add a very simple interpreter

view details

push time in a month

push eventtjarratt/jlox

Tim Jarratt

commit sha 9e4546dd1972ed29c6ccecd211af9ee77d5d66c4

Implement a very rudimentary parser

view details

push time in a month

create barnchtjarratt/jlox

branch : trunk

created branch time in 2 months

create barnchtjarratt/jlox

branch : master

created branch time in 2 months

created repositorytjarratt/jlox

My personal version of the code backing the oh-so-wonderful http://craftinginterpreters.com/

created time in 2 months

issue commentOpenDiablo2/OpenDiablo2

Spawn mobs

Is it also worth calling out that different mobs have different behaviors (and some at different times, depending on conditions)

  • those small spell casters in act 5 will sometimes run to corners
  • zealots in act 3 will run to engage you, but run away if you kill their healer
  • fallen will run to engage you but run away briefly if one of their camarade dies
nicholas-eden

comment created time in 2 months

push eventgrubby/grubby

Tim Jarratt

commit sha 075edf60621b4f653400c0d10c68deeacfe71ce9

Bump golang versions on travis

view details

Tim Jarratt

commit sha 1653d3a6999d9bec65c3f4f9a8654f39fb967ea6

Fix parser tests on edge of master Apparently recently there were some changes in how casting an int to a string works -- it really yields a string of one rune, which is precisely what this test had relied upon. Apparently some people were expecting it to do what fmt.Sprintf or strconv.Itoa do, which is not at all what we want here. This test takes the actual ascii value of the integer value from 33 to 126 and verifies we can parse them.

view details

Tim Jarratt

commit sha 6dfe8d1bd48b48e0235cf5d75bc9fad376d6c7cc

Update travis to build off trunk Long live Trunk !

view details

Tim Jarratt

commit sha e582a835a585db590ca5df80aca3d5f1cbd1e774

Update travis ci banner

view details

push time in 2 months

push eventgrubby/grubby

Tim Jarratt

commit sha e582a835a585db590ca5df80aca3d5f1cbd1e774

Update travis ci banner

view details

push time in 2 months

push eventgrubby/grubby

Tim Jarratt

commit sha 6dfe8d1bd48b48e0235cf5d75bc9fad376d6c7cc

Update travis to build off trunk Long live Trunk !

view details

push time in 2 months

push eventgrubby/grubby

Tim Jarratt

commit sha 1653d3a6999d9bec65c3f4f9a8654f39fb967ea6

Fix parser tests on edge of master Apparently recently there were some changes in how casting an int to a string works -- it really yields a string of one rune, which is precisely what this test had relied upon. Apparently some people were expecting it to do what fmt.Sprintf or strconv.Itoa do, which is not at all what we want here. This test takes the actual ascii value of the integer value from 33 to 126 and verifies we can parse them.

view details

push time in 2 months

push eventgrubby/grubby

Tim Jarratt

commit sha 075edf60621b4f653400c0d10c68deeacfe71ce9

Bump golang versions on travis

view details

push time in 2 months

create barnchgrubby/grubby

branch : trunk

created branch time in 2 months

issue commentcloudfoundry/cli

Remove flags from "cf login" command

Hey @staylor14. I agree that cf login is meant for interactive use. I think the fact that it can take username and password flags makes that fact less clear.

The outcomes I'd like to see are the following

  • humans can easily use cf login interactively to connect to the CF foundation they use
  • scripts can not easily use interactive commands such as cf login

There's probably a lot of ways to handle that (such as detecting whether the cf executable is currently attached to a TTY or not, changing the command line interface, et cetera). I mostly wrote up this issue in anger after the 1000th time I've seen a CI pipeline be stuck for hours and hours because someone used cf login in a script that is run on CI. When I talk to people about this, many are absolutely amazed to discover that cf auth exists.

tjarratt

comment created time in 3 months

created taggrubby/grubby

tagtoto

Grubby is an experimental ruby written in Golang

created time in 3 months

created taggrubby/grubby

tagfoo

Grubby is an experimental ruby written in Golang

created time in 3 months

more