Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bern4444
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
241.
▲
by
bern4444
4y ago
This is a duplicate post that was already on the front page of HN toady. Something seems fishy... https://news.ycombinator.com/item?id=31094510
242.
▲
by
bern4444
4y ago
There's very little in here that is _unique_ to front end developers. This is more of an introduction to the terminal article. You have a web background and so perhaps wanted to frame this with that context but I think this is better o
243.
▲
by
bern4444
4y ago
Markdown syntax is that a single underscore around words _like this_ renders it italicized.
244.
▲
by
bern4444
4y ago
This article also said > The government will also impose higher taxes on people who sell their home within a year. Why would they raise taxes on people who decide to sell? Raising taxes on sales will decrease the number of sellers. If th
245.
▲
by
bern4444
4y ago
A parallel situation appears to me as, someone on the street is talking to people walking by, to avoid hearing them I put on noise canceling headphones and walk away so I don't see them. Am I censoring them, no. I am not interrupting t
246.
▲
by
bern4444
4y ago
To clarify - this isn't to say that non USD denominated assets don't lose value if compared to the currency its denominated right? That is, I could replace 'USD' with any other currency in both occurrences in the phrase:
247.
▲
by
bern4444
4y ago
In NYC Uber has struck an agreement with the city to allow taxi cabs on its app as a service provider. NYC (and other cities) have begun to use Curb (an Uber/Lyft like app for local taxis) but I've found it to be far worse than Ub
248.
▲
by
bern4444
5y ago
Hmm, I see. Yes I've been thinking more and more recently about how personalization means fewer shared experiences. It becomes much harder to remain a cohesive group when everyone is getting their personalized version of a thing. I don
249.
▲
by
bern4444
5y ago
> headed towards restaurant analytics, impressions/views for menu items etc Isn't all this already captured today? Restaurants can very easily keep track of what most people are ordering, what dishes are being sent back, etc. I
250.
▲
by
bern4444
5y ago
Why is pattern matching not possible when types are removed after typescript is compiled?
251.
▲
by
bern4444
5y ago
> Hooks are the antithesis of this - they create code them seems pure I disagree. The presence of a hook is the indicator that something impure is happening. Seeing a hook should be equivalent to seeing a promise, option, IO type etc. Ho
252.
▲
by
bern4444
5y ago
No array means execute the hook on every rerender of the component. Empty array means execute the hook once on initial render. Non empty array means execute the hook when the value of anything in the dependency array changes. These are pret
253.
▲
by
bern4444
5y ago
> Why do you "need" to allocate it? You don't "need" to allocate it. If you don't allocate it though, the buying power of your saved cash will decrease every year from inflation. You can argue whether low in
254.
▲
by
bern4444
5y ago
On top of the management fee (which typically is around 2%, they also will take a large percentage of any returns they generate on your behalf (10% - 20%). So if they earn $x of return, you only keep .8 * x. This is the typical 2 and 20 quo
255.
▲
by
bern4444
5y ago
I do the same as you - commit early and often, push nearly on every or every few commits, but I try and write my commit messages nicely even (and especially) if the code behind them is not so clean. I care less about the code quality during
256.
▲
by
bern4444
5y ago
I agree a standard library for JS would be great, but .1 + .2 != .3 is the case in several languages and is not anything to do with JS. This also is or can be the case in C, C++, Clojure, Python, and many other languages [1]. [1] https:&#x
257.
▲
by
bern4444
5y ago
Ah yes, so if I have three component.tsx files open in different tabs its impossible to tell which one is which
258.
▲
by
bern4444
5y ago
I'm surprised this doesn't work since you could easily externalize this to a function: <Layout> <Header /> {getCorrectComponent(page)} <Footer /> </Layout> const getCorre
259.
▲
Twitter Wants to Reinvent Itself, by Merging the Old with the New
(nytimes.com)
1 points
by
bern4444
5y ago
|
0 comments
260.
▲
by
bern4444
5y ago
Mise En Place is very helpful as anyone who begins to practice it can attest. The other critical part of cooking (which IMO applies to other jobs, roles etc) is cleaning as you go - one of the first things taught in cooking school. I person
261.
▲
by
bern4444
5y ago
I use EVOO oil for pretty much all cooking and its wonderful. Only time I wouldn't is for high heat cooking but I don't do much of that as it is. No reason to use any other type IMO for (most) cooking.
262.
▲
by
bern4444
5y ago
From my own experience, if I'm lifting weights and working out, my hunger shoots up and I start wanting to eat everything in sight. When I'm not working out regularly, I'm able to eat far less in a day and feel totally full.
263.
▲
by
bern4444
5y ago
I see and that's accurate though this is where Remix really improves on React. If you disable JS on the client and load a Remix app, the app will still work (though not as fully). You'll still be able to navigate links, load data
264.
▲
by
bern4444
5y ago
Yes, though I wouldn't call it a 'big chunk'. The whole page was 500KB and it seems the Remix library code is a small piece of that (measuring in the 10s of KB).
265.
▲
by
bern4444
5y ago
Remix (which uses React as the UI library) is server side rendered
266.
▲
by
bern4444
5y ago
This is awesome, and far more usable than I would have expected. Nice work!
267.
▲
by
bern4444
5y ago
I think they've gotten a lot better. A whole new version has been released recently. The V2 API https://developer.twitter.com/en/docs/twitter-api
268.
▲
by
bern4444
5y ago
Twitter's redone all their APIs and made it easier to get initial access more quickly. Have you looked at it recently? https://developer.twitter.com/en/docs/twitter-api/getting-st...
269.
▲
by
bern4444
5y ago
I've come to prefer storing each intermediate value in its own variable. Debugging becomes a lot easier this way with a break point available at each step of the process. There's nearly no disadvantage to creating the extra variab
270.
▲
by
bern4444
5y ago
> Option, the type safe undefined I mean Scala because I guess it actually has it, but worth pointing out it's like 30 LOC to define one for JS, depending on how many convenience methods you want. Here's one I wrote: https:&#
More ›