@damselfly@fosstodon.org
@damselfly@fosstodon.org avatar

damselfly

@damselfly@fosstodon.org

Free, open source, cross-platform server-based #photo management system, written in #dotnet 7 & #Blazor. Developed by https://mastodonapp.uk/@markotway and designed for https://mastodonapp.uk/@PumpkinBeth

This profile is from a federated server and may be incomplete. Browse more on the original instance.

khalidabuhakmeh, to webassembly
@khalidabuhakmeh@mastodon.social avatar

Spicy take, but I think #Wasm will save #dotnet.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh Not unless MSFT fix hot reload.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh little bit.

Nothing I wrote is untrue though!

damselfly,
@damselfly@fosstodon.org avatar

@jaykul @khalidabuhakmeh you're missing the point. It's an excuse to rant about how shit hot reload is. Anything else is besides the point. 😉

Image from Microsoft SwiftKey Keyboard

damselfly, to random
@damselfly@fosstodon.org avatar

Wait, how is it that Rider doesn't have a gui option in the solution template to created a hosted blazor app?! (cc @khalidabuhakmeh)

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh That's what I was doing, new solution.....

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh ah. Weird, because I dropped onto the command line and created a hosted wasm app using dotnet new -ho. I have .Net 8 installed and it's what I'm using....

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh Cool. So maybe the UI should take account of this and offer me the option if I have 7 installed?

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Blazor may have created a slight communication problem within the community. Someone sent me an email asking for “Blazor” help, and I have no friggin’ clue which variant they are talking about.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh The number of threads in r/Blazor where the first reply is (or should be) "are you referring to blazor server or blazor wasm?" is about 70%.

mez, to blazor
@mez@mastodon.nz avatar

If I have to resort to Wikipedia to understand your product naming conventions and history, I just feel like either you aren’t doing a great job organising your product, or it isn’t ready for primetime.

I’m honestly still not sure what problem for is solving aside from C# / backend developers don't want to learn front-end code (understandable, I didn't want to learn C#) or use untyped JavaScript (solvable, calm down).

Yay, the C# ties to the FE, is that really that good?

damselfly,
@damselfly@fosstodon.org avatar

@TimPurdum @mez this. I picked blazor precisely because the whole js/yarn/npm etc ecosystem is awful. Really horrible. I have a 500k LoC app with a very rich dynamic UI that has about 100 lines of Javascript in it, and that, for me, is a huge win.

Having compile time type checking for client, server and the comms between them is a massive win in terms of error reduction and consistency. Sure, you can do it in JS or TS but it's harder and not as fully integrated.

peterdrake, to CSharp
@peterdrake@qoto.org avatar

Java:

HashMap<Integer, String> m = new HashMap<>();
m.put(1, "one");

C#:

Dictionary<int, string> d = new Dictionary<int, string>();
d.Add(1, "one");

Okay, fine so far...

Java:

String s = m.get(1);

C#:

String s;
m.TryGetValue(1, out s);

damselfly,
@damselfly@fosstodon.org avatar

@peterdrake @flq why not edit your original post then? Or delete it, since it's now rendered pointless?

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

👋 folks, when was the last time you used an event handler in your codebase?

Think “timer.Interval+= DoStuff”.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh @davidwengier Yeah, seen some really nasty ones where Dispose was declared, to unhook the handler, but because

@implements IDisposable

Wasn't declared on the razor component, they never get called. Asked MSFT to add an analyser (if a dispose method is declared, but the class doesn't implement IDisposable, it should warn). They said no. I think Rider does it though!

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh @davidwengier Nice. I know so many people that have been bitten by it, and there's probably a Plethora of memory leaks in place today because people don't realise.

Here's the issue that MSFT nope'd.... https://github.com/dotnet/aspnetcore/issues/40638

damselfly,
@damselfly@fosstodon.org avatar

@davidwengier @khalidabuhakmeh Thanks. Or maybe Javier should have redirected the issue instead of just closing it.... 😉

I don't care any more though because VS for Mac is dead, so the fact that Rider warns me solves the issue. Feel free to raise on my behalf though!

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Hey folks, actually any folks, what do you think the “future" of software development practices and tools will look like in 5 years?

I'd love to hear your thoughts.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh Hoping I'll have retired by then, so won't care. 😉

But given that not much has changed in the last 20 years, probably similar to what we have today.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh Nothing of consequence. Once you've been in software for 35-40 years like I have you realise there's very little that's new under the sun.

Computer graphics are better, and compile times faster.....

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh @maartenballiauw I did pair programming in my first job in 1993....

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh @maartenballiauw No, in the same room. We didn't have video calling in those days.

Does that make a difference?

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh @maartenballiauw True. But again, I worked in a team split between London and NYC in 1998.

I guess my point is, some of the ways we do things change. Cellphones were brand new when I started work. But really, nothing changes, it's basically the same, but with different or better tools.

damselfly, to blazor
@damselfly@fosstodon.org avatar

Anyone got any ideas why I can't debug my app in @JetBrainsRider on MacOS?

It's a hosted WASM app, running 8 RC2. If I use 'run' it starts fine, but if I choose 'debug' I get this odd URL, and then an error.

Debugs fine in VS for Mac. Any ideas?

(cc @khalidabuhakmeh)

image/png

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh But..... How does one set the url/port then?!

Anyway, I'll have a play.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh Nope, it's a standard MSFT way to do it. App.Urls is the standard way per their docs.

Rider should support this, really, since VS for Mac and VS for Windows do.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh And env vars are evil.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh Have a look at this issue: https://github.com/dotnet/aspnetcore/issues/43703 - you found and suggested the fix last time (!!!).

Also mentioned here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-7.0#get-started

I think Rider should probably work with this way of configuring URLs.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh The reason I have that line is because the port defaults to 6363, but can be overriden be users by specifying it on the command line. I don't want to have to deploy a config file etc. I don't want to use env vars. As far as I've found, there is no other way to have the port configured via the command line.

For the moment I've pushed a change to that branch which disables that line when the debugger is attached. Seems to work.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh This is useful, thanks.

damselfly,
@damselfly@fosstodon.org avatar

@khalidabuhakmeh I'll give it a go.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • thenastyranch
  • ethstaker
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • GTA5RPClips
  • rosin
  • megavids
  • cubers
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • khanakhh
  • normalnudes
  • Durango
  • modclub
  • tester
  • provamag3
  • Leos
  • lostlight
  • All magazines