FastHTML: Python's Answer to NextJS?

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

КОМЕНТАРІ • 44

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

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

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

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

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

    Very promising

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

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

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

      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.

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

    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 2 місяці тому +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

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

    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.

  • @DreamingDolphing
    @DreamingDolphing 2 місяці тому +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 2 місяці тому +3

      hopefully that changes

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

      @@SchizoJeet stop wasting your time just learn react

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

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

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

      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 Місяць тому

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

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

    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.

  • @fennecbesixdouze1794
    @fennecbesixdouze1794 28 днів тому

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

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

    Nahh! This is just wrong

  • @abcq1
    @abcq1 2 місяці тому +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_ 2 місяці тому +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 2 місяці тому

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

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

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

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

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

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

      What a dumb comment

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

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

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

      ???

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

      funniest comment from a noob ever seen 😂😂

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

      LOL 😂😂

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

      What the fuck are you saying gay

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

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

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

    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  2 місяці тому +1

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

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

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

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

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

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

      ​@@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 2 місяці тому

      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.