Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Project Organization, Tool Tips
Forum Updated to NodeBB v4.3 + New Features

Project Organization, Tool Tips

Scheduled Pinned Locked Moved Unsolved Brainstorm
1 Posts 1 Posters 471 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    admkrk
    wrote on last edited by
    #1

    Android development strongly urges you to put all strings into a string file. I always found this to be annoying, especially when it is simply for text on a button. I recently started thinking that doing something similar might not be a bad idea for tool tips, or even buttons text.

    First, you have reuse. Might not be so useful with tool tips, but every cancel button could have its text changed in one place, for example.

    Second, all your strings can be organized and categorized so that changes can be easily made. I was going to add without sifting through each class, but that brings me to why I am starting to think it might be a better idea to have a separate file. It simply removes a large amount of text from your code.

    Is this a good idea? A bad idea? Maybe OK idea? Would love to hear if other have face similar situations.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved