Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Go Programming Language - Learning The Go Lang way

505 views

Published on

Presented at the IndicThreads.com Software Development Conference 2016 held in Pune, India. More at http://www.IndicThreads.com and http://Pune16.IndicThreads.com


--

Published in: Software
  • Be the first to comment

Go Programming Language - Learning The Go Lang way

  1. 1. The Go Way Navneet Karnani Mandrake Technologies
  2. 2. Prerequisites - Audience is smart and understands programming - Ability to use Google - Audience is looking for takeaways to be things not found on blogs
  3. 3. Scope - Talk about the behavior - Look at and discuss code - Keep use cases simple to keep focus - Cover the basics to enable building on the knowledge - Promo: Talk on Web App development using Go later in the Conference
  4. 4. What is the charter of Go Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
  5. 5. Hello world
  6. 6. Findings - No semicolons - Name space - “main”
  7. 7. Multiply Write an application to print multiplication tables Hands On
  8. 8. STEP 1 – compute and print
  9. 9. Findings - No type declarations
  10. 10. STEP 2 – use arrays
  11. 11. Findings - Arrays are data types with a specified type and size
  12. 12. STEP 3 – use slices
  13. 13. Findings - Views into the array
  14. 14. STEP 4 – test
  15. 15. Findings - Test infrastructure built in - Building blocks work with Example and Standard Conditionals - Benchmarking
  16. 16. STEP 5 – concurrency
  17. 17. Findings - Spawning “tasks” is a first class citizen - Uses OS concept of “channels” for data exchange
  18. 18. STEP 6 – MAP, References … and memory
  19. 19. Findings - Go treatment of Local variables differs from other languages - Memory allocation uses the “make” method - There is no “delete” needed
  20. 20. STEP 6 – Struct
  21. 21. Findings - Structs are memory structures with optional associated functions and methods
  22. 22. STEP 7 – inteRface
  23. 23. Findings - Duck Typing
  24. 24. Completeness - Smart suggestions / errors - Code formatting - Dependency management - Build Tool - Testing framework - Performance measurement
  25. 25. https://github.com/navneetkarnani/Presen tation-TheGoWay Code
  26. 26. Thank You Navneet Karnani navneet@mandraketech.in @maakhansingh

×