Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
always_good
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
154 ms
·
1351.
▲
by
always_good
10y ago
How would a fork help you? Are you saying build off of it?
1352.
▲
by
always_good
10y ago
> Callback hell is a gift that forces you to > refactor code until it's easy to understand That doesn't sound like a gift to me. Unless you meant they are so painful as an abstraction that they gifted us with p
1353.
▲
by
always_good
10y ago
That won't get better until koa 2.x drops the @next flag (when async/await lands in node). But I've never run into an issue that was "insanely difficult".
1354.
▲
by
always_good
10y ago
What impedes readability here is that you don't simply have an async function `getProfiles({ userId })` that gives you a list of profiles, either taking a callback or returning a promise. A lot of that is pointless noise. You don'
1355.
▲
by
always_good
10y ago
> And async/await is not solving anything because > your definitions of fuctions will still need > callbacks/promises under the hood anyway The point is that you can write your complex business logic w
1356.
▲
by
always_good
10y ago
Callback hell isn't the characteristic of having a callback-based API. It's the code you get when you try to compose it and conditionally fork it without any better abstractions. So promisifying a callback-based API does address i
1357.
▲
by
always_good
10y ago
In a capitalist dystopia, I'd agree with you. But everywhere else, you cannot live without impacting the lives of other people. For example, let's say you choose to eat unhealthy food, become obese, and land in the hospital. You m
1358.
▲
by
always_good
10y ago
But your code doesn't even handle the trivial case. "She said, \"Hello, world!\"" You can drop the "meh, I know I didn't handle all the complicated cases" act. We all recognize the classic
1359.
▲
by
always_good
10y ago
The dream: > they will fix it The reality: > they are looking into it
1360.
▲
by
always_good
10y ago
People don't sit on a plane randomly. Fat families sit together. And randomness is not an equal distribution. Also, cargo is lighter than the human payload. Most people aren't lugging around their body weight in luggage.
1361.
▲
by
always_good
10y ago
I had to take an IQ test when I was interviewing for ThoughtWorks. Then again, they also asked me about my cultural and religious views, like my thoughts on immigration and refugees. "I don't have strong feelings about this issue
1362.
▲
by
always_good
10y ago
SirCmpwn, you'll understand more about trade-offs when you finally have commercial success with one of your projects. It's too easy to lambast Electron and "lazy developers" when you've never had business concerns t
1363.
▲
by
always_good
10y ago
> but consider that the end product is not > necessarily meant to be most convenient > for the developer. Sorry, but life isn't fair. Everything including software involves trade-offs, and perhaps ones that y
1364.
▲
by
always_good
10y ago
> It feels like forcing a square peg into a round hole because the > developer is seemingly unwilling to consider more appropriate > technologies outside of their comfort zone Until I find out I'm immortal,
1365.
▲
by
always_good
10y ago
I'm not sure what your snippet is demonstrating, but it's not demonstrating message_id matchup. The client stores its own message_id -> callback mapping, it has to send some sort of reply id for the server or agree on some othe
1366.
▲
by
always_good
10y ago
Hard to take a "socket.io killer" seriously when it doesn't even implement bare necessities like message_id callbacks: socket.emit('msg', 'hello', (err) => ...) At which point the nice part of
1367.
▲
by
always_good
10y ago
^ I hope I never become this HN Dad trope.
1368.
▲
by
always_good
10y ago
"Heh, I had this idea when I was eight years old. Color me surprised when I saw it at the top of HN this morning. ;)"
1369.
▲
by
always_good
10y ago
I don't think your use of quotation marks adds anything.
1370.
▲
by
always_good
10y ago
> I did want to chime in quickly and say that > it's pretty absurd to only have 1GB for a > web application in 2016 For Rails and Java apps, I can see that. But if the 512MB dyno isn't enough for any of
1371.
▲
by
always_good
10y ago
Right, I meant in regards to this comment chain where "inline CSS is bad if you have an XSS vulnerability."
1372.
▲
by
always_good
10y ago
I still don't understand what it accomplishes. Why does inline matter? The vulnerability means they can inject arbitrary markup including <link> or <script> that load offsite sources. You can use CSP to whitelist allowed of
1373.
▲
by
always_good
10y ago
Next time please at least click the link before chiming in with a comment. The title was not the problem here.
1374.
▲
by
always_good
11y ago
Yikes. If it's so hard for hosts to please you despite their efforts, then maybe you should start bringing your own dish to the dinner.
1375.
▲
by
always_good
11y ago
Yikes. Gotta wonder if the "Meet the Team" page on http://www.balderdash.io/ is up to date after reading that.