GDG Rome Devfest 2014 - An introduction to Go by Alessandro Mancini (8th January 2015)

(This post is part of a serie on GDG Rome DevFest 2014)

150108-alessandro-mancini-golang.jpg

(Alessandro Mancini)

Agatino Grillo: Hi Alessandro. Can you introduce yourself?

Alessandro Mancini: I am a software developer with several years of experience in military defense area, particularly focused in Human-Machine interface system, Real-Time radar system, Object Oriented application using C/C++ and Java.
I am an active member of Google Developers Group - Lazio/Abruzzo (GDG lab) since the summer of 2013.
I am a Go enthusiast and an Android developer and a speaker in several IT conferences.
Beside this geek/nerd things, my interests are music (I am a very expert and enthusiast of many genres of music and spend hours of my days listen good albums) and I try sometimes to snowboard.

Agatino Grillo: You get a talk at Rome Google Developer Group (GDG) Fest on 8th November 2014 in a code-lab dedicated to Go language. What about it?

Alessandro Mancini: GDG DevFest’s codelabs are hands-on lab sessions to allow attendees to learn Google technologies by practical examples from experts sharing their knowledge and passion. Rome Devefest 2014  was hosted by Rome University TRE. The full agenda of Rome Devefest 2014 is available here. I was the speaker of GO codelab that was a sort of “introduction of Go language”: why adopt it, its advantages against other programming languages, etcetera. You can find the slides here  with the code examples I proposed.

Agatino Grillo: Okay let’s start from basics. What is Go? Why another web programming language?

Alessandro Mancini: Go language (better known as Go lang or just GO) was conceived in 2007 by Google to solve some of the problems born by the interconnection of modern software infrastructures: multicore processors, networked systems, massive computation clusters, and the continuous update of web programs. Go was designed and developed to improve productivity in this complex environment. Its better-known aspects are built-in concurrency and garbage collection but Go has other important features: a rigorous dependency management, adaptability of software architecture as systems grow, robustness across the boundaries between components.
The article "Go at Google"  discusses the background and motivation behind the design of the Go language, as well as providing more details.

Agatino Grillo: That means Go is the best choice only for construction of system software on multicore machines?

Alessandro Mancini: Absolutely no. Go is efficient, scalable, and productive in every architectures and some programmers find it fun to work in. The goals of the Go project were to eliminate the slowness and clumsiness of software development and thereby to make the process more productive and scalable. The language was designed by and for people who write and read and debug and maintain large software systems.

Agatino Grillo: What are the most important characteristics of Golang?

Alessandro Mancini: To summarize Golang is

  • lightweight, avoids unnecessary repetition
  • statically typed
  • object oriented, but not in the usual way
  • concurrent, in a way that keeps you sane
  • designed for working programmers
  • funny.

Agatino Grillo: What does it mean “Object Oriented, but not in the usual way”?

Alessandro Mancini: Golang requires a different way to think about Object Oriented Programming. Although Go has types and methods and allows an object-oriented style of programming, there is no type hierarchy. The concept of “interface” in Go provides a different approach that is more easy to use and in some ways more general. There are also ways to embed types in other types to provide something analogous - but not identical - to subclassing. Moreover, methods in Go are more general than in C++ or Java: they can be defined for any sort of data, even built-in types such as plain, “unboxed” integers. They are not restricted to structs (classes).
Go has types and values rather than classes and objects.
Go doesn’t fit the typical schema of other OOP language but it provides many of the same features, in a different way:

  • methods on any type we define, with no boxing or unboxing
  • automatic message delegation via embedding
  • polymorphism via interfaces
  • namespacing via exports.

There is no inheritance in Go and so you have to realize OO design in terms of composition.

Agatino Grillo: Your suggestions on getting started with Golang?

Alessandro Mancini: At Google I/O 2012 the Google Developers team launched the Google Developers Academy, a program that provides training materials on Google technologies. Go is one of those technologies. A good point to start is for example: “Getting Started with Go, App Engine and Google+ API”  an introduction to writing web applications in Go updated on September 2014. It demonstrates how to build and deploy App Engine applications and make calls to the Google+ API using the Google APIs Go Client. This is a great entry point for Go programmers to get started with Google’s developer ecosystem.
After going through basic materials the second step for acquiring knowledge in Go is to get started writing code solving actual problems. And of course joining Go community https://groups.google.com/forum/#!forum/golang-nuts . There are a lot of gophers eager to help you improve your skills.

tipi-google-2.jpg

Agatino Grillo: Alessandro you’re a member of the Google Developer Group Rome. What’s the tech scene in Rome? What about Golang spread in Italy?

Alessandro Mancini: The tech scene in Rome is growing up thanks to developer groups like GDG Roma and GolangIt http://www.meetup.com/golangit/ which have a key role in bringing innovation and tech knowledge into the programmers communities. In Italy in the last years there has been a relevant growth of tech events as well as tech communities.

Agatino Grillo: Thanks Alessandro

Alessandro Mancini: Thank you

How to contact Alessandro Mancini

Slides

Links

Connected posts