C#

General discussions about the c# language, Squirrels | gist.gi...
Oct 26 11:30
@OakBot what do you mean with String Interpolation Handlers
Oct 26 11:29
@OakBot sure, tell me about the interpolated string improvements
Oct 26 11:27
@OakBot sure, tell me about the new C# features
Aug 3, 2022 13:49
maybe you wrote it as chmod -R +x cicd/non-prod back then
Aug 3, 2022 13:48
chmod [OPTION]... MODE[,MODE]... FILE... yup, note the syntax
Aug 3, 2022 13:47
@mr5 -R: No such file or directory means that a file named -R does not exist
 

XAML

A friendly room for discussing XAML based technologies. Our Co...
Dec 23, 2023 22:48
especially as the blog says, you don't even need to use that, your code indirectly benefits from performance improvements
Dec 23, 2023 22:48
@Feeds this is nice
Nov 28, 2023 21:03
uBlock Origin is good enough on its own
Nov 28, 2023 21:02
@Feeds (in context of this)
Nov 28, 2023 21:02
huh
Nov 28, 2023 21:02
These new container images significantly improve security posture:

Ultra-small images (reduced size and attack surface)
No package manager (avoids a whole class of attacks)
No shell (avoids a whole class of attacks)
Non-root (avoids a whole class of attacks)
Oct 25, 2023 16:08
from what I remember the docs pretty explicitly say "if JS code modifies Blazor-managed DOM nodes, the behaviour is undefined"
Oct 25, 2023 16:06
as for Blazor... my experience with it is that it gets weird when JS interacts with it
Oct 25, 2023 16:04
nowadays people see full page refresh as something unusual
Oct 24, 2023 20:48
already 2 years has passed since I decided to use it
Oct 24, 2023 20:34
in other news I still vindicated by my decision to use github.com/webview/webview_csharp for a hobby project
Oct 24, 2023 20:25
so I predict they'll add support to VS Code, if only to be compatible with macOS
Oct 24, 2023 20:23
I think this will be remedied to some degree because the current MAUI "Getting started" page for macOS seems to list Visual Studio for Mac 2022 as a requirement, which is a deprecated product now
Oct 24, 2023 20:16
meanwhile the future of .NET GUI writing, MAUI, not only doesn't support Linux, but also you can't write it on Linux
Oct 24, 2023 20:02
surprising
Oct 24, 2023 20:02
oh hey WPF in .NET 8 actually has a "open folder" dialog
Jun 1, 2023 21:52
and since this room already has a uwp tag anyway...
Jun 1, 2023 21:52
I estimate people will be interested in MAUI
Jun 1, 2023 21:49
suggestion to expand this room to all XAML frameworks
Mar 14, 2023 20:10
I don't expect much to be honest
Mar 14, 2023 20:10
see how it goes
Mar 14, 2023 20:09
write a simple project
Mar 14, 2023 20:09
Also I should check out MAUI
Mar 14, 2023 20:05
like sure, the Startup-less project with only Program.cs is created by default now, but you can disregard that just fine and write a startup class and a Program.cs file with a Program class and Main
Mar 14, 2023 20:04
@Alex This is a pretty old message, I think it needs clarification: not using a Startup class is optional, we use it in our .NET 6 microservices
Mar 14, 2023 19:53
@Maverik WinForms lives due to being legacy (and therefore needs to be supported for legacy projects, or else all the companies will get mad), but WPF doesn't count as legacy enough, while also not counting as new and fresh enough
Feb 21, 2023 22:02
And the last I checked, with Avalonia Windows was at "basic support" and Linux was at "no support"
Feb 21, 2023 22:00
Ideally the autocompletion field appears near the cursor, but when the programs don't support it fully, then the autocompletion appears near the bottom right corner of the screen. When they don't support it at all, it's impossible to type in the text, and you have to resort to copy pasting from elsewhere.
Feb 21, 2023 21:58
This is how it's supposed to work, but it means there has to be some integration with an operating system and you can't just translate the keystroke on the keyboard to a letter appearing in the text field.
Feb 21, 2023 21:56
Feb 21, 2023 21:52
Back when I first considered it, it didn't support it at all, at some point within the last... year (?) rudimentary support was added on Windows, but on Linux still nope
Feb 21, 2023 21:50
@LynnCrumbling Input Method Editor support, which is how you type text in languages which don't easily map into latin alphabet; hard to think about making an enhanced Japanese dictionary application when it's impossible to type in Japanese text in text fields
Feb 17, 2023 21:50
And Avalonia didn't support what I need
Feb 17, 2023 21:49
Mostly when I discovered that MAUI's Linux support is gonna be an afterthought
Feb 17, 2023 21:48
@LynnCrumbling I've already embraced the dark side of the force and I use webshit instead
 

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
Dec 3, 2022 16:54
@RohanBari Any idea why is this happening? Outdated material? Old computer hardware? Government mandated curriculum?
Aug 15, 2022 20:48
to be fair x == 0.0 works for both x being negative zero and positive zero
Feb 1, 2022 17:59
@S.M.T jesus that's an old ass book
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
Jun 11, 2022 12:40
Jun 11, 2022 12:39
still exists
Jun 11, 2022 12:39
@hypercake you mean the Lounge<C++> Discord server?
 

C

C stands for Control.
Jan 12, 2022 19:02
I think that will be perfect in terms of C standard compliance (of course aside from using the __attribute__((packed)) part in the first place). It's also unwieldy
Jan 12, 2022 18:51
char whatever[50]; // let's assume it's filled with the content
short value;
memcpy(&value, whatever + offset, sizeof value);