Training Day 1 - adithnaveen/swiggy-2020-july GitHub Wiki

### Welcome to the swiggy-2020-july wiki!

shashi - c++, python, go is new (M.Tech)

varun - M.Tech IIIT hyd,, c++, python, java

adithya - M.Tech IIIT allahabad, C++, Python, Java

aarthi - M.tech CS, C++, Python

abhishek - btech IT, IIIT Hyd, c++, python

adithya Ranjan - VIT vellur,

anshuman - IT, C++, Python, java exp

bhavi - IIIT IT hyd, C, C++, python

deepanshu - IIIT Allahabad - knows basics of Go

Hemanth - CS NIT Bhopal - java

Karthik - BTech, RVCE EC, c, c++

Milan - VIT swiggy with 6 months, go lang, Java

poonganam - IIIT Hyd, EC Familiar with go, priya - IIIT hyd, swiggy intern, c++, python Rohan - Btech IT, IIIT - swiggy working shubham - IIIT HYD, C++, java, python Shyam - IIIT HYD, c++, java, python (docker, kubernetes ) swapnil - IIIT HYD, c++, Java, intern with swiggy,

git (github) golang Rest - GIN gRPC (HTTP 2.0 ) dynamodb (mysql/oracle/mongodb) dynamodb - AWS CI/CD Docker Kubernetes (k8s) Project

Scaling Vertical Make you computer stronger (64GB) Horizontal - 8gb - 8gb - 8gb

HTTP 1.0 - Stateful HTTP 1.1 - Stateless HTTP 2.0 - full duplex communication

git config --global -e

git config --global user.name git config --global user.email git config --global alias. . ???

git config --system core.editor git config --global --edit

  1. you should have folder

  2. cd training

  3. git init

  4. git config

  5. create some files - transient

  6. add files to git (let git know your files) - you can rollback git rm --cached

  7. you can commit

  8. create repo in github https://github.com/adithnaveen/swiggy-2020-july.git

  9. refer to your local folder to github git push origin master

  10. on the chat put your github link

git log git log --oneline git log --oneline -n 3 (last 3 commit information)

https://github.com/shubham491/swiggy-2020

https://github.com/rt30/Swiggy-2020-rt

https://github.com/adityaranjan65

https://github.com/aadithyamd/swiggy-bootcamp.git

https://github.com/upadhyay-p/swiggy-bootcamp

https://github.com/swap-pakhare/test

https://github.com/naga-hemanth/TempTraining

https://github.com/dgoyal888/swiggy-bootcamp

https://github.com/shashijangra22/swiggy-training

https://github.com/abhi-121/swiggy-2020-july

https://github.com/shyamal2021/Swiggy_bootcamp

https://github.com/karthik-blip/swiggy-2020-july

https://github.com/BhaviD/Swiggy_Bootcamp

https://github.com/varungupte/Swiggy-GIT-Training

https://github.com/swiggy-test/swiggy-2020

https://github.com/rohan-rvb/TestRepo

how to do branching

to locate which branch you are working

git branch

create a branch

git branch new-branch

change your branch from one to another

git checkout new-branch

-- make some changes git add . git commit -m "added some files"

git checkout master

-- merge

git merge new-branch

git push origin master git push origin new-branch

github.com/yourname/repo

  • Developer Dev code
  • Testers Test Cases
  • DevOps no test cases executable only source code (application logic)
  • Automation

GO Lang

C / C++ Socket programming Threading (fork) Matrix Multiplication Doing system calls open MP - parallel programming Terminal base file explorer Computer Graphics Gaming - TIC-TAC-TOE Oops Works (encapsulation, polymorphism, pure virtual function, inheritance) Design Pattern recursion regex Data structures + LinkedList Semi conductor Remote Control Heater Light controller

Java Tomcat - HTTP -> servlet Slow will not talk to computers directly Hashcode

go Lang - will look like c

C/ C++ - x pages JAVA - x+x pages class myclass extends Thread { public void run() { // bl } }

class myclass implements Runnable { public void run() { // bl } }

go lang - x-50% (very compact) + C + Java + API (web server, socket programming, rest server) ver 1.0 2012 ver 1.14 2020

  • c code - it return a the value to OS + the executable is in underlying OS (WIN-WIN, MAC-MAC) #include <conio.h> #include <stdio.h>

void main(){ printf("hi") ; return ; }

  • java program (platform, WIN-MAC, MAC-LINUX) public class HelloWorld { public static void main(String args[]){ System.out.println("hello") } }

var x := 25

print statement in java

// since System is a class, and class shall have pascal casing (Starts with Upper Case, every words first char is Uppercase ) System.out.println("Hlo") ;

step 1: write program step 2: go run program.go or

go build program.go ./program

to see documentation

go doc ex: go doc fmt

to format your source code

go fmt program.go


src bin pkg

export GOPATH=/Volumes/Kanchan/MyTrainings/swiggy-2020/workspace/go-works-goland/go-structuring export GOBIN=/Volumes/Kanchan/MyTrainings/swiggy-2020/workspace/go-works-goland/go-structuring/bin

cd src go install Test.go (this will create an executable file in bin )
cd ../bin ls (Test) ./Test

Packaging blog

https://golang.org/pkg/go/build/

you can get the list of the supported OS in this format $ go tool dist list

⚠️ **GitHub.com Fallback** ⚠️