rauschma, to javascript
@rauschma@fosstodon.org avatar

Is there a good linter for package.json (package exports, etc.)?

lukem, to javascript

Implicit conversion and falsy values and never stop being fun for skewed reasons.

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.

jbzfn, (edited ) to random
@jbzfn@mastodon.social avatar

"JavaScript programers know that, no matter how hard they try, errors will emerge in unusual situations. In Elm that doesn't happen. If there is a slightly possibility of a problem, the compiler will show where and how it can occur and will force you to deal with all possible situations. It's like programming with someone helping you all the time not to screw up!"
➥ Marcio Frayze


https://dev.to/marciofrayze/why-is-elm-such-a-delightful-programming-language-2em8

nucliweb, to javascript
@nucliweb@webperf.social avatar
larnius, to webdev
@larnius@mastodontech.de avatar

Day 44 of is complete, including the milestone project, and I am exhausted. Some concepts of still baffle me, and I will need to reflect on some of the things the instructor did here. It's the forward-thinking that confuses me because it seems like the code is almost ready in his head before he types it out. Perhaps this is just a form of muscle memory for coding or something similar.

davidbisset, to javascript
@davidbisset@phpc.social avatar

Working with URLs with vanilla with the new URL() constructor.

https://gomakethings.com/working-with-urls-with-vanilla-javascript/

fabi1cazenave, to javascript
@fabi1cazenave@mastodon.social avatar

Dear lazyweb, I’m having an opportunity to ditch some + nightmare and replace it with a minimalistic library. Would https://reef.js be a good option ? Or should I try to push or instead ?

aral, to programming
@aral@mastodon.ar.al avatar
dunglas, to php
@dunglas@mastodon.social avatar

We currently have some very talented (Symfony / API Platform) and (Vue, React, and Next) developers available (🇺🇸/🇫🇷).

If you need a hand, contact us! contact@les-tilleuls.coop

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 . 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

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

kevinctofel, to programming
@kevinctofel@hachyderm.io avatar

Swimm looks very useful for code documentation.

“How well does Swimm’s new IDE plugin - which lets you create docs right inside your IDE - fare in addressing the internal documentation problem for developers? A review.” https://javascript.plainenglish.io/my-honest-review-of-swimms-official-vs-code-extension-c5041ef0b4ad

Edent, to javascript
@Edent@mastodon.social avatar

A question for and nerds.

Why doesn't importScripts() use Sub-Resource Integrity?

janriemer, to rust

Oh, this looks fantastic! ✨

library to compare strings (or any sequences). 25+ algorithms, pure Rust, common interface, support.

https://github.com/life4/textdistance.rs

Based on popular and battle-tested textdistance library (and written by the same author).

Apparently, it also takes algorithms from the library, which I wished for to be written in Rust.

https://github.com/Yomguithereal/talisman

itnewsbot, to javascript
@itnewsbot@schleuss.online avatar

Watch a Web Page Fetch Itself Over TLS, Complete With Commentary - TLS, byte by byte performs an unusual and interesting function: it fetches itself ... - https://hackaday.com/2023/05/21/watch-a-web-page-fetch-itself-over-tls-complete-with-commentary/

emTr0, to programming

Hello, infosec.exchange!

Just moved my account over. Getting more involved with as my general direction for a potential career transition. Looking forward to connecting here but feel free to reach out through my other social profiles and chat apps!

Some of my other relevant tags:

🤓

rauschma, to javascript
@rauschma@fosstodon.org avatar

: The legacy package.json property "module" points to the ESM entry point.

Is that property still needed if there are conditional package exports (*)?

My guess would be no because all bundlers now support package exports.

(*) https://nodejs.org/api/packages.html#conditional-exports

janriemer, to javascript

When you develop a library for the JS ecosystem - be it , , whatever, do the community a favor and implement it in .

And no, I don't want to have a loosly dangling d.ts file somewhere. Go TypeScript natively!

I can't use your beautiful Vue js component in my Vue TS app, because it doesn't provide typings for it's slots! 😠

larnius, to webdev
@larnius@mastodontech.de avatar

After working on my for two days, I finished day 43 of , and I'm afraid I need to review a lot of . Today's task was the game mechanics of the tic-tac-toe game, and I felt lost a lot during the lecture. It's time to repeat some stuff, but that's okay, and I look forward to really understanding the missing parts. https://media.giphy.com/media/TxfiuS0wWx7eyB2fbT/giphy.gif

anders, to javascript
@anders@mastodon.cyborch.com avatar

Hot take:

/** @type {number[]} */
let years

Is objectively worse than:

let years: number[];

If I want type safety in my then I’ll just use .

To me, avoiding a transpiler step isn’t a goal in itself, and it’s definitely not worth that many extra keystrokes every single time I define a variable.

From: @micmath
https://fosstodon.org/@micmath/110390630178016649

davidbisset, to javascript
@davidbisset@phpc.social avatar

List.js is a little library that adds search, sorting, and filters to HTML lists and tables.

https://listjs.com/

rauschma, to javascript
@rauschma@fosstodon.org avatar

:

let a = 3, b; // comma is part of let
let a = (3, b); // comma operator
a = 3, b; // comma operator

How to check if a comma is the comma operator (CO):

  • CO complains if a variable does not exist. let creates a new local variable binding.
  • Look at the source code in AST Explorer (which calls the comma operator “SequenceExpression”): https://astexplorer.net/
kentbrew, to javascript
@kentbrew@xoxo.zone avatar

A year and a half post Pinterest I still feel a happy rush when I find a page full of embedded Pins. https://insanelygoodrecipes.com/dill-recipes/

  • 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