1. 2

    Tried to pinch-zoom the page, but it triggered some awful post navigation throwing me back in time. Why is this even a thing?

    1. 2

      Reading “Learning React” from O’Reilly, for obvious reasons, but more interestingly:

      Why Buddhism is True: The Science and Philosophy of Meditation and Enlightenment

      Which is a scientific perspective from an evolutionary psychologist on mindfulness and Buddhism in general. Found it via the Ezra Klein podcast, and now it’s just captured my attention. Been reading it bit-by-bit on the train into work.

      1. 7

        Clojure. It felt like the natural progression, especially since I was interested in diving deeper into FP. Now I can’t not love s-exps and structural editing, as well as even more powerful meta-programming.

        (Also notable that I saw Russ Olsen, author of Eloquent Ruby, moved to Clojure, and now works for Cognitect.)

        1. 3

          I’m really interested in Clojure, but compared to Ruby there seems to be an order of magnitude fewer jobs out there for it.

          I can’t swing a dead cat without seeing 4 or 5 people a week looking for senior Rubyists. I’ve seen maybe 2 major Clojure opportunities in the last 6 months.

          1. 4

            I can’t swing a dead cat without seeing 4 or 5 people a week looking for senior Rubyists.

            What’s been your success rate when bringing carrion to job fairs?

            1. 1

              The way the local job market is, I doubt it’d damage my chances that much.

          2. 1

            Clojure is absolutely great and so is Russ. He still loves Ruby (as well) though :)

            I still maintain that one of the best books I ever read for my coding skills is Functional Programming Patterns in Scala and Clojure.

            Clojure never really got me personally - I would have liked but weirdly short names, friends telling me that for libs tests are more considered “optional” & others were ultimately a bit off putting to me. Still wouldn’t say no, just - switched my focus :)

            1. 3

              Tests are definitely not considered optional by the Clojure community. However, you’re likely to see a lot less tests in Clojure code than in Ruby.

              There are two major reasons for this in my experience. First reason is that development is primarily done using an editor integrated REPL as seen here. Any time you write some code, you can run it directly from the editor to see exactly what it’s doing. This is a much tighter feedback loop than TDD. Second reason is that functions tend to be pure, and can be tested individually without relying on the overall application state.

              So, most testing in libraries tends to be done around the API layer. When the API works as expected, that necessarily tests that all the downstream code is working. It’s worth noting that Clojure Spec is also becoming a popular way to provide specification and do generative testing.

          1. 6

            Semi-active, but, the community is way more engaging than the Twitter void.

            https://mastodon.social/@Slackwise

            P.S. It’s insanely frustrating to copy and paste these usernames on mobile, especially since they keep turning into mailto links. Could we please use profile links instead? Makes it easier to one-click follow, on desktop and mobile.

            1. 1

              If only JavaScript adopted some sort of syntax shorthand for Function.prototype.call, akin to Ruby:

              irb(main):001:0> "foo; bar; baz".split(?;).map(&:strip)
              => ["foo", "bar", "baz"]
              
              1. 1

                Interesting how Swift has borrowed some Rubyisms and I guess shell-isms?

                "foo; bar; baz".split(separator: ";").map { $0.trimmingCharacters(in: .whitespaces) }
                

                And Rust too:

                "foo; bar; baz".split(";").map(|s| s.trim());
                

                But no symbol-to-proc-like thing for when you just want to call a method on each element as you map them. This sort of thing always felt more natural to me in a functional language, something like:

                map trim (split ";" "foo; bar; baz")
                
              1. 1

                Was just toying with the idea of making a game after playing Caves of Qud last night, so this was one of the first projects that came to mind when considering my tech.

                Anyone know how stable and reliable it is?

                Or would it just be better to use C# for the core and ClojureCLR’s clojure.dll for ‘scripting’ game logic?

                1. 1

                  The status posted on their homepage

                  Arcadia is still in pre-alpha and highly experimental. We are working towards a coherent first release, but we’re not quite there yet. Clone the repository into a Unity project to use it and join the community discussion, but expect things to break and be undocumented for now.

                  1. 1

                    Oh wow, I assumed it progressed much more in the last year+ since I heard about it. Hmm. Thanks.

                  2. 1

                    As a first effort I’d think C# would be a better choice, yeah.

                    1. 1

                      That looks to be the consensus, yeah.