mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.9K
active users

#js

10 posts10 participants1 post today

Dans cette vidéo, découvrez comment #publier une #application web #statique (#HTML, #CSS, #JS) sur la #Forge des communs numériques éducatifs #LaForgeEdu, sans serveur (ni PHP, ni Node).

À partir d’un modèle de site simple disponible sur la Forge.

🔗tube-sciences-technologies.app

Nous verrons comment :
- #bifurquer le dépôt vers son propre espace,
- personnaliser le titre et les paramètres du projet,
- remplacer les fichiers du modèle par ceux de son application,
- effectuer un commit,
- activer la publication dans l’onglet "Pages" pour générer un lien public simplifié.

Un tutoriel pas-à-pas pour mettre rapidement en ligne ses propres ressources pédagogiques. 😉

Just learnt a really big lesson in NextJS - not every component has to be set to the fancy factory components.

Like for example, I had a simple URL shortener app. Initially, I had set <Link />, pointing to the https://url/shortcode.

The consequences of this was that the link kept getting preloaded, and the buttons incremented on every page reload.

<a /> fixed this.

When writing #rust I always put parentheses around if statements like this:

if (sth_is_true) {}

instead of just going with:

if sth_is_true {}

Seems like my brain isn't able to switch between #JS and Rust in this regard.

The more I make something using AlpineJS, the more I like it.

Sometimes you don't need to figure it out with Vue. You only need some AlpineJS magic and that's it, no need to spin up a whole Vue framework on the page.

Add that to Livewire and Filament PHP and you're all set to create small utilities without hacking your way into the frontend.

This month's performance hero is a person after my own heart – someone who is passionate about building a secure, accessible, performant web for EVERYONE, and who always leads with a deep compassion for users. Let's all join in celebrating Alex Russell (@slightlyoff)!

speedcurve.com/blog/performanc

SpeedCurveSpeedCurve | Performance Hero: Alex RussellOur newest performance hero is passionate, provocative, and unapologetically honest. Join us in celebrating Alex Russell!

TIL the innerText property represents the *rendered* text, not the actual text in the DOM - for that you need textContent. So if you've uppercased your content with #CSS it will also be uppercase.

I just spent way too long debugging why the #Shopify predictive search breaks if I update the styling of the search button!

Compare your #webapps and see how much memory and CPU they are using.
Oh wonder #SPAs are more prone to memory eating, by nature, there is more dynamic page content, more #JS. Already the base memory footprint is double that one of an MPA.
Just check out the your browser's task manager. #devtools
And in doubt #usetheplatform, or in other words: HTML and CSS are powerful tools and solve more problems than some may think. Try to think simple(r).

Folks who #website: I'm trying to create a slice'n'dice-able #data #table -- somewhat like instances.vantage.sh/ with the per-column client-side search/constraint/etc. FWIW my data's a discrete JSON file.

I'm allergic to JavaScript insofar as I have zero idea what I'm doing with it (and *can't* do anything with it, myself) but will happily copy'n'paste it as needed.

Got any pointers? #websites #HTML #datadriven #javascript #js #webdev #WebDesign #WebDevelopment #dataviz

instances.vantage.shAmazon EC2 Instance ComparisonA free and easy-to-use tool for comparing EC2 Instance features and prices.