Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Advantages of Perl or Python over PHP?

Name: !Zq39c9ldG6 2011-08-15 21:48

Alright, so I'm looking into web development, and I'm wondering if there's any noticeable differences user-end wise between Perl, PHP, and Python.

Could someone explain?

Name: Anonymous 2011-08-15 21:53

Server-side web-dev is about making things work, there's no beauty involved, users care a shit.

Name: Anonymous 2011-08-15 21:57

No difference.

Name: Anonymous 2011-08-15 22:56

>>2
Wow, an intelligent person on /prog/ for once!

Name: Anonymous 2011-08-16 1:16

>>2
It's only an issue when people put the most horribly coded shit on servers. For the most part it works out okay though.

Name: ᴍʀ. ᴠɪʟᴇ !PRoGN.piPE 2011-08-16 1:41

>>1
Perl - text shit
PHP - mySQL shit
Python - framework shit

pick your poison

Name: Anonymous 2011-08-16 2:00

>>4
How is saying ``LOL U GET SHIT DONE'' a sign of intellect? It's the standard excuse for Java monkeys to not use better languages, second only to ``use the right tool for right job''.
Of course >>2 said something completely different from that, but you do look like one of those that likes to ````get the shit done''''.

Name: Anonymous 2011-08-16 2:05

PHP is the only language I know of where the default MySQL module is wide open to SQL injection due to no support for prepared statements. 'nuff said.

Name: Anonymous 2011-08-16 3:08

If it ain't Python, it's shit.

Name: Anonymous 2011-08-16 3:59

>>8
i don't know why people tend to write long articles about this issue. mysql_real_escape_string() to all parameters you pass in is all there is to it.

Name: Anonymous 2011-08-16 5:42

>>10
Because mysql_real_escape_string is subject to the same multibyte character problems as PHP's built-in function addslashes under the right circumstances.

Name: Anonymous 2011-08-16 8:05

>>11
Maybe they should introduce a mysql_real_escape_string_for_real_this_time function. Or a mysql_actually_working_real_escape_string function.

Name: Anonymous 2011-08-17 11:10

Perl is batter

Name: Anonymous 2011-08-17 13:15

>>1

Perl is faster than PHP or Python.

That's about the only thing your end users are going to notice.

Name: Anonymous 2011-08-17 13:32

Even Xarn uses shitty Wordpress for his blog. It's not ideal, of course, but Web development is never something that's an ideal thing to be working with, anyway. As long as your code isn't complete horrid shit that's prone to SQL injection exploits (PHP is notorious for this, but it can be dealt with even in PHP), then you shouldn't have too much to worry about.

Name: Anonymous 2011-08-17 14:03

Haskell.

Name: Anonymous 2011-08-17 14:15

>>12
Well, they do actually support prepared statements.
Though just saying it like that might be a bit nice to them, in that it sounds like the language might actually have one well-thought out, useful feature that doesn't encourage buggy, unmaintainable code by design.
Well, perish the thought. See if you can spot the amazingly retarded API design in the following snippet from their manual pages:
$stmt = $mysqli->prepare("INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)");
$stmt->bind_param('sssd', $code, $language, $official, $percent);

$code = 'DEU';
$language = 'Bavarian';
$official = "F";
$percent = 11.2;

/* execute prepared statement */
$stmt->execute();

Name: Anonymous 2011-08-17 14:20

>>17
Are the parameters bound by reference? Amazingly retarded indeed.

Name: Anonymous 2011-08-17 14:27

>>17-18
That's what the MySQL C API is like.

Name: Anonymous 2011-08-17 20:45

>>15
OH WOW EVEN XARN ?!?!?!

Name: Anonymous 2011-08-17 20:49

>>11
multibyte character
That explains the higher-than-usual occurrences of exploited foreign servers. I use UTF-8 and 8859-1 so it doesn't affect me.

Name: Anonymous 2011-08-18 0:53

>>17
But mysqli isn't the default MySql module in PHP.

Name: Anonymous 2011-08-18 5:36

Advantages of feces over urine.

Don't change these.
Name: Email:
Entire Thread Thread List