HNHacker News
TopNewBestAskShowJobs

danneu

1,932 karma · joined February 2, 2011

submissionscomments
danneu··on Uber's billion-dollar losses expose the fragile state of the on-demand economy

    > Building a real time ridesharing engine is not hard - I did it once
You did about 0.01% of the work.
danneu··on The man behind the million dollar homepage 11 years later
Surely you're closing your eyes and listening to the voice as you meditate. At which point, it'd be nice to do it wherever you please.
danneu··on Ask HN: Is it possible for someone to not be cut out for software engineering?
I doubt I could get a job at one of the "big four". Their interviews seem mired in hard technical questions, the sort of problems I just don't encounter in the things I build. It doesn't interest me.

Doesn't mean I'm not cut out for software development nor that I can't deliver value to anyone else.

Nor does it mean I can't find a rewarding and interesting job that suits me and the lifestyle I want.

danneu··on React Router v4 FAQ
Surely there's more fog of war when coming up with better browser-side abstractions than on the server-side.
danneu··on The advantages of static typing, simply stated
I'd say working with JSON in Elm is pleasant and simple, but it does require familiarity with parser combinators.

It's a common challenge for Elm beginners.

danneu··on Node v6.6.0
Yeah, looks like it just checks on nextTick, so it only warns when you don't attach a handler synchronously. Versus warning only if it's unreachable (like on garbage collection).

Though it does emit another message when rejection is handled asynchronously.

    > var p = new Promise((_, reject) => reject('lol')) \
      setTimeout(() => p.catch(() => console.log('handled')), 0)
    UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): lol
    PromiseRejectionHandledWarning: Rejection handled asynchronously (rejection id: 5)
Consolation prize?

Fortunately, most of the run of the mill promises I can think of off the top of my head get rejection handlers attached synchronously, like in upstream middleware. I might be drawing a blank, though.

danneu··on Node v6.6.0
This will save a lot of time across the Node ecosystem.

Forgetting to handle rejection is probably the most common error I see when people post Promise snippets in #node.js. Silent failure is so deadly. "Why do my requests hang?"

danneu··on Adblock Plus now sells ads
Not every website is Forbes.

What about all the small websites, from creative to forums, that aren't big enough to graduate from ads but can pay their own rent with them?

Seems like a net loss for humanity to lose them from the internet while keeping only the large businesses online.

danneu··on The iPhones 7
I tried to go caseless, but thin metal smartphones are way too slippery. Every time I set my phone down on something, it always seemed to have some velocity towards the floor, just a matter of time.

Also, it feels wrong setting the iPhone down on a bar table or whatever. Either the touchscreen lays against the table or it's seesawing on its protruding camera lens.

Putting it in a minimal rubber case took an $800 load off my mind for $15.

danneu··on The Correct Way to Validate Email Addresses
option-e and then a vowel will create {á é í ó ú}

option-u and then a vowel will create {ä ë ï ö ü ÿ}

option-n and then an 'n' will create ñ

Found this out while learning Spanish since holding down keys to select their alternate was way too slow.

danneu··on I am a fast webpage
http://bettermotherfuckingwebsite.com/
danneu··on MoonMail: Serverless Framework for Sending Emails Using AWS SES and Lambda
Seems that "serverless" just means AWS Lambda is involved.

For example, http://apex.run/.

danneu··on Show HN: HN Chat – Minimal Hacker News Chat with User Verification
My IRC client does this, but I find it too jarring when multiple people are talking and they have the same color.

Sometimes it rolls a yahtzee and the three people talking all have the same color and the same length of chars in their name.

I figure that even if the people talking luck out and have a shade of green like in my screenshot, it's still better than if they all fell into the identical green bucket.

danneu··on Show HN: HN Chat – Minimal Hacker News Chat with User Verification
Like #node.js, they have 1000-2000 users connected with probably the same level of engagement, so probably 98% idle which means it's effectively a chat room for about 15 people.

And each person needs to care enough about IRC (e.g. run a VPS) to receive pings or messages while they are away and to see the message history when they return.

Maybe IRC is "plenty popular" which apparently means popular enough to find someone willing to shoot the shit with you if you're in one of its largest channels. But that's a far cry from "IRC is everywhere".

I use IRC every day. I'm just not left scratching my head when I find out that yet another ecosystem chose Slack/Discord over IRC. It blew me away when I saw how active Elm's Slack was while #elm is dead. But that's pretty much how it is with every community I'm part of with a Slack channel.

Sometimes people here suggest "maybe IRC is just for developers", but you can't even format a code block on IRC. :)

danneu··on Show HN: HN Chat – Minimal Hacker News Chat with User Verification
IRC isn't everywhere. Even a large channel like freenode's #node.js has maybe 15 regulars, myself included.

Meanwhile, Elm's Slack channel has more regulars than #node.js.

IRC is kept alive by a small holdout. I'm one of those people, but it's no mystery to me why nobody else uses it when I'm paying irccloud.com or running weechat-ncurses on a VPS just for basic features everyone expects from a communication tool.

danneu··on Show HN: HN Chat – Minimal Hacker News Chat with User Verification
Idea: Color each username based on a hash of the username.

    '#' + username.md5().take(6).join('')
I did it for a chat I once built, users liked it, and it helps you keep track of who said what. Though I added some styling to keep it legible, like a 30% white blend, a stroke, and a drop shadow.

https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/xf17fn... (not the best example since everyone happened to be shades of green)

danneu··on Ask HN: Where do you go for civil discussion on the Internet?
A big pain point of the subreddit system would be solved in an amusing way if subreddits were qualified by the creator's name.

Example: /r/@theymos/bitcoin. Now, instead of looking like Reddit's canonical Bitcoin discussion forum, you're reminded that it's just one person's forum at the mercy of one person's agenda.

danneu··on Canadian surgeons urge people to throw out bristle BBQ brushes
It's also the canonical method here in Guadalajara.
danneu··on Zapping Their Brains at Home
Evolution only helped millions of years of our ancestors get laid. Doesn't mean you can't push the envelope with a dab of makeup.
danneu··on A practical security guide for web developers
There's a whole section on input sanitization but nothing on escaping output.

If you're on the hook to sanitize all inputs, doesn't that mean you're not escaping output?

The biggest security mistake I've made so far in production was that one time I used an HTML templating library that didn't escape output by default.

danneu··on CloudFlare, We Have a Problem
Looks like it wasn't until 2013 that Cloudflare became serious about origin protection and a more universal anti-DDoS service: https://blog.cloudflare.com/ddos-prevention-protecting-the-o... https://blog.cloudflare.com/the-ddos-that-almost-broke-the-i...

I'd like to know if people are still getting that email.

danneu··on CloudFlare, We Have a Problem
The only thing I've seen these days is Cloudflare lifting your service to "Under Attack mode" accompanied with an email saying that they will suspend your account if you toggle it off during the attack.
danneu··on CloudFlare, We Have a Problem
Explain?

The only ways I can think of finding the origin involve user error:

    1. DNS history lookup where they're still using the same IP address.
    2. Scanning the internet where they aren't ignoring non-Cloudflare 
       requests.
You can file an abuse or DMCA request to Cloudflare, but they only reveal your provider.
danneu··on CloudFlare, We Have a Problem
They cloak my origin.
danneu··on Prefer duplication over the wrong abstraction
The problem with premature abstraction is that it becomes difficult or impossible to reabstract since you're not looking at the root issue anymore but rather attempting to unroll a failed abstraction.

Often by the time the abstraction is such a failure that it needs to be rewritten, it's evolved into its own system with a menagerie of hacks latched on to let it live another day. You're not going to just come up with a regeneralization because more often than not it's not generalizing anything anymore.

Seems a bit much to "throw up in your mouth a little". Premature abstraction and the high cost of indirection are responsible for some of the hardest problems in software and you don't offer a solution beyond "try anyways".

danneu··on Are we getting enough sulfur in our diet? (2007)
That counts as eating raw eggs about as much as gelatin and pork rinds are protein supplements.
danneu··on Reports of cancellation of AdSense accounts
Well, the hard part is dealing with fraud, not letting fraud compromise your payouts, and giving value to both the publishers and advertisers in the meantime.
danneu··on Dunning-Kruger and other memes (2015)

    > Usually the person applying thinks highly of their 
    > ability to identify a DK scenario.
This is a critical component of the DK epithet, often accompanied by a tacky link to the wiki page.

https://hn.algolia.com/?query=dunning%20kruger&sort=byPopula...

danneu··on Image Hosting on Reddit
The only reason you'd take someone's word for something is when you can't derive it yourself, like if the tech isn't there yet.

Google introduced nofollow in 2005 to either let people help fill a gaping hole in Google's tech at the time or for the smart marketing move of making people fixate on their magic attribute. Both under the guise that spammers would care.[1]

It's been twelve years.

The SEO advice industry and Matt Cutts' blog these days are probably like when I try to ponder why my cat scoots its waterdish around the room before it drinks: attempting to find backsplanations for the idiosyncrasies of a neural network that nobody quite understands.

[1]: https://googleblog.blogspot.mx/2005/01/preventing-comment-sp...

danneu··on Image Hosting on Reddit
It would be irresponsible for a machine learning black box like Google's indexer to give much importance to rel="nofollow". Think about it.

Imagine you're building the perfect internet indexer. In an effort to generalize your model, you anticipate a scenario where a nofollow link shows up consistently on various Wikipedia pages where it persists for a long time. What are you going to do? Ignore the link because, sorry, them's the rules?

Or are you going to realize that nofollow is about as useful of a signal as <meta name="keywords">?

← PreviousPage 3 of 26Next →