• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

PHP perhaps the ugliest language ever

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #41
    Ardesco's top PHP tips for the day:

    Don't waste time with all the gubbins like this when printing a value out...
    Code:
    <?php echo("Hello World"); ?>
    Instead enable short tags and do it the easy way!!
    Code:
    <?="Hello World"?>
    Secondly don't waste space with long winded if else statements...
    Code:
    if ($myVar == $foo)
    {
      $match=TRUE;
    }
    else
    {
      $match=FALSE;
    }
    Instead use the ternary operator!
    Code:
    $myVar == $foo ? $match=TRUE : $match=FALSE;
    Enjoy

    Comment


      #42
      Originally posted by PAH View Post
      Can you give an example, along with the equivalent C#, so I can understand your point?
      I made a late at night TPD post about VB which would make you understand better. NF, being the true gentleman he is, was actually graceful enough to PM me about it to alert me to his reply:

      http://forums.contractoruk.com/650550-post124805.html

      As for Tays comment of NF being boring... the answer has to be no (except when he starts on about ******* macs)
      But then Tay is a new zealander so I wouldn't expect any better from him
      Coffee's for closers

      Comment


        #43
        We all work in IT, it's safe to say that the rest of the world see us all us geeks.

        I mean, these are some of the most successful people in our profession.
        "I hope Celtic realise that, if their team is good enough, they will win. If they're not good enough, they'll not win - and they can't look at anybody else, whether it is referees or any other influence." - Walter Smith

        On them! On them! They fail!

        Comment


          #44
          Originally posted by Spacecadet View Post
          I made a late at night TPD post about VB which would make you understand better. NF, being the true gentleman he is, was actually graceful enough to PM me about it to alert me to his reply:

          http://forums.contractoruk.com/650550-post124805.html
          Looks logical to me.

          You saying C# doesn't allow default properties/methods so the scenario in that link cannot occur?

          The way I see it, VB.Net is a pot noodle and C# is Wagamamas.
          Feist - 1234. One camera, one take, no editing. Superb. How they did it
          Feist - I Feel It All
          Feist - The Bad In Each Other (Later With Jools Holland)

          Comment


            #45
            Originally posted by Incognito View Post
            I mean, these are some of the most successful people in our profession.
            Everyone looked like that in the 70s. That's not a recent photo is it?
            Feist - 1234. One camera, one take, no editing. Superb. How they did it
            Feist - I Feel It All
            Feist - The Bad In Each Other (Later With Jools Holland)

            Comment


              #46
              C Sharp or VB.NET. Not really bothered which one is used. Haven't found any real world problems that can be solved with one that cant be solved with the other.

              Application architecture is more important than language IMO.

              Comment


                #47
                Originally posted by Spacecadet View Post
                I made a late at night TPD post about VB which would make you understand better. NF, being the true gentleman he is, was actually graceful enough to PM me about it to alert me to his reply:

                http://forums.contractoruk.com/650550-post124805.html

                As for Tays comment of NF being boring... the answer has to be no (except when he starts on about ******* macs)
                But then Tay is a new zealander so I wouldn't expect any better from him

                NF made an entire website to analyse the posting stats of the TPD thread didnt he? Yeah he is a bundle of laughs.....

                Comment


                  #48
                  Originally posted by Ardesco View Post
                  Ardesco's top PHP tips for the day:

                  Don't waste time with all the gubbins like this when printing a value out...
                  Code:
                  <?php echo("Hello World"); ?>
                  Instead enable short tags and do it the easy way!!
                  Code:
                  <?="Hello World"?>
                  Secondly don't waste space with long winded if else statements...
                  Code:
                  if ($myVar == $foo)
                  {
                    $match=TRUE;
                  }
                  else
                  {
                    $match=FALSE;
                  }
                  Instead use the ternary operator!
                  Code:
                  $myVar == $foo ? $match=TRUE : $match=FALSE;
                  Enjoy
                  But doesn't that add to the "ugliness" factor since it makes it that much harder to read and understand?
                  Best Forum Advisor 2014
                  Work in the public sector? You can read my FAQ here
                  Click here to get 15% off your first year's IPSE membership

                  Comment


                    #49
                    Originally posted by tay View Post
                    NF made an entire website to analyse the posting stats of the TPD thread didnt he?
                    Actually, no, he didn't.

                    Apart from that minor point, you're right, as with all your other posts.

                    When is it you'll be leaving us, or is it just another vague promise along the lines of "SKA will be coming soon"?
                    Best Forum Advisor 2014
                    Work in the public sector? You can read my FAQ here
                    Click here to get 15% off your first year's IPSE membership

                    Comment


                      #50
                      Originally posted by TheFaQQer View Post
                      Actually, no, he didn't.

                      Apart from that minor point, you're right, as with all your other posts.

                      When is it you'll be leaving us, or is it just another vague promise along the lines of "SKA will be coming soon"?
                      Who did create that site then? Hope it was you... that would be to funny... after saying NF was not boring as you found him interesting!

                      Your snide post would have been more effective if you had realised I asked a question and didnt make a statement that he had created it....

                      Comment

                      Working...
                      X