this post was submitted on 18 Apr 2025
853 points (98.1% liked)

Programmer Humor

22780 readers
765 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 2 years ago
MODERATORS
 
top 36 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 6 days ago

Reduce them later. Tell your boss you found a 2x speedup.

[–] [email protected] 4 points 6 days ago

Hopefully it maxes out your CPU and memory for no reason.

[–] [email protected] 97 points 1 week ago (1 children)

Not feature complete, needs to be tied with a RNG to determine when TARIFF ON and TARIFF OFF

[–] [email protected] 55 points 1 week ago* (last edited 1 week ago)

Hidden feature: Defines a tariff.admin.impeach function that increments a global counter and does absolutely nothing else

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

I don't get why people share twitter screenshot instead of the image itself

I can play this game as well

[–] [email protected] 30 points 1 week ago (2 children)
[–] [email protected] 15 points 1 week ago (1 children)
[–] [email protected] 18 points 1 week ago (2 children)
[–] [email protected] 6 points 1 week ago

🎶 Non, rien de rien. Non, je ne regrette rien. 🎶

[–] [email protected] 10 points 1 week ago* (last edited 1 week ago) (3 children)

This is a bluesky screenshot, not a twitter screenshot. This is to show, where I reposted this from.

[–] [email protected] 11 points 6 days ago* (last edited 6 days ago)

This is the web: we can attribute source with link, and the original source in markdown could be quoted without breaking accessibility. The web is built for it.

👊 TARIFF 🔥

The GREATEST, most TREMENDOUS Python package that makes importing great again!

MIGA: make importing great again. pip.

About

TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!

meme: Breaking news: 34% tariff on python imports. pypi ecosystem thrown into turmoil.

Installation

pip install tariff

Usage

import tariff

# Set your tariff rates (package_name: percentage)
tariff.set({
    "numpy": 50,     # 50% tariff on numpy
    "pandas": 200,   # 200% tariff on pandas
    "requests": 150  # 150% tariff on requests
})

# Now when you import these packages, they'll be TARIFFED!
import numpy   # This will be 50% slower
import pandas  # This will be 200% slower

Text: it's accessible!

[–] [email protected] 7 points 1 week ago

That's what I don't understand. Usually you quote the original source. What if it was a video?

[–] [email protected] 6 points 1 week ago

Use the download picture there, use the upload picture here and post a link to the source?

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

Would it be for giving credit it to the Tweeter?

[–] [email protected] 21 points 1 week ago (1 children)

Twitter users don't deserve credit.

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

Lol who downvoted this

[–] [email protected] 5 points 1 week ago

The twitter guy didnt share the link to the source

[–] [email protected] 39 points 1 week ago

That's called snap on ubuntu

[–] [email protected] 33 points 1 week ago

This sure as fuck better check locale for US only!

[–] [email protected] 27 points 1 week ago (1 children)

Importing pandas and numpy without the pd and np aliases looks weird.

[–] [email protected] 35 points 1 week ago

extra 4% tariff on aliased packages

[–] [email protected] 23 points 1 week ago
[–] [email protected] 21 points 1 week ago

Set it to -1000% and enjoy your new lightning-fast imports!

[–] [email protected] 18 points 1 week ago* (last edited 1 week ago) (2 children)

This would actually be good for npm though…

[–] [email protected] 7 points 1 week ago

Are you trying to say npm doesn't implement this yet?

[–] [email protected] 3 points 1 week ago
[–] [email protected] 17 points 1 week ago

The extra time is spent mining $TRUMP

Tap for spoilerI know it’s PoS, it’s just funnier this way, don’t come at me.

[–] [email protected] 16 points 1 week ago (1 children)

You can smuggle imports using importlib.

[–] [email protected] 9 points 1 week ago

We're gonna build a firewall and importlib is gonna pay for it!

[–] [email protected] 16 points 1 week ago* (last edited 1 week ago) (1 children)

Pandas was always 200% slow, nothing lost there.

[–] [email protected] 7 points 1 week ago

If you can tariff penguin island you could also tariff polars, which isn't slow.

[–] [email protected] 14 points 1 week ago

Having to import my tariff management solution is a critical national security risk. Needs to be built-in. PEP soon, please?

[–] [email protected] 6 points 1 week ago* (last edited 6 days ago)

Is there a way that I can enforce this as root to all of my users?

[–] [email protected] 6 points 1 week ago

What a great way to reduce external dependencies and mitigate supply chain attacks!