Go from PHP engineer's perspective
1–10 of 12 posts
Re: Go from PHP engineer's perspective
#2Re: Go from PHP engineer's perspective
#3Re: Go from PHP engineer's perspective
#4Another poster riding the Go unicorn. You'll enjoy the ride until you realize your ugly as hell chimera monstrosity got you from A to B a lot faster.
Re: Go from PHP engineer's perspective
#5Another poster riding the Go unicorn. You'll enjoy the ride until you realize your ugly as hell chimera monstrosity got you from A to B a lot faster.
Re: Go from PHP engineer's perspective
#6[1] My company ran into a problem where one of our Ruby service responses was taking something about 100ms. We ruled out the database, and the ruby code, and finally discovered that the problem was jumping back and forth between Ruby and C while generating the JSON response from model classes with customized `to_json` behavior. We solved it by traversing the structure in Ruby and turning it into Arrays and Hashes. Back down under 10ms!
Re: Go from PHP engineer's perspective
#7Java, Python, and even Ruby [1] can get you under 10ms for service responses that actually hit a database, in my experience. But why improve performance by switching to a language that's well suited to the task at hand when you can do it by switching to a language that's hip? [1] My company ran into a problem where one of our Ruby service responses was taking something about 100ms. We ruled out the database, and the…
Re: Go from PHP engineer's perspective
#8list(a, b) = [b, a]
Multiple return values:
[a, b] = function(){ return ["one value", "another"];};
Re: Go from PHP engineer's perspective
#9On the criticisms of PHP on swap, those are way out of date. Swap in php: list(a, b) = [b, a] Multiple return values: [a, b] = function(){ return ["one value", "another"];};
list($a, $b) = [$b, $a];
list($a, $b) = (function(){ return ["one value", "another"];})();
Anyway, it's not even out-of-date, just ignorant. PHP has list() for at least 16 years.Re: Go from PHP engineer's perspective
#10Java, Python, and even Ruby [1] can get you under 10ms for service responses that actually hit a database, in my experience. But why improve performance by switching to a language that's well suited to the task at hand when you can do it by switching to a language that's hip? [1] My company ran into a problem where one of our Ruby service responses was taking something about 100ms. We ruled out the database, and the…
Because your question is loaded?