ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
voxpelli, to javascript
@voxpelli@mastodon.social avatar

Published a new version of my "buffered-async-iterable" module: https://github.com/voxpelli/buffered-async-iterable/releases/tag/v1.0.0

It can now return the result in order (at cost of performance of course) and it also got a new method: mergeIterables(), which interweaves values from multiple async iterables in parallel

#npmRelease #javascript #asyncGenerators #performance

jutty, to RSS
@jutty@bsd.cafe avatar

I have this blog set up and ready for writing using a bare, classic web stack with no framework, no static site generator, just html/css files and some short scripts in JS and OCaml.

The only thing I feel is missing is an RSS feed. Presently I am feeling very inclined to just rolling my own RSS using the very same stack (a text editor and scripts) instead of switching to some SSG just to get an RSS feed. Something tells me that this is a sinful, heretic thought.

Ideas welcome on how to avoid such heresy. Encouragement to just do it also welcome.

#rss #atom #blogging #javascript #ocaml

Floppy, to javascript
@Floppy@mastodon.me.uk avatar

experts, I need advice. I'm trying to extend a class in order to override a method or two. It defines everything in its constructor, and I can't work out how to use anything in the original class from my new one.

Could anyone suggest to me how syntactically I should minimally replace onKeyDown and handleKeyDown with my own versions, while still being able to use functions and properties from the base class? I'd really appreciate the guidance!

Code: https://github.com/mrdoob/three.js/blob/885c2dbab575e6528464e096784680d19914c3f3/examples/jsm/controls/OrbitControls.js

rauschma, to javascript
@rauschma@fosstodon.org avatar

If you were to write flash cards for (as standardized via ECMAScript)—what would you put on them?

Ideas:
– Standard library API—e.g.: What does Array.prototype.splice() do?
– Functionality: How to destructively add a value at the end of an Array?

eyeofmidas, to threejs
@eyeofmidas@mastodon.gamedev.place avatar
medicalbilling, to javascript
@medicalbilling@mstdn.social avatar

Can I hit 200 followers today?

I am looking to #Connect with people who are interested in:
Coding
Web Development
Front End
Back end
React/Nextjs
Javascript/Typescript
Tailwind CSS
UI/UX
Open Source
Software Development

#letsconnect #buildinpublic #javascript #development

sirber, to javascript
@sirber@fosstodon.org avatar

Nice! runtime works on non AVX2 cpu now!

leanpub, to graphics
@leanpub@mastodon.social avatar

D3 Start to Finish: Learn how to make a custom data visualisation using D3.js. https://leanpub.com/d3-start-to-finish by Peter Cook is the featured book on the Leanpub homepage! https://leanpub.com #Graphics #Javascript #D3JS #DataScience

develwithoutacause, to javascript
@develwithoutacause@techhub.social avatar

: Always use === over ==.

=== applies much more reasonable behavior for operands of different types, mainly by not coercing them together like == does.

A lot of developers will tell you to learn the rules of coercion and use it when appropriate, however I disagree for one key reason. Consider this example:

if (foo == bar) {  
 doSomething();  
}  

Question: Did the developer mean to use ==? Is the coercion intended or a typo?

It's incredibly difficult to know with any amount of certainty as this depends on the types and semantics of foo and bar.

If I was writing this intentionally, I would feel compelled to write a several line comment about how coercion behavior applies here in a desirable way. And if you need to write that much explanation, it would be much less confusing to actually codify the desired behavior with === and explicit type checks so devs don't have to understand that coercion.

nixCraft, to random
@nixCraft@mastodon.social avatar

As a developer, what one thing would you never admit to anyone? 🤔

msgood531,

@nixCraft that I use a loosly typed programming language

(hypothetical example obviously)

#javascript

khalidabuhakmeh, (edited ) to webassembly
@khalidabuhakmeh@mastodon.social avatar

I thought I would take up the challenge of getting @enhance_dev #WASM working with #aspnetcore with the ability to SSR web components directly into the request pipeline.

Yep... it works. TagHelpers make this nice and natural part of the #dotnet web stack. #webcomponents #web #javascript

Update: You can try it out for yourself at this #GitHub repo. https://github.com/khalidabuhakmeh/EnhanceWebComponents

kubikpixel, to webdev
@kubikpixel@chaos.social avatar

Oh look, in the future I won't have to worry about the invisibility of dialog boxes on websites because of their overlay.

☝️ Popover API
https://developer.mozilla.org/en-US/docs/Web/API/Popover_API


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?

almet, to javascript French
@almet@tutut.delire.party avatar
inautilo, to music
@inautilo@mastodon.social avatar

#Development #Surprises
Printing music with CSS Grid · A fantastic showcase of what CSS Grid is capable of https://ilo.im/15yrr6


#Music #MusicNotation #CssGrid #WebDev #Frontend #SVG #HTML #CSS #JavaScript

mobileatom, to javascript
@mobileatom@me.dm avatar

Explore our article: Frontend Madness: SPAs, MPAs, PWAs, Decoupled, Hybrid, Monolithic, Libraries, Frameworks! WTF for your PHP backend? https://symfonystation.mobileatom.net/Frontend-Madness-JS-PHP-Backend

symfonystation, to javascript
@symfonystation@newsletter.mobileatom.net avatar
jtruk, to demoscene
@jtruk@mastodon.social avatar

Thanks @outline for adopting the demoparty timezone switcher code, and best wishes for an excellent, and fruitful party!

https://outlinedemoparty.nl/timetable/

(spot any issues with the time switching? Let me know for fixing, please!)

Repo: https://github.com/creativenucleus/jtruk-timezoner.js

#demoscene #javascript

ehmicky, to programming
@ehmicky@fosstodon.org avatar

We just released Execa 9, which is our biggest release so far.

If you're currently using Execa, you should check out the new features! Also, if you're currently using zx or Bun shell, you might be interesting in this alternative.

https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f

#nodejs #node #javascript #js #cli #terminal #console #bash #shell

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

It’s easy to get confused about how to work with element properties in vs. how to work with element attributes in .

@jaffathecake to the rescue!

In this article, Jake talks about value types, serialization, reflection, case sensitivity, and a host of other interesting details.

https://thathtml.blog/2024/05/props-v-attributes-go/

stvfrnzl, to Astro
@stvfrnzl@mastodon.online avatar

Inspired by @matthiasott great newsletter: has anyone experience implementing #webmentions with @astro?

Here's his article: https://buttondown.email/ownyourweb/archive/issue-14/

And here's what I found but couldn't test yet: https://kld.dev/adding-webmentions/

#ssr #StaticSiteGenerator #astro #html #css #JavaScript #WebDev #Frontend #IndieWeb

stvfrnzl,
@stvfrnzl@mastodon.online avatar

Hey @marcuslindblom, do you have by any chance documented how to make #webmentions work with #astro?

I'm no #JavaScript and #NodeJS wizard so I'm currently stuck. Plenty of #11ty tutorials out there, but they're not helping me haha

kubikpixel, to webdev
@kubikpixel@chaos.social avatar
kubikpixel,
@kubikpixel@chaos.social avatar

7 JavaScript language elements every developer needs:

Here's what beginning and experienced developers need to know about working with JavaScript's array, for loop, forEach, map, reduce, substring, and switch.

🔧 https://www.infoworld.com/article/3715393/7-javascript-language-elements-every-developer-needs.html


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