Better HN
topnewbestaskshowjobs
Log inSign up

bencoder

788 karma · joined Jun 8, 2012 (14y ago) · 304 submissions

Contact: bencoder at gmail dt com
Submissions

comment 10y ago · link · parent

Head positional movement is a lot slower than rotational so this is not so bad/noticeable. Especially if the underlying game is rendered at 60hz rather than 30.

comment 10y ago · link · parent

I use this because the main facebook app had bloated to taking over 300mb of my android phone.

Unfortunately I can't get it through google play (not available in the UK) so I have to manually download and keep the apk updated. I wish they'd enable it for all countries.

The separate messenger app is also going that way, hopefully they'll eventually create a Messenger Lite app too.

153.

Ask HN: What should I be aware of when open sourcing code from my company?

8 points · by bencoder · 10y ago · 4 comments

comment 10y ago · link · parent

I was really expecting Lee Sedol to win here. I'm very excited, and congratulations to the DeepMind team, but I'm a bit sad about the result, as a go player and as a human.

comment 10y ago · link · parent

> the volume of nicotine in the default over the shelf vaping kit...

I did the calculation myself and was shocked at how much nicotine was in the liquids, but after looking into it, I believe the nicotine absorption rate from vaping is much lower than from traditional cigarettes[0]:

> Compared to smoking one tobacco cigarette, the EC devices and liquid used in this study delivered one-third to one-fourth the amount of nicotine after 5 minutes of use. New-generation EC devices were more efficient in nicotine delivery, but still delivered nicotine much slower compared to tobacco cigarettes. The use of 18 mg/ml nicotine-concentration liquid probably compromises ECs' effectiveness as smoking substitutes; this study supports the need for higher levels of nicotine-containing liquids (approximately 50 mg/ml) in order to deliver nicotine more effectively and approach the nicotine-delivery profile of tobacco cigarettes.

[0]http://www.nature.com/articles/srep04133

comment 10y ago · link · parent

Despite the name, I didn't see the article as taking a pop specifically at Java. It seemed more about bad OOP in general. As you say, you'll see the same patterns in every OO language.

comment 10y ago · link · parent

There's still a lot of getters everywhere though, which seemed to me to be the bulk of the analogy.

    this.wallet = colleague.getWallet();
Code blocks are done with 4 space indentation at the start

158.

A bad citizen in Javaland (2006)(darrenhobbs.com ↗)

219 points · by bencoder · 10y ago · 63 comments

159.

A bad citizen in Javaland (2006)(darrenhobbs.com ↗)

7 points · by bencoder · 10y ago · discuss

comment 11y ago · link · parent

It's shown on TV in Korea, I believe

comment 11y ago · link · parent

What would be the connection?

Perhaps: Has contributed to the same software project

comment 11y ago · link · parent

> It's frustrating that we Hacker News citizens seem to have adopted a list of taboo topics that we aren't allowed to discuss - such as anything related to discrimination against a non-minority.

And yet the topic comes up repeatedly every time there is the slightest possible way to bring it up, even if it's completely unrelated to the article, like the grandparent's post. The original article had no mention of female prize or anything related to discrimination.

Edit: reduced hyperbole

comment 11y ago · link · parent

I think the OP's point is that when the VC money is gone, they might have to go towards adverts in some way if they struggle to monetise otherwise, so it's too early to say that they are not ad-supported

comment 11y ago · link · parent

I read that, I saw the difference. Sorry I wasn't clear in my original post.

I meant: what causes the difference? Why is there such a big difference?

comment 11y ago · link · parent

The most interesting part of this for me is that there is a difference at all. The difference is not explained in the article.

I've never lived in the US; what is the difference between EU and US cars in this respect?

Edit for clarity: What I meant, is /why/ is there such a difference in safety? What physical differences between the cars cause that?

comment 11y ago · link · parent

Great game.

There's a weird bug in the shop screen when you click left or right more than two times the 2nd+ time it seems to scroll multiple times (it actually only moves you one across, but the animation looks like it scrolls multiple times).

comment 11y ago · link · parent

Previous:

https://news.ycombinator.com/item?id=9726182

https://news.ycombinator.com/item?id=9980264

comment 11y ago · link · parent

I definitely remember (as a child in the UK) that our touch-tone phone had a pulse option that could be switched on the underside. If you flicked the switch then instead of a tone you would hear click-click-click-click when you pressed a number. This would have been in the early to mid-90s, though we were quite poor so the phone might have been older.

comment 11y ago · link · parent

I have the same issue, and with synaesthesia in general. In fact, my first (false) reaction is to disbelieve it when somebody tells me they have some form of it.

I am aware it's real and many people have synaesthesia but, I would guess, it's so far outside my perception of the world that my brain immediately wants to dismiss it. An interesting and somewhat annoying condition of my own brain.

comment 11y ago · link · parent

You are, presumably, already a developer, so you already understand nesting. Perhaps a better example that a beginner could find quite reasonable after learning about start and end tags:

   <u>Underlined. <b>Bold and underlined.</u> Bold only.</b>
Why shouldn't that work?

comment 11y ago · link · parent

Permutation City, by Greg Egan. It's one of my favourites.

comment 11y ago · link · parent

An idea to make this(and the editable content suggestion in another comment) possible could be to add something to the protocol to define "previous versions" sha hashes. If you want to edit a page then create a new page which includes the sha hash of the previous versions. If you get a request for the content of a sha hash of an old version, you could suggest your sha hash as an updated version.

comment 11y ago · link · parent

Absolutely, I was just suggesting that "you should always use the === operator" advice which I see a lot of people say(examples multiple times in this thread), does not guarantee you won't run into problems with incorrect types, and giving an explanation.

As always, you should be thinking when programming.

comment 11y ago · link · parent

> you should probably use === by default.

unfortunately this can also backfire if your class/module is used in a different context where it gets strings instead of integers and you were just using === without really thinking about it:

We had a case where the code was something like:

  function doSomething($value) {
    if ($value === 0) {
      //do something
    } else {
      //do something else
    }
  }
This was then used in a slighly different context where $value was a string '0', it then ended up incorrectly in the //do something else block, doing the completely wrong thing. In this case the type co-erced == would have been better, and I think what the developer was expecting would be a type error due to the === but it's not a type error, it'll just fall into the else block.

comment 11y ago · link · parent

Try playing columns 4,2,3,4,6,2,3 - seems to play always the same up to here but then sometimes plays different, but it's trivial to win after this state - the AI seems to "give up"

comment 11y ago · link · parent

Except if your disk is damaged and you want to download a working version or get a replacement disk, then it's not just a licence, you gotta buy it again. They want it both ways

comment 11y ago · link · parent

I feel the same, which is very concerning.

comment 11y ago · link · parent

I get this a lot, so many games seem to remind me of Go.

I think it's because Go is like the Lisp(or maybe just λ-calculus) of games - as my co-worker put it: remove any of the rules of go and you would no longer have a game.

1
567
11