Better HN
topnewbestaskshowjobs
Log inSign up

insertnickname

840 karma · joined Nov 15, 2011 (15y ago) · 364 submissions

Submissions

comment 6y ago · link · parent

"Java 14 is scheduled for release on March 17"

So it didn't quite arrive yet.

comment 6y ago · link · parent

I don't mind it. It doesn't detract from the on-topic discussion, certainly not as much as terrible websites detract from user experience.

Authors pay heed: Presentation matters. If you present your writing poorly, it will distract your readers from your ideas.

comment 6y ago · link · parent

In a capitalist economy, others doing well generally benefits you. It's not zero-sum.

comment 6y ago · link · parent

Europe is a big place. Certainly can't hire a senior engineer with a degree for 40k where I live. Even for a junior it would be low.

comment 7y ago · link · parent

That code would be misaligned anyway when someone changes the name of `some` or `method`.

You should format it like this (regardless of whether you use tabs or spaces):

  some.method(
    param,
    param2,
    param3
  )

comment 7y ago · link · parent

You don't believe that refactoring truly matters?

comment 7y ago · link · parent

Quarterly goals are not necessarily anti-agile. Extreme Programming has both a weekly and a quarterly cycle.

comment 7y ago · link · parent

Scrum, not SCRUM. It's not an acronym.

39.

Why Won't It(blog.cleancoder.com ↗)

10 points · by insertnickname · 7y ago · discuss

comment 7y ago · link · parent

I don't know, but they have many different domains to choose from. I'm not sure if you can even get a subdomain of afraid.org.

comment 7y ago · link · parent

What does that have to do with OO? Is there something unique about OO that makes it superior for "facilitating the adoption of proprietary languages and code by third-party application software developers"?

comment 7y ago · link · parent

IntelliJ shows hints for inferred types.

comment 7y ago · link · parent

TDD in a nutshell.

comment 7y ago · link · parent

>Writing java with emacs or vi is a materially different experience than using eclipse or idea and var style type-inference seems almost silly with those tools which do it for you.

It's not so much the extra typing that's the problem, it's the extra reading. All the stuttering is visual noise.

comment 7y ago · link · parent

What duck typing? Are you talking about the `dynamic` keyword?

comment 7y ago · link · parent

Compliance is easier with aspirin than with eating well.

comment 7y ago · link · parent

>Secondly why is this really important functionality in `fmt` and not in `error`?

`fmt` already depends on `errors`, and Go does not allow cyclical dependencies, so `errors` would have to reimplement string formatting.

comment 7y ago · link · parent

What does starring on GitHub accomplish? Isn't it just like a bookmark?

comment 7y ago · link · parent

Automated tests are a checklist for when you refactor code: "The code is supposed to do A, B, and C. Does it still do those things?" If you practice TDD, the tests are just-in-time checklists for your implementation work.

The problem with relying on tests written after the implementation is that the checklist might be incomplete. If your checklist is incomplete, then you can't rely on it. Of course, even a highly disciplined practitioner of TDD cannot produce a test suite that is guaranteed to be complete and correct, but there is an enormous difference between a checklist that is adequate 50 % of the time and one that is adequate 95 % of the time.

Look for ways to avoid simply "going through the motions". Checklists (including TDD) are about avoiding making mistakes, not merely about noticing when you do make mistakes.

comment 7y ago · link · parent

I suppose the NHS isn't to blame for what the Daily Mail wrote, but it's a bit confusing that they have a page on their website with the title "Fish oil supplements linked to prostate cancer". I now see that it's supposed to be part of a whole series ("Behind the Headlines") dissecting articles about health, so the headline is a quote or a restatement of what the Daily Mail wrote. It would be nice if they put it in quotemarks or otherwise indicated more clearly that they, the NHS, aren't making the claim (which clearly they aren't).

comment 7y ago · link · parent

The correlation they have found is between high levels of fish oil in blood tests and prostate cancer. They do not know whether those high levels are the result of supplementation or merely of eating fish. At least that's how I understood the article.

comment 7y ago · link · parent

And this:

>This was a large, well designed study that supports previous research linking high blood levels of omega-3 fatty acids with prostate cancer risk. However, it cannot show that fish oil supplements cause prostate cancer and it is possible that other confounders affected men’s risk (although the researchers tried to take these into account).

Their conclusion contradicts their own headline.

comment 7y ago · link · parent

Why not make it a hundred years?

comment 7y ago · link · parent

The screenshot in the README mentions DHT in the status bar.

comment 7y ago · link · parent

He shows an example of indirection without abstraction, then blames abstraction. His point isn't wrong, the problem is that he's confusing abstraction with any form of indirection. He claims that abstractions increase cognitive load when in fact the opposite is true. Bad abstractions and indirection without abstraction increase cognitive load.

I agree with him that abstractions should be crafted carefully, but not because abstractions are categorically bad. If he thinks abstraction is so bad, why does he write software at all? Software is extremely abstract, even assembly language is an abstraction of what the CPU does. Human language is abstract too: we can talk about trees without having to consider any specific tree.

Abstraction is a fundamental building block of human civilization. Of course, he doesn't actually believe that abstractions are bad. It would be nice if he differentiated between good abstraction and bad abstraction.

On a side note: I take issue with his criticism of mocking. Good abstractions are easily mocked and make the code base easier to understand because you don't have to consider every detail of the application at the same time. On the other hand, mocking concrete objects,[0] rather than abstract roles, definitely complicates things.

[0] Or "header interfaces" that duplicate the API of a concrete class exactly : https://www.martinfowler.com/bliki/HeaderInterface.html

comment 7y ago · link · parent

You are exactly right. It's indirection without abstraction. Good abstractions are simpler than the sum of their parts, the author's example of abstraction is clearly far more complicated (templates, references) than two increment operations. Good abstractions are ones you don't even think about, like arithmetic operators. How often do non-embedded/non-OS developers think about how multiplication is implemented?

Quoting from the blog post:

>It also seems that Go's implicit interfaces were designed to avoid unnecessary abstraction.

Actually, interfaces are often extremely abstract in Go. How much more abstract does it get than io.Reader? It's a thing that you can read bytes from into slices (arrays). The io.Reader abstraction is far simpler than os.File, net.Conn, or even bytes.Buffer (a file object, a network connection, and an in-memory buffer, respectively).

comment 7y ago · link · parent

Given the lack of blood donors, what is your personal stance on paying people to donate blood to blood banks? (to be used strictly for "trauma resuscitation, surgeries of all kinds, and a variety of medical patients", not for voodoo science anti-aging treatments)

comment 7y ago · link · parent

Java

comment 7y ago · link · parent

IntelliJ IDEA is wonderful (and a bit, if not unreasonably, slow).
12345
13