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 Offline
    G Offline
    glennPattonWork3
    wrote on last edited by
    #1

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

    C M L M S 20 Replies 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...

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

      Try machine code. The style guide/syntax rules contain only one word: hexadecimal.

      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.

      OriginalGriffO G 2 Replies 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
        MarkTJohnson
        wrote on last edited by
        #3

        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.

        OriginalGriffO G Kornfeld Eliyahu PeterK D 4 Replies Last reply
        0
        • C CodeWraith

          Try machine code. The style guide/syntax rules contain only one word: hexadecimal.

          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.

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          CodeWraith wrote:

          Try machine code. The style guide/syntax rules contain only one word: hexadecinmal binary.

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

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          C 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            CodeWraith wrote:

            Try machine code. The style guide/syntax rules contain only one word: hexadecinmal binary.

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

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

            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.

            OriginalGriffO K S 3 Replies 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...

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

              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.

              L G M 3 Replies 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.

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #7

                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!

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                R L B M 4 Replies 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.

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #8

                  Wimp! Real programmers coded with the front panel switches! :laugh: And uber-programmers coded with a compass and a small bar magnet...

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

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  S 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.

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

                    Richard MacCutchan wrote:

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

                    Will it space a Tesla Roadster?

                    Signature ready for installation. Please Reboot now.

                    H 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!

                      R Offline
                      R Offline
                      Rick York
                      wrote on last edited by
                      #10

                      I have a lot of horrible memories of large FORTRAN projects. Thankfully, none were in this century so the memories are a bit faded now but not gone entirely.

                      W OriginalGriffO 2 Replies Last reply
                      0
                      • L Lost User

                        Richard MacCutchan wrote:

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

                        Will it space a Tesla Roadster?

                        Signature ready for installation. Please Reboot now.

                        H Offline
                        H Offline
                        Herman T Instance
                        wrote on last edited by
                        #11

                        maybe readonly

                        In Word you can only store 2 bytes. That is why I use Writer.

                        1 Reply Last reply
                        0
                        • C CodeWraith

                          Try machine code. The style guide/syntax rules contain only one word: hexadecimal.

                          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.

                          G Offline
                          G Offline
                          glennPattonWork3
                          wrote on last edited by
                          #12

                          done that! no fancy spaces needed! :)

                          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.

                            G Offline
                            G Offline
                            glennPattonWork3
                            wrote on last edited by
                            #13

                            Yeah but a programming language that makes you say 'Neeh' ? :rolleyes:

                            1 Reply Last reply
                            0
                            • R Rick York

                              I have a lot of horrible memories of large FORTRAN projects. Thankfully, none were in this century so the memories are a bit faded now but not gone entirely.

                              W Offline
                              W Offline
                              W Balboos GHB
                              wrote on last edited by
                              #14

                              FORTRAN only had one real rule: statements start in column seven The early stuff, and a couple on the end, were for statement numbers and comment marks and things like that. But really, only one column location - so just line-em-up.

                              Ravings en masse^

                              "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                              "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                              OriginalGriffO 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.

                                G Offline
                                G Offline
                                glennPattonWork3
                                wrote on last edited by
                                #15

                                Tried that, is there a switch I missed I couldn't get it to indent properly...

                                L 1 Reply Last reply
                                0
                                • W W Balboos GHB

                                  FORTRAN only had one real rule: statements start in column seven The early stuff, and a couple on the end, were for statement numbers and comment marks and things like that. But really, only one column location - so just line-em-up.

                                  Ravings en masse^

                                  "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                  "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                  OriginalGriffO Offline
                                  OriginalGriffO Offline
                                  OriginalGriff
                                  wrote on last edited by
                                  #16

                                  Except for labels - and you needed them for every flow-of-control statement: DO, GOTO, IF, ...

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

                                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                  W 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
                                    Marc Clifton
                                    wrote on last edited by
                                    #17

                                    Life would be boring without a little evil. ;)

                                    Latest Article - Building a Prototype Web-Based Diagramming Tool with SVG and Javascript Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                                    1 Reply Last reply
                                    0
                                    • R Rick York

                                      I have a lot of horrible memories of large FORTRAN projects. Thankfully, none were in this century so the memories are a bit faded now but not gone entirely.

                                      OriginalGriffO Offline
                                      OriginalGriffO Offline
                                      OriginalGriff
                                      wrote on last edited by
                                      #18

                                      Likewise: but mine was even worse, because it used a preprocessor (it was the source for the preprocessor) to provide a "structured programming" approach to FORTRAN called ROOTS[^] - I worked for Rob for six months back in the day as part of my university industrial training. And I still use the flowcharting methods for software design ... :laugh:

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

                                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                      W R 2 Replies Last reply
                                      0
                                      • OriginalGriffO OriginalGriff

                                        Except for labels - and you needed them for every flow-of-control statement: DO, GOTO, IF, ...

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

                                        W Offline
                                        W Offline
                                        W Balboos GHB
                                        wrote on last edited by
                                        #19

                                        OriginalGriff wrote:

                                        Except for labels

                                        Yeah - that's what I meant by statement numbers, but that's quite the wrong term. Brings back memories - I could code FORTRAN faster than I could do Lotus 1-2-3 . So long ago. Dark Hair. 11/2" taller. Mrs. Wife looking hot enough to stop traffic . . . sigh.

                                        Ravings en masse^

                                        "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                        "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                        1 Reply Last reply
                                        0
                                        • OriginalGriffO OriginalGriff

                                          Likewise: but mine was even worse, because it used a preprocessor (it was the source for the preprocessor) to provide a "structured programming" approach to FORTRAN called ROOTS[^] - I worked for Rob for six months back in the day as part of my university industrial training. And I still use the flowcharting methods for software design ... :laugh:

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

                                          W Offline
                                          W Offline
                                          W Balboos GHB
                                          wrote on last edited by
                                          #20

                                          OriginalGriff wrote:

                                          And I still use the flowcharting methods for software design ...

                                          I remember always seeing that stuff. Somehow, it never seemed to catch on with me - just make it up as I go along*. *An invisible map in my head, I suppose.

                                          Ravings en masse^

                                          "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                          "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                          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