William Heslam

71 posts

William Heslam

William Heslam

@williamheslam

Katılım Temmuz 2009
936 Takip Edilen91 Takipçiler
Jonathan Blow
Jonathan Blow@Jonathan_Blow·
So, gdb has the “up” command, which means “go up the stack”, by which they mean further away from the top of the stack, i.e. down. If I wanted to fix this and remove confusion by using different nomenclature, what should that be?
English
125
1
231
46.4K
William Heslam
William Heslam@williamheslam·
@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
0
0
0
49
William Heslam
William Heslam@williamheslam·
@SimonHarrisCo If they're both Some you get Some, otherwise there's nothing there but None!
English
1
0
2
52
John Carmack
John Carmack@ID_AA_Carmack·
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
123
173
2.8K
1.7M
William Heslam
William Heslam@williamheslam·
My new chess strategy: always be castlin'
English
0
0
0
0
William Heslam
William Heslam@williamheslam·
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
0
3
5
0
William Heslam
William Heslam@williamheslam·
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
0
3
3
0
William Heslam
William Heslam@williamheslam·
Mutation is metaprogramming with line numbers
English
0
0
1
0