Welcome Guest, Not a member yet? Register   Sign In
[split] Uc-not-first suggestiion
#12

(02-22-2016, 03:39 PM)kilishan Wrote:
(02-22-2016, 02:59 PM)mtvee Wrote: You do realize that if you build or deploy on windows that this naming convention is blissfully ignored? Which makes the convention not cross-platform which in turn, i would say, is more akin to pure ignorance. But whatever, it's a small, sad and pathetic patch to make this work as it should.

And you do realize that Windows isn't the only OS that runs web sites? Just because Windows and Mac are case-insensitive, doesn't mean you can blissfully ignore the fact that the *nix devices - which power a good majority of websites out there - ARE case-sensitive. That means the framework has to either a) check for all possible case combinations, or b) set a standard. That's why a standard has to be in place. I'm glad your chosen OS is case-insensitive, as is the one I develop on. But the framework has to work for everyone.

You've said that you were previously able to choose the case of your files, and I don't recall that being correct, though I haven't looked at CI2 internal code in quite a while. However, the docs did use all lowercase in the examples which caused many of us (myself included) to simply use lowercase file names.

But the bigger part here is that the change that made it standardize to ucfirst has been in the code for several years and now that 3.x has been released for several months it's a little late to have this discussion.

For the record, I wasn't involved at the time, so I cannot answer WHY the particular case-combo was chosen. However, if you look around at the wider PHP community, there's a large chunk of it that does use ucfirst, or camelcase to work with the different autoloading systems in place. So, while it's something we're not used to and sounds like a bit of a pain in your particular case, it's not as silly and pointless as it might appear.

Haha, I am well aware that *nix exists Smile Thank you for your response. I also appreciate that the bed has been made, as it were. I appreciate though that you have considered my point. As a scenario, it is quite simple the develop on windows with a controller in a file called 'wElCoMe.php' and have it work just fine as it is with the 3.x code. Of course when you go to deploy on *nix you are well and truly pooched. The convention I have always used with all my sources in any language is all lowercase for files. This is the first time I have encountered this problem. I don't what other frameworks do nor am I really all that interested. I have never encountered a scenario where I was forced in any language to have a certain case file so this is quite jarring, not to mention the thought of changing and testing the pile of sites I have deployed. Seriously, as bad as it is from theoretical level, I feel more comfortable patching 5 lines in the Loader than I do changing thousands of file names. It seems like the lesser of two evils forced upon me, and forgive me for saying so, but for no good reason.

Anyway, thanks again for responding Smile Best regards!
Reply


Messages In This Thread
[split] Uc-not-first suggestiion - by mtvee - 02-21-2016, 12:37 PM
RE: [split] Uc-not-first suggestiion - by sv3tli0 - 02-22-2016, 07:05 AM
RE: [split] Uc-not-first suggestiion - by mtvee - 02-22-2016, 09:11 AM
RE: [split] Uc-not-first suggestiion - by sv3tli0 - 02-22-2016, 11:51 AM
RE: [split] Uc-not-first suggestiion - by mtvee - 02-22-2016, 12:32 PM
RE: [split] Uc-not-first suggestiion - by Narf - 02-22-2016, 02:48 PM
RE: [split] Uc-not-first suggestiion - by mtvee - 02-22-2016, 02:59 PM
RE: [split] Uc-not-first suggestiion - by Narf - 02-22-2016, 03:43 PM
RE: [split] Uc-not-first suggestiion - by mtvee - 02-22-2016, 03:59 PM
RE: [split] Uc-not-first suggestiion - by kenjis - 02-22-2016, 03:15 PM
RE: [split] Uc-not-first suggestiion - by mtvee - 02-22-2016, 04:05 PM
RE: [split] Uc-not-first suggestiion - by mtvee - 02-22-2016, 03:55 PM
RE: [split] Uc-not-first suggestiion - by mtvee - 02-23-2016, 10:15 AM
RE: [split] Uc-not-first suggestiion - by Narf - 02-23-2016, 10:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB