3 ms·
ListBox/PopupButton … The React version is 2500 lines of JavaScript Is this idiomatic? I refused to use React for years, but if this is normal-ish, it basicall
by wruza 3y ago
ListBox/PopupButton … The React version is 2500 lines of JavaScript
Is this idiomatic? I refused to use React for years, but if this is normal-ish, it basically cements the decision. An implementation of a ListBox in VGA 0xA0000 framebuffer could be only a little bigger (if even bigger). GtkTreeView, which draws a complete tree/table with columns, resizing, dynamic rows and all the interactions, was 10kloc, afair (now 14). GtkCombobox.c is 5kloc, almost half of that is comments or doxygen.
- Loeffelmann 3y agoThe listbox does a lot like searching, multiselect, is completely accessible and includes a lot of types. It's a really unfair comparison.
- wruza 3y agoDo you mean my comparison to gtk, or on-site comparison to nue?
- xigoi 3y agoEven with all those features, 2500 lines sounds like way too much.
- lolinder 3y agoHe's also included pieces of Headless UI's embedded framework, which they use to minimize the differences between the different implementations. It's definitely not representative of regular code in the frameworks being compared to.