HNHacker News
TopNewBestAskShowJobs

Sandman

2,639 karma · joined March 10, 2009

If anybody wants to contact me, feel free to send me an email: Themryl@yahoo.com
submissionscomments
Sandman··on Postmodernism is Anti-Mind (Literally)
I don't know. By this logic ("Who's to say what is art and what is not art?") even my pictures of stick figures can be considered art. Except that no, sorry, they're not art, and I'm not an artist.

Roy Lichtenstein asked himself "What is art?". And when he took pictures out of instruction manuals and newspaper advertisements (and, later, comic books) and reproduced them on canvas he said "Ok, I took something mundane, something mass-produced, something you see every day all around you, and I reproduced it here on canvas, using tools and techniques that artists use, I painted each of the Ben-day dots by hand, and is this now somehow not mundane? Is it now art?". And when I see one of his pictures a voice in my head says "Yes, this is art."

When I see a canvas painted black (or a shark in a tank, for that matter), that voice says "no".

Sandman··on Postmodernism is Anti-Mind (Literally)
Cute, but this actually was an article. And Magritte's pipe wasn't really a pipe. I get the reference, but it kind of misses the point of what Magritte was trying to say with that painting.
Sandman··on Croatia just canceled the debts of its poorest citizens
What hurts people the most is VAT (Value-added tax), and Croatia has one of the highest VATs of all the EU countries [1].

The US doesn't have a VAT, but it does have a sales tax, which is pretty low compared to VAT in most European countries[2]

[1] http://en.wikipedia.org/wiki/Value-added_tax#EU_countries

[2] http://en.wikipedia.org/wiki/Sales_taxes_in_the_United_State...

Sandman··on Croatia just canceled the debts of its poorest citizens
Well, there's this crazy concept called "saving money" where you don't borrow from a bank but rather put some money aside every month to be able to afford something expensive

Yeah. Unfortunately this only works if you have enough money after you pay the bills etc. to put aside.

Sandman··on NASA Study Proposes Airships, Cloud Cities for Venus Exploration
Based on what you just said, the simulation "argument" is no argument at all. The three propositions cover all possible cases. How can you argue against that? What would be the counter-argument?
Sandman··on Monty Hall, Erdos, and Our Limited Minds
Hmm.. I don't think there's a difference. In two out of three cases, one of the remaining two doors contains a car. If the host opens the one that does, ok, bummer, you lost. But if not, there's a good chance that the other door contains a car. Remember that you always had only one in three chances of choosing the right door, this doesn't change.
Sandman··on Joker – Torrents to streamable video
Ok. What do you propose, how should we pay for digital content?
Sandman··on Scala – The good, the bad and the very ugly
I don't think anyone's getting confused but I do think that having four different ways to write essentially the same thing can lead to inconsistent code. And when you have a large project with lots of people working on the same code and with people coming and going all the time, consistency matters.

Scala has some great ideas, but it's so easy to abuse it. I know, I know, you can shoot yourself in the foot with any language. But there are languages that have several safety mechanisms you need to circumvent in order to be able to shoot yourself in the foot, and then there are those that give you a gun and a book called "How to shoot yourself in the foot".

Sandman··on Scala – The good, the bad and the very ugly
> Does the syntactic diabetes really bother people? Like, yes, these are different sequences of characters that mean the same thing, but visually it's very clear that they are the same thing; it's not the perl "there is more than one way to do it" where the ways of doing it are conceptually very different.

Oh yes, this is one of the things that bother me the most about Scala, actually. I don't mind if there are conceptually different ways of achieving the same goal, as you put it, because those different ways usually have different trade-offs; if you're doing things one way instead of the other, you know why you're doing it, there's a certain benefit in doing it this way.

But syntactic diabetes is bad because it ultimately provides no real benefit. Different people will write different code based simply on their tastes and preferences and pretty soon you'll have a mess in your project codebase, unless you enforce strict rules and conventions about writing code. Furthermore, people who work in a team that enforces one set of conventions may have trouble when joining another team that uses a different set of conventions. In Java, for example, this is not the case. Yes, there are things that the language itself doesn't enforce, and conventions are used, but these conventions are well known, and there's probably no Java developer on Earth who wouldn't adhere to them. When a totally new Java developer joins the team, she can usually read code right away, because there are no surprises with regards to the syntax. Sure, she'll need to spend some time perhaps to really get what's going on, because the code might be complex, but the syntax itself won't stand in her way.

Sandman··on Science Reveals Something Surprising About Metal Fans and Classical Music Lovers
I'd recommend Nightwish. Start with "Moondance" and go from there.

And, of course, there's always Yngwie Malmsteen.

Sandman··on Show HN: Teleport – see what the web looks like from elsewhere in the world
Oh, I didn't mean to imply that web proxies are trivial, simply that this is nothing new - there are hundreds of proxy sites from all over the world on http://proxy.org/cgi_proxies.shtml. Still, if you made this, good job!
Sandman··on Show HN: Teleport – see what the web looks like from elsewhere in the world
Ok... so - this is a web proxy service. Am I missing something here or is this all there is to it?
Sandman··on Programming Language Popularity on GitHub and Stack Overflow
Or they could do away with LOC as a metric entirely and use number of repos instead?
Sandman··on The Hypocrisy Of Sam Yagan and OkCupid
> Marriage has historically been a religious ceremony, and by legalizing gay marriage we're codifying what opponents view as an assault on their deeply-held religious beliefs.

Couldn't the same be said about civil marriage in general? Yet I don't see many religious groups opposing civil marriage between a man and a woman.

Sandman··on Why I like Java
As you may have guessed from my previous comment, I hate it when people write "foo".equals(bar). This kind of a clever trick is an accident waiting to happen unless you're really, really ok with null being a valid value for bar (and more often than not, you're not ok with that). If null is not a valid value for bar, then it's better to catch it and deal with it as early as possible.
Sandman··on Why I like Java
By the way, nobody should ever use "foo".equals(someVariable) anyway. If anything, it should be someVariable.equals("foo"), unless you really know what you're doing and are ok with null being a valid value of someVariable.
Sandman··on So Singletons are bad, then what?
Sure, but:

a) Now your singleton is also responsible for providing a mock implementation of itself (which shouldn't really be one of its concerns).

b) You didn't really do anything here: the class under test is still going to use the concrete implementation of C. You need a way of providing a mock implementation to your class while testing. The obvious answer to how to do it is dependency injection. But if you're going down that route, you can just ditch the whole singleton thing, instantiate a class using "new" somewhere else and pass it to your class. And in your unit test, you simply pass the mock implementation. This is what DI containers like Spring do. We'd be doing the exact same thing here, only manually.

Sandman··on So Singletons are bad, then what?
C.getX() is going to be called by many different methods in many classes. This means that each time you unit test any of these methods, you're also testing C.getX() when you should only be testing what the method does.
Sandman··on So Singletons are bad, then what?
> Who says that you have to be able to mock C? Not every class should be mockable. In case described by OP, why would we want to mock cache anyways?

Well it isn't really a unit test if you don't, is it? If you don't mock it then you're not only testing classes under unit tests, but also C's methods. And you're doing that not just in one place but in several different places in your testbase. The same methods. Over and over again.

Sandman··on So Singletons are bad, then what?
Doing x=C.get(x) is bad because there's no way of mocking C, thereby making unit testing a component that uses C impossible (the unit test will need to use the concrete implementation of C). Using dependency injection as described in the accepted answer, and particularly separating the concerns of C by using several different interfaces allows you to not only mock C, but actually create mock classes each of which is mocking one particular logical subset of C's functionalities.

It's easy to dismiss all this as "bloated" and "enterprisey" and people that use this as "architecture astronauts" but in reality, this pattern really does help. Well, at least if you want to be able to unit test your code properly. Otherwise, you might as well just use a singleton object.

Sandman··on Ask HN: What are the most inspirational blog posts you've ever read?
Don't Call Yourself A Programmer, And Other Career Advice

http://www.kalzumeus.com/2011/10/28/dont-call-yourself-a-pro...

Sandman··on Light Table is now open source
You were viewing Chris Granger's blog. This was a blog post about the new Light Table version.

What you're looking for is at http://www.lighttable.com/

Sandman··on The Tuesday boy problem, in under 300 words
Ok, yes, I get it now :). Thanks for the explanation.
Sandman··on The Tuesday boy problem, in under 300 words
Wait, explain it to me like I'm 10 years old.

As I see it, there are three options - either it's a boy-boy pair, a girl-girl pair or a boy-girl pair. Now, since OP introduced the age variable, let's give the kids names to make things easier to understand. Let's say that the boys are named John and Jack, the girls Jill and Judy and if it's a boy-girl pair then they're named Jack and Jill.

Now if it's a boy-girl pair, we have exactly two options: either Jack is older than Jill or Jill is older than Jack. This is shown in the first picture.

However, we also have two options for boy-boy and girl-girl pairs: Either Jack is older than John or John is older than Jack. Either Jill is older than Judy or Judy is older than Jill. This is not shown.

Since we know that one of them is a boy, we can dismiss both girl-girl pairs. Now we're left with four options. In 50% of these options the other child is a boy.

What am I missing?

Sandman··on Beware techies talking gobbledegook
Which means you used a bad naming convention. I hope you updated them to something that is descriptive enough and yet won't need to be changed next time marketing decides to change the product name.
Sandman··on 1.85% of Steam users run Linux
Keep in mind that this only shows how many Linux users run native steam clients. A lot of us also run Steam through Wine so that we can play Windows-only games. It's a buggy experience, but what can you do...
Sandman··on Another Scala rant on HN
It's just that sentences like "There certainly seems to be a grand coalition of people who want to attack Scala" and "why is everybody attacking Scala" struck me as a bit paranoid. Sure, there are people that tried doing Scala for a week or two, hated it and in their frustration wrote an angry blog post about how much Scala sucks, and they may very well be wrong. Still, this doesn't mean that there's some grand alliance against Scala.
Sandman··on Another Scala rant on HN
One thing I noticed about Odersky is that he is very protective of his creation (which is understandable, to some degree). He defends Scala against any and all criticism with a fervor, and this puts him in sharp contrast with most of other language creators who seem to be able to accept critique (or even plain old language bashing) much more calmly. So some guy wrote a blog post about how he doesn't like Scala, so what? People complain about Java all the time, imagine if every time that happened, James Gosling wrote a blog post bitching and moaning about it.
Sandman··on Etymology of “dude” is traced to "doodle," as in Yankee Doodle Dandy
In 1940s the term "hipster", it seems, stood for a person who was cool, "hip": http://en.wikipedia.org/wiki/Hipster_%281940s_subculture%29

This might interest you as well: http://en.wikipedia.org/wiki/Hippie_%28etymology%29

Sandman··on Adobe Breach Impacted at Least 38 Million Users
I didn't even know I was a registered member of Adobe's site until I received their password change email a couple of days ago. I don't know when I registered, it must have been at least three or four years ago while I was into Flex. Anyway, when I recieved the email I looked for information on when the breach occurred. According to krebsonsecurity.com, it happenned some time in the second half of September. This means I recieved an email prompting me to change my password about a month (!) after the breach occurred.

And that's not all. After I got the email, I wanted to close my account. Believe it or not, unless you're willing to call their US phone number (from 6 am - 8pm, Pacific time), you can't do it. Well, i'm not from the states, and I'm pretty angry that Adobe makes me jump through hoops just to close my account, especially in light of their recent security problems.

← PreviousPage 2 of 11Next →