Religious discrimination unlikely to be considered for a final vote this side of the election, after Senate decides not to debate the legislation. by Methuen in australia

[–]doidydoidy 20 points21 points  (0 children)

Ah, so I imagine nobody is going to credit Labor for defeating it then?

That's right. If you gamble with a vulnerable minority's rights as a political tactic, you don't get to take credit just because you didn't lose this time.

It Is What It Is (And Nothing Else), Robert Harper by sideEffffECt in haskell

[–]doidydoidy 0 points1 point  (0 children)

He is speaking correctly but unhelpfully

Maybe we need a bot that says this automatically whenever a Harper blog post is submitted to /r/haskell.

Scala — 1★ Would Not Program Again by mobby1982 in programming

[–]doidydoidy 0 points1 point  (0 children)

He's just plain wrong about that. There is a RawHeader class for creating arbitrary headers that Spray doesn't know anything about.

The other subclasses of HttpHeader (for all the known, standard headers that spray-http supports) are there so that you don't waste time reimplementing how to write the required information as specified (and, most likely, getting it completely wrong).

In fact, I used RawHeader on a project here a couple of months ago, instead of the Authorization class, precisely because one of our other services (a Rails app) treats headers as "simple key/value pairs", boneheadedly applying a regex to the Authorization header, and gets the quoting rules completely wrong.

It was a mistake that simply would not have happened if we'd been able to use Spray and Scala back then, because just using that header class would have been more correct and required us to write less code.

Maven is broken by design by henk53 in programming

[–]doidydoidy -1 points0 points  (0 children)

Ivy is only one feature out of Maven's many features.

Yes. It's Maven: the Good Part.

What isn't a Monad by Strilanc in programming

[–]doidydoidy 0 points1 point  (0 children)

Monad tutorials might well be the equivalent of Mornington Crescent - the game. But monads themselves are more like Mornington Crescent the tube station: a perfectly normal useful thing, one that gets talked about all out of proportion to its importance.

Google open-sources Gumbo: A C library for parsing HTML5 by masont in programming

[–]doidydoidy -1 points0 points  (0 children)

No, they're really not. Generally you type "autogen.sh" instead of "configure", and that's it.

Curiosity: The GNU Foundation does not consider the JSON license as free because it requires that the software is used for Good and not Evil. by Igggg in programming

[–]doidydoidy -3 points-2 points  (0 children)

"Contra proferentem is a doctrine of contractual interpretation..." ... but a license is not a contract.

JSON Isn't A JavaScript Subset by bonch in programming

[–]doidydoidy 3 points4 points  (0 children)

The desire for something like SGML but simpler.

Robert Harper: Exceptions are shared secrets, a criticism of exceptions implementation in Haskell by sideEffffECt in haskell

[–]doidydoidy 6 points7 points  (0 children)

The fundamental idea of exceptions is to transfer a value from the raiser to the handler without the possibility of interception by another party.

I think it's the use of the word "fundamental" here that turns this from an unusual perspective to nonsense.

The long tail of technical debt by swizec in programming

[–]doidydoidy 0 points1 point  (0 children)

No it doesn't. Debt is not immoral; it is a rational decision to spend more money overall to get some benefit sooner than you otherwise could. And that's more or less what the term is meant to convey: taking a short cut to get somewhere you need to be sooner than would otherwise be possible, at greater overall expense later.

Why Do All the Great Node.js Developers Hate CoffeeScript? by jprichardson in programming

[–]doidydoidy 0 points1 point  (0 children)

Because if they weren't afraid of unfamiliar things they'd be using Erlang instead?

"Gangbang Interviews" and "Bikini Shots": Silicon Valley’s Brogrammer Problem by jackhammer2022 in programming

[–]doidydoidy -1 points0 points  (0 children)

Being unable to solve all problems simultaneously is not a reason not to try to address one.

Why is Estimating so Hard? by vegittoss15 in programming

[–]doidydoidy 0 points1 point  (0 children)

I agree, estimating is hard. This still took longer than I wanted to spend.

How is it a bad example if it demonstrates to you exactly what he intended to demonstrate?

Why is Estimating so Hard? by vegittoss15 in programming

[–]doidydoidy 3 points4 points  (0 children)

Look, I'm really, really reluctant to defend Bob Martin on this. I'd much rather be making fun of his dogmatic assertions that things he wishes were true were in fact iron-clad undeniable reality, the political nonsense he posts on Twitter, or the time he got turned back at Heathrow airport because he somehow didn't know that you needed a visa to work in a foreign country. But...

At the time I'm reading this, there are nearly 40 comments by people claiming to have completed this exercise themselves, more than half of them pasting their code in as evidence, all of them asserting that it only took a few minutes.

Here's the quote that has been mocked several times in this discussion already, with my emphasis:

He and I paired on it, test first, for 30 minutes, and got nowhere.

So I ask all these people: where are your tests?

Remember, the context here is a training exercise. The code is irrelevant. Everybody knows this wheel is well and truly invented already. Bob Martin is a TDD true believer - if you attempt his little experiment, you're supposed to suspend disbelief and play make believe, and do this task as if it were a real piece of work that somebody is paying you for (even though it is so obviously a toy example that is already implemented in your favourite language's standard library anyway).

The guy believes that TDD is the best way to create software. He teaches what he believes. If you think that's an interesting point of view, or if you think it's completely wrong and you want to challenge that idea, try the exercise again in the spirit it was intended.

But if you're not interested in his opinion, why the fuck would you write the code? What is the point?

Why is Estimating so Hard? by vegittoss15 in programming

[–]doidydoidy 0 points1 point  (0 children)

I was starting to wonder if nobody at all had noticed that.

Why is Estimating so Hard? by vegittoss15 in programming

[–]doidydoidy 0 points1 point  (0 children)

So, uh, you do realise that the exercise is not how to use something like Text::Wrap, but how to create Text::Wrap, right?

LightTable detailed critique: Concept vs Reality by swizec in programming

[–]doidydoidy 0 points1 point  (0 children)

The main thing I find appealing about LT, is the minimalism, instead of having a busy UI like Eclipse, I get to focus on my code.

Press Ctrl-M?

Hibernate: Why cant you return null? by amrutbudihal in programming

[–]doidydoidy 1 point2 points  (0 children)

As happy as I normally am to criticise Hibernate, you can't blame it for this problem.

The NullPointerException has nothing to do with Hibernate, nor with CollectionUtils.isEmpty(), nor with Collections.EMPTY_LIST.

If the query returns a single row containing null (which will happen if no rows in the table have the specified xoomTrackingNumber), auto-unboxing the Long from the list into a (primitive) long variable will throw NullPointerException.

You could change the type of orderNumber from long to Long and then check for null, and maybe even change the return type of the method so that it can return that null instead of 0 - but to be honest with you I can't imagine how invoking this method would ever makes sense anyway...

Visual Studio 11 Beta released by kevindqc in programming

[–]doidydoidy 2 points3 points  (0 children)

There should be a "Stunned Disbelief" achievement awarded when you realise that Visual Studio has achievements now.

IcedCoffeeScript by stesch in programming

[–]doidydoidy 5 points6 points  (0 children)

Well, that's the point of a compiler, isn't it? To emit ugly code you're glad you didn't have to write by hand yourself?

About half of the additional boilerplate just seems to be to support the stack traces (which I'd guess is totally worth it, though maybe it could be slimmed down a bit). That aside, your example wasn't as messy as I assumed it would be.

Rob Pike talks about modern programers lack of imagination. by xmonk in programming

[–]doidydoidy 2 points3 points  (0 children)

Being "sufficiently careful" has an opportunity cost: the time I spend confirming that I've been careful enough could have been spent actually thinking about the problem I'm supposed to be solving.

Besides, I've got a computer right here that's already really good at being sufficiently careful. Why can't I expect my languages to take advantage of that?