Recent submissions

Comment · 6 years ago
I read that as "elegant" not "made better". It's possible that people could read it either way.
Comment · 6 years ago
What if they share the link on social? All the new traffic would seem to be non-unique.
Comment · 7 years ago
I was astounded how much better I was than my classmates at coding, testing, debugging, etc. I attribute all of it to the 25 hours a week I spent at work.
Comment · 7 years ago
I'm not really sure this is 100% true. I recently got a fight confirmation email and immediately started getting "things to see in LOCATION" push notifications from Google maps. I'm not sure of course that they really read my email, but it did convince me to look at alternatives.
Comment · 7 years ago
Nobody is adapted to asynchronous communication, it's always going to make you less productive. The key is that your immediate request is forcing someone else to put down their thing to help you, the same way that other people interrupt you when they message you. In optimizing for team performance, we don't get individual maximums.

Mostly, try to reduce switchyness. Not all input is blocking, sometimes you can put a question out early and have hours/ days/ weeks before you need an answer. Work on identifying potential hangups early and often. Try to handle your communication in batches. Respond to urgent messages faster, but spend time between deep tasks or in the lame duck part of the day doing email.

Comment · 7 years ago
Basically a linear array is packed tightly, so trying to put something in the middle, well first you have to move what's already there. Because it's packed tight, you end up having to move everything to the right one space from the right back to where you're creating a hole. Then you can put what you want in the middle. Sometimes you get lucky and you're adding something far to the right and don't need to shuffle many items first, but sometimes you need to put it on the very left and reshuffle the whole thing. You'll never have to shuffle anything twice, but is possible to end up shuffling everything once so we say it's O(N) which means never takes a crazy multiple of the number of items.
Comment · 7 years ago
In my opinion, the main reason to have `async` is because it doesn't require knowledge of generators. I've worked with developers who thought that `async`/`await` was too much trouble to learn and unnecessarily complicated. Promises allow us to act like nothing changed and functions return values. The trick, to me, is how do you meet that need without sacrificing these more powerful operations.
Comment · 7 years ago
Did you see that this is a command line app (like VI, or EMACS)? Those libraries look like they're used for GUIs. Do you know if they can be used for the terminal?
Comment · 7 years ago
From the article:

> In recent years, study after study has found that living in neighborhoods with abundant green space is linked to positive health outcomes.

But it specifically calls out trees as more beneficial than other green spaces.

> But when it come to promoting human health, not all green spaces are created equal. That’s the conclusion of new Australian research, which finds higher levels of wellness in areas marked by one particular manifestation of the natural world: leafy trees.

So it's not contrasting "nature" vs. "stacked concrete boxes", it's comparing "green space w/o trees" (e.g. a lawn) to "green space with trees" (e.g. a park with trees).

Comment · 7 years ago
From the article, it wasn't a XOR, the "key" was that there was a bit sequence when interpreted as Morse code said something like "copyright ATARI". So, reasonably easy to show it wasn't just pulling the message out of thin air.
Comment · 7 years ago
In C#, your tasks are submitted to the ambient task scheduler. In ASP.NET, this is (I believe) the main thread pool that handles requests. The only time I've ever had to care where something was running is when adding response headers because that's available as a thread local API that can't happen on another thread, but it's generally ended up as a "it hurts when I do this" kind of situation.
Comment · 7 years ago
My 2 year old is learning road safety and how to walk on the side of the street, but she's still safer when I'm with her because as an adult, I can understand things like getting hit by a car that I haven't experienced first-hand and I'm much less likely to get distracted by a cat or bird or whatever. Honestly on our street enough chickens and dogs and horses and tractors get out that I'm not actually worried about her getting hit, but she's also infatuated with irrigation canals and cannot swim, so I don't let her walk alone. I strongly disagree that this makes me a bad parent, despite your assertion that "she'll need to be autonomous someday, why not today?" Sure, she'll learn all this and more, but teaching takes time, and there's more to life than ensuring your kids could survive alone at the earliest possible age.

She still wants her mommy to kiss her knee when she scrapes it, my priority is not teaching her to clean and bandage a wound.

Comment · 7 years ago
Yeah, Getty is selling photos that are public domain. Photos in the public domain are already free to use, though some people might pay to have peace of mind that they didn't take a similar, not-public domain work by mistake or something.
Comment · 7 years ago
To be fair, getValueOrDefault is strictly more powerful than defaultdict because you can vary the initial value by the key.
Comment · 7 years ago
I have a dream that rural work will become more popular. I live in a city where all the local kids go to the oil fields or get out of Dodge, but I've heard a lot of comments from families that they'd do just about anything not to work out of town. With remote work, you could have more families and offset the retiree population, making this a more vibrant community. Does anybody have experience with starting a coders group in a low-density area like this?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton