• Caveman@lemmy.world
    link
    fedilink
    arrow-up
    48
    arrow-down
    1
    ·
    edit-2
    5 months ago

    I prefer everything to be how you would read it as text. So create_file_dialog it is. Honorable mention is to have it namespaced in a class or something which I think is best. file_dialog.create or dialog.create_file or even dialog.file.create

    • Bruno Finger@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      I agree. I say open door so the function should be named openDoor.

      Honestly nowadays none of that matter if you’re using any remotely modern IDE with good indexing and a sensible search, you can start typing however you mind works and it will find it no matter how it’s named.

    • sudo@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      5 months ago

      My method names are the same way but I aggressively sort things into modules etc so it comes out the other way.

      But if I was staring down dozens of these methods and no way to organize them, I’d start doing the sorted names just for ease of editing. L