Clean Code: Advanced Guide to Learn the Realms of Clean Code from A-Z by Marc Roberts

Clean Code: Advanced Guide to Learn the Realms of Clean Code from A-Z by Marc Roberts

Author:Marc Roberts [Roberts, Marc]
Language: eng
Format: azw3, epub
Published: 2021-01-29T16:00:00+00:00


To clarify, ‘SystemMonitor’ is the class and ‘load_activity()’, ‘identify_events()’ and ‘stream_events()’ are its methods. Now let’s see the implementation of the code that defines the class responsible for performing the specified actions.

# srp_1.py

class SystemMonitor:

def load_activity(self):

"""Get the events from a source, to be processed."""

def identify_events(self):

"""Parse the raw source data into events (domain objects)."""

def stream_events(self):

"""Send the parsed events to an external agent."""



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.