Advertisement
Guest User

Untitled

a guest
May 14th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. why go ?
  2. go is easy to deploy. single binary file (but they are large, i guess that will be somewhat fixed in 1.3v).
  3. i feel more safe in go than python. error handling in go is better compare to other languages.
  4. speed & concurrency.
  5.  
  6.  
  7. why not go ?
  8. require more developer time.
  9. JSON decoding/encoding in golang pain. you need to map json data with a struct.
  10. lack of library
  11.  
  12. chose python if
  13. you care about development time.
  14.  
  15. chose go if
  16. you care about performance, safe code and development time.
  17.  
  18. > Send these info to a server using HTTP, as XML & JSON, when it changes.
  19. > Periodically Connect Server using HTTP and Get data as XML/JSON
  20.  
  21. golang HTTP library is nice. where on other hand in python you have to use requests.
  22.  
  23.  
  24. > Have a long lived connection which listens to the server, using TCP.
  25. > Run a service (daemon) at the background the whole time.
  26.  
  27. this is where golang shines
  28.  
  29. this seems like a small project i guess golang will work fine.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement