Modern Python uses Type HINTS, Here's How

Поділитися
Вставка

КОМЕНТАРІ • 36

  • @JohnWatsonRooney
    @JohnWatsonRooney  2 роки тому +1

    The first 1,000 people to use the link or my code johnwatsonrooney will get a 1 month free trial of Skillshare: skl.sh/johnwatsonrooney04221

  • @Kyosika
    @Kyosika 2 роки тому +7

    Keep these coming John! I love using your techniques in my own personal and professional work!

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому +3

      Thanks Kyo appreciate it!

    • @Kyosika
      @Kyosika 2 роки тому +3

      @@JohnWatsonRooney No problem! Keep up the good work!

  • @He_ze
    @He_ze 2 роки тому +1

    I never knew what these were until I watched this video. Thanks!

  • @tatsamui
    @tatsamui 2 роки тому +1

    Good jobs as always.

  • @BtMeszinet
    @BtMeszinet 3 місяці тому

    You have very good guitars.

  • @Cheerfulnag
    @Cheerfulnag 2 роки тому +1

    Oh, neat. How did I forgot to watch this one... Definetely a like from me.

  • @renancatan
    @renancatan 2 роки тому +2

    John top content as always!
    Do you have some video teaching how to building web scrape with functions and classes? Similar to this one, but full project, I feel like I want to get better at web scraping with oriented object

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому +3

      Sure I’m working on a video at the moment which is about SOLID principles for OOP and will include some scraping thanks!

  • @wernerbrasil
    @wernerbrasil 2 роки тому +1

    Brilliant video!

  • @return_1101
    @return_1101 2 роки тому +1

    Great and usefully content.

  • @leleuf3
    @leleuf3 2 роки тому +1

    Excelente video! Thanks!!!

  • @eccentricOrange
    @eccentricOrange 2 роки тому +4

    3:34 Why did you not just use a lowercase `list` or `dict` (without the backtick of course, I'm just using that for Markdown-like formatting)? These typically work for me without importing anything from the typing module...

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому +2

      I believe you can do that but if you want to specify that it should be a list of ints or strs you need to use the typing module - sorry I didn’t make this clear in this example

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому +1

      Actually I just looked this up and you’re right it was deprecated in 3.9 thanks for pointing it out!

    • @eccentricOrange
      @eccentricOrange 2 роки тому +3

      @@JohnWatsonRooney ​ Oh, I thought I'll be the one learning something new today, lol. Anyway, I've also had a look at the changes you mentioned. For anyone else who stumbles on this comment and wants to read more straight from the source: look for "Python PEP 0585."

  • @miteshvaid2447
    @miteshvaid2447 2 роки тому +1

    Thanks for the video I really wanted to know what 'def (arg) ->' means.

  • @evalinor
    @evalinor 2 роки тому +1

    after i learn something, John release video about that =)

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому

      Haha great 👍 maybe I should get you to research my videos 😉

  • @horoshuhin
    @horoshuhin 2 роки тому +1

    John, check out Pydantic (by the same creator of FastAPI and SQL Model). you'll find it interesting. cheers

  • @Cheerfulnag
    @Cheerfulnag 2 роки тому +1

    Hi, John. Sorry, that it isn't about theme of the video, but I've been watching you for a long time and think you might know an answer for my question. How do people who knows web scraping search for jobs, not for contracts? I mean it isn't really a profession, just a set of skills. In what "profession" could people with these skills go?

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому

      Hey no worries it’s a good question. There are jobs out there specialising in data extraction, however I tend to advise people to use projects like these to get a good understanding of web technologies, Python and web applications so they can become backend developers, or web devs or make their own saas.

    • @Cheerfulnag
      @Cheerfulnag 2 роки тому +1

      @@JohnWatsonRooney I guess shouldve ask earlier, but what do you recommend for web development with python? From your experience.
      And maybe you know approx time to "learn" it.

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому

      @@Cheerfulnag Sure no worries. In my opinion Python is a great backend language. If you want to do front end stuff I'm afraid you'll want to know some JavaScript - as that's what the web is pretty much built on. Your main options are Django or Flask, with FastAPI too. Honestly, i like the batteries included approach that Django has, but it is personal preference!

  • @juan_cb3357
    @juan_cb3357 2 роки тому +2

    Volkswagen Polo 1.4?

  • @sampatankar1977
    @sampatankar1977 Рік тому +1

    Several months late but.... A VW Passat Estate.... a TDi ..Do I get a prize...?

  • @Tferdz
    @Tferdz 2 роки тому

    from __future__ import annotations
    FTW.

  • @booreda2820
    @booreda2820 2 роки тому +1

    Hi, can you make a shopify sales tracker??

    • @JohnWatsonRooney
      @JohnWatsonRooney  2 роки тому +1

      Yes but to get the sales data you have to have admin access to the store