236
getStorageList() (lemmy.world)
top 15 comments
sorted by: hot top controversial new old
[-] mbtrhcs@feddit.org 78 points 2 weeks ago
[-] FellowHuman@lemmy.world 40 points 2 weeks 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 15 points 2 weeks ago* (last edited 2 weeks 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.world 14 points 2 weeks ago

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

[-] cheddar@programming.dev 30 points 2 weeks ago

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

[-] qaz@lemmy.world 30 points 2 weeks ago* (last edited 2 weeks ago)

I already did so an hour ago

UPDATE: It has been merged

[-] AdNecrias@lemmy.pt 31 points 2 weeks ago
[-] cheddar@programming.dev 13 points 2 weeks ago

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

[-] Endmaker@ani.social 35 points 2 weeks ago
[-] qaz@lemmy.world 58 points 2 weeks ago

Found it while refactoring KDE Connect Android.

[-] beepnoise@piefed.social 40 points 2 weeks ago
[-] Traister101@lemmy.today 6 points 2 weeks ago

Wow, that looks like a nightmare

[-] 30p87@feddit.org 3 points 2 weeks ago

It has a typo

Me about to make my first contribution to KDEConnect Ü

[-] hades@lemm.ee 21 points 2 weeks ago

Ah yes, that's Android for ya.

[-] pfm@scribe.disroot.org 6 points 2 weeks ago

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

this post was submitted on 28 Aug 2024
236 points (99.2% liked)

Programmer Humor

19166 readers
574 users here now

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

founded 1 year ago
MODERATORS