Live data from Hacker News

Viewing profile — rdnetto

rdnetto

HN member
Joined
Sun, Sep 11, 2016, 9:30 AM UTC
HN karma
22
Public activity
19 items

About rdnetto

No profile information was provided.

Recent public activity

  1. comment
    Comment #17944480

    Programming languages having rigid syntax is like English being limited to the Latin alphabet - the opportunities for creativity lie in the combinations of higher level structures.…

  2. comment
    Comment #17459925

    This is standard practice where I work due to SOX compliance. (No pushing directly to master, all PRs need at least one other person's approval). In practice it's not an issue, sin…

  3. comment
    Comment #16749313

    You know that OSX and Linux both use the same printer stack (CUPS) right?

  4. comment
    Comment #15596787

    > C++ cannot be covered by package management in the same way interpreted languages are. The problem space is vastly more complex. It starts with optional language features that of…

  5. comment
    Comment #14780018

    A variation on this would be to put the database behind a service that abstracted over the schema, though that only works for basic CRUD queries and not complex aggregations. This …

  6. comment
    Comment #14420633

    You can do that in Python by converting the list to a tuple before passing it in. The need for a defensive copy is unavoidable as long as you're using mutable data types though.

  7. comment
    Comment #14241816

    You probably want to compress it as well - that can easily reduce the file size by an order of magnitude.

  8. comment
    Comment #14152249

    Would be really great to see this make it's way into the language. Here are some ways I've found to work around its absence: * adding a match() function to a common base type. So i…

  9. comment
    Comment #13975493

    I suspect the third function is the one for running the monad. It's different for each one, so it's not part of the type class, but you do need it to use a given monad. (Except IO,…

  10. comment
    Comment #13919101

    I used it for a while, ended up switching to Haskell, which had a lot of similar benefits despite being so different. If you're going to use it, I highly recommend the D Programmin…

  11. comment
    Comment #13873174

    It's worth noting you can implement something similar in OOP languages using Church encoding: http://blog.higher-order.com/blog/2009/08/21/structural-patt...

  12. comment
    Comment #13872458

    > I can almost guarantee that code was not written by an inexperienced or low skill coder. > If it was, you'd have a large complex function that took large complex state as its inp…

  13. comment
    Comment #13872281

    A counter-point to this is that OOP languages lack support for ad-hoc polymorphism. i.e. the ability for third-party code to define an implementation of an interface for a pre-exis…

  14. comment
    Comment #13694080

    I have the same toaster and it is awesome. My favourite feature is that its Frozen button works perfectly, which is great if you don't have bread that often.

  15. comment
    Comment #13693910

    IIRC, Panasonic owns the patent on inverters, but they definitely make a microwave with a simple knob interface, because I have one ( http://www.panasonic.com/au/consumer/household…

  16. comment
    Comment #13571957

    That's not a bad answer though - it demonstrates you understand the value of those things we should have had years ago, and might include things which aren't being worked on yet (e…

  17. comment
    Comment #13402310

    Haskell and Scala are pretty awesome at embedded DSLs, because of do-blocks. You can use them to bind some value to a symbol (i.e. assign a variable) inside the eDSL, which isn't p…

  18. comment
    Comment #13402292

    > I think you are confusing type errors with modeling errors, but that's very common. How would you distinguish between them? Strong/expressive type systems encode the modelling in…

  19. comment
    Comment #13402276

    > Static typing helps a lot to catch basic type errors but it is surely not the "Messiah" of code safety. I'd argue that type safety is only one benefit of strong types - the other…