195
Python vs. Java (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] BlueKey@fedia.io 5 points 2 months ago

A good question, as I like it and don't like it. It is without a doubt better than dynamic types.

On the pro side it removes redundant writing the type again and again. On the con side it is almost impossible to see what type with what functions the variable in front of you has without an IDE (which you don't have without cloning the repo) or without an already deep knowledge of the code.

Same with extension functions (free functions which can be added to a type almost anywhere in the codebase). Very useful (Kotlin is a great example for this) but also confusing when you want to hunt down where this piece of code is coming from.

this post was submitted on 01 Feb 2026
195 points (89.8% liked)

Programmer Humor

31092 readers
432 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