this post was submitted on 28 Aug 2024
15 points (94.1% liked)

Programmer Humor

19377 readers
81 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
 
top 15 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 month ago

Ah yes, that's Android for ya.

[–] [email protected] 5 points 1 month ago (2 children)
[–] [email protected] 6 points 1 month ago (1 children)

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".

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (1 children)

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

[–] [email protected] 4 points 1 month ago

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

[–] [email protected] 3 points 1 month ago (1 children)

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

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (2 children)

I already did so an hour ago

UPDATE: It has been merged

[–] [email protected] 4 points 1 month ago
[–] [email protected] 2 points 1 month ago

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

[–] [email protected] 3 points 1 month ago

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

[–] [email protected] 3 points 1 month ago (1 children)
[–] [email protected] 6 points 1 month ago (1 children)

Found it while refactoring KDE Connect Android.

[–] [email protected] 2 points 1 month ago (2 children)
[–] [email protected] 1 points 1 month ago

It has a typo

Me about to make my first contribution to KDEConnect Ü

[–] [email protected] 1 points 1 month ago

Wow, that looks like a nightmare