Giter VIP home page Giter VIP logo

golang-notes's Introduction

Objectives of this repository

  • Ease golang learning by associating golang-specific concepts with previously known concepts in the OOP field.

  • Promote golang usage by easing language understanding for people coming from a heavy OOP background

Golang Concepts

Golang introduces words with a new golang-specific meaning, such as struct and interface. This is not bad, but sometimes it is nice to have a "translation" available to be able to understand golang-concepts by relating them to previously known concepts.

This is important in order to understand concepts of a new language. If you can translate a golang-word to previously known concepts, the learning is by far easier.

Main Document: (start here)

Golang Struct and Interface from OOP concepts

Other Documents

Gotchas

Method Dispatch - Low Level Detail

Type Switch Internals

Second-Level Methods

golang-notes's People

Contributors

abusque avatar gary avatar guywithnose avatar katamaritaco avatar kuangchanglang avatar luciotato avatar notjrbauer avatar notriddle avatar radarhere avatar sergobot avatar wwwillchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

golang-notes's Issues

additional notes

Here's a few things you may want to add:

  1. A block discussing receiver pointers would be good, such as when to use them, the difference between using them and not, etc.
  2. Function type definitions (example: https://play.golang.org/p/O3ImsRIXCO)
  3. Factory methods such as func New(name string, age int) Person {...} and maybe how the factory pattern can be used with interfaces.

I personally have been recently favoring function type definitions and interfaces far more over struct methods, especially when your datasources may change. This is extremely helpful when writing unit tests because you can much create mock functions that adhere to your function type definitions or interfaces. Otherwise, you basically end up being forced to write special cases in your code or creating functional tests instead of unit tests.

Just my thoughts.

jmp-table or jump-table?

Just want to ask about the jmp-table in OOP.md,

Is it jmp-table or jump-table? Because I couldn't find anything with jmp table,

I googled it and found jmp is a software.

Language name is Go

"golang" is used for tags, for SEO, etc. Please use "Go" for the actual name in text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.