FastHTML: Python's Answer to NextJS?

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 45

  • @jacksonsmith...
    @jacksonsmith... 3 місяці тому +3

    i love the way you present your videos. It keeps me focused with very little distractions 😊😂

  • @egzixmusic385
    @egzixmusic385 3 місяці тому +1

    Can you make a video about Nestjs and Django? Why multithread languages are important

  • @ib4112
    @ib4112 Місяць тому

    So far so Good, How can we handle client side custom validation or how can we add custom JS to code. I think tech stack is changing fast with so many technologies out there its confusing.
    What are your thoughts about Blazor vs Reach/NextJS

  • @Pierre-zh3ed
    @Pierre-zh3ed 3 місяці тому

    Can I do my frontend with React, or another library, and use FastHTML only as a backend responding to queries without any backend rendering?

    • @picklenickil
      @picklenickil 3 місяці тому +1

      You can do that in flask using templates. Just compile your react to static files and use them as static files for flask. I'm not sure if fastapi has templates

  • @raveena.sharma
    @raveena.sharma 3 місяці тому

    In the end, you need to know JS even for FastHTML since it uses HTMX, a JS library. Am I right?

    • @MacKoslowski
      @MacKoslowski 2 місяці тому

      Not really, by adding the library via a script tag it adds html attributes that create reactive behaviors using http requests/forms. That's not to say that there may be something else you need javascript for, but not necessarily for the features htmx adds.

  • @dadisuperman3472
    @dadisuperman3472 3 місяці тому +1

    Very promising

  • @casadogaspar
    @casadogaspar 2 місяці тому

    People crying in the comments is so sad.
    Most dont even work in project with millions user peer day and yet like to theorize about how things will not work.

  • @mertdr
    @mertdr 3 місяці тому +1

    Htmx always looked promising and I liked the idea in general. But this one is by far the ugliest html generating code I’ve ever seen. Especially comparing to beauty of JSX.

  • @DreamingDolphing
    @DreamingDolphing 3 місяці тому +9

    Python for backend development is ok, but trying to use it for frontend looks ridiculous. No one will ever use it for serious solutions. Maybe for some simple admin panels, pet projects or something like that, but a serious frontend requires a lot of javascript code.

    • @SchizoJeet
      @SchizoJeet 3 місяці тому +3

      hopefully that changes

    • @ivan.jeremic
      @ivan.jeremic 3 місяці тому +3

      @@SchizoJeet stop wasting your time just learn react

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

      @@ivan.jeremic can't be fucked, I'll stick to backend + htmx thanks

    • @my_name_is_ahad
      @my_name_is_ahad 3 місяці тому +4

      What do u mean serious application? No one building every app like Canva or Figma. Maximum web app is CRUD like. Stop being Javascript karen.

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

      Many popular AI apps are built with Gradio/Streamlit. There's a lot of technical debt in the doing things the traditional way

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

    Nahh! This is just wrong

  • @abcq1
    @abcq1 3 місяці тому +7

    Python is strong in data science, machine learning, and AI, but it's not the best choice for web development. Any other tool in any other language is generally better for web projects. Unless you only know Python and aren't willing to learn another language, there's no good reason to use it for web development.

    • @sowoul_
      @sowoul_ 3 місяці тому +13

      What?
      Ever heard of Django? Its one of the most widely used backend frameworks. Learn about the language if you are hate on it lil bro

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

      @@sowoul_ as a py bro, hes right.. just switched to next and tailwind and its so much better..

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

      ​@@sowoul_Django is for backend, not frontend like NextJS

    • @train_xc
      @train_xc 3 місяці тому +3

      WHAT??
      Django? Flask? In fact UA-cam runs a lot of Python

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

      What a dumb comment

  • @n-xs8up
    @n-xs8up 3 місяці тому +4

    Python lost its race to JS why they wasted time in Pushing Python 3

    • @Ronaldo-se3ff
      @Ronaldo-se3ff 3 місяці тому +2

      ???

    • @oboynitro
      @oboynitro 3 місяці тому +2

      funniest comment from a noob ever seen 😂😂

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

      LOL 😂😂

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

      What the fuck are you saying gay

    • @ivan.jeremic
      @ivan.jeremic 3 місяці тому

      @@oboynitro but python lost he is right. stop wasting time and learn react

  • @fennecbesixdouze1794
    @fennecbesixdouze1794 2 місяці тому

    Putting the word "fast" in the name of a python framework is pretty hilarious.

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

    I implemented some parts of logic in Python and revealed that it lacked multithreading ability. I was taken aback (shocked), honestly. How can someone consider this poor language as a tool for modern scalable and fast applications?

    • @KodapsAcademy
      @KodapsAcademy  3 місяці тому +1

      I'm not quite sure what point you are trying to make since Python supports both multithreading and multiprocessing ?

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

      @@KodapsAcademy Python does not support any type of multithreading AT ALL! Absolutely AT ALL! It just simulates it.

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

      Which is still more multi threading than Node or PHP offer, if we’re being precise about threads :)

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

      ​@@KodapsAcademy Multi-threading can not be more or less as you wrote. Multi-threading either exists or does not exist. In Python, multi-threading does not exist. If you do not understand/comprehend this you might need to develop your programming skills.

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

      I have used python in multi threaded environment.
      Connected my flask app Via socketioforflask , to frontend that was also in the same flask app. Just templates = compiled React. Also socketio can run in a multi threaded environment.