|
|
|
|
|
by zer00eyz
747 days ago
|
|
I started writing PHP back in the 3 and 4 days... I have been writing go for over a decade. If I had to add a few dynamic elements to a static HTML site, php is still king. If we're building an API, go will win hands down. Not only in LOC but performance, and reporting. When you get into whole pages (think blogs or shopping or... ) a lot of that is going to depend on what framework you're grabbing on the PHP side. There arent a lot of "batteries included" solutions on the golang side... You might end up writing fewer lines of code in the first week but by the end of the month were going to be at feature parity and your quickly going to fall behind. The moment I need a SPA, on page interactive GUI you're going to end up with a JS framework and an API back end... here again, go will shine. |
|
I'm not so sure of that. Writing business logic in PHP is usually more concise than in Go, and more flexible. Also, I can think of a number of json schemas that are impossible to replicate in Go's type system but work just fine in PHP.