#10 closed task (released)
Refactor source code for readability
Reported by: | ibboard | Owned by: | ibboard |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | General/Unknown | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Some functions are very long and complex. Short methods are cleaner code and cleaner code is easier to read, understand and modify. Where possible methods should be refactored to smaller methods.
Change History (17)
comment:1 Changed 11 years ago by
Status: | new → accepted |
---|
comment:2 Changed 11 years ago by
Type: | enhancement → task |
---|
comment:3 Changed 11 years ago by
comment:4 Changed 11 years ago by
(In r20) Re #11 - Documentation
- Document Stats and SystemStats at class level to explain the difference
- Document WarFoundryXmlFactory at class level
Re #13 - XPath for XML loading
- Load categories using XPath - needs fixing so we can do a proper "categories/cat" query
Re #10 - Refactoring for readability
- Fix method signature for getting number from attribute added in r19
- Refactor more code in to GetExtraData method
- Separate out loading of categories for GameSystem
comment:5 Changed 11 years ago by
(In r27) Closes #21 - File loading in order
- Reworked LoadFiles to smaller methods for readability (also re #10) and structure
- Now determine expected load return before loading then load all "expected GameSystem" before "expected Race"
- Make "can load as race/game system/army" methods public in interface
Re #22 - Get errored file loading
- Created FileLoadFailure class and made LoadFiles return a list of them
Also
- Some code cleanup
- Change to DictionaryUtils calls
comment:6 Changed 11 years ago by
comment:8 Changed 11 years ago by
comment:9 Changed 11 years ago by
comment:10 Changed 11 years ago by
comment:11 Changed 11 years ago by
comment:12 Changed 11 years ago by
comment:13 Changed 11 years ago by
comment:14 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Most code is now fairly readable. Further improvements will generally be made while working on the code for other tickets.
comment:16 Changed 10 years ago by
released: | 1 → yes |
---|
Mark released fixes as released using radio values
comment:17 Changed 10 years ago by
Resolution: | fixed → released |
---|
Mark fix as released under a previous version
Note: See
TracTickets for help on using
tickets.
(In r19) Re #10 - Refactor for readability