Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
veeralpatel979
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
veeralpatel979
7y ago
To be fair the bad choices are what allowed them to ship quickly, get to product-market fit, and get to the point where the bad choices started to hurt them. Most startups never see the effects of their bad (or good) choices because they go
92.
▲
by
veeralpatel979
7y ago
Hey - great work! This project can save me a lot of work writing integrations, which I find tedious at times, so I'll take a look at it. One piece of feedback: it's confusing that the org's name is Polybit, the site is https
93.
▲
by
veeralpatel979
7y ago
Got it. If you don't have any data that's shared between pages, I can see how this works.
94.
▲
by
veeralpatel979
7y ago
Hey - author here. This is my first time hearing of alt.js. How does it compare to more popular solutions like Redux and MobX?
95.
▲
by
veeralpatel979
7y ago
Hi - author here. Thanks for mentioning Apollo. I've actually abandoned maintaining any data state in my global stores. I just use Apollo and provide a refetchQueries to my useMutation call to update my UI after mutations. https:/
96.
▲
by
veeralpatel979
7y ago
Hi - author here. I haven't used react-easy-state unfortunately. But like when building a company, the best product doesn't always win: the company that executes the best does. Executing well includes building a great product, but
97.
▲
by
veeralpatel979
7y ago
Hey - author here. I agree that libraries for certain things, like MobX/Redux or Formik, may be overkill. What's more important, though, is that people choose an appropriate equivalent to these libraries. Replace the library, but
98.
▲
by
veeralpatel979
7y ago
Another way of looking at it is that they are using their technology to help defend the country where the company was created.
99.
▲
by
veeralpatel979
7y ago
> Unfortunately, finding these kinds of products is hard, and I don't quite understand why. I'll reckon a guess: most companies aspire to differentiate themselves and retain customers by building brands. The alternative is race
100.
▲
by
veeralpatel979
7y ago
Ok; ignore that specific example -- if you needed to share a piece of state among many components in different places in your component tree, how would you do it?
101.
▲
by
veeralpatel979
7y ago
Hey - author here. React is just simpler for me to reason about. A app has many pages, a page has many components. I can write components; I can write Redux/MobX code; I can pass data between components. Things work. But absolutely, my
102.
▲
by
veeralpatel979
7y ago
Hey - author here. Try Redux; acemarke has been evangelizing Redux Toolkit [1] recently and it looks great for a beginner not familiar to the Redux ecosystem. But also - if Redux just isn't clicking for you, or if it is but you feel li
103.
▲
by
veeralpatel979
7y ago
Author here. I see the appeal of the simplicity of this approach, and this is how I handled state in my application before I knew what state management was. But how do you deal with the problem of many of the components in your tree needing
104.
▲
by
veeralpatel979
7y ago
Hey! Author here. You don't need to put the username of the logged in user into Redux, but if multiple components across different pages need to access this data, you should make it globally accessible. You can choose Redux/MobX f
105.
▲
by
veeralpatel979
7y ago
Author here. You can try this, but I don't think it'll turn out well! You don't want to have a bloated, disorganized global store...what you're doing now, moving state into global state only if needed, is the right way t
106.
▲
by
veeralpatel979
7y ago
Maybe! But also, as a user, I expect to do more and more in my browser. I would find it strange, and probably switch to a competitor, if my preferred airline for example made me install (and keep updated) a desktop app in order to book a fl
107.
▲
by
veeralpatel979
7y ago
Author here. The way I think about it is, the web was designed for rendering static markup. JavaScript was designed for adding small amounts of interactivity. Instead, we've managed to turn the web into a full-blown application platfor
108.
▲
by
veeralpatel979
7y ago
> form libraries remain the one thing I've never really seen a need for I felt this way too, until I used Ant Design's form component (which uses rc-form under the hood). Form libraries take care of validation for you, allow yo
109.
▲
by
veeralpatel979
7y ago
Hey - author here. I did not mean to imply that state management is only useful to mitigate the prop drilling problem. In fact, in #2, I give another example where state management is useful.
110.
▲
6 things I wished I knew about state management when I started using React
(medium.com)
2 points
by
veeralpatel979
7y ago
|
0 comments
111.
▲
by
veeralpatel979
7y ago
Measuring how productive software engineers are. If you could solve this problem, you could convince management why engineers need offices, for one.
112.
▲
by
veeralpatel979
7y ago
Strange. Deviceplane now only has 56 stars.
113.
▲
by
veeralpatel979
7y ago
The solution isn't bankrupting fossil fuel companies. The solution is finding viable replacements for these companies, whether it's solar, wind, nuclear, or something else, and then scaling them so they can serve everyone. Finding
114.
▲
by
veeralpatel979
7y ago
The solution to climate change is not to make energy producers like oil and gas companies go out of business. The way these companies became so successful was by providing something of value at a low cost. Do you really want to pay substant
115.
▲
by
veeralpatel979
7y ago
If I build a startup that gets to the stage where I'm hiring people, I'm going to consider providing offices (private or shared) for my engineers, as a way to attract talent. I'm surprised more employers aren't doing thi
116.
▲
by
veeralpatel979
7y ago
I wonder if ease of setup has something to do with the popularity of open offices, especially for startups? 1. After choosing an office setup, a company is not likely to change it unless it needs to 2. You can set up an open office in an af
117.
▲
by
veeralpatel979
7y ago
The RNC cancelling primaries is much worse. I'm surprised they've gotten away with it. Iowa's Democratic Party still has a paper trail of votes. The results may be delayed but they'll at least exist. On the other hand, G
118.
▲
by
veeralpatel979
7y ago
I dislike the utter lack of transparency here. You have an app that's a critical part of the voting infrastructure for the most important caucus in the Democratic Party, and yet we don't know: - Anything about the people who devel
119.
▲
by
veeralpatel979
7y ago
Ruby has a great debugging story. You just type "binding.pry" wherever you'd like to stop the application and in your terminal, it will open a Ruby shell where you can access the program state at that point in your code. htt
120.
▲
by
veeralpatel979
7y ago
I've wondered why cars don't have a built-in communication mechanism. I should be able to broadcast somehow (using a voice message?) to nearby cars that "I'm going now, don't go".
More ›