cuchaz, to random
@cuchaz@gladtech.social avatar

Once again I get foiled by switching languages. :blobcatfacepalm2:

In Javascript, you have to compare strings with ===, not ==, or else you'll run into type coercion problems, because Javascript thinks 1 == "1" is a totally fine thing to be true. (it's not)

But in Kotlin, === compares identity not equality for strings. But in the JVM, string values are aggressively cached, so === actually does what you want most of the time. Unless your strings come from weird places, like JNI code. Then you get awful non-deterministic behavior that's incredibly hard to debug, but it totally goes away when you use the correct comparison operator == for strings.

sigh I'm not really as good at this whole programming thing as I should be by now.

happyborg,
@happyborg@fosstodon.org avatar

@cuchaz
Programming is hard.

A skill is choosing systems and tools that make it easier and making meta choices to enable you to maximise your agency in those choices.

I remember the pain I endured learning #nodeJS a decade ago, then looking at #Angular [shudder] and #React hmm.

Then the pleasure that followed learning to use #Svelte and #Rust. You'd have a hard time getting me to use anything else now. Not happening.

My debut Rust project is now part of debian / Ubuntu.

"===" 🤣
#RustLang

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
geoffrich, to svelte
@geoffrich@front-end.social avatar

#Svelte 5 is now in the "Release Candidate" phase: https://svelte.dev/blog/svelte-5-release-candidate

"This means that the design of the framework is largely settled, with no anticipated breaking changes between now and the stable release, and that the most egregious bugs have been stomped.

"It doesn't mean that it's ready for production, or that nothing will change between now and 5.0. But if you've held off on dabbling with Svelte 5 during the public beta phase, now is a great time to try it out."

kristin_baumann, to svelte
@kristin_baumann@vis.social avatar

Some D3 canvas and Svelte fun with the Mandelbrot fractal :)

First time trying out @viz_hub: https://vizhub.com/kristinbaumann/mandelbrot_fractal

mauve, to svelte
@mauve@mastodon.mauve.moe avatar

Brushing up on #Svelte to do code reviews for a project and I gotta say it's pretty magical. :P

https://svelte.dev/docs/svelte-components#script-3-$-marks-a-statement-as-reactive

davidbisset, to opensource
@davidbisset@phpc.social avatar

portr is an #opensource ngrok alternative designed "for small teams looking to expose development servers on a public URL".

#webdev #development #Svelte

https://github.com/amalshaji/portr

wiredprairie, to svelte
@wiredprairie@mastodon.social avatar

I'm following the ARIA authoring practices from the W3 for web components I'm writing for a #Svelte app.

I've been experimenting with lots of companies' web sites and component libraries.

It's disappointing how much variation there is in support (even from big companies). Many have wrongly applied anti-patterns and have failed to cover even 25% of the documented patterns.

A lot of component libraries do the minimum and still claim #a11y. 🤬 Trust these after verification.

#WebDev #A11y

happyborg, to rust
@happyborg@fosstodon.org avatar

Major progress on my first Autonomi demo app today. I'm sooo happy 😄

This proves that all the tricky but essential parts work together, so now I can add features and improve the operation knowing that effort won't be wasted.

It also already shows that we can build cross platform apps (desktop and mobile) with a web front end that use the #Autonomi #Rust APIs using #Tauri and your web framework of choice. Which for me is #Svelte

#RustLang #p2p #security #decentralization #dApps

kristin_baumann, to svelte
@kristin_baumann@vis.social avatar

𝗗𝘂 𝗕𝗼𝗶𝘀 𝗗𝗮𝘁𝗮 𝗩𝗶𝘀𝘂𝗮𝗹𝗶𝘇𝗮𝘁𝗶𝗼𝗻 𝗦𝗼𝗰𝗶𝗲𝘁𝘆 𝗖𝗵𝗮𝗹𝗹𝗲𝗻𝗴𝗲 - 𝗪𝗲𝗲𝗸 𝟵/𝟭𝟬. My re-creation of Du Bois' poster no. 51 implemented with D3 & Svelte. Once more close to the original and responsive.

Live Version: https://du-bois-challenge-2024.kristin-baumann.com/#challenge9
Github: https://github.com/kristinbaumann/du-bois-challenge-2024

#DuBoisChallenge2024 #d3 #svelte #dataviz #datavisualization

schizanon, to webdev
@schizanon@mastodon.social avatar

I built this POC to demonstrate how I'd use CustomEvents to implement Signals. Please criticize my approach and tell me why I need a native browser API for this.

https://card-calc.surge.sh/

#webDev #javaScript #signals #observable #frontend #customEvents #events #svelte #preact #rxjs

inautilo, to javascript
@inautilo@mastodon.social avatar


Comparing JavaScript frameworks (Part 1) · Let’s compare the template languages of the frameworks https://ilo.im/15yeds


happyborg, to svelte
@happyborg@fosstodon.org avatar

I haven't worked with #Svelte for a long time and am immediately reminded of how much I like it. 😃

I'm building a cross-platform demo (native) app which will work on Windows, MacOS, Linux and Android out of the box, using #Tauri.

It needs to be native so I can access a #Rust API to talk to a #p2p backend (#autonomi).

If you've not used Svelte I encourage you to give it a try. It is intuitive and the online docs, examples and REPL make learning by doing a breeze. Which is my style. #RustLang

kristin_baumann, to svelte
@kristin_baumann@vis.social avatar

Du Bois Data Visualization Society Challenge - Week 7/10: My recreation of Du Bois' poster no.47, done with D3 & Svelte. Again I tried to recreate it as close to the original as possible, make it responsive and added a pattern fill to match the hand-painted look.

Live Version: https://du-bois-challenge-2024.kristin-baumann.com/#challenge7
Github: https://github.com/kristinbaumann/du-bois-challenge-2024

happyborg, to svelte
@happyborg@fosstodon.org avatar

I'm looking again at static website builders now that Safe Network is happening (beta this month, launch in October).

I was set up to deploy my blog simultaneously to web and Safe Network using but sadly that is no longer maintained (but still works).

So I'm working on one using my favourite . Also trying , a WYSIWYG site editor which looks interesting. Not the best UX but could help a lot of folks get online, on web and the .

symfonystation, to javascript
@symfonystation@phpc.social 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

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

https://newsletter.mobileatom.net/frontend-madness/

kristin_baumann, to svelte
@kristin_baumann@vis.social avatar

Du Bois Data Visualization Society Challenge - Week 6/10: My recreation of Du Bois' poster no. 54, done with D3, Svelte. Again I tried to recreate it as close to the original as possible and make it responsive.

Live Version: https://du-bois-challenge-2024.kristin-baumann.com/#challenge6

Github: https://github.com/kristinbaumann/du-bois-challenge-2024

alephoto85, (edited ) to programming Italian
@alephoto85@livellosegreto.it avatar

[Tutorial] Introduzione/Benvenutə in Svelte

@programmazione

Svelte è uno strumento per la costruzione di applicazioni web. Come altri framework per interfacce utente, consente di costruire l'applicazione in modo dichiarativo con componenti che combinano markup, stili e comportamenti.
Questi componenti sono compilati in piccoli ed efficienti moduli JS che eliminano il sovraccarico tradizionalmente associato ai framework UI.

@vikkio 🙏

https://learn.svelte.dev/tutorial/welcome-to-svelte

kristin_baumann, to svelte
@kristin_baumann@vis.social avatar

Du Bois Data Visualization Society Challenge - Week 5/10: My recreation of Du Bois' poster no. 13, done with D3, Svelte. Added a pattern fill to match the hand-painted look & transitions on load.

Live Version: https://du-bois-challenge-2024.kristin-baumann.com/#challenge5

Github: https://github.com/kristinbaumann/du-bois-challenge-2024

mandrasch, to svelte
@mandrasch@social.tchncs.de avatar

Discussed my current painpoints with a bit in Craft Discord. Coming from a Components perspective, the Developer Experience is just not as good currently. Things take much more effort to set up, you need to understand Includes vs. Embeds vs. Macros. This is a general PHP CMS challenge of course. 🤷 On the other hand: You get SSR easily without wild cloud setups in PHP 😉 🤓

Posted about components here if: https://github.com/twigphp/Twig/issues/3951#issuecomment-1970764587

andre, to svelte
@andre@fedi.jaenis.ch avatar

Thanks to the amazing effort by @laxla we can now inspect in proper Hebrew:

https://anvil.codeberg.page/anvil/?path=/story/organisms-loginform--plain&globals=locale:he

I broke a little with idioms here insofar as I have Pages merely pass a context object into a component.

This in turn allows me to utilise to describe the interface in different configurations (I have tests in place as well).

It's still early days but we tackle one page at a time to build up this (F2 for short).

In case you are interested in translating, hit me up. Be warned that things might move around or get dropped. I prefer early feedback to easily correct course if needed.

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

I’ll be giving a talk on #Svelte 5 at CascadiaJS this summer alongside a bunch of other great speakers. Hope to see some of you there!

https://cascadiajs.com/2024

pascal, to CSS
@pascal@moth.social avatar

I have blogged again, this time about animating SVG stroke properties with CSS to create fireworks. https://www.pascal.com/diary/2024-02-23-animating-svg

#svg #css #svelte #sveltekit

alter_unicorn, to random
@alter_unicorn@masto.bike avatar

Je viens de recevoir l'appel que j'attendais avec impatience.
C'est non. Pas de nouveau job.

J'ai envie de chialer.

BlueCut,
@BlueCut@mastodon.social avatar

@MlleEllute

Non, on cherche un dev web senior :|

(Le 1er projet est en #Svelte, #SvelteKit, mais à partir du moment où la personne est senior, maîtrise un framework JS, et peut conseiller nos clients en termes d'architecture, c'est ok.)

Courage pour ta recherche @alter_unicorn 💪

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