Functional Web Components (positive-intentions.com)
from xoron@mastodon.social to programming@programming.dev on 29 Sep 07:25
https://mastodon.social/users/xoron/statuses/113219648766019804

Functional Web Components

https://positive-intentions.com/blog/dim-todo-list

Github: https://github.com/positive-intentions/dim

Demo: https://dim.positive-intentions.com

Follow for more!

@programming @opensource @learn_programming @javascript

#programming

threaded - newest

umt@lemmynsfw.com on 29 Sep 07:42 next collapse

Why not simply use elm?

xoron@mastodon.social on 29 Sep 07:52 next collapse

@umt

Elm is good.

For this project I specifically wanted to use web components, but in the style of React.

There is no practical use case for this "UI framework". It's a personal learning process.

umt@lemmynsfw.com on 29 Sep 07:56 collapse

Cool. Learning is good.

TehPers@beehaw.org on 29 Sep 08:01 collapse

The previous article in the series has a couple paragraphs at the start to introduce the idea and why:

Modern JavaScript frameworks like React JS and Vue JS have popularized the functional programming paradigm and declarative approaches to web app development. While these frameworks have made creating dynamic web applications more accessible, it’s worth exploring the potential of web components in this landscape.

To me it seems more like an exploration and PoC for the purposes of learning than a real alternative to any particular frontend library, but that’s just my interpretation. The subject is interesting anyway, even if I won’t do this myself in a real world project at work.

refalo@programming.dev on 29 Sep 15:20 next collapse

I can see how there might be usecases for stuff like this in big enterprise developments that change their design often and/or have lots of different departments of people working on the site, but in all the webdev I have ever done myself in my almost 30 years of work in it, I have never had any need for more than hand-written html, css and javascript. That and simple template systems like django/jinja have worked quite well for me and always perform far better than these big frameworks.

wake_up@lemmy.world on 30 Sep 13:23 collapse

Hey there! Just checked out Dim and gotta say, awesome job! It’s super cool to see functional web components in action, and your todo list app is both sleek and practical. Love how you laid out the project on GitHub too, really easy to follow.

I’m curious, what inspired you to create Dim in the first place? Also, any tips for someone new to web components? Keep up the great work, looking forward to following your updates!