Prep dump for taking a lecture on MVC + Design for first yearites in SDSLabs.

Intro to architectures

https://medium.com/@victornkpubre/understanding-software-engineering-architecture-clean-mvc-mvp-mvvm-8068db755153

What Is Wrong With Model-View-Controller (cocoacasts.com) (MVC vs MVVM)

MVC

MVC

MVVM

MVVM

MVP

MVP

Intro to GO

  1. Why go?
  2. basics of go.
    1. go build/go run
    2. go install : putting in an executable path ?
      1. GOBIN , GOPATH/bin , if not then HOME/go/bin
      2. go mod init github.com/ashpect/go-mvc
    3. The go. mod file lists the specific versions of the dependencies that your project uses. The go. sum file provides checksums for the exact contents of each dependency at the time it is added to your module.
  3. What is a package ?
  4. Go doesn't have classes, Go has types. Go doesn't use inheritance, Go uses composition.
  5. What is an interface ?

Overview of MVC

Controller : Contol Flow

Intercepts "requests" (such as HTTP), parses them and then calls the appropriate "Model", getting some kind of data as a result and then sends it to a "View".

Similar to views, a controller shouldn’t be packed with too much business logic