Тёмный

Build your next website in Swift 

Paul Hudson
Подписаться 108 тыс.
Просмотров 29 тыс.
50% 1

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

Наука

Опубликовано:

 

17 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 113   
@swiftandtips
@swiftandtips 11 дней назад
Awesome video Paul! I will try it out for my new blog, thank you! (And great explanation of Result builders 👏🏻)
@fpst
@fpst 14 дней назад
First time I am interested in web development. Thanks Paul :)
@artemyvolkov
@artemyvolkov 12 дней назад
Amazing! Simple and so clever! Thanks so much, Paul, learning every time!
@ioscaleb
@ioscaleb 14 дней назад
Paul Hudson you are a mad genius. Great ideas, great video.
@dj_256
@dj_256 13 дней назад
My man did the thing I've been waiting for for years. Im getting emotional rn
@codingraph
@codingraph 14 дней назад
Watching this video on my way to Japan, so well done !
@fruitduck2094
@fruitduck2094 13 дней назад
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
@Stricken174 9 дней назад
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.
@will.gallegos
@will.gallegos 14 дней назад
Aye what!? Never thought that this would ever be a thing... Im going to start as soon as I can...
@arjundureja
@arjundureja 14 дней назад
Very cool! Could this be used with Vapor to dynamically generate HTML pages entirely in Swift?
@tdrg_
@tdrg_ 14 дней назад
Never thought I’d see this day. Awesome!
@iOSnick
@iOSnick 9 дней назад
Paul, You're The Best! I'am gonna try it!
@maciejtrybilo
@maciejtrybilo 5 дней назад
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.
@anmolrajpalofficial
@anmolrajpalofficial 14 дней назад
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!
@stevepottz111
@stevepottz111 14 дней назад
This is cool. This is one step closer to freeing me from the JS ecosystem.
@RA-xx4mz
@RA-xx4mz 14 дней назад
Htmx gang wuz here
@langahoohlo6695
@langahoohlo6695 12 дней назад
Is it better to be an apple eco system compared to js
@stevepottz111
@stevepottz111 12 дней назад
@@langahoohlo6695 Facts
@Red00022
@Red00022 7 дней назад
@@langahoohlo6695believe it or not. It really is.
@akbar_logs
@akbar_logs 14 дней назад
Amazing work. Lot of thanks.
@TeddRod-jh3lb
@TeddRod-jh3lb 13 дней назад
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 ?
@mohammadnej7029
@mohammadnej7029 14 дней назад
Such a nice job bro! Job well done 😮🎉
@vsramakrishnarajukanumuru9586
@vsramakrishnarajukanumuru9586 13 дней назад
This is awesome idea. I was thinking about this while learning 100 days swift project on embabed html in swift.
@techanthrop
@techanthrop 10 дней назад
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.
@willchiu4418
@willchiu4418 14 дней назад
I usually don’t leave comment, but you get my attention. Well Done Man 👍🏻
@danieldonaldson8634
@danieldonaldson8634 14 дней назад
And is this adaptable to Vapor, or similar Swift based web frameworks for dynamic HTML?
@AioriaPoderoso
@AioriaPoderoso 14 дней назад
This is amazing I will defenitly switch from dart to swift
@takumuguti329
@takumuguti329 6 дней назад
Wow this is amazing 🙌🏾🔥🔥🔥
@goranbla
@goranbla 14 дней назад
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 14 дней назад
and of course, coming up with an idea doesn't mean much until you create a repo 💪
@atanasnachkov4030
@atanasnachkov4030 14 дней назад
Thank you!
@karlostj4683
@karlostj4683 13 дней назад
"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.
@EricMasiello
@EricMasiello 14 дней назад
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 14 дней назад
Looks like it’s for static html only
@twostraws
@twostraws 14 дней назад
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 14 дней назад
@@twostraws it’s a super cool idea
@LeBojo
@LeBojo 5 дней назад
That's looks insane!
@typicaltype2608
@typicaltype2608 14 дней назад
this is so sick man
@nasir519
@nasir519 11 дней назад
At the moment I needed a way to develop a static website for my brand, just curious how does ignite helps with SEO ?
@__Imran__
@__Imran__ 14 дней назад
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 12 дней назад
Praying won't work. Practice will!
@__Imran__
@__Imran__ 12 дней назад
@@tejaspatelia8179 trying brother
@Abdullah-zl9ub
@Abdullah-zl9ub 14 дней назад
I never knew it was possible to build a website using swift. Is it done in Xcode? Does swiftUI work?
@sabata657
@sabata657 13 дней назад
great job
@cbbcbb6803
@cbbcbb6803 13 дней назад
Could this be done in any programming language?
@user-dx3hm7sm6j
@user-dx3hm7sm6j 13 дней назад
Awesome!🎉
@vimalgorvadia
@vimalgorvadia 12 дней назад
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.
@mayankbhaisora2699
@mayankbhaisora2699 14 дней назад
More power to Swift
@user-vj4st2gd4i
@user-vj4st2gd4i 14 дней назад
Incredible….
@AlanRick26
@AlanRick26 11 дней назад
I just don’t understand how/where to host the SwiftUI platform. I don’t think that my hosting service provides this.
@ayopringle
@ayopringle 14 дней назад
this is amazing
@tazman7689
@tazman7689 10 дней назад
Can you publish to GitHub pages?
@garanceadrosehn9691
@garanceadrosehn9691 14 дней назад
Impressive.
@datping7377
@datping7377 14 дней назад
It’s really nice but will it solves all the html related problems at the beginning?
@UTJK.
@UTJK. 14 дней назад
I guess Bootstrap will solve them indirectly for you.
@datping7377
@datping7377 12 дней назад
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. 11 дней назад
@@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.
@Xcoder
@Xcoder 14 дней назад
👍🏻
@vollmerama
@vollmerama 14 дней назад
dont already have react and nextjs?
@infantfrontender6131
@infantfrontender6131 14 дней назад
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
@soheilpakgohar6630
@soheilpakgohar6630 14 дней назад
awesome
@timotejmatlak4625
@timotejmatlak4625 14 дней назад
What a great news 😎
@Goku61001
@Goku61001 10 дней назад
Blazor?
@Goktug-sx6fm
@Goktug-sx6fm 14 дней назад
you lost me at html language lol
@LevitskiSRGE
@LevitskiSRGE 14 дней назад
Build yout next Crysis in Php!
@huynhlong350
@huynhlong350 14 дней назад
Backend next so i can do full stack iOS with swift only haha
@arjundureja
@arjundureja 14 дней назад
You can already do this with Vapor
@huynhlong350
@huynhlong350 14 дней назад
@@arjundureja wow didnt know that, thanks brother
@takasurazeem
@takasurazeem 14 дней назад
I would love it if we could develop an Android app using Swift...
@Michael-Martell
@Michael-Martell 13 дней назад
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_bugit 14 дней назад
Actually this already exist in kotlin
@gcelite36
@gcelite36 14 дней назад
JavaScript and Swift seem pretty similar, so it’d be natural to expand Swift’s capabilities into the web realm
@tylerfrydenlund
@tylerfrydenlund 14 дней назад
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 14 дней назад
@@tylerfrydenlund do you know what the word “seem” means?
@arjundureja
@arjundureja 14 дней назад
@@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
@pookiepats 14 дней назад
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 14 дней назад
This is actually a list of my favorite languages
@neneodonkor
@neneodonkor 12 дней назад
2:26 The Swift way of doing it looks awkward to me.
@smithshaw1151
@smithshaw1151 5 дней назад
Bad idea. HTML is simple enough to learn
@ShaqarudenGames
@ShaqarudenGames 14 дней назад
Damn, it had to be bootstrap….
@UTJK.
@UTJK. 14 дней назад
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 14 дней назад
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 14 дней назад
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 14 дней назад
@@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 14 дней назад
@@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 14 дней назад
@@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
@Rychillie 14 дней назад
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!
@tis5yoab
@tis5yoab 12 дней назад
It reminds me of a Java JSP 🙂
@rickdg
@rickdg 14 дней назад
And then stick it in a webview of your mobile app 😂
@herosova
@herosova 14 дней назад
ultimately it will end up becoming html then why bother with this so much layers
@twostraws
@twostraws 14 дней назад
This is literally answered in the video, and more than once 🤷‍♂️
@herosova
@herosova 14 дней назад
@@twostraws i never thought you would reply
@ioscaleb
@ioscaleb 14 дней назад
Code will ultimately become machine code anyway, why bother with a high level language?
@smithshaw1151
@smithshaw1151 5 дней назад
Let’s get rid of build steps people. Just learn HTML
@cubanlincoln1767
@cubanlincoln1767 14 дней назад
Just another try of replace classic html that will fail soon
@arturo7392
@arturo7392 14 дней назад
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
@ali-dp7wr
@ali-dp7wr 13 дней назад
I don't think it's going to be successful.
@farrenzoroqueez
@farrenzoroqueez 12 дней назад
As a human that abhorres HTML, I have to say, this is truly an abomination. You must repent for such sacrilegious actions.
Далее
Floating UI Svelte announcement!
18:48
Просмотров 8 тыс.
Backstage or result?😈🔥 @milanaroller
00:12
Просмотров 7 млн
КИТАЕЦ ЗА 24 МИЛЛИОНА / РАЗГОН
1:10:06
The NEW Surface Pro + Laptop - First Impressions
7:41
Просмотров 900 тыс.
Can ChatGPT write better SwiftUI code than you?
39:03
Swift 5.9 Released | Prime Reacts
14:36
Просмотров 60 тыс.
5 Weird iPad Pro (M4) Decisions
13:02
Просмотров 3,5 млн
Easily Understanding gRPC
8:40
Просмотров 10 тыс.
Projects Every Programmer Should Try
16:58
Просмотров 352 тыс.
Learn CSS flexbox in 10 minutes! 💪
10:01
Просмотров 106 тыс.
How to create a CSS navigation bar in 6 minutes! 🧭
6:28
Shiny new X Elite laptops
10:03
Просмотров 105 тыс.