HNHacker News
TopNewBestAskShowJobs

mbenjaminsmith

1,329 karma · joined July 9, 2009

SSEuAAGo60Ssb9UMZhmYW77MLQcz1azm xSTO8k2zwIBX7jfw4PQEDozixMnjkZ8L
submissionscomments
mbenjaminsmith··on Why hipsters all look alike (2014)
Humorous intent aside, I think the fundamental error here is the author(s) conflating a trend with the counter culture of yore. The hipsters of today do not follow from the counter culture of the 60s nor the punk movement that followed. They're not non-conformist nor do they have an internal set of political beliefs. They're just people dressing a certain way -- often combined with an excessively groomed beard in the case of men. The only sense that they're a group or movement is that they may share socio-economic status, cf. the yuppies of the 80s.

Though the beards do crack me up, I don't think this group deserves any more derision than any collection of (young) people struggling to find Heideggerian authenticity. Growing up I saw the same struggle in arguably more authentic subcultures like punk and skateboarding.

mbenjaminsmith··on The Nightmare of Replacing a Battery on a Mac Laptop
I went through something similar with Apple not that long ago. I had a retina MBP that had a faulty keyboard. Half of the home row stopped working, starting with a single key in that row. It was some type of physical failure.

I thought the computer was still in warranty but after talking to half a dozen people at Apple they told me it was 3 years out of warranty. Then they told me they'd have to replace about half the computer which would, not surprisingly, cost me 50% of what I paid for it.

I complained politely for about 45 minutes, talking to a few more people and then they reactivated my warranty and asked me to take it in to a shop. I got it back in about a week and was happy to see that they had also replaced my battery, which for about a year had given the same warning as in the article.

While I was happy about that, and it made me like Apple more, the reality is my computer is a business expense and in the big picture not a really large one. Also, computers are still developing fast enough that they're not practically a long term purchase. People talk about wanting to service computer themselves but that's a very small percentage of the overall market.

mbenjaminsmith··on Ask HN: What do developers earn on toptal.com?
I was hired to rebuild a project that was DOA. I've seen worse but not that frequently. After failing to find the initial developer's GitHub profile I found his toptal.com "CV". That was the first I had heard of it.

Since I do contract work at the moment I wanted to see if (this developer notwithstanding) toptal was worth having a relationship with. I contacted support since there were a number of questions I needed answered before I would consider going through their interview process.

The support guy I was put in contact with, who had zero programming experience (I asked), told me my questions would be answered on day three (or maybe it was part three) of the interview process. I politely said that was a deal breaker for me and his response, in so many words, was that it didn't matter since I wouldn't make the cut anyway. His lack of ability to determine that aside, he had zero information about me at this point.

My advice: Avoid like the plague.

mbenjaminsmith··on Markov Chains Explained
Didn't really look at it but the spirit of it I love. Thanks for sharing.
mbenjaminsmith··on The force vectors on a skateboard during an Ollie
Yeah, that's how I did it. Grass is helpful until you can get the board to come up close to level and land on it.

For some reason it took me much longer to learn how to drop in on a ramp. I built an 8-foot ramp in high school (no vertical) and it took me ages (weeks, IIRC) to drop in without immediately planting a foot and running or falling down the ramp.

When I finally nailed it I was so happy. Damn, I miss skateboarding.

mbenjaminsmith··on Ask HN: How was your experience using parse.com?
I'm wrapping up an iOS project using Parse and wrote a Core Data <-> Parse "offline mode" / sync engine for it. From a development perspective I'd say it's relatively painless.

I did encounter a "bug" wherein certain queries can't be cached effectively which I solved by using vanilla arrays instead of Parse's PFRelation. No downsides to doing it that way (for this project) but it felt awkward. It would be better to have more consistent caching behavior.

I encountered other issues but that one is top of mind at the moment.

I have seen downtime during development. It's usually short-lived but it's there nevertheless.

mbenjaminsmith··on Ask HN: Programmer Job Crunch in SF?
Thanks. Yeah, I don't have anything really substantial to add. I was just connecting some dots and wondered if there was an underlying trend.
mbenjaminsmith··on Ask HN: Programmer Job Crunch in SF?
> all of whom have complained that it is ridiculously difficult to hire good engineers.

Thanks. I guess I was mostly wondering if that trend is changing.

mbenjaminsmith··on New Requests for Startups
If anyone is interested in exploring ideas for SE Asia email me (in my profile). I'm based in Bangkok and have 15 years of experience living and doing business in this part of the world. I have a network and access to capital but would be interested in finding some fresh blood to help me execute.
mbenjaminsmith··on A Watch Guy's Thoughts on the Apple Watch After Seeing It in the Metal
> If not, automatics may go the way of film cameras.

I think you're missing the fact that the mechanical watch industry is already post-apocalypse (i.e., the Quartz Crisis that started in the 70s).

The current mechanical watch industry does not exist for anything other than emotional reasons and won't see that much of an impact from another $400 electronic watch.

As a collector myself I think it's an interesting development for the industry and I'm sure I'll buy some version of the Apple Watch. I doubt it will replace one of my mechanicals as a daily wear.

mbenjaminsmith··on Shen more strongly typed than Haskell?
As you seem familiar with the topic, can you give me a concrete example of when dependent types would be necessary or useful?

If we look at Haskell's Maybe or Swift's option type we have a clear case: There is no ambiguity between an unset variable and a variable set to a null or zero value, i.e., we can clearly express that something isn't there. That allows us to avoid magic numbers as a (horrible) workaround.

What do dependent types gain us?

[Edit]

Rather than clutter up the thread, I'll thank everyone here for the detailed responses below. Really, really interesting stuff.

> All of the functions above depend crucially upon the compile time invariant of having a fixed size list. They therefore work for any type-homogenous tuple, for instance, but we'd have to define the functions for each tuple independently. Using `Vect` we can classify the entire family of fixed-sized type-homogenous vectors all at once and dispatch functionality across the whole family.

That's pretty much exactly what I was looking for. Thanks again.

mbenjaminsmith··on Show HN: Kevlar.io – Secrets that when accessed are deleted permanently
Before I get to far into a topic I'm not an expert in, I'll refer you to these:

http://matasano.com/articles/javascript-cryptography/

http://tonyarcieri.com/whats-wrong-with-webcrypto

I'd say the main issue with that is sending an encryption package over an insecure channel. While you could verify the package independently (check a hash against a publicly known one) you're already into advanced user territory and the "encryption for everyone" point of this is gone.

mbenjaminsmith··on Show HN: Kevlar.io – Secrets that when accessed are deleted permanently
Those are really good questions.

> in terms of end-to-end encryption, what kind of client-encryption do you have in mind?

I didn't have something in mind, but Stanford has a good, relatively hard to screw up (by configuration) JS crypto library. But that's only part of the battle since we can't trust the delivery channel or the browser.

> usually, this involves steps that regular internet-users are not able or willing to handle.

That's right and underlines the single biggest reason crypto isn't really used by most people apart from HTTPS.

> to your second point, how would you ever be able to proof that?

That's a really interesting question. It might not be provable. I wasn't trying to be cryptic (excuse the pun) but that was really the point I was making.

mbenjaminsmith··on Show HN: Kevlar.io – Secrets that when accessed are deleted permanently
I think this is neat. I can't imagine a use for it but I like the UI.

The fundamental problem with this:

There's no way to prove that the secret has been deleted and / or not copied. You have access to the plaintext and the password / url (presumably an encryption key). You (the malicious server operator or the compromised server) can do anything you want with the information.

This would be interesting if you could:

1) Offer end-to-end encryption. This would require encryption in the client which has its own issues.

2) Be able to provide proof that the information has been made inaccessible. This is not the same thing as having the link return a 404 the second time.

mbenjaminsmith··on Codefights
FWIW, I have a high IQ and I didn't get very far either. Debugging code I've never seen before in less than 60 seconds isn't a skill I've needed to acquire.
mbenjaminsmith··on Compute magazine and its glorious, tedious type-in code (2012)
Oh man. My first computer was an Atari 400 and I had the BASIC cartridge as well as Star Raiders. I'm pretty sure that was and still is the best game ever made.

My introduction to programming was this series:

http://en.wikipedia.org/wiki/Micro_Adventure

You'd type in BASIC programs (line numbers!) that would reveal plot points, usually by deciphering an encrypted message (if memory serves).

mbenjaminsmith··on The Brazilian Bus Magnate Who’s Buying Up Vinyl Records
Somewhat related:

While record shopping in Hong Kong I managed to get over to Kowloon to a tiny walk-up record store that had 1000s of used LPs stacked in boxes. The store was so crowded no more than 4 people could be in it at one time and searching LPs involved having the owner do feats of acrobatics to shuffle boxes around. Most of it was junk, but he did have some gems if you told him what you were looking for.

After buying a few inches worth I talked to the owner a bit: He had, by his estimate, 200k LPs, most of which were off site in storage. He had moved to Kowloon from the mainland without a dollar to his name and lived on the street. When CDs hit the scene (I'm guessing mid-80s to early 90s) the status-conscious HK residents started literally dumping their LP collections out on the curb. Decidedly forward-looking for a homeless guy, the owner started collecting them in one pile on whatever street he occupied. He slept under the same plastic tarp that protected his collection from the rain for 20 years.

When the vinyl resurgence hit he did a fairly brisk business, was able to buy some property and a Harley. He met the president of Harley Davidson while he was in HK -- something that got him visibly excited when he talked about it. Pretty cool guy.

mbenjaminsmith··on Ask HN: How many hours can you productively program a day?
I can do 8 or 9. I can do more than that but not for sustained periods.

If I'm programming 10++ I'll usually burn out after a month or so. Burn out usually means that I don't have the focus or will to get in a solid 8, more like 4 - 6, for a period while I reset (whatever it is that gets reset).

mbenjaminsmith··on “Mostly functional” programming does not work
I think the real failure of FP has been demonstrating its advantages in practical terms. While deferring impurity is admittedly interesting (if you care about the theoretical underpinnings of programming at all) what do I gain as a programmer?

I'll try to illustrate my point:

In programming we often have to do something more than once. In terms of mental complexity, I'd rank our options like so, from easy to hard:

Loop -> Recursion -> Fixed Point Iteration

We can do the same thing with all of them. Recursion in some cases can lead to a stack overflow and any fixed point iteration has the disadvantage of, well, being f-ing hard to understand.

A beginner can get a `while` or a `for` loop in seconds. They're very, very intuitive. Once you figure out solving problems in software often requires doing things repeatedly, loops open up a lot of power.

Recursion is more difficult once you throw in conditionals and return values. They're harder to reason about. Loops are simple. So why bother with recursion? I learned recursion because it exists and I love learning. Could I have written just as much software without it? Yes. Would it have been just as functionally correct, maintainable, easy to read? Yes.

I know very little about fixed point iteration. Why? Well, because I have loops and if I'm feeling jaunty, recursion.

Having said that, I recently came across this article about the Y combinator:

http://matt.might.net/articles/implementation-of-recursive-f...

I recommend that article for everyone. But the most important part is the section "Exploiting the Y combinator".

> This formulation still has exponential complexity, but we can change it to linear time just by changing the fixed-point combinator. The memoizing Y combinator, Ymem, keeps a cache of computed results, and returns the pre-computed result if available:

The author is talking about his algorithm for calculating Fibonacci numbers. While the naive recursive approach is limited due to its computation complexity, by caching intermediate results we can short-circuit the calculations made.

> The end result is that the 100th Fibonacci number is computed instantly, whereas the naive version (or the version using the ordinary Y combinator) would take well beyond the estimated lifetime of the universe.

I don't know enough about what's being done here to say that this optimization couldn't have been made with a loop (I believe Turing equivalence proves that it could have been) but at least I get to see some of the magic that fixed point iteration gives us.

Haskell, as a functional language, offers a lot (purity! type safety!) but the community hasn't really shown how these things are valuable. Type safety is great, but is Haskell materially better than Objective-C (my primary language) in that regard? Pure functions are trivial to test, but in a language with a reasonable amount of type safety, how many individual functions are getting tested anyway? Of course I can write pure functions in an imperative language and often do. And I can do so without painfully abstract concepts like the dreaded monad if I want to do something as pedestrian as generate a random number.

The reality is writing software for most people is about the platform they're targeting, available libraries, ease of use and techniques for dealing with long-term complexity. I have yet to find a reason to use Haskell even though I would love to -- more accurately, I have yet to find a situation where I could justify using Haskell.

mbenjaminsmith··on Exploring No Man’s Sky, A Computer Game Forged by Algorithms
I'm not sure how you read either of those (horrible!) things in my comment but since I wouldn't want to ruin the OP's day, let me try again.

Instead of:

> No, what would be interesting is everything that you said with the addition of...

How about:

> Yes, what would be interesting is everything that you said with the addition of...

I think this is officially the silliest thing I have ever felt compelled to type.

mbenjaminsmith··on Exploring No Man’s Sky, A Computer Game Forged by Algorithms
No, what would be interesting is everything that you said with the addition of relativistic-speed travel. Take round trips near (or over, depending on your reference) the speed of light and watch how things evolve.
mbenjaminsmith··on Ask HN: A day in the life of a programmer?
I don't work in an office as all of my client work is 100% remote and usually short- to medium-term. I mostly program full time in Objective-C and work on a wide range of problems like image processing, audio, networked applications and more recently parsing, NLP and (non-game-related) AI.

1. Wake up around 8, start working around 9.

2. Respond to emails for ~30 minutes.

3. Program for 7.5 hours, usually having lunch while working.

4. Have dinner, spend time with family.

5. Possibly program for another 1-3 hours. The late night stuff might be a side project (or more likely) the most complex part of the current project I'm working on.

6. Rinse, repeat. Take weekends off and try to take a mental holiday to the largest extent possible (drink some craft beer, smoke some pot, play video games, go shopping, take the family somewhere, etc).

I get paid (relatively) large sums of money to solve (relatively) hard problems. The key to being successful in that is getting large blocks of uninterrupted time to work, and when the complexity of the problem warrants it, being able to get in a lot of extra time researching and trying out different things.

There is also some time getting on Skype with clients but I try to keep a steady stream of github activity / emails flowing their way so we don't have to kill too much time talking about the work we're doing. It's not that I don't like to talk to people -- once I get started it's hard to shut me up -- but I think meetings quickly become counterproductive.

I either work from home or from a local coffee shop. I have a (somewhat) high end headphone rig that gives me the privacy that I need. I drink coffee like water. I exercise a bit and try to eat as well / healthy as possible.

Dealing with burnout is a very real thing and I don't think it matters how disciplined you are. I come from a corporate / entrepreneurial background which granted me a "work before mental health" work ethic. I take what I do very (maybe too) seriously. Still, I find it entirely possible to push myself too hard then find it nearly impossible to re-engage. It's never the end of the world because I recover quickly (a couple days max) but it is something I have to be aware of. I often make breakthroughs burning the midnight oil but that comes at a cost.

Put another way, sometimes you feel like you could work through the night. Most of the time you shouldn't. You need to find a balance between getting things done short term and getting things done long term. There's definitely an art to it.

The life of a programmer will vary considerably based on what type of job they have of course but for me it's like the life of a writer or a composer (though I don't wow people at cocktail parties). I spend most of my time in mental solitude. I love what I do and it's lucrative enough that people generally don't think I'm insane for being as obsessed as I am.

mbenjaminsmith··on Ask HN: Good countries for American expats
I'm always surprised to see Thailand on a list of cheap places to live. I live in Bangkok in the CBD just behind the Four Seasons. While that's admittedly one of the pricier neighborhoods to live in, I've also lived in some of the "artier" lower cost neighborhoods here. Overall, this is what I've found, compared to my place of origin:

1. Rent -- 0.5 - 1.0 what you'll pay in a top-tier US city.

2. Groceries -- anything resembling what you'd get in the US will cost 1.25 - 2.00 of what you're paying in the US.

3. Cars -- 1.5 - 4.0 what you'll pay in the US. Insurance is somewhat cheaper however. Ditto maintenance. Gas is about the same.

4. Eating out -- really depends but say $30 - $200 for two people, possibly with drinks. You can eat cheaper food on the streets. You may or may not want to.

5. Electronics, watches, designer goods, etc -- significantly more than what you would pay in the US.

6. Domestic help -- if from a neighboring country very affordable, starting at $20 - $30 per day for maids and nannies.

7. Health care -- pretty incredible value here compared to the US. It would not be insane to go to a top-tier hospital without insurance here. My wife and I just had our son here. Excellent care for a fraction of US prices.

In other words, anything you might save on rent you'll make up for on everything else, with the exception of healthcare and domestic help, which have very high quality vs cost.

mbenjaminsmith··on Exercise to Detect Algorithmically Generated Domain Names
มอไซค์มือสอง is, informally, second-hand motorcycles (or parts).
mbenjaminsmith··on [dead]
I do a lot of contract work these days and I recently found out about a service that promises to put high quality programmers together with high quality clients. The average fees are somewhat high (high for a global average but low-ish for top-grade programmers). I won't mention them here because I'm not going to give them a free plug.

Their interview process has half a dozen independent steps including live coding tests, HR screens, etc. I had some very specific questions that would have been a deal breaker for me and tried to contact them to get them answered directly before I considered jumping through all of hoops they have set up.

Long story short they gave me the runaround and refused to put me in contact with someone who could answer my questions. They told me my questions would be answered at stage 3 (or whatever) of the interview process. I said no thanks (seriously, I was polite about it, said I wasn't interested and even thanked the guy for his time) and he responded with a snarky reply about them being very selective anyway. Not sure if he was implying that I wouldn't make the cut or not but I found it offensive.

Now the funny part -- the only reason I found out about the service was I had googled the name of another programmer and he has a "resume" posted on their site. He has apparently done dozens of projects for them. Someone approached me to fix a project that this particular programmer had messed up to the point where he couldn't take it forward. While it was in a notoriously difficult area, in no way should it have been an intractable problem for a competent programmer, at least in my opinion.

My takeaway is that these protracted interview carnivals are good at filtering out two types of programmers -- the worst and the best. Having made it through probably says more about your tolerance for bureaucracy than your actual abilities. There are exceptions of course -- Google et al -- but I would imagine the average company or service is missing out by not allowing people to circumvent this process when they're discriminating enough to want to do that.

> The whole process is a real pain. I'd love to just grab a coffee and discuss how we can work together. Is there any way to circumvent/short-circuit this whole tech interview process?

Exactly. If you want to hire exceptional people, don't treat them like they're average.

[Edit: wording]

mbenjaminsmith··on Homemade Speakers
DIY speakers as a hobby is mostly about enclosures and crossover networks. It's quite rare that people would build their own speakers drivers (some planar speakers being an exception).

Where it's rewarding is taking available drivers and building a full speaker around them -- usually optimizing for performance vs cost. It's difficult and expensive to build really high quality loudspeakers. Add markup to that and the retail price of a well engineered speaker will quickly go into 5 digits.

The speakers in my living room are DIY (though they don't really look "DIY" as far as that might carry negative connotations) and they're an excellent value. They were also fun to build. In no way was I disappointed afterwards because I had not, say, wound the voice coils myself.

mbenjaminsmith··on The Vacuum Transistor: A Device Made of Nothing
> You can get the correct vacuum tube-like amplification from a computer today, it's just that tubes are still cheaper.

It is absolutely not the case that tube amplifiers are still sold because they're cheaper than solid state amplifiers + DSP. Their sounds is preferred and they are much, much more expensive to produce.

The valves (which don't enjoy the economies of scale they once did) are only part of the cost. The power supply of a tube amp is usually more complex than a solid state amp and they generally need output transformers because of high output impedance -- transformers that are linear through the audible band are expensive to produce.

At scale you could easily build a SOTA DSP card suitable for emulating "tube sound" for less than the cost of a single channel output transformer. Line 6, among others, have built businesses based on that fact.

mbenjaminsmith··on Review my project – Interestin
1. The first part makes me think you're solving the problem of "long form" comments -- providing better tools for writing in depth responses to things. On more careful reading it sounds like you're not doing that. I left unsure of what the project really is.

2. We're NSA proof! No you're not. Being "just anonymous" is really more than enough and overstating -- and then contradicting -- the actual level of anonymity you provide is counterproductive if you're trying to build trust.

3. Get rid of the lorem ipsum. That section confused me most of all. We need examples to understand the product.

mbenjaminsmith··on Titan Aerial Daughtercraft
> Titan is the richest laboratory in the solar system for studying prebiotic chemistry

Does that mean prebiotic environment + time != biotic environment?

Is this NASA being conservative and managing expectations?

I'm probably incorrect in assuming this but given our current theories about abiogenesis you would think either the environment isn't viably pre-biotic or it would be full on biotic by now.

If it is, say, quasi-prebiotic wouldn't that make it much less valuable for study if the goal is to understand the origin of life?

I think this suggests they're either downplaying the mission as a search for life or overstating the value of studying the moon as a "prebiotic" environment.

mbenjaminsmith··on Project outline for the first human head transplantation with spinal linkage
Actually, if I'm reading wikipedia correctly, there are only 62 connections that need to be made. While that doesn't help with the error rate it seems feasible to make that many connections individually in a short period of time, if that is in fact what they're doing.
← PreviousPage 2 of 15Next →