News for hackers. Stuff that matters.
Re:Inspecting Web Views in macOS by knome on Friday March 11, 2022 @10:30PM (#30648763)
I expect these additional reasons can largely be summed up as "I already know it from using it in the browser, so let's use that"
Re:Inspecting Web Views in macOS by inopinatus on Friday March 11, 2022 @10:51PM (#30648845)
I think it’s a little unfair that you’ve been so downvoted (at the time of writing), because the old phrase about hammers and nails is super applicable to software development, and the icloud team may very well know react better than cocoa.
Re:Inspecting Web Views in macOS by marcosdumay on Saturday March 12, 2022 @08:27AM (#30651175)
Actually, web pages are a very declarative GUI, with an amount of reflexivity and editability that should be on any declarative GUI framework, but normally isn't.

Those properties open up the possibility of abstracting things and making very powerful libraries over it. There is nothing else as powerful out there.

Yet, everybody stops at plain react. So whatever is the reason for the success, it's not that one I pointed.

Re:Inspecting Web Views in macOS by dymk on Friday March 11, 2022 @10:34PM (#30648776)
You'd probably be wrong!

Let me introduce you to https://github.com/ocornut/imgui

Re:Inspecting Web Views in macOS by junon on Friday March 11, 2022 @10:40PM (#30648805)
Which doesn't use React, CSS, or a DOM...? What's your point? ImGUI is imperative UI programming. DOMs are declarative.
Re:Inspecting Web Views in macOS by dymk on Friday March 11, 2022 @11:25PM (#30648987)
ImGui makes UI programming declarative in structure the exact same way React makes UI programming declarative.

React brings to the table is the general concept of immediate mode UI programming. So does ImGUI. Reaching for React doesn't mean it's the only thing the programmers knew, it means it's a general pattern that arises in UI programming.

Re:Inspecting Web Views in macOS by junon on Friday March 11, 2022 @11:39PM (#30649047)
No, it absolutely does not. ImGUI is a completely, totally different model of GUI programming.
Re:Inspecting Web Views in macOS by dymk on Saturday March 12, 2022 @10:04AM (#30651836)
Sorry, but they are the same concept. They’re both immediate mode GUI tools that provide a way to declaratively describe the UI in an imperative language.
Re:Inspecting Web Views in macOS by junon on Saturday March 12, 2022 @12:35PM (#30653057)
React is not immediate mode, imgui is not declarative.