Tech Simplified
Tech Simplified
DEEPAK SINGH
,.
I .
Deepa k Singh
Edited by
Priya Singh
l
Introduction
The idea of 'the opposites attract' has been there for a long time. In
2016, a long- term study upended the idea, suggesting that we're
drawn to like-minded people. Here is an excerpt from the study,
Co~puters
5. Why Data is The New Oil 12
6. The Language of Computers 14
7. From Transistors to Computers 19
8. Performance of a Computer 23
9. Buying a Laptop . 31
10. Moore's Law 33
Software
11. Software is Eating the World 36
12. Programs and Software 38
13. Operating Systems 40
14. The Popularity of Microsoft Windows 44
15 .. Open Source Software 48
Internet
16. The Competitive Advantage of the Internet 52
17. How the Internet Reaches Your Home 55
18. WiFi and Small Range Networks 60
19. Moving Data Through the Internet 62
20. Protocols to Make the Internet Secure and Reliable 67
21. Data Encryption and VPNs 77
Websites
22. World Wide Web 82
23. Dynamic Websites 89
24. Database 96
25. NoSOL databases 103
26. Programming Languages 109
27. Bringing it All Together 113
28. How Google.com Works 114
Mobile Apps
33. Mobile Apps 140
DevOps
38. Stages of Code Development 160
39. Version Control System 163
40. Git and Github 169
41. The Birth of DevOps 172
42. Testing and OA 180
:ZS Q ;;z. .._ CZ L • -& «~~ ;.::; >MM w: I iWt)t it
l
43. Cl/CD
I 44. Setting up an IT Infrastructure
184
187
45. Cloud Computing ' 189
46. Infrastructure as Code
192
47. Microservices
194
System Design
48. Why PMs Should Learn System Design 198
49. NFRs
200
50. Scalability Through Distributed Systems 202
51. Load Balancing a Distributed System 207
52. Performance Through Partitioning 213
53 . Performance: Caching 218
Epilogue 289
A
01 · Tech Simplified
-. Before We Start
Befo re We Start · 02
In this journey, I have seen both the struggles and joys of the job. A
job
key struggle has been learning the tech needed to do the
r in
effectively. I grad uate d as a chemical engineer with a mino
a
math ema tics and com puti ng from IIT Kharagpur. Com ing from
prem ier insti tute like IIT, I didn 't realize I would struggle much
with learn ing tech.
03. Tech Simplified
Readability
Most of the tech lite~ature is written by techies for techies. So
techies don't find this literature hard to read and understand.
However, someone without a computer science background would
find it hard to understand. To quantify how hard it is, we can use
readability scores. 'R~adability score' of an article determines how
easy or difficult it is to understand. It is measu.red in,either absolute
score (1-100) or grade level. A lower .grade le,·el is better since
more readers can easily understand it. Any grade Je,·el below Grade
9 is considered go_od. As an example, Ernest l-Ieningway's work is
estimated to be between a 4th and 6th grade lev:el of readability.
TI1at goes on to show the simpliciry·of his wr.iting.
Here is an article on 'Software Testing' written on ,Vikipeclia.com.
Sofuvl!e t~lin~
.........
,,,,., .,........
=~:.~•~ •~ •~•.....,.._,,_.Wuf'll.lW.Wl•!lld••1.1 ••o,iy"'11~w.••cpodn•1"M"".c. '~ ,Mtl~ IIIC'l8'1
C..1•••·'~
....,.,.~...:,.CMl
h l t = a : : : . - :·= - = · •• .ot1•• t.111i»#ltil~•IOl(,(W:'l•anl ....,,,~,-•c;a ol ~'Ji l N.iui 1klvckl? ni1n:
n....._....i,. - ~ Nllllt. .•• Jin!Mlil. lill li:,,""4,, tie •PDf1M111t.,.,i,c,,1onw.!ll t"-lnl..11lulh'IWl:1' uot ,~ ) I ., J •,.,. 6'1,IIIM 1,r~,11
,lll.lrt,.t,\ L~
, .. , J..... .. . . .. " ..:..1
~ . _,. , . _ . . . h ~ d aNl',..Yr,,~ ~, ~• o, •l'NlW
......~llldlc.aio-~lt Mdl ... ""'. . .... .,.,.... \ l l ' . l : : : - lo ov.....,OllfO,M01ep~ J J , ~'ft aAllll'»--•I t-"••I
1~ 11&,lf'1f l lftQvftlfll,
l!iNlOltll'tl .......,_ •:,,; ,- J •
• IIICal.lt'lf'lq,.t--'IU M 911<1W UW-9"MI ~
--~~-
• ~oancc:1yto ll U't.:11ol ..,._,
c......~,.,.,,
•~ ,..lwfLW•_,...,~-.
11·, ,,,, ~ .,. •
....,.,......
....
- ·,•Cl<~-
"-=--'•l7•
,..,,_'"
\.- ..,,...
,., ... ~i.. .......
fl•~-···
When
G
we ch k h
ec t e readability scar f h.
rammarly, we can see th t th e o.. t is article using
> 13) Wh a ehreadability
. at this means is th score :ts. 38 (grade level
a user wh0 h
as at least a collat t edtext is. likel,) t 0 I)e understood by
ege e ucat1on.
Before We Start• 04
Readability score 38 CD
Your text is likely to be understood by a reader who has at least som~ colleg~
education, but it may not be easy to read.
r ..
Readability Scorrf11
Definite Syllabus
Besides readability scores, the other reason for the struggle is the lack
of a defined syllabus in tech for PMs. Tech is vast and keeps evolving.
As a begin~er, what_you read and what you avoid becomes hard to
determine. I have tried to solve this problem through this book.
W _h at gives me ·confidence around this is my own learning building
deep-tech_products and my conversations with fellow Pfy1s.
05· Tech Simplified
' .
One of the key questions PMs often struggle with is: Do you really
need to code to be a good PM? Another way to phrase this
question is - "To what extent should you understand tech as a
Plvi?" .
The most common answer that you get around the question is, "it
depends on the kii;id of products you are managing." If you are
managing products like recommendations and search, you need to
be highly technical. On the other hand, ifyou are managing a blog
or ne~s website, you don't need to have_that level of technical
depth.
The problem with the "it depends" kind of a,n.swer .is it doesn't help
in bringing clarity and confidence. Instead, fr co_nfoses you because
now you aren't sure what to do.
I '
So what topics do w
e need to cover t O understand th e ar ch it ec tu re
o f a prod uct.~ L et'stak e G0
h. ogle Se ch as an ex am pl e. 1o u n d er -
stand the arc 1 tecture o f Goo ar
g1e Search E ng1n
.
e, w e ha ve to cove1~
• 1--lo"· do cs G oo ~l c "' l't k '-\\
\ ,, h,~h \\' \'''~
• \V ha t docs the s~f~,':Mt d~
,· \'"'"~~~
,,, ~\\\\\\' \ 1,,,~\\,\\' '' ,h \~\ ,,.,ti
• H ov i to scale th e sc~rch cn
~\nc t(, ~( l\' \' b\\\\\,n j ,,\ \\\\ ~
'\'-~
To anS\\'Cr th e~ e qu es tio ns
, ,ve h,\\~ to COYC\' th(~,-,'\'
th e di ag ra m belo'\v. k~ \\ H\ \'\W I\ \ \\
Qu es tio ns
To p\c s
Ho w Goog\e, co m
wo rks Co mp ute r, So ftw are ,
\n tem et
So ftw ar e
de ve \op me nt We bs ite s, Apps,
pro ce ss 0e v0 ps
Sc ali ng the
pr od uc t Sc ala bil ity Co nc ep ts
Th e ch ap te r an d co nt en
t in th e bo ok ar ~ se q{ ien
le ar n th es e top~c~ in an ea ce d so th at yo u
sy -to -u nd er st an d m an ne r.
O nc e do ne w ith · th e to pi
cs in th e bo ok , yo u ca n fu
un de rs ta nd in g us in g th e rth er te st yo ur
on lin e pr ac tic e lin k sh ar
en d of th e bo ok :·T he qu es ed to w ar ds th e
tio ns on th is lin k ha ve ap
ro un ds of PM ·ro les in va pe ar ed in te ch
rio us co m pa ni es . I wi ll als
ne w qu es tio ns on th e lin o ke ep ad di ng
k ov er tim e. Be fo re w e be
yo u to ke ep a fe\.v th in gs gi n, I w ou ld lik e
in m in d, as co ve re d in th
e ne xt se ct io n.
og•Tech Sim plified
An oth er thi ng to ke ep in mi nd is
following yo ur curiosity. W atc h a
vid eo , ma yb e rea d an art icl e aro un
d the top ics tha t int ere st yo u, an d
ha ve a few qu est ion s ab ou t. It wi
ll bu ild a ha bit of un de rst an din g
an y un kn ow n top ics yo u wi ll co me
across in the future.
La st bu t no t lea st, rem em be r yo ur
,. en d go al wh ile rea din g the bo ok ,
i.e., rea ch ing level 3 ·or 4 in yo
ur tec h kn ow led ge . To do tha t,
wo uld rec om rde nd th at yo u ~n ish I
the bo ok , ev en if yo u are ha vin g
so me tro ub le un de rst an din g a few
co nc ep ts.
By the tim e yo u fin ish the bo ok
, you wi ll have lea rne d mo re tha
25 0 co nc ep ts aro un d tec h. Ev en n
if yo u do n't rem em be r all of the m,
yo u ~i ll feel qu ite co nfi de nt to ha
ve a ch at wi th en gin eer s sin ce yo u
no w un de rst an d mo st of wh at the
' . . y ha ve to say.
On e las t wo rd of ad vic e - do no t
skip the first few ch ap ter s aro un d
co mp ute rs, so fnv are , an d the Int
ern et. Ev en if the y loo k sim ple on
the sur fac e, the de tai ls in tho se
ch ap ter s bu ild the fou nd ati on for
the lat er on es.
On lin e Co m m un i_ty
To bu ild an en vir on me nt of co
nti nu ou s lea rni ng an d su pp ort , we
ha ve cre ate d thi s on lin e co mm
un ity for yo u. You wi ll find
PM s/f ou nd ers in th e co mm un
ity wh o discuss the tec h top ics
me nti on ed in the bo ok an d be
yo nd . Ch ec k it ou t on thi s lin k
htt ps :// clu b.s im rli fy -te ch .co m/ -
.W ith thi~, let 's be gin .
Be st of Lu ck ! Ch ee rs, ·
De ep ak , •
ll . Tech Simplified
Computers
Ir
I
I
Il
I
I.
I
Computers • 12
So let's start by unde rstan ding a bit abou t data. Data refers to
pieces of information. The data can be a photo, a piece of text,
information about a perso n like their name and phone number, etc.
We use data and infor matio n interchangeably in everyday life.
Inter net companies like Google and Facebook generate lots of data
from us. For example, Facebook knows our name, how we look, our
friends, etc., through our Facebook account. Google knows what
we are searching for and whic h websites "':'e are visiting. As these
companies learn more and more about their users, they can use the
data. for adve~tising the produ cts that users may buy. Say, a user
searched "how to complete a marathon?" on google.com. Google
can show the user advertisements around runni ng t-shirts, bottles,
shoes, etc.
Based on their users' data, Goog le and Facebook have built the
largest advertising platfo rms globally. From these advertising
platforms, Goog le and Facebook make hundreds of billions of
doilars in revenue every year.
r 13. Tech Simplified
Most of you reading this may already know the answer - data is
stored in computers. B~t how do computers store everything from
· simple text to large ~ideos? We will answer th,e que:;tion in the next
section.
Computers •14
..
We can show th f .
e ract1onal digits similarl
1234.56 == 1x 10l +
2
y,
X ]02 + 3 X 101 + t, X 1 o
But as w d' . 'I Q + 5 X ]0·1 + f ]Q ·2
'X
e iscussed e 1·
system TI ar ter, comput
· iey use a binary s crs don't use the decimal
ystein. Bi mea 11 .
s two, so binary is a
lified
-15 •Tech Simp
tructions to ComputE~rs
Providing Ins
om o r a personal c· puter (PC)
d a sm artp h@ ne o
As you have use ss to g e t tb in']'s done on ,Yoh
c e
lre a d y k n o w the broad pro ,-:, te
a ,
computer:
u s thro u g l: , parts like the k
1. It takes inst
ructions from eypad,
.
o u se , c a m e ra , touchscreen, etc
m
fo ll ow s th e in structions.
2. I t then ro u g h the ~-creen.
ws ou tp u t th
3. Finally, it sbo
in st ru cti o !1 s? When we tell
n d
o w d o e s th e c o mputer understa c a u se you speak the
But b n d it b e
in g, they understa
a friend to d o so m eth
u n d e rs t, .n d the plain English
te r
m e la n g u a g e . Does a compu
sa
d n u m b e rs as we humans do?
language a n s.
n ly un d ers ta n d binary nmriber
o
h e an sw e r is _N _Q. Computers
T
.
Let me elaborate se -te n system. It is
stan d ard b a
d o 2 + 2 = 4 using a work with:
\Ve, hu m a n s, re te n d ig it s to
st e m because there a we
called a b a se -1 0 sy
w e lo ve rh is ,y,tem because
1, 2, 3 , 4 , 5 , 6 , 7 , 8, and 9. Maybe si n.:e the beginning
0, te n fi n g a s
b e en c o u n ti n g numbers on our
have
of evolution. c ,u g li ' the way we
syst e m :l ir
ca n u n d e rs ta nd the decimal e th o usand - two
We 4 o n
pronounce 123
a :;
ce n u m be rs . W e
pronoun as
n d d - th ir ty -f o ur. It is represented
hu re
X100 +3 X 10 +
4X 1
2
1234 =1X 1000 +
10 (base-10), it is written as
In powers of
X 701 +4 X 70
0
702+ J
1234 : 1X 70s +2 X
base-2 system with only the two digits - 0 and 1. The special thing
about the binary system is that it is the simplest number system
.. '
possible. If we have fo reduce it further and take '1' out to create a
base-1 system, we will only have 0, and we can't do much with 0.
A question may arise in your mind - why use a binary system? Why
not go for base-3 or base-4? It's a valid question.
Bits
Saying 'binary digits,' again and again, can. be tiring. So we carne
up with a short and straightforward word for binary digits_ bitS,
All the data in computers is represented using bits.
We have already seen how numbers can convE:rt into bits. But data is
not always numeric. Computers work with a variety of data like text,
images, videos, etc. In order to store various kinds of data, we need to
define standards to convert them to bits. One such standard is ASCil.
Vve use ASCII to convert the alphabets int; bits.·A is assig
ned a
'le ~ord "ABC,"
numeric value of 65, Bis 66, and so on. To store t~
the computer will first convert them ·to 65, 67: and 68, and
then
Let's take something complicated l'k 1 ea phot o tnd see lrnw it can
"". . .
be co!iverted to bits. To store an image on ,a :...:·omputer, 1s
I . .
broken down mto tmy elements call d . 1
the
e pixe s. A pixel is short for a
imag e
I
f
PICture ELement and
.
.
.
represents one color. Tut·
needed to represent an image is
propo
.
rti-:,n
.
al
· numb
t .
e1
. . .
of pu,els
1·
0 Jt,s qua 1ty or
resolut10n. An 1mage with a highe r
reso1Uho '11
numbers of ·
p ixels. For exam ple an • n wi need high er
, image w·,
resolution will have 9,21,600 (1280 x 720) Pixel . It.l a standard .H D
s.
For a black-and-white image, we can use 1 b·It. pt•r p' 1
11
Dee· We can
keep 1 as black and Oas white. Each pixel C.?.n be .,:tored
This '"'.'ay, a simple black and white picture can be creatas 1 or O.
h . re be1ow. Each grid is a be ed using
. t11e pictu .
.
bmary , as s own m
whole picture is a 10x10 pixel. p el, and the
I
Computers• 18
o o o o o · o , o o
■ :■: . : ■:
0 0 · 0 0 0 0 . 0 0
I
0 0 0 0 0 o , o 0
ago o o ag o
0 0 - 0 0
0 0 0 0 0 0 O O
What about a colo1'ed picture? Let's assume the picture has four
colors - white, blue, green, and red. Instead of using just 0 and 1,
using four possible numbers to represent each color will help us
create this image. In binary, this can be represented using two bits
per pixel: