• 0 Posts
  • 239 Comments
Joined 3 年前
cake
Cake day: 2023年9月2日

help-circle













  • That’s called immediately mode gui (or imgui). It has nothing to do with think about elements or pixels. You do have elements, it’s just that they’re rendered directly (immediately) instead of stored.

    You have a panel+border+text “primitive” drawing functions. Nothing is stopping you from creating a single function that calls all 3 of those. You probably should, since it’s probably a common pattern. You could call it DrawBoxedText. There is no difference between a DrawBoxedText function and a BoxedText element with a draw() method.


  • The first problem is a you problem though. There’s nothing stopping you from dividing your global god-class into smaller ones. For example, you can have one state struct per windows. So windows wouldn’t have access to the state of other windows.

    The second problem is also the reason I don’t often use imgui. Imgui is great for introducing UI to applications that would re-render every frame, like a video game. But for every other application, it feels like a waste. If I wanted to waste resources I would write it in python or JavaScript.




  • Their app being so bad is the only reason third party apps were even a thing. The official reddit was just unusable on mobile.

    It is the only social media that had a significant user base using third party apps.

    The same is true for the search. You had to use their party (google) search engines to search for something on reddit.

    Not even the desktop website is good. I don’t even remember the name of the extension, but that one extension that every power user had brought many simple features that reddit didn’t add after years of existing.

    Their multiple redesigns were universally hated. The reason they haven’t shut down old reddit is because a non-insignificant amount of traffic uses that frontend, even though it is 2-3 redesigns old.

    Basically anything that reddit did was shit. It only was popular because the core features worked and were free with very little ads. And it had a massive (and active) user base that posted content, so basically every google search contained a reddit link with a decent answer.