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
>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
>>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