GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by Noah Gibbs (codefolio@ruby.social), page 2

  1. Embed this notice
    Noah Gibbs (codefolio@ruby.social)'s status on Monday, 29-May-2023 06:38:38 JST Noah Gibbs Noah Gibbs
    in reply to
    • Paul Cantrell

    @inthehands It's a special value of a different type, so you avoid the whole "nil is a subtype of everything" problem.

    In Ruby nil isn't a subtype of everything *and* it has some methods.

    So if that's the distinguishing feature of null-as-an-abstraction-across-langs then Ruby's nil isn't one.

    In conversation Monday, 29-May-2023 06:38:38 JST from ruby.social permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      http://problem.In/
    2. No result found on File_thumbnail lookup.
      methods.so - Registered at Namecheap.com
  2. Embed this notice
    Noah Gibbs (codefolio@ruby.social)'s status on Monday, 29-May-2023 06:37:06 JST Noah Gibbs Noah Gibbs
    in reply to
    • Paul Cantrell

    @inthehands I'm a little leery of "it's fine, String? is another type, but not a subtype of String" since checking for None looks a lot like checking for nil. But I suppose in a typed language you can at least declare where it's not allowed to be nil, so there's that.

    I wanted Rust to be like that, but having unsafe Rust all over limits the advantages pretty heavily (still runtime crashes, for instance.) So I'd need to work on a little-to-no-unsafe-Rust project to know.

    In conversation Monday, 29-May-2023 06:37:06 JST from ruby.social permalink
  3. Embed this notice
    Noah Gibbs (codefolio@ruby.social)'s status on Monday, 29-May-2023 06:34:04 JST Noah Gibbs Noah Gibbs
    in reply to
    • Paul Cantrell

    @inthehands Yeah, I definitely agree with these criticisms of nil. And yup, adding a special instance for your type-specific special value (linked list node, the symbol :end, etc) is generally much better than nil, for all the reasons you say.

    Ruby's doesn't have the same LSP problems (no type declarations => you're not violating a type declaration) but of course nil is still bad.

    In conversation Monday, 29-May-2023 06:34:04 JST from ruby.social permalink
  4. Embed this notice
    Noah Gibbs (codefolio@ruby.social)'s status on Thursday, 25-May-2023 21:56:17 JST Noah Gibbs Noah Gibbs
    in reply to
    • Paul Cantrell

    @inthehands I *am* sorry it ends before he talks about alternatives to null. There are some good ones.

    But the Maybe monad is mostly just three nulls in a trenchcoat. It doesn't fix the worst problems with it, it just adds a lot more verbosity to the problem.

    Given how fast he was explaining stuff, it *would* have been fascinating to see how he explained monads in 45 seconds 🙂

    In conversation Thursday, 25-May-2023 21:56:17 JST from ruby.social permalink
  5. Embed this notice
    Noah Gibbs (codefolio@ruby.social)'s status on Thursday, 25-May-2023 21:54:37 JST Noah Gibbs Noah Gibbs
    in reply to
    • Paul Cantrell

    @inthehands This is a *great* talk.

    Major brownie points for mentioning Autocode and Shortcode as early programming langs. Those weren't ones I knew, I'm gonna go learn about them 😃

    In conversation Thursday, 25-May-2023 21:54:37 JST from ruby.social permalink
  6. Embed this notice
    Noah Gibbs (codefolio@ruby.social)'s status on Thursday, 25-May-2023 21:53:57 JST Noah Gibbs Noah Gibbs
    • Paul Cantrell

    If you liked my "100-Year Programming Language" article or talk, this talk from Paul Cantrell (@inthehands) at Minnebar is *really* good.

    Programming language history, including some wonderful really early stuff.

    https://www.youtube.com/watch?v=3aw7777DS58

    In conversation Thursday, 25-May-2023 21:53:57 JST from ruby.social permalink
  • After

User actions

    Noah Gibbs

    Noah Gibbs

    I have benchmarked Ruby and graphed the results, including at https://speed.yjit.org. I write at https://codefol.io, where you can get on my email list for free chapters. I wrote Rebuilding Rails, Rebuilding HTTP and Mastering Software Technique.I live in Inverness, Scotland with my wife, three kids, and two cats.In the Scottish Highlands? https://highlandwebgroup.co.uk/He/him

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          106655
          Member since
          13 Mar 2023
          Notices
          26
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.