Joyful Pyodide with...tests?

Поделиться
HTML-код
  • Опубликовано: 11 окт 2024
  • Joyful Pyodide with...tests? by Paul Everitt @ JetBrains
    Pyodide and PyScript have helped bring Python to the browser. But what’s development like? Is it `console.log`, print statements, and constant switching to Chrome?
    This talk shows a joyful mode of development using NodeJS testing frameworks. Fast, with good tooling, so you can stay in the flow.
    Pyodide is exciting but it can mean a pretty disjointed developer experience. You write some Python code, go to a browser, hit refresh, and hope for the best. The console is always open, so you can sprinkle `console.log` statements hither and yon, hoping to reveal your mistake. It’s also a slower development cycle, waiting for Pyodide to spin up. Finally, it can be disorientation: which language is currently calling which?
    Modern JS tooling has improved. With NodeJS, Vite, Vitest, and IDE integration, a different mode of development emerges. One focused on developing through the lens of a test, where you can easily jump into a debugger.
    In this talk we walk through the “why” of this approach, then show getting it started and using it in action. Along the way you’ll see some modern web development patterns such as ESM import/export and web workers.
    The 5th annual Python Web Conf (#PWC2023) inspired attendees to use technology for good. The conference attracted 315 attendees from over 30 countries across 15 time zones. The highly engaging format featured 70 speakers, 5 tracks (including 64 talks and 5 tutorials) and took place virtually on March 13-17, 2023 on LoudSwarm by Six Feet Up.
    More information about the conference can be found at: 2023.pythonweb...
  • НаукаНаука

Комментарии • 1

  • @polovne
    @polovne Год назад

    Nice presentation.