There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

mbtrhcs , in `getStorageList()`

No usages

cheddar ,
@cheddar@programming.dev avatar

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

qaz OP , (edited )

I already did so an hour ago https://lemmy.world/pictrs/image/3e40872f-e268-4926-b709-5278d2b9090b.png

UPDATE: It has been merged

AdNecrias ,

xkcd.com/1172

You know it’s comming.

cheddar ,
@cheddar@programming.dev avatar

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

FellowHuman ,

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 ,

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 OP ,

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

mhredox , in One Note enshitification

e13n

pkill , in One Note enshitification

Notesnook ftw

hades , in `getStorageList()`

Ah yes, that’s Android for ya.

Comment105 , in A Guessing Game

Rhowch, mwyn, and wnffre are Welsh. The rest is nonsense.

accideath ,

What are those in English?

Taleya ,

Rhowch = give / enter supply? Kinda? Like “enter password” is where i’ve seen it.

Mwyn = mine as in dig

Wmffre = welsh version of humphrey and i only know that due to my great-grandfather.

anti ,

Cwtch is the most obviously Welsh word there.

Comment105 ,

Obviously.

MrLLM , in `"☹️".reverse() == "🙂"`

<span style="color:#323232;">File "<stdin>", line 1
</span><span style="color:#323232;">    "👉".reverse() = "👈"
</span><span style="color:#323232;">    ^
</span><span style="color:#323232;">SyntaxError: cannot assign to function call
</span>
derpgon ,

It is a font that changes == to one long equals sign.

MrLLM ,

Oh my bad, that idea didn’t cross my mind.


<span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;">  File "<stdin>", line 1, in <module>
</span><span style="color:#323232;">AttributeError: 'str' object has no attribute 'reverse'
</span>
sukhmel , in `"☹️".reverse() == "🙂"`
ABluManOnLemmy , in `"☹️".reverse() == "🙂"`

“🇮🇪”.reverse() = “🇨🇮”

SpaceNoodle , in PlePuProPro: The Pledge to Put Prolog in Production

I know what I’m doing next week

anton , in PlePuProPro: The Pledge to Put Prolog in Production

Prolog is not suitable for any problem domain, although this is more readily apparent for some domains than others.

For real, for real.

Ephera , (edited ) in PlePuProPro: The Pledge to Put Prolog in Production

I once considered implementing a CI/CD configuration management tool in Prolog (in my free time).

Cause, you know, you’ve got certain conditions that you want to be met, so from an API perspective, it’s actually kind of reasonable.

Problem is, at some point you need to actually do things on the target machine. And you can’t really tell it to run a few instructions in order. Not as reasonable for that part…

marcos OP ,

Ouch.

I’ve once decided that “hey, software interaction is logic, so prolog should be the best for complex protocols and UIs!”

Quite soon I understood that no, “complex protocols and UIs” are a problem all by themselves, enabling them makes them worse, and enabling them with prolog makes them even worse.

Up to this day I’m stuck trying to make data quering more “programming-like” than the restrictive thing we have with SQL. I’ve backtracked a few times already after noticing that I just designed prolog again.

But fear not, at some point one of us will finally find that problem domain for what prolog is really suitable. I know of an entire company betting on using it for describing access control rules, maybe they are up to something!

mcmodknower , in PlePuProPro: The Pledge to Put Prolog in Production

As someone who used Prolog in an academic circumstance for more than just logic, i fully agree with that article.

But i still think C++ has more footguns than Prolog.

marcos OP ,

But i still think C++ has more footguns than Prolog.

They are different kinds of footguns. The C++ ones keep security, ops, management, suppliers, customers, and the public up at night; the prolog ones keep you up at night.

chottomatte , in Activate Linux
@chottomatte@lemdro.id avatar

When I was testing Linux distributions on DistroSea it was pretty funny to me to see " Activate Windows " lines on the screen while testing a Linux distro

Shifty , in Activate Linux

Git Repo, it works on Windows too, just in case you’ve activated it and the bottom corner of your screen feels lonely. You can also set the text to whatever you want

arandomthought ,

Love the Cave Johnson quote in the readme that just preempts any of those pesky “why” questions.

Stupidmanager , in Activate Linux

I remember when someone did this for Mac. this just ticks those boxes of someone who should be doing work, but doesn’t want to do work and feels like coding something to make you laugh. Heh

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • lifeLocal
  • random
  • goranko
  • All magazines