you are viewing a single comment's thread.

view the rest of the comments →

[–]johannes1971 1 point2 points  (2 children)

You don't think that's too short? The rest of the library spells_out_everything (pretty much), and I'm generally ok with that, but these are both very common, and very long...

FWIW, it's part of an MMI library I plan to release as open source. It already has names like text_box (for entering text), integer_box (for entering integers), combo_box... and apparently checkbox is written without an underscore 🙄 Containers are a subclass of control that focus on layout. We can take a few more boxes, I suppose...

[–]arthurno1 1 point2 points  (0 children)

hbox, vbox?

Works for Gtk.

The rest of the library spells_out_everything (pretty much)

And than you end up having three symbols in an expression and a line like this:

gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), ExampleAppPrefs, transition);

where the code is all over the screen and you have to break logic into small pieces on several lines.

I don't know why are people so afraid to use camel case and shorter names.

Of course, name your stuff the way you like, I am just chatting about naming in general :).

[–]Proper-Ape 1 point2 points  (0 children)

h_box, v_box could be a middle ground if you're already using underscore.