Nick Zuber (@nick_zuber) header
Nick Zuber (@nick_zuber) profile picture

engineering @notionhq — previously @box @robinpowered — plt nerd, ocaml evangelist, wannabe pool pro

Brooklyn, NY
Joined October 2011
Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)Photo by Nick Zuber (@nick_zuber)
I made the checkboxes prettier and rounder with the help of the design team :) This image is how I sold the idea to everybody
Check—mate ♟️
25
8
3
405
67,825
Nick Zuber retweeted
Many don't get why this is cool. I spent a lot of time optimizing web performance. It was one of the main things I did at both lovable and spawn. Here's somewhat simple and thorough explanation: The browser rendering pipeline goes: Style → Layout → Paint → Composite. Layout is the expensive step. It calculates where everything goes on the page. Positions. Sizes. Line breaks. When you read offsetHeight or getBoundingClientRect, you force the browser to run layout. If you wrote to the DOM before that read, it recalculates everything. That's reflow. A lot of layout work is text measurement. Where does this line wrap. How tall is this paragraph. How wide is this word. The browser is the only thing that can answer these questions. There's no alternative. You have to go through the DOM. This is the root cause behind a lot of performance problems people deal with daily. Virtual scrolling exists because you can't know element heights without rendering them first. CSS contain exists to tell the browser "don't recalculate layout outside this box." Batching DOM reads and writes exists because mixing them causes layout thrashing. Text measurement is a big part of all of these. It's slow and locked inside the browser. You see it in real apps too. Slack estimates message heights for virtual scrolling. When the estimate is wrong the scroll jumps. You've seen this. Google Docs recalculates every paragraph below your cursor when a line wraps. Every keystroke. This is why it gets slow on long documents. AI chat apps get janky when streaming because each new token can cause a line wrap which changes the height which causes the page to jump. Same problem every time. Need text measurements. Only way to get them is the DOM. DOM is slow. --- Over the years people have moved pieces of UI work out of the browser's layout engine. Rendering moved to Canvas and WebGL. Scrolling moved to custom implementations with transforms. Positioning moved to JavaScript-calculated coordinates. Interaction handling was always just JS. But text was the one thing you couldn't move out. You always had to go back to the DOM to ask "how does this text wrap." Every other piece had an alternative. Text didn't. --- Enter Pretext. Pure TypeScript text measurement and line wrapping. No DOM. No reflow. You give it text, a font, and a width. It returns exact line breaks, widths, heights. Just a function call. Pure math. Text measurement was the last piece of layout with no alternative outside the DOM. Now it does.
My dear front-end developers (and anyone who’s interested in the future of interfaces): I have crawled through depths of hell to bring you, for the foreseeable years, one of the more important foundational pieces of UI engineering (if not in implementation then certainly at least in concept): Fast, accurate and comprehensive userland text measurement algorithm in pure TypeScript, usable for laying out entire web pages without CSS, bypassing DOM measurements and reflow
22
57
11
902
106,348
Nick Zuber retweeted
We just held a tender that allowed current and former @NotionHQ employees to sell a portion of their vested shares at an $11B valuation. As part of the tender, we also removed the one-year vesting cliff on options, so almost every Notion employee had the opportunity to participate. We applied the same rules to every employee, whether you’re our most recent hire or a co-founder. Huge thanks to Sequoia and Index for doubling down on their commitment to Notion, and we’re thrilled to welcome GIC as our newest shareholder. Given our explosive growth in APAC, we couldn’t have found a better partner. Our industry has come a long way in how it thinks about employee secondaries. Personally, it’s incredibly gratifying to see our team able to participate in this way. For some of our longer-tenured employees, these tenders have helped them pay off loans or buy their first home. That kind of security meaningfully changes how people think about their work and how long-term they can be in building the company. Finally, I’m deeply grateful to the team for the craft, intensity, and consistency they bring every quarter. That work shows up in the product and in the results. The ambition ahead is even bigger. Let's keep building! notion.com/blog/gic-sequoia-…
36
34
28
1,308
228,371
I joined forces the editor team and wrote up a fix for this :) Autocompleting users from that mention menu should happen much quicker now!!
Before anyone else tries to tell me this issue isn't real, here's a video of consistent latency issues in @NotionHQ failing to register keystrokes if I type too fast while tag menu is open. This is unusable.
1
4
570
I really hope somebody went as jojo sliwa this year
143
In the words of Nelson Mandela: it always seems impossible until it’s done. My friends, it is done. And you are the ones who did it. I am honored to be your Democratic nominee for the Mayor of New York City.
14,594
47,151
6,046
419,451
17,890,665
Nick Zuber retweeted
At the end of each quarter, @NotionHQ designers lift cars. DM open if you are a designer who can code and lift cars.
105
41
36
1,817
485,050
The more things change the more they stay the same…..
241
Joey Chestnut should’ve taken a sponsorship from Cool Dogs
1
5
478
Crashing out at Ocean’s 8 Billiards
1
301
Why did the cashier at Trader Joe’s ask me about my thoughts on the Russia/Ukraine war
6
413
Been saying “dinky” a lot lately, I think a new personality is emerging
2
317
Sex and the city is a prequel to the sopranos and I will not elaborate further
1
6
448
Trying to convince a bunch of consultants that I went to Vanderbilt by telling them I was in their McKinsey 101 class
1
3
387
Doom scrolling on LinkedIn
13
340
At the movies pretending that every trailer they play is for a new live action Curios George film
4
262
I can’t believe nobody’s heard of the hunger games. That shit is so good
4
259
A drunk Irish man named Declan said I “wasn’t that pretty” and honestly that set me back 15 years
6
351
Just saw a man in first class put a folded pair of jeans in the overhead bin
1
11
430