site banner

Friday Fun Thread for October 11, 2024

Be advised: this thread is not for serious in-depth discussion of weighty topics (we have a link for that), this thread is not for anything Culture War related. This thread is for Fun. You got jokes? Share 'em. You got silly questions? Ask 'em.

1
Jump in the discussion.

No email address required.

We had a tiny coding project at work last week, and one part of it kind of struck me.

My coworker's half of the project was to show the user a simple form where they would input two lines text and click the "submit" button. It would then write that info to a text file and launch my half.

My half of the project took that data, stuffed it into the middle of some XML, then launched the newly-created file.

Try to guess the spoiler. My coworker's half was eighty thousand times (160 MB vs. 2 kB) as large as mine. Is there an equivalent to "What Intel giveth, Microsoft taketh away" for harddrive space?

.NET?

I think so, but I wasn't involved in that half beyond providing the specs and testing it.

It's not .NET problem per se, modern .NET can trim the assembly very well. Sounds like they used some GUI framework that is a browser in disguise, like Electron.

Incidentally, you can use Electron.NET with .NET Core and get the "best" of both worlds. The .NET portion is tiny, but the electron portion is basically guaranteed to be over 100MB, full of front-end razor template/css hell, oodles of extra javascript to do all the things that aren't natively supported correctly, squeeze your entire UI update logic through a SignalR straw, and an infinite menagerie of implementation bugs and issues. But it'll run on just about anything, including a browser. And the ASP.NET side is pleasant to work with.