What language should I learn?

This is a discussion on What language should I learn? within the PHP forums, part of the Development category; if( php =first) { echo "all is well"; } hehe...


Reply
 
LinkBack Thread Tools Display Modes
Old 15th July 2009, 08:00 AM   #11
Member
 
Join Date: Jun 2009
Location: Bali
Posts: 32
Thanks: 0
Thanked 2 Times in 2 Posts
edbr is on a distinguished road
Expertise: (X)HTML / CSS
Experience: Professional
Default

if(php=first) {
echo "all is well"; }
hehe
edbr is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 15th July 2009, 01:14 PM   #12
Member
 
Join Date: Dec 2008
Location: Hatfield, UK
Posts: 170
Thanks: 1
Thanked 8 Times in 8 Posts
Jason is on a distinguished road
Expertise: PHP
Experience: Professional
Default

Quote:
Originally Posted by edbr View Post
if(php=first) {
echo "all is well"; }
hehe
Your syntax is incorrect, the above will always return true. Should have a double equal sign

Also to avoid the parse error php should be a variable and first should be a string.

Code:
if ($php == 'first')
{
  echo "all is well!";
}
Ofcourse you don't really need brackets

Code:
if ($php == 'first')
  echo "all is well!";
*Sigh*

I need to get out more lol
Jason is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 15th July 2009, 01:18 PM   #13
php coder
 
davidj's Avatar
 
Join Date: May 2009
Posts: 153
Thanks: 0
Thanked 8 Times in 8 Posts
davidj has a spectacular aura aboutdavidj has a spectacular aura aboutdavidj has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

correcting Pseudocode!!!

sheesh...
davidj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 15th July 2009, 01:23 PM   #14
Member
 
Join Date: Dec 2008
Location: Hatfield, UK
Posts: 170
Thanks: 1
Thanked 8 Times in 8 Posts
Jason is on a distinguished road
Expertise: PHP
Experience: Professional
Default

Quote:
Originally Posted by davidj View Post
correcting Pseudocode!!!

sheesh...
lol, it is a php forum . On a more serious note, this is what happens when I start avoiding work... 5 things left to do today. Motivation gone, might as well mutter pointlessly on a forum till motivation returns.

Back on topic, I don't think anyone asked what this person wanted to be. If they wanted to be a front end UI developer or something similar then PHP would be the wrong way to go. Instead they should go with JavaScript and just learn enough PHP to get by.

After all, with so many good content management systems with thousands of a plugins, a web designer may never need to write a line of php code.
Jason is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 15th July 2009, 05:56 PM   #15
supermod
 
CloudedVision's Avatar
 
Join Date: Jan 2009
Location: Your Imagination
Posts: 729
Blog Entries: 4
Thanks: 1
Thanked 27 Times in 26 Posts
CloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

Small correction to your PHP Jason, its good habit to always put in the brackets, even if you don't need them, because sometimes you forget to put them back in when you do need them.
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 15th July 2009, 10:40 PM   #16
Junior Member
 
SebKom's Avatar
 
Join Date: Jul 2009
Location: Corfu (Greece) & London (UK)
Posts: 24
Thanks: 5
Thanked 1 Time in 1 Post
SebKom is on a distinguished road
Expertise: (X)HTML / CSS
Experience: Intermediate
Default

Okay guys, to bring this back on topic, what about Ruby? Do you see any of its frameworks (Rails, Nitro, etc) replacing PHP?
SebKom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 15th July 2009, 11:42 PM   #17
supermod
 
CloudedVision's Avatar
 
Join Date: Jan 2009
Location: Your Imagination
Posts: 729
Blog Entries: 4
Thanks: 1
Thanked 27 Times in 26 Posts
CloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura aboutCloudedVision has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

I've learned a bit of Ruby on Rails, and it was a pretty good experience. Many more coding shortcuts than PHP. Only problem is, Ruby was never meant to be used online. So without the framework, Ruby is nothing. In other words, you can't choose not to use a framework, which sometimes you need to do. (Especially with smaller projects, sometimes you just don't want to bother with a framework.
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 16th July 2009, 01:41 AM   #18
Member
 
Join Date: Jun 2009
Location: Bali
Posts: 32
Thanks: 0
Thanked 2 Times in 2 Posts
edbr is on a distinguished road
Expertise: (X)HTML / CSS
Experience: Professional
Default

Quote:
*Sigh*

I need to get out more lol
yes i think you do :)
edbr is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 16th July 2009, 05:33 AM   #19
php coder
 
davidj's Avatar
 
Join Date: May 2009
Posts: 153
Thanks: 0
Thanked 8 Times in 8 Posts
davidj has a spectacular aura aboutdavidj has a spectacular aura aboutdavidj has a spectacular aura about
Expertise: PHP
Experience: Professional
Default

Quote:
After all, with so many good content management systems with thousands of a plugins, a web designer may never need to write a line of php code.
in the back bedroom maybe but not in a professional environment
davidj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 16th July 2009, 07:51 AM   #20
Member
 
Join Date: Dec 2008
Location: Hatfield, UK
Posts: 170
Thanks: 1
Thanked 8 Times in 8 Posts
Jason is on a distinguished road
Expertise: PHP
Experience: Professional
Default

Quote:
Originally Posted by davidj View Post
in the back bedroom maybe but not in a professional environment
Assuming that you are in a design based role at a web design agency you will often be expected to be familiar with PHP but you will not be expected to write anything.

Ofcourse without knowing what the person wants to get into the discussion is irrelevant really. If they want to be a jack of all trades freelancer then PHP is the way to go. If they want to become a developer then go on reed or a similar job agency website and look at the required skills.

Ruby is awesome, for that matter so is Django, the pay is better as demand still outstrips supply in the market at the moment.

Anyone can learn anything. If you are looking to get into Government or corporate environments then you may want to look into ASP/.net.

If you want to be on the cutting edge of web development then you may want to check out Ruby/Django

If you want to be a good developer with a skill set that can be applied to almost any type of project, go with PHP.
Jason is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Reply

Tags
language, learn

Thread Tools
Display Modes