3 ms·
This. I can't count the number of times I've used two libraries with different casing just to have my own code end up as a mess of both.. I can see the point t
by PMunch 9y ago
This. I can't count the number of times I've used two libraries with different casing just to have my own code end up as a mess of both..
I can see the point though that grepping, and things like editors which highlight the selected variable would have to take these rules into consideration. It's a valid concern but I feel the benefit of clean unified code is more important.
- coldtea 9y ago>This. I can't count the number of times I've used two libraries with different casing just to have my own code end up as a mess of both.. Whereas referencing the exported identifiers from the library with a different style than they are written with in the library's code sounds more satisfactory to you?
- PMunch 9y agoYes, that way my code looks more like one entity than a mess of different things. I can see why you are skeptical of it but once you've used it for a while it becomes second nature. And you can always mix if you want to. The thing is that you can choose how you want to do it. And there are extremely few cases where the casing actually makes the identifiers different (keeping it mind that the first character is type sensitive).