• fl42v@lemmy.ml
    link
    fedilink
    arrow-up
    33
    ·
    23 days ago

    I’ve learned python after CPP… And I can’t #even remember all the cases when I thought “damn, I wish I could’ve just used pointers”

    • Tiefling IRL
      link
      fedilink
      arrow-up
      17
      ·
      23 days ago

      I’ve been in industry for a decade, big tech for over 6 years. And I STILL fucking hate Python. I can write in it, but everything about it just feels wrong

      • dafo@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        23 days ago

        Similar story in our team with 2-15 YoE. We do TS and C# but recently did a hostile takeover of the API from one of our providers which is in python We all now fucking hate python. The codebase is fine, the language isn’t.

    • paris
      link
      fedilink
      arrow-up
      13
      ·
      23 days ago

      Might I introduce you to the wonderful language known as Nim? Python-like syntax, compiles to C, C++, and even JS, has mature libraries and good tooling, and some memory safety features built in! And yes, you can use pointers!

    • Treczoks@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      23 days ago

      Even our C++ guys won’t touch my C code with all the pointer tricks and unions used for hidden castings. Whimps!

      But python has worse problems than lacking pointer. Have you ever copied a piece of code from an external source into a python source? It really can f-ck up everything if one has tabs and the other has spaces.