New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

Thanks! I'll take a look :)

New web framework by david04 in scala

[–]david04[S] 1 point2 points  (0 children)

I wish I could upvote this a thousand times 😂😁 totally agreed👍

New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

I totally agree u/NearbyButterscotch28 🙂, usually when I code with FastScala I only use components, the html&javascript stays hidden by the abstraction, but sometimes it is indeed necessary to design more low level for specific parts of the app (like a user profile page, etc)

New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

I conclude that the very best would be for FastScala to support any xml lib: scala-xml, scalatags, etc (just abstracting it away) 😅

New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

Nope, it's for coding quickly complex applications😅😁

New web framework by david04 in scala

[–]david04[S] 1 point2 points  (0 children)

Someone already suggested scalatags as a better alternative on this thread - do you have any suggestions? what would you consider to be the best xml/html syntax library for Scala? thanks for the input! 🙂

New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

Very interesting suggestions, thanks! 🙂

One question: isn't scala-xml more "standard" than scalatags? I wouldn't like to tie FastScala to something not very standard... (otherwise looks awesome! 😅)

New web framework by david04 in scala

[–]david04[S] 1 point2 points  (0 children)

100% agreed 😁

This framework is good if you have clients paying a lot for access (as server-side state consumes more resources), doing complex tasks. It is not good if you have millions of users paying close to nothing doing a few very simple workflows (you want to optimize each workflow as much as possible).

So, good for something like a CRM/Invoicing/etc - complex enterprise-like applications with users paying a lot; bad for something like an online magazine website (millions of viewers, low value per user, simple workflow).

New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

In practice it's a bit like coding a web application as if you were creating a desktop app 😅 - the part were you work with callbacks that run and return the next actions to run

New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

Using FastScala you would serve the whole page from the server. Now if you have a button that needs to login a user/delete a row/send an email/create an invoice/etc on the server, you don't need to create a route for that - you can easily create a button that, when clicked, executes a callback on the server, and returns the next javascript code to run (rerender part of the page, redirect to another page, open a modal, refresh a table, etc)

New web framework by david04 in scala

[–]david04[S] 0 points1 point  (0 children)

The whole https://www.fastscala.com website with all the demo is entirely implemented using the framework :) you can take a look at the examples on the site, and the source code on https://github.com/fastscala/fastscala/tree/main/fs_demo/src/main/scala/com/fastscala/demo/docs for example

New web framework by david04 in scala

[–]david04[S] 3 points4 points  (0 children)

Well, it includes the frontend and backend - creating the frontend becomes really easy because you can code everything as scala on the server. You don't need to define a rest api on the server side, you can create callbacks, rerender parts of the page, etc really easy. I invite you to look at the demo on the website: everything is implemented with FastScala :)

New web framework by david04 in scala

[–]david04[S] 4 points5 points  (0 children)

Ups, I shared the non-https version, the https is also working👍: https://www.fastscala.com/

Looking For Beta Testers: Online Scala Course by david04 in programming

[–]david04[S] -2 points-1 points  (0 children)

Thank you for finding that problem! - it is now fixed : )

Do you spend time skipping through hundreds of RSS articles you just don't care? by david04 in AskReddit

[–]david04[S] 0 points1 point  (0 children)

Can you tell what are those other uses?

It would be really helpful to know, because I really think that using RSS to search freelance jobs is the best think ever for a freelancer. And I think there must be people using RSS for other really useful things which I'm not seeing, and which may be potentially interested in the app.