|
|
|
|
|
by citycide
3035 days ago
|
|
This is exactly my point when I say it needs to be better understood: you wouldn't do it within a single project, but if you've got a third party library that exposes a `read_file` method you can use it as `readFile` meaning your own code base is more consistent. In other words, you're not limited by the design decisions of another developer (or language, as nimmer pointed out). |
|
I don't know if the whole world is magically living with much more orderly developers than I have had the pleasure to work with, but I guarantee you that if I were using such a project at work, we'd end up with the same variable being referenced different ways.
I really wouldn't be able to grep for variables with confidence.
(Cf. Carmack: Everything that compiles will ultimately end up in your code. In the context of exploring static analysis tools, which were finding lots of errors.)
I do like the idea for uniformity though, but it seems like maybe better to restrict it -- define project-based 'style-rules', and automatically translate when moving between domains.
So foo_bar inside package A must be accessed as FooBar inside package B.