Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Python and Option Explicit

Python and Option Explicit

Scheduled Pinned Locked Moved The Lounge
c++pythonquestion
24 Posts 14 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    You do understand that Python was named in honour of "Monty Python's Flying Circus" (where chaos and madness were the norm)?

    S Offline
    S Offline
    scedastic
    wrote on last edited by
    #21

    That's what I keep telling people, especially when I see the logo of 2 intertwined snakes. :sigh:

    What's faster: the speed of light or the speed of dark?

    1 Reply Last reply
    0
    • S Slacker007

      when I see code statements like goto and option explicit, I run in the opposite direction.

      den2k88 wrote:

      with all the possible ways it enables programmers to shoot themselves

      I honestly think that is the objective (thinning the herd). :sigh:

      den2k88 wrote:

      Every new programmer makes fun of C++

      What is funny about this is that most of the software these "new programmers" run, was written partly or mostly in C++. Inconceivable! :laugh:

      T Offline
      T Offline
      Tokinabo
      wrote on last edited by
      #22

      by the way, this dude revealed a secret feature of goto in c++ that apparently very few people know about (from 31m:15s): CppCon 2019: Miro Knejp “Non-conforming C++: the Secrets the Committee Is Hiding From You” - YouTube[^] disclamer: i myself am a visual basic guy, so goto caught my attention. i further have no clue about c++

      1 Reply Last reply
      0
      • D den2k88

        Please someone adds an Option Explicit to Python. The fact that something like this is even conceivable, let alone valid, is atrocious:

        class Empty:
        pass

        Empty.completelyNewAttribute = "seriously?" # adds a class member

        obj = Empty()
        obj.randomTypo = 10 # adds an instance member only to obj

        Every new programmer makes fun of C++ for being unnecessarily hard to use but I think that a language like Python, with all the possible ways it enables programmers to shoot themselves, is 10 times harder than C++. And yes, my opinion that Python is VB with different clothes is only becoming stronger. Ugh.

        GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #23

        These days it feels like C# has taken one look at Python and said to the guy next to him: "hold my beer..."

        cheers Chris Maunder

        1 Reply Last reply
        0
        • D den2k88

          Please someone adds an Option Explicit to Python. The fact that something like this is even conceivable, let alone valid, is atrocious:

          class Empty:
          pass

          Empty.completelyNewAttribute = "seriously?" # adds a class member

          obj = Empty()
          obj.randomTypo = 10 # adds an instance member only to obj

          Every new programmer makes fun of C++ for being unnecessarily hard to use but I think that a language like Python, with all the possible ways it enables programmers to shoot themselves, is 10 times harder than C++. And yes, my opinion that Python is VB with different clothes is only becoming stronger. Ugh.

          GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

          J Offline
          J Offline
          Julian Ragan
          wrote on last edited by
          #24

          Nahh, that is the fun stuff. When I was doing my first foray into this language I just could not stop giggling, since I could almost imagine Pinky and Brain kinda talking about adding this feature here, that feature over there and how coooool would it be to have feature in their language like that. Anyway, python is great for prototyping AI algos and building\training models. I also heard that web guys do it with quality.But since I use it for my diploma with AI stuff in it, I only saw how well you can use it to build AI stuff with it.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups