Cookie Consent by Free Privacy Policy Generator Aktuallisiere deine Cookie Einstellungen ๐Ÿ“Œ Astro vs Visual Studio 2022 as Static Site Generators


๐Ÿ“š Astro vs Visual Studio 2022 as Static Site Generators


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

I have spent today learning the new Astro SSG. You can read about it at https://astro.build/ or better yet you can get started with it at https://docs.astro.build/en/install/auto/. While Visual Studio isn't exactly a SSG, they way you code with it can make static web pages. VS has so much more power than that.

What is a Static Site Generator?

Honestly, the term is sort of new to me. But basically, it means a tool that creates static web pages. What are those? Web pages that only need html, css, and if desired javascript. The official definition of course is at Wikipedia, https://en.wikipedia.org/wiki/Static_site_generator.

Setup

So, for the Astro side, I used the following

  • VS Code (latest)
  • Debian 11 OS w 16GB Ram
  • LxQt
  • node 18.6
  • astro 9.5.1

For Visual Studio, of course I need

  • Windows 11 w 32GB Ram

Comparisons

IDE Performance

Obviously VS Code is going to win this hands down.

Intellisense

Astro -- The intellisense for Astro related code is not too bad using the Astro extension in VSCode, but after adding Vue to the mix, I was a bit disappointed that some Vue code did not show up as missing variable errors. However, the hot swap debug environment with Astro did point out those errors.

Visual Studio -- When it came to choosing CSS classes, Visual Studio still knocks it out of the park for adding classes to elements. VS knows exactly what classes are available and gives very quick dropdowns to this affect. VS wins the intellisense compare.

Flexibility

This one I don't think you can compare. This is where each tool has it's purposes and both do excellent jobs towards that. I won't go into Visual Studio, but I would like to highlight some integration points that Astro offers.

  • CSS -- Tailwind
  • WebWorkers -- Partytown (have not been there in a while, but I do like the song)
  • UI/Javascript Frameworks -- React, Svelte, Vue, plus a few more
  • SSR -- Cloudfare, Vercel, Node, Netlify
  • Headless CMS Integration-- Too many to mention, but many are in development.

My Take

I will always opt for a strong backend tool to serve up static pages, like dotnet core. The question and goal I have is how to create a static site quickly and without having to refactor too much later. I might be in a place where I don't worry about styling the site too much and get the content done using Astro. This is where Astro's integration with headless cms systems could have a huge advantage. Plus I think from a templating and component perspective, developing with Astro will be a lot quicker. After all of that is done, then I might let Visual Studio take over for the styling of the sites pages.

Either way, I think it was a day well spent on learning the Astro SSG tool. It is a very promising project in the node/npm space.

...



๐Ÿ“Œ Astro vs Visual Studio 2022 as Static Site Generators


๐Ÿ“ˆ 62.59 Punkte

๐Ÿ“Œ The Top Five Static Site Generators (SSGs) for 2023 โ€”ย and when to use them!


๐Ÿ“ˆ 31.87 Punkte

๐Ÿ“Œ Top ten popular static site generators (SSG) in 2023


๐Ÿ“ˆ 31.87 Punkte

๐Ÿ“Œ 5 Best Static Site Generators in Python


๐Ÿ“ˆ 31.87 Punkte

๐Ÿ“Œ JS Toolbox 2024: Frameworks and Static Site Generators


๐Ÿ“ˆ 31.87 Punkte

๐Ÿ“Œ Source Generators in C# | Visual Studio Toolbox


๐Ÿ“ˆ 30.77 Punkte

๐Ÿ“Œ Writing Visual Studio Extensions with Mads - Single File Generators


๐Ÿ“ˆ 30.77 Punkte

๐Ÿ“Œ Visual Studio Remote Office Hours - 64-bit Visual Studio 2022


๐Ÿ“ˆ 29.91 Punkte

๐Ÿ“Œ Writing Visual Studio Extensions with Mads - 64-bit extensions for Visual Studio 2022


๐Ÿ“ˆ 29.91 Punkte

๐Ÿ“Œ Writing Visual Studio Extensions with Mads - Splitting extensions for Visual Studio 2022


๐Ÿ“ˆ 29.91 Punkte

๐Ÿ“Œ Visual Studio Toolbox Live - Web Development in Visual Studio 2022


๐Ÿ“ˆ 29.91 Punkte

๐Ÿ“Œ Visual Studio Toolbox Live - Web API Development with Visual Studio 2022


๐Ÿ“ˆ 29.91 Punkte

๐Ÿ“Œ Add Searching To Your Astro Static Site


๐Ÿ“ˆ 29.46 Punkte

๐Ÿ“Œ Adding Vercel analytics to your static Astro site


๐Ÿ“ˆ 29.46 Punkte

๐Ÿ“Œ Static site generation using Astro.js


๐Ÿ“ˆ 29.46 Punkte

๐Ÿ“Œ How to add Astro social share to your Astro application


๐Ÿ“ˆ 29.18 Punkte

๐Ÿ“Œ Exploring Astro: A Journey into Modern Web Development with Astro JS


๐Ÿ“ˆ 29.18 Punkte

๐Ÿ“Œ Astro and Express: SSR in Astro


๐Ÿ“ˆ 29.18 Punkte

๐Ÿ“Œ Add a splash of color to your Astro headset with ASTRO.ID


๐Ÿ“ˆ 29.18 Punkte

๐Ÿ“Œ Kalenderwoche 42/2018 fรผr Entwickler im Rรผckblick: Visual Studio 2019, Visual Studio for Mac, .NET Core 2.2 und mehr


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: A tour of Visual Studio for Mac for .NET development


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: A tour of Visual Studio for Mac for .NET development


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: A tour of Visual Studio for Mac for .NET development


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: To the cloud with Visual Studio and Azure


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: To the cloud with Visual Studio and Azure


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio for Mac + ASP.NET Core โ€“ Deploy eShopOnWeb to Azure using Visual Studio for Mac


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Working with Git tooling in Visual Studio - Visual Studio Remote Office Hours, 4/30


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Bring AI and ML into Visual Studio with IntelliCode - Visual Studio Office Hours, 5/7


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ How the UX Lab and Customer Interviews Make Visual Studio Better - Visual Studio Office Hours, 5/14


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Build Visual Studio extensions using Visual Studio extensions


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio and accessibility - Visual Studio Remote Office Hours, 5/28


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ The architecture and inner workings of Visual Studio - Visual Studio Remote Office Hours, July 2


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio Codespaces - Visual Studio Remote Office Hours, July 9


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Uniting all containers and Kubernetes fans in this Visual Studio 2019 session | Visual Studio 2019 Launch Event


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ Visual Studio Productivity Tips | Visual Studio Toolbox


๐Ÿ“ˆ 27.54 Punkte











matomo