Automate the Boring Stuff with Python (Clean Up Your Computer)

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

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

  • @KingTMK
    @KingTMK Год назад +2

    Crazy that you only have 1.6k subscribers. The content you've put out so far is great!

    • @jakeeh
      @jakeeh  Год назад +1

      Thank you so much! I appreciate it :)

  • @greatwhiteswag
    @greatwhiteswag Год назад

    I've been wanting to do this for so long, thank you for your help!!

    • @jakeeh
      @jakeeh  Год назад +1

      Happy you enjoyed it! :)

  • @drakouzdrowiciel9237
    @drakouzdrowiciel9237 Год назад +2

    The way you've explained it makes it feel accessible and easy for anyone to enhance their computer experience. Great job!"

    • @jakeeh
      @jakeeh  Год назад

      Thank you! The goal is to make coding as accessible as possible - ideally encouraging people who always thought it would be too hard to think about trying it :)

  • @davidmurphy563
    @davidmurphy563 Год назад

    Good stuff - I've not used either library before.
    One thing though: if you're teaching python you really should follow PEP-8; variables `snake_case`, not `lowerCamel`. Class names `UpperCamel`, constants `UPPER`, etc. Only part of the python standard is enforced by the compiler, there's quite a lot that falls to the programmer. You wouldn't want someone writing `*params` instead of `*args` or `this` instead of `self`. At least I hope you wouldn't but the bytecode compiler won't notice the difference.

    • @jakeeh
      @jakeeh  Год назад +1

      Thanks for watching!
      That’s some fair feedback! Most of my programming experience is outside of Python, so snake_case looks terrible to me. I do agree that writing things in the standard way is probably a good idea though.
      Thanks for the comment :)

  • @marcocaspers3136
    @marcocaspers3136 Год назад +1

    It looks to work here, but I see a potential problem.
    The OnModify filesystem event will also trigger when you move the file.
    Python is very slow, so it may not be that big of a problem here. But if you hook filesystem events, you better suspend the hook while you are changing files inside the thread. Otherwise you'll spawn an infinite amount of them causing a crash of your system.

    • @jakeeh
      @jakeeh  Год назад

      Definitely a fair thing to point out! It does double-fire due to file renaming as well. While this solution does work, it’s also meant to illustrate the goal, but there are certainly improvements that can be made :)

  • @JeroenBerkers
    @JeroenBerkers Год назад +1

    I am starting to learn Python. This sound easy, but is it possible to post the code? I love to try this, but do not want to type everything.

    • @jakeeh
      @jakeeh  Год назад

      Oops! I just added a link to the code in the description - sorry about that.
      Congrats on starting your Python journey! Hope you enjoy the videos :)

  • @Ashenafii
    @Ashenafii Год назад

    Hey I’ve wondered what’s easier to learn first swift or python I’m trying to get a job as a junior software engineer

    • @jakeeh
      @jakeeh  Год назад

      I would absolutely say Python. Python is also much more in demand for more types of jobs than Swift.
      If it was between two languages I’d say it would be between Python and JavaScript.
      I made a video recently about the top 5 languages to learn/try in 2023, that might be a good place to start :)

  • @afrosoul4eva
    @afrosoul4eva Год назад

    Wow nice

  • @dork1161
    @dork1161 Год назад

    Python Ttkinter project not working when converted to .exe software opening properly but problem is before converting script in to exe buttons are properly working but when i converted it in to exe the gui is not responding means software is opening but kind of dummy software you'll feel like. also not showing any error help dont know how to solve also gui is made with tkinter

    • @jakeeh
      @jakeeh  Год назад

      Oh that does seem strange. It sounds like the GUI isn’t connected to the underlying program.
      My guess would be that your TKinter program is trying to be executed from a thread where it’s not defined or doesn’t have access to what you had defined before. But without the code it might be hard to debug

    • @dork1161
      @dork1161 Год назад

      @@jakeeh if gui is not connected then why its working before converted in to exe file

    • @jakeeh
      @jakeeh  Год назад

      I’m not sure. Are you just creating something with TKinter and converting to exe? If so I can try it out and see if I see any issues

    • @dork1161
      @dork1161 Год назад

      @@jakeeh yes jakehh exactly

    • @dork1161
      @dork1161 Год назад

      @@jakeeh we created the ui in tkinter and converted in to exe file but after conversion gui is not responding any more

  • @everybot-it
    @everybot-it Год назад

    i was going to make a comment but i think i shouldn't, this might give some skript kiddie ideas....

    • @jakeeh
      @jakeeh  Год назад +1

      Better to keep the malicious ideas hidden away ;)

  • @dork1161
    @dork1161 Год назад

    please help

    • @jakeeh
      @jakeeh  Год назад

      Hey, what seems to be the problem you’re having?

  • @drak4188
    @drak4188 Год назад

    O.o these 2 packages gives me some idea's thanks Jake

    • @jakeeh
      @jakeeh  Год назад

      I’d love to see what you come up with! :)

    • @drak4188
      @drak4188 Год назад

      @@jakeeh can't say on YT might get into trouble but I need to rename files and then using the file name work out where to move them on my network

    • @jakeeh
      @jakeeh  Год назад

      Ahh, I think I know what you’re talking about. Hope it helps :)

  • @hatnis
    @hatnis Год назад

    i dont like this! u need to stop the habit of importing stuff as and from, having such a big overhead will confuse people trying to read your code who are used to it.

    • @jakeeh
      @jakeeh  Год назад

      It just comes down to personal preference really. You can import the specific things you need or import the whole package and use the object’s values whenever you need to reference it.
      I do agree that it might be confusing for newer people though, so that’s some good feedback. Thanks :)