Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



The listbox does a lot like searching, multiselect, is completely accessible and includes a lot of types. It's a really unfair comparison.


Even with all those features, 2500 lines sounds like way too much.


He'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.


Do you mean my comparison to gtk, or on-site comparison to nue?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: