Windows vs. Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • diffuser78@gmail.com

    #16
    Re: Windows vs. Linux

    Linux can let you do more in Python and this comes from my personal
    exprience. Ubuntu Dapper should let you install drivers easily for
    wireless...a little bit tweaking might be required but its worth the
    effort. Python and Ubuntu rock...go fot it.

    noahmd@gmail.co m wrote:
    Okay, once-upon-a-time I tried to start programming by learning C. At
    the time I was younger and didn't really understand all that C had to
    offer. I eventually moved over to Microsoft's Visual Basic. It was
    nice to be able to design a visual application with no effort (too bad
    I didn't really learn the ins and outs of programming)
    >
    Long story short, I want to get back into programming, and Python looks
    like a good choice for me to start with, and maybe become advanced
    with. Right now I run Windows as my main operating system. On my old
    laptop I ran Ubuntu, and liked it very much; however, my new laptop has
    a Broadcom wireless card, and it's not very Linux friendly. Is Windows
    an okay enviornment in which to program under Python, or do you
    recommend that I run a dual-boot of Linux or maybe a VMWare install to
    program under Python?

    Comment

    • diffuser78@gmail.com

      #17
      Re: Windows vs. Linux

      I'd never recommend dual-boot for anything!
      Hardware is cheap, time and trouble is expensive.
      Dual-booting if so easy and helpful, I have always found it to be
      extremely useful.

      You might have a bad experience but I have my laptop and desktop both
      running dual boot successfully for 4 and a half years now.

      Comment

      • Andy Dingley

        #18
        Re: Windows vs. Linux


        diffuser78@gmai l.com wrote:
        Python and Ubuntu rock...go fot it.
        That's nice. I've just burned myself a new Ubuntu f*ck-a-duck release
        CD intending to rebuild a flakey old Deadrat box with it. Once it's
        done I'd like to be running Python with some USB to Dallas one-wire
        hardware on it, re-plugged from an old Windows box. Nice to know I have
        a hope of getting somewhere.

        Comment

        • OMouse

          #19
          Re: Windows vs. Linux

          That is important, but apparently Windows (at least XP) will work fine
          with the forward slash that Linux uses. I just tried it in the command
          prompt and it works. I'm sure other platforms use the forward slash
          separator as well. You've just covered three major platforms (Mac OS X,
          WinXP and Linux) without using os.path.join.

          And finally, from the Wikipedia entry on Slash (punctuation):
          ``Note however that the "forward slash" will be translated into a
          backslash by most versions of DOS and Windows, in contexts where there
          is little ambiguity with command-line options.''

          -Rudolf

          James Stroud wrote:
          jean-michel bain-cornu wrote:
          Take care to use os.sep
          >
          This is an important point. You should read up on the os.path module to
          make sure you are doing things in a platform independent way, for
          example, its better to use:
          >
          os.path.join('m y', 'favorite', 'dir')
          >
          than
          >
          "\\".join(['my', 'favorite', 'dir'])
          >
          because the latter will bonk on linux. The former is platform
          independent. This hits at the same issue as using os.sep:
          >
          os.sep.join(['my', 'favorite', 'dir'])
          >
          But os.path has takes care of many of these issues in one module.
          >
          James
          >
          --
          James Stroud
          UCLA-DOE Institute for Genomics and Proteomics
          Box 951570
          Los Angeles, CA 90095
          >
          http://www.jamesstroud.com/

          Comment

          • Gerhard Fiedler

            #20
            Re: Windows vs. Linux

            On 2006-08-01 12:31:01, Sybren Stuvel wrote:
            Ehm... replace that with "the latter with bonk on every OS except
            Microsoft Windows". Windows is the weird one in OS-land, because they
            are the only one that use the most widely used escape-character (the
            backslash) as path separator.
            Is that really true? From what I know, it's more like this:

            - Unix-type systems: '/'
            - Windows-type systems: '\'
            - Mac OS: ':'
            - OpenVMS: '.'
            - ...

            Maybe someone else can fill in some of the missing OSes. It doesn't seem to
            look like Windows is the odd man out; it rather seems that every type of OS
            uses its own separator. (URLs probably use the slash because the internet
            protocols have been developed largely on Unix-type systems for use with
            Unix-type systems?)

            Gerhard

            Comment

            • Gerhard Fiedler

              #21
              Re: Windows vs. Linux

              On 2006-08-01 16:29:54, Sybren Stuvel wrote:
              >- Mac OS: ':'
              >
              It's a slash too, at least on non-obsolete Mac OS versions.
              I wrote "Mac OS". That's not "Mac OSX". Ask Apple... :) And Mac OSX is
              quite arguably a Unix-type system.
              >Maybe someone else can fill in some of the missing OSes. It doesn't
              >seem to look like Windows is the odd man out; it rather seems that
              >every type of OS uses its own separator.
              >
              You can put a whole lot of OSses under "Unix-type", but actually it's
              more like this:
              Well, you could list a number of DOS versions, too. Doesn't help the fact
              that the slash is mainly on Unix-type systems, and that there are or were
              quite a number of other systems out there that use other separator
              characters.
              >(URLs probably use the slash because the internet protocols have been
              >developed largely on Unix-type systems for use with Unix-type systems?)
              >
              It wasn't designed specifically for Unix-type systems, but for universal
              access.
              Right... the URI/URL syntax was formalized in the early 90ies, when
              Unix-type machines were dominant on the internet. There are also quite a
              number of concerns that governed the choice of separators and escape
              characters for URLs that the IBM, Microsoft and DEC/VMS people couldn't
              really foresee in the 70ies (for example, when DEC and IBM started to use
              the slash as command line switch character -- which later precluded its use
              as path separator).
              My point also was that a lot of programming languages use the backslash
              as escape character. This has been true at least since the sixties. I
              think it's a bad design choice from the Microsoft team to pick this
              escape character as a path separator.
              Maybe... have you been involved in the decision? Or do you know what the
              reasons were? Do you know whether it was even Microsoft's choice?
              (Remember, they wrote DOS for IBM. And there was nobody who had foreseen
              the PC explosion.)

              Did you know that most DOS versions accept the / as path separator? That
              DOS was written on Xenix (Posix) systems (using the slash as path
              separator)? That Microsoft was for a long time pretty much a pure Xenix
              shop?
              The problem with the world is stupidity.
              Right... And most people are /really/ smart 30 years after the fact; "I
              would have known it better" is about as smart as it gets :)

              Gerhard

              Comment

              • Gerhard Fiedler

                #22
                Re: Windows vs. Linux

                On 2006-08-02 04:42:31, Sybren Stuvel wrote:
                I never said "I would have known it better". I just said that IMO it
                was a bad design choice ;-)
                Well, and I question your qualification to judge that.

                In order to say that, you would have to know the reasoning, would have to
                put it in the historical context and would have to be able to explain why
                that reasoning was wrong at the time. A design choice is not necessarily a
                bad choice just because it turns out that some 30 years later there is a
                similar common product whose creators made a different choice, and now
                programmers have to cater to both. With the same reasoning one could say
                that the Unix creators should have used the VMS (or any other existing)
                form.

                Gerhard

                Comment

                • John Salerno

                  #23
                  Re: Windows vs. Linux

                  Gerhard Fiedler wrote:
                  A design choice is not necessarily a
                  bad choice just because it turns out that some 30 years later there is a
                  similar common product whose creators made a different choice, and now
                  programmers have to cater to both.
                  To be fair, this isn't the reason he gave for it being a bad design
                  choice. His reason was that MS chose to use the escape character as
                  their path separator.

                  But of course I still agree with you that in either case it's not a
                  judgment you can fairly make 30 years after the fact.

                  Comment

                  • Richard Brodie

                    #24
                    Re: Windows vs. Linux


                    "Gerhard Fiedler" <gelists@gmail. comwrote in message
                    news:mailman.88 45.1154526941.2 7775.python-list@python.org ...
                    >With the same reasoning one could say that the Unix creators should have
                    used the VMS (or any other existing) form.
                    Only if they used Guido's time machine.


                    Comment

                    • bryanjugglercryptographer@yahoo.com

                      #25
                      Re: Windows vs. Linux


                      Sybren Stuvel wrote:
                      John Salerno enlightened us with:
                      But of course I still agree with you that in either case it's not a
                      judgment you can fairly make 30 years after the fact.
                      >
                      I don't see Microsoft changing it the next 30 years either... Apple
                      moved from \r to \n as EOL character. I'm sure the folks at mickeysoft
                      are smart enough to change from \ to /.
                      They dis-allow '/' in filenames, and many Microsoft products now
                      respect
                      '/' as an alternate to '\'.
                      >From a WinXP command prompt:
                      C:\>
                      C:\>cd /windows/system32

                      C:\WINDOWS\syst em32>


                      For a "Windows vs. Linux" thread, this one has been remarkably
                      rant-free.

                      --
                      --Bryan

                      Comment

                      • Duncan Booth

                        #26
                        Re: Windows vs. Linux

                        bryanjugglercry ptographer@yaho o.com wrote:
                        >>From a WinXP command prompt:
                        >
                        C:\>
                        C:\>cd /windows/system32
                        >
                        C:\WINDOWS\syst em32>
                        >
                        >
                        Not from my Windows XP command prompt it doesn't. Do you have anything
                        strange installed on your system?

                        Comment

                        • Alex Martelli

                          #27
                          Re: Windows vs. Linux

                          Gerhard Fiedler <gelists@gmail. comwrote:
                          ...

                          a few fine points of computing history...:
                          (URLs probably use the slash because the internet protocols have been
                          developed largely on Unix-type systems for use with Unix-type systems?)
                          It wasn't designed specifically for Unix-type systems, but for universal
                          access.
                          >
                          Right... the URI/URL syntax was formalized in the early 90ies, when
                          The internet *protocols* were typically developed on non-Unix systems --
                          that's why each line in text-based protocols must be terminated by
                          \r+\n, not just \n. The WWW, as you mention, came later (and I believe
                          it was born on a NEXT cube, i.e., a unix-variant).
                          My point also was that a lot of programming languages use the backslash
                          as escape character. This has been true at least since the sixties. I
                          think it's a bad design choice from the Microsoft team to pick this
                          escape character as a path separator.
                          >
                          Maybe... have you been involved in the decision? Or do you know what the
                          reasons were? Do you know whether it was even Microsoft's choice?
                          (Remember, they wrote DOS for IBM. And there was nobody who had foreseen
                          the PC explosion.)
                          Microsoft did *NOT* write DOS -- they purchased it from a small Seattle
                          company, which called it QDOS (Quick and Dirty OS) and had hacked it up
                          "in desperation" because CP/M did not run on intel 8086 CPUs, so the
                          small company's main business, selling 8086 boards, languished. QDOS
                          was as compatible with CP/M as said small company could make it (rumor
                          has it that big parts were disassembled from CP/M and reassembled to run
                          on 8086 rather than 8080). Part of the CP/M compatibility did include
                          the use of / as flag-indicator (the use of \r+\n as line ending also
                          comes from CP/M -- in turn, CP/M had aped these traits from some DEC
                          minicomputer operating systems).

                          When MS did write an OS -- DOS 2.0, which introduced a directory tree --
                          they did put in the OS an undocumented switch to make - the
                          flag-indicator and / the path separator, rather than / and \
                          respectively. However it was never documented and it got removed in
                          later versions, perhaps because applications coded to the /-and-\
                          convention could break if the switch was thrown.
                          Did you know that most DOS versions accept the / as path separator? That
                          DOS was written on Xenix (Posix) systems (using the slash as path
                          separator)? That Microsoft was for a long time pretty much a pure Xenix
                          shop?
                          Internally yes (indeed, they developed Xenix, before later selling it to
                          SCO), but that does not mean that "DOS was written on Xenix" because DOS
                          was *not* written in Microsoft, as above mentioned.


                          Alex

                          Comment

                          • Alex Martelli

                            #28
                            Re: Windows vs. Linux

                            jean-michel bain-cornu <pythonnews@nos pam.jmbc.frwrot e:
                            Andy Dingley a écrit :
                            I'd never recommend dual-boot for anything!
                            Don't agree man, it's good for testing...
                            It's bothersome for testing: virtualization is much handier in most
                            cases.


                            Alex

                            Comment

                            • John Salerno

                              #29
                              Re: Windows vs. Linux

                              Sybren Stuvel wrote:
                              Apple
                              moved from \r to \n as EOL character.
                              Interesting. I didn't know that. Although it does seem to make sense to
                              use both \r\n as EOL (if you still consider one as a carriage return and
                              one as a newline, a la old school typewriters), \n is much nicer and
                              cleaner looking. :)

                              Comment

                              • Gerhard Fiedler

                                #30
                                Re: Windows vs. Linux

                                On 2006-08-02 11:29:18, Sybren Stuvel wrote:
                                John Salerno enlightened us with:
                                >But of course I still agree with you that in either case it's not a
                                >judgment you can fairly make 30 years after the fact.
                                >
                                I don't see Microsoft changing it the next 30 years either... Apple
                                moved from \r to \n as EOL character.
                                AFAIK there are few programs from Apple's \r era that still work in the \n
                                era systems, or am I mistaken with this? :) I also doubt that the line
                                terminator had any influence in Apple's decision to change their OS. It was
                                a mere (unintended) side effect, not an objective. If they had chosen a
                                line terminator, they better had chosen \r\n (the internet email standard).

                                Unix-type systems still don't use natively the line terminator that is used
                                in internet email. Windows-type systems do. So when you want to send a text
                                file stored on a Unix-type system as email, you have to translate the line
                                terminations (or vice versa). Just as for MS there are good reasons not to
                                "fix" the backslash now (what would be a good reason to change it?), there
                                are good reasons for Unix-type system writers to stick with their
                                traditional \n.


                                (From a different message)
                                I'm talking about the fact that they have chosen a common escape
                                character as path separator.
                                What's so specifically bad about a "common escape character"? Any character
                                that has a special meaning in something can be inconvenient when it has to
                                be used normally. A backslash in a C string, a dot in a regex, you probably
                                can find examples for any non-alphanumeric ASCII character.

                                The only "problem" with the backslash is that you need to escape it in C
                                strings; I never had any trouble with that. BTW, are you really sure that
                                the backslash was a "common escape character" in the 70ies? How common was
                                it back then? Even today, it seems to be mostly a C idiom. (In that
                                respect, Python is leaning on C, even ever so slightly.)


                                Get over it... there are any number of definitions out there, some better
                                chosen than others, and most had a good set of reasons at the time they
                                were chosen. Mostly by chance, some fit better into the picture some
                                decades later, and some fit less nicely. Without really getting down to it,
                                there's no way to tell whether any of the standards was well-chosen. Even
                                the ones that look now as if they were... could be mere luck.

                                You're of course entitled to your opinion. I never wanted to doubt that.
                                But an unfounded opinion usually tells more about the subject than the
                                object... :)

                                Gerhard

                                Comment

                                Working...