premartinpatrick, to Twitch French
@premartinpatrick@mastouille.fr avatar

On s'occupe de la partie serveur du site de loterie à partir de 10h30 sur ma chaîne . Codage en maintenant que la partie / et est bouclée.

RDV sur https://www.twitch.tv/patrickpremartin pour y assister.

Hier j'ai fait un peu de , ce ne fut pas si laborieux que ça. Voici comment seront choisis les numéros de ticket de loterie par les participants : https://youtu.be/vdTp7XzNmBE

eldamir, to javascript
@eldamir@hachyderm.io avatar

How to check and make sure that a data is null in #javascript ?

#lol

davidbisset, to javascript
@davidbisset@phpc.social avatar

Five Basic Things About #JavaScript That Will Help Non JavaScript-Focused Web #Designers
https://frontendmasters.com/blog/5-things-designers-can-do-with-javascript/

henrikjernevad, to javascript
@henrikjernevad@mastodon.social avatar

Another leak in the JavaScript single-threaded facade (or a bug in Jest, really).

Asserting expect(...).toStrictEqual(...) fails with two structurally identical objects created by two different Node worker threads because their prototypes are not the same (though identical). Asserting expect(structuredClone(...)).toStrictEqual(structuredClone(...)) works.

#javascript #typescript #jest

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

Here’s a niche gotcha with the clipboard API’s navigator.clipboard.writeText() method that’s unique to Safari:

If you access a function from a module within your gesture handler (e.g., click handler), you will get a permission error.

The (sadly hacky and not as robust) workaround is to set a global variable from your module instead.

Full gist:

https://codeberg.org/aral/gists/src/branch/main/clipboard-writetext-permission-error-when-using-modules-in-safari.md

christian, to webdev
@christian@aldr.social avatar

Enhancing my JavaScript knowledge bit by bit - today with a fun short clip by @cferdinandi and @kevinpowell; explaining var, let, and const - and when/where to use them for declaring a variable.

https://www.youtube.com/watch?v=pobWEaHNChY

selfhtml, to webdev German
@selfhtml@bildung.social avatar

HELP WANTED

Auf unserer Baustellenseite finden sich alle Seiten mit ToDos. Trotzdem wollen wir einzelne Baustellen, die immer wieder auffallen, Euch hier besonders ans Herz legen:

https://forum.selfhtml.org/self/2024/mar/01/baustellen-im-wiki-helfende-hande-gesucht/1813827#m1813827

scottjenson, to ChatGPT
@scottjenson@social.coop avatar

My experimentation with #ChatGPT #Gemini + programming has been a mixed bag:
Pros:

  • It often gets it right the first try
  • It's faster to change the prompt than edit the code
  • it can explain code fairly well

Cons

  • I can ask the exact same prompt and get different code that WONT work!
  • After several iterations, the code just stops compiling
  • I frequently save revisions of files so I can upload a working file and iterate from there.
  • It's SO SLOW to wait for it to type out
scottjenson,
@scottjenson@social.coop avatar

I've been wading into code/APIs I have zero experience with and making remarkable progress. I'm thinking of it as creating a good starting tutorial.

I'm still giving it fairly tiny utility programs (I am just prototyping crazy stuff) I'm not building anything complex. But as a Designer the fact that I can build a working prototype in or so damn fast is remarkable.

edgren, to php

The more I'm thinking about it, the more I consider it.

I want to add a map for my bicycle rides, but I can't find any good PHP maps. The PHP versions of Leaflet on GitHub are no good. They don't work at all. They just gives you errors like "can't load class" or something like that.

So even if I am against it only to challenge myself, I consider using Leaflet in JS for airikr.me/biking.

Or do you have any solution in PHP that works out of the box?

#leaflet #php #js #javascript #opensource

vanilla, to programming
@vanilla@social.spicyweb.dev avatar

Last month's exclusive video at The Spicy Web demonstrating a CodePen example of Signals—what they are, how they work, and why frontend frameworks and fans of vanilla alike are adopting them rapid-fire—is now available to view for free! Check it out:

https://www.spicyweb.dev/videos/2024/signals-are-eating-the-web/

davidbures, to swift
@davidbures@mstdn.social avatar

Thanks to @dimitribouniol and @glacials, we're much closer to the next Cork release! I was finally able to implement the first version of a self-compiled check, which was the only requirement left for the next release.

As promised, both Dimitri and Ben will be getting either a free Cork license or the cash equivalent, as well as a special shoutout in the contributors sections once the feature is fully implemented.

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

slashtechno,
@slashtechno@fosstodon.org avatar

@davidbures I think the pricing model for #opensource software wherein the compiled version is a one-time purchase but people can compile it themselves is smart. However, I imagine this isn't possible with interpreted languages like #Python and #JavaScript.
If you couldn't charge for compiled versions of Cork, how else would you monetize it whilst keeping the code open source?

mobileatom, to javascript
@mobileatom@flipboard.com avatar
vanilla, to webdev
@vanilla@social.spicyweb.dev avatar

New video out on The Spicy Web! 🌶️

Here be a fresh (and tingly!) take on reaching for -first tools like htmx, Turbo, Unpoly, etc. and why you might just want to (spoiler alert!) go vanilla. 🍦 After all, we have so many great browser-native APIs at our disposal now!

Sign in or sign up via Intuitive+ to watch:
https://www.spicyweb.dev/videos/2024/ajax-back-in-action/

eikun_0903, to javascript Japanese
@eikun_0903@fedibird.com avatar
dof, to python
@dof@mstdn.social avatar

The problem with using a lot of computer languages is trying not to get them mixed up. Today I used a Python ‘F’ formatted string in JavaScript and it took quite a while to figure out why the IDE was complaining.
#Python #JavaScript

slint, to rust
@slint@fosstodon.org avatar

We're pleased to "spring" a new release, v1.6: Improved design mode, new Python packages, and enhanced accessibility. 🥳🐣

https://slint.dev/blog/slint-1.6-released

nucliweb, to javascript
@nucliweb@webperf.social avatar

I love how @lydiahallie explains and simplifies how Event Loop, Web APIs, (Micro)task Queue, works in her video series "JavaScript Visualized"

https://www.youtube.com/watch?v=eiC58R16hb8

nurkiewicz, to AWS
@nurkiewicz@fosstodon.org avatar
eyeofmidas, to threejs
@eyeofmidas@mastodon.gamedev.place avatar
ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar

Node.js and its many, many new features with Matteo Collina [89-min. video]
@mcollina @jlengstorf
https://www.youtube.com/watch?v=evCnOaVaOTo

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar

Awesome Regex: opinionated list of regular expression tools, tutorials, libraries, and other resources
https://github.com/slevithan/awesome-regex

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines