Winter Web Weeks

University of Tehran ACM Student Chapter

By Mehran Meidani

mehran@hermina.tech

Winter 2018

Web Development

A lot to learn

Update yourself frequently

New challenges

  • Scalability
  • Security
  • Availability
  • Performance
Figure 1. Photographed by me!

Death March

Figure 2. Basic HTML View of Gmail
Figure 3. Google Inbox

Peace-Layered Application Strategy

Figure 4. Peace-Layered Strategy by Gartner

Table of Content

  • Version Control (Git)

  • Markup Languages (HTML & CSS)

  • Introduction to Python

  • Introduction to HTTP

  • Serving a Static Web Page

  • Introduction to Django

  • Homework

  • Javascript

  • Web Browsers & DOM

  • Advanced Python

  • Testing

  • Database

  • Best Practices

  • Deploy

Languages and Frameworks

Introduction to git

int main() {
    //When I wrote this, only God and I understood what I was doing
    return 0;
}
int main() {
    //When I wrote this, only God and I understood what I was doing
    //Now, God only knows
    return 0;
}
int main() {
    //When I wrote this, only God and I understood what I was doing
    //Now, God only knows
    //sometimes I believe compiler ignores all my comments
    return 0;
}

v1.c

v2.c

v3.c

Have you ever:

  • Revert back
  • Lost code
  • Maintain multiple versions
  • Difference between two versions of your code
  • Wanted to prove that a particular change broke or fixed a piece of code?
  • Review the history of some code
  • Submit a change to someone else's code
  • Share your code, or let other people work on your code?
  • See how much work is being done, and where, when and by whom?

https://stackoverflow.com/questions/1408450/why-should-i-use-version-control

Git Basics

Figure 5. Storing data as snapshots of the project over time.

Git Commit

Figure 6. Commits, then, are simply objects that contain some metadata about the commit (the message, author, date, etc), a pointer to a single snapshot of the project and pointers to the commit(s) that came directly before it.

Git Basics

Figure 7. Working tree, staging area, and Git directory.

Git Branches

Master

dev-feature

bugFix

Demo Time :)

Made with Slides.com