Good alternative to PHP ? I fucking hate that shit. Is flask any good ?

Good alternative to PHP ? I fucking hate that shit. Is flask any good ? flask.pocoo.org/

Other urls found in this thread:

tcl.apache.org/rivet/html/hello_world.html
golang.org
learnbchs.org/
lily-lang.org
vibed.org/
w3schools.com/php/php_mysql_prepared_statements.asp.
twitter.com/NSFWRedditVideo

tcl.apache.org/rivet/html/hello_world.html
sudo apt-get install libapache2-mod-rivet

Node.js

flask is good

Pyramid

Python, php, or homelessness.

Node.js

openresty

golang.org

Nose.js

yeah Django and Flask are both light years ahead

HACKlang

/thread

BCHS
learnbchs.org/

node seems to be taking over from the job listings I've been seeing. Node market share is up, rails and django are way down

Node or ASP.net.

I hope that Rust will work eventually.

flask is good for small things, but can be painful to scale.

Not bait, just an super old fag here who uses php in 2000-2001-2002 and never programmed again: why Sup Forums hates it? Serious.

Holy shit that looks promising
Unfortunately I really can't into C,
Would you (or anyone) know something like this for other langs?
And with that I mean:
ORM, validation & request routing on the backend
JSON transport
Everything else on the frontend

Javascript

Something you will learn after toying around with other languages for a while is that there's nothing _really_ wrong with PHP. Yeah, it has all this weirdness, but it's weirdness that you're already familiar with, and you'll find that as long as you're not the stereotype who writes SQL injections with concatenation (which, by the way, is possible in any language), PHP is a very serviceable language.

Honestly, with all of the improvements that have been going into the language since 5.3, I dare say it's a modern language too. If you haven't used namespaces or managed your dependencies with composer, you're missing out.

If you're still not convinced, consider the fact that Python is STILL experiencing growing pains from 2 to 3, while the PHP 5 to 7 upgrade has mostly been painless, with minimal breakage.

Go Node.js or go back to India.

Lily: lily-lang.org

NODE IS NOT A REPLACEMENT FOR PHP

PHP uses the traditional CGI model. The webserver defers to it, the CGI program does its thing and builds the response, then returns it to the webserver to display. Node is not that. Node essentially has you building your own specialized HTTP server for handling requests.

Now, it is true that the CGI model is slower. But the thing the node.js trend-hoppers don't seem to understand is that for 99% of things, you don't actually NEED to build your own HTTP server. In practice, properly configured, the traditional CGI workflow is fast enough.

There's a bigger plus, though. CGI gives you isolation between requests. You write your code sequentially, but it doesn't matter because every request operates in its own isolated process. With Node.JS, you get none of these affordances, and any blocking call wedges EVERYTHING, forcing you to write code in a sisyphean asynchronous style, which maybe the language will actually have meaningful support for in ES2017.

What do I mean by "meaningful support" for async? For all the shortcomings of Go, asynchronous code is something that Go got very, VERY right. You write code sequentially, shove it in a goroutine, and get on with your life. The default webserver has every request in a goroutine by default, and if you actually need shared state, just use a fucking channel or a mutex.

Even still, for non-trivial web applications, I wouldn't even pick Go. Because for 99% of things, you don't actually need the power of building your own HTTP server. If you just need something nice-looking that's front-end facing, build it in PerubythonHP and save yourself the headache. Save Go (or node I guess if you insist) for the back-end, in cases where you actually need massive concurrency and shared state - which again is not the case for 99% of things.

PHP is only language could fit on ultra cheap, dead brain deploy web services.

>hipster free
>php is a joke
>node is a joke

sounds pretentious [spoiler]yet close to the truth, will try[/spoiler]

My point extends to any other language that uses the traditional CGI model, like Perubython.

D with vibe.d

vibed.org/

ur a fag

yeah, flask is pretty nice

Code Bootcamp graduates were told it was a "fractal of bad design" and that they need node.js instead.

tv fag detected

Can someone tell me why there's two billion web frameworks, web "languages", and web libraries?

>as long as you're not the stereotype who writes SQL injections with concatenation
I'm a retard, how are you meant to assemble a dynamic query?

Something like the following:

$stmt = $conn->prepare("INSERT INTO MyGuests (firstname, lastname, email) VALUES (?, ?, ?)");
$stmt->bind_param("sss", $firstname, $lastname, $email);


Copypasted from w3schools.com/php/php_mysql_prepared_statements.asp. I don't write php but the basic idea applies in every language.

I would say there are a few reasons:

1) Web dev is still immature. All computer science and programming is immature, but web was very much the wild west just a few years ago.

2) web is where -- by far -- the greatest velocity of development has been occurring for the last few years. For example, people realizing that Javascript is actually pretty powerful, and learning how to take advantage of that. We wouldn't have the current trend of functional features making their way into C#, C++, etc. without the popularization of 'modern' Javascript.

3) #2 combined with the low barrier of entry means that people hop from framework to framework, based on solving the latest trend of issues. I'd say that most people are onto a new stack before they've even become truly competent in the previous hot stack.

Node w/ ES6

>1) Web dev is still immature. All computer science and programming is immature, but web was very much the wild west just a few years ago.
The only way for the web to mature is to die.

>hating php

you should kill yourself fucking faggot

C#

Everything else is cancer.

you can use flask just for smaller web projects/apps for anything bigger is useless, you need django for that

i am developing in node for last 4 months and i am suprised AF... shit is FAST

I like using C# but I would not use it for anything web related
>trapped in Microsoft's ecosystem running Windows Server with nothing but pajeets for help