HNHacker News
TopNewBestAskShowJobs

ripley12

1,572 karma · joined April 24, 2015

reillywood.com
submissionscomments
ripley12··on Explain the first 10 lines of Twitter's source code to me
I see this as similar to the "what happens when you visit google.com?" question - it's a starting point for conversation, not gotcha trivia.

I certainly wouldn't expect anyone to know every answer off the top of their head, but talking through a candidate's educated guesses can be informative.

ripley12··on In our cashless society, we need to take digital jail seriously
Funny how you had to create a brand new account to post this.
ripley12··on In our cashless society, we need to take digital jail seriously
I think those things are true, and I live in Canada.

I strongly support Trudeau's actions on this, and I'm sad that the government took so long to crack down on the "truckers". It's deeply damaging to civil society when a few extremists can shut down a city without consequences.

ripley12··on Microsoft YARP
I wouldn't say it's a giant runtime. A trimmed Hello World .NET app is ~11MB these days - not quite as good as Go, but you can make .NET apps that do quite a lot in under 20MB.

And sizes will be going quite a bit lower with NativeAOT this year.

https://www.awise.us/2021/06/05/smallest-dotnet.html

ripley12··on Building for the 99% Developers
Nice. That's basically my ideal work environment; if you happen to have an opening for a .NET developer who loves SQLite and databases in general, my contact info is in my profile.
ripley12··on Fetch API has landed into Node.js
As a person who only occasionally writes JS and has zero interest in keeping track of the differences between client-side and server-side JS - fetch has been a big friction point for me in the past, it's big news to me.
ripley12··on I’m porting the TypeScript type checker tsc to Go
Personally, I think the appeal of Go has much more to do with the compiler and the tooling than the language.

The compiler is blazing fast and you get small fast statically linked executables by default. That's very appealing to me even though the language itself is a bit spartan.

ripley12··on Ask HN: Anyone making a living building desktop applications?
It's a mess.

If pressed I would say WinForms is the most practical choice for most apps today - even though it sucks, even though it's ugly. It's actively worked on (unlike WPF) and it lets you use the latest .NET version.

WebView2 (better Electron) is probably where most Windows development is going in the future, the Windows team is investing a heck of a lot more in it than other technologies.

ripley12··on DuckDuckGo Traffic
Yeah, DDG has become nearly unusable for me since they stopped honoring quotes (a few months ago?). I've found myself instinctively using the !g Google fallback more often than not, and at that point I might as well just switch back to Google for everything, sigh.
ripley12··on Does Visual Studio rot the mind? (2005)
From the outside it seems to be in maintenance mode. It hasn't received new features in a decade (other than the port to .NET Core, if that counts). The Windows team has staffed it with a skeleton crew (a manager and 2 devs last I checked). They don't have bandwidth to review most community PRs, and even the .NET team doesn't get responses to issues: https://github.com/dotnet/wpf/issues/3811

idk, I hope I'm wrong but they have been promising improvements for a while and I'll believe it when I see it.

ripley12··on Does Visual Studio rot the mind? (2005)
I'm not sure you can comment on this, but: any idea what the long-term plan is for UI in Visual Studio?

WPF has been more-or-less abandoned by the Windows team, and that's a little scary since VS uses WPF so much...

ripley12··on Does Visual Studio rot the mind? (2005)
> More generally, the reason that build tooling in the .net sphere is such a mess is because of historical baggage from VS.

This is part of why the .NET hot reload fiasco was such a big deal to me; it felt like doubling down on one of .NET's biggest weaknesses.

ripley12··on Does Visual Studio rot the mind? (2005)
FWIW I (a daily VS user and someone who is generally fond of it) don't particularly like the VS folder view. I find it slow to open and a bit clunky; accordingly I often have VS Code or a terminal or Explorer open in addition to VS.
ripley12··on Does Visual Studio rot the mind? (2005)
Based on everything I've seen in the last year and a half: WebView2 (i.e. Chromium) is getting more investment from the Windows team than any of the "native" UI technologies. I'm not thrilled about it but I'm adjusting my plans accordingly.
ripley12··on Does Visual Studio rot the mind? (2005)
> Why do they keep doing this?

I can speak to the UWP -> WinUI 3 transition a little: it's a hard transition because UWP did so many things its own way. It's often really difficult to migrate concepts from UWP to the Win32 app model. And I get the impression that the number of people working on WinUI+WASDK is pretty small; it's more of a "salvage what we can" operation than a "build out the future of Windows app development" one.

ripley12··on Does Visual Studio rot the mind? (2005)
Agreed. It's not for lack of investment either; they invested staggering amounts of engineering time in WinRT and UWP and they actually built some cool stuff.

But, well... it certainly didn't help that they made it so difficult to adopt the new technologies. Project Reunion/WASDK makes it seems like they've learned that lesson and are trying to salvage what they can - but it's much too little and much too late.

ripley12··on Does Visual Studio rot the mind? (2005)
> It does seem like things have settled down upon UWP finally

They officially cancelled UWP 2 months ago, after a few years of "not quite dead, not actively supported" limbo. I guess it's settled down, but not in a good way. https://www.theregister.com/2021/10/26/microsofts_uwp_unwant...

ripley12··on Ask HN: Why is building Windows apps so complicated?
Yeah, developing Office add-ins is a nightmare and the Office team has totally screwed up Office extensibility.

FWIW they march to their own drum, they are largely independent of Windows and Developer Division. I would not tar all of Microsoft’s efforts with the same brush.

ripley12··on Ask HN: Why is building Windows apps so complicated?
> WinForms is "legacy", WPF is the way to go.

It’s not that simple. WPF has been mostly abandoned by the Windows team, while WinForms is owned by the .NET team and much better maintained. WPF will probably never be compatible with trimming and AOT compilation, WinForms will.

WinForms has its own issues, but there’s a reason why Scott Hunter recommended it over WPF at last year’s .NET Conf.

ripley12··on Hacking the planet with Notcurses: a guide to TUIs (2020) [pdf]
I’ve been reading this recently to get up to speed with Notcurses, it’s fantastic. Funny, engaging, and a surprisingly good general overview of how terminals work.

One thing to note: it was written for an older version of Notcurses. So some of the details aren’t 100% up to date, but it covers the fundamentals.

ripley12··on I Rewrote WinUI to WPF
Hmm, I wouldn’t say WinForms is in a similar limbo right now. It's maintained by the .NET team and it gets more attention than WPF. Work is happening to make WinForms compatible with NativeAOT and trimming, I think it will land in .NET 7 or 8.

(but yes, true, WPF still works and it gets enough support to keep it limping along)

ripley12··on I Rewrote WinUI to WPF
Seriously? The effort Rick puts into Paint.NET performance is unreal (check out his Twitter sometime). I've found it to be impressively fast, especially for how much functionality it has.

FWIW it was only recently migrated to a modern .NET version, give the latest version a spin if you haven't already.

ripley12··on I Rewrote WinUI to WPF
Yeah, it's a mess.

Personally I think web UI via WebView2 is the only way forward; Chromium is far and away the most powerful UI framework shipping with Windows these days. Even if "native" UI frameworks were doing everything right, it's hard to compete with all the investments in Chromium.

P.S. WinForms isn't dead; it's maintained by the .NET team and it gets a lot more attention than WPF. But, well, it's WinForms :)

ripley12··on I Rewrote WinUI to WPF
Paint.NET is probably the best example of a good, fast widely used .NET app.
ripley12··on I Rewrote WinUI to WPF
I think that's only partially right.

.NET apps can be published with AOT code (ReadyToRun). WPF apps are still pretty slow to launch with ReadyToRun enabled; I haven't profiled it to see why, but I suspect it has a lot more to do with WPF (somewhat abandoned for a decade, and the XAML bits have always been slow) than .NET.

In my experience the JIT penalty at startup isn't as bad as people think, the .NET JIT compiler is really fast and the average console app is very quick to start up.

ripley12··on I Rewrote WinUI to WPF
Down that path lies madness. Everyone I know who works with XAML Islands despises it. MS doesn't really push it because it's very broken.
ripley12··on I Rewrote WinUI to WPF
It's a similar thing IMO. WPF is understaffed to the point where it might as well be dead in my mind.

It hasn't received major new features in a decade. It's currently owned by the Windows team (not the .NET team) and they have staffed it with a skeleton crew. They don't even have bandwidth to review most community PRs.

Even the .NET team doesn't get responses to issues they raise on the WPF repo: https://github.com/dotnet/wpf/issues/3811

Adding to all that, WPF has a massive dependency on C++/CLI which means it cannot take advantage of many new .NET features until that is rewritten. And from what I can tell (from the outside) that will never happen.

ripley12··on Event Sourcing Is Hard (2019)
Couldn't agree more.

I've followed this rough pattern to build a rock-solid offline-first core for a personal application: https://flpvsk.com/blog/2019-07-20-offline-first-apps-event-... It's got some pain points; in particular it's quite difficult to evolve the schema once your app is out in the wild. But event sourcing is very amenable to TDD, and once all my tests were passing I had a nearly bulletproof solution for my current schema.

Strangely, offline-first functionality is usually not what event sourcing is pitched for. Maybe it's just a a legacy of its enterprise origins, but I often see it sold as a solution for enterprise applications where it's liable to cause more trouble than it's worth.

ripley12··on Lazygit: A simple terminal UI for Git commands
So download a binary instead of building it from source?
ripley12··on SQLite Release 3.37.0
I wouldn't expect much difference in performance. "The on-disk format for the table data is the same."

I would expect the additional checks on writes to be negligible in most cases (dwarfed by other bookkeeping and I/O). I imagine that strict mode could enable some optimizations for read queries, but I can't see those being huge wins.

← PreviousPage 11 of 17Next →