Better HN
topnewbestaskshowjobs
Log inSign up

grumblingdev

225 karma · joined Aug 2, 2022 (4y ago) · 102 submissions

Submissions

comment 3y ago · link · parent

FYI: You can put a low-profile mechanical keyboard on top of your MacBook built-in keyboard and it works great.

I use the Keychron K1 Pro with Brown Gateron switches. It's an 80% (ten-key-less / TKL). I needed this one because I use the right shift key a lot and it has a full-size one whereas the 75% is shortened.

You get used to the slightly different layout very quickly. You might swap back and forth a bit but when you go to bed you will start dreaming about typing on it. You will even enjoy doing typing races just to press the keys.

Another new one just released is the NuPhy Air75V2.

It's a real addiction!

comment 3y ago · link · parent

Completely agree.

I think there is a cultural component that has transferred throughout history whereby people need to signal their level of education to others.

You've probably had it happen yourself without realizing.

You hear someone explaining something in a simplistic way, and notice yourself wondering how deeply they understand the topic. Then when you are explaining the topic, you don't want people to question your own knowledge level like you did to the other person, so you use techniques to signal the depth of your knowledge.

This might be fancy words, or skipping over simplistic things.

And I think this just becomes second nature.

You can see it with programming languages. If I told you to rate a Rust dev vs JS dev, you are thinking Rust is harder to learn so they must be smarter.

It can also just be a challenge to imagine how you thought about a concept when you were initially learning it.

English is pretty terrible for explaining a lot of math too. Math is better understood visually, but back in the day you couldn't exactly share an interactive diagram.

comment 3y ago · link · parent

Agree. Our math is convenient for us humans living in our universe.

But how much of our math is just a poor approximation of our universe? Like Newton's gravity was.

If our math only _approximates_ the world, if we discovered something that explains things better, it would all be irrelevant.

There are a lot of hints that something big is missing in our maths as a means of explanation. Like the mathematical constants Pi and Euler repeating infinitely, quantum randomness...

comment 3y ago · link · parent

A good line of questioning is to explore the constants that arise in physics, of which there are nineteen[3].

E.g. "Why is the speed of light what it is?".

~300,000,000 meters per second. But the definition of a meter is actually defined by the speed of light, so this number is very human-math-specific.

So instead, you want to look at the speed of light in terms of other physical constants to find a "dimensionless" constant.

This leads us to the fine-structure constant[1], which is a single number that pops out when you relate a few of these experimentally measured constants to each other.

0.0072973525693 ≃ 1/137

This is a number that if any different would mean the universe would not exist in the way it does.

Something very human is the notion of "1". Counting things is very important to intelligent life.

I was thinking the other day, about the world from the perspective of a tree. It doesn't care about counting things. So "1" is irrelevant to it. It's an invented concept by humans.

And most of our mathematical thinking is based around this.

There could be an infinitely deeper and more complicated maths to explain things.

It's like looking at a leaf without a microscope to figure out biological processes. Until the 1600s, biologists could only study what their eyes could see.

All this quantum randomness feels like we are still just looking at a leaf with our eyes.

[1]: https://en.wikipedia.org/wiki/Fine-structure_constant

[2]: https://en.wikipedia.org/wiki/Dimensionless_physical_constan...

[3]: https://en.wikipedia.org/wiki/Physical_constant#Number_of_fu...

comment 3y ago · link · parent

Website is broken...text is in a long thin column...

36.

Ask HN: Do we still need Electron?

5 points · by grumblingdev · 3y ago · 1 comment

comment 3y ago · link · parent

Did Windows ever support writing apps with JavaScript? UWP maybe? I swear I remember it being a thing...

comment 3y ago · link · parent

Does Microsoft have a reply for declarative UIs, e.g. React / SwiftUI / Jetpack Compose?

I had thought XAML was it and was ahead of the game, but it's kind of a different approach.

All the new ones define their declarative UI as inline source code.

comment 3y ago · link · parent

Can I use TypeScript and WinUI 3?

I remember a while back there was contraversy that MS wanted people to write Windows apps for store in TypeScript. What happened to that?

comment 3y ago · link · parent

Goddamn!

I always wondered why it took until Win UI _3_ to decouple...but I guess this is why.

comment 3y ago · link · parent

Someone should bring the SmallTalk IDE experience to JavaScript.

comment 3y ago · link · parent

I don't get how MS can't just build a control library. You always have to use these expensive third-party closed-source libraries.

I remember when the Ribbon UI came out. And there were like 10 different vendors making all different ones, each with a different look and feel.

Just like Amazon took internal services and made them exposable in AWS, so should Microsoft with every UI component they build. You shouldn't be able to ship any UI internally, unless you make it publically accessible. I guess WinUI 3 is heading in these direction by decoupling from the OS. But boy it took a lot of time!

comment 3y ago · link · parent

Facebook Messenger uses React Native.

WhatsApp Desktop uses WinUI.

WhatsApp is superior.

I don't get React Native. It's such a huge, complicated abstraction with no ability to performance tweak. I don't understand how a company as big as Facebook doesn't have enough resources to build native apps for each platform. These UIs are the simplest app you could build as well.

comment 3y ago · link · parent

Clicking on the second link and pressing back doesn't work until you click cookie accept :(

comment 3y ago · link · parent

> Even the landing page for WinUI starts off by comparing the differences between two versions of it.

It feels like they are trying really hard not to annoy developers by telling them their stack is now legacy.

They should take all old technology and put it on an entirely different docs website.

> We've been there before, and intermediate layers between the platform and the developer ultimately produces sub-standard apps and hinders the progress of the platform. > >-- Steve Jobs - https://www.engadget.com/2010-04-10-steve-jobs-responds-to-c...

I've heard Steve say this a few times, and it always caused developer backlash. But having seen how things have played out, I think he was definitely right.

Honestly though, Windows should have just gone with HTML. The majority of HTML-based apps are nicer looking and feeling than Windows apps, and the perf is fine. I just don't know how they f'd up XAML/WPF so badly.

comment 3y ago · link · parent

> Every third-party app uses a different toolkit with a different look and feel

This always infuriated me on Windows, and a big reason I moved to macOS.

This is a great read: https://arstechnica.com/features/2012/10/windows-8-and-winrt...

> ...the biggest problem is that USER [API] is essentially inextensible. If a developer wants to create, say, a menu that acts exactly like the standard operating system menu but with some small extra feature (for example, he might want to support the drag and drop, similar to the Favorites menu in Internet Explorer) he generally has no option but to reinvent the entire menu system from scratch.

Seems like the failure of the Longhorn project really messed things up. It was suppose to replace the janky old win32 with .NET managed APIs.

I just remember XAML/WPF/.NET being incredibly slow. And choosing a managed language for OS stuff seemed bad. I can't believe no one was doing a quick POC and saying: this is too slow.

You have to give credit to Apple platform team. They have some real visionaries there. They had the guts to ignore garbage collection even when it was taking over the entire software industry. I guess MS just needed a competitor for Java.

comment 3y ago · link · parent

For someone coming back to Windows development after 5+ years, it is so incredibly difficult to figure out what is going on.

I have never had so much confusion in my life. WinUI 2, WinUI 3, C++/WinRT, C#/WinRT, C++/CX, C++/CLI, WinRT (Windows Runtime - that's not a runtime), COM, C++ Win32, C# .NET, UWP, Fluent, Metro, .NET MAUI, PWA, React Native for Windows, WPF, Windows Forms, Windows API, Windows App SDK (which is WinUI 3), VSIX, XAML, .winmd, WebView2.

When I think about macOS: Swift + SwiftUI, Swift/ObjC + AppKit.

This article was a huge read but helped me get an idea of things: https://arstechnica.com/features/2012/10/windows-8-and-winrt...

I think the issue is that the writers are trying to be too delicate to not make people feel like their apps are using legacy technology that will be deprecated.

> Many apps for Windows are written using WPF or Windows Forms, and they remain viable tools today...looking to the future....

There should be one obvious recommended way to build new apps, and all the other docs should be moved to a separate section.

And when I install Visual Studio 2022, it has a "Workload" called "Universal Windows Platform"...but I just read this is deprecated!!

48.

Ask HN: What is the best way to build a desktop app in Windows in 2023?

51 points · by grumblingdev · 3y ago · 104 comments

49.

Ask HN: Are cross-platform frameworks worth it?

2 points · by grumblingdev · 3y ago · 2 comments

comment 3y ago · link · parent

The only issue is motivation. With a team size of 1, people don't realize how much they depend on having just one other person there. Some people can do it. I think a lot are in for a surprise.

comment 3y ago · link · parent

Messenger seems to be React Native evident by RCTView everywhere. It also uses NSView instead of UIView.

WhatsApp seems to use UIView, but I couldn't find evidence of SwiftUI, so am assuming its just a UIKit app.

There are some very similar UI components to the mobile app, so I am guessing they want to unify as much as they can between the two codebases.

WhatsApp Windows seems to be a native Windows app.

52.

Ask HN: What it the tech stack of the new WhatsApp desktop?

2 points · by grumblingdev · 3y ago · 2 comments

comment 3y ago · link · parent

There are a ton of resources online about "why OO is bad". I think knowing that this viewpoint exists is a good lesson in itself.

comment 3y ago · link · parent

> What does this even mean?

There is a lot of good wisdom from the 60s, 70s, 80s that people forget and end up re-inventing. I don't think I'm the first person to make this comment.

> OO

It's very subjective I'll admit. But I don't like OO, and it took me along time to realize why. There are many people who feel the same way. The difficulty is in explaining it. Because you have to look at large systems, explore the evolution of these systems, and pluck enough examples where things don't work.

comment 3y ago · link · parent

Most new devs want to build things. Their motivation is driven by app ideas.

It takes a while to develop a fascination for the internals of programming which comes after you start building things.

The problem is that a normal person would look at the industry, look at what is the most popular, and think: this must be the way it should be done.

But pick any point in programming history and you would then just be learning the latest fad.

And you can only know how bad something is until you understand it completely in both theory and real-world experience. Only then are you adequately able to criticize it. So when the new hyped thing breaks through to adoption, its then at least 10 years until people can adequately point at the holes in it...and see which stick around and which get fixed.

Yet every single new thing, people still convince themselves that this is the way of the future forever.

I think an unbiased History of Programming Languages is probably the best thing people can learn. After learning a few modern languages of course. Then you can see why things are the way they are.

It's funny to hear people criticize frontend for churn - which is true. But at least the language has stayed the same. Backend is actually incurring a lot more churn in not only the libraries and frameworks like in the frontend world, but the whole programming language too.

comment 3y ago · link · parent

Why do you think the industry keep circling back on old stuff?

Look at how much time we lost with OO. I am only recently coming to grips with how bad it is. C++ was the "thing you are interested in today" back then. And it wasn't well thought through.

What were people doing before Rust?

C is great.

comment 3y ago · link · parent

I think Lisp won that battle. The core syntax was named after actual cpu registers (cdr/car).

comment 3y ago · link · parent

This is bad advice.

> several better options these days

Every other option requires you to buy into some additional paradigm-of-the-day.

You can easily lose decades going down the wrong programming rabbit holes.

comment 3y ago · link · parent

> for this reason that I am skeptical of ChatGPT

Me too! I think its wayyy over-hyped. The biggest challenges in software are architecture. Object boundaries. System composition.

And I'm a big believer that all the software we write today is shit. So GPT is just regurgitating bad practices.

comment 3y ago · link · parent

Very hard to skim over. Can anyone summarize? Looks like its trying to make a very simple point in a very long-winded way.
1234