• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Uc-not-first suggestiion

#10
(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.
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 kilishan - 02-22-2016, 03:39 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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.