Daniel Fry (@danfrydev) header
Daniel Fry (@danfrydev) profile picture

Software engineer in London. TypeScript and AI. VP SWE @jpmorgan @chase_uk

London
Joined February 2022
bun.sh vs create-react-app 🤯 #bunjs
123
713
202
5,164
TypeScript can check a credit card number's checksum (Luhn). One wrong digit is a compile error, no runtime code.
2
1
15
972
Replying to @thymikee
Needed this! Great work @thymikee and team 🚀
1
1
68
How it works and its limits (string literals only, hex only): github.com/danfry1/typescrip… Playground: typescriptlang.org/play?#cod…
38
#ggg is now a compile error. TypeScript types can check hex colors, alpha included, no runtime code.
1
3
277
I built a Spotify client for the terminal. waxon has vim keys, album art and synced lyrics, and it can play music by itself or drive the Spotify app. Free and open source. Try the demo in your browser 👇
5
1
6
2,658
Replying to @jmeistrich
Fast React Native on desktop 🚀 nice one
58
Replying to @SunWeatherMan
🤖 Made with AI
1
1
70
I read through every note and routine before using a Grok Bot template, and I'll probably keep doing it. But does @bot check templates for anything sketchy, or should everyone be reviewing them before they import?
1
114
Amazon's own page on it (ACR): amazon.com/gp/help/customer/… There's a toggle in Settings > Preferences > Privacy Settings too. I disabled the package as well: adb shell pm disable-user --user 0 com.amazon.tv.acr
58
My Fire TV was watching what I watch. A built-in service fingerprints what's on screen, even through HDMI, and sends Amazon the channels, shows and ads you watched. Joined the debloat trend and switched it off, plus 28 other packages, over ADB.
1
3
266
Replying to @danylo_pravda
Yes, every member. The import is typed with exactly the classes in the file, so if variant is "primary" | "outline" and there's no .outline, styles[variant] is a compile error. A plain string errors too (with strict on), since there's no index signature.
1
1
35
Typo a CSS module class and tsc fails. No codegen, no .d.ts files. typed-css-imports uses content mappers from the TypeScript 7.1 beta, so styles.buttn is an error in your editor and in CI. Completions update as you type in the CSS file. Sass works too. pnpm add -D typed-css-imports [email protected] github.com/danfry1/typed-css…
2
4
325
building on this: port 65536 is now a compile error. no runtime check, no recursion 🧱
turns out TypeScript types can enforce a min and max string length too
1
2
183