𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

From Ruby to Golang : A Ruby Programmer's Guide to Learning Go

✍ Scribed by Joel Bryan Juliano


Publisher
leanpub.com
Year
2019
Tongue
English
Leaves
166
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


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 today's 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.

✦ Table of Contents


Table of Contents
Preface
Introduction
About the Author
Setter/Getters, Attribute Accessors and Structs
Instance Variables
Struct
Public Structs
Attaching a Struct to a Function
Pass-by-value and Pass-by-reference
Pointer Receiver
Value Receiver
Decouple and Reuse Structs through Inheritance
Anonymous Structs
Anonymous Struct Fields
Chapter Questions
Hash and Maps
Maps by Declaration
Initialization by Make
Initialization by Literal Type Assignment
Maps by Assignment
Assignment with a Key/Value
Assignment on an Empty Map
Using Struct in Maps
Struct Maps by Declaration
Struct Maps by Assignment
Struct Maps with Array Values
Maps with Dynamic Types
Deleting Map Values
Reading a Non-Present Key from a Map
Variadic Functions
Variadic Interface
Maps with Variadic Interface
Chapter Questions
Arrays and Slices
Fixed Array
Fixed-Array Automatic Size Calculation
Fixed-Array Sizes
Fixed-Array Assignment Behaviour
Sliced Array
Sliced-Array Assignment Behaviour
Capacity
Deep Copy
Append
Arrays with Variadic Types
Empty Interface Array Type
Chapter Questions
Navigating your Arrays
C-style Semantic Form
Value Semantic Form
Value Semantic Form with Muted Parameter
Index Semantic Form for Range
Value Semantic Form with Pointer Access
Chapter Questions
Package Management
Sharing Go Packages
Package Management using Go Modules
Manual go.mod Generation
Automatic go.mod Generation Through Source-Code
Automatic go.mod Generation Through dep Package Manager
Refresh Go Modules
Package Management using Dep
Chapter Questions
Collection Functions in Go
Predicate Method all?
Predicate Method any?
Collect Enumerable Method
Cycle Enumerable Method
Detect Enumerable Method
Drop Enumerable Method
Drop While Enumerable Method
Chapter Questions
Organizing your Functions using Interface
Interface as a Self-Documenting API Reference
Interface as Type contract
Satisfying Return Values
Chapter Questions
Glossary
Acknowledgments
Credits


πŸ“œ SIMILAR VOLUMES


From Ruby to Golang : A Ruby Programmer'
✍ Joel Bryan Juliano πŸ“‚ Library πŸ“… 2019 πŸ› leanpub.com 🌐 English

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 st

Ruby: Learn Ruby in 24 Hours or Less - A
✍ Robert Dwight πŸ“‚ Library 🌐 English

<h2><span>Learn Ruby In 24 Hours Or Less!</span></h2><span><br>In this book you will find the fundamental aspects of the Ruby programming language. It will explain theories and lessons through detailed instructions and practical examples. With this eBook, you'll learn how to get Ruby, how to write R

Programming Ruby: A Pragmatic Programmer
✍ David Thomas, Andrew Hunt πŸ“‚ Library πŸ“… 2000 πŸ› addison-wesley 🌐 English

(Pearson Education) A guide to working with the object-oriented programming language, Ruby, which allows for programming without extra syntax or code. Shows how to easily mine the Ruby language, teaching the basics, plus how to write large programs, how to extend Ruby using C code, and more. Softcov

Comprehensive Ruby Programming: From beg
✍ Jordan Hudgens πŸ“‚ Library πŸ“… 2017 πŸ› Packt Publishing 🌐 English

<h4>Key Features</h4><ul><li>Provides the core skills required to become a Ruby programmer</li><li>Covers how to use the most popular Ruby Gem libraries</li><li>Includes details on regular expressions</li></ul><h4>Book Description</h4><p>Ruby is a powerful, general-purpose programming language that

Using JRuby: Bringing Ruby to Java
✍ Charles O Nutter, Thomas Enebo, Nick Sieger, Ola Bini, Ian Dees πŸ“‚ Library πŸ“… 2011 πŸ› Pragmatic Bookshelf 🌐 English

In Using JRuby you'll venture into the wide world of open-source Ruby and Java libraries. Write Ruby on Rails web applications that run on Java servers like Tomcat. Use Java's JDBC or Hibernate to easily connect Ruby to industry-standard databases. Test your Java program using Ruby's elegant Cucumbe