Writing Awesome Command-Line Programs in Python

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 9

  • @Diachron
    @Diachron 8 лет назад +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!

  • @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.)