this post was submitted on 30 Aug 2023
195 points (98.0% liked)

Programming

17326 readers
170 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] sunbytes@lemmy.world 116 points 1 year ago (10 children)

I always forget VS Code is a different thing to VS.

Don't scare me like that.

[–] nekusoul@lemmy.nekusoul.de 63 points 1 year ago (2 children)

*different thing to VS for Mac, because Microsoft had to give three entirely different products the same name.

[–] monk@lemmy.world 24 points 1 year ago (1 children)

VS for Mac was really just a renamed Xamarin Studio too.

[–] Trivial@programming.dev 4 points 1 year ago

Which is a continuation of MonoDevelop.

[–] sunbytes@lemmy.world 5 points 1 year ago

Oh wow I had no idea haha

[–] catalyst@lemmy.world 3 points 1 year ago

Same jeez this headline scared me!

load more comments (8 replies)
[–] wth@sh.itjust.works 30 points 1 year ago (3 children)

Well… this is pretty crappy.

I built a Xamarin app (mac/iOS) because I wanted portability to windows. Then I was forced to upgrade to .net 6/7 because of a library I needed, and that meant upgrading to .Net for Mac/.Net for iOS (which is part of MAUI, but not using MAUI UI controls). MAUI is definitely undercooked at the moment.

What an awful and painful process, but I’m finally there… and they drop the main IDE for development. Damn.

VSCode doesn’t have a visual UI designer (well… neither does VSMac, but it does prepare a copy of your project and opens XCode for editing the storyboard/images, and copies changes back). So does this mean they will add that to VSCode? Or will we all have to switch to raw edits of XML to create UIs like you have to do with MAUI? Ick.

Developing GUIs for windows using MS tools is a lesson in frustration, especially when you want to have cross platform capabilities… WPF -> WinForms -> Xamarin -> Xamarin.Forms -> MAUI/.Net for {Mac,iOS}… Not to mention UWP… Each transition is a rewrite. Damn.

[–] TerrorBite@meow.social 34 points 1 year ago (7 children)

@wth @Spyros We need one universal graphical tool kit that works everywhere!

GTK: Hi, I heard you're looking fo—
Me: NOT YOU

[–] LaggyKar@programming.dev 11 points 1 year ago (2 children)
load more comments (2 replies)
[–] JackbyDev@programming.dev 2 points 1 year ago (2 children)
[–] TerrorBite@meow.social 3 points 1 year ago (1 children)

@JackbyDev oh damn wish I'd thought of that

[–] JackbyDev@programming.dev 1 points 1 year ago

Electron never forgot you :(

[–] Heavybell@lemmy.world 3 points 1 year ago

GTFO Electron, I hate you :P

load more comments (5 replies)
[–] abhibeckert@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (1 children)

What an awful and painful process

Yeah... that's why almost nobody uses Xamarin. The fast approaching train if you're invested in Xamarin (for others, the light at the end of the tunnel) is SwiftUI which is the first good SDK designed to create cross platform user interfaces.

SwiftUI isn't on Windows yet - but it's coming.

[–] wth@sh.itjust.works 8 points 1 year ago

Its hard to make a commercial decision for something that’s coming someday. But I hope it does arrive - I like Swift as a language (OMG - it was such a pleasure after the ugliness that is Objective C).

[–] realharo@lemm.ee 3 points 1 year ago (1 children)

This may not be a popular opinion, but if the app is large enough, just use Electron.

[–] wth@sh.itjust.works 2 points 1 year ago (1 children)

I really like the idea of having a web UI for its portability and richness (esp thanks to CSS being so close to consistent across all platforms). But I have a metric tonne of business logic and ZKE code in C#/.Net running on Mac/iOS. From your prompt, I did just find Electron.Net, so perhaps there is hope.

And, AFAICT, electron can’t be used for iOS apps on the App Store (am I still wrong about that??)

Plus (personal bent) I did a ton of JavaScript years ago when truthiness and indeterminate behaviour was rampant back in ES5 days. I’m a purist and found it a little ugly, but incredibly fast. Then I found dart which compiled to JS, and I decided that JS made a better assembly language than a usable language. Sadly dart has remained a minor player. JS has moved on and I see lots of the old ugliness (like iterating through properties, exceptions and a sync) has gone away. ES13 looks pretty good, although I haven’t played with it yet.

[–] VeryNiiiice@sh.itjust.works 3 points 1 year ago (1 children)

Have you looked into Flutter? It uses Dart and can compile to native apps for android, ios, windows, Mac, Linux, and web.

[–] wth@sh.itjust.works 1 points 1 year ago

After I saw your note, I had a quick catchup on that project.

It looks awesome, with the promise of mobile and desktop, and the ability to make apps that can be uploaded to the AppStore. Plus its Dart which is a pretty well structured language. Its ticking a lot of boxes…

Then I ran « wc -l » on my support libraries (i.e. not UI code) - 64k LoC that would need to be rewritten in dart. But then I noticed Flutnet. its probably an abomination linking the two… but it could be promising.

Thanks for the pointer.

[–] dingleberry@discuss.tchncs.de 27 points 1 year ago (8 children)

Is this supposed to give me confidence in .Net MAU?

[–] loics2@lemm.ee 20 points 1 year ago (1 children)

Well at this point, don't trust any framework Microsoft pushes. They told everyone UWP was the future for Windows after WPF, then stopped for WinUI and the app SDK...

[–] gk99@beehaw.org 6 points 1 year ago

The problem with UWP is that nobody liked or wanted it, so obviously it died. Developers got locked into a walled garden, Xbox users saw no benefit (until recently with emulators, but I digress), Windows phone users practically didn't exist to build apps for, and PC gamers got the real short end of the stick with everything becoming a buggy, locked-down, performance-hampering, feature-lacking mess.

Outside of letting Microsoft half-ass port some Xbox titles to PC, it was pretty much useless.

[–] BaskinRobbins@sh.itjust.works 10 points 1 year ago

I feel dumb for falling for the Xamarin.Forms train. I have zero confidence in any MS UI framework including Blazor.

[–] Spyros@programming.dev 4 points 1 year ago

I have started using Avalonia, and even though I am still learning, I am very satisfied with it. There are growing pains obviously, but as you said, I have no confidence in Microsoft UI frameworks.

[–] TehPers@beehaw.org 1 points 1 year ago

MAUI is an open source project that's a part of the .NET Foundation. One would hope that instills a bit more confidence, but I have yet to see any projects actually using it. Regardless, it's forkable and permissively licensed (MIT), so the lifetime is theoretically indefinite.

load more comments (4 replies)
[–] charlybones@programming.dev 25 points 1 year ago (1 children)

In my previous company I used VS for Mac, it wasn’t a great experience… but it was better than nothing. Then along came a Rider license…

The tooling for VS Code might have improved, but Rider is the IDE of choice… even on windows.

[–] catfish@lemmy.ml 1 points 1 year ago (1 children)

What are the benefits of Rider over CLion?

[–] Matthew@programming.dev 17 points 1 year ago (2 children)

Rider is for C# development.

[–] starman@programming.dev 2 points 1 year ago (1 children)

And F#, don't forget F# :)

[–] Matthew@programming.dev 5 points 1 year ago

Why shouldn't I forget F#? Everyone else does. :')

[–] catfish@lemmy.ml 1 points 1 year ago

It's pushed by Jetbrains as a C++ IDE for Unreal developers. https://www.jetbrains.com/lp/rider-unreal/

[–] mintiefresh@lemmy.ca 9 points 1 year ago (1 children)

Darn. I was really hoping it would improve.

I guess I can just use VS Code for now. And maybe use Rider in the future.

[–] wth@sh.itjust.works 3 points 1 year ago* (last edited 1 year ago) (3 children)

Rider doesn’t support MAUI. Nor does it support .net for iOS and .net for Mac which are part of MAUI and the natural upgrade from Xamarin. I downloaded Rider a few months ago and enjoyed being able to switch between VSMac and Rider, and especially enjoyed using CoPilot in Rider.

However Rider has a couple of nasty bugs that have been there for years - one of which was to ignore breakpoints. That came and went on me for a while.

load more comments (3 replies)
[–] revs@feddit.uk 7 points 1 year ago (1 children)

Not surprised after the the main VS Mac developer left MS a few months ago.

[–] lemann@lemmy.one 4 points 1 year ago

I'm not surprised lol.

At my workplace I occasionally do work on an AutoCAD lisp add-in, half the time I don't know what I'm doing when something isn't quite working right 😭

My manager is tempted to drop support because none of us really know what we're doing with it... the original dev is long gone and none of us know LISP

[–] TheBestAdmin@social.pluto.lat 2 points 1 year ago

How long did it survive?

[–] cybervoid@lemmy.world 1 points 1 year ago (1 children)

They should just port the standard VS or finally work on bootcamp for ARM.

[–] abhibeckert@lemmy.world 1 points 1 year ago

You can run an insider preview version of Windows on Apple Silicon Macs (can't boot yet, but you can run it in a VM).

load more comments
view more: next ›