TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-22-2008, 12:29 AM   #1 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default How can you do more than one lang?

My god, the syntax is MURDER.

Javascript syntax is like a dead rabbit to me after learning PHP.

The variables constantly lose me, and the string concatenation to use them is even worse.

NOT TO MENTION that most of the JS basics are PHP basics...

Learning javascript is getting plopped down and told to understand the object orientedness... in PHP that is like the hardest thing...

<angry>

Okay, now that my rant is over, I feel much better.

How do you cope with working with more than one language?
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 01-22-2008, 01:11 AM   #2 (permalink)
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

Lots and I mean LOTS of practice, even if you don't have work make a script for the hell of it to keep skills sharp (I constantly developed, scrap and redevelop a CMS using javascript, php, etc)
TlcAndres is offline  
Reply With Quote
Old 01-22-2008, 01:15 AM   #3 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Trial and error, you will eventually be able to do as many as you know separate. When I began PHP I would find myself coding it as I would have in C++. It just stopped after time.
__________________

Village Idiot is offline  
Reply With Quote
Old 01-22-2008, 01:36 AM   #4 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

heheh...

I have just looked into PHP OOP, and for some reason it looks a lot like Javascript.

Talk about making life easier xD
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 01-22-2008, 01:37 AM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Javascript and PHP both have a C style syntax.
__________________

Village Idiot is offline  
Reply With Quote
Old 01-22-2008, 01:56 AM   #6 (permalink)
The Addict
Top Contributor Good Samaritan 
 
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
RobertK is on a distinguished road
Default

Quote:
Originally Posted by Aaron View Post
How do you cope with working with more than one language?
Uh, I have no idea. I've worked with 3 major languages, one with roughly 3 distinct dialects (no, not Lisp), and no less than four different IDEs ... maybe as many as six.

Maybe I'm just crazy.

The one thing I find is that there is "switch time" my brain requires before I remember, "Hey this is PHP..." and I'm back to coding normally. Because all three languages are very different--I use Object Pascal (3 variants), C# (less, but handy), and PHP--I can't get around the syntactic and methodology differences without that time.

Soon as I get that "Oh yeah" message I'm fine though.
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
RobertK is offline  
Reply With Quote
Old 01-22-2008, 02:40 AM   #7 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

I'm currently into C++, Java, Python, PHP, Pascal
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-22-2008, 04:43 AM   #8 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

Quote:
Originally Posted by Orc View Post
I'm currently into C++, Java, Python, PHP, Pascal
And your favorite?
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 01-22-2008, 10:32 AM   #9 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

It can be a pain learning / using more than one programming language, but as others have said, practice practice practice

The more you use them, you easier it will become - you'll eventually find yourself just swapping from one to the other without noticing.

Alan.
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
Old 01-22-2008, 01:21 PM   #10 (permalink)
The Contributor
 
buggabill's Avatar
 
Join Date: Jan 2008
Location: Maine, USA
Posts: 92
Thanks: 2
buggabill is on a distinguished road
Default

Quote:
Originally Posted by Orc View Post
I'm currently into C++, Java, Python, PHP, Pascal
Mostly PHP, Javascript and COBOL here.

You all try and keep stuff straight between PHP and COBOL!

COBOL is easy to learn, but I REALLY miss a lot of things from the other languages I work in when I am writing COBOL. Not to mention this little 64 character line limit for code...

I guess I should go over to one of the sections where the chosen editor is being discussed and add vi.
__________________
-- Bill
"Why is it drug addicts and computer aficionados are both called users?" -Clifford Stoll
buggabill is offline  
Reply With Quote
Old 01-22-2008, 03:18 PM   #11 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Quote:
When I began PHP I would find myself coding it as I would have in C++
hehe same, id be like "whats wrong with unsigned short int x; ??????" then it would dawn on me.
practice makes perfect
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:08 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design