php syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    php syntax

    Hii guys,
    I am a php programmer.I don't usually remember syntax,i search google.I wanted to know how important is it to remember all those syntaxes.



    thanks,
    Pradeep
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    You're a PHP programmer, but you don't remember the syntax? Sounds risky. I'll go ahead and move this to the PHP forum.

    Cheers.

    Comment

    • pradeepjain
      Contributor
      • Jul 2007
      • 563

      #3
      Originally posted by Markus
      You're a PHP programmer, but you don't remember the syntax? Sounds risky. I'll go ahead and move this to the PHP forum.

      Cheers.

      Hey what i meant by "not remembering" is that not all syntaxes .

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32656

        #4
        The more of it you remember, the easier it will be for you to code. It's as simple as that really. Every time you're not sure, you will either look it up (wasting some time) or try it. This can waste even more when you get it wrong of course.

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          Originally posted by pradeepjain
          I am a php programmer.I don't usually remember syntax,i search google.I wanted to know how important is it to remember all those syntaxes.
          Of no importance at all, if your career goal is to become a grocery clerk!

          Linq ;0)>

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Originally posted by missinglinq
            Of no importance at all, if your career goal is to become a grocery clerk!

            Linq ;0)>
            LOL!!! At least that syntax wouldn't be hard to remember. :-)


            I would say that if you don't remember the syntax of the things you are coding, that you haven't done enough coding. Repetition is a funny thing in that if you do something enough times, you are bound to remember it. Granted, there are things that I don't always remember in a language, mostly because I use them infrequently, but I know where to look them up. But, I guarantee you I know my basic syntax, depending on the language I am coding in. Its important, especially if you go for a job coding in PHP (or whatever language). Chances are, they will ask you to code in the interview (especially if they are serious about their coders abilities).

            Just my .02.

            Regards,

            Jeff

            Comment

            • pradeepjain
              Contributor
              • Jul 2007
              • 563

              #7
              Yeah sure guys,
              I will keep everything you people you have told in my mind.Ya of course i want to raise to a good height in php programming.I am working on php from past 1 yr.So i wanted to know wheather i am going in a correct path or how do i need to improve.


              thanks,
              Pradeep

              Comment

              • coolsti
                Contributor
                • Mar 2008
                • 310

                #8
                I always forget a lot of PHP syntax from week to week. It is because I do so many other things and work with various languages. Just the combination of PHP and Javascript causes me to be confused.

                It is not so important about whether you have the exact syntax at your fingertips. After all, what you have forgotten you can quickly look up in PHP documentation.

                More importantly is that you have the basic knowledge of what is possible to do in PHP and what is bad coding practice. As an extreme example, if you do not know the switch statement syntax, you can always look it up. But if you do not even know that a switch statement is possible in PHP, you will be making sloppy code in places using if ... ifelse ... ifelse ... else chains.

                The very best you could do is to make some - possibly introductory - PHP books as your bedtime reading over the next weeks, as a refresher of what is possible. I am doing this now with Java, something that I coded years ago and forgotten a lot about.

                Comment

                • NeoPa
                  Recognized Expert Moderator MVP
                  • Oct 2006
                  • 32656

                  #9
                  Originally posted by pradeepjain
                  Yeah sure guys,
                  I will keep everything you people you have told in my mind.Ya of course i want to raise to a good height in php programming.I am working on php from past 1 yr.So i wanted to know wheather i am going in a correct path or how do i need to improve.


                  thanks,
                  Pradeep
                  In that case you need to :
                  1. Get using it as much as possible. There's no substitute for hands-on experience.
                  2. While using it, research anything you don't understand thoroughly. The effort you put in at the start will be amply rewarded later.
                  3. After a while, come back here and share your new expertise :D That was a joke, but it can truly help you to continue learning. It's surprising what useful things you can learn from the other experts, and even by looking into something for somebody else.


                  Good luck, and welcome to Bytes!

                  Comment

                  Working...