HNHacker News
TopNewBestAskShowJobs

cassowary

95 karma · joined April 15, 2016

submissionscomments
cassowary··on Australians told to eat more kangaroo as population hits double that of humans
As for the diet of kangaroo, yeah they're grazers. You can go out and see them grazing on grasslands in the national parks around the city. Apparently it's pretty high in the good Omega 3 oil too.

Sometimes I've eaten kangaroo and enjoyed it, then tried to prepare exactly the same food again and it tasted like a horrible bloody mess. I am not an expert on cooking roo. I recommend feeding it to your children so that they think it's normal however it tastes, and leave it as a gift for the next generation.

If there really is an oversupply of roo, why do I have to hunt for it on the shelf? And why is it always in weird packages with gimmicky branding?

cassowary··on Google will punish sites that use annoying pop-up ads
Could they just get around the requirement by using the HTML5 storage stuff? It's such a silly legal requirement. There's significant privacy concerns. And they make me close this silly message that has nothing to do with privacy at all.
cassowary··on Burying your dead code
I think the other problem is that static analysis is a great tool for a new code base. But a new code base has no dead code.

Or to put it another way, when you're designing a system, please think about the benefit static analysis will have in identifying dead code three years hence. But when you're trying to find dead code in that ten year old PHP code no amount of woulda's and coulda's will get rid of it.

The intelligent person solves the problem they've got. The unintelligent person shoulda's coulda's and woulda's you into oblivion.

(NB. I would probably choose a tool with a good type system, and I would try to write to its strengths, in any system I was designing today. But that still doesn't help me identify the dead code I've got.)

cassowary··on Burying your dead code
Well, privates that are unused or only used by something like

    $method = 'get' . $command;
    $this->$method;
are marked in grey. Which means some methods that you need to keep are grey. Not necessarily helpful. And other methods you want to deleted are not grey.

(The solution to that is "write code that doesn't suck", but alas, dead code tends to be a bigger problem in code that you didn't write.)

But as others have said, the unused code that keeps me busy is the stuff that says:

    if($this->option->isTurnedOn()) {
        $this->doStuff();
    } else {
        $this->doThat();
    }
Sometimes it turns out that everyone uses it in the non-default state. Then there's the cases where everyone wants to use it in the non-default state, they just don't know the option can be toggled.
cassowary··on Australia has the most expensive energy bills
Try sending an email to your local Labor MLA (state lower house) if you have one, or MLC (state upper house) if you don't. They're real people who care, you just need to make them care about this stuff. Which needs lots of people caring at them.

It will probably feel useless because it won't make a difference right away, but it's got a better chance of a good outcome eventually than a rant on HN.

I know I froze to death one year in a very cold flat which I couldn't heat with a 1 or 2 cm gap under the doors. Every time I'd cook I'd cut myself because my hands were too numb to control the knife. (The rest of the time it was okay because I'd just wrap up under my doona on the couch or wherever.) Now I live over a bakery in an old building so there's lots of old heat and heavier construction keeping it tolerably warm.

cassowary··on TypeScript 2.4 RC
They've finally begun backtracking on function parameter bivariance. https://blogs.msdn.microsoft.com/typescript/2017/06/12/annou...

They still think they're right: "Our experience has been that users generally don't run into issues with this all that much", but they've started to "tighten[] things up and compare[] the parameters which are callbacks specifically". I'm just so excited and annoyed that they've finally partially admitted they're wrong. Double annoyed that we're still on TS 1.8 :(

I just don't understand function parameter bivariance. It's not just that it's wrong (if it was just theoretical I wouldn't've noticed), it's that it keeps letting bugs through. You simply can't refactor the code and then fix it till there's no errors because you'll run out of errors before you run out of things that need changing. Or adding features in React+Redux, can you get it to help you? Nup. At least that's a specific point you can remember to check.

cassowary··on Bugger: Maybe spies aren't very good at their jobs (2013)
conspiracy <> secret + unconstitutional

i think to reach the level of a conspiracy theory, you need a lot of people doing something outrageous. for instance, if you have the army, the navy and fbi and the russian kgb (or whatever they're called nowadays) in cahoots without a single leak for twenty-five years, that's improbable.

i tend not to buy conspiracy theories because they usually need a leak which doesn't exist. for instance, my brother is a 911 truther. in his opinion, a civil engineer saying "that's impossible" establishes it as a conspiracy. in mine, the fact that no-one from the pentagon has said "haha, and we cut up that plane and put it in the building, it was amazing, look come here check out my emails" when he was drunk establishes it as the real deal.

cassowary··on A new report on a basic income scheme launched in Iran
There's so rarely such thing as abusive workers. There's often bad and irresponsible ones, sure. But you have to have power over someone to be abusive.

The company almost by the nature of the relationship is telling a person what to do. It is about the only necessarily hierarchical relationship left.

But beyond that, in your average company, the company can afford to do without a certain employee for some time (their income might drop from 100 to 99), but an employee can't do with a company (their income would drop from 100 to 0). So even beyond the nature of the relationship (recognised by law), there's other informal power relationships going on as well.

So you might worry about bad workers, but you can hardly complain about abusive workers.

cassowary··on A new report on a basic income scheme launched in Iran
I've always assumed a UBI would involve reducing (or removing) the tax free threshold, so a person on an average or greater income would actually have no net change in their position, or may even be worse off. Perhaps I'm wrong on this?

The advantage of the UBI comes from reduced administrative costs — at the moment, governments spend huge amounts of money on welfare departments to make sure welfare recipients are members of the worthy poor. By giving the UBI to everyone these costs get cut back.

It also smooths the transition from jobless welfare payments to employment with a tax free threshold, so that we don't have to worry about whether or not a particular person would be worse off if they picked up another five hours. They would always be better off (because they'll pick up e.g. 87c of every extra dollar they earn, instead of having welfare payments worth e.g $500/month cut but being able to keep $1 of every extra dollar).

I fear the advantages of a UBI go to the right-wing (neo-)liberal elites. They can get the government out of morality, cut costs, and pretend to be doing something for the poor. Whether it actually does something for the poor or not compared to welfare is, as you say, conditional. And in the absence of widespread community organisations (like churches in the olden days) throughout much of the west, it's not clear that taking the government out of morality is safe at this point. The article here wants me to believe that my concerns are illegitimate, but Iran is no secular western country.

cassowary··on Could school subjects soon be a thing of the past in Finland?
As for me, I understood it immediately. I understand the grammatical term "subject", but I don't know how to read "school subject" as a grammatical term. I would appreciate some help.

(in case this is regional: I'm Australian)

cassowary··on Where will UX Design be in 5 years?
I don't mind the hamburger menu because at least there's a consistent UI that tells me where I can click to find stuff.

Otherwise agree, undiscoverable hidden UIs must die, and so must these flat UIs (which are equivalent to undiscoverable ones). Underlined blue words are good too.

Worst ui trend ever. I eagerly await a return to the 1980s. Which is not nostalgia, because I didn't use computers then — I'm too young and my family was too poor despite being early adopters of at home computers.

cassowary··on Student Debt Giant Navient to Borrowers: You’re on Your Own
It isn't the default rule. Maybe it used to be. But today most people have nowhere near the resources of most companies, so we regularly regulate those who act to harm their customers.
cassowary··on Why Were Economists as a Group as Useless Over 2010-2014 as Over 1929-1935?
Psychology students aren't required to study physics, despite most psychologists believing that psychology is basically just physics at an abstraction
cassowary··on Why Were Economists as a Group as Useless Over 2010-2014 as Over 1929-1935?
Major donors have better access to the media than me. I can't educate them if the major donors are spinning opinions. My HN post will reach a negligible proportion of the voters; their prime time ad will reach a huge number.
cassowary··on Why Were Economists as a Group as Useless Over 2010-2014 as Over 1929-1935?
If in the first election there's no-one worth voting for, stand at the next election.
cassowary··on A world without retirement?
I look forward to the grey haired revolution.
cassowary··on What Is It Like to Be a Bat? (1974) [pdf]
It's compatible with both propositions. At the moment we literally have good grounds for making either conclusion, although we have plenty of weak grounds in both directions.
cassowary··on What Is It Like to Be a Bat? (1974) [pdf]
There may be some relationship between that and subjective experience, but it's not really the same thing. You're describing essentially "know how" instead of "know that". But here we're talking about something that doesn't actually seem to be representable in terms of physical

Why is it that there's something it's like to be zukzuk? zukzuk could simply be like a computer program, simply responding to inputs. Or you could simply have an erroneous memory of actually experiencing things (instead, you simply just responded to inputs, one of which was to record an apparently subjective experience). That doesn't seem to solve the problem to me; it's just kicking the can down the road a little.

cassowary··on What Is It Like to Be a Bat? (1974) [pdf]
Well, that's precisely intrinsic to the problem of being subjective. You cannot objectively describe subjective experience, because otherwise it would cease to be subjective and become objective. It is reasonably probable that subjective experience will be outside of science for ever — unless we obtain so great a knowledge of the human brain that we can actually see some kind of physical change happening without a physical cause.
cassowary··on Canada to announce marijuana will be legal by July 1, 2018
I am sceptical of these kinds of changes. Why is it that governments are going to such trouble to essentially eliminate tobacco, but they are permitting another problematic drug? And it's usually the same side of politics who wants to get rid of tobacco, as wants to introduce marijuana! On the face of it it's strange.

I guess the only thing good about this is it might make it easier to see whether cannabis might cause schizophrenia in certain at-risk populations. :/

cassowary··on Ask HN: Is there room for another search engine?
Instead of Facebook, just talk to your friends and family semi-often. If one of them has a baby or goes to Europe a lot of them will know and someone will mention it. On occasion you will hear about something three years after the event but that's still okay. It worked perfectly well for thousands of years and it still works today.
cassowary··on Ask HN: Is there room for another search engine?
I played Duck Duck Goose when I was a kid in Australia.
cassowary··on Ask HN: Is there room for another search engine?
Hm yeah. I use DDG except for error messages when I use Google.
cassowary··on Programmer Competency Matrix (2016)
really? It's been a while since I've programmed in Haskell, but something like this is about right:

   data Data = Data { thing :: Int, that :: Boolean }}

   addToThing :: Int -> State Data Int
   addToThing n = do 
     x <- get thing
     modify (data -> data {thing: x + n})
     return x
It corresponds to this Typescript code:

   class Data {
     constructor(
        private thing: number, 
        private that: Number
     ) {}

     addToThing(n: number) {
        const old = this.thing
        this.thing = old + n
        return old
     }
   }
Except for the fact that you only need to see mutation if you want to, and you certainly can't use the mutation unless you want it.

To me it doesn't really look like jumping through hoops, but we're up front about the mutation so no-one's ever going to get a surprise.

There's no silver bullet, sure. But I don't think pure FP is really all that complex. It's mostly just different.

cassowary··on Jeremy England could change the way we think about evolution
Yes. The article was sufficiently terrible that I don't know anything about it. The journo was generally wrong and the article was about a researcher rather than research. I know there's something there that I want to know, but unfortunately I still don't know what it is.
cassowary··on Modern C++ and Lisp Programming Style
As I was reading some of the illustrations, I began to wonder why anyone would prefer to use Lisp instead of Haskell. Can anyone mention a few advantages? Mostly, I find Haskell attractive because of the fantastic type system which allows me to write code that will fail when I'm writing or changing code. But I worry that I'm overlooking something because I can't understand why some people prefer Lisp.
cassowary··on The Collapse of the Unix Philosophy
I don't think that's a fair characterisation of Javascript development. It's more that people gradually realised they want to do more and more. But when they've finally understood what they want to do, they quickly adopt learning from elsewhere. A lot of the latest and greatest developments (like React and Redux) are directly inspired by theoretical work.
cassowary··on The Collapse of the Unix Philosophy
I think WordPress, wikis and Google (Docs) would disagree with you about word processing being a solved problem. And they seem to do well enough. They offer a fundamentally different notion of what you're trying to do when you're putting prose down. (Personally I hate these systems like Microsoft Word and Google Docs that force you to think in terms of a page. Especially because they don't give you any tools to actually make things lay out properly. But it's okay, because people have been fundamentally rethinking the issue for years now.)

Now if you do want page layout, I think the people who like to do that use something different — not Word. So I don't think they've really cornered any market, unless the market is people who want to use Word.

cassowary··on The Collapse of the Unix Philosophy
Yeah... I've found Mac/iOS to be quite frustrating actually. Especially nowadays that their UI's a designed by designers who like things to be pretty — and you just can't change something no matter how bad it is (unless you want the touchpad to move the scrollbar instead of the page. they'll let you do that, even tho it's completely useless. they're not opposed to choice or flexibility, just opposed to ones that make things understandable or powerful at the expense of pretty).
cassowary··on The Collapse of the Unix Philosophy
I've always found the problem with alt os's is that I have to pick my device to match the OS. I just want a small but adequately powerful laptop, so Linux is my only real choice.
← PreviousPage 2 of 3Next →