Hacker Newsnew | past | comments | ask | show | jobs | submit | jonbodner's commentslogin


You have no idea how far gone things are for you to be sprouting this weak hasbara.


And gold is a non reactive physical object. Storing gold is cheap compared to the infrastructure required to keep Bitcoin ledger information.


You need gold in a computer to mine bitcoin, but you don't need bitcoin to mine gold.


I’m the author of Learning Go from O’Reilly, so I might be a bit biased.

What I’ve found is that different publishers put different amount of effort into producing good content. O’Reilly is almost always excellent. Others are less so.

It’s hard to find a dev who is willing to invest a year of their life to write a book that is likely to make almost no money. It’s doubly hard to find devs who write well.

Given these filters, two or three good programming books a year sounds pretty great.


what a coincidence!

i am reading your book now and thoroughly enjoying it!

Learning Go's quite good to get dangerous with Go quickly, so good job!


You are aware of Human Rights Watch’s history with Israel, right? Here’s a taste:

https://www.theatlantic.com/international/archive/2009/07/fu...


> the organization's senior Middle East official, Sarah Leah Whitson, attempted to extract money from potential Saudi donors by bragging about the group's "battles" with the "pro-Israel pressure groups."

What's wrong with that? Any honest observer will have battles with groups who want to spin the truth.

I'd say one of the biggest problems in the US political system right now is that we don't have enough organizations willing to battle against our own partisan pressure groups (without siding with any of them).

Perhaps that's what's troubling: so many of our organizations have taken sides that it's difficult to understand an organization that hasn't.

As for raising money in Saudi Arabia: they were raising money from private supporters there, not the Saudi government. Do you think no one in SA supports human rights?

Or, if the suggestion is that HRW is siding with the Saudis, take a look at:

https://www.hrw.org/middle-east/north-africa/saudi-arabia


Oh, you sweet summer child.

Who do you think "private supporters" are in Saudi Arabia?

And no, I don't think anyone with anything resembling power or wealth in Saudi Arabia supports human rights.

HRW execs admit via email to the editor in chief of a nationally respected magazine that they raise money by bragging how tough they are on Israel. And then they are tough on Israel, and you think it's a principled stance. Maybe they just have profitable principles, I dunno.


HRW should be "tough" on any nation that violates people's human rights. That's their mission.

And it seems like they are. They're tough on Saudi Arabia too.


Sure. But it’s hard to ignore that they are far harsher on Israel than any other country.

But don’t take it from me. Take that from a senior editor who left HRW after 13 years: https://www.timesofisrael.com/outgoing-human-rights-watch-se...


Her objections include: "HRW’s initial reactions to the Hamas attacks...included the ‘context’ of ‘apartheid’ and ‘occupation’"

And "political framing that could always contextualize and “explain” why Jewish Israeli lives were lost in Palestinian violence."

It sounds like she wanted their coverage to be more one-sided. Explaining "the ‘context’ of ‘apartheid’ and ‘occupation’" is perfectly valid.


If you are looking for a way to map SQL queries to type safe Go functions, take a look at my library Proteus: https://github.com/jonbodner/proteus

Proteus generates functions at runtime, avoiding code generation. Performance is identical to writing SQL mapping code yourself. I spoke about its implementation at GopherCon 2017: https://www.youtube.com/watch?v=hz6d7rzqJ6Q


We used HJSON as the config file format for https://github.com/capitalone/checks-out and it worked out very well. It's a shame that it hasn't caught on, because it fixes the warts in JSON in an elegant way.


The video for the talk is now available: https://youtu.be/zPd0Cxzsslk


Hi, I'm the presenter AMA.

One general comment; not every question was intended as a WAT. Some were setups to introduce a WAT.


"The default type (used for inference) for an int constant is int, which is a 32-bit type" -- this is not true, the size of int is platform-defined. See https://golang.org/ref/spec#Numeric_types. The error you're seeing is because on 32-bit platforms where int is 32 bits, 2^64-1 does not fit an int, and on 64-bit platforms where int is 64 bits, 2^64-1 does not fit an int either (int's are signed). This will work on 64-bit platforms though:

  a := math.MaxInt64
  fmt.Println(a)


Unfortunately, the transcription doesn't match what I said. The video is now available at https://youtu.be/zPd0Cxzsslk


At first I was wondering, what is this? Anyone with a Comp Sci degree who read the docs should already know most of this! Then I thought, "This is one of the best stealth Go basic Comp Sci education presentations I've seen in awhile!"


I chose true := false for the humor and shock value.

As you point out, accidentally redefining the meaning of len or new or close is far more likely.


I'm with you there, I have to admit I already did the true := false trick for the amusement and bewilderment of my colleagues.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: