16
submitted 1 month ago by engelsaxons@hexbear.net to c/linux@lemmy.ml

So I've done a bunch of application development in windows in C# and Java, and while Java stuff is pretty similar in Linux with Swing I'm not as confident in C# there (not too familiar with Mono), but I also want to diversify a bit too. Any recommendations?

you are viewing a single comment's thread
view the rest of the comments
[-] bruce965@lemmy.ml 1 points 1 month ago

If it makes sense for your software, please consider giving it a web interface and turning it into a localhost-only web-service.

[-] engelsaxons@hexbear.net 3 points 1 month ago

Not averse to the idea, but why so? What's the advantage?

[-] bruce965@lemmy.ml 1 points 1 month ago

Good separation between business logic and UI without effort, cross-platform UI in any language, possibility to turn it into a web-accessible service in the future, great choice of UI frameworks and battle-tested components if you decide to go for a web framework and language.

As an example of a successful software that followed this approach: Synchthing. All versions run a local web service in the background. The Desktop version just opens a browser on the index page. The Android version is a native app that calls the exposed REST API on localhost, bypassing the web UI.

As an example of a much more complex software, albeit not FOSS: EasyEDA. It's a web software, but it also comes as a desktop app (which I never tried) which I assume is not much more than a frame for the web view.

My recommendation: write the UI with React on Vite in TypeScript, and write the business logic in your general purpose language of choice (mine would usually be C#).

this post was submitted on 18 Sep 2024
16 points (94.4% liked)

Linux

48080 readers
789 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS