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 is EVIL....

Python is EVIL....

Scheduled Pinned Locked Moved The Lounge
python
67 Posts 37 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.
  • G glennPattonWork3

    Hi All Winge mode on. I have spent more time than I like to admit fighting with Python today who on good earth though white spaces should be syntax! OK, I came from a C/Assembly background curly braces win not spaces... It's odd plain odd! :wtf: I am going to start using Notepad++ as I at least have a chance of keeping tabs and or spaces in line. I don't like it it might be different if you are introduced from the word go, but I can see People being taught with it being very picky and it making you layout code better but...

    B Offline
    B Offline
    Bob1000
    wrote on last edited by
    #35

    Way too many languages designed by way too many Bjarne Stroustrup wannabe's (but without the skill) We need a massive cull of languages and there should be no space for ones like Python..... Computer languages are becoming like normal language, way too many and defended on the most irrational grounds and too the death. Like welsh - its only real use is to confuse tourists and make very long road signs

    A 1 Reply Last reply
    0
    • L Lost User

      glennPattonWork wrote:

      I am going to start using Notepad++

      Use IDLE (the Python IDE) and its associated editor, it does all the spacing for you.

      M Offline
      M Offline
      Martijn Smitshoek
      wrote on last edited by
      #36

      Richard MacCutchan wrote:

      it does all the spacing for you

      And reveal all the passwords you're trying to enter And fight with matplotlib over cpu time I can't count the number of ppl not believing me when I told them that IDLE was causing their problems. I even made some relaunch code, just to make my Python scripts escape from IDLE's claws :( :sigh:

      L 1 Reply Last reply
      0
      • M Martijn Smitshoek

        Richard MacCutchan wrote:

        it does all the spacing for you

        And reveal all the passwords you're trying to enter And fight with matplotlib over cpu time I can't count the number of ppl not believing me when I told them that IDLE was causing their problems. I even made some relaunch code, just to make my Python scripts escape from IDLE's claws :( :sigh:

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #37

        No, never seen any of those, not had any problem with IDLE. And I don't quite see how it can reveal your passwords. Maybe you are doing something wrong.

        M 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          Sort of: it was intended for punch cards, so in the early days specific columns had specific meanings. This explains it well: fortran - Why does COBOL have to be indented? - Stack Overflow[^] FORTRAN had similar: Column 1 indicated a comment if it held a C or a *, columns 1-5 were labels, 6 allowed a line to continue from the previous one. But ... it removed all whitespace outside strings before compilation. And since it didn't require variable declaration (the type of a variable depended on the first letter in its name):

          DO 100 i = 1, 10

          Was VERY different from

          DO 100 X = 1. 10

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

          B Offline
          B Offline
          BryanFazekas
          wrote on last edited by
          #38

          OriginalGriff wrote:

          Sort of: it was intended for punch cards, so in the early days specific columns had specific meanings.

          I can't believe you mentioned this! You set my therapy back decades! :laugh: Funny story: my freshman year of college we submitted programs on punchcards. During the first class of the first course, we were warned to buy a wide marker. Type your deck, line the cards up neatly, then draw a diagonal stripe across the top of the deck. If the deck got out of order the stripe could be used to visually fix the order of the deck. Also use at least 2 rubber bands to hold the deck together, in case one broke. If we had to make significant revisions to the program, the top could get messy with multiple stripes, but the manual labor of producing a deck made us better, more careful programmers. That and having 12 hour turnaround times on program runs near the end of the semester -- we could not afford to be sloppy at all. [It also made us accurate typists -- miss a stroke, throw out that card] It's end of the semester and nearing midnight. I had dropped off my deck at noon and had walked across campus to pick up the deck + printout. My run had been successful so I got to sleep! ;P Guy is walking towards me, carrying a deck of at least 300 cards. He drops the deck, the single rubber band breaks, and cards spray every where. No sign of a stripe on the top of the deck. Poor guy looks like he's going to cry. He starts to get down on his knees to pick up the deck, straightens up, shakes his head, and walks away ...

          G 1 Reply Last reply
          0
          • G glennPattonWork3

            Hi All Winge mode on. I have spent more time than I like to admit fighting with Python today who on good earth though white spaces should be syntax! OK, I came from a C/Assembly background curly braces win not spaces... It's odd plain odd! :wtf: I am going to start using Notepad++ as I at least have a chance of keeping tabs and or spaces in line. I don't like it it might be different if you are introduced from the word go, but I can see People being taught with it being very picky and it making you layout code better but...

            M Offline
            M Offline
            M Johansen
            wrote on last edited by
            #39

            Use PyCharm as IDE for Python. But if you want curly braces then switch to Perl. :-D

            1 Reply Last reply
            0
            • G glennPattonWork3

              Hi All Winge mode on. I have spent more time than I like to admit fighting with Python today who on good earth though white spaces should be syntax! OK, I came from a C/Assembly background curly braces win not spaces... It's odd plain odd! :wtf: I am going to start using Notepad++ as I at least have a chance of keeping tabs and or spaces in line. I don't like it it might be different if you are introduced from the word go, but I can see People being taught with it being very picky and it making you layout code better but...

              T Offline
              T Offline
              TWMitchell
              wrote on last edited by
              #40

              Use IDLE for Python programs. Much better than Notepad+++ and it helps resolve the tab issue.

              1 Reply Last reply
              0
              • G glennPattonWork3

                Hi All Winge mode on. I have spent more time than I like to admit fighting with Python today who on good earth though white spaces should be syntax! OK, I came from a C/Assembly background curly braces win not spaces... It's odd plain odd! :wtf: I am going to start using Notepad++ as I at least have a chance of keeping tabs and or spaces in line. I don't like it it might be different if you are introduced from the word go, but I can see People being taught with it being very picky and it making you layout code better but...

                S Offline
                S Offline
                sandyson
                wrote on last edited by
                #41

                glennPattonWork wrote:

                I am going to start using Notepad++

                Visual Studio supports python since 2015

                In theory, theory agrees perfectly with practice. In practice, this is virtually never the case. "*the {VOiCE} says: The truth is analog - not digital." - jonathan HICKMAN

                P 1 Reply Last reply
                0
                • G glennPattonWork3

                  Hi All Winge mode on. I have spent more time than I like to admit fighting with Python today who on good earth though white spaces should be syntax! OK, I came from a C/Assembly background curly braces win not spaces... It's odd plain odd! :wtf: I am going to start using Notepad++ as I at least have a chance of keeping tabs and or spaces in line. I don't like it it might be different if you are introduced from the word go, but I can see People being taught with it being very picky and it making you layout code better but...

                  M Offline
                  M Offline
                  Mark Shultz Iowa
                  wrote on last edited by
                  #42

                  haha, as a BASIC guy, I feel the same way about case sensitivity being part of syntax. THIS and this should not be different things!

                  1 Reply Last reply
                  0
                  • L Lost User

                    No, never seen any of those, not had any problem with IDLE. And I don't quite see how it can reveal your passwords. Maybe you are doing something wrong.

                    M Offline
                    M Offline
                    Martijn Smitshoek
                    wrote on last edited by
                    #43

                    I am not going to discuss the details because this is the Lounge. I don't like IDLE because it changes the behavior of the language; and with a few tweaks, Notepad++ does everything I want.

                    L 1 Reply Last reply
                    0
                    • C CodeWraith

                      Already in 1978 I allowed myself the luxury of a hex keypad and 7 segment LED displays instead of toggle switches and eight simple LEDs.

                      I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                      K Offline
                      K Offline
                      Kirk 10389821
                      wrote on last edited by
                      #44

                      Reminds me of booting the old PDP/11-70 Toggle all switches down. Toggle up the 770 (Octal... Because Hexadecimal was just WAY OUT THERE) Hit load Toggle up the LUN (I believe was next) Hit run. You literally needed a manual to know how to boot from tape vs. disk. Making a bootable tape was akin to magic. (Most bootable tapes came from DEC).

                      1 Reply Last reply
                      0
                      • B BryanFazekas

                        OriginalGriff wrote:

                        Sort of: it was intended for punch cards, so in the early days specific columns had specific meanings.

                        I can't believe you mentioned this! You set my therapy back decades! :laugh: Funny story: my freshman year of college we submitted programs on punchcards. During the first class of the first course, we were warned to buy a wide marker. Type your deck, line the cards up neatly, then draw a diagonal stripe across the top of the deck. If the deck got out of order the stripe could be used to visually fix the order of the deck. Also use at least 2 rubber bands to hold the deck together, in case one broke. If we had to make significant revisions to the program, the top could get messy with multiple stripes, but the manual labor of producing a deck made us better, more careful programmers. That and having 12 hour turnaround times on program runs near the end of the semester -- we could not afford to be sloppy at all. [It also made us accurate typists -- miss a stroke, throw out that card] It's end of the semester and nearing midnight. I had dropped off my deck at noon and had walked across campus to pick up the deck + printout. My run had been successful so I got to sleep! ;P Guy is walking towards me, carrying a deck of at least 300 cards. He drops the deck, the single rubber band breaks, and cards spray every where. No sign of a stripe on the top of the deck. Poor guy looks like he's going to cry. He starts to get down on his knees to pick up the deck, straightens up, shakes his head, and walks away ...

                        G Offline
                        G Offline
                        Greg Topham
                        wrote on last edited by
                        #45

                        You have a twisted sense of humor.

                        B 1 Reply Last reply
                        0
                        • D Davyd McColl

                          No, Python is meant for people who want to get stuff done without having to debate brace layout and other trivialities. It's quicker to get simple stuff done than C/C++ (for one, you don't have to recompile). It can be extended with C/C++ if you think you have a performance need. If you think Python is for non-programmers, you may be disappointed to find that it's exactly for you.

                          P Offline
                          P Offline
                          peterkmx
                          wrote on last edited by
                          #46

                          I don't want to exaggerate, but we both probably agree that syntax is important, as it helps our brain to understand (quicker or slower :-) ) what we are doing ... So, Glenn is quite right in his remarks. But of course as you say there are qualities in Python, and I would also add that it is in top 5 in the TIOBE list "as we speak". Perhaps I will give Python another try ... :-), BR

                          D 1 Reply Last reply
                          0
                          • S sandyson

                            glennPattonWork wrote:

                            I am going to start using Notepad++

                            Visual Studio supports python since 2015

                            In theory, theory agrees perfectly with practice. In practice, this is virtually never the case. "*the {VOiCE} says: The truth is analog - not digital." - jonathan HICKMAN

                            P Offline
                            P Offline
                            peterkmx
                            wrote on last edited by
                            #47

                            Thanks ... I was just going to ask about this :). This makes things a lot easier. Perhaps I will give Python another try ...

                            S 1 Reply Last reply
                            0
                            • P peterkmx

                              I don't want to exaggerate, but we both probably agree that syntax is important, as it helps our brain to understand (quicker or slower :-) ) what we are doing ... So, Glenn is quite right in his remarks. But of course as you say there are qualities in Python, and I would also add that it is in top 5 in the TIOBE list "as we speak". Perhaps I will give Python another try ... :-), BR

                              D Offline
                              D Offline
                              Davyd McColl
                              wrote on last edited by
                              #48

                              I highly recommend it (:

                              1 Reply Last reply
                              0
                              • G glennPattonWork3

                                Hi All Winge mode on. I have spent more time than I like to admit fighting with Python today who on good earth though white spaces should be syntax! OK, I came from a C/Assembly background curly braces win not spaces... It's odd plain odd! :wtf: I am going to start using Notepad++ as I at least have a chance of keeping tabs and or spaces in line. I don't like it it might be different if you are introduced from the word go, but I can see People being taught with it being very picky and it making you layout code better but...

                                W Offline
                                W Offline
                                Wearwolf
                                wrote on last edited by
                                #49

                                Have you tried copying python code yet? They used tabs but you've got spaces and now there's red squiggles everywhere telling you really weird things about incomplete methods. It looks like it all lines up and you're not sure who had the tabs and who had the spaces so you're not sure what to change what to.

                                1 Reply Last reply
                                0
                                • C CodeWraith

                                  Already in 1978 I allowed myself the luxury of a hex keypad and 7 segment LED displays instead of toggle switches and eight simple LEDs.

                                  I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                                  S Offline
                                  S Offline
                                  sasadler
                                  wrote on last edited by
                                  #50

                                  Heh, I guess I was styling back then. I'd purchased a 16 line by 64 character display card for my S100 bus system (only card I hadn't put together myself). Connected it to an old TV. I actually can't remember how the keyboard connected to the system but the only I/O I had at the time was an RS232 interface board I'd wire wrapped so I guess that how it had to be. Even though I had a preemo display and keyboard I was still programming by the numbers.

                                  C J 2 Replies Last reply
                                  0
                                  • M Martijn Smitshoek

                                    I am not going to discuss the details because this is the Lounge. I don't like IDLE because it changes the behavior of the language; and with a few tweaks, Notepad++ does everything I want.

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #51

                                    Martijn Smitshoek wrote:

                                    I don't like IDLE because it changes the behavior of the language

                                    How exactly does it do that?

                                    M 1 Reply Last reply
                                    0
                                    • S sasadler

                                      Heh, I guess I was styling back then. I'd purchased a 16 line by 64 character display card for my S100 bus system (only card I hadn't put together myself). Connected it to an old TV. I actually can't remember how the keyboard connected to the system but the only I/O I had at the time was an RS232 interface board I'd wire wrapped so I guess that how it had to be. Even though I had a preemo display and keyboard I was still programming by the numbers.

                                      C Offline
                                      C Offline
                                      CodeWraith
                                      wrote on last edited by
                                      #52

                                      Very typical combination at that time. A character based graphics board + TV/Monitor + keyboard = serial terminal. I had one of those as well, but only the keyboard and the monitor have survived and still work.

                                      I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                                      1 Reply Last reply
                                      0
                                      • S sasadler

                                        Heh, I guess I was styling back then. I'd purchased a 16 line by 64 character display card for my S100 bus system (only card I hadn't put together myself). Connected it to an old TV. I actually can't remember how the keyboard connected to the system but the only I/O I had at the time was an RS232 interface board I'd wire wrapped so I guess that how it had to be. Even though I had a preemo display and keyboard I was still programming by the numbers.

                                        J Offline
                                        J Offline
                                        jrdickerson
                                        wrote on last edited by
                                        #53

                                        Wirewrap! We didn't have no stinkin wirewrap! We had a solder gun, 18 ga wire and we liked it.

                                        S 1 Reply Last reply
                                        0
                                        • M MarkTJohnson

                                          You don't remember COBOL? It had positional stuff too. Didn't it? That was one class a LONG time ago. Also remember WHY it's called Python. Some of their stuff was extremely silly.

                                          D Offline
                                          D Offline
                                          Daniel R Przybylski
                                          wrote on last edited by
                                          #54

                                          Isn't RPG like that too?

                                          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