nucliweb, to javascript
@nucliweb@webperf.social avatar

14 Linting Rules To Help You Write Asynchronous Code in JavaScript

https://maximorlov.com/linting-rules-for-asynchronous-code-in-javascript/

#JavaScript #JS

tanya_shapiro, to programming

Playing around with jQuery in Quarto

Created a searchable image gallery of my featured plots 📉📊🗾

Still needs a couple of tweaks to work with lightbox, excited to see it in action! #rstats #quarto #js

Test it out: www.tanyaviz.com

video/mp4

awoodsnet, to webdev
@awoodsnet@phpc.social avatar

need a small web project to build your skills? Here’s a project idea:

create a webpage that’s an interface to multiple place holder / dummy image sites. One of the sites must be placedog.net (because dogs are awesome). Display the image from each site on your page. Start with width and height, then add controls to toggle features.

#WebDev #PHP #Python #JS #DevLife

dad, to javascript French
@dad@mastodon.eole.education avatar

Est-ce qu’un site d’information qui n’affiche rien sans peut être considéré « praticables » ?

mikestreety, to programming
@mikestreety@hachyderm.io avatar

We've had an internal linter for years, which is built on a PHP framework.

You run the linter you want and append --fix if you want it to resolve issues (if it can)

It lints things like , as well as (via and ), files and even TypoScript files - all by using the open source libraries available.

It means all our developers can adhere to central linting conventions without having to update local config files.

membook, to memes Polish
@membook@rigcz.club avatar
michael, to CSS
@michael@thms.uk avatar

https://www.smashingmagazine.com/2023/08/better-context-menus-safe-triangles/

This quite an interesting article on how to stop nested menus from closing when hovering slightly outside the straight line.

#css #js #webdev #JavaScript #svg

mvsde, to LGBT
@mvsde@mastodon.social avatar

There are so many pride flags out there and I can’t remember them all. So I built a small website with a color and pattern filter.

This is very much work in progress. The design is a bit … functional at the moment and there are probably a bunch of flags missing.

The site is built with @eleventy with a bit of vanilla CSS and JS sprinkled on top.

I didn’t even bother setting up a build process. It just works™ in modern browsers.

https://pride-flags.fynn.be

#LGBT #LGBTQIA #Pride #Eleventy #CSS #JS

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

Been doing some research into implementing migrations for Domain’s JSDB database (basically, JavaScript data structure migration) and it’s amazing to me how many of the solutions out there use semver to version databases with no good reason.

If your database requires a migration, it is a major version. Where does minor and patch even come into it? Why complicate it beyond version 1, 2, 3… etc.?

I do wish folks would stop and think for a moment before adopting things without understanding them.

aral,
@aral@mastodon.ar.al avatar

I’m actually now wondering if implementing lazy migrations at the object level is madness or not.

e.g., myDatabase.someTable.someObject.latest().someProperty

Where the latest method ensures migrations for the object are lazily run as necessary.

Of course, that would complicate authoring quite a bit because if you forgot that latest() call things would go poof!

Hmm… maybe it can be done without the explicit call since JSDB already uses proxies…

#js #database

ramikrispin, to javascript
@ramikrispin@mstdn.social avatar

(1/3) Machine Learning & Neural Networks without Libraries 👇🏼

FreeCodeCamp released today a new course focusing on building machine learning and neural networks applications without libraries using JS and Python 🚀. The course, by Radu Mariescu-Istodor, focuses on the following topics:
✅ Data cleaning
✅ Classification
✅ Working with vector and raster data
✅ Training and optimizing neural networks
✅ Deep neural networks

#js #python #machinelearning #deeplearning #neuralnetwork #DataScience

image/png
image/png

nebyoolae, to webdev
@nebyoolae@masto.neb.host avatar

I successfully hacked in a domain <select> into #AWStats so I can switch between all my different sites.

I had to remind myself how to work with...gasp...#frames.

The hack: adding a new top <frame> within a new <frameset> surrounding the existing <frameset>, and then making that new <frame>'s src equal to a basic #HTML page with a little #JS.

Take that, year 2000.

#webdev #analytics

janriemer, (edited ) to javascript

This is mad 🤯

oxc - The Oxidation #Compiler is creating a suite of high-#performance tools for the #JavaScript / #TypeScript language re-written in #Rust - by Boshen:

https://github.com/web-infra-dev/oxc

Its linter is 50 - 100 times faster than #ESLint...

https://github.com/Boshen/bench-javascript-linter

...and its parser is even 2x faster than #swc

https://github.com/Boshen/bench-javascript-parser-written-in-rust

#JS tooling goes brrrrrrrrrrr! 🚀

#RustLang #WebDev #WebDevelopment

nucliweb, to javascript
@nucliweb@webperf.social avatar

If you need a 🍪 Cookie Consent for your website, look at this lightweight & gdpr/ccpa compliant cookie consent plugin written in plain JavaScript

https://github.com/orestbida/cookieconsent

#JavaScript #JS #Cookie #GCPR #CCPA

iamdtms, to webdev
@iamdtms@mas.to avatar

Actually what is the best way to show an video in ?
Regarding:

nucliweb, to javascript
@nucliweb@webperf.social avatar

Patterns for Reactivity with Modern Vanilla JavaScript

https://frontendmasters.com/blog/vanilla-javascript-reactivity/

#JavaScript #JS

benfreu, to python

Look at my cool new sticky table of contents for blog posts. Powered by @wagtail, a bit of #python, #js, and of course #tailwindcss

video/mp4

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

It’s so cool to be able to tail your database (append-only JavaScript log¹) when playing with Kitten².

(If I do say so myself.)

The output on the right is the initial state of running the following command on your project folder to tail the domains table when the project is being served on the domain dev.ar.al:

kitten db tail domains --domain=dev.ar.al --all

:kitten: 💕

¹ https://codeberg.org/kitten/app#using-javascript-database-jsdb-a-not-so-scary-database
² https://codeberg.org/kitten/app#kitten

skwee357, to typescript

Starting a new project in other languages

  1. <buildtool> init
  2. Start coding

Starting a new project in

  1. npm or yarn?
  2. (n/y) init
  3. Add typescript
  4. Configure tsconfig
  5. Add more packages
  6. Start coding

skwee357,

@raiderrobert I wish had ecosystem similar to

  1. cargo init
  2. Start coding

You get everything: compiler, linter, formatter

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

This took me way too long to figure out…

If your #js function takes a parameter object and uses spread syntax to collect arbitrary additional properties (rest) and you want to document it using #JSDoc, the syntax is:

e.g.,

/**  
 @param {{  
 state: import('./SetupState.script.js').default,  
 [p:string]:any  
 }} parameterObject  
 @returns {string|string[]} html  
*/  
export default ({state, ...props}) =&gt; html`…`  

Solution by Alexander Lonberg https://stackoverflow.com/a/68567492

mcc, to random
@mcc@mastodon.social avatar

I sincerely believe that notification systems on desktop operating systems exist for no reason except to show ads

(media hidden for advertising)

Mina,

@mjgardner

Of course not.

What I'm referring to is: Perl used to be the Swiss Army Chainsaw of programming languages, was the language of choice for neurolinguistics and the prime language for web development.

As for scripting languages, #Python is currently the undisputed King with #JS following.

And many people hate Perl for the silly reason of not liking the $%@ sigils (which I personally like very much).

@ramankhutu @hosford42 @j3rn @railmeat @mcc

ehmicky, to programming

get-stream just had a major release v8.0.0, with lots of improvements. It is a helpful utility to return a stream's contents. It works in Node, Deno and browsers. It can set a maximum size, or return partially read data on errors.

https://github.com/sindresorhus/get-stream

#nodejs #javascript #deno #typescript #stream #js #node

marcel_jomasoft, to programming German

Updated PostgreSQL IPS packages for Solaris 11.4 SPARC are available
Versions 15.4, 14.9, 13.12, 12.16, 11.21 and 16Beta3

https://www.jomasoft.ch/downloads/#js-opensource

#solaris #oraclesolaris #postgres #postgresql

Merome, to php French

Mon fils va entrer en #master 2 "Base de données et Intelligence Artificielle". Il cherche un #stage de 4 à 6 mois à partir de janvier 2024, et éventuellement un job ensuite de préférence autour de #Dijon #Belfort #Montbéliard #Mulhouse. Il aime plutôt le #developpement #web #php #js mais toute proposition sera étudiée !

GoOz, to programming French
@GoOz@mamot.fr avatar

Je cherchais un convertisseur de vieux #JS fait avec jQuery vers du Vanilla JS, j'en teste un et ça me transforme…

$(document).ready(function() {…})

en

document.ready(function() {…})

Mon niveau de confiance pour cet outil a chuté drastiquement… 😖

abcdw, (edited ) to foss
@abcdw@fosstodon.org avatar

Through my life I have visited around 20 countries and I dream someday to write down my trips somewhere.

One of the tools I found for this matter is this nice FOSS web frontend on top of OpenStreetMaps:
https://leafletjs.com/

It doesn't mean I will go crafting some travel blog now, I just like to share cool FLOSS projects and technologies.

#foss #floss #js #web #map #openstreetmap

  • 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