fire-eggs / FamilyLines

A free, open-source genealogy application to track, organize, and share your family history.
13 stars 1 forks source link

Cleanup code - PlacesExport #67

Open fire-eggs opened 7 years ago

fire-eggs commented 7 years ago

notonyournelly[CodePlex]
The code underlying quotExport placesquot in PlacesExport.cs has several issues and could be cleaned up.

It would be more efficient to filter the peopleCollection for living/private once at the beginning, rather than repeat for each sub-task. The work performed for births, deaths, etc is extremely similar and should be refactored out to a common subroutine. The work performed for marriages and divorces are extremely similar and should be refactored out to a common subroutine. Split out the work for places/times/lifespans into separate subroutines. The class/method should be made static.