In this meeting, the State Changers discuss a coding issue related to retrieving season statistics for different sports. They want to create clean code that can handle different paths to get to the desired statistics based on the sport entered. They discuss using set conditionals but realize they may be structuring it poorly. One participant suggests breaking down the code into separate functions and using if conditionals to handle the different sport paths. They explain the concept of ETL (extract, transform, load) and emphasize the importance of focusing on the transform step to make the code simpler. The participant suggests creating a function that takes the team and sport as inputs and performs the necessary transformations. They also mention the concept of a pure function, which always gives the same output for a given input. This approach can save time and make the code more efficient. Overall, the meeting provides insights into organizing code for handling different paths in retrieving season statistics for various sports.
(Source: Office Hours 11/10 )
Join State Change Risk-Free