The Python Modern Toolkit 💻

Sdílet
Vložit

Komentáře • 194

  • @CodingWithLewis
    @CodingWithLewis  Před měsícem +49

    CZcams shorts don’t let you link :( but all are open source!

    • @joshuagenes
      @joshuagenes Před měsícem

      I thought most people just use Chatgpt

    • @ashlardarned2540
      @ashlardarned2540 Před měsícem +7

      You can have a CZcams short point to a long form video, and put the links in the description there!

  • @CielMC
    @CielMC Před měsícem +287

    1. Add structs
    2. Add linting (with Rust)
    3. Add static types (with Rust)
    4. Add good package manager (with Rust)
    5. Use docker
    Wait which language were we talking about

  • @collinb3371
    @collinb3371 Před 22 dny +46

    "Docker runs every time"
    *Laughs in Cuda.*

  • @yewo.m
    @yewo.m Před měsícem +182

    OMG. RIIR (Rewrite it in Rust, the movement for rewriting the whole world in Rust) is no longer just a meme

    • @RenderingUser
      @RenderingUser Před 29 dny +6

      It never was

    • @aaaaaa-hh8cq
      @aaaaaa-hh8cq Před 22 dny

      I've seen so many command line tools and some GUI apps get rewritten in rust. and they're awesome btw. very fast, but they don't have unsafe problems and bad syntax of c++

    • @PixelThorn
      @PixelThorn Před 14 dny +4

      Rust is definitely a meme

    • @RenderingUser
      @RenderingUser Před 14 dny +4

      @@PixelThorn how so?

    • @reiskoryphae
      @reiskoryphae Před dnem

      ​@RenderingUser don't know, but I am still struggling to decide between zig, rust and go 😅

  • @tommy.3377
    @tommy.3377 Před měsícem +66

    Wow the prohpecy was true...
    Rust really is taking the control everywhere =)

    • @Volt-Eye.
      @Volt-Eye. Před 26 dny +1

      Rust is the Crab of Prophecy !
      One who shall rule the word one who is omnipotent yet lurking deep in hearts of others.

  • @ashwalker1
    @ashwalker1 Před měsícem +150

    Learning python ❌️
    Learning Rust ✅️

    • @vaisakhkm783
      @vaisakhkm783 Před 29 dny +18

      social credits ✅
      Job❌

    • @MartinBarker
      @MartinBarker Před 17 dny

      Lots of companies are hiring rust developers, lots and lots of them.

    • @triplebb9809
      @triplebb9809 Před 13 dny +2

      Writing TypeScript ❌
      Turning your python into TypeScript ✅

    • @vaisakhkm783
      @vaisakhkm783 Před 13 dny

      @@triplebb9809 tbh, python now support type hinding, it's not that much strict, but good enough if compared to typescript

  • @TheFreeSpiritKID
    @TheFreeSpiritKID Před měsícem +15

    Getting Docker to run in the first place can be a pain in the ass

    • @vaisakhkm783
      @vaisakhkm783 Před měsícem +6

      Found a windows user...

    • @TheFreeSpiritKID
      @TheFreeSpiritKID Před měsícem

      @@vaisakhkm783 guilty. :D

    • @4nto418
      @4nto418 Před měsícem +2

      Really ? Even with WSL it's relatively painless.
      Getting a network to play nicely though ? Ha.

    • @EdwardBlair
      @EdwardBlair Před 29 dny +2

      Cheat and use a compose file

  • @happieplantnl
    @happieplantnl Před měsícem +25

    Rye is a tool to manage Python projects which uses UV and it's also made by Astral, it's really good :)

  • @vpn740
    @vpn740 Před měsícem +13

    can you do a full YT video with more details, please?

  • @fortran57
    @fortran57 Před měsícem +9

    Better switch to another static type language

  • @eugenkeller
    @eugenkeller Před 29 dny +9

    1. take crap
    2. add more crap
    3. success

    • @ExtantFrodo2
      @ExtantFrodo2 Před 19 dny

      That's basically how evolution work.Whatever crap reproduces has some chance to add more crap which might be slightly better crap than what's going around. Each generation eliminating the crappiest crap raises the pool of better crap until it's not quite so crappy.

    • @NervylHraje
      @NervylHraje Před 12 dny +3

      add more crab

    • @ForChiddlers
      @ForChiddlers Před 7 dny +1

      This is the best Thread and epic pun​@@NervylHraje

  • @SenaZephyr
    @SenaZephyr Před 29 dny +2

    Been using Ruff and UV since 5 months and its a life changer when it comes to get installing stuffs fast and cleaning up code without freezing your ide.

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      Noticed a few edgecases when moving from pip to uv, but generally an awesome transition.

  • @hanzofuma
    @hanzofuma Před měsícem +40

    Moral of the story. Use rust.

    • @vaisakhkm783
      @vaisakhkm783 Před měsícem +3

      You are in a phase... you will grow out of it

    • @KanashimiMusic
      @KanashimiMusic Před 28 dny +1

      @@vaisakhkm783 My man, did you watch the short? Literally half of this video is telling you to use tools built in Rust because the Python tools suck

    • @vaisakhkm783
      @vaisakhkm783 Před 23 dny +3

      @@KanashimiMusic no no, i mean, python definitly sucks for big projects.. (i suffered too much)
      but making something fast def out-ways benefits of beautifully engineered complete type safe project that took 6 months to complete... that is only going to be used by 20 internal team members.. (if something is actually useful, people ignore issue and crashes...)
      things like rust only worth after a certain number of usersbase is reached...

  • @maxborn7400
    @maxborn7400 Před měsícem +50

    me doing numerical computation on Python watching this list of Python toolkit I never heard of or ever used: 👁️👄👁️

  • @johannes7768
    @johannes7768 Před měsícem +32

    Why not using typed languages directly?

    • @BogdanTestsSoftware
      @BogdanTestsSoftware Před 28 dny +7

      Java is cumbersome, too verbose;
      C++ and more so C are a ticket for the ER; Haskell, could be fun, I haven't tried it yet;
      C# - maybe, but no one uses it in a cross platform manner, like Python!?
      Rust, I would love to start using it, haven't put in the time yet.
      Have I mentioned how uneasy I am with OpenJDK and .NET SDK licensing, like Oracle & Microsoft are always just about to pop a licensing stunt on all users!?

    • @KanashimiMusic
      @KanashimiMusic Před 28 dny +4

      @@BogdanTestsSoftware Java is fine imo. And if it's too verbose for you, use Kotlin. It's specifically made to fix the verbosity problem that Java has, among other major issues. And it does that job beautifully.
      Also, C# can easily be used in a cross-platform manner, I really don't know what your problem is.
      Regarding your JDK licensing issues, there are many different JDK releases that are not made by Oracle. So like, that issue is really non-existent.

    • @user-uf4lf2bp8t
      @user-uf4lf2bp8t Před 24 dny

      ​@@BogdanTestsSoftwarehaskell is really cool to write and has an amazing type system but its not super practical and going to it from a dynamically typed imperative language is like jumping off a cliff without a parachute

    • @tongpoo8985
      @tongpoo8985 Před 21 dnem +1

      @@BogdanTestsSoftware C# is good cross-platform these days.

    • @kiwikemist
      @kiwikemist Před 2 dny

      ​@@BogdanTestsSoftwarewhat about Go?

  • @captheobbyist6434
    @captheobbyist6434 Před měsícem +4

    i have never heard of any of these tools, even though i consider myself an active programmer on the internet (in the meaning of being up to date, and knowing about the new tech)

    • @notshry6516
      @notshry6516 Před měsícem

      I sould know about docker

    • @sophiophile
      @sophiophile Před 13 dny

      You've never heard of docker? The rest are understandable, but the modern web-at-scale is literally built in docker (via k8s).

    • @captheobbyist6434
      @captheobbyist6434 Před 12 dny

      @@sophiophile i heard of docker, but not about anything else

  • @_IamHarsh
    @_IamHarsh Před měsícem +3

    Helpful

  • @FunOrange42
    @FunOrange42 Před 14 dny +1

    python devs realizing too late that they need types in their language hahahaha

    • @jiddick
      @jiddick Před 8 dny

      Takes about the time of writing three classes and you get your first run time error.

  • @leokiller123able
    @leokiller123able Před měsícem +2

    I personally prefer pyright than mypy as type checker

  • @knut-olaihelgesen3608
    @knut-olaihelgesen3608 Před 22 dny +1

    You forgot rye - a complete project and package manager (uses uv for installing package too)

  • @winstonmhango3437
    @winstonmhango3437 Před 23 dny

    Thanks for the listing...love it

  • @adityag6022
    @adityag6022 Před měsícem +1

    Thank you sir

  • @BaldyMacbeard
    @BaldyMacbeard Před 17 dny +1

    So.... "How to turn Python into Rust, but slower" in 5 easy steps?

  • @littlepharaoh455
    @littlepharaoh455 Před měsícem +4

    me who use all of them except "mypy". I will use it in the future anyway.

    • @CodingWithLewis
      @CodingWithLewis  Před měsícem +1

      Glad you will use it!

    • @mecrayavcin
      @mecrayavcin Před 10 dny

      Have a question. I have pylance and in vscode typecheking is basic. If I use mypy should I turn off vscode type checking? I tried mypy type checker by Microsoft worked me without pip install mypy. But it does not show undefined local variables with red sign. ​And also I don't like black formatter, it messed up my codes. For example while a greater b, it uses () in this code and in () it goes a new line @@CodingWithLewis

  • @JackBauerDev
    @JackBauerDev Před měsícem +20

    Literally any strongly typed language has all this built in. Just let Python go.....

    • @spacey6960
      @spacey6960 Před měsícem +6

      Its about the libraries dude

    • @CodingWithLewis
      @CodingWithLewis  Před měsícem +1

      Hahaha legit… i just love Python 😂

    • @JackBauerDev
      @JackBauerDev Před měsícem +1

      The libraries that only last a few years. FastAPI will be dead soon and there will be another library... Mind boggling

    • @sherllymentalism4756
      @sherllymentalism4756 Před měsícem +2

      @@JackBauerDev that's just how all computer stuff works

    • @GiovanniDiSanto
      @GiovanniDiSanto Před měsícem +2

      @jackBauerDev this is what I was thinking when watching the video as well. Same has been done with Javascript and now Python... but yet Python lovers talk trash about strongly typed languages such as C# and Java.

  • @VONDERBURN
    @VONDERBURN Před 21 dnem

    "Hatch" is great too!

  • @ronakvadher9977
    @ronakvadher9977 Před 5 dny

    Wow

  • @Fezz016
    @Fezz016 Před 9 dny

    This dude is a low-key Rust marketer, who has been sent to discredit Python.

  • @thenikita2422
    @thenikita2422 Před měsícem +1

    Thanks man

  • @AliBigdeli
    @AliBigdeli Před měsícem +2

    Just use rust and enjoy it…

  • @marufbepary100
    @marufbepary100 Před 14 dny

    Poetry is also such as great tool

  • @RogueRonin2501
    @RogueRonin2501 Před 10 dny

    Well written installation or venv creation script can pull docker out of the chain.

  • @AaronQian
    @AaronQian Před 10 dny

    This is how you code python is 2025: rustup

  • @_hepl
    @_hepl Před měsícem

    Lewis is underrated

  • @Newb1eProgrammer
    @Newb1eProgrammer Před 9 dny

    Bython - greatest ever: python with braces

  • @einargs
    @einargs Před měsícem

    Mypy is great, and it's actually pretty easy to hack on, especially with the Annotation type object.

  • @morethanmello
    @morethanmello Před 10 dny

    Idc how much it kills me I'mma be a rust dev

  • @davea136
    @davea136 Před měsícem +6

    Sorry, but this is the sort of advice that guarantees your product will never ship and never work on any two developers desktop the same way. Yes, including using Docker. Stop jumping to the newest bestesst hypest thing all of the time people.

  • @mr.milkshakeman2393
    @mr.milkshakeman2393 Před 28 dny

    bro reminds me of george cooper rip

  • @Ish-YouTube
    @Ish-YouTube Před 29 dny

    I need video like this but for Typescript

  • @floofthefops
    @floofthefops Před měsícem +1

    Python hurts my eyes.

  • @orbatos
    @orbatos Před 19 dny

    Most LSP configs do this almost out of the box and they beat the pants off of intellisense.

  • @_jakefn_
    @_jakefn_ Před měsícem +3

    Hi Lewis!!! I actually beat bots to the comment section 😅

  • @ymellow.
    @ymellow. Před měsícem +1

    I’ve been learning python for the past month or so now and I have no idea what to do with any of this lmao. I think I’m cooked

    • @vishalparkar
      @vishalparkar Před 24 dny

      Never get diverted for the time. All those are supportive tools

    • @kirillizm3104
      @kirillizm3104 Před 22 dny

      This shorts its kinda fun bcz he only tells about backend usefull techs. If you write NN or do deep math computations - all of this is useless

  • @supthos
    @supthos Před 22 dny

    It's a whole lot of things to learn on top of having to learn python itself.......

  • @911Salvage
    @911Salvage Před měsícem

    Python users should be learning Rust at this point.

  • @melonenlord2723
    @melonenlord2723 Před 29 dny

    So at the end, all of python is replaced by rust 😂

  • @w3tbstuff
    @w3tbstuff Před 18 dny

    How to code Python in 2024: Just code. Nobody has to tell you how to code. Get some "Python for beginners" book at your local bookstore and go ahead. Maybe check conformation with PEP 8 before you make it public, but code as you want.

  • @re.liable
    @re.liable Před měsícem

    Is it worth using mypy even with VSCode? Asking bc IIRC the official VSCode extension for Python has its own tool that "conflicts" with mypy

  • @skyletwings5711
    @skyletwings5711 Před 2 dny

    "Who even are you guys, anyway?" Waaaiiit, you propose us to install some new software you don't even know the source of? Gee, I'm out. 😂

  • @aeon1880
    @aeon1880 Před měsícem

    At this point, why do we even use Python?

  • @mosomiliardaru
    @mosomiliardaru Před 14 dny

    At this point just straight-up use Rust

  • @icns01
    @icns01 Před 15 dny

    Wait! Why isnt anybody memtioning Mojo anymore? Isnt this still the natural evolution?🤔

  • @4_real_bruh
    @4_real_bruh Před 9 dny

    PyCharm + SonarLint and Rainbow Brackets Plugins + Docker-/Compose

  • @0ninetyseven97
    @0ninetyseven97 Před měsícem

    So python have like typescript in js?

  • @samuelbence37
    @samuelbence37 Před 2 dny

    what about Tkinter?

  • @PixelThorn
    @PixelThorn Před 14 dny

    Use black instead of Ruff and you're set
    Also this list seems a bit Rust biased

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      Ruff covers some of black's use-cases, but adding Black for formatting is useful still

  • @Awad626
    @Awad626 Před měsícem

    What about pycharm? Is it good compared to the ones you mentioned?

    • @ArmadilloFactory
      @ArmadilloFactory Před měsícem

      PyCharm is an IDE. More turnkey than VisualStudio and built quite well

  • @ArcRCG
    @ArcRCG Před 25 dny

    missed testcontainers

  • @benjaminbertincourt5259
    @benjaminbertincourt5259 Před měsícem

    1. Pydantic
    2. Black (WTH do we need speed here?)
    3. ... ok maybe mypy
    4. pdm (i got fed up with poetry)
    5. Docker
    I guess I'm only partially coding in 2024

    • @senzmaki4890
      @senzmaki4890 Před měsícem +1

      ruff works as both a linter and formatter otherwise you'd need flake8, black and other crap

  • @gabrielpauna62
    @gabrielpauna62 Před 14 dny

    So basically hack it to make it more like java, c++ or c# got it 👍

  • @test-uy4vc
    @test-uy4vc Před měsícem

    Hot take, Smojo is one of the best programming languages ever. What do you think? 🤔

  • @daysofend
    @daysofend Před 20 dny

    No love for poetry?

  • @bendaws
    @bendaws Před měsícem

    i don wanna, is too hard :(((
    - Sincerely,
    a C developer

  • @nekoz410
    @nekoz410 Před měsícem

    Bython
    Python with semicolon, and some C's things

  • @masterchief1520
    @masterchief1520 Před 22 dny

    Don't code python in 2024 😂 🙏

  • @Mateo-vz4fl
    @Mateo-vz4fl Před 23 dny

    Just... just use Rust at this point.

  • @regularnick
    @regularnick Před 24 dny +1

    people are crazy about every tool being written in rust like python wasn't written in C

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      I think people also seem to forget about things like brython - browser python, jython for python in a jre, micropython etc.The ecosystem is vast and touches on many other platforms and languages.

  • @user-dv2et9ij3z
    @user-dv2et9ij3z Před měsícem +7

    1) you choose normal language and learn it
    2) code in it

    • @vaisakhkm783
      @vaisakhkm783 Před měsícem +1

      As much as i love rust,c, go, can't beat the convince of quickly getting things done for an internal tool or a test server that only going to be used by just 20 people...

  • @fueledbycoffee583
    @fueledbycoffee583 Před měsícem

    i dont think pydantic is that needed. native python typing system with mypy i think is enough

  • @seasong7655
    @seasong7655 Před měsícem

    ruff is so useless. Pycharm already had that built in.

  • @sadsongs7731
    @sadsongs7731 Před měsícem

    I loved Python when it was a powerful scripting system. I legit wanted to replace my shell with ipython at some point.
    But it is obviously not ideal for large, performance sensitive applications.
    Then they started adding all this static typing nonsense and at this point why not pull the band aid off and code in rust? It's OBVIOUSLY what you want.

    • @CrYpt001
      @CrYpt001 Před 27 dny

      Huge apps like instagram run on pure python . The type hinting is a very good documentation tool . Why talk big when you kind of lack ?

    • @sadsongs7731
      @sadsongs7731 Před 27 dny

      @@CrYpt001 instead of dumb ad-hoc fallacies actually think.
      It doesn't matter that large apps are written in python if they have to pour millions into optimizing it because it is a slow language.
      And I used to LOVE Python. I loved it's 'batteries included' approach back when we didn't juggle with virtualenvs. Back when it was just a really powerful scripting language.
      Type hinting in Python combines the verbosity of Rust with the slowness of Python itself, minus the robust macro system.
      But I guess you are just looking for people to anonymously insult.

    • @CrYpt001
      @CrYpt001 Před 27 dny

      @@sadsongs7731 Someone saw tsoding's video . Python's slowness is fine many times including for giant projects . It's not a fallacy to give a counter example . Pouring millions into your project is good if it makes sense practically . Your entire opinions lie on some presumptions that simply you can't know . I do agree on python turning into js 2.0 with all the env, managers , frameworks and libraries . But I like the type hinting as a documentation tool . It is what it is , you can just do it lightly and it's delightful for scripting .

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      Typehinting can give you a boost in speed in normal situations. Also you have tools like mypyc which can use to improve it further.

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      Also, to add...
      When dealing with code, it is generally not the execution speed that matters but how maintainable it is. Being able to iterate quickly on code to get features to market is often better than having code running 3x faster (remember python can use C and Rust in libraries) but needing minutes to compile each time you make a change.

  • @lolechi
    @lolechi Před měsícem +4

    How incredible is it that a language can suck so bad that you need 4 different tools to replace the standard tool chain and fix all the bad designs with the language itself.

    • @droga_mleczna
      @droga_mleczna Před měsícem +1

      C, js, PHP, Python...
      At this point shitty toolchain is the standard.

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      @@droga_mleczna At least 3 of those have a stdlib... ;)

  • @ANoBaka
    @ANoBaka Před měsícem

    Yeah no.
    Don't try to make a language be what it's not supposed to be.
    Keep Python being the scripting language to automate tasks and run simple stuff with fast setup.
    There is absolutely no need to use all this.
    If you're trying to do some form of "proper" application software development with Python, you're just too lazy to learn a language that is optimized for it.
    Same goes for Rust btw, and C++ and C# for that matter, but with other parameters. Neither Rust nor C++ is the answer to everything unless you're a diehard fanboy for no good reason.

  • @bacsibela8966
    @bacsibela8966 Před měsícem +1

    tools in rust for people who cant code in python. written in rust, that is c for people who cannot code in c.
    seems legit

  • @bognarandras8398
    @bognarandras8398 Před měsícem +2

    Any resources on how to start with these

    • @CodingWithLewis
      @CodingWithLewis  Před měsícem +1

      Their documentation is great! For the most part, it’s usually just plug and play

    • @somefishhere
      @somefishhere Před měsícem

      @@CodingWithLewisyou’re a GOAT for saying ‘try it’ and not ‘buy a course’

  • @rogerdinhelm4671
    @rogerdinhelm4671 Před měsícem

    Types in Python! And I thought dynamic typing is why Python is better than Java

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      You can code away without types and this works well... but when it comes to testing your codebase with other code, having types is useful to stop errors before they become a problem. Also, your code will run faster as you are giving some hinting to the python interpreter about his stuff should work.

    • @rogerdinhelm4671
      @rogerdinhelm4671 Před 4 dny

      @@MikePreston-darkflib So, maybe then just use a statically-typed language? Like Java

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 3 dny

      @@rogerdinhelm4671 eew

  • @Netist_
    @Netist_ Před 4 dny

    Why are you even using python at this point? Just use a different language. Amateurish.

  • @The-python-guy
    @The-python-guy Před 28 dny

    I just use idle

  • @angryparrot
    @angryparrot Před měsícem

    I don't use any of these things. I'm fine.

  • @anatoli4ok148
    @anatoli4ok148 Před měsícem +2

    omg, Sheldon's dad explains cs

  • @ColinRichardson
    @ColinRichardson Před 27 dny

    Why would someone still use Python?

    • @MikePreston-darkflib
      @MikePreston-darkflib Před 4 dny

      Low barrier to entry and massive ecosystem that probably covers your use case.

  • @OvernightCountFraud2024
    @OvernightCountFraud2024 Před měsícem

    Translate to English. Have no idea😅

  • @DrPeeper
    @DrPeeper Před měsícem +1

    I just realized you hid the like amount. Instant dislike

  • @Person-who-exists
    @Person-who-exists Před 17 dny

    where is pypy?

  • @bigk9000
    @bigk9000 Před měsícem

    How does MyPy differ from PyLance?

    • @hanzofuma
      @hanzofuma Před měsícem

      Pylance is an lsp (pyright) + other integrations. Its a near full featured extension for python dev. A formatter is just a single part of pylance.

    • @bigk9000
      @bigk9000 Před měsícem

      @@hanzofuma Python isn't my first language, so I don't know what PyRight is. 😅

  • @cprn.
    @cprn. Před měsícem

    Yeah, exactly what you do when you know nothing about writing actual software. 🤘

  • @bernardcrnkovic3769
    @bernardcrnkovic3769 Před 28 dny

    you lost me at pydantic

  • @fahreziadha
    @fahreziadha Před měsícem

    or just use rust

  • @voidling
    @voidling Před měsícem

    Mypy is horrid compared to pyright

  • @palapapa0201
    @palapapa0201 Před měsícem +4

    How to use Python in 2024: don't

  • @paololucchesi2827
    @paololucchesi2827 Před měsícem

    Bros are moving from type-safe to dynamic because it's handy and then making dynamic type-safe again.
    They realize it's faster to spend 3x the time programming and 1/10x the time debugging

  • @rafapasternak8090
    @rafapasternak8090 Před měsícem +1

    so when will {} be added?

  • @KanashimiMusic
    @KanashimiMusic Před 28 dny

    "This is how you code in Python in 2024"
    I have the simple answer: don't

  • @reimusklinsman5876
    @reimusklinsman5876 Před měsícem

    Pedantic and many are a hard pass for me. If your data structures are too complex, you're doing something wrong. A key feature of python is dynamic typing. If you need your ide to tell you what type a variable is, you're doing it wrong

  • @ShamanSenra
    @ShamanSenra Před 25 dny

    Still using python in 2024?

  • @soyunbonus
    @soyunbonus Před měsícem +1

    Sooooo, use a better language?

  • @microcolonel
    @microcolonel Před 27 dny

    How to write good python: don't.

  • @ShorlanTanzo
    @ShorlanTanzo Před měsícem

    Wow... it's sort of like, all these features that are completely missing from vanilla Python... because it's a terrible language....

  • @docdordof5063
    @docdordof5063 Před 28 dny

    step 1: Pick another lanugage