95
payb4k
7y

Thinking of a name for a function or a variable is half the battle 😕💭

Comments
  • 10
    accepting the chosen name is the other half lol
  • 10
    Just use the alphabet. a, b, c, d, e, f and so on. It's best practice 😈
  • 2
    @gitpush absolutely
  • 1
    @bjorngi You don't even have a to buy a obfuscator then :P
  • 0
    Don't see how this could be hard if you are describing what the variable represents/what the function does like you're supposed to...
  • 1
    The time taken will reflect how clear your approach is?
  • 0
    then you come with hugeDescriptiveVariableName and get depressed for not being able to synthesize
  • 0
    A week ago I wrote a class to parse data from a webpage. It had about 30 different functions with almost the same name. Often the same function name that simply takes different types as parameter. THAT was fucked up. Always took 5 attempts till I found the function I really wanted to call
  • 0
    @b3b3 Sounds like you need some generics...
  • 0
    @ALivingMemory yup I've got stuff to do when I come back from my holidays... But I didn't come up with a good way to implement it yet lol
  • 0
    For me, it is naming Classes and choosing Namespaces.... why is this so hard sometimes?
  • 0
    @MrCSharp Difficulty naming namespaces I do understand! Should it be Company.Services.Product.FunkyService, or Company.Product.Services.FunkyService !?
Add Comment