Linked by Thom Holwerda on Fri 10th Sep 2010 14:59 UTC
General Development Python programmers shouldn't get too smug. While many people agree that Python is designed in a way that makes it a highly readable language, there can still be problems with legacy, untested Python code too. Porting legacy Perl to Python can be a daunting task. In this article, learn some of the theory behind dealing with legacy code, including what not to do.
Thread beginning with comment 440648
To view parent comment, click here.
To read all comments associated with this story, please click here.
trenchsol
Member since:
2006-12-07

I've used the phrase "well, mainstream", so you don't have to understand it literally. What I meant is that syntax looks more like some other popular languages, like Java, JavaScript or C#.

I am aware that there is, probably, more Perl code than Python code out there.

Reply Parent Score: 2

Delgarde Member since:
2008-08-19

I've used the phrase "well, mainstream", so you don't have to understand it literally. What I meant is that syntax looks more like some other popular languages, like Java, JavaScript or C#.


That's a funny thing to say, given that Perl has a loosely C-style syntax like Java, Javascript, and C# - it uses braces, and semicolons, favours symbols over keywords, etc.

Whereas Python has a completely different syntax - indenting rather than braces, keywords rather than symbols, etc. I love Python, but I'd certainly never say it's syntax looks like any of the languages you describe...

Reply Parent Score: 2

trenchsol Member since:
2006-12-07

Ok, maybe not syntax, but approach, logic. Java, Javascript or C# person will learn Python much faster than Perl.

Python syntax for objects and classes is more common with Java and C# or even PHP. Perl looks strange to Java and C# crowd. Python not so much, after you get used to mandatory indentation.

Reply Parent Score: 2