Hackle Wayne

590 posts

Hackle Wayne

Hackle Wayne

@hacklew

Experienced OO programmer turned functional advocate. workshops, conferences, blog, thoughts and rant

Katılım Temmuz 2012
195 Takip Edilen151 Takipçiler
Hackle Wayne
Hackle Wayne@hacklew·
@branmcconnell @mattpocockuk Possibly? AFAIK an array literal can't be cast this way. Try the form `foo: P -> Q<P>` where P is the tuple (not just array) of number literals, and Q<P> checks if P satisfied ArrayWithRequired, or never. Uniqueness & inclusion can be checked by building a map? also in Q.
English
0
0
1
9
Hackle Wayne
Hackle Wayne@hacklew·
@d_rawers hehe it's a vague reference to how the result wears something inside on the outside 😛 sequence :: t (m a) -> m (t a)
English
0
0
3
14
David Rawson
David Rawson@d_rawers·
@hacklew Don't get it sorry 😢 Can you explain it please?
English
1
0
0
24
Tony Dinh
Tony Dinh@tdinh_me·
If you don't have more than 100 full-time devs working on the same repo, you don't need TypeScript.
English
94
19
406
133.4K
Hackle Wayne
Hackle Wayne@hacklew·
If you want an electrician, don't hire the entire construction team. Because the #1 rule of dependency management: "Depend only on what's needed" It's simple, and your favourite IoC container mostly likely breaks it. Just blogged hacklewayne.com/down-isp-ioc-d…
English
1
1
3
260
Hackle Wayne
Hackle Wayne@hacklew·
@d_rawers I empathise with the "nonobvious code" sentiment but code like, ReadonlyList<int> numbers = new List<int>(...) clearly communicates the author's intention (constraints) that "numbers" should not be mutated. 👍 Being able to expose capacities selectively is essential to ISP.
English
0
0
1
12
David Rawson
David Rawson@d_rawers·
@hacklew I like this, and the discussion of separating data and behavior was apposite (this came up recently at work). You might be interested in another oblique criticism of LSP in A Philosophy of Software Design ("different types for declaration and allocation")
English
1
0
1
57
Hackle Wayne
Hackle Wayne@hacklew·
aight really? you be arrested for having too much fun there #haskell peeps...
Hackle Wayne tweet media
English
1
0
18
1.5K
Hackle Wayne
Hackle Wayne@hacklew·
If you get monads, but not yet the State monad, this one is for you! "...it brings non-local states, it encodes a function, and often appears to be dark magic." [blogged] State Monad: a bit of currying goes a long way hacklewayne.com/state-monad-a-… #Haskell
English
2
2
13
1.7K
Phil Nash
Phil Nash@philnash·
Ok, anyone got any idea how to handle this? I am building my @astrodotbuild site using @typescript. I have some data in a yaml file which I am importing using the yaml plugin. How would I assign types to the data in the yaml file?
Phil Nash tweet media
English
3
0
1
1.4K
Joan Llenas
Joan Llenas@joanllenas·
@hacklew @FlavioCorpa "he enjoyed a honey-moon with Monads such as Maybe, List and Either, but State appears to be next-level" This is a testament to what your friend said github.com/joanllenas/has… Guess what chapter 23 was all about! Maybe I should read your article and give it another try :)
English
2
0
2
44