Upvote!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
qaz@lemmy.world to Programmer Humor@programming.devEnglish · 8 months ago

getStorageList()

lemmy.world

message-square
15
fedilink
236

getStorageList()

lemmy.world

qaz@lemmy.world to Programmer Humor@programming.devEnglish · 8 months ago
message-square
15
fedilink
alert-triangle
You must log in or # to comment.
  • mbtrhcs@feddit.org
    link
    fedilink
    arrow-up
    78
    ·
    8 months ago

    No usages

    • FellowHuman@lemmy.world
      link
      fedilink
      arrow-up
      40
      ·
      8 months ago

      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
        8 months ago

        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
          ·
          8 months ago

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

    • cheddar@programming.dev
      link
      fedilink
      arrow-up
      30
      ·
      8 months ago

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

      • qaz@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        30
        ·
        edit-2
        8 months ago

        I already did so an hour ago

        UPDATE: It has been merged

        • AdNecrias@lemmy.pt
          link
          fedilink
          arrow-up
          32
          ·
          8 months ago

          https://xkcd.com/1172

          You know it’s comming.

        • cheddar@programming.dev
          link
          fedilink
          arrow-up
          13
          ·
          8 months ago

          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
    ·
    8 months ago

    Any context?

    • qaz@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      59
      ·
      8 months ago

      Found it while refactoring KDE Connect Android.

      • beepnoise@piefed.social
        link
        fedilink
        arrow-up
        40
        ·
        8 months ago

        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
          ·
          8 months ago

          Wow, that looks like a nightmare

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          3
          ·
          8 months ago

          It has a typo

          Me about to make my first contribution to KDEConnect Ü

  • hades@lemm.ee
    link
    fedilink
    arrow-up
    22
    ·
    8 months ago

    Ah yes, that’s Android for ya.

  • pfm@scribe.disroot.org
    link
    fedilink
    arrow-up
    6
    ·
    8 months ago

    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.

  • 1.18K users / day
  • 4.56K users / week
  • 9.25K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.31K Posts
  • 43.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.6
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org