Build your next website in Swift

Ғылым және технология

Swift's result builders let us create domain-specific languages right inside our Swift code, and with a little thinking that means we can actually build whole websites in Swift - and even use similar syntax to SwiftUI!
Get Ignite here: github.com/twostraws/Ignite

Пікірлер: 118

  • @dj_256
    @dj_25620 күн бұрын

    My man did the thing I've been waiting for for years. Im getting emotional rn

  • @fpst
    @fpst21 күн бұрын

    First time I am interested in web development. Thanks Paul :)

  • @artemyvolkov
    @artemyvolkov20 күн бұрын

    Amazing! Simple and so clever! Thanks so much, Paul, learning every time!

  • @fruitduck2094
    @fruitduck209420 күн бұрын

    This is great Paul! I've recently started working on my personal website and was looking into SSGs. Imagine my surprise when I came across this video

  • @Stricken174
    @Stricken17416 күн бұрын

    Bravo! Couple of weeks ago i was making html + css code work in swift project, and doesn't even think that it can be done that way. Awesome, as always.

  • @swiftandtips
    @swiftandtips18 күн бұрын

    Awesome video Paul! I will try it out for my new blog, thank you! (And great explanation of Result builders 👏🏻)

  • @ioscaleb
    @ioscaleb21 күн бұрын

    Paul Hudson you are a mad genius. Great ideas, great video.

  • @codingraph
    @codingraph22 күн бұрын

    Watching this video on my way to Japan, so well done !

  • @tdrg_
    @tdrg_22 күн бұрын

    Never thought I’d see this day. Awesome!

  • @arjundureja
    @arjundureja21 күн бұрын

    Very cool! Could this be used with Vapor to dynamically generate HTML pages entirely in Swift?

  • @will.gallegos
    @will.gallegos22 күн бұрын

    Aye what!? Never thought that this would ever be a thing... Im going to start as soon as I can...

  • @TeddRod-jh3lb
    @TeddRod-jh3lb20 күн бұрын

    Awesome work with your Ignite project. I also see that it is actually meant to build static website, any change that it could be use for generating server-side website in future ?

  • @anmolrajpalofficial
    @anmolrajpalofficial21 күн бұрын

    So if I want to make some changes in my html code (eg, text), do i have to compile the XCode app every time to see the changes? In html files, we don't need to compile our Node.js or any web app!

  • @akbar_logs
    @akbar_logs22 күн бұрын

    Amazing work. Lot of thanks.

  • @iOSnick
    @iOSnick16 күн бұрын

    Paul, You're The Best! I'am gonna try it!

  • @mohammadnej7029
    @mohammadnej702921 күн бұрын

    Such a nice job bro! Job well done 😮🎉

  • @vsramakrishnarajukanumuru9586
    @vsramakrishnarajukanumuru958620 күн бұрын

    This is awesome idea. I was thinking about this while learning 100 days swift project on embabed html in swift.

  • @willchiu4418
    @willchiu441822 күн бұрын

    I usually don’t leave comment, but you get my attention. Well Done Man 👍🏻

  • @stevepottz111
    @stevepottz11121 күн бұрын

    This is cool. This is one step closer to freeing me from the JS ecosystem.

  • @RA-xx4mz

    @RA-xx4mz

    21 күн бұрын

    Htmx gang wuz here

  • @langahoohlo6695

    @langahoohlo6695

    19 күн бұрын

    Is it better to be an apple eco system compared to js

  • @stevepottz111

    @stevepottz111

    19 күн бұрын

    @@langahoohlo6695 Facts

  • @Red00022

    @Red00022

    14 күн бұрын

    @@langahoohlo6695believe it or not. It really is.

  • @AioriaPoderoso
    @AioriaPoderoso21 күн бұрын

    This is amazing I will defenitly switch from dart to swift

  • @danieldonaldson8634
    @danieldonaldson863422 күн бұрын

    And is this adaptable to Vapor, or similar Swift based web frameworks for dynamic HTML?

  • @techanthrop
    @techanthrop18 күн бұрын

    That reminds me John Sundell's "Publish" which can be used to generate HTML Websites with Swift Code... Very similar but more intuitive. :) Thanks Paul.

  • @karlostj4683
    @karlostj468320 күн бұрын

    "But what happens if I forget this closing ?" You mean, just like you forgot the closing ? Browsers apparently accept the fact that some tags don't have to be closed.

  • @nasir519
    @nasir51918 күн бұрын

    At the moment I needed a way to develop a static website for my brand, just curious how does ignite helps with SEO ?

  • @takumuguti329
    @takumuguti32914 күн бұрын

    Wow this is amazing 🙌🏾🔥🔥🔥

  • @LeBojo
    @LeBojo13 күн бұрын

    That's looks insane!

  • @goranbla
    @goranbla21 күн бұрын

    another one of those: "why didn't I think of this" ideas 🙈 😅 amazing work, man, forking now, have some additional ideas that might make sense

  • @goranbla

    @goranbla

    21 күн бұрын

    and of course, coming up with an idea doesn't mean much until you create a repo 💪

  • @atanasnachkov4030
    @atanasnachkov403022 күн бұрын

    Thank you!

  • @typicaltype2608
    @typicaltype260822 күн бұрын

    this is so sick man

  • @maciejtrybilo
    @maciejtrybilo12 күн бұрын

    Minor thing: AFAIK the '/' in "self closing" tags are ignored nowadays. Just using is _slightly_ more correct than . The forward slash is in fact misleading since e.g. will just start a new div and not self close.

  • @cbbcbb6803
    @cbbcbb680320 күн бұрын

    Could this be done in any programming language?

  • @Abdullah-zl9ub
    @Abdullah-zl9ub21 күн бұрын

    I never knew it was possible to build a website using swift. Is it done in Xcode? Does swiftUI work?

  • @vimalgorvadia
    @vimalgorvadia19 күн бұрын

    Hey You’re doing great job by creating lgnite, full filing purposes of swift as general purpose language keep it up. Can you please let me know how can we develop dynamic website using swift only? By using ignite with vapor or so.

  • @__Imran__
    @__Imran__21 күн бұрын

    Every day passed and I realized, I loved you more than yesterday. I want to be a coder like you. I am passionate like you but not that much skilled. Pray for me ❤. By the way, thanks for this amazing Library. 💌

  • @tejaspatelia8179

    @tejaspatelia8179

    19 күн бұрын

    Praying won't work. Practice will!

  • @__Imran__

    @__Imran__

    19 күн бұрын

    @@tejaspatelia8179 trying brother

  • @tazman7689
    @tazman768917 күн бұрын

    Can you publish to GitHub pages?

  • @AnandKumar-oc2nv
    @AnandKumar-oc2nv3 күн бұрын

    Amazing Video. Can you create video how to publish the site?

  • @EricMasiello
    @EricMasiello22 күн бұрын

    Is this meant to run on a server alongside a server framework (e.g., Express, etc) or is this meant for emitting static html via a build script?

  • @Bks715

    @Bks715

    22 күн бұрын

    Looks like it’s for static html only

  • @twostraws

    @twostraws

    21 күн бұрын

    Ignite is designed for static site generation, at least for now, but the result builder approach introduced in the rest of the video can be used anywhere you want.

  • @Bks715

    @Bks715

    21 күн бұрын

    @@twostraws it’s a super cool idea

  • @AlanRick26
    @AlanRick2618 күн бұрын

    I just don’t understand how/where to host the SwiftUI platform. I don’t think that my hosting service provides this.

  • @sabata657
    @sabata65721 күн бұрын

    great job

  • @mayankbhaisora2699
    @mayankbhaisora269922 күн бұрын

    More power to Swift

  • @user-vj4st2gd4i
    @user-vj4st2gd4i22 күн бұрын

    Incredible….

  • @ayopringle
    @ayopringle22 күн бұрын

    this is amazing

  • @user-dx3hm7sm6j
    @user-dx3hm7sm6j21 күн бұрын

    Awesome!🎉

  • @garanceadrosehn9691
    @garanceadrosehn969122 күн бұрын

    Impressive.

  • @cb73
    @cb736 күн бұрын

    Sincere question: who has this problem now days? I haven’t worried about editing proper html in what seems like decades. Every good editor now has good linting.

  • @Goku61001
    @Goku6100117 күн бұрын

    Blazor?

  • @datping7377
    @datping737722 күн бұрын

    It’s really nice but will it solves all the html related problems at the beginning?

  • @UTJK.

    @UTJK.

    22 күн бұрын

    I guess Bootstrap will solve them indirectly for you.

  • @datping7377

    @datping7377

    19 күн бұрын

    But I don’t understand why it would be beneficial to build a website using swift… is it just because we can and it’s cool or does it fixes problems other ways can’t?

  • @UTJK.

    @UTJK.

    19 күн бұрын

    @@datping7377 the idea, I guess, is to read the webdev documentation just once, implement the swift code that prints the html and then forget the web syntax forever, living in the swift bubble only. An added benefit would be to always generate the same well crafted code (but honestly... this could be equally achieved by preparing the code snippets in the editor...). In the Python world I've seen many implementations like this, but through big projects aimed at easily building complex frontends for specific purposes (data science usually) and it seemed to me a very reasonable idea. Here I have some doubts about the purpose behind the effort.

  • @timotejmatlak4625
    @timotejmatlak462521 күн бұрын

    What a great news 😎

  • @soheilpakgohar6630
    @soheilpakgohar663022 күн бұрын

    awesome

  • @Xcoder
    @Xcoder22 күн бұрын

    👍🏻

  • @vollmerama
    @vollmerama22 күн бұрын

    dont already have react and nextjs?

  • @infantfrontender6131

    @infantfrontender6131

    22 күн бұрын

    This solution is for those who want to use only Swift in the web. If you know JS, then you have a lot of frameworks for different needs

  • @LevitskiSRGE
    @LevitskiSRGE21 күн бұрын

    Build yout next Crysis in Php!

  • @huynhlong350
    @huynhlong35021 күн бұрын

    Backend next so i can do full stack iOS with swift only haha

  • @arjundureja

    @arjundureja

    21 күн бұрын

    You can already do this with Vapor

  • @huynhlong350

    @huynhlong350

    21 күн бұрын

    @@arjundureja wow didnt know that, thanks brother

  • @takasurazeem
    @takasurazeem21 күн бұрын

    I would love it if we could develop an Android app using Swift...

  • @Goktug-sx6fm
    @Goktug-sx6fm22 күн бұрын

    you lost me at html language lol

  • @Michael-Martell
    @Michael-Martell21 күн бұрын

    I’m just waiting for Swift Next.JS. I’m gonna be on that like a fat kid in a candy store…

  • @D_bugit
    @D_bugit21 күн бұрын

    Actually this already exist in kotlin

  • @gcelite36
    @gcelite3622 күн бұрын

    JavaScript and Swift seem pretty similar, so it’d be natural to expand Swift’s capabilities into the web realm

  • @tylerfrydenlund

    @tylerfrydenlund

    21 күн бұрын

    Im sorry what. Javascript and Swift couldnt be more different. One is a strongly, statically typed language, designed for a specific use case of building beautiful UI in a close ecosystem. And the other is a dumpster fire that the internet runs on. The only similarity between the two, is that they are programming languages

  • @gcelite36

    @gcelite36

    21 күн бұрын

    @@tylerfrydenlund do you know what the word “seem” means?

  • @arjundureja

    @arjundureja

    21 күн бұрын

    @@tylerfrydenlund Swift is not designed specifically for building UI. It's general purpose like JavaScript, Python, Java, etc. You might be confusing Swift with the SwiftUI framework

  • @pookiepats
    @pookiepats21 күн бұрын

    Yes! Yess!! Yessss!!!! Eat it Rust. Eat it Go. Eat it C. Eat it Ada. Eat it Nim. Eat it C trash trash. Eat it OCAML. Eat it Zig. Eat it Crystal. Eat it Elixir. Eat it Erlang. Eat it Clojure. Eat it Scala. Eat it C#. Eat it Objective-C. Odin, V-y’all are cool.

  • @pookiepats

    @pookiepats

    21 күн бұрын

    This is actually a list of my favorite languages

  • @neneodonkor
    @neneodonkor19 күн бұрын

    2:26 The Swift way of doing it looks awkward to me.

  • @user-sr4ih1zt5s
    @user-sr4ih1zt5s5 күн бұрын

    for somehow, it looks like react.

  • @REDCoder-xs6pw
    @REDCoder-xs6pw3 күн бұрын

    😵‍💫

  • @ShaqarudenGames
    @ShaqarudenGames21 күн бұрын

    Damn, it had to be bootstrap….

  • @UTJK.
    @UTJK.22 күн бұрын

    The implementation seems very clever, but I'm not sure if it's really viable in a big project. Probably it's best to invest your time in learning HTML properly... or hiring an expert.

  • @bobweiram6321

    @bobweiram6321

    22 күн бұрын

    It's hilarious because the trend now is statically generated websites instead of dynamic ones. Everything is generated once and served up and only regenerated when the content changes.

  • @phat80

    @phat80

    22 күн бұрын

    Expert in HTML? 🧐 What are you talking about? 😅 Everybody knows HTML if you’re connected somehow with the software development. HTML is just a subset of XML which is widely used almost in every stack.

  • @bobweiram6321

    @bobweiram6321

    21 күн бұрын

    @@phat80 XML is significantly simpler to work. It has stringent formatting rules which is validated against standards, but they're only a few of them. Every XML parser interprets XML in the exact same way. It's also just pure data without any presentation. XML can be mastered in less than a weekend. HTML formatting rules, on the other hand, are loosely interpreted and left to each browser and platform to interpret and render. The same HTML can differ drastically in presentation depending on the thousands of permutations based on a complex matrix of platforms, screen formats and browsers. If that's not complex enough, there's also CSS which adds another level of complex layout and rendering rules. Its grammar and structure is entirely different. To become an HTML expert requires a rigorous understanding of HTML and CSS and their idiosyncrasies, so much so that it's as complex, if not more, than any major programming language.

  • @phat80

    @phat80

    21 күн бұрын

    @@bobweiram6321 So you can learn html/css in a week. There’s nothing simpler than that in the development world. And you can take another week to learn basic Javascript to understand what’s going on.

  • @denisblack9897

    @denisblack9897

    21 күн бұрын

    @@phat80i avoided html/cs/js altogether during my 8 years of iOS development. I can’t stand these symbols they are ugly and hurt my soul😅

  • @Rychillie
    @Rychillie21 күн бұрын

    As a web developer moving to iOS and I say, Bootstrap is outdated and cumbersome! I would go with Tailwind, but all these tools are really cool!

  • @smithshaw1151
    @smithshaw115112 күн бұрын

    Bad idea. HTML is simple enough to learn

  • @tis5yoab
    @tis5yoab20 күн бұрын

    It reminds me of a Java JSP 🙂

  • @herosova
    @herosova22 күн бұрын

    ultimately it will end up becoming html then why bother with this so much layers

  • @twostraws

    @twostraws

    21 күн бұрын

    This is literally answered in the video, and more than once 🤷‍♂️

  • @herosova

    @herosova

    21 күн бұрын

    @@twostraws i never thought you would reply

  • @ioscaleb

    @ioscaleb

    21 күн бұрын

    Code will ultimately become machine code anyway, why bother with a high level language?

  • @rickdg
    @rickdg22 күн бұрын

    And then stick it in a webview of your mobile app 😂

  • @arturo7392
    @arturo739221 күн бұрын

    It feels to me that it brings more new stuff to learn without guarantee of scalability for a big project. I’m not learning something new for the sake of wasting time. I would just stick to typescript and react for now. It needs more work

  • @cubanlincoln1767
    @cubanlincoln176721 күн бұрын

    Just another try of replace classic html that will fail soon

  • @ali-dp7wr
    @ali-dp7wr21 күн бұрын

    I don't think it's going to be successful.

  • @smithshaw1151
    @smithshaw115112 күн бұрын

    Let’s get rid of build steps people. Just learn HTML

  • @farrenzoroqueez
    @farrenzoroqueez20 күн бұрын

    As a human that abhorres HTML, I have to say, this is truly an abomination. You must repent for such sacrilegious actions.

Келесі