D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
qaz@lemmy.world to Programmer Humor@programming.devEnglish · 9 个月前

getStorageList()

lemmy.world

message-square
15
fedilink
236

getStorageList()

lemmy.world

qaz@lemmy.world to Programmer Humor@programming.devEnglish · 9 个月前
message-square
15
fedilink
alert-triangle
You must log in or register to comment.
  • mbtrhcs@feddit.org
    link
    fedilink
    arrow-up
    78
    ·
    9 个月前

    No usages

    • FellowHuman@lemmy.world
      link
      fedilink
      arrow-up
      40
      ·
      9 个月前

      Well its public so who knows in what other package is using it. And it’s static, so who know what kind if monster is calling it from some inapropriate place. I have seen static methods being called from translation/localization files, because “it works”.

      • mbtrhcs@feddit.org
        link
        fedilink
        arrow-up
        15
        ·
        edit-2
        9 个月前

        IntelliJ finds most uses in my experience unless you’re doing something weird with reflection or similar. And if it’s a public facing API only used by the library’s consumers…– it should be used in tests at the very least! Especially if it’s prone to regressions like the comment suggests

        • qaz@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          14
          ·
          9 个月前

          There are only 7 unit test classes. 2 of which I wrote myself this month.

    • cheddar@programming.dev
      link
      fedilink
      arrow-up
      30
      ·
      9 个月前

      Somebody should tell Albert and the others, they can let this method go.

      • qaz@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        30
        ·
        edit-2
        9 个月前

        I already did so an hour ago

        UPDATE: It has been merged

        • AdNecrias@lemmy.pt
          link
          fedilink
          arrow-up
          32
          ·
          9 个月前

          https://xkcd.com/1172

          You know it’s comming.

        • cheddar@programming.dev
          link
          fedilink
          arrow-up
          13
          ·
          9 个月前

          Alright, this is my first contribution to an open-source project, albeit indirect. I’ll drink to that!

  • Endmaker@ani.social
    link
    fedilink
    English
    arrow-up
    35
    ·
    9 个月前

    Any context?

    • qaz@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      59
      ·
      9 个月前

      Found it while refactoring KDE Connect Android.

      • beepnoise@piefed.social
        link
        fedilink
        arrow-up
        41
        ·
        9 个月前

        Found the masterpiece: https://github.com/KDE/kdeconnect-android/blob/d41ed4d911959beef923d0d9a9c74072f0dd920a/src/org/kde/kdeconnect/Helpers/StorageHelper.java#L56

        • Traister101@lemmy.today
          link
          fedilink
          arrow-up
          6
          ·
          9 个月前

          Wow, that looks like a nightmare

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          3
          ·
          9 个月前

          It has a typo

          Me about to make my first contribution to KDEConnect Ü

  • hades@lemm.ee
    link
    fedilink
    arrow-up
    21
    ·
    9 个月前

    Ah yes, that’s Android for ya.

  • pfm
    link
    fedilink
    arrow-up
    6
    ·
    9 个月前

    I keep telling myself that in the ideal world, phones would be programmed in Forth.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 889 users / day
  • 5.73K users / week
  • 9.86K users / month
  • 19K users / 6 months
  • 10 local subscribers
  • 23.9K subscribers
  • 1.35K Posts
  • 44K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org