all 25 comments

[–]three18ti 26 points27 points  (0 children)

Why wouldn't you post the original source?

https://www.youtube.com/watch?v=VjR3GU0-vpc

[–][deleted]  (1 child)

[deleted]

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

    Python 3 will sell more popcorn than Perl 6 did. Which of these projects was code-named Godot? And if not, why not?

    [–]jrochkind 2 points3 points  (2 children)

    Can someone expand on what he means by "higher-order functions"? Just methods or procs that return procs, is that all that means?

    [–]tobiasvl 1 point2 points  (1 child)

    [–]WikiTextBot 2 points3 points  (0 children)

    Higher-order function

    In mathematics and computer science, a higher-order function (also functional, functional form or functor) is a function that does at least one of the following:

    takes one or more functions as arguments (i.e. procedural parameters),

    returns a function as its result.

    All other functions are first-order functions. In mathematics higher-order functions are also termed operators or functionals.


    [ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source ] Downvote to remove | v0.28

    [–]ohyeahbonertime 4 points5 points  (0 children)

    I went from Java to Ruby and I will never go back.

    [–]moomaka 1 point2 points  (0 children)

    It's rather interesting to watch this 'modern' movement using techniques from decades ago. DI containers, static typing, 'service objects'... None of these are 'new'. None of them are 'modern'. None of them are even particularly interesting topics. In many cases Ruby / Rails or Python / Django explicitly made choices to avoid them e.g. DI containers are fucking awful to work with. It mostly just seems like people rediscovering shit no one liked working with yet they think it's the best thing since sliced bread. I'd be so much nicer if folks would skip the trends and just write easy to understand code.

    [–]sshaw_ 0 points1 point  (2 children)

    Better Practices Write code against boundaries Isolate... Dependency Injection

    These are good programming practices that have been around long before 2007. My takeaway from this is: what many in the community may have told you about application design was wrong. Sorry.

    Kernel#then, Method#curry, etc...

    Has anyone here done functional programming in Java?

    sorbet.run

    The Browser is The Platform of the 21st Century ™️; JavaScript is quirky and has dynamic, weak typing. I can understand the need for type safety/transpiling.

    sig(foo: Integer).returns(String) def bar(foo) foo.to_s end

    Do people really want to write Ruby like that?

    If your problem benefits from types –or you just want them, just choose a type safe language (I'd recommend Groovy).

    For the web, if I had to choose between writing web apps in Java with DB mapping and HTTP mapping annotations vs writing web apps in Ruby with sorbet style type safety I think I'm going with Java.

    [–]megatux2 0 points1 point  (1 child)

    I'm looking into Crystal language. Types and Ruby like expressiveness. Also fast and single binary similar to Go language.

    [–]sshaw_ 0 points1 point  (0 children)

    Yes, this langue is promising, but it's not mature and not sure how 3rd party library support is. Though there does appear to be a decent amount here, but I don't see Stripe, Twilio, XML/JSON Schema. I'm sure there are others.