[eluser]xwero[/eluser]
[quote author="jedd" date="1237780165"]
Quote:What I would like to know is why Code Igniter has such tight restrictions when it comes to file naming and prefers to see practically everything in lowercase?? Beats me.
Now that
is a good question. My gut feel is so that on real operating systems (I gather you develop on a pretend operating system and run your production on a real one, yes?) where case is respected and relevant, it's measurably faster to hit a file by name, rather than by searching for it in a directory. If you make an arbitrary rule - in this case that the filename is always lower case - then it's very easy to algorithmically identify what the filename of a given class name will be - you just strtolower() the thing and you've got it.
If you let people do whatever they like with filenames, you're introducing a) more complexity into the code as it has to handle permutations, b) a greater cost to the 'find this file and load it' function, and consequently c) a reduction in performance.
[/quote]
I think it has more to do with consistent coding style.
I don't think letting people free in naming files and classes would hinder performance. I think it would give developers less headaches because if they load files they have to do it with their proper name because CI will not alter it then. But a configuration option that loads files, like helpers and language files, with a camelcase extension instead of an underscore extension would be needed.
The problem i see is when a developer goes for camelcasing, he/she still has to use all the underscore methods the framework classes provide. So this brings us back to coding style consistency.
On the other hand the developer will be able to identify which methods belong to that application and which ones are from the framework. If that is more important than coding style who are the EL developers to make that decision for them?