HNHacker News
TopNewBestAskShowJobs

PuerkitoBio

241 karma · joined July 31, 2011

submissionscomments
PuerkitoBio··on Another go at the Next Big Language
Go's panic/recover pattern lets you handle exceptions in the place you feel is best, much like exceptions. Though it is true that you would still need to check the error returned, and panic if not nil.

However, there are a few libraries that offer 2 versions of the same functions, one that returns the value and error combo, and one that panics in case of error and returns only the value (regexp' Compile and MustCompile for example). When it makes sense, it's nice to have this option.

Anyway, error handling is hard, I'm not a fan of exceptions, though alternatives such as Node's error as first argument of a callback and Go's second return value require polluting the normal code path. I like go's "defer" idea as a "finally", though.

PuerkitoBio··on Another go at the Next Big Language
I believe Go is actually BSD-Licensed, not MIT. Though from what I understand these are very similar (permissive) licenses.
PuerkitoBio··on Google's formula to retain women: Longer maternity leave
And on a related note, in Quebec, public child care centers are 7$ a day. Though it's not all perfect, those programs sparked a mini baby boom and as a result there are not enough places for everybody. But private child care centers are usually around 25$ a day.

"Many massive deficiencies" is overly dramatic.

PuerkitoBio··on Books every developer should read
I disagree. While it's true that it won't make you a "ninja" programmer, books are still one of the best way to learn something, and obviously that doesn't apply only to programming. Hands-on experience is a very important complement, but if the engineers thatbwrote the production code you learn from aren't any good, and your coworkers are so-so, how will you ever know you're doing things wrong?

Books may also open your mind to new ways of doing things, or a deeper understanding of how / why some things work the way they do. Yes it requires dedication, learning (durably) is hard, it should not be a passive read. For example, I've always been curious about how compilers work, and I'm currently reading the Dragon Book. It is hard, but extremely interesting and fulfilling (if that's the right word, english is not my native language).

So my advice, yes keep writing and reading code (especially from a well-known open-source project), but DO read books. Combined with hands-on experience and serious dedication, the lessons learned will become part of your instincts.

PuerkitoBio··on Introducing Mozilla Persona, An Identity System for the Web
I can see a website offering only Persona/BrowserId, as it doesn't force you to create an account with a "commercial" website. If you go with Facebook for login, you have to offer an alternative because if a user doesn't have a fb account, it has way more implications to open a fb account than to create a browserid account. I just hope Mozilla don't overgrow it into something more than a simple auth system (like building a social network around it!).
PuerkitoBio··on Show HN: A different kind of coloring book for kids (Android). Simple and clean.
Awesome. I have tipitap Coloring, but the colors are a little difficult to select.Yours is very simple with large selectors (especially on a tablet!) and the drawings look very good. Congratulations! My kids will love this.
PuerkitoBio··on [dead]
Interesting idea. A few problems I had browsing from an Android tablet: the categories pages show up empty (no item, obviously, but I mean empty as in blank page), the dropdown and search box show up on the how it works page. Also, I'd make the search field larger. But the star is the super-simple submission process, congrats about that!
← PreviousPage 3 of 3