View Poll Results: Should PHP be case sensitive?

Voters
8. You may not vote on this poll
  • Yes.

    7 87.50%
  • No.

    1 12.50%
  • Can't say.

    0 0%
Results 1 to 12 of 12

Thread: Should PHP be case sensitive???

  1. #1

    Thread Starter
    Lively Member Bolerophone's Avatar
    Join Date
    Dec 2003
    Location
    Himalayas
    Posts
    123

    Should PHP be case sensitive???

    Should PHP be case sensitive. OR for that matter any language. I so much like the independence that I get from VB6 without worrying about casing.
    Jobs: "Do u want to sell colored sugar water or change the world?"

    Get Firefox Now!!!
    Mendhak leaving town.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Should PHP be case sensitive???

    Personal preference. I have often been told that VB6/VB.NET being case insensitive (in the IDE, take note) promotes laziness.

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Should PHP be case sensitive???

    It does. As well as a lot of other things with VB. Thats why it is often so hard for VB programmers to move to an other language afterwards.

  4. #4

    Thread Starter
    Lively Member Bolerophone's Avatar
    Join Date
    Dec 2003
    Location
    Himalayas
    Posts
    123

    Re: Should PHP be case sensitive???

    well in a way this laziness is a convenience, why would anyone keep same names for two variables/functions in different case. Would it not promote confusing code.
    Jobs: "Do u want to sell colored sugar water or change the world?"

    Get Firefox Now!!!
    Mendhak leaving town.

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Should PHP be case sensitive???

    No, it is the opposite, it makes you learn the way to name Classes, Functions, and Variables in different languages. Like in many languages you have a big letter in front of a class name, and not for a variable. It is not ment to make two variable names with the same name but with different capitalization.



    ØØ

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Should PHP be case sensitive???

    Ohhh just to add to that. You can see a similar example when it comes to indentation. Many new VB programmers don't use tab at all. How easy is it to read it then?

    Other languages like Python wont work if you don't have it. It uses ONLY indentation to group functions and branching. So it all comes down to readability in the end.


    ØØ

  7. #7

    Thread Starter
    Lively Member Bolerophone's Avatar
    Join Date
    Dec 2003
    Location
    Himalayas
    Posts
    123

    Re: Should PHP be case sensitive???

    Quote Originally Posted by NoteMe
    Ohhh just to add to that. You can see a similar example when it comes to indentation. Many new VB programmers don't use tab at all. How easy is it to read it then?
    well we all were novices once. Every one has a learning curve.


    Other languages like Python wont work if you don't have it. It uses ONLY indentation to group functions and branching. So it all comes down to readability in the end.


    ØØ
    Why on earth would some one create a language like that....
    Jobs: "Do u want to sell colored sugar water or change the world?"

    Get Firefox Now!!!
    Mendhak leaving town.

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Should PHP be case sensitive???

    I still create variables that are properly capitalized, and like the fact that the IDE remembers them the way they were defined. It's a lot better than QB, which capitalized all keywords.

  9. #9

    Thread Starter
    Lively Member Bolerophone's Avatar
    Join Date
    Dec 2003
    Location
    Himalayas
    Posts
    123

    Re: Should PHP be case sensitive???

    I am surprised very few people have taken part into this poll.
    It means the results are less accurate. how can I make more people particiate.
    Jobs: "Do u want to sell colored sugar water or change the world?"

    Get Firefox Now!!!
    Mendhak leaving town.

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Should PHP be case sensitive???

    By asking them very nicely and carrying a baseball bat.

    Most people who wanted to participate have probably done so... this isn't a very frequented forum.
    Last edited by mendhak; Jun 30th, 2005 at 01:53 AM.

  11. #11
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Should PHP be case sensitive???

    Quote Originally Posted by Bolerophone
    Why on earth would some one create a language like that....
    It makes you write pretty code.....code that looks like poetry...

  12. #12
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: Should PHP be case sensitive???

    You know what'd be perfect? The ability to turn it on and off! Like a simple "option casesensitive off" at the beginning of the program, or whatever would be equivalent for language X. Let people have their case sensitivity if they want, but at the same time don't deter users. Of course this might lead into problems with some libraries..

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width