#Development #Techniques
Top-level ‘await’ in ES modules · Write cleaner, more direct async code in modules https://ilo.im/164owq
_____
#Programming #Coding #JavaScript #EcmaScript #EsModules #AsyncCode #WebDev #Frontend #Backend #Guidelines
#Development #Techniques
Top-level ‘await’ in ES modules · Write cleaner, more direct async code in modules https://ilo.im/164owq
_____
#Programming #Coding #JavaScript #EcmaScript #EsModules #AsyncCode #WebDev #Frontend #Backend #Guidelines
@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-стиле.
https://habr.com/ru/articles/901678/
#teqfw #javascript #es6 #esmodules #dependency_injection #ioc
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.
https://fedi--followers-data0-one.ipns.dweb.link/
#decentralization #mastodev #esmodules #importmaps #nobuild #indexeddb #preact
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.
https://fedi--followers-data0-one.ipns.dweb.link/
#mastodev #javascript #webapp #staticwebapp #nobuild #esmodules #importmaps #indexeddb #preact #htm
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 😍
Another try, and I'm giving up once again 😭
I just can't upgrade my whole build setup to use #webpack + #typescript + #esmodules for both the app code and the test suite. Something always breaks. I lose *hours* reading github issues and stuff, trying stuff left and right, trying to switch to this or that, nothing works entirely, and it never breaks the same way.
That kind of nonsense will end up with me abandoning my side project 😩
It sucks that #SkyPack didn't catch on.
#webDev #javaScript #js #web #esm #modules #esmodules #packageManagement #programming #cdn #deno #node #npm
Node.js — Node v23.0.0 (Current)
Key Points:
➡️ Node.js 23 is now the 'Current' release, replacing Node.js 22.
➡️ Native ES module loading with require() is enabled by default but still experimental. Users can disable this feature with --no-experimental-require-module if needed.
➡️ Various installers and binaries for different platforms are available.
It's 2024; #JavaScript #libraries should be shipping #ESModules *only*
#webDev #frontend #js #modules #esm #commonjs #modularity #nodejs #deno