Developer Starter Pack

24 Februari 2020

Requirement 🛠️

  1. Daftar gitlab menggunakan Google OAuth / E-mail

Software Developer 👨‍💻

Software Developer == Software Engineer

Choose your route:

  • Desktop Software Developer (C#, Visual Basic)

  • Web Front-end Developer (HTML, CSS, JS) (Client Side)

  • Web Back-end Developer (JS, MySQL, NoSQL) (Server Side)

  • Web Full-stack Developer

  • Android Native Developer (Java, Kotlin)

  • iOS Native Developer (Swift)

  • Hybrid Mobile Developer (React Native, Flutter)

Weaponry 💻

  • Text Editor with snippets and plug-in

  • Small knowledge about navigating in CLI

  • Command Prompt/Terminal

  • Google

  • Git

CLI (Command Line Interface) ⌨️

Command Prompt Windows + R > cmd > Enter

CMD In windows

Cara lain membuka cmd, ketikan cmd di folder direktori yang diinginkan

Cara lain membuka CMD

Command Prompt 🖥️

Show files in current directory

$ dir 
$ dir /b

Go to Specific directory (use TAB for autocomplete)

$ cd FolderDevcom
$ cd ..

Create Directory or Folder

$ mkdir FolderDevcom

Open Program

$ notepad

Create File

$ notepad Profil.txt

Environment Variables

This PC > Right Click > Properties > Advanced System Settings > Environment Variables > System Variables > Path

Letak Environment Variables

Package Manager

Package manager di windows ada Chocolatey

Windows

$ choco install python

Linux

$ sudo apt-get install python

Text Editor

  • Notepad++

Notepad++
  • Sublime

Sublime
  • Atom

Atom
  • VSCode

VSCode
  • Vim

Vim

Open VSCode via CLI

$ code

Install Plugin Terminal in VSCode

Plugin Terminal in VSCode

Compile C++ Program in VSCode

  1. Buat Folder bernama FolderDevcom

  2. Buat File bernama print.cpp

  3. Isi dengan kodingan dibawah

  4. #include<iostream>
    
    using namespace std;
    
    int main(int argc, char* argv[]) { 
        for (int i = 0; i < argc; ++i) 
            cout << argv[i] << "\n"; 
      
        return 0; 
    }
  5. Compile codingan menggunakan command:

  6. $ g++ -o print print.cpp
  7. $ print "Developer Community"

git

  • What is git ?

  • What is git clone?

  • What is git commit?

  • What is git push?

Version Control System (VCS)

Source: GoAcademy

git illustration

2 ways to use git

  • Push Local Repository to create new Remote Repository

  • Create Remote Repository and clone it to Local Repository

Git global setup

git config --global user.name "Arif R Gilang"
git config --global user.email "arifrgilang@gmail.com"

Local to Remote

cd FolderDevcom
git status
git init
git remote add origin https://gitlab.com/arifrgilang/latihan-devcom.git
git add print.cpp
git add .
git commit -m "Menambahkan program print text"
git push -u origin master

Remote to Local

git clone https://gitlab.com/arifrgilang/latihan-devcom.git
cd latihan-devcom
notepad print.cpp
git add print.cpp
git commit -m "Menambahkan program print text"
git push -u origin master

Multiple person working on one project

// before pushing, ALWAYS DO THIS!

git fetch
git status
git pull

Advanced Git

Development using git

Branches Hierarchy

Protip

Last updated

Was this helpful?