3 ms·
I code like this in php, python, ruby, node and golang: include 'app'; include 'models'; include 'templates'; $data = models::getCustomers()
by Kilimanjaro 15y ago
I code like this in php, python, ruby, node and golang:
include 'app';
include 'models';
include 'templates';
$data = models::getCustomers()
$view = templates::parse('customers',$data)
app::show($view)
What's so ugly about that? I bet you I can build 90% of sites on the web with that basic snippet of code. In any language...
- vectorpush 15y agoAgreed. My web applications maintain nearly identical structures (with slight variations due to some OO quirks across platforms) regardless of language choice. At the end of the day most imperative scripting languages are semantically equivalent.