Here’s a question: suppose I have bunch of HTML inputs (dropdowns, sliders, whatever), and I want their values to set the values of #JS variables, both on load and whenever changed. Is there a way to do that in a generic manner short of dumping all the variables into an object so I can use their member names using array-ish syntax, or pushing everything through an eval()? [shudder]
@Meyerweb@hi_mayank@kolya@joelanman ah, what you want can't sensibly be done in the way you're looking for, sadly. In the old days "var whatever" set window.whatever, but let (and const) variables aren't on the window object, and there's no way to set a let variable "dynamically" from code if you have its name in a string, at least not that I know of.
Як працюють компіляція та виконання коду👇
🔸Компілювані мови (#C, C++, #Go)
Вихідний код перетворюється компілятором на машинний. Машинний код виконується безпосередньо процесором.
🔸Байт-код (#Java, C#)
Вихідний код компілюється у байт-код, а потім JVM виконує програму. Іноді JIT-компілятор компілює вихідний код у машинний, щоб прискорити виконання.
🔸Інтерпретовані мови (#Python, #JS, #Ruby)
Тут для виконання програми не потрібен машинний код, натомість програму рядково виконають інтерпретатори.
@tshirtman@AndriiKuznietsov75 IIUC that's also the case for Ruby. And of course, languages don't mandate a specific flow, it's an implementation detail. There's RubyMotion/DragonRuby compiled to native, or PyPy that JIT-compiles Python.
@maxd@AndriiKuznietsov75 yeah, i though it was probably the case for ruby as well, but i know much less about it, and didn't want to spend the time researching, but i would be a bit surprised if it's directly interpreted. And afaik JS is also JIT in most implementations. Direct interpretation certainly leaves a lot of performance on the table.
I just want to buy a bath mat from a major UK retailer but half the elements won't hydrate, including the add to cart button. Excessive #JS was a mistake we just won't stop making.
Friendly reminder that XULRunner, the standalone Gecko runtime that once powered web-based applications like Songbird and that was abandoned by Mozilla Corporation has been revived and now builds atop Goanna. Learn more at the Pale Moon forums announcement: https://forum.palemoon.org/viewtopic.php?f=62&t=30913
Si vous connaissez quelqu'un qui connaît quelqu'un qui a son oncle qui connaît quelqu'un dont le voisin recherche quelqu'un pour un poste de développeur soit web soit c++ (+ Qt éventuellement) je suis preneur. Boosts appréciés #CPP#CLang#Qt#Dev#C++ #C#Web#HTML#PHP#JS#CSS#Travail#Job
Sometimes #WebComponents need to know what’s happening inside of them.
Whether you’re working with the concept of “slots” or just plain ol’ #HTML, you may need to react to changes imposed from without.
Thankfully, the native platform provides a solution in the form of MutationObserver, an API which is so powerful it can beat at the heart of entire #JS frameworks (Stimulus being but one example).
WinterJS è un runtime Javascript incredibilmente veloce, compatibile con WinterCG e scritto in Rust, che utilizza il motore SpiderMonkey per eseguire JavaScript e Tokio per gestire le richieste HTTP e il ciclo di eventi JS. Il runtime WinterJS può anche essere compilato in WebAssembly e come tale è il primo runtime[...]"
My pure JavaScript module (no mkcert, certutil, etc., required) that automatically provisions and installs locally-trusted TLS certificates for Node.js https servers.
(There seems to be an issue with tests failing on macOS, will debug that tomorrow and likely post a patch release.)
@serapath PS. Also, another thing it allows you to do is to test from other devices on your local network via IP address (the certificate automatically supports all local IP addresses your dev machine is reachable from). So you don’t need to use a VPN / ngrok / pagekite, etc., to test your sites with multiple devices if they use https-only features.
Quick update: the failing tests were apparently because I had my VPN on on macOS (that was creating an additional IPv4 interface that was getting picked up by the tests that check that your server is accessible via a valid TLS certificate from all available local IPs).
Svelte è uno strumento per la costruzione di applicazioni web. Come altri framework per interfacce utente, consente di costruire l'applicazione in modo dichiarativo con componenti che combinano markup, stili e comportamenti.
Questi componenti sono compilati in piccoli ed efficienti moduli JS che eliminano il sovraccarico tradizionalmente associato ai framework UI.
PS. I’ve tried my best to get a system together where I don’t have to edit videos after recording them. So that’s just one take, no edits, apart from to the transcript to fix automatic transcription errors and to add a bit more context about when I’m speaking versus when the screen reader is speaking.
Dites-moi les developpeur PHP symfony et ceux qui font un peu de JS aussi.
J'ai mon serveur PHP qui me renvoie un JWT quand c'est correct.
J'ai lu qu'une bonne pratique consistait à envoyer le ou les tokens dans un cookies avec le secure à true. Seulement, j'en fait quoi moi après côté font en SvelteJS ?
I suggest we have a new survey similar to state of JS called state of JS runtime, to get an idea of which runtimes are most popular in the industry & what are they being used for. (its merely a question in StateOfJS)
@nosherwan node hasn't fully embraced ES6 modules that came out almost ten years ago, let alone typescript. Bun is fast, yes, they support typescript, but that's about it. #Deno also has #typescript built-in, and adds extra security, a new package system, and lots of new features. I can even compile a binary.