JavaScript

ecmascript_news,
@ecmascript_news@mastodon.online avatar

Rspack v0.7.1: up to 15% faster JavaScript parsing
https://github.com/web-infra-dev/rspack/releases/tag/v0.7.1

ecmascript_news,
@ecmascript_news@mastodon.online avatar
ecmascript_news,
@ecmascript_news@mastodon.online avatar

ECMAScript 2024 features: resizing and transferring ArrayBuffers
@rauschma
https://2ality.com/2024/06/array-buffers-es2024.html

ecmascript_news,
@ecmascript_news@mastodon.online avatar

Prettier 3.3: better formatting for import attributes, property keys, template interpolations, etc.
https://prettier.io/blog/2024/06/01/3.3.0.html

ecmascript_news,
@ecmascript_news@mastodon.online avatar

Turborepo 2.0: new terminal UI, watch mode, new documentation and more
https://turbo.build/blog/turbo-2-0

ecmascript_news,
@ecmascript_news@mastodon.online avatar
ecmascript_news,
@ecmascript_news@mastodon.online avatar

regex: template tags that help with creating RegExps and provide advanced features
https://github.com/slevithan/regex

#ECMAScript #JavaScript

ecmascript_news,
@ecmascript_news@mastodon.online avatar
ecmascript_news,
@ecmascript_news@mastodon.online avatar
64bithero,
@64bithero@mstdn.games avatar

Anyone else here tried using Vite to create an SDK for other apps to use ?? Struggle bussing getting it to render anywhere externally :hmm_cat:
#developer #vite #javascript #help

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

I’m about to make many developers feel very old. Apologies in advance.

https://mootools.net/

nemeciii, (edited )
@nemeciii@mastodon.social avatar

@khalidabuhakmeh I was more into http://prototypejs.org/

When I started pushing web in 2002 we had none of these, just unstable JS and some poor CSS.

leanpub,
@leanpub@mastodon.social avatar

You Don't Know JS Yet: Get Started: Get to know JS https://leanpub.com/ydkjsy-get-started by Kyle Simpson is the featured book on the Leanpub homepage! https://leanpub.com @getifyX #ebooks #Javascript #WebDevelopment #ComputerScience #SoftwareEngineering

cspray,
@cspray@phpc.social avatar

One time I found some in an app that was constructing a full blown SELECT statement in SQL, sending it to the server, and then blindly executed on that server.

It is still the most glorious, beautiful code I've ever seen.

ramsey,
@ramsey@phpc.social avatar

@cspray This sounds like a Good Thing™.

simon,
@simon@simonwillison.net avatar

@cspray I did that once for a project as a joke (against a read-only SQL API) and found it was actually a really neat way to rapidly iterate on my project!

You can view source on https://sf-trees.com to see a demo of the pattern I built

siblingpastry,
@siblingpastry@mastodon.world avatar

TIL that range modifications on the window selection object are asynchronous, eg. removeAllRanges().

This can lead to race conditions, but the methods don't return a Promise, so if the timing matters you have to use selectionchange as a callback trigger.

baumannzone, Spanish
@baumannzone@techhub.social avatar
keithjgrant,
@keithjgrant@front-end.social avatar

@baumannzone This has to do with how floating point numbers are stored (essentially, they’re fractions, not decimals). This occurs in most programming languages, not just JS. Look up “floating point rounding error”

keithjgrant,
@keithjgrant@front-end.social avatar

@baumannzone Here's python doing the exact same thing

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