AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Object Oriented Programming - Side Effects
side effect is any application state change that is observable outside the called function other than its return value. Side effects are bad if we just mix them everywhere in a software with this program logic and etc, they can be unpredictable depending on the state of the system. So it's very important to know where the side effects occur and functional programming makes the side effects explicit so that's the big difference between functional programming and object oriented programming.