Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bhl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
bhl
6y ago
With respect to tech companies, the compensation ratio is a good starter to get people to think about wealth inequality but as tool or metric for public policy, it is useless. Here's my intuition on that: - it doesn't answer how m
122.
▲
by
bhl
6y ago
> add non-default variations (mostly different heights/widths than what it ships with). Check out https://github.com/tailwindlabs/tailwindcss-jit . It got released 3 weeks ago, and supports variable variables in
123.
▲
by
bhl
6y ago
> framework recreates css rules with class names Pretty much, but that concept by itself is underrated. By having all of the CSS inline on your components, the developer doesn't have to click on a class name and find the css file as
124.
▲
by
bhl
6y ago
- tailwindcss I moved a React side-project from CRA to Next.js for server-side rendering benefits, but the latter doesn't support directly importing css styles in jsx to avoid problems with the global scope. The two options offered wer
125.
▲
by
bhl
6y ago
It's mentioned in the thread: > I was a huge to-do list junkie, but back then all of the task apps were either single-player or weird desktop apps with syncing issues. > I decided to build a shared to-do list app for teams. Yeah,
126.
▲
by
bhl
6y ago
I was trying to point out in my original comment that some people maybe pre-maturely optimizing for scale, and having tooling drive decision-making rather than problems at hand. And a good logical short circuit to that would be: "if Ha
127.
▲
by
bhl
6y ago
See https://developer.mozilla.org/en-US/docs/Web/CSS/:root#decla... . With :root, you can write css variables that can be accessed by any other element on the page (?). So to implement a light and dark th
128.
▲
by
bhl
6y ago
Can I ask a question that's half facetious half serious (0.5\s): does hackernews use docker or any containers in its backend? With 6M requests per day, if it didn't use containers, HN might be a good counter example against premat
129.
▲
by
bhl
6y ago
Have you seen Kleppmann's automerge library? https://github.com/automerge/automerge
130.
▲
by
bhl
6y ago
You can also have SVG sprite sheets if you use the `use` tag.
131.
▲
by
bhl
6y ago
I'm not sure if this library is better. If you're making an XHR for each inline svg, then that's a lot of unnecessary network requests compared to a dynamically generated svg sprite-sheet at build time. The latter is definite
132.
▲
by
bhl
6y ago
I had a similar experience starting out with ProseMirror; I wanted to make something similar to the editors in Dropbox Paper and Notion, and found an out-of-the-box rich text editor called tiptap built onto of it. They already had nodes for
133.
▲
by
bhl
6y ago
OP should try out ProseMirror [1], which is the rich-text editor sibling of CodeMirror. And if you like ProseMirror's API, CodeMirror 6 is structured similar to it. [1] https://prosemirror.net/
134.
▲
by
bhl
6y ago
What do you mean by not helpful. From the wikipedia on LTCM, - The contributions from the various institutions were as follows: - $300 million: Bankers Trust, Barclays, Chase, Credit Suisse First Boston, Deutsche Bank, Goldman Sachs, Merril
135.
▲
by
bhl
6y ago
For numbers, r/wsb had around 2.3m yesterday morning (Wednesday 3 am) and now has 4.3m members, so that's a jump of 2 million new in less than a day.
136.
▲
by
bhl
6y ago
You can also use CRDTs for offline mode. Say you wanted to build a rich text editor, which can't diff-and-merge as easily as with plain text. Instead of using git for version control, you can use CRDTs very similarly by fetching the re
137.
▲
by
bhl
6y ago
I would think being a billionaire, there isn't significant difference in quality of life living in California vs. Texas either. The "I'm ok paying them what I owe" also overlooks the public spats on Twitter and with re-o
138.
▲
by
bhl
6y ago
This is pretty close to how ProseMirror, a rich-text editor, manages its content state. Example of a schema: https://github.com/ProseMirror/prosemirror-schema-basic/blob... Example of a document converted to JSON:
139.
▲
by
bhl
6y ago
SeeLink is more similar to a Google stealth product, https://staykeen.com/ . Did del.icio.us have collaborative boards?
140.
▲
by
bhl
6y ago
ProseMirror is more of a framework for building text editor libraries; Slate and Draft are drop-in, easier-to-integrate text editors. In addition, ProseMirror is built with JavaScript, and would require writing custom code to adapt to Vue o
141.
▲
by
bhl
6y ago
> Slack & notion make me close my eyes while typing, just because the delay between key press and pixels lighting up is so long that I get confused. It's like speaking with a 400ms or so echo of yourself being played back. Hugel
142.
▲
by
bhl
6y ago
> the latter I find clunky and hard to build on top of If you learn ProseMirror [1], then building on top of outline's rich-markdown-editor or tiptap (which is also ProseMirror based) should be easier. What issues are you currently
143.
▲
by
bhl
6y ago
The difference in my opinion is with gig workers, there’s a contrasting concentration of power in the hands of a few companies, and those companies play a substantial intermediating role in matching “contractors” with customers. From the ex
144.
▲
by
bhl
6y ago
Substack allows writers to create their own paid newsletters and blogs without the hassle of setting up payments or worrying about gmail's spam filters; it also gives writers more control over their relationships with subscribers, sinc
145.
▲
by
bhl
6y ago
Both the standard react router and nextjs framework are open source.
146.
▲
by
bhl
6y ago
A compromise might be to hide navigation elements or margin notes until you hover / click on an element, sort of like how Wikipedia enables page previews on internal links.
147.
▲
by
bhl
6y ago
For specific use cases where the data format is not plain-text and or is formatted as json (e.g. Jupyter notebooks, rich text editing like ProseMirror), I can see CRDTs being used to automatically merge files and retain consistency. Two thi
148.
▲
by
bhl
6y ago
My go-to sans-serif font is always Inter ( https://rsms.me/inter/ ), which feels similar enough.
149.
▲
by
bhl
6y ago
It's not a feasible solution for _everybody_. However on the net, by giving that option to _all_ renters, you will discourage the population of landlords from increasing rent in general.
150.
▲
by
bhl
6y ago
Yes, but UBI lowers the risks involved in moving.
More ›