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 #JavaScript vs. how to work with element attributes in #HTML.

@jaffathecake to the rescue!

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

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

toxi, (edited ) to typescript
@toxi@mastodon.thi.ng avatar

New demo (and last new test case) for the upcoming https://thi.ng/geom release (and related packages): Here parsing a SVG path, converting to an SDF, deforming the SDF and sampling/converting the SDF back into SVG at multiple contour levels... all in just a few lines of code!

Demo:
https://demo.thi.ng/umbrella/geom-sdf-path/

Source:
https://github.com/thi-ng/umbrella/blob/develop/examples/geom-sdf-path/src/index.ts

(Ps. I will add more comments to the example tomorrow...✌️)

geoffrich, to javascript
@geoffrich@front-end.social avatar

I remember seeing a chart/site somewhere comparing adoption of major framework versions based on npm downloads, e.g. React 16 vs 17 vs 18 or Svelte 3 vs 4 vs 5. Anyone have a link to it?

I don't think it was just frameworks, but other packages like Redux or routers as well.

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

🚩 🚩 🚩 🚩 🚩 🚩

alexelcu, to programming
@alexelcu@social.alexn.org avatar
joelanman, to javascript
@joelanman@hachyderm.io avatar

This feels a bit wonky to me. You can't use const like this:

try {  
 const myVar = myFunc(options)  
} catch (error) {   
 console.error(error)  
}

console.log(myVar)  

as myVar doesn't exist outside the try scope. So if you need to do a try catch, you have to use let - even if you actually want to use the variable as a const (not change it later)

let myVar  
try {  
 myVar = myFunc(options)  
} catch (error) {   
 console.error(error)  
}

console.log(myVar)  

#javaScript

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

What’s genuinely shocking about isn't the complexity of the ecosystem but the fact that it's flooded by services that tie building apps to subscription services.

It's hard to find a tutorial that doesn't immediately tell you to sign up for Service X to make things work.

That’s a big red flag for me.

stvfrnzl, (edited ) to legal
@stvfrnzl@mastodon.online avatar

Currently studying for the exam and I found the part surprisingly interesting. This topic was also relevant in a workshop I gave, so here's a couple of law suits that are related:

https://stevefrenzel.dev/posts/five-web-accessibility-law-suits/

I'm happy to expand this list if you know other interesting cases. 🤗

nshki, to webdev
@nshki@ruby.social avatar

Hi fediverse. My name is Nishiki and I’m a web dev with 15+ years of experience. I’m making myself available as a mentor for one or two motivated individuals looking to land their first junior engineering position. I’m happy to be able to say over the past few years, I’ve mentored 4 wonderful people who have all managed to land their first tech jobs.

Please email me at hello@nshki.com if interested. A boost for reach is much appreciated!

chriskrycho, to typescript
@chriskrycho@mastodon.social avatar

The first of my two talks—this one, born out of my experiences with versioning and and over the past 7 years. Script and slides now, video once it’s up! https://v5.chriskrycho.com/elsewhere/cutting-edge-of-versioning/

tixie, to CSS
@tixie@guerilla.studio avatar

round(), mod(), sign(), abs()CSS functions aren't in Chromium based browsers yet (only on Firefox and Safari) 😭
'tHaveNiceThings

https://caniuse.com/mdn-css_types_round
https://caniuse.com/mdn-css_types_mod
https://caniuse.com/mdn-css_types_sign
https://caniuse.com/mdn-css_types_abs

So… do you know if there ways to add some JS "polyfilling" (?) those functions to be able to use them in prototypes/technical demos. To allow everyone to be able to display them correctly no matter their browsers instead of just displaying a "only works on recent Firefox and Safari" banner?

haskell, to haskell
@haskell@fosstodon.org avatar

Update n°28 from the GHC team at IOG:
https://engineering.iog.io/2024-05-02-ghc-update/

Highlights:

  • Binary sizes for each backend in GHC's CI and their dependencies are tracked

  • Haskell Optimization Handbook has gotten a new chapter on the perf(1) utility

  • & codegen have gotten some more love

davidbisset, to javascript
@davidbisset@phpc.social avatar
aral, to javascript
@aral@mastodon.ar.al avatar

Just published a minor update (version 5.1.1) to JavaScript Database (JSDB) that optimises the custom data type¹ serialisation code by removing a redundant return statement:

https://www.npmjs.com/package/@small-tech/jsdb

This change is backwards compatible and shouldn’t require and updates to your projects, including the ones you have in Kitten (which uses JSDB internally).

¹ https://codeberg.org/small-tech/jsdb#custom-data-types
² https://codeberg.org/kitten/app

#JavaScriptDatabase #JavaScript #database #JSDB #Kitten #SmallWeb #NodeJS #web #dev

ashleycollinge, to python
@ashleycollinge@mountains.social avatar

Anyone have any web frontend recommendations? I've only ever used HTML/JS, but I'd like to use a framework to maybe make things simpler/quicker(?) I come from a Python background if that helps! #python #web #frontend #javascript #development

kerfuffle,
@kerfuffle@mastodon.online avatar

@ashleycollinge

Before picking any framework, I think CSS is most important. After that, I'd go for htmx (and use your Python knowledge for the SSR) as I think that's where the web should go, and for Angular / React if you want to get paid right now.

#python #web #frontend #javascript #development

davidbisset, to microsoft
@davidbisset@phpc.social avatar

Why I 🧡 the web:

Flying planes in Flight Simulator with a autopilot

https://pomax.github.io/are-we-flying/

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar

Vitest 1.6.0: faster “forks” pool, comparing benchmark results, and more
@vitest
https://github.com/vitest-dev/vitest/releases/tag/v1.6.0

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar

nrr: minimal, fast npm script runner
https://github.com/ryanccn/nrr

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
kubikpixel, to webdev
@kubikpixel@chaos.social avatar
kubikpixel,
@kubikpixel@chaos.social avatar

Modern current code should run asynchronously if possible and useful. Slowly but steadily, it is being implemented in almost all popular programming languages, including WebDev.

»New Disposable APIs in Javascript«

🔧 https://jonathan-frere.com/posts/disposables-in-javascript/


#webdev #javascript #api #disposable #js #async #asynchrone #programming #code #moderncode #coding

andros, to emacs
@andros@hostux.social avatar

I publish a new article: «Creating desktop applications using the Emacs core»
https://programadorwebvalencia.com/creating-desktop-applications-using-the-emacs-core/

In summary, I can use Emacs to create GUIs with an Elisp backend.

mjgardner,
@mjgardner@social.sdf.org avatar

@andros @marcolas The point is your architecture is the same as #ElectronJs, replacing embedded #NodeJs and #Chromium running #JavaScript with embedded #Emacs running #Elisp.

So every app using it has all of #Electron’s disadvantages:
• lowest-common-denominator #GUI obviously foreign to the host OS
• non-portable shims to integrate with host OS features
• an individually bespoke runtime consuming storage, memory, and compute as if it were a separate virtual machine

mjgardner,
@mjgardner@social.sdf.org avatar

@andros @marcolas Web applications use to shoehorn themselves into an environment designed to browse hyperlinked documents.

And “ applications” (e.g., Org Mode, Gnus, calendar/diary, ERC, and even multiple web browsers!) use to shoehorn themselves into an environment designed to edit text documents.

You’re so blinkered by the ubiquity of apps shoehorned inside apps that you’ve forgotten the compromises they introduce.

mjgardner,
@mjgardner@social.sdf.org avatar

@boo_ @andros I didn’t foresee anyone turning Google’s #Chrome browser #JavaScript engine V8 (2008) into the server (#NodeJs, 2009) and desktop (#ElectronJs, 2013) runtimes that ate the world, but here we are.

And Electron was originally developed for #GitHub’s #Atom text editor (2008) before they were acquired by #Microsoft in 2018, subsequently discontinued in favor of #VSCode in 2022.

Don’t tell me what you can’t see happening if you don’t remember what already did

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