32 comments

[ 2.8 ms ] story [ 76.3 ms ] thread
How do you play the game?
git clone, make sure TypeScript is installed, and open src/index.ts

Would be nice if this was exported to some TypeScript playground environment.

Easiest is to just press `.` on the GitHub repo to open the GH dev environment
wtf! I had no idea this existed!
I'm really surprised I've never even discovered that accidentally. If nothing else, this is a vastly superior way to search a repository.
It was added about a year ago so it's fairly recent. Before this another group had made this same thing on a different website (turns out a big advantage of Electron apps is they can be converted to web apps without TOO much difficulty). With that one you'd just replace the domain of the URL with whatever that website was
wait... WHAT!? how is such an amazing feature hidden behind some incredibly obscure keyboard shortcut? this completely changes how I'll explore Github.
(comment deleted)
what am I doing wrong. 'press . on the Github repo' ?
Just open the repository and type a dot on your keyboard. You don't need to select anything.
With the page open in your browser, press the "." key on your keyboard.
Too bad there is no such thing as HN comment of the week, this would be it.
I never get tired of seeing fun little things like this. Is there a way to make VSCode not truncate the type info?
What a beautiful little treat. For everyone curious, it took me less than ten minutes to play through. Well done!
Weirdly, a spider killing me isn't the worst thing I've seen written in Typescript.
For those wanting a TS Playground link: https://tinyurl.com/mw6pbpht
I made a PR to add this link to the readme.
This is neat. Can someone explain why the generic types extending string need to default to any in all these cases, like: `TDescription extends string = any` ?
It’s just so I can later reuse that type without having to pass in the generic. Like I do on lines 41 and 42
An interesting tidbit that I found in the source code is that it only accepts integers from 1 to 20. Perfectly sufficient for its use case, although not quite extendable as I would hope
So which one should now one study - TypeScript type system, RxJS operators, or the next generation of vomit produced by the Angular team? Together they compose extremely unfunny clusterfuck. For now my CVs all fall into a black hole, you better not fall off the employment train.