Writing Awesome Command-Line Programs in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ส.ค. 2024

ความคิดเห็น • 9

  • @Diachron
    @Diachron 7 ปีที่แล้ว +20

    Good talk! thanks for the insights.
    Note to the producer/editor for the future..please switch to slide view when there's code on the slide. Watching a wide field view of the stage when there's code on the slide is not helpful..just FYI!

  • @kopuz.co.uk.
    @kopuz.co.uk. 8 ปีที่แล้ว +4

    good stuff!

  • @souravmandal7527
    @souravmandal7527 5 ปีที่แล้ว +1

    how to make these apps globally accesible?

    • @engkamyabi
      @engkamyabi 4 ปีที่แล้ว +1

      You can use pip (PyPA).

  • @oilpit7080
    @oilpit7080 7 ปีที่แล้ว

    "hello!" im very new to coding maybe like week in watching non stop youtube videos may someone please tell me what a command line is and what a command line does thankyou in advance

    • @sporech9374
      @sporech9374 7 ปีที่แล้ว +6

      The command line is a way of interacting with the operating systems. Programs use it all the time behind the scenes.
      All the GUI overlay on your operating system does is enter certain commands based on what you do, for example, when you click on the Chrome icon to launch Chrome, it's the equivalent of finding the chrome executable in your command line, and then explicitly executing the program.
      There's a good tutorial on how to navigate the command line here:
      www.computerhope.com/issues/chusedos.htm

    • @oilpit7080
      @oilpit7080 7 ปีที่แล้ว

      Sporech thanks im getting use to this appreciate your reply

    • @a8lg6p
      @a8lg6p 6 ปีที่แล้ว +1

      I'll assume you've figured it out by now since it's a year later, but the command line is the best. It's basically like texting with your computer, and then your computer does whatever you tell it to. :) It's a really worthwhile skill to learn. I got a book on React that was published around when you wrote this comment, it's already out of date... The code doesn't work as written because there have been breaking changes in Firebase and Webpack already. But people have been using cat, ls, mkdir etc when I was in diapers and probably still will after I'm dead. And you can even use it on Windows now... There's the Linux subsystem for Windows 10, also Cygwin, and PowerShell comes with built-in aliases for its commands to their Unix equivalents, so typing cd, ls, cp etc and even using normal forward slashes as a path separator like a sensible OS will do what you expect.
      Aliases are great. For anything I do more than once a week, I usually do it with about 2-5 characters followed by enter. To update everything on my system, for example, I just type in. (It does sudo apt update && sudo apt dist-upgrade.) To see all my Google tasks and calendar appointments and how many days are left until each happens, gt -o. (It's my own Python program.)