So what I can understand this is "just" a wrapper for existing GUI frameworks? Why is this better than just using GTK that already is portable?
Libui: a portable GUI library for C
81–90 of 164 posts
Re: Libui: a portable GUI library for C
#82The same library for Go https://github.com/andlabs/ui
> Now that libui is separate, package ui has become a binding to libui.
> As such, package ui is the only official binding.
From the README — https://github.com/andlabs/libui#language-bindings
Re: Libui: a portable GUI library for C
#83Is there a portable C++ GUI library though?
If yes, then you can check these two [1][2].
Re: Libui: a portable GUI library for C
#84Interesting but since GTK+ itself is cross-platforms it feels a bit heavy to wrap it.
Re: Libui: a portable GUI library for C
#85Is there a portable C++ GUI library though?
Re: Libui: a portable GUI library for C
#86Earlier quoted context omitted.
Documentation is part of code quality.
That's rarely been my experience. In fact, documentation usually exists because code quality is poor and it needs to be explained.
One of the most beautiful C codebases I’ve seen - the SSH IPsec stack - had the most succinct yet comprehensive documentation. Linux kernel has virtually none of the latter but the quality is still very high. Then there’s something like Miranda IM - complete clusterfuck of the code, but really well documented. A lot Java code is that way too, but also with documentation rehashing trivial facts rather than explaining anything.
However, what does seem like a sign of a good code is longer intro comments in header files that explain the design rationale and how things fit together in general. It’s basically a level up from verbose API description, but when done right it makes the API obvious without any further detailing.
Re: Libui: a portable GUI library for C
#87Re: Libui: a portable GUI library for C
#88Re: Libui: a portable GUI library for C
#89Re: Libui: a portable GUI library for C
#90A lot of the comments have mentioned the lack of documentation this project has, and then they've received replies of the form "you should submit a pull request, the author doesn't owe you anything". Here's my take on it: I don't owe the author anything either. But if I'm considering which project to use, I'd probably choose the one with documentation, since it signals better goals and higher code quality. It's absur…