David Shepherd

125 posts

David Shepherd

David Shepherd

@DavidShep

Beigetreten Kasım 2019
395 Folgt25 Follower
David Shepherd
David Shepherd@DavidShep·
@BHolmesDev Literally just context + useSyncExternalStore, stop with adding slop on slop and be done.
English
0
0
2
259
Ben Holmes
Ben Holmes@BHolmesDev·
⚠️Before you reach for React Context, watch this!
English
16
23
419
28.4K
David Shepherd
David Shepherd@DavidShep·
@Hasen_Judi C#/ F# (.net) don’t. You have value types via the `struct` keyword/ attribute. Very cool.
English
0
0
4
393
ハセン حسن
ハセン حسن@hasen_95dx·
I can't stress enough the importance of having value types in a programming language. It is one of Go's best feature that structs have value semantics. All other GCed languages have Java-like reference only semantics for objects. Huge mistake.
English
21
7
141
21.3K
borar
borar@Savlambda·
@ijrussell @raimeyuu I think there is a misunderstanding in this discussion. The question is about how to enforce data invariants. Basically the same goal as OO encapsualtion, regardless of (im)mutability. Example invariant: a data type for a person including age; age must be at least 0.
English
1
0
1
0
Damian Płaza
Damian Płaza@raimeyuu·
#fsharp imagine I am transitioning from OO lang: how would you describe working with encapsulation in FP? Possible? Better when avoided?
English
8
4
8
0
David Shepherd
David Shepherd@DavidShep·
@tannerlinsley if you want to know how simple it was to integrate #tanstack with a v. different programming model this #L26" target="_blank" rel="nofollow noopener">github.com/dsshep/Feliz.T… is more or less all that's needed to maintain state. To fit into the #elm model, flexrender is implemented here #L128" target="_blank" rel="nofollow noopener">github.com/dsshep/Feliz.T…
English
1
0
0
0
David Shepherd
David Shepherd@DavidShep·
@jackdomleo7 They have the best trackpads in the history of trackpads, maybe ever.
GIF
English
0
0
1
0
@khalidabuhakmeh@mastodon.social
@[email protected]@buhakmeh·
Found a downside to Minimal APIs… what’s wrong with this picture? First correct guess gets a virtual high-five.
@khalidabuhakmeh@mastodon.social tweet media
English
7
1
34
0
David Fowler
David Fowler@davidfowl·
We need pattern matching over generic arguments: if (value is ValueTask<? T> task) { T arg = await task; } #csharp #dotnet
English
18
7
169
0
(((Dan Hodges)))
(((Dan Hodges)))@DPJHodges·
Currently in the pub, watching the build up to the football, looking at people on Twitter going nuts about how we’re still in lockdown...
English
629
33
498
0
The Stray Ferret
The Stray Ferret@thestrayferret·
Have you seen this #Ripon man? Police are looking for him in connection with offences including kidnap and robbery. buff.ly/3tKBm8q
English
1
1
3
0
David Shepherd
David Shepherd@DavidShep·
@jimseven You should have a look at moka pots for dark roasts. There’s something about them being able to pull flavour out that they just can’t for lighter roasts. 🤔
English
0
0
0
0
James Hoffmann
James Hoffmann@jimseven·
Most of the videos I make end up focusing on lighter roasts of coffee, which I might enjoy but I know lots of people don’t. So today’s video is about getting the best out of darker roasts: youtube.com/watch?v=lrRdRx…
YouTube video
YouTube
English
13
16
235
0
David Shepherd
David Shepherd@DavidShep·
@ajbkr How come you’re using MySQL? Have you heard of our lord and saviour PostgreSQL?
English
0
0
0
0
(((Dan Hodges)))
(((Dan Hodges)))@DPJHodges·
@AlistairHaimes So given your English degree, what part of "might ease us back towards normality" are you struggling with.
English
5
0
3
0
(((Dan Hodges)))
(((Dan Hodges)))@DPJHodges·
Masks. "No!". Social-distancing "No!". Test and Trace. "No!". Vaccine passports."Hell no!!!". Everything that's proposed that might ease us back towards normality just a little bit faster the Lockdown Deniers oppose.
English
653
72
544
0