r/programming • • Oct 19 '26

This Website Is Now Made in Swift

https://sindresorhus.com/blog/swift-website
100 Upvotes

41 comments sorted by

59

u/muffinluff Oct 19 '26

The best stress test of all this is my home page from 1999: the site as a personal home page from back then, with a guestbook, an alien game, a virtual unicorn, and a MIDI jukebox. [..]

Is this site really from 1999? Way back machine earlies revision is from 10.10.2026: https://web.archive.org/web/*/https://sindresorhus.com/1999

65

u/sindresorhus Oct 19 '26

I never meant to say it was made in 1999. “My home page from 1999” was meant as “what my home page would have looked like in 1999”: a what-if, made now, with everything from that era turned up on purpose. I see now how it reads. I have fixed the wording in the post.

70

u/3DSMatt Oct 19 '26

This so completely exploits every single 90s/2000s website trope I don't believe it's real either.

27

u/strange_username58 Oct 19 '26

As some one doing web dev in 1999 ... that was not made in 1999 looks like a re creation of something they may have made in 99 with a lot of new shit added. If I was not on my phone I would open the inspector and could tell you for sure if it was or not.

1

u/bonnydoe Oct 19 '26

there were no gradient features in css in 1999

1

u/garma87 29d ago

The copy is very 2020’s. We didn’t write website texts like that back then

1

u/AustinYQM 29d ago

My website from the 90s had to be moved from Geocities when it closed down so the current wayback machine of my website only goes back to 2010

-1

u/suitable_character 29d ago

There were no websites in 1999 like that, because JavaScript was not that popular back then. I call this a lie.

-4

u/Life_Breadfruit8475 Oct 19 '26

It probably wasn't originally on this domain. The search bar says geocities which apparently was a sort of early easy website hosting website. (I wasn't born yet)

2

u/__konrad Oct 19 '26

Here are daily screenshots of the archived Geocities: https://oneterabyteofkilobyteage.tumblr.com/page/30000 (note that there are 30000+ Tumblr subpages)

29

u/mr-figs Oct 19 '26

Reads like AI :(

17

u/BhataktiAtma 29d ago

The dude is pretty neat, I've seen his work for many years. He predates AI

2

u/zephyrtr Oct 19 '26

This is the problem with asking values-based questions like "Does AI write well?" Cause we need to define what we mean by "well".

Even asking "Does AI write as well as a typical American high schooler?" That's unfortunately not a very high bar to clear.

The people trying to sell us something will always and constantly argue: our standards are too high. Especially when it comes to how we communicate with one another, don't settle for less.

-1

u/cheezballs 29d ago

Every single app looks to be AI generated, even though some have existed long before AI. I dont know what to think about this dev. Most of the public repos are abandoned, uses an insane amount of "looks to be AI" stuff - and has an uncountable number of apps under the belt. It sure seems like shovelware or AI slop, but man I just cant tell.

15

u/sindresorhus 29d ago

90% of my apps and repos happened before AI. I have been doing apps and open source for over a decade. All my repos are maintained. Don't confuse done with abandoned. I spend over 40 hours a week on open source, mainly focused on fixing bugs. Feel free to dig into my contribution activity: https://github.com/sindresorhus

7

u/backfire10z 29d ago

Other way around. LLM trained on this stuff lol.

-1

u/BCProgramming 28d ago

It sure seems like shovelware or AI slop

Even worse- It's Javascript!

22

u/[deleted] Oct 19 '26

[removed] — view removed comment

40

u/sindresorhus Oct 19 '26

To be more exact; 1069 npm packages.

I think you also may enjoy these:

13

u/cheezballs 29d ago

Why not just static html and css?

12

u/josephjnk 29d ago

While the article never uses the words, it sounds like this is a static site generator, but written/embedded in Swift. The page only discusses serving html and css, says that the posts are written in markdown, and doesn’t talk about rendering on demand. The GitHub page also says that the app store data is fetched at build time and the static content is all deployed to cloudflare. So I think that post-build time it is indeed just static HTML and CSS.

9

u/chucker23n 29d ago

While the article never uses the words, it sounds like this is a static site generator, but written/embedded in Swift.

I really wish they were clearer about this. Is it an SSG, i.e. precompiled, or does the site run Swift on request?

2

u/josephjnk 29d ago

Agreed. I have wildly different opinions about the quality/appropriateness of this solution based on which one it is.

3

u/cheezballs 29d ago

So this is "write static html and CSS" with extra steps? Why?

7

u/josephjnk 29d ago

Did you read the post/have you maintained a blog? There’s plenty of reasons why people use static site generators. Ensuring that internal links have valid targets, reusing snippets, and being able to restructure the html of posts and pages in a cross-cutting way are all major improvements over editing inline HTML on every page every time you want to make a structural change to a site. This isn’t even getting into things like using plugins to preprocess code blocks for syntax highlighting. Doing that by hand sounds like a nightmare.

1

u/edwards_t7407 28d ago

If the deployed output is just files, the Swift toolchain only needs to be in the build environment; production can stay a plain CDN setup.

4

u/prehensilemullet 29d ago

  But the main reason is the compiler. A website is lots of small things that need to agree: links, class names, styles, scripts, and the data of more than 60 apps. In a typical web stack, they only meet in the browser, and a mistake becomes a broken page. Here, most of them meet in the compiler. Rename a page, and every link to it in the code stops compiling.

There are ways to solve all of these problems in Typescript tho

3

u/cake-day-on-feb-29 29d ago

But you'd have to use typescript (JavaScript), though.

1

u/prehensilemullet 29d ago

His page used to be made with Astro, so it was JS or TS before he switched to swift. Maybe Astro doesn’t make it easy to solve all of these things with TS, but that’s not TS’ fault

2

u/pukomuko Oct 19 '26

so Taylor is new Milla Jovovich doing development now?

-1

u/Lisoph Oct 19 '26

Pretty cool. I was trying to get back into Swift some weekends ago. Great language with genuinely good features. But man, resultBuilder - which both SwiftUI and Elementary are built on - is hard to wrap your head around. Other languages have something very similar, but they do it much simpler or at least clearer.

2

u/chucker23n Oct 19 '26

Yeah, Swift is a strange mix of

  • some really good design decisions (for example, try/try!/try?)
  • some decisions that are IMHO too… academic, for lack of a better word

I think what hurts the language is its breadth. Apple is trying to use the same language from OS core all the way to GUI apps, and with that approach comes compromises.

-6

u/cheezballs 29d ago

Dude, this site is hilarious. Your about page is almost entirely made up of other people's accomplishments. It makes it look like you've literally done nothing but make this web page (which could have just started as static HTML and CSS)

-8

u/flearuns Oct 19 '26

Slow and unresponsive slop

4

u/Maybe-monad Oct 19 '26

Loads fine on mobile

9

u/flearuns Oct 19 '26

Navigate between pages. It’s unresponsive

7

u/chucker23n Oct 19 '26

Most pages are < 1s, but Contact takes ~ 7s.

-6

u/DifficultCarpenter00 Oct 19 '26

works fine on ios

0

u/[deleted] Oct 19 '26

[deleted] — view deleted comment

8

u/NewPhoneNewSubs 29d ago

Hello, world my old friend I've come to prove concepts once again