4 ms·
But with Go can you write your client code and your server code in the same language?
by robfig 15y ago
But with Go can you write your client code and your server code in the same language?
- KirinDave 15y agoPeople keep touting this, but the actual number of cases where you really want this is actually pretty limited.
- rjurney 15y agoWith robust server-side javascript... its not hard to see the application of this. It is easier to generate executable javascript for the client on the server in javascript itself. Certainly in Web2+ you want this for increasingly dynamic behavior?
- KirinDave 15y agoI do want more dynamism, but I don't see why you should be passing and executing arbitrary code from a source you can only verify with the greatest of difficulty. And having executable code be your communications protocol seems like an absolute nightmare if anything goes wrong. Hell, just versioning it will be hard. It might work for some simple demo apps, but I seriously question the wisdom of such an approach with a team who's size is >1. Why not pass Json, and write your client code. It's not like Node is so expressive that it's a big win on server side code (especially with the flood of great altjvm & altclr languages these days).
- rjurney 15y agoI'd like to see more server-side XLST.
- edsrzf 15y agoMaybe some day: http://code.google.com/p/go/issues/detail?id=498 http://code.google.com/p/go/issues/detail?id=498 (Native Client is also a possibility.)
- robfig 15y agoSorry, this was actually a tongue-in-cheek comment. :)