Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

PHP Difficulty of translating Python code to PHP

JRGN1

New Coder
I have just started to learn some programming as I was supposed to do a small web scraping project with Python. Now I was told that I cannot use Python, but should use PHP. So far I just know some Python basics and no other language. Thus, I am wondering if you think it were easier for me to proceed with Python and translate the code into PHP later or start from scratch with PHP directly.

I have not written that much code yet.

Thanks in advance.
 
My opinion, if it needs to be php, then you should start with php.
I started with php when it first came out and used it up to php5. Then learned a little about bash and then found out about python and really liked it.
That's my thing now. I'm a novice user I guess when it comes to python. My opinion the code is a lot cleaner and simpler.
 
I have just started to learn some programming as I was supposed to do a small web scraping project with Python. Now I was told that I cannot use Python, but should use PHP. So far I just know some Python basics and no other language. Thus, I am wondering if you think it were easier for me to proceed with Python and translate the code into PHP later or start from scratch with PHP directly.
If you know it has to be PHP, don't waste time starting off in Python just because you know a bit of that. It's false economy. You might find early on that you need to do something that Python cannot (for example accessing the HTTP request headers, although perhaps Python can do that stuff too), or worse, you might unwittingly do stuff in in Python that you later find cannot be done in PHP. Best to dive right in and learn another language.




 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom