Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
brlewis
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
331.
▲
by
brlewis
6y ago
The post you're replying to isn't trying to get you to move to Coffeescript today. It's saying Coffeescript "helped fuel the fire to get JavaScript moving and evolving as a language again."
332.
▲
by
brlewis
6y ago
For me, at least in this decade, it would have been better if I didn't know that. I put off learning websockets longer than I should have because I don't find packet boundaries fun to deal with, and my interest in websockets was m
333.
▲
by
brlewis
6y ago
Wait, are you saying that "90% of mobile time is spent in apps vs 10% in browsers" tells the story that "consumers vastly prefer native apps"? I don't think the connection is that strong. Taking myself as an example
334.
▲
by
brlewis
6y ago
Promise-based APIs sold me.
335.
▲
by
brlewis
6y ago
The body language thing is important. I think it helps to position the camera and your hands in a way that lets people see your gestures.
336.
▲
by
brlewis
6y ago
For (1), m.redraw() is async; I don't think you have to debounce anymore. The autoredraw system may be more sophisticated than when you used it, too. https://mithril.js.org/autoredraw.html For (2), I've been using
337.
▲
by
brlewis
6y ago
A lot of the objections people have to "mixing code and HTML" stem from experience with PHP and similar technologies. The distinction is important, because JSX is less objectionable than PHP.
338.
▲
by
brlewis
6y ago
What issues have you encountered that make it not great for large apps?
339.
▲
by
brlewis
6y ago
Didn't lichess switch to snabbdom?
340.
▲
by
brlewis
6y ago
> PHP code which supports being interspersed with HTML You're one of a large number of people who say this, but it is false. PHP intersperses a programming language with static strings. Those static strings frequently adhere to HTML
341.
▲
by
brlewis
6y ago
I'm sure it was one of the inspirations for JSX -- https://facebook.github.io/jsx/#prior-art
342.
▲
by
brlewis
6y ago
FWIW, the first conference where I heard speakers talk about learning JavaScript first before leaning on a framework, was jQuery 2008. Frameworks are not inherently premature abstractions, but can be used that way.
343.
▲
by
brlewis
6y ago
Assembly is a needless abstraction. Real programmers create binaries with xxd.
344.
▲
by
brlewis
6y ago
> the subscription price would probably be quite modest Yes. It would be set to the minimum required to dissuade banned users (e.g. spammers) from continuing to create new accounts. This amount would still likely be well above cost.
345.
▲
by
brlewis
6y ago
A curve was trending exponential, and flattened with lockdown. What's the alternate scenario for what caused the curve to flatten?
346.
▲
by
brlewis
6y ago
> Are there analogous feelings in other creative pursuits you practice? The "wow this was clever" feeling I'm sure exists in all kinds of creative pursuits, but for artistic creativity I doubt the "somehow it works!&q
347.
▲
by
brlewis
6y ago
> prettier support I use emacs/tide/prettier-js, but the prettier formatting only happens on save. Do you have settings that make emacs adhere to prettier formatting as it goes along?
348.
▲
by
brlewis
6y ago
> The fact that I have a non trivial .emacs file ensures that when I switch machines, I only have to transfer a single file to enable an identical development environment. I just want to pull this particular sentence out for emphasis in
349.
▲
by
brlewis
6y ago
> How does person #1 catch something if they are self isolating and don't interact with person #2? Person #1 can't be 100% isolated. Person #2 can breathe on produce at the grocery store that supplies Person #1. Person #2 can i
350.
▲
by
brlewis
6y ago
Whenever I want to keep my place but look at another part of the file, I do C-x 2, mess around in the other window, then C-x 0 when I want to go back to my place. I hate that in other editors if I'm keeping the cursor in one place and
351.
▲
by
brlewis
6y ago
> it's recently getting some traction among a new generation Where can I learn more about this? If I teach my kids emacs will they not be the only ones among their peers who use it?
352.
▲
by
brlewis
6y ago
Unfortunately, if Person #2 chooses to get sick sooner, it increases the probability that Person #1 will get sick sooner. All precautions are multiplicative factors. See https://www.linkedin.com/pulse/saving-your-health
353.
▲
by
brlewis
6y ago
> I could spin the data to point out that Sweden has a fraction of the deaths as NYC and a higher antibody rate, proving that lockdowns don't work. Could you? My impression is you have too much integrity to do that. Ignoring the obv
354.
▲
by
brlewis
6y ago
> The bet is that over time deaths will be roughly the same, lockdown or not The total number of infections will be the same up until a vaccine is developed, but the death rate can be lowered by delaying widespread infection until treatm
355.
▲
by
brlewis
6y ago
I can't say for sure what they mean, but I'd guess it's saying they keep shared state in a parent component rather than having a global data store for their app. The useState hook might explain their chosen wording.
356.
▲
by
brlewis
6y ago
> Why shouldn't we remove the lockdown if we can manage to do so without overwhelming hospitals? That's a big if. The last stats I saw showed Sweden experiencing 4x deaths per capita compared to its neighbors, which is a clue t
357.
▲
by
brlewis
6y ago
I'm concerned that would magnify shortages due to hoarding, among other problems.
358.
▲
by
brlewis
6y ago
> Also, I'm not sure what Peter Norvig has to do with it. I bet he doesn't like PHP, either. Your comment wasn't about people who like PHP. Your comment was about people who defend JS or PHP to the minimal extent of saying
359.
▲
by
brlewis
6y ago
Yes, that did sound condescending. I'm both a defender and detractor of JavaScript. I'm mostly a detractor of PHP, but could possibly defend it once in a while if I see misinformation. Peter Norvig at some point came to the realiz
360.
▲
by
brlewis
6y ago
Why shouldn't they reach out to the public at the same time as reaching out to the rest of Google? It's a huge organization.
More ›