home.social

#esmodules — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #esmodules, aggregated by home.social.

  1. @teqfw/di: Coding JavaScript like a Java boss

    Эта статья для тех, кто, как и я, хочет программировать на JavaScript в Java-стиле. Для тех, кто находит вдохновение в балансе между строгой архитектурной дисциплиной Java и творческой свободой JavaScript. Ранее я уже публиковал " философию " своей платформы TeqFW , а также инструкции для LLM ( раз , два ) по оформлению es-модулей в приложениях, написанных в стиле TeqFW . На этот раз я делюсь инструкцией для LLM по использованию внедрения зависимостей в таких приложениях. Для тех, кто не совсем понимает, что значит " программировать на JavaScript в Java-стиле ", приведу рабочий пример — это Node.js-утилита @flancer64/smtp-logger . Она сохраняет в базу данных все email'ы, которые Postfix отправляет наружу. Мне как раз понадобился такой функционал — и я реализовал его в стиле TeqFW : с явным управлением зависимостями и строгой модульной структурой. Под катом - пример JS-кода в Java-стиле.

    habr.com/ru/articles/901678/

    #teqfw #javascript #es6 #esmodules #dependency_injection #ioc

  2. My esteemed followers, you have posted a total of 375,809 statuses to the #fediverse. 22% of you have posted in the last 24h. You are a chatty bunch! ;-)

    Check out my new #sideproject: *fedi-followers*. A privacy-friendly fediverse #followers explorer as #localonly #staticwebapp, decentrally hosted on the #ipfs. See who's actually following (and unfollowing) you over time and much more.

    fedi--followers-data0-one.ipns

    #decentralization #mastodev #esmodules #importmaps #nobuild #indexeddb #preact

  3. I've built a thing.

    Sometimes my follower count seemingly fluctuates at random. To understand why, I dug into the #MastodonAPI and created "fedi-followers":

    A privacy-friendly #fediverse #followers explorer as local-only static web app, decentrally hosted on the #ipfs. See who's actually following (and unfollowing) you over time and much more.

    fedi--followers-data0-one.ipns

    #mastodev #javascript #webapp #staticwebapp #nobuild #esmodules #importmaps #indexeddb #preact #htm

  4. Since I'm stubborn, I couldn't let it go. I spent more time on this yesterday evening and this morning, trying to build a very minimal project similar to mine and start the whole config from scratch: basic build, then tests, then more advanved build, then typescript.

    And I got something to work. For now, my solution involves #esbuild, #typescript and #jest. With #esmodules 😍

  5. I'd like to spend some more time with #WebComponents, #ServiceWorkers, #WebSockets, #OffscreenCanvas, #WebWorkers, #WebGPU, #SVG, and the #GamePad #API.

    I've been noodling for a long time about how you could build a game using #ESModules, and #CustomElements to allow players to author their own components to extend the game.

    I guess I'm just more interested in how the game works mechanically than how it looks.

  6. Is it wrong if I'm kind of enjoying the drama about #ljharb?
    Burn tc39 down! Make the web anew!
    The only standard is death comes to everything!

    #webDev #javaScript #tc39 #nodejs #esm #esmodules #commonjs #cjs #modules

  7. > enough libraries use ES Modules that for many projects you need to either use ES Modules, or figure out how to interoperate ES Modules with your CommonJS code. At the same time, enough code still uses CommonJS that you often need to figure out how to include that legacy code in your otherwise-ES Module project.

    borischerny.com/javascript,/ty

    #javaScript #nodeJS #esModules #webdev #web #typescript #esm #cjs #commonjs #package #npm

  8. As supporting both and can be wrongly done in a thousand ways, I published why and how we achieved that on fast-check.

    This article is a follow-up of issues reported via from @bluwy and fixed thank to @AndaristRake. As making the package right was not an easy game at first glance, I thought that a how-we-do article could help other .

    Link to the article: fast-check.dev/blog/2023/09/04

  9. Should I transpile this code? I really want to use Typescript and new JS features?

    Do I want to support #ESModules and #CommonJS? Should I bundle this code? What about #Node vs. #Deno Browser vs. compatibility?

  10. I think that there's a backlash coming; we've been #bundling for so long and dealing with all the complications that arise from it, but now we have #ESModules, #HTTP3, and #edge #CDN. Smaller files that change less often are actually better now! The #web is about to #unbundle/#unpack!