Web Programming in D

aberba karabutaworld at gmail.com
Tue May 21 15:46:56 UTC 2024


On Tuesday, 21 May 2024 at 14:02:18 UTC, Lance Bachmeier wrote:
> On Tuesday, 21 May 2024 at 09:37:42 UTC, aberba wrote:
>
>> Naa, htmx is niche too (except on hackernews). Along with many 
>> others in the same bucket.
>
> That's what makes it a good target for D. What are the odds 
> that an enterprise unwilling to use htmx would be open to using 
> D? Maybe it's greater than zero, but it's small enough that 
> you'd run into issues with floating point precision.

After working in the industry for long, I honestly doubt an 
app-like front-end will be easy to build by spitting html from 
the server alone. I've done it, it doesn't scale easily. The kind 
of front-end I work on are like gui development for native apps 
but on the web with so many interactions and dynamic actions that 
it'll be almost unmaintainable with raw browser DOM APIs or 
jQuery. You'll need some kind of component model.

There's a reason why many SaaS apps opt for dedicated front-end 
frameworks/libraries and  decoupled back-end from front-end. The 
alternative works for smaller apps but it becomes difficult to 
scale, test and maintain eventually. I've worked with companies 
where I had to migrate their front-end to React to make it easier 
to build an app-like experience. The component model abstraction 
used my most Js frameworks really works.

Now I agree the JavaScript ecosystem has gone nuts with the noise 
and oversaturation which eventually leads to Js fatigue, but 
that's what you get with popularity. I hate it too. I hope to 
move to using D professionally for backend someday.




More information about the Digitalmars-d mailing list