HNHacker News
TopNewBestAskShowJobs

nrinaudo

237 karma · joined June 1, 2012

submissionscomments
nrinaudo··on MongoDB queries don’t always return all matching documents
I'm not going to comment on the content of your posts - others have done that. But you might want to check your tone. You sound like a petulant teenager offended by the mere notion that someone might think you wrong.

It honestly makes it really hard not to dismiss whatever you say out of hand. If you don't really care about people taking you seriously then by all means keep it up, but if you're trying to participate in a grown up conversation, you might want to stop throwing tantrums. You know, the basic rule of human interactions, show people the respect you expect them to show you?

nrinaudo··on MongoDB queries don’t always return all matching documents
I often liken NoSQL databases to dynamically typed languages.

With a NoSQL database, you have an implicit schema, but it will only be enforced and fail at runtime - when your code expects a field but failed to find it, for instance.

With a dynamically typed language, you have implicit types, but only enforced at runtime - when your code expects a value to be an int but finds a boolean, for instance.

And both are fine, there is a need for both. I can see how the flexibility of being able to change, well, everything by just flipping a switch in your head ("this is an int now") might be helpful for, say, data exploration problems.

It's just that in a production environment, these features of NoSQL databases and dynamically typed languages turn into massive sources of problems and oh god, just don't.

nrinaudo··on Apple Stole My Music
If it's the case, somebody at Apple is seriously incompetent.

- Copy files that don't belong to them without the owner's explicit permission: some people call that piracy. I believe individuals caught doing that with movies have been faced with some hefty fines.

I understand the purpose, but it needs to come with a big, massive, Allow Apple to pirate your data, trust us, it's for your own protection checkbox. Who knows, it might even initially be true.

- do you know of any good backup solution that forcefully deletes the files it's backing up? Do you think there might be a reason why not?

I find this entirely unacceptable behaviour from Apple, and I say this as someone who has been using OS X almost exclusively for 10+ years now.

nrinaudo··on Baldur’s Gate expansion: Negative reviews because of transgender Character
Relevant: https://www.facebook.com/ed.greenwood.142/posts/101567465225...

Essentially, you may feel it's out of touch with the rest of the game, but it's definitely in line with the universe in which the game takes place. Magic items that change your gender as part of the official rulebook, mages that must swap gender as part of their training, inter-species sex and cross-breeding... how does a transgender character not fit in that universe?

nrinaudo··on Baldur’s Gate expansion: Negative reviews because of transgender Character
"actually, it's about ethics in heroic adventuring"? Really?

Couldn't care less about the transgender character - there's a character, he/she changed gender, who cares when there's presumably a fire breathing dragon over the next hill? - but that line just convinced me to buy a game I didn't think I would.

nrinaudo··on PayPal Withdraws Plan for Charlotte Expansion
You're not wrong, but I'll take self motivated good deeds over apathy any day.
nrinaudo··on Why I won't do coding tests
I think it's pretty clear he'd consider your job not worth the effort - that's his entire point, isn't it?
nrinaudo··on Why I won't do coding tests
Thanks, that's essentially the answer I was about to write.

I think the main disagreement here is that OP considers hiring him to be a privilege where parent considers being hired by him to be one. As long as parent is OK missing out on all the developers that aren't hungry enough to subject themselves to one-sided interviews like this, he'll be fine.

I like to think there's a high correlation between one's skills and unwillingness to accommodate arbitrary processes, but have nothing to back that up.

nrinaudo··on DO Not CLOSE THE ISSUE ASSHOLE
Nobody demanded anything of him - they just chose to ignore someone that, frankly, sounds like a 12 years old troll more than a competent individual trying to point out an important issue.

He wants people to pay attention to him and his issue. The burden is on him to put it in terms that people will want to pay attention to. If he doesn't want to, that's his right. But no one has an obligation to read his rants, and he has no right to expect more respect than he's showing.

And from experience, ignoring him is the right call. This kind of drama queen, however competent, usually ends up causing more problems than they identify or help solve.

nrinaudo··on Typelevel boycotts LambdaConf over politics
I did say affiliated, third word of the third sentence.
nrinaudo··on Typelevel boycotts LambdaConf over politics
There's a fairly obvious distinction between not sharing someone's values and asserting that someone is a sub-human and should have lower rights due to not being of the right color.

I'm fine with working with people whose don't share my values. I wouldn't be with someone who very publicly and very repeatedly advocated me and my family being enslaved. If you are, good for you! just don't expect everybody to share your obvious strength of character and forgiving nature.

nrinaudo··on Typelevel boycotts LambdaConf over politics
Has it occurred to you it's entirely possible that some people at typelevel are black? And you're saying that yes, they should interact with and condone the views of someone that would see them enslaved and feels they are inherently inferior and should have fewer rights than him?

Maybe you could. Maybe, if someone had consistently argued that you and your family were of an inferior race and should bow to their will as is your ordained place in the universe, you could shrug it off and say, "let's agree to disagree and get on with things".

I'd guess this has never happened to you though. I'd guess you can have this position because this is not your safety and your rights that are in danger. It's always so much easier to consider hatred acceptable when you're not its target.

nrinaudo··on Typelevel boycotts LambdaConf over politics
No, they are cancelling an event because they feel holding it would endorse views they find disgusting. You might not agree that it does, or that the views are disgusting, but that is irrelevant to their decision. The only people truly inconvenienced by this are: - themselves, because they're throwing away a lot of hard work - the people that wanted to attend their conf, which makes typelevel look bad, not lambdaconf.

Back to the thanksgiving dinner thing: they don't really want anything other than to make it clear what they're having an issue with. But they're not asking for anything, just saying: this is incompatible with my values, I'm taking myself out.

What else do you want them to do? Compromise their values? Who are you to demand that of them? Or demand the crazy relative be booted, making the whole thing horrible for the host? They took the only reasonable action given their values: take themselves out of the equation, and explain why. Anything else would have been either childish or cowardly (again, given their core values, which you might disagree with or not feel quite as strongly about).

nrinaudo··on Typelevel boycotts LambdaConf over politics
But typelevel has not cancelled lambdaconf, nor asked for it to be cancelled or even change its speakers lineup. They decided not to hold another event that was affiliated with lambdaconf.

If we're going to keep running with this thanksgiving comparison, they're not asking for the relative not be invited. They're having a party the day after, a party to which the crazy relative was never invited, and decided to cancel that.

nrinaudo··on Typelevel boycotts LambdaConf over politics
What are you going on about? typelevel had another conference organised outside of lambdaconf. It's affiliated with it, but doesn't happen at the same time - the idea being that you could come for lambdaconf, but take the opportunity to see what these typelevel folks are all about. The fact that they cancelled the typelevel conference changes nothing for lambdaconf.

They decided to cancel it because they feel that being associated with an advocate of white supremacy over the lesser races hurt their image, or were offended by said views. It's their prerogative, just as it's lambdaconf's prerogative to invite that man. They're not asking people to boycott lambdaconf, they're not even blaming lambdaconf for doing this - they explicitly state that they respect their right to do so. I read an implicit "just as you should respect our right to associate, or not, with whoever we want" there.

How is standing up for what you believe in cowardly? they find these ideas disgusting and protest them in a peaceful yet visible way. What would you rather have them do? ignore the issue and compromise their ethics because, well, it's easier (read: be cowards)? or make a more confrontational stand, such as trying to get lambdaconf speakers to cancel?

The issue is not whether moldbug is great or not - it's whether typelevel wants to be associated in any way, shape or form with ideas that they find abhorrent. They decided they didn't want to, and I can't really fault them for that.

nrinaudo··on Yelp Fired a Single Mother Today: Me
Oh, sure, I wasn't really commenting on the original story but on the parent's assertion that it'd also get you fired in Europe, which I think is either untrue or too general a statement.

Firing a single mom for needing to take time off to take care of someone close to her, especially when it would appear her performance has been at least acceptable (if maybe not her attendance)... right or wrong, it's still a bit of a dick move, wouldn't you agree?

nrinaudo··on Yelp Fired a Single Mother Today: Me
I was under the impression that her trial period, or the american equivalent if there's such a thing, was long since finished. If that assumption is incorrect, I agree that taking sudden unpaid leave during one's trial period is dangerous.

That being said, it's happened in my company and we most definitely didn't fire the person for that. I can see how it could happen, but I don't think it's a sure thing by any stretch of the imagination.

nrinaudo··on Yelp Fired a Single Mother Today: Me
I don't know about the rest of EU, but I currently work in France and I'd be shocked if someone were fired because they took half a day off with little to no notice for serious health or family reasons. If anything, the company would be sued in a heartbeat and almost guaranteed to lose.

I worked in the UK for a few years, and have had to take days off with no notice - to attend a funeral, say - and no one even thought about criticising me for it, let alone fire me. That might have been because it was a Japanese company though, I can't really tell.

I also worked in Germany for a while, and a co-worker found himself in a similar position. The company made a point of reminding him that this was not how the rules went before sending him off with instructions not to be back until the situation was resolved.

I don't know which part of EU your friend worked in, but I wonder if your generalisation might not be a bit too broad.

nrinaudo··on Tests vs. Types
Without any sarcasm of any kind, I expect I must be missing the point of what you linked and would love for you to clarify it.

What I understood was, changing the way time is handled for your entire Ruby process in order to test that some publish function sets the right date is good practice. As opposed to, say, have it expect a date argument, which lets you test it without side effects that can impact absolutely everything else, and gets you a more powerful feature, publishAt rather than just publishNow.

If I understood this correctly (which I honestly doubt), I don't think our conversation serves much purpose. You seem to regard as good practice what I consider utter lunacy. I don't pretend that I'm right, just that there's absolutely no chance that we'll agree on this.

That being said, your point about introducing abstraction for the sole purpose of enabling tests is well made. My experience is that you'll often end up glad you abstracted over whatever it was you needed for the tests and use it in live code, but not 100% of the time.

But if the alternative is global mutable states, I'll consider un-needed abstraction the lesser of two evils and gladly embrace it.

nrinaudo··on Tests vs. Types
I don't understand how this is harder in a statically typed language.

The only explanation I can think of is that the type system makes it harder to write incorrect tests by refusing anything that doesn't make sense, from a type point of view.

This can be frustrating, but the only reason it feels easier in a dynamic language is that the compiler lets you get away wih more. It's easier to write incorrect tests. I hardly think this is a good selling point.

nrinaudo··on Tests vs. Types
While I see your point, if you ever find yourself wishing for monkey patching while writing a test in a statically typed language, it's a code smell. You've not abstracted things enough. If you need to modify things that way but can't, you should consider abstracting over it and making it possible at runtime.

That way, not only do you get to write a better test - a whole class of errors is gone, just not possible anymore - you also have a more modular system, the components of which you can test individually.

nrinaudo··on Your Typing Style Might Not Be So Bad
I've actually given dvorak a fair shot - used it exclusively for a complete year, bought a blind keyboard to speed up learning, practiced daily with dedicated tools for the first month or so. I also took the opportunity to learn proper typing style, rather than a sort of 9 fingered hunt and peck system I had fallen into.

The result is absolute, abject failure. More pain in the wrist and upper arm and noticeable reduction of work efficiency. I'm now back to qwerty and hands flying over the keyboard.

I've however come to the conclusion that it's not specific to dvorak, but rather an inherent flaw of the "proper" way of typing, at least when it applies to programming, at least when it comes to the way I do it: I'm using the arrow keys rather a lot, especially since I don't ever use a mouse to navigate in text.

The arrow keys are far enough of the "main" part of the keyboard that I can't reach them without moving my right hand away from the proper, F-J position. Getting it back to the right position afterwards often involves a bit of fumbling, to the point where I sometime shift it one entire column to the right and need to delete the 5 or 6 characters I typed before my brain caught up with what was happening. This is both frustrating and, over the course of a long day, exhausting.

I know that there are solutions for this: I could use emacs-like shortcuts to navigate (ctrl-n for ->, say), I could use fancy keyboards such as the typematrix which map the arrow keys to cleverly choosen normal keys with a FN modifier... but at this point, I just want to be able to type comfortably again, not learn yet another alien (to me) method of typing in the hopes that in a year or two, I'll be back to where I was one year ago.

nrinaudo··on Have Static Languages Won?
I didn't realise hn threads could go so deep.

I understand that we're not arguing, and find the conversation interesting: I approach it from the point of view of someone who was mostly taught OO (and learned whatever CS theory he knows by himself), where you seem to have a more solid FP and theoretical background and entirely different viewpoint.

As a new father myself, I absolutely understand that free time is scarce. Enjoy your baby and holidays!

nrinaudo··on Have Static Languages Won?
As far as I'm concerned, the discussion I'm referring to started with this comment from realharo: "Usually if you need a bunch of differently-typed objects to fulfill the same contract, you can just make them implement an interface".

The way I understood that is, if you have a f(a: A), and need to pass it a B and C, neither of which are subtypes of A, you can just create a new type D, have A, B and C extend D, and modify f to expect a D. My point was that it's not always practical nor even possible to do so.

A type class would be a good way to abstract over the type itself and simply require a specific behaviour, but by the time you have f(a: A) where A is a concrete type, and you can't modify f (because it comes from an external library, say), it's too late to retrofit type classes into it.

As for your other point - type classes being awkward when you have multiple possible instances for a given type - I agree, but must say that I'm spoiled: my primary use of type classes is with Scala, where they're just, when you come down to it, parameters to functions. You can let the compiler infer them when there is no ambiguity, but when you need to pass an int to a function that expects "A with a monoid", you always have the option of being explicit about which monoid instance to use. I believe Haskell treats them as implicit parameters as well but without the option to pass them explicitly.

Finally, I'm afraid you've lost me with your last bit - reifying the instance we care about and passing the dictionary as a record. I wish I had something smart to answer, but I'm not sure I actually understand what it means. I know enough Haskell to be able to be able to read it (a necessary skill if you have even the slightest interest in FP), but not much more than that. Maybe if I knew more I'd have a clearer understanding of what you mean?

nrinaudo··on Have Static Languages Won?
That's exactly it: they're a good solution to the problem, but since type classes work specifically by avoiding subtype polymorphism (and are instead a mix of parametric and ad hoc polymorphism), they cannot be part of a discussion that is centered on whether or not subtype polymorphism is a good fit.

But, yes. The more I code, the more it feels like type classes are never not a good answer.

nrinaudo··on Have Static Languages Won?
I... don't actually understand why you would ask that question. How do type classes help, one way or the other, when the discussion is "duck typing cannot (always) be replaced in static languages by having various types extend a common interface. True or false?".

They allow you do something else, something I would argue is better (and I explicitly said so, "The best solution I know of is type classes, in languages that support them."), but are entirely irrelevant to sanderjd's point and my answer.

nrinaudo··on Have Static Languages Won?
I don't think so, but I'd be happy to be proven wrong.

If you have a function that expects a type A, and you want to pass an object of type B that doesn't have A as a supertype, I don't know of many ways to do so. Either you wrap your B in a type that extends A, or you create a new implementation of B that extends A (this is often the same solution as the first one), or you use type classes or some variant of the concept. Is there an other option that I'm not seeing?

nrinaudo··on The sky is not falling – about the supposed end of dynamic languages
I've heard various CS teachers say that, when presented with Haskell as a first language, students took to it like a fish to water and could start writing useful code really fast.

My personal experience is that Haskell isn't really all that complex - when you stick to the core, it's actually fairly simple, with a small set of well thought out features (compared to Scala, for example, which I love but has a lot of features). Strangely enough, what I find hard when dealing with Haskell is the syntax, because it's so different from all the languages I've been taught or taught myself in the past. That shouldn't be a problem for people that have little to no previous experience and tackle it with a virgin mind.

nrinaudo··on Have Static Languages Won?
That sounds like a perfect use case for type classes, have you tried that? If so, I'd be interested to know why it failed, if you can find the time.
nrinaudo··on Have Static Languages Won?
You do, and I really, really dislike doing any serious work without a solid type system.
← PreviousPage 2 of 4Next →