Closed karthikraman closed 3 years ago
Better design is to avoid string literals - "braahma" etc. to the maximum possible extant. This makes coding tools' jobs much easier when it comes to refactoring etc.. Hence, periods.braahma is better than periods["braahma"] You can add more divisions directly into DayLengthBasedPeriods.
(Plz close this thread once resolved.)
Instead of
DayLengthBasedPeriods.braahma
etc., can it be part of a dictionary?DayLengthBasedPeriods.kaala['braahma']
? What is a better implementation?I was thinking of adding more divisions, muhuurta names etc.