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

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

Conversation

Notices

  1. Embed this notice
    drmorr (drmorr@hachyderm.io)'s status on Friday, 19-Jul-2024 02:46:22 JST drmorr drmorr

    I think the thing I find most frustrating about programming languages is that there is no standard way to refer to the length of an array.

    Python, go: len(array)
    Java, JavaScript: array.length
    Rust: array.len()
    C++: array.size()
    C#: array.Length
    PHP: count($array)
    Perl: scalar(@array) (lmao)
    Swift: array.count
    Kotlin: array.size

    Like, seriously? Can't we agree on just this one thing???

    #programming #rustlang #golang #cplusplus #php #swift #kotlin #perl #java #javascript #python #csharp

    In conversation about a year ago from hachyderm.io permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Friday, 19-Jul-2024 02:46:21 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      @drmorr Why would it be a function though?
      In conversation about a year ago permalink
    • Embed this notice
      drmorr (drmorr@hachyderm.io)'s status on Friday, 19-Jul-2024 02:46:22 JST drmorr drmorr
      in reply to

      I'm actually sort of shocked that nobody does array.length(). I was really expecting that to come up somewhere. I guess we all just _really_ hate typing those extra few characters.

      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • 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.