strypey, (edited ) to random
@strypey@mastodon.nzoss.nz avatar

I just realized that I was joining in the chorus of disapproval about John Mastodon driving new signups to his flagship mastodon.social server, in very strident terms, despite having made excuses for the matrix folks doing exactly the same thing; driving new sign-ups to the matrix.org homesever in Riot/Element. I guess it just reminds me that nobody is immune from bias, however fair and balanced we're trying to be 🫣

adfeno,

@strypey @bob another thing to look at is the dependency graph, and, I know little if any server is or was packaged by a compliant " ". For the first part, since I can't review this myself I suggest you to talk to people working at the / / ( https://directory.fsf.org/ ). For 2nd, see https://gnu.org/distros . Also, there maybe the issue of client-side / .

z80, to Dragonlance

SoundBox is a tool for composing synthetic music, in your browser. Its design is basically that of a music tracker, which means that the music is organized in tracks and patterns.

https://sb.bitsnbites.eu

#audio #music #retrocomputing #trackermusic #js

janriemer, to javascript

This is both awesome and cursed :awesome: 😬:

polywasm - a #JavaScript library that implements the #WebAssembly API and can act as a polyfill, if #WASM is not available.

Made by the creator of #esbuild evanw.

https://github.com/evanw/polywasm

I'm wondering, though, whether this is really needed, given that there is asm.js 🤔

Also see section "Can WebAssembly be polyfilled?" on the WebAssembly FAQ:

https://webassembly.org/docs/faq/

#WebDev #JS #Polyfill

hl, to programming
@hl@social.lol avatar

#JS . . .
JS . . .
JS . . .
JS Nation
Dudu-deedu-dedidu-du-dudididu
#techno #90s #IYKYK

Jdreben, to javascript

I regularly use and love #Typescript. I used to use #Python the most – it’s what I learned in and I am more interested in backends than frontends. I also am regularly using and really enjoying #Kotlin (so much better than #Java). But truly Typescript is bae.

#Julia is a joy to work with. Very much like Python but more powerful. If it had the library support Python or #JVM has I would probably prefer to use Julia for backends.

But Typescript really changed the game and now that’s probably my favorite language not just because of the language itself but because it has web dominance. Until I can write #WASM with Python or Kotlin or Rust, and I’m building #web applications, TS is my lingua franca.

I want to try #Rust because it’s the new hotness.

janriemer,

@Jdreben @guardiarris @maegul Yes, at least #Leptos takes the #SolidJS approach of using signals to update only the minimal amount of DOM that actually changes.

Regarding JS: you don't need to touch it explicitly in those frameworks, BUT: it is still used to manipulate the #DOM.

For this to work, a lib called wasm-bindgen is used (awesome piece of technology!), which basically bridges #Rust <-> #JS:

https://rustwasm.github.io/docs/wasm-bindgen/

leptos_dom depends on it:
https://github.com/leptos-rs/leptos/blob/4ade062cd8cdbe9128aa7a2c8169c17c9d3e874c/leptos_dom/Cargo.toml#L28

#RustLang #WASM

aral, (edited ) to SmallWeb
@aral@mastodon.ar.al avatar

Kitten¹ now has a <page> tag!

Use it to:

• specify certain <head> elements for your page (title, icon, etc.)

• list any libraries you want to include in your page from the ones Kitten has first-class support for (HTMX, HTMX WebSocket, Alpine.js, and Water.css)

Happy weekend, all! :)

:kitten: 💕

¹ https://codeberg.org/kitten/app

#Kitten #SmallWeb #SmallTech #web #dev #javaScript #js #NodeJS

aral, (edited ) to programming
@aral@mastodon.ar.al avatar

Just moved Tap Monkey from GitHub to Codeberg.

What’s Tap Monkey? It’s a tap test runner that’s also a monkey, of course ;)

🍌️🐒️

¹ @Codeberg

#tap #tape #js #nodeJS #test #tdd #testRunner #tapMonkey #GitHub #Codeberg

d_run, to programming
@d_run@mastodon.social avatar
mvsde, to webdev
@mvsde@mastodon.social avatar

Handy tool to get suggestions for an improved &lt;head&gt; order.

#HTML #CSS #JS #Performance

https://github.com/rviscomi/capo.js

aral, to SmallWeb
@aral@mastodon.ar.al avatar

Just published Kitten’s¹ new database² commands:

  • kitten db [table name] to see info the database/a specific table
  • kitten db delete [table name] to delete the database/a specific table
  • kitten db tail <table name> to follow a specific table

Full docs: https://codeberg.org/kitten/app#database-commands

¹ https://codeberg.org/kitten/app
² https://codeberg.org/small-tech/jsdb

#Kitten #SmallWeb #SmallTech #JavaScriptDatabase #javascript #database #JSDB #web #dev #js #NodeJS #commandLineInterface #CLI

smallcircles, to webdev
@smallcircles@social.coop avatar

"Towards a Modern Web Stack"

This is interesting.

Ian "Hixie" Hickson editor of #WhatWG HTML specification for 10 years, in January 2023 criticises the use of #HTML, #CSS, #Javascript for intricate #Web applications, and proposes an alternate approach based on 4 lower-level #OpenStandards:

  1. #WebAssembly

  2. #WebGPU

  3. #ARIA (for #a11y)

  4. #WebHID

Gets criticised for it and defends his proposal on HN: https://news.ycombinator.com/item?id=34612696

(Correct link to the Google Doc is in bottom comment by Hixie)

smallcircles,
@smallcircles@social.coop avatar

"This document proposes to enable browsers to render web pages that are served not as HTML files, but as Wasm files, skipping the need for , , and parsing in the rendering of the page, by having the , , and APIs exposed directly to . To enable developers to continue to use the wider range of APIs exposed on the web, a mechanism to "escape" to a JavaScript environment would need to be made available as well."

generic, to webdev

2023 update:

Still trying to figure out* why who insist on in demand empty declaration appendixes** in declaration blocks.

  • Progress has been pretty slow in the last decade.
    ** I’m really picturing body parts here, thank you.

aral, to programming
@aral@mastodon.ar.al avatar
mattwilcox, to random
@mattwilcox@mstdn.social avatar

The amount of trouble I have with JS's dataset because in my mind it reads more as "data set" as in "set the data value" than "a set of data values".

I always try element.data.whatever when I need element.dataset.whatever because I'm trying to READ a data attribute on an element but dataset cognitively doesn't seem like a read operation, but a write one.

This is the trouble with language design. "set" the math term is not as common as "set" the english action term.

mattwilcox,
@mattwilcox@mstdn.social avatar

While I'm talking of English language in programming language design:

#JS should be setAttribute and unsetAttribute. Or addAttribute and removeAttribute. Because those are proper English language pairings.

But no, we have removeAttribute and setAttribute in JS, so you have to remember both instead of remembering one and logic the other out.

mcc, to random
@mcc@mastodon.social avatar

I continue to feel that this feature cluster is worse than being tracked by cookies from tracking pixels. Tracking pixels I at least have a reasonable understanding of when and why I get tracked: A website I visit can track me, and I can control this by what I do and don't block. If this is "topics" the browser seems to be gathering information independently and just volunteering it. That's creepier than creepy
https://mastodon.social/@rmondello@hachyderm.io/110379170600324295

dmarti,
@dmarti@federate.social avatar

@mcc If your site has any 3rd party #JS on it, then a 3rd party script can insert a Topics API iframe and JS in the iframe can call Topics API to track your users. In order to prevent this you can set a Permissions-Policy header:

https://github.com/h5bp/server-configs-nginx/pull/323

aral, to programming
@aral@mastodon.ar.al avatar

There are times I think JavaScript (and Node.js) do deserve their reputation…

(Ok, ok, I don’t, but what is this, really?)

“Date.prototype.toISOString called on incompatible receiver [object Date]”

smh

#nodeJS #javaScript #js #web #dev

aral,
@aral@mastodon.ar.al avatar

So in case anyone was following this: it appears that built-in objects like Date in JavaScript have some internal magic (read: inconsistencies)* that means you can’t proxy them as you would normally.

More info: https://codeberg.org/small-tech/jsdb/issues/5

Not sure if this is fixable in #JSDB. The “solution” might be to discourage use of Date objects and instead persist timestamps. Which is, quite frankly, a pain in the ass.

I’ll keep looking for a workaround…

  • internal slots

#nodeJS #javaScript #js #web #dev

aral, (edited )
@aral@mastodon.ar.al avatar

Right, implemented workaround for JavaScript’s Proxy / Date object incompatibility in JavaScript Database (JSDB)¹ and released in version 3.0.2².

Calling methods on persisted Date objects read back into memory now works as it should.

Workaround (diff): https://codeberg.org/small-tech/jsdb/commit/9e039e76f7a149df2fa7ecbbf626f813e44c0ab2
3.0.2 update (diff): https://codeberg.org/small-tech/jsdb/commit/f212566f8da4327d0b91d81e8cc6f5058ce63c47

Kudos to Pravin Divraniya for https://stackoverflow.com/a/57958494

¹ https://codeberg.org/small-tech/jsdb
² https://www.npmjs.com/package/@small-tech/jsdb

#JSDB #JavaScript #JS #database #SmallTech #Date #Proxy #web #dev

wesruv, to programming

To all those button, cta, and layout #webcomponents. I made you a meme.

#JS that can be replaced with #CSS needs to meet some Bobs.

lea, to programming

When writing about HTML/CSS/JS, how would you embed interactive demos into articles?

I consider to do something like using figure and figcaption elements, use an iframe inside the figure with the demo, add description and also provide the link to the code inside figcaption.

With #js enabled, it could maybe progressively enhance to a widget with html/css/js/result panels.

#html

MartinSmaxwil,
@MartinSmaxwil@digitalcourage.social avatar

@lea

I often put the code directly into the #HTML of the article. In most CMS (if you use one?) there are plugins to add individual #CSS and #JS to each article.

In #WordPress I use the "scripts and styles" plugin. If I want to display the code as well, I use additional <pre> elements.

Example article with interactive HTML/CSS/JS snippets: https://medienmarmela.de/colorpicker/

The WP plugin: https://de.wordpress.org/plugins/scripts-n-styles/

Jax_, to javascript

I couldn't find an offline browser based text editor so i made one myself! Its pretty bare bones and requires you to manually unregister the service worker but it works! (I'll try to make it so you dont have to eventually)

https://textedit.labbolab.repl.co/

Features:

Plaintext editor

You can upload files

You can also download the text

Offline use!

Works on mobile!

#JavaScript #js #WebDev #dev #development #html #webtools #programming

(If you find this helpful please boost this! (no pressure of course ^^))

anatudor, to programming

So... stupid #JS question: how can I copy a string to clipboard in Safari?

Tried:

navigator.clipboard.writeText(myString)

This works in Chrome & Firefox, but navigator.clipboard is undefined in Safari.

window.clipboardData is also undefined in Safari.

So... how can I do it?

Thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines