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

Programmer Humor

22748 readers
384 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
[–] enemenemu@lemm.ee 73 points 6 days ago (3 children)

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

I can play this game as well

[–] merari42@lemmy.world 10 points 6 days ago* (last edited 6 days ago) (3 children)

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

[–] lmmarsano@lemmynsfw.com 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!

[–] enemenemu@lemm.ee 7 points 6 days ago

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

[–] MonkderVierte@lemmy.ml 6 points 6 days ago

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

[–] techt@lemmy.world 9 points 6 days ago (2 children)

Would it be for giving credit it to the Tweeter?

[–] LeninsOvaries@lemmy.cafe 21 points 6 days ago (1 children)

Twitter users don't deserve credit.

[–] ripcord@lemmy.world 3 points 6 days ago

Lol who downvoted this

[–] enemenemu@lemm.ee 5 points 6 days ago

The twitter guy didnt share the link to the source

[–] enemenemu@lemm.ee 39 points 6 days ago

That's called snap on ubuntu

[–] j4k3@lemmy.world 33 points 6 days ago

This sure as fuck better check locale for US only!

[–] helloyanis@jlai.lu 21 points 6 days ago

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

[–] Artyom@lemm.ee 16 points 6 days ago* (last edited 6 days ago) (1 children)

Pandas was always 200% slow, nothing lost there.

[–] merari42@lemmy.world 7 points 6 days ago

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

[–] frezik@midwest.social 10 points 6 days ago

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

[–] seeigel@feddit.org 6 points 6 days ago* (last edited 6 days ago)

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

[–] rustbuckett@lemmings.world 4 points 6 days ago

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

[–] cm0002@lemmy.world 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

[–] RapidCatLauncher@lemmy.ca 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

[–] driving_crooner@lemmy.eco.br 27 points 1 week ago (1 children)

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

[–] Aatube@kbin.melroy.org 35 points 1 week ago

extra 4% tariff on aliased packages

[–] uranibaba@lemmy.world 23 points 1 week ago
[–] zqwzzle@lemmy.ca 18 points 1 week ago* (last edited 1 week ago) (2 children)

This would actually be good for npm though…

[–] mmddmm@lemm.ee 7 points 1 week ago

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

[–] Aatube@kbin.melroy.org 3 points 1 week ago
[–] kibiz0r@midwest.social 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.

[–] joyjoy@lemm.ee 16 points 1 week ago (1 children)

You can smuggle imports using importlib.

[–] elvith@feddit.org 9 points 6 days ago

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

[–] lily33@lemm.ee 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?

[–] lily33@lemm.ee 6 points 1 week ago

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