Best of SvelteSeptember 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    Building the Same App Using Various Web Frameworks

    The author explores migrating from a current web app stack (FastAPI, HTML, CSS, and JavaScript) to modern web frameworks like FastHTML, Next.js, and Svelte by building the same web app using each one. The app allows users to upload a CSV file, view and update the table in the browser, and download the updated data. While the author found the FastAPI implementation straightforward, they learned various tricks and optimizations while building with FastHTML, Next.js, and Svelte. The experiment also highlighted how coding assistants might favor established frameworks over newer ones due to training data biases, impacting their effectiveness.

  2. 2
    Article
    Avatar of svelteSvelte Blog·2y

    What's new in Svelte: September 2024

    Svelte introduced several updates in September 2024, including enhancements to `svelte:options` and `:global`, as well as the deprecation of `<svelte:component>` in Svelte 5. Key highlights also feature community projects built using Svelte, educational resources, and new tools and libraries. Performance improvements in CSS and JavaScript compilation were also noted.

  3. 3
    Article
    Avatar of atomicobjectAtomic Spin·2y

    4 Tips for Testing with Playwright

    The post provides four valuable tips for improving end-to-end testing with Playwright in a TypeScript/Svelte project. The tips include enabling retries for failing tests to handle flakiness, replacing the deprecated .type method with .fill or .pressSequentially, using waitForTimeout as a last-resort option, and organizing tests using *describe* blocks for better troubleshooting. An additional bonus tip includes how to group and run tests with specific tags.