This is missing by default in TS. So, if you look at the first example in this article, both `printUser` calls will error in Flow: www.petermekhaeil.com/til/ts-exact...
This is missing by default in TS. So, if you look at the first example in this article, both `printUser` calls will error in Flow: www.petermekhaeil.com/til/ts-exact...
Not by default, `$ReadOnly` is enforced via lint errors and code mods.
By deafult, Flow does have some nice guarantees that objects will always be "exact", meaning you can't add additional properties: flow.org/en/docs/type...
Flow has had immutable types built-in for a while now, all prefixed with `$ReadOnly*`: flow.org/en/docs/type...
Wrong, and I'll say so to your face. Just let me get 2 buses and an infrequent Thameslink.
Apparently the UK adult verification thing has basically banned blind people from half of the internet because they can't use the verification system π«£
Reading about how different TV channels covered the first moon landing:
Developer Voices with @krisajenkins.bsky.social
Igalia Chats
Brilliant piece of UX from @monzo.com if you open the app whilst on the phone to a potential scammer:
Isn't it built on top of QuickJS which does have a reference counting GC?
Wtf, you pay the Apple premium not to have to deal with these kind of cheap UX dark patterns.
Today we're thrilled to announce our effort to port the TypeScript compiler and language service to native code, gaining a 10x speed boost in build times and editor responsiveness!
devblogs.microsoft.com/typescript/t...
I appreciate that they have a very well-written spec as well: lynxjs.org/guide/spec.h...
It's interesting that they're using the strengths of different JS engines for different parts of their runtime. QuickJS for the "main-thread runtime" with it's low latency start-up times but lack of JIT, and the inverse of V8 or Hermes for the "background runtime".
I couldn't possibly confirm either way. Ninjas operate in secret...
The pretentious history of front end job titles:
2010: Web Developer
2015: Front End Developer
2020: Front End Engineer
>2025: Member of Technical Staff: Front End
We sing "zed" at the end of the alphabet song just to be dicks.
So, what, I have to remember how to do my job?
Me too Safari codebase, me too:
Chromebook of the '00s
Write short and efficient code. Otherwise, the GitHub UI completely freezes whenever a file is over 2000 lines long... it's clearly a feature, not a bug π .
I would recommend Thank Goodness You're Here! by @coalsupper.bsky.social in the Steam sale. Still my favourite game of the year.
Out of interest, apart from Quick.js does anyone know of any language interpreters which parse straight to bytecode, omitting the AST step?
Boyz II Gam-men
Yeah, it's a chunky one. "300 function calls" docs.google.com/document/d/1...
Very interesting! I love these kinds of snippets of programming history.
You sort of forget about it as everyone just relies on date utility libraries nowadays.
Only had a brief look into Temporal but the API seems much more intuitive. It's got to be better than this at least:
TIL, months are zero-indexed in the JavaScript Date class (but not years or days):
#javascript #typescript
*Unexpected Flow error in the CI*
absolute masterclass in calm, facts-based interviewing by @vicderbyshire.bsky.social