56 points

I’m in this picture, and I don’t like it.

permalink
report
reply
6 points

I didn’t sign a release!

permalink
report
parent
reply
1 point

No I’m Spartacus.

permalink
report
parent
reply
54 points
*

…for people who refuse to use static types.

permalink
report
reply
36 points

Static types are great, but not exactly what would have helped here, any decent language or at least a linter should catch the use of a not declared identifier.

permalink
report
parent
reply
20 points
def foo(x):
  return x.whatevr

No linter is going to catch that.

permalink
report
parent
reply
16 points
class MyClass:
    def __init__(self, x: int):
        self.whatever: int = x

def foo(x: MyClass) -> int:
    return x.whatevr

Any decent IDE would give you an error for unresolved attribute. Likewise it would warn you of type error if the type of x.whatever didn’t match the return type of foo()

permalink
report
parent
reply
8 points

It’s python, just use type hinting already and your linter will catch that.

Also some winters can look at the use of food and see the type being passed in.

permalink
report
parent
reply
0 points

Not with an example that simple and poor, no.

If you have done the minimum and at least set a type hint, or if your ide is smart enough to check what calls the function and what it passes, then it’ll be flagged.

permalink
report
parent
reply
-2 points

Always love seeing the trope:

*writes awful code*

See! This is why this language sucks!

permalink
report
parent
reply
28 points

I appreciate the “carrot with a bit out of it” icon.

permalink
report
reply
22 points

This literally happened to me yesterday, but with filenames. I was failing to configure a program until an hour later I found out that I mispelled the config file as colors.ini instead of color.ini.

permalink
report
reply
8 points

I like that even here on Lemmy, with inline code format, colors.ini is not being colored but color.ini is. Great symbolism for your issue.

permalink
report
parent
reply
11 points

If you remove the 4th panel then this accurately describes call center customer service

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.9K

    Monthly active users

  • 1.7K

    Posts

  • 29K

    Comments