HN user

PuerkitoBio

241 karma
Posts11
Comments67
View on HN

If I can't use the software without an active subscription, it is definitely not one and the same. I like Sublime Text's license of 3 years of upgrade with a purchase, no limitation on usage of the software. Unclear (AFAICT from the FAQ) how it would work for CodePerfect 95.

I had my credit card out at "Vim Keybindings", only to be slightly disappointed by the Windows-only limitation (for now). Looking forward to try this out on Linux soon. Although I'm pretty happy with Vim, I'm curious to see if I'm missing out on a significantly better experience.

That being said, not a fan of a monthly subscription for a native desktop application.

The "Business Source License" is not an open source license, and lying to the community about it is nothing short of gaslighting.

They do state that it is not an open source license in the article:

Although we’ve come to refer to the BSL as eventually open-source since it converts to an OSI-approved license at the conversion date, due to the grant restriction, it is formally not an open-source license.

I don't think you can expect a daily practice to have "an equivalent effect" to a 60-day retreat. I know there are 10-day retreats for vipassana meditation just about everywhere in the world (probably for many other types of meditation too), though I've never been to one (scares the hell out of me to be honest, must be so incredibly hard - both mentally and physically).

I recently started meditating for 20-30 minutes at a time, once or twice a day, and the eerie calmness that settles in when I'm done (for the "good" sessions) is a great feeling. I can only imagine what 10 and 60 days can do.

A) I don't doubt it can be difficult for women - but my statement holds true.

That doesn't make any sense? You said:

If a girl feels harassed - then that's it. Guilty.

Yet you go on and acknowledge that it may be hard to get their harasser convicted. In all those 3 cases I mentioned (including Ghomeshi), there were many victims that felt harassed. Yet no one in any of those cases was convicted. How does that make your statement true?

In Canada, and in a growing number of jurisdictions - there is 'harassment' so long as the victim feels as if there was.

Nonsense, it's still an uphill battle for victims to get their harasser convicted in Canada. See Jian Ghomeshi, Marcel Aubut and the First Nations women v. the police in Val d'Or for recent examples.

I posted this in another thread here, but it's documented in the linked page:

  > A value that is a number, true, false or null in JSON is parsed as a value.
  > E.g. '3' is a valid number while '3 times' is a string.

It is ambiguous only if you think it can be a completely useless format. If you decide to use it, chances are you considered it useful, and the only useful way this can parse is as a number, otherwise it would't be able to represent numbers, booleans and null. I'd say it parses pretty much as expected, and as such, contrary to other comments, you don't have to go back to the docs every so often.

Only quoteless strings have no escapes, and according to the docs the rule is:

  > quoteless strings include everything up to the end of the
  > line, excluding trailing whitespace.
(edit: formatting)

From the docs:

  > When you omit quotes the string ends at the newline.
  > Preceding and trailing whitespace is ignored as are escapes.
  >
  > A value that is a number, true, false or null in JSON is 
  > parsed as a value. E.g. 3 is a valid number while 3 times is 
  > a string.
(edit: formatting)
Warming up to Go 11 years ago

Error handling does not obscure the business logic, it is very much part of the business logic.

Warming up to Go 11 years ago

But the expense of extra lines of co[d]e come at significant maintenance costs.

All lines are not created equal.

    if err != nil {
        return err
    }
Those 3 lines have very, very little maintenance cost.

The obvious must also be mentioned: less lines of code usually mean building on abstractions - the lines of code are in there, somewhere, but not in your code. Better hope that abstraction is well-tested. Of course it's all a matter of balance, but I disagree with "more lines of code is inherently a bad thing", which stated another way, would mean "cram as much information as possible in a single line of code".

In the end, lines of code are a bad metric of software.

Gopher Tricks 11 years ago

I use them extensively for test cases (`cases := []struct{...} { ... }`) as mentioned in the slides. Also sometimes to marshal/unmarshal one-off json or xml payloads.

Work: OSX on 2012 rMBP / iTerm2, Vim+vim-go, Go

Personal: Arch Linux on Asus Zenbook UX31e / dwm, zsh, Vim+vim-go, Go

edit: sorry for the reply, that was meant as a top-level comment. I'm afraid it's a bug in my iPad HN reader.

I agree to some extent, but I wanted to make clear that this book is not about implementing AES or SHA algorithms. It's about using them (the author actually makes that very clear, the algorithms are treated as black boxes).

Yes you can still use them wrong, and you're not much more advanced. But the original comment seemed to suggest it was about implementing the low-level algorithms.

I've written a couple "polite" crawlers in Go (i.e. obeys robots.txt, delays between requests to the same host).

- Fetchbot: https://github.com/PuerkitoBio/fetchbot

Flexible, similar API to net/http (uses a Handler interface with a simple mux provided, supports middleware, etc.)

- gocrawl: https://github.com/PuerkitoBio/gocrawl

Higher-level, more framework than library.

Coupled with goquery (https://github.com/PuerkitoBio/goquery ) to scrape the dom (well, the net/html nodes), this makes custom scrapers trivial to write.

(sorry for the self-promoting comment, but this is quite on topic)

edit: polite crawlers, not scrapers.

While oil usage is globally still growing [0], so contrary to some replies, we are not already in a phase-out situation, some countries have taken steps to do just that, and I doubt they are reverting back to 19th century lifestyle.

Sweden aims to drastically reduce its dependency to oil by 2020 [1], replacing it with renewable energies. Of course the "how" part of the phase-out will vary depending on the region of the world. But this is doable, not science fiction.

I guess my point is that positions like "face it, we need oil so let's build more pipelines" are the ones that are holding us back from a better world.

[0] http://en.wikipedia.org/wiki/List_of_countries_by_oil_consum... [1]: http://en.wikipedia.org/wiki/Making_Sweden_an_Oil-Free_Socie...

IKEA or Death-Metal 13 years ago

Oh well, I guess even Swedish names would be pretty easy for Swedes, when you have he choice between "hell" and "kitchen table" :D

IKEA or Death-Metal 13 years ago

Easy for me as I know black metal (extreme metal in general) quite well, so I got 18/20 (they did put some obscure bands in there). But that is funny how close some names look/sound.

As someone else pointed out, they should've added more Swedish bands (was Marduk there? I don't think so?) so that it would be harder even for Swedes, I guess. But then again, Sweden is better known for death metal and melodic death metal (that must sound funny for non-metalheads!), and those bands tend to have english names, such as At The Gates, In Flames, Dismember or Entombed. Hard to mistake for Ikea brands!