Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
erlich
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
erlich
6y ago
Google is so bad at product.
152.
▲
Ask HN: Is there a good GitHub Issues app?
1 points
by
erlich
6y ago
|
0 comments
153.
▲
by
erlich
6y ago
Well...turns out this is what they are now threatening to do.
154.
▲
by
erlich
6y ago
How would you compare MobX vs. Apollo + React Context?
155.
▲
by
erlich
6y ago
Agree! Redux is never needed and was always a bad choice IMHO. The goals of it seem so misaligned with developer productivity. It was small, elegant library for the sake of being small. Ultimate flexibility that can do everything, but then
156.
▲
by
erlich
6y ago
> why not create your own custom state management system from scratch Normally "roll-your-own" is bad advice. But in enterprise apps I can see all you needing is an API client with normalized caching (Apollo or `react-query` fo
157.
▲
by
erlich
6y ago
Is there a frontend framework you can choose that suits .NET devs? Maybe this would have been a better choice if there was. Maybe Angular was better. Or Ember.
158.
▲
by
erlich
6y ago
> evolved to be a very functional approach Is this actually advantageous though over class components? The creator of React said he thought moving to functional components would make it harder for people to learn. I've found that so
159.
▲
by
erlich
6y ago
I think in 10 years we are going to see a lot of stuff built into the web platform. Typescript definitely now that MS is using Chromium. Then we have Deno for the backend. One day in the future a kid will be learning programming, and not re
160.
▲
by
erlich
6y ago
I hated JSX when it first came out and thought React wouldn't take off because of it, then I used React for 5 years, and I still hate JSX. I write all my components like this: const props = {foo: 1, bar: 1} <MyComponent {.
161.
▲
by
erlich
6y ago
> debugging / error messages I think its still quite bad for debugging. I get a lot of "look here" for errors, but there are still times I set breakpoints on the internals to try and figure out what is going on. Usually in
162.
▲
by
erlich
6y ago
The problem is that the author most probably chose some libraries than went out of fashion or started stagnating and ran into some bugs or lack of documentation that drained time. Its impossible in JS to not have made bad choices that didn&
163.
▲
by
erlich
6y ago
If you join an early stage startup today, it will only be a matter of time until a developer comes in who builds a microservice for what would normally be a single function calling a third party api and then discovers that Kubernetes is nec
164.
▲
by
erlich
6y ago
> Redux is the JS equivalent of the Windows Registry. Love it. I find Dan Abramov a great guy, but it was he who brought us Redux and rose to such fame because of it, and its now considered a bad way of doing things (or maybe just a ridi
165.
▲
by
erlich
6y ago
> Do not mess with the package.json Use a monorepo with many `package.json` files. Then someone working on a data grid component for example can add the packages they need for that component and no one else's code will depend on it
166.
▲
by
erlich
6y ago
I feel your pain. It was really too early for React until 2 years or so ago. Since hooks, things have calmed down a bit. I would be interested to hear from people who successfully navigated that past 5 years in JS world. I feel I would have
167.
▲
by
erlich
6y ago
We had component libraries and reusability before React. I think a lot of FE best practices evolved at the same time as React. A good example is React Native which is less about React but more about a js interop layer with Cocoa that happen
168.
▲
by
erlich
6y ago
Not an ORM and no integration with typescript. But yeh it’s a cool library that I’ve used a lot. I’m not sure how maintained it is though these days.
169.
▲
by
erlich
6y ago
CRA includes all tooling it needs and makes sure there is a clear and smooth update path.
170.
▲
by
erlich
6y ago
I don’t think DSLs are good. Just use a nice Typescript api.
171.
▲
by
erlich
6y ago
Use create-react-app and don’t eject or add any fancy custom tooling. Nest.js is pretty good on the backend.
172.
▲
by
erlich
6y ago
Django definitely. Try find a stable ORM for JS - impossible!
173.
▲
by
erlich
6y ago
Do you ever wonder whether we cause the complexity ourselves. Did we need React? Flux? Graphql? Since we introduced these concepts we needed to rethink a huge amount of other stuff to keep it performant. Compare the simplicity of jQuery vs
174.
▲
by
erlich
6y ago
Crikey is sensationalist link-bait crap, just as this article's headline and the article itself.
175.
▲
Ask HN: How do you deploy your Node.js back end?
9 points
by
erlich
6y ago
|
6 comments
176.
▲
Ask HN: How do you decide what is a many-to-many vs. enums vs. array
9 points
by
erlich
6y ago
|
7 comments
177.
▲
by
erlich
6y ago
If someone has a gun and is suicidal there is the chance that they could injure others. I have seen a lot of suicide by police though which is always very tragic and heart breaking, so you definitely have a point. But then with every new en
178.
▲
by
erlich
6y ago
This situation feels like it would probabaly require force to restrain the person from hurting themselves. Everyone has encountered beligerant drunk people who are putting themselves at risk but not listening to anyone. Is a health worker a
179.
▲
by
erlich
6y ago
Send an ambulance. But if there is potential danger to public, send the police. Maybe police should travel with counselors.
180.
▲
by
erlich
6y ago
If an old lady falls down then you call 911 and get an ambulance to come. There's no risk of violence. But with mental illness there is the risk of violence and that is the police's role. I can't see this working out and it&#
More ›