Courses / Machine Coding and Low-Level Design in TypeScript / Chapter 27
Module 10 · Design problems VII: airlines, cricket and careers · Chapter 27 of 28
Professional Network: Profiles, Connections, Jobs and Search
Builds on Solving a Design Problem: Requirements to Tested Code in Six Steps, Design Patterns in TypeScript: Creational, Structural and Behavioural and Social Network: Friends, Posts, Privacy and the News Feed. Next up: Mock Interview: Five Timed Design Prompts with Model Answers.
Part 1 · Requirements
What the network must do
A professional network is a graph of people with a job board and a search box attached. This chapter builds the core of one: profiles, invitations, connections, degrees of connection, job applications and people search.
A requirement is a sentence about the system that someone can check. Functional requirements say what the system does, and we write them before any class exists. For our network they are these.
- A member has a profile: a name, a headline, a list of skills and an experience list of jobs, each with a company, a title and years.
- A member sends an invitation to another member, with a short note. The other member can accept, decline or ignore it, and the sender can withdraw it.
- An accepted invitation makes a connection. Connections are mutual: both members see each other.
- The degree of another member is the number of steps from you. A connection is first degree, a connection of a connection is second degree and the next step is third degree. Beyond that a member is out of your network.