
William Heslam
71 posts


@Jonathan_Blow Peel to go down the stack (gdb's up) and unpeel to go back up
English

@Jonathan_Blow Turing goes with "bury" and "unbury" here
en.wikisource.org/wiki/Proposed_…
English

@SimonHarrisCo I periodically turn the same inlay type hints on for TypeScript, then 5 minutes later inevitably turn them off because they're so noisy and interfere with typing.
Ctrl + alt can temporarily display them, but on my machine, that switches focus from the text pane to the file menu!
English

@SimonHarrisCo If they're both Some you get Some, otherwise there's nothing there but None!
English
William Heslam retweetledi

1/5 The Green Declaration For Women’s Sex-Based Rights has been initiated by members of the Green Party of England and Wales (GPEW) who believe in the right to advocate for women as a sex.
greenwomensdeclaration.uk
#ForWomenAndPlanet #GreenWomen #NoDebate

English

@ID_AA_Carmack As @sandimetz says, "prefer duplication over the wrong abstraction".
sandimetz.com/blog/2016/1/20…
Building up abstractions from smaller ones can reduce the cost of "unfactoring" two coincidentally similar things that have been accidentally combined!
English

Everyone knows that when you have similar code repeated several times that you should consolidate into a loop or function, but changing discrete variables into arrays and adding loops can have a small readability cost, so sometimes it can feel like a debatable choice for something small just repeated two or three times.
Usually, optimizing for readability is positive, but a requirement to keep two separate things aligned through future changes is an “invisible constraint” that is quite likely to cause problems eventually.
Many years ago, I would casually copy-paste-paste-paste-modify 4D vector statements, but now I almost never even do two related statements like that.
The hazard is when you combine two things that are close, but not exactly the same, and the strain induces complexity.
English

@williamheslam @kat_hipkiss Can we go mountain biking together soon?
English


A pretty cool feature was released in TypeScript 4.4.2 today.
You might not even notice it working its magic behind the scenes, but it'll help your code look a bit more natural and descriptive.
Here's my write up if you want to know more:
dev.to/willheslam/con…
#typescript
TypeScript@typescript
TypeScript 4.4 is here! Now with ✔ Smarter Control Flow Analysis ✔ Symbol & Pattern Indexers ✔ Stricter Checks ✔ Speed Improvements ✔ Inlay Hints ✔ Revamped --help and more! Read up more on our blog! devblogs.microsoft.com/typescript/ann…
English

There's an interesting new feature coming in TypeScript 4.4: control flow analysis of aliased conditional expressions!
I've written up an explanation of some of the benefits and limitations:
dev.to/willheslam/con…
English


For a few moments of my birthday, I am the best Nuclear Throne player in the world!
#nuclearthrone #NintendoSwitch
English

@kat_hipkiss @the8bitbigband This was great fun! Very excited for the new album @CRosenMusic is working on... fingers crossed it'll include a rendition of one of my favourites, Sim Broadway youtube.com/watch?v=w4brmV… !😛🤞

YouTube
English

Thanks for having me!
Hopefully now everyone can use the S combinator to great effect in their daily lives :)
JavaScript Exchange@JavaScript_Ex
All videos, presentations and links from last night's event ft. @pablo_magaz and @williamheslam can now be found in our Event Recap, here: bit.ly/3m1wnwn @deno_land @doodletweet #JavaScript #TypeScript #Deno #Google #V8 #React #RUST #softwaredevelopment #FullStack
English

