Code Clarity: Why Every Function Needs One Job

from blog Mensur Duraković, | ↗ original
↗ original
Let's say we're building an employee profile page. When someone visits a profile, three key things need to happen:We need to grab their data from our backend (things like name, bio, profile pic)While that data is loading, we should show a nice loading spinner