News for hackers. Stuff that matters.

john_butts

Re:Fun with Swift on Monday January 04, 2016 @12:08PM (#10836745)
This gets back to the point that Swift is not a functional language. By default, the closure is capturing an immutable reference - the fact that the value might change is implicit to the way you must think about programming in a non-functional language. The mechanism to capture a constant value is to declare it in in a capture list:

  var f = {[i] in print("hello I'm a callback and i =", i)}
Ah yes, not immediately dying. The mark of a not too poor.
Like, I'm not trying to be snarky, there's a lot of conversions going on there that aren't explicated. My takeaway is that if you can buy food and little else, that's poverty, right? Or no?
So poverty then. Or I don't understand your math?
Re:Covariance and Contravariance on Saturday November 21, 2015 @11:53AM (#10607232)
That's a great course, and actually a perfect conceptual base for Swift in a lot of ways.
Re:Epistemic learned helplessness (2013) on Saturday September 26, 2015 @01:36AM (#10282224)
Not buying it.
Re:Goodbye, Native Mobile Apps on Friday September 25, 2015 @01:31AM (#10276515)
I mean, Twitter only makes sense when a third party digests their API. The default web client is broken (sometimes intentionally) in many, many ways. Perhaps I'm misreading you?
Re:How Many Foreign Words Do You Need to Learn? on Tuesday September 22, 2015 @11:48AM (#10259343)
Your scrolling social sidebar is obscuring the text, BTW.
Yeah but still. Yawn.
Re:When Is Cheryl's Birthday? on Saturday April 25, 2015 @12:12AM (#9437168)
1. HN comment about some aspect of fizzbuzz or whatever. Not how to solve fizzbuzz or whatever; rather, some insight into how people solve problems, which is the interesting part of the question. 2. Two dozen oblivious nerds tell u how to do it in 20 characters of perl
"It's hip to be square"

- Huey Lewis

Re:PuzzleScript on Wednesday April 15, 2015 @11:53AM (#9381786)
Seconded wholeheartedly, from a non-friend.
Re:Show HN: Is this puzzle too hard? on Tuesday April 07, 2015 @02:26PM (#9336000)
Yeah I figured, but I didn't know if there was an actual parity error because I was working (impossibly) towards the wrong solution, or if there was a hard part that I might still work through and still arrive at a wrong but plausible solution. Does that make sense? There are enough ambiguous elements in the puzzle that make it kind of cat-mustachy and unrewarding. Do the symbols mean anything, or are they just differentiators? One of them is the reverse-space image of one of the others, is that significant? One of them is a unit block - maybe they go in order of unit block count? What's the physical analog or metaphor of the lock, like pins and tumblers or? Should colors be aligned vertically or horizontally, or not at all? Is there a unique solution?
Re:Show HN: Is this puzzle too hard? on Tuesday April 07, 2015 @01:44PM (#9335715)
It's not "hard", it's just obfuscated as it stands. I chose one of many plausible success conditions to work towards and got one step away due to what seemed like a parity error and quit.
You nerds are sooooo fucked when the rubber meets the road.
Re:When Nerds Collide (2014) on Wednesday March 11, 2015 @11:32AM (#9184578)
Am I misreading the Japan thing? Like, it's not hard to imagine that there would be candidates that would be immediately excluded based on surname alone without even getting into race or gender - is this "fair" or "unfair", or is it just the way things are? Is the latter(est) the analogy we're supposed to take from this?
Re:When Nerds Collide (2014) on Wednesday March 11, 2015 @11:19AM (#9184503)
Orrrrr it brings him into line with appropriate workplace expectations in a world not dominated by dudes.
Re:Time travel in Braid on Tuesday March 10, 2015 @12:00AM (#9175947)
Almost no one praises the books! In fact, that's the one caveat in most otherwise glowing reviews; that is a testament to the game design, that the only concrete narrative is the least effective narrative. However! - I think Blow was at least trying to do something that explains how stilted it seems, though I'm not entirely sure what. For example: it takes only a slightly charitable perspective to make a coherent story when the books are read in reverse order, and confirmation bias be damned, it seems intentional.
Re:“Just remove the duck” (2013) on Tuesday March 03, 2015 @11:30AM (#9138540)
This is the origin story of Richard Stabone (RIP) also. Originally named to be used as a sacrificial bargaining chip with the standards board, he was somehow never cut, leaving Kirk Cameron stuck with a Boner for four years.
One of those is your own submission, from today, linking to a similarly outdated article, which is weird
Re:Why Learning to Code Is So Damn Hard on Wednesday February 04, 2015 @09:55PM (#9001492)
Speaking as a rockstar bacon ninja Viking pirate robot code fu guru unicorn damn hell aged and wise app developer, many of these problems could be mitigated or eliminated in the web dev world if the web dev community could just slow down a little and clean up their existing messes before inventing twice as many new slightly shinier messes every funding cycle or so.
It seems like, for various reasons, you want to make a very public statement.
Wouldn't if be easier to lean on two or three grad students to step up? I genuinely don't know how these things work, but maybe that's why this looks a little nuclear to me.
Re:Credo on Thursday August 22, 2013 @10:21AM (#6257289)
Just when I thought medium couldn't get any mediumer.
Re:Why I Left Medium on Thursday August 01, 2013 @12:26AM (#6138650)
There is a constant problem where I mouse over a link and see only medium dot com. It's a contextual stripping in a marketplace that pretty explicitly judges you on the unique ribbons in your hair.
Re:Users of my iOS Game Teach Me a Lesson MIT Didn’t (2011) on Thursday March 28, 2013 @02:41AM (#5453599)
Huuuuuuge jump up to his denouement.
Re:Stop Using Small Font Sizes on Friday February 22, 2013 @11:20PM (#5268542)
Your site is barely readable and unzoomable on my phone where I would normally read a short blog post from an unknown but potentially interesting site. It's a very real glass house situation.