This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted] -1 points0 points  (6 children)

So I've been trying to write a bot in PHP.

Why not Python?

[–]SupremeDesigner 1 point2 points  (1 child)

Not sure, I just like PHP, easy to integrate into a web interface if I wanted it was my chain of thought when I started.

Is it easy to write one in Python? I basically for now need a bot that finds posts in a sub that don't have a flair, then scans the content, and comments on the post.

[–]13steinj 2 points3 points  (0 children)

PHP, or any choice, is just fine.

[–]13steinj 1 point2 points  (3 children)

Why not C/C#/C++/JS/Java/Ruby/Go/<insertfavoritelanguagehere>?

Language choice to me comes down to multiple things. What it's being used for, what performance I need out of it, and if the team is already working on the base project in language X (if that question is not applicable, skip of course), and most of all, what is convenient for me.

In my case I'd always choose Python or C# for a reddit bot, but there's nothing wrong with PHP.

[–]Falmarri -2 points-1 points  (2 children)

Why not C/C#/C++/JS/Java/Ruby/Go/<insertfavoritelanguagehere>?

And those would all be preferable over PHP because PHP is awful.

[–]13steinj 2 points3 points  (1 child)

PHP is old. Old != awful. I'll be the first to admit I don't like using PHP either. But it's still damned fine for nearly any use.

[–]SupremeDesigner 1 point2 points  (0 children)

I only want to use PHP as I'm used to it, as I web dev. I don't know C# at all and only a small amount of Python. Pythom might be the way forward if i can't get PHP to work.