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

Want strong typing without a build process?

(Hint: you don’t need to use TypeScript.)

  1. Use a modern editor like Helix Editor or VSCodium that supports the TypeScript Language Server (LSP).

  2. Add this line to the top of your JavaScript file (without the backticks, if you see any):

// @ts-check  
  1. Go read up on JSDoc ;)

¹ https://helix-editor.com
² https://jsdoc.app/about-getting-started.html

imrehg, to linux
@imrehg@fosstodon.org avatar

So far the tax filing season is going "well" for me in . I downloaded their latest required plugin for smart card readers on from the official site at https://moica.nat.gov.tw/rac_plugin.html and it seems to be breaking excellently with a error.

deebloo, to programming

Custom elements give your server the opportunity to describe javascript behavior via HTML. It sounds silly but it is really cool. https://github.com/joist-framework/joist/tree/main/packages/di#context

janriemer, to programming

If you thought had a crazy then you probably haven't heard of yet (by kaleidawave):

Introducing Ezno:
https://kaleidawave.github.io/posts/introducing-ezno/

"In short, it is a featuring checking, and for building full-stack (rendering on the client and server) websites."

Ezno in '23:
https://kaleidawave.github.io/posts/ezno-23/

This type system is craaaazyyy!🤪

Can't wait for 1.0! :awesome: 🚀

larnius, to programming
@larnius@mastodontech.de avatar

Day 40 of was the start of my capstone project. Now, I am creating a website to play tic-tac-toe on. So far, so good. Day 41 will be more -heavy to implement the game's function.

https://media.giphy.com/media/WvuqMbytwDbbkMfxGa/giphy-downsized-large.gif

kepic, to programming
kepic avatar

Functional JavaScript

Hi, as a beginner, I'd appreciate any guidance. Links to in-depth discussion, examples, and summaries would be great. I'm pretty fine with overall, and have used some FP features, but strict FP is new to me.

SuitedUpDev, to programming
@SuitedUpDev@mastodon.online avatar
itnewsbot, to programming
@itnewsbot@schleuss.online avatar

Deno 1.33 debuts built-in key-value database - With newly published Deno 1.33, the project’s developers are preparing users of the Ja... - https://www.infoworld.com/article/3694935/deno-133-debuts-built-in-key-value-database.html#tk.rss_all .js

daanderson, to rust

Greg Johnston, maker of the front-end framework Leptos in , has a great explainer on the performance costs/benefits of and whether Rust applications can beat out apps.

In short: yes, but… ready for it… "it depends."

TL;DR: most WASM apps will beat out native JS apps, potentially even things like Svelte, but one major hurdle for WASM is a lack of code splitting. Up-front load times is the current cost for native-like run time speed. https://www.youtube.com/watch?v=4KtotxNAwME

ctietze, to programming
@ctietze@mastodon.social avatar

JS private class fields considered harmful https://lea.verou.me/2023/04/private-fields-considered-harmful/ by @LeaVerou @LeaVerouDev

privste attributes don't work with a popular convention to duplicate objects for reactive streams, proxy objects. So if you want your library to be compatible, you need to abstain from using private fields. 🫡🪦

ivan18rod, to fediverse

Once I get a stable job, I'm thinking of setting up a Mastodon/(Miss/Calc/Found)key server for me and my immediate family (which), but I'm debating on whether or not to go the route or go the route; I know that Misskey may be easier to use because it only uses for its stack compared to Mastodon using JavaScript and for its stack. I'm also debating what policies to implement to moderate my server; I will for sure adopt my current server's rules with a few edits, but I don't know what other rules I should enforce and how to enforce them.

What do y'all think?

mttaggart, to programming

Reposting here for my new server friends: this playlist will explore from both an / perspective, as well as a developer's perspective. It's incredible the gap between these two worlds, but having been in both, I think JS is often misunderstood. https://www.youtube.com/playlist?list=PLlfDtLAF5S2RQtfb5eaxMxcfdOeswVVk2

rauschma, to programming
@rauschma@fosstodon.org avatar
blacklight, to programming

WTF ?

> t = 0.002  
0.002  
> t/86400  
2.3148148148148148e-8  
> parseInt(t/86400)  
2

nosherwan, to programming
@nosherwan@fosstodon.org avatar

🕸️ 📦
Reactive state in Native Web Components:

Anyone not using Lit framework, how do you manage reactive state inside native web components?

I am learning about Astro & Web Components.

I have seen examples where javascript proxy objects can be used to updated reactive state in a native web component.

Are there any elegant solutions being used by anyone in this area?




infosec_jobs, to infosec
@infosec_jobs@mastodon.social avatar
ssoper, to programming
@ssoper@noc.social avatar

question for other devs out there. is there a way to get the predictability of reproducible versioning between dev and deployed without having to lock down your package.json to exact versions? concern is that locking down versions now introduces a quarterly upgrade cycle that sucks up dev time. i'm also not a fan of dependabot's yarn.lock only updates.

this whole convo started w/ 13.3.1 release with a nasty bug.

seblammers, to programming
@seblammers@vis.social avatar

I finally pushed myself and published my personal website:

https://sebastianlammers.com/

It's where I experiment with all things web, like esp. and most often in the context of or similar forms of visual storytelling.

I have also put my first blog post up, where I share some notes on in javascript:
https://sebastianlammers.com/posts/data-in-js-00

It's a multipart post aimed to be very beginner friendly.

Enjoy!

daanderson, to rust

I’ve been watching out for languages that could encroach on JavaScript’s power domain (the browser) for awhile. Since Node, it’s been able to play on other language’s turf, but not the other way around.

The idea that could compete with on its home turf is one that I’ve watched carefully. The blocker seemed to be WASM bindings; that is, JS was still fastest at working the DOM.

That may no longer be the case.

https://joshmo.bearblog.dev/can-rust-beat-javascript-in-2023/

jtk, to rust
carlton, to programming
@carlton@fosstodon.org avatar

If anyone's got chops, thoughts on the best way to make a module available to require() from a PyPI installed package would be welcome on this ticket:

https://github.com/carltongibson/neapolitan/issues/8

npm link? NODE_PATH?
I'd very much like to avoid "Separate NPM package".

Folks must have done this. There must be a decent pattern 🤔

Ta!

nosherwan, to programming
@nosherwan@fosstodon.org avatar

🌐
Why you should Invest in
Web Components:

A very well written article, that argues why it is the best time to invest in Web Components rather than anyone else's flavor of the month Front End Framework.

https://blog.bitsrc.io/web-components-are-dead-long-live-web-components-1de76ab4890d




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

Just released ()¹ version 3.0.0

Breaking change²: data is now evaluated in virtual machine contexts.

If you were persisting custom objects³ and referencing classes from global scope (globalThis) to have your objects keep their types when read, you must now explicitly register your list of custom classes using the new classes property of the options object when calling JSDB.open().

¹ https://codeberg.org/small-tech/jsdb#javascript-database-jsdb
² https://codeberg.org/small-tech/jsdb/src/branch/main/CHANGELOG.md#3-0-0-2023-04-28
³ https://codeberg.org/small-tech/jsdb#custom-data-types

chrisminnick, to programming
larnius, to programming
@larnius@mastodontech.de avatar

Day 39 of is done, and it was again all about the four different kinds of loops in in action. The sheer amount of helper constants is kind of overwhelming for me, and I think I'll have to repeat some of the lectures before moving on. Day 40 up to day 40 are a milestone project, so I will find out quite quickly how well I understood all the control structure stuff...

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