|
|
|
|
|
by withinboredom
748 days ago
|
|
There are things Go excels at and there are things PHP excels at. They don’t always overlap. For example, you can write a simple web app in 100 lines of php code, and a process manager in 100 lines of Go code. If you flip the languages around, the number of lines explodes. |
|
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.