[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Why is Python so much more complicated than PHP? I thought
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 7
Thread images: 2
File: 1456252005610.jpg (62 KB, 690x460) Image search: [Google]
1456252005610.jpg
62 KB, 690x460
Why is Python so much more complicated than PHP?

I thought this shit was supposed to be streamlined in comparison.

But you need some autistic "framework" where you create "apps" and "views" and import libraries and a url index

All that just so you don't have to type semicolons?

from django.shortcuts import render
from django.http import HttpResponse
def index(request):
str = "hello world"
return HttpResponse(str)


compared to

<?php
echo "hello world";
?>
>>
in general i prefer php but your examples aren't te same. not like you dont already know that.
>>
>>53653053

b8
>>
>>53653053
>Why is Python so much more complicated than PHP?
Because it wasn't meant to be a hypertext preprocessor.
>I thought this shit was supposed to be streamlined in comparison.
It is, no begin/end blocks, no line separators.
>But you need some autistic "framework" where you create "apps" and "views" and import libraries and a url index
No, you don't.
>All that just so you don't have to type semicolons?
No, all this so you can do all your shit in something that doesn't run inside of a fucking webserver.
>>
>>53654179
>web language
>not using in a web server
>>
File: 1421040569482.jpg (23 KB, 450x299) Image search: [Google]
1421040569482.jpg
23 KB, 450x299
>>53653053
Because its a worthless garbage language.
>>
>>53653053
because not only do you not know python, you don't know python and you're trying to use a specialized framework for it.

>>53654516
i guess you'd better go tell Google
Thread replies: 7
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.