Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bern4444
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
361.
▲
by
bern4444
5y ago
A company’s share price can go up for several reasons. The most obvious of which is that a company creates value. Some of that created value (by selling products and services the company creates) is captured by the share price going up. As
362.
▲
by
bern4444
5y ago
One of the biggest misconceptions is that the stock market is a zero sum game. Its absolutely not. One person can make money without another person losing money. Is that always the case? No. But that doesn't make it a zero sum game. If
363.
▲
by
bern4444
5y ago
Why would you want the government controlling even more of your money? They already take large chunks. I'd rather control the remaining bits. It's not their job to invest your money (at least the money that you have left after the
364.
▲
by
bern4444
5y ago
I wonder why VSCode hasn't yet adopted TreeSitter for syntax parsing. Seems like it solves at least part of the performance issue via incremental parsing
365.
▲
Building a Monad
(sambernheim.com)
2 points
by
bern4444
5y ago
|
0 comments
366.
▲
by
bern4444
5y ago
Trading activity should be limited for federal employees at that level in a similar manner that trading is limited for bank employees and their families. They should be allowed to trade index funds, etfs, mutual funds etc, but perhaps not i
367.
▲
Building a Monad
(sambernheim.com)
1 points
by
bern4444
5y ago
|
0 comments
368.
▲
by
bern4444
5y ago
That's the thing. In react, there's no difference between a route and a component (at least with react-router). So you can write logic that applies to a Route and logic that applies to a component the same way and apply it at the
369.
▲
by
bern4444
5y ago
Until of course there's an ask to turn that simple website into a complex one that supports multiple flows, handle various user interactions, and begin pulling data from various sources. A lot of the reason I think people reach for Rea
370.
▲
by
bern4444
5y ago
Totally, I think if this article were titled patterns it'd be more accurate. Architecture has a more specific meaning (at least to me). As for using state, when you use something like react-router, all those things, path parameters, qu
371.
▲
by
bern4444
5y ago
There's a lot in here that seems off if not quite wrong. Throwing errors to be caught higher up, the way they manage redirects, and the lack of discussion around managing state (which could on its own solve lots of these problems). So
372.
▲
by
bern4444
5y ago
Scott Wlaschin is an excellent resource. His presentations and website are incredible.
373.
▲
by
bern4444
5y ago
Wow, this was unexpected. Like many, I'm still learning a lot of this - especially the formal terminology and the distinctions between the mathematical and computational variances of these ideas. It can be tough to push past the more i
374.
▲
Monads are monoids in the category of endofunctors
(sambernheim.com)
161 points
by
bern4444
5y ago
|
231 comments
375.
▲
by
bern4444
5y ago
I take a different take here. Juniors write a lot of code. Often significant amounts for a company's products and services. They're the ones who are implementing all the decisions that seniors spend their time making in all their
376.
▲
The Engineer's Schrodinger's Cat
(sambernheim.com)
4 points
by
bern4444
5y ago
|
0 comments
377.
▲
by
bern4444
5y ago
I find this to be equally true for Apple's hide my email service and Apple Pay. When I have to give my email out - to sign up for a service, or make a one time purchase online for the receipt etc, Apple provides the option to use a uni
378.
▲
by
bern4444
5y ago
> at least until it's well known, at which point it might simply become a self-fulfiling prophecy. Exactly. Markets are extremely efficient. As soon as this becomes known as reliable, markets will begin pricing these possibilities i
379.
▲
by
bern4444
5y ago
Right. You hold a book closer to your eyes though than your screen. Both have about the same line length, as you point out, but the book's font is smaller. The website font is much larger - to make up for the greater distance between t
380.
▲
by
bern4444
5y ago
Why? Is it not wide enough for you? or something else?
381.
▲
by
bern4444
5y ago
Yeah, for a site like this, it could literally be just adding max-width: 700px; margin: 0 auto; This would make it look great on pretty much all screens.
382.
▲
by
bern4444
5y ago
Fun article, but exceptionally difficult to read. I know some people like using plain ol html, but just a few lines of CSS would vastly improve the reading experience. I know its from 2016, but still. Eyes read best when content is a few hu
383.
▲
by
bern4444
5y ago
The difference here is callers of mainWithOptions won't have to do the null/undefined check again. They get back an option so they can just keep calling map. And that's true all the way up the call stack. But in the main exam
384.
▲
by
bern4444
5y ago
strictNullChecks is great but they don't cover everything. Take this trivial example: const maybeReturn = () => { if (Math.random() > .5) { return 10 } } const main = () => {
385.
▲
Show HN: An Option Object for JavaScript and TypeScript
(github.com)
5 points
by
bern4444
5y ago
|
5 comments
386.
▲
by
bern4444
5y ago
Hi HN. I wrote an Option object for javascript and typescript. Lots of functional programming libraries already exist, in addition to several standalone JS/TS option packages. So why another? I wanted a high quality, stand-alone, fully
387.
▲
Show HN: An Option Object for JavaScript and TypeScript
(github.com)
1 points
by
bern4444
5y ago
|
1 comments
388.
▲
by
bern4444
5y ago
Hi HN. I wrote an Option object for javascript and typescript. Lots of functional programming libraries already exist, in addition to several standalone JS/TS option packages. So why another? I wanted to avoid a large library that has
389.
▲
by
bern4444
5y ago
I had to implement a simple B+ tree for a databases class in college (since they're often used when implementing databases). It was one of those assignments few people fully completed. Most completed parts of it to varying degrees. I g
390.
▲
by
bern4444
5y ago
Vim only supports async stuff because vim had to keep up with neovim which first introduced async support. I think vim's time is nearly over. Just as it replaced vi, neovim will replace vim. It may not get to the ubiquity of being inst
More ›