• Complain

Joel Bryan Juliano - From Ruby to Golang : A Ruby Programmers Guide to Learning Go

Here you can read online Joel Bryan Juliano - From Ruby to Golang : A Ruby Programmers Guide to Learning Go full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2019, publisher: leanpub.com, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    From Ruby to Golang : A Ruby Programmers Guide to Learning Go
  • Author:
  • Publisher:
    leanpub.com
  • Genre:
  • Year:
    2019
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

From Ruby to Golang : A Ruby Programmers Guide to Learning Go: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "From Ruby to Golang : A Ruby Programmers Guide to Learning Go" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

By teaching familiar implementations found in Ruby, you will see the correlation between the two languages, establishing familiar concepts to give you enough knowledge to be comfortable with Go and to start programming with it.Imagine that you like to learn a new programming language, and you start by leveraging what you already know and bridge the gap in learning specific parts of the new language. This book was created on that idea, it starts with using my existing language knowledge and experience to breakdown Go into familiar Ruby concepts and implementations.By teaching familiar implementations found in Ruby, you will see the correlation between the two languages, establishing familiar concepts to give you enough knowledge to be comfortable with Go and to start programming with it.In todays world of cloud native microservices, containerized architectures, You can be up-to-date with a knowledge in Go. Many notable open-source projects are built using Go (i.e. Docker, Kubernetes, Ethereum and Terraform to name a few), and those platforms have APIs and SDKs readily available natively for you to use. And many global companies have been using Go in production (i.e. Google, Netflix, Dropbox, Heroku and Uber to name a few), proving that it has been battle-tested and powerful mature language to based your work into.This book was made with a Rubyist in mind, all the learning metaphors are based on Ruby and I think it will help you to learn Go programming language when you already knows Ruby. Go can be your second or third programming language and this book can help you get started.

Joel Bryan Juliano: author's other books


Who wrote From Ruby to Golang : A Ruby Programmers Guide to Learning Go? Find out the surname, the name of the author of the book and a list of all author's works by series.

From Ruby to Golang : A Ruby Programmers Guide to Learning Go — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "From Ruby to Golang : A Ruby Programmers Guide to Learning Go" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
From Ruby to Golang A Ruby Programmers Guide to Learning Go Joel Bryan Juliano - photo 1
From Ruby to Golang
A Ruby Programmers Guide to Learning Go
Joel Bryan Juliano

This book is for sale at http://leanpub.com/rb2go

This version was published on 2021-06-10

This is a Leanpub book Leanpub empowers authors and publishers with - photo 2

* * * * *

This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do.

* * * * *

2019 - 2021 Joel Bryan Juliano

ISBN for EPUB version: 1080944001, ISBN-13 978-1080944002

ISBN for MOBI version: 1080944001, ISBN-13 978-1080944002

I dedicate this book to my loving, supportive and beautiful wife, and to my son.

Preface

In 2018, I was hired by a company that uses Go. After 8+ years of working with Ruby, the first thing I did to learn Go is to relate to what I know in Ruby. And I thought it would be a good idea to document my learning process. My initial intention is keep it as my personal documentation and notes, but after much careful thought and considerations, I decided to post it online. From one topic, it grew into a series of multiple online articles, discussing all about my research and learnings about the language, collecting its analogies that I can compare with Ruby to help me learn it.

Go is a great language, its easy to read, with clear syntax. And it compiles to a single binary file which makes apps fast and compact, and can compile to run on different platforms. And its statically typed and garbage-collected making it efficient.

Its like a modern C with package support, memory safety, automatic garbage collection and concurrency baked-in. And you get all the nice features from a statically typed language, IDEs loves it, and so your development workflow.

In todays world of cloud native microservices, containerized architectures, You can be up-to-date with a knowledge in Go. Many notable open-source projects are built using Go (i.e. Docker, Kubernetes, Etherium and Terraform to name a few), and those platforms have APIs and SDKs readily available natively for you to use. And many global companies have been using Go in production (i.e. Google, Netflix, Dropbox, Heroku and Uber to name a few), proving that it has been battle-tested and powerful mature language to based your work into.

This book was made with a Rubyist in mind, all the learning methapors are based on Ruby and I think it will help you to learn Go programming language when you already knows Ruby. Go can be your second or third programming language and this book can help you get started.

Introduction

One of my favorite programming insights is in the book titled Class Constructions in C and C++: Object-Oriented Programming Fundamentals by Robert Sessions published in 1992, which reads object-oriented programming is really just a common-sense extension of structured programming. Fast forward today, this mindset still holds true not only for C programming language but also in Go. Go is not an OOP language by choice, and we can apply OOP techniques from OOP languages like Ruby to Go.

Go is an ideal programming language companies and developers choose to transition to, it is robust, fast, cross-platform, easy to learn, and a good choice for backend development.

It is also backed by Google, which ensures that it has supported developments in the long run.

The book is written in the way that it is easy and practical, and following through reading this book will help you to get up to speed on programming in Go fast.

And if you have prior Ruby experience, this book will help you learn Go faster, because the examples are written in Ruby, that you can relate easily.

About the Author

Joel has over 12+ years of experience as a software engineer in various IT domains namely Cybersecurity, OTT, Sports, PaAS, VoIP, Hospitality and E-commerce. He started programming when he was 12. He lives in Amsterdam, together with his family.

Setter/Getters, Attribute Accessors and Structs

Everything needs communication. Animals and humans communicate using physical gestures and sounds. Most insects have special antenna in them that they use to communicate to other insects, or emits a sounds or a scents that allows it to exchange information to other animals. Plants also have a special way to communicate to other plants through electric signalling or using others hosts to send their message.

From gigantic animals to small microscopic bacterias, viruses to cells, all have a special way to exchange message, they all have a way to coordinate information with each other.

Computers and software also requires a lot of communication.

Inside the computer hardware, electrical signals are sent to each individual components where they are task to perform a very specific function. And computers itself communicate to other computers via wire, wireless and The Internet.

It is hard to image a world without communication!

In programming, there are also various levels of ways to communicate to your code. In this chapter, we will discuss ways we can communicate to individual parts of code, one of them is variables.

If you need to pass, exchange and coordinate values that are bound to specific parts of the code, then we can use a variable.

Variables can either be a local variable that you can only access from inside the function, or global variable that you can globally access throughout your code.

For our first program example, we will create a function that takes a single word input, then output the word Hello World.

Here is an example of a local variable in Ruby. In this example, we declared a local variable hello inside a function say_hello.

1defsay_hello(message)2hello="Hello"3putshello+message4end56say_hello("World")

And when we run the Ruby code, it will output Hello World.

1$ ruby say_hello.rb23Hello World

However, if we want to change the hello variable to store a different message, we cannot directly change it from outside the function.

1defsay_hello(message)2hello="Hello"3putshello+message4end56hello="Hi"7say_hello("World")

So even though we change the hello variable, this will still output a Hello World.

1$ ruby say_hello.rb23Hello World
Questions

1. What have we learned?
We learned that we can use a local variable to store a value that we can only access from inside the function.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «From Ruby to Golang : A Ruby Programmers Guide to Learning Go»

Look at similar books to From Ruby to Golang : A Ruby Programmers Guide to Learning Go. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «From Ruby to Golang : A Ruby Programmers Guide to Learning Go»

Discussion, reviews of the book From Ruby to Golang : A Ruby Programmers Guide to Learning Go and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.