Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
flowerlad
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
flowerlad
5y ago
Check out Implementations section on this page: https://en.wikipedia.org/wiki/Shard_(database_architecture)
92.
▲
by
flowerlad
5y ago
Anyone starting a tech startup will face this decision: Should I start with a database that has built-in support for sharding? Or should I just start with MySQL or PostgreSQL and defer the sharding question for later? Notion chose to do man
93.
▲
by
flowerlad
5y ago
Deny, deny, deny. Which you'd expect him to do. Of course we don't put profits above safety and well-being. Of course we don't push content that makes people angry... and so on. But embedded in the denial is a threat to stop
94.
▲
by
flowerlad
5y ago
> State will exist, whether you like it or not, and you'll have to deal with it. Yes, state will exist... in a thin outer layer. Pure core with a thin impure outer layer. If state is distributed throughout the entire program then
95.
▲
by
flowerlad
5y ago
I can agree with most of what you are saying. My alarm stems from the fact that a lot of developers' understanding of FP these days comes from their React experience (which they mistakenly believe is FP) and a lot of these developers
96.
▲
by
flowerlad
5y ago
> > If you don't care about purity don't use FP. > This is unhelpful. You have to care about purity. The benefits of FP hinges on this. Saying you don't care about purity is the same as saying you don't care a
97.
▲
by
flowerlad
5y ago
> > What is the benefit of being functional? > For React, the idea is building the UI as a function of the state Well, if you have state you're already not functional. Look, React does not have to be functional to be useful! L
98.
▲
by
flowerlad
5y ago
I don't see any credentials mentioned in your profile, which means we're all random guys on the internet :) With reference to the article, it builds on top of authoritative articles (see References section at the bottom), so you d
99.
▲
by
flowerlad
5y ago
I think you have to start by answering this question: What is the benefit of being functional? If there is no benefit then this whole discussion is moot. If there is a benefit to FP that isn't easily achievable using other styles, then
100.
▲
by
flowerlad
5y ago
I am assuming you're debating in good faith (and not just trying to win an argument). The recommendation made in the docs is very well justified. All other techniques are a mess, and lead to maintenance problems and bugs. Just replace
101.
▲
by
flowerlad
5y ago
Functional Programming has to serve a purpose. What is the point of functional programming? There are 3 benefits, mainly: (1) Ease of verification, (2) Parallelism and (3) Data-centric computation. (See article I linked for details.) Of the
102.
▲
by
flowerlad
5y ago
Disagree. Functional programmers often speak of implementing programs with a pure core and a thin layer on the outside that handles effects. (Read the article I pointed to earlier.) If you don't have a pure core then you are not using
103.
▲
by
flowerlad
5y ago
It is recommended by FB: https://reactjs.org/blog/2018/06/07/you-probably-dont-need-d...
104.
▲
by
flowerlad
5y ago
Please read React documentation: https://reactjs.org/blog/2018/06/07/you-probably-dont-need-d...
105.
▲
by
flowerlad
5y ago
> Where did you hear that? https://reactjs.org/blog/2018/06/07/you-probably-dont-need-d...
106.
▲
by
flowerlad
5y ago
> Functional programming doesn't shy away from impurity. Disagree. Functional programmers often speak of implementing programs with a pure core and a thin layer on the outside that handles effects. If you don't have a pure c
107.
▲
by
flowerlad
5y ago
But how many React components are that simple? Almost none.
108.
▲
by
flowerlad
5y ago
You didn't read the article. How to deal with impurity is described in the article.
109.
▲
by
flowerlad
5y ago
Functional Programming is about purity. At the core of FP is pure functions. If you don't care about purity don't use FP. There is a lot to like about React, and Hooks and so on. Just don't call it FP though.
110.
▲
by
flowerlad
5y ago
> The whole thing has been functional programming from the start, if you know what algebraic effects are then the functional underpinning should be obvious to you as well as anyone with the slightest brush with FP. That's a lot of
111.
▲
by
flowerlad
5y ago
Once you realize React doesn't work for complex components it loses its attraction. Web Components are conceptually way simpler and work well. See example: https://github.com/wisercoder/uibuilder/blob/mas
112.
▲
by
flowerlad
5y ago
That works well... until you have stateful components and you want to send in new props. At that point the recommended approach is to replace the entire component by using the key property. For simple components, especially stateless ones,
113.
▲
by
flowerlad
5y ago
> Then it was infected with all sorts of Functional Programming paradigms grafted on top of Javascript. Except it is not really functional. See: https://mckoder.medium.com/why-react-is-not-functional-b1ed1...
114.
▲
by
flowerlad
5y ago
In my case, the spam that manages to evade Gmail's filters contain an image as the body instead of text. Fun fact: Back in 2002 ycombinator founder Paul Graham wrote an article on spam filtering. (See http://www.paulgraham.c
115.
▲
by
flowerlad
5y ago
The solution is to make the consumer participate in driving costs down. One employer I know of has an excellent solution to the problem: Make employees pay 100% of the bill up to a certain amount, such as $6000. That's a large amount,
116.
▲
Artificial photosynthesis promises a clean, sustainable source of energy
(purdue.edu)
3 points
by
flowerlad
5y ago
|
0 comments
117.
▲
by
flowerlad
5y ago
> good ol’ locking-based protocols in practice outperform MVCC-based protocols Doesn't make sense to me. Oracle supports MVCC. SQL Server doesn't scale as well as Oracle.
118.
▲
Amazon’s Answer to Delivery Driver Shortage: Recruit Pot Smokers
(finance.yahoo.com)
9 points
by
flowerlad
5y ago
|
2 comments
119.
▲
by
flowerlad
5y ago
I love how the storage expansion cards are easily replaceable by the user: https://frame.work/blog/storage-expansion-cards Sadly it looks like the boot drive cannot be replaced in this manner. Many years ago I had a Co
120.
▲
Flying car completes 35-minute test flight between cities
(cnn.com)
2 points
by
flowerlad
5y ago
|
0 comments
More ›