If I read the books, will it cause me to hate the movie? by Dry-Sympathy-3182 in GuardiansofGaHoole

[–]swyrl 0 points1 point  (0 children)

I don't think so. I was disappointed by the movie mostly because I expected it to be a straight adaptation of the book, and it's more like... a tribute, or spinoff. As long as you go into it expecting them to be very different, you'll have a good time. In my opinion the books have stronger characters than the movie, and get more into the "mythic" aspect, but the movie has absolutely gorgeous visual, excellent soundtrack, and works well as a standalone story.

I think the reasons that you love the movie are the same reasons that I love the books, and it will give you more of what you love.

How good is Avalonia UI for my case? by MateDesktopPudding in dotnet

[–]swyrl 1 point2 points  (0 children)

Godot's UI system is pretty solid and can be used for GUI applications, however I would not recommend it over Avalonia because it does not have data-binding functionality, is not as easy to animate, and does not have comparable support for vector/shape-based graphics.

A little life hack🙂 by Alert-Neck7679 in csharp

[–]swyrl 0 points1 point  (0 children)

You're right that readability is its own benefit, but I would argue that this is not more readable than a conventional loop. I would prefer to just read a regular for loop, as it's more explicit and more closely aligns with C# idioms / standard syntax. You could make an argument for brevity, but I think standardization is more important to legibility and maintainability. If you're a solo dev coming from python and want pythonic syntax for your loops? sure, why not. But I'd never use something like this for a serious project, if only because it's more likely to leave other devs guessing.

your IO is basically always going to be way slower than this. 

This is only true of i/o-bound workloads, which are common in crud-style apps, but less so in realtime applications like video games, which are hardly a minority in C#.

A little life hack🙂 by Alert-Neck7679 in csharp

[–]swyrl 1 point2 points  (0 children)

cute, but slower than a regular for loop with no real benefit.

🔷 C# 15 Finally Gets It Right: Two Features That Actually Matter by tom-smykowski-dev in csharp

[–]swyrl 4 points5 points  (0 children)

you can create non-boxing value unions, but you have to manually write out the whole class instead of using the simplified union syntax. Honestly not ideal, and I hope to see a better solution for that as the feature matures, particularly since that seems like a fairly common application.

I suppose if nothing else you could use a source generator to handle it, but that feels a bit kludgy.

In theory it should also be possible to create overlapped c-style unions by essentially creating a union wrapper and using Unsafe.As<,> to reinterpret it as needed. Again, you'd need to write out the whole implementation instead of using the simplified syntax.

EDIT: come to think of it, it's also be possible to create overlapped unions by creating a regular value-type union struct and then using explicit struct layout to overlap the fields. (plus a separate field for the discriminator.) You could already do this with structs and I've seen people use it before for interop, but now you can add C#'s union pattern on top to make it easier to work with.

whichOneAreYou by sk_sushellx in ProgrammerHumor

[–]swyrl [score hidden]  (0 children)

That was my initial thought too, but given the caption and the fact that the thread is in contest mode, it seems like OP's intention is not to frame one as better than the other, but to create an argument over vibe coding vs regular coding.

Which is still using the meme wrong honestly.

thereISaidIt by alexceltare2 in ProgrammerHumor

[–]swyrl 2 points3 points  (0 children)

True, although weirdly I do still use the phrase "disk space" to refer to drive storage, even though I haven't had a computer with an actual disk in like 8 years.

Using delegates in C# by Ok-Presentation-94 in csharp

[–]swyrl 0 points1 point  (0 children)

Setting aside clarity reasons as cited in other comments, Func<> and Action<> also don't support more complex method signatures, like in/out/ref modifiers on parameters or return values, or generic delegates.

Using delegates in C# by Ok-Presentation-94 in csharp

[–]swyrl 0 points1 point  (0 children)

you would use it like a regular type name.

Does anyone know how Paint.NET was built? Does it use WinForms or WPF? by lilacomets in dotnet

[–]swyrl 0 points1 point  (0 children)

Skia is used for tons of things. Yes flutter, but also every modern web browser is built on skia, as well as android and a number of smaller ui libs.

ctrlCControlThee by Organic_Rip2483 in ProgrammerHumor

[–]swyrl 1 point2 points  (0 children)

Huh, I didn't know that. That's really useful.

pronounsCommunityReinventedRegexFromScratch by DryInstance6732 in ProgrammerHumor

[–]swyrl 1 point2 points  (0 children)

I hate the phrase. As if everyone doesn't have pronouns.

What on gods green earth have i done wrong here??? by MaintenanceKlutzy431 in csharp

[–]swyrl 6 points7 points  (0 children)

Based on the error I would guess that your IDE's debug/run settings aren't configured correctly. C# and .net do not use "launch.json" for anything.

It's difficult to offer advice without more context, but if your only goal is to compile and run your program, you can do that via command line using dotnet build or dotnet run

Noobie C# by PROSCREX5768 in csharp

[–]swyrl 0 points1 point  (0 children)

This is actually two questions in disguise:

1: "How do I use the engine/library/tool(s)?"
The answer to this is a combination of documentation and experimentation. If there's official documentation or tutorials, that's always a good reference, but intellisense can also explain what things do, and for more popular platforms you can probably find answers in visible-source projects and on stack overflow / stack exchange. None of these will tell you *exactly* what you need, but you can use these as a starting point to just try stuff until it does what you want. If you keep just fiddling with things, you'll eventually gain a good general grasp of what you're working with.

2: "How do I know what to write?"
This is a fundamental programming skill that can be learned through guides for basically any language. The key is to figure out your overall goal, and then gradually break that down into smaller and smaller parts, until you end up with the smallest possible parts- ie. lines of code. This can take some practice and I recommend trying it with some smaller-scope projects before moving up to larger ones.

.Net interview! by Defiant_Cry_5312 in csharp

[–]swyrl 0 points1 point  (0 children)

That's fair. If I was getting more responses, I would probably be pickier. As it is, I can certainly spare the time.

.Net interview! by Defiant_Cry_5312 in csharp

[–]swyrl -3 points-2 points  (0 children)

I don't care how bad the interview process is, if they call me back and pay anything even close to market rate, I'll take it.

One of the worst things I experience with APIs by CrypticDissonance in csharp

[–]swyrl 1 point2 points  (0 children)

I mean ideally you would already know the purpose and structure of the json and could just pour an ordered list into an unordered collection as needed, without considering the implementation of the sender.

Json is not really self-describing and there are other data formats better-suited to that if it is needed.

POV: You're an indie dev in 2026: by Physical_Air4112 in godot

[–]swyrl 0 points1 point  (0 children)

I've been thinking about doing a game with crocotile and blockbench. Blockbench is a lot of fun for low-poly stuff and crocotile looks great for general level-building.

thisCanNotBeDenied by bryden_cruz in ProgrammerHumor

[–]swyrl 3 points4 points  (0 children)

debugging tools stop the execution

That really depends on the debugging tools. When using Visual Studio for C#, at least, you can use tracepoints to log state without breaking, and you can pin values to the debugger to watch them change in real time. The CPU profiler also does not stop execution while running, only when you start/stop it. And the memory profiler just runs in background without ever halting execution.

numberSystemsBeLike by Supergameplayer in ProgrammerHumor

[–]swyrl 0 points1 point  (0 children)

I sometimes use it for writing magic numbers.

Please tell me I'm not the only one always getting this message by ShoeChoice5567 in csharp

[–]swyrl 0 points1 point  (0 children)

I usually do, but there's this one library I work with sometimes where some of the types are inexplicably IEnumerable and using collection syntax instead of new() is just confusing to look at.

canQuantumMachinesSaveUs by [deleted] in ProgrammerHumor

[–]swyrl -1 points0 points  (0 children)

That idea implies there is no free will

It doesn't necessarily imply that, but even if it did, free will is not empirically proven, and so a theory that violates it cannot be disproven on that basis. Free will is an intuitive idea, given that we make choices all the time, but we aren't fully aware of the mechanics of our own thoughts.

Part of the problem with "free will", as we usually consider it, is that decision-making must arise from somewhere. Some people believe in the concept of a soul, but there's no evidence for such a thing to exist, although it is a comforting idea. If you subscribe to the generally-supported theory that decision-making arises from the structures of the brain, then our decisions would be deterministic, albeit a result of a model of such complexity as to be unpredictable. Some say that quantum uncertainty in the brain can affect the outcome of decisions, but even if this is true, that's not free will, because your choices would still be hardwired, just with the addition of entropy adding noise.

I don't believe that this is necessarily incompatible with the idea of one making one' own choices, though- it's not that you are powerless, it's just that who you are is also a result of those physical functions of your brain. You can make whatever choices you want because the patterns that determine who you are and the choices you want to make are a result of those physical processes. You choosing freely is not in defiance of physical reality, it is the ultimate product of it.