←back to thread

133 points avan1 | 3 comments | | HN request time: 0.611s | source
Show context
colesantiago ◴[] No.45077666[source]
I bit the bullet rewriting my app from PHP to Go and it paid off for my company, we're talking 20K lines of PHP code, reduced to 4K lines of Go and with the added efficiency gains with it.

I think some orgs just need to take the jump and plan a rewrite, add tests (easier with Go) and just do this if they are a PHP shop, I would say it's worth it.

Instead of blending Rust/PHP or Go together and having an unmaintainable mess of a codebase.

replies(6): >>45077715 #>>45077882 #>>45077891 #>>45078407 #>>45080182 #>>45081315 #
1. NeutralForest ◴[] No.45077715[source]
But the question always is: was the rewrite the reason for the gained efficiency, or the new language?
replies(1): >>45077844 #
2. colesantiago ◴[] No.45077844[source]
Both.

Go made this worth it and it also was easy to hand over to another experienced developer.

replies(1): >>45081801 #
3. NeutralForest ◴[] No.45081801[source]
Fair, what did you find in Go that you couldn't in PHP? Do you miss anything from PHP?