frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Concise TypeScript Book

https://github.com/gibbok/typescript-book
135•javatuts•8h ago

Comments

gnabgib•8h ago
Popular in 2023 (215 points, 91 comments) https://news.ycombinator.com/item?id=36641634
SilverSlash•6h ago
I don't know if I'd call a book with 61 chapters "concise".
locknitpicker•6h ago
It didn't included the JavaScript subset, so that's pretty concise.
forgotpwd16•4h ago
They aren't book-length chapters. E.g. https://gibbok.github.io/typescript-book/book/strictnullchec... is one paragraph, https://gibbok.github.io/typescript-book/book/void-type/ is 1 sentence plus 1 3-line example. Near all of those "chapters" seem to be bit more than that. 1~2 paragraphs plus 1~2 code examples.
logicallee•1h ago
you're not meant to scroll ahead, the intention is to create a time sink in each chapter. I figured this out after reading the first chapter forever, then I was like "wait a second this is the concise book? how can I read the introduction forever?"
locknitpicker•6h ago
I was wondering what is the community's opinion on the official TypeScript Handbook

https://www.typescriptlang.org/docs/handbook/intro.html

wk_end•4h ago
Speaking only for myself, not for the community:

It should be your first resource when looking something up, it's usually quite clear and often helpful, but I find it somewhat confusingly organized and rather incomplete. It's more of a reference than a tutorial or guidebook, per se.

throwthro0954•4h ago
I prefer this over everything else I've seen so far, it actually is concise.
throw_await•4h ago
Good, but it only gives a very brief overview, no explanations
epolanski•3h ago
I don't know, the number of people that know what a mapped or sum types are is strikingly low, let alone some of the more advanced concepts or even tsconfig.

I've always thought that typescript is in the real of technologies that developers use for years but never really master such as css. Maybe not as severe as css, but it's the same direction.

tresil•4h ago
I show people coming from object oriented backgrounds this page first in order to correct the perception that TypeScript is best used with that programming paradigm.

https://www.typescriptlang.org/docs/handbook/typescript-in-5...

locknitpicker•3h ago
> I show people coming from object oriented backgrounds this page first in order to correct the perception that TypeScript is best used with that programming paradigm.

I think you're confusing things. Languages like Java or C# impose an artificial constraint that free functions don't exist and functions can only exist as members of a class. You don't see this constraint in OO languages such as C++.

Also, it's a simplistic assertions to claim that classes have no place in TypeScript or aren't idiomatic. That's just nonsense based on specious reasoning. Classes/objects with function members are still the best way to implement some features. I'm seeing too many people writing absurd typescript code who go through great lengths to avoid a class because they think a class is taboo. They pull out convoluted stunts like passing closures as object members, just to avoid the sin of rolling out a class.

tresil•2h ago
To clarify, I’m not claiming that classes have no place in Typescript. What I’m saying is that many people coming from OOP backgrounds tend to have the mistaken belief that TypeScript is best written with that paradigm. While it can be in some cases, it should not be assumed to be the best way. In fact, the documentation linked above asserts that “free functions over data” are extremely powerful, and “tend to be the preferred model for writing programs in JavaScript.”
primitivesuave•3h ago
I love the Typescript handbook, but wanted the examples to be "runnable". It turns out that the TypeScript compiler runs pretty fast in the browser for trivial code snippets, so I threw together https://ts.coach (TypeScript handbook with code examples that execute in the browser + instant type checking)
epolanski•3h ago
This is neat, but has the same issue of all similar projects: mobile unfriendly editors for snippets editing.
primitivesuave•3h ago
Thank you for the excellent feedback. I had this realization a while back that I'm a mobile user during "consumption" (e.g. browsing HN late at night), but a desktop user for "production" - now I see how it applies to this side project as well. Also, I still need to figure out some React performance issues which make it virtually unusable on pre-2020 machines :(

This comment actually invigorated me to try the site from my phone and improve the experience, so I sincerely thank you for the motivation.

epolanski•1h ago
The typescript documentation has the same issue.

I've considered doing a similar project to yours writing or using some mobile friendly editor and hooking it directly into TypeScript's LSP, which can be easily added to a web page, but was never motivated/disciplined enough to push through it.

phplovesong•5h ago
I know why typescript "succeeded", but always wonder what kind of web we would have if infact Haxe had become more popular for web in the early days. My guesstimate is we would have had bundlers in native code much, much earlier, and generally much faster and more robust tooling. Its only now we see projects like esbuild, and even TS being written in a compiled language (go), and other efforts in rust.

Also it would have been interesting sto ser what influence Haxe would have had on javascript itself

llmslave3•5h ago
Or Lua... :>
forgotpwd16•3h ago
Then comparison will've been Haxe to TypeLua rather TypeScript. Typing addition seems inevitable.
Tade0•2h ago
Same could be said about Java Applets or Flash and, in a way, about Elm. We've been there and this approach doesn't work.

The creators of TypeScript realized early on that people don't need yet another ecosystem, but a migration path that won't pause development.

phplovesong•1h ago
Thats true, but comes with a cost. TS has become an incredibly complex language, even it only provides types. Thats being said is will always lack features as it only "javascript".

Haxe has a more robust, but simpler typesystem, that comes from ocaml.

Haxe also compiles to C++ so making native tools would have been a breeze.

TS sits at the top chair, but there is many "better" options out there, like Elm (even its kild of a dead languge) and ReScript/ReasonML etc.

TS is good, but will never be a perfect language for javascript. It will always be a mediocre option, that is growing more and more complex in every new release.

skybrian•9m ago
I assume you meant that the TypeScript compiler is being rewritten in Go. (At first I read it as something entirely different.)
tkiolp4•3h ago
Please provide a PDF as well. I cannot read books in HTML format because I need to keep track of where i left. That means I either have to leave the browser tab open (but this is prone to accidentally closing it) or I need to bookmark every progress, which creates noise in my bookmarks. With a PDF I simply leave it, the reader remembers my last page. I also have a sense of progress with pdf.
mr_mitm•3h ago
https://github.com/gibbok/typescript-book/tree/main/download...
MORPHOICES•3h ago
When reading succinct technical documentation, I see how so many times the documentation attempts to cover everything possible. ~

Most developers want guidance instead of exhaustive details. Developers want to know where they should focus their time and where they can afford to skim over the documentation. And they want to know where they should expect to encounter problems and difficulties.

A simple framework to use when producing succinct technical documentation is to divide the documentation into three sections.

Maps: Identify what type of problems this documentation can assist you with

Defaults: Understand what the majority of people will experience and what to do about it.

Exceptions: Identify when to deviate from the default recommendations.

Succinct documentation does an excellent job of providing clarity by eliminating edge cases. The more clearly the user understands the documentation the more useful the documentation will be during the time where the user is experiencing the most confusion.

The danger is the temptation to simplify the information contained within the documentation to such an extent that the user is left with a large amount of missing information and no method for seeking assistance with incomplete information.

What situations have you encountered where the information contained within short technical documentation has been more helpful than official technical documentation? ~

WillAdams•1h ago
The thing is, documentation isn't a monolithic thing --- it really needs to be sub-divided/categorized into subsets which are useful to specific categories of folks working on, or working with, a project:

https://diataxis.fr/

(originally developed at: https://docs.divio.com/documentation-system/)

divides into 4 types of documentation:

- Tutorials

- Explanation

- How-to Guides

- Reference

My own documentation got much better when I broke it up along those lines.

embedding-shape•2h ago
> Some of the benefits of TypeScript:

> Access to ES6 and ES7 features

> Cross-Platform and Cross-browser Compatibility

Damn, I wasn't aware that since I avoid TS, I cannot use ES6 and ES7, and my vanilla JavaScript doesn't run in all browsers :(

I guess over-hyping the technology that the book is about is to be expected, but it still leaves a slightly sour taste in my mouth when people oversell what they're talking about it.

chrisldgk•1h ago
I think the point is that you can write your code using ES6 and ES7 and the TypeScript compiler allows you to output ES6 or ES5 compatible code if you want to make sure it runs in older browsers as well. You can do that with non-TypeScript ES code as well but you’re bound to use another transpiler. With TypeScript you get it „for free“ since you need to compile your code either way.
embedding-shape•9m ago
Ah yeah, kind of like how I get a drink for free if I get the hamburger menu, even if it costs more? Kind of weird perspective, but I can accept that it's something zealots tell themselves so "we're doing it differently" actually computes for them.

Show HN: Atom – The Open Source AI Workforce and Multi-Agent Orchestrator

https://github.com/rush86999/atom
2•rush86999•1m ago•0 comments

AI Psychosis, AI Apotheosis

https://www.oblomovka.com/wp/2026/01/07/ai-psychosis-ai-apotheosis/
2•baxtr•3m ago•0 comments

Why Finding Motivation Is Often Such a Struggle

https://nautil.us/why-finding-motivation-is-often-such-a-struggle-1260605/
1•Brajeshwar•3m ago•0 comments

Covid lockdowns changed the beak shape of city birds

https://newatlas.com/biology/lockdowns-beak-shape-birds/
2•Brajeshwar•4m ago•0 comments

Free Printable Coloring Pages

https://coloringbook.im/
1•Evan233•4m ago•1 comments

Non-Traditional Profiling

https://www.mgaudet.ca/technical/2026/1/8/non-traditional-profiling
1•lumpa•5m ago•0 comments

Ask HN: One-Shot or Iterate?

1•indigodaddy•5m ago•0 comments

Why does AI suck at making clocks?

https://www.popsci.com/technology/ai-making-clocks/
1•Brajeshwar•5m ago•0 comments

Praxis (Proposed City)

https://en.wikipedia.org/wiki/Praxis_(proposed_city)
1•gehwartzen•8m ago•0 comments

Implementing a Tiny CPU Rasterizer

https://lisyarus.github.io/blog/posts/implementing-a-tiny-cpu-rasterizer-part-1.html
1•todsacerdoti•11m ago•0 comments

China applies to put 200K satellites in space after calling Starlink crash risk

https://www.scmp.com/news/china/science/article/3339493/china-applies-put-200000-satellites-space...
1•nkurz•13m ago•1 comments

U.S. releases new dietary guidelines [video]

https://www.youtube.com/watch?v=dlQOpR7CAIU
1•mgh2•14m ago•0 comments

A History of Disbelief in Large Language Models

https://shadowcodebase.substack.com/p/the-shifting-skepticisms-in-ai
1•kevin42•15m ago•1 comments

Show HN: A mini paged-KV and prefix-cache scheduler (learning inference engine)

https://github.com/tyfeng1997/tailor
1•bofeng1997•23m ago•0 comments

AI Skills Marketplace: A New Digital Economy?

https://vibeandscribe.xyz/posts/2026-01-11-skills-marketplace.html
1•ryanthedev•23m ago•0 comments

The Largest Protest in Human History: The Baltic Way

https://en.wikipedia.org/wiki/Baltic_Way
3•ViktorRay•24m ago•0 comments

Writing a Work Log

https://fredrikmeyer.net/2026/01/11/work-log.html
1•FredrikMeyer•25m ago•0 comments

One Thousand Words

https://drewmayo.com/1000-words/
1•pabs3•26m ago•0 comments

Happy 50th Birthday KIM-1

https://github.com/netzherpes/KIM1-Demo
2•JKCalhoun•27m ago•0 comments

Why Silicon Valley Tech Wunderkinds Will Only Ever Have 1 Good Business Idea

https://www.forbes.com/sites/ericjackson/2012/06/18/why-silicon-valley-tech-wunderkinds-overestim...
1•maxilevi•28m ago•0 comments

Show HN Split expenses website. No sign-ups. No apps

2•JaimeAlonsoHN•28m ago•0 comments

A global 'coalition of decency' could tackle X over sexualised images

https://observer.co.uk/news/national/article/uk-considers-ban-on-x-as-anger-over-sexualised-ai-im...
1•amarcheschi•29m ago•0 comments

Budgie 10.10

https://buddiesofbudgie.org/blog/budgie-10-10-released
2•pentagrama•29m ago•0 comments

Dangerous and alarming: Google removes AI summaries after users' health at risk

https://www.theguardian.com/technology/2026/jan/11/google-ai-overviews-health-guardian-investigation
2•throwaway5465•31m ago•0 comments

West of Eden

https://gist.github.com/avkcode/1ad9718d5f17fae7e7fc345e3bddc6f2
1•KyleVlaros•33m ago•0 comments

The Most Satisfying Workflow: Real-Time Infographics with Qwen and DeepDiagramAI

2•twwch•34m ago•0 comments

Exploring pq, a plain-text database connector for plan9

https://mccd.space/posts/pq/
1•4diii•37m ago•0 comments

Beginning of the end for 'enshittification' – our chance to make tech good again

https://www.theguardian.com/commentisfree/2026/jan/10/trump-beginning-of-end-enshittification-mak...
1•pseudolus•37m ago•0 comments

Hongdown: An opinionated Markdown formatter in Rust

https://github.com/dahlia/hongdown
1•birdculture•39m ago•0 comments

Can an economy remain stable while becoming inefficient?

1•latentframe•39m ago•0 comments