🐍Make your Python code MUCH CLEARER with this feature

āđāļŠāļĢāđŒ
āļāļąāļ‡
  • āđ€āļœāļĒāđāļžāļĢāđˆāđ€āļĄāļ·āđˆāļ­ 30 āļ.āļ„. 2024
  • Master Python's Structural Pattern Matching!
    In this video you'll learn to:
    - Simplify complex conditionals
    - Handle intricate data structures effortlessly
    - Write cleaner, more expressive code
    🌐 Visit my blog at: www.bitswired.com
    ðŸ“Đ Subscribe to the newsletter: newsletter.bitswired.com/
    🔗 Socials:
    LinkedIn: / jimi-vaubien
    Twitter: / bitswired
    Instagram: / bitswired
    TikTok: / bitswired
    00:00 A Powerful New Feature
    00:14 A Simple Demo
    01:52 Literal Patterns
    02:24 Capture Patterns
    03:26 Wildcard Patterns
    03:53 Sequence Patterns
    04:31 Mapping Patterns
    05:25 Class Patterns
    06:01 OR & AS Patterns
    06:58 Guard Patterns
    07:36 Realistic Comparison with If/Else
  • āļ§āļīāļ—āļĒāļēāļĻāļēāļŠāļ•āļĢāđŒāđāļĨāļ°āđ€āļ—āļ„āđ‚āļ™āđ‚āļĨāļĒāļĩ

āļ„āļ§āļēāļĄāļ„āļīāļ”āđ€āļŦāđ‡āļ™ • 6

  • @pauliusztin
    @pauliusztin 13 āļ§āļąāļ™āļ—āļĩāđˆāļœāđˆāļēāļ™āļĄāļē +1

    Looking forward to crazy recursive functions that use these features

    • @bitswired
      @bitswired  11 āļ§āļąāļ™āļ—āļĩāđˆāļœāđˆāļēāļ™āļĄāļē

      Ahah definitely
      I love Rust pattern matching for that
      Now we have something similar in Python ðŸ’ŠðŸ―

  • @mariegautier3765
    @mariegautier3765 20 āļ§āļąāļ™āļ—āļĩāđˆāļœāđˆāļēāļ™āļĄāļē +2

    My favorite engineer âĪ

    • @bitswired
      @bitswired  20 āļ§āļąāļ™āļ—āļĩāđˆāļœāđˆāļēāļ™āļĄāļē +1

      Le plus chanceux ;) ðŸĶðŸ†

  • @natevaub
    @natevaub 20 āļ§āļąāļ™āļ—āļĩāđˆāļœāđˆāļēāļ™āļĄāļē +2

    Gonna try this for sure keep it up bro !

    • @bitswired
      @bitswired  20 āļ§āļąāļ™āļ—āļĩāđˆāļœāđˆāļēāļ™āļĄāļē +1

      Thanks frero 💚
      You can try it in your Django project ;)