awful.systems
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
sus@programming.dev to Programmer Humor@programming.dev · 1 年前

Python has a library for everything but..

programming.dev

message-square
22
link
fedilink
404

Python has a library for everything but..

programming.dev

sus@programming.dev to Programmer Humor@programming.dev · 1 年前
message-square
22
link
fedilink
alert-triangle
You must log in or # to comment.
  • sus@programming.devOP
    link
    fedilink
    arrow-up
    39
    ·
    1 年前

    bonus points if you’re using a statically typed language but the library uses extensive metaprogramming seemingly for the sole purpose of hiding what types you actually need

  • AlexWIWA@lemmy.ml
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 年前

    It’s still crazy to me that Django doesn’t have type hints.

    • misterbngo
      link
      fedilink
      arrow-up
      4
      ·
      1 年前

      They’ve explained why

      • salmoura@lemmy.eco.br
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Will you share the source?

        • far_university190@feddit.org
          link
          fedilink
          English
          arrow-up
          18
          arrow-down
          1
          ·
          1 年前

        • misterbngo
          link
          fedilink
          arrow-up
          7
          ·
          1 年前

          Hi, i believe this is where https://groups.google.com/g/django-developers/c/C_Phs05kL1Q

          • AlexWIWA@lemmy.ml
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 年前

            I disagree with them, but I’m also not the one that would be spending days adding support, so fair enough.

            • zalgotext@sh.itjust.works
              link
              fedilink
              arrow-up
              5
              ·
              1 年前

              That thread is from like 4 years ago, types in Python have come a long way since then. Maybe they’d reconsider if the community brought it back up

    • zalgotext@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      1 年前

      The django-stubs package is decent though

    • 𝕨𝕒𝕤𝕒𝕓𝕚@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      1 年前

      Kubernetes as well…

      • AlexWIWA@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 年前

        I hate kubernetes so much

        • fossphi@lemm.ee
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 年前

          One more reason to add to my hate list for kubernetes

    • Midnitte@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 年前

      Flask does - maybe a reason to switch? Lol

      • AlexWIWA@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 年前

        I have been meaning to try it

  • dudinax@programming.dev
    link
    fedilink
    arrow-up
    11
    ·
    1 年前

    Rust crates have the second and third problems.

    Rust at least has type annotation.

    The type has private fields. There’s no constructor. There’s no implementation of the From trait except on itself. You can’t find a function anywhere that returns the type.

    • KindaABigDyl@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      1 年前

      I find Rust crates generally have pretty good docs. Docs.rs is a major time saver

  • AVincentInSpace@pawb.social
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 年前

    you should learn Rust. the type system is so comprehensive that half the time you can guess what a function does (or at the very least what you’re supposed to pass to it) without a single line of human written documentation.

    • kaffiene@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 年前

      My problem with Rust is that I find refactoring really painful.

  • Evil_Shrubbery@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 年前

    Using cryptic parameter names is just nonsense when you can obviously use lewd cryptic parameter names instead.

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    7 个月前

    deleted by creator

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 年前

    And now we have free threads so I can’t say at least you don’t have normal concurrency problems 🤣

  • kaffiene@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 年前

    I really like Python. The only thing I don’t want to do with Python is support a large code base. Lack of strict typing makes refactoring awful

  • Reptorian@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 年前

    I’m just glad I have other options than just Python. Am not afraid of writing my solutions either. I rarely use Python these day.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.5K users / day
  • 3.12K users / week
  • 8.61K users / month
  • 16.6K users / 6 months
  • 4 local subscribers
  • 27.8K subscribers
  • 1.43K Posts
  • 37.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org