Skip to content

Refactors the FundingRaised class#1

Open
samb1232 wants to merge 5 commits intoSoftwareEngineering2026:masterfrom
samb1232:refactoring
Open

Refactors the FundingRaised class#1
samb1232 wants to merge 5 commits intoSoftwareEngineering2026:masterfrom
samb1232:refactoring

Conversation

@samb1232
Copy link
Copy Markdown

@samb1232 samb1232 commented Mar 6, 2026

Refactors the FundingRaised class to eliminate code duplication and improve maintainability.

Changes
Extract row mapping helper — Created _map_row_to_dict() method to centralize the row-to-dictionary conversion logic, eliminating ~40 lines of duplication across where() and find_by().
Replace magic numbers with constants — Introduced 10 class-level constants (PERMALINK_INDEX, COMPANY_NAME_INDEX, etc.) to replace hardcoded column indices throughout the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant