Stop comparing programming languages

  • Python is versatile
  • JavaScript is powerful
  • Ruby is elegant
  • C is essential
  • C++
  • Java is robust
  • Xylight (Photon Dev)@lemdro.id
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    20 days ago
    • Python is NameError: name 'term\_to\_describe\_python' is not defined

    • JavaScript is [object Object]

    • Ruby is TypeError: Int can't be coerced into String

    • C is segmentation fault

    • C++

    • Java is

    Exception in thread "main" java.lang.NullPointerException: Cannot read the term_to_describe_java because is null at ThrowNullExcep.main(ThrowNullExcep.java:7)
    Exec.main(ThrowNullExcep.java:7) 
    
      • LordKitsuna@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        19 days ago

        I’ll happily download 63928 depends so long as it continues to work. And it does, unlike python projects that also download 2352 depends but in the process brick every other python program on your system

      • lastweakness@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        19 days ago

        Crates aren’t exactly runtime dependencies, so i think that’s fine as long as the 1500+ dependencies actually help prevent reinventing the wheel 1500+ times

    • sus@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      19 days ago

      C++ is std::__cxx11::list<std::__shared_ptr<table, (__gnu_cxx::_Lock_policy)0>, std::allocator<std::__shared_ptr<table, (__gnu_cxx::_Lock_policy)0> > >::erase(std::_List_const_iterator<std::__shared_ptr<table, (__gnu_cxx::_Lock_policy)0> >) /usr/include/c++/12/bits/list.tcc:158

      • LANIK2000@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        19 days ago

        I once forgot to put curly braces around the thing I was adding into a hashmap. If I remember correctly it was like ~300 lines of error code, non of which said “Wrong shit inside the function call ma dude”.