3,453 karma · joined Jan 7, 2013 (13y ago) · 1,573 submissions
1418.
Ask HN: Long time iOS developers, are you using storyboards?
5 points · by orbitur · 11y ago · 8 comments
comment 11y ago · link · parent
This is one of the many incredible things I discovered when daughter was an infant, and even into her toddler years.
There were days where she was pretty awful, crying and not sleeping, and when she did sleep it wasn't more than an hour. I was upset and distressed, but not once did I ever blame her or get angry, which is a complete departure from my usual "someone has to pay for this" anger that I direct everywhere every day. I'm an incredibly selfish and somewhat unempathetic person.
I had a number of self-aware moments, where I was actively questioning why I wasn't angry at my baby, or at least tired of her, but my only answer was that looking at her, holding her, taking care her, filled me with such joy. And when I was distressed, I was distressed for her sake, concerned for her wellbeing. But never mad at her.
comment 11y ago · link · parent
Consider the simplest non-trivial example: a sample of 1 element, from a two-element reservoir. At iteration one, we accept the first element. At iteration two, if the sample is to be random, we have to decide to keep the new element with a probability of 1/2:
First element: (1/1) (1/2) = 1/2*
Why are we multiplying the acceptance of the first element with the probability of keeping it? And then...
But what if we're sampling from a pool of three elements instead? We know that we therefore have to keep the new element with a probability of 1/3…which means that we need to keep the element we already have with probability 2/3:
First element: (1/2) (2/3) = 1/3*
Where did the 1/2 come from? Why is it not 1/1 here?
comment 11y ago · link · parent
There are people on both sides of an issue who are genuinely, mistakenly trying to have conversations. On Twitter, where the UI is designed to strip context away.
comment 11y ago · link · parent
- new branches (I find the syntax tedious for some reason, and I like to see where I am in the tree, so I'm already looking at SourceTree's interface when I'm branching) - deleting remote branches (see above about syntax) - awesome diff visualization for past commits and current work
Everything else I do on the command line, because SourceTree requires just a few too many clicks for my liking. It's a shame the terminal can't have a nice diff interface like SourceTree's, otherwise I'd probably be full terminal.
comment 11y ago · link · parent
It's like everyone's forgetting that this has to be submitted and voted on internally, and then billion dollar giants will start attacking, and then Republicans will start attacking. Considering all of that, you'd need to be pretty optimistic to continue with the celebration.
comment 11y ago · link · parent
The merge commit is the quickest way to see all the changes that came in from a branch, and if you do branching right, all the changes related to a particular feature by one developer.
Also, merge commits are much easier to roll back, no matter how rarely you need it.
comment 11y ago · link · parent
Please don't ever make this assumption. I referred an acquaintance from school to my workplace (he was a great project partner, and I was the first of us to get hired after graduation, so why not?), and apparently when he passed through everyone was just... doing work. That was a telltale sign that everyone was grumpy to him.
I had to explain that we basically don't work at all on Friday afternoons because we're too busy drinking, we play pingpong religiously, frequent out of office events on the weekends, and in general it's just an enjoyable crowd. Random conversations happen all the time.
But nope, that one time he came through the office, everyone looked unhappy. Because they were working, I guess.
comment 11y ago · link · parent
I often land on a question that I'm asking, and it has a lot of upvotes, but it was answered 3 years ago using deprecated APIs.
comment 11y ago · link · parent
Many people are consciously racist, not in a "I want them all lynched" way, but in a "meh, I'd rather not meet with a black guy, probably a waste of time" way.
Of course they aren't going to admit that sort of bias. And again, you're just guessing at what happened.
There is indeed subconscious bias, and it rears its ugly head when we're observing people's mannerisms, their speech, their attractiveness, and yes, their skin color. But just looking at names on a resume, I'd argue the decision of calling someone back, based on the stereotypical application of their first name, is just a conscious bias.