csisc / OpenCitations-Bot

A bot to add citation data from OpenCitations to Wikidata
8 stars 2 forks source link

Could you rename variables like this to something more clear? #1

Closed dpriskorn closed 3 years ago

dpriskorn commented 3 years ago

https://github.com/csisc/OpenCitations-Bot/blob/cbdead75068eb99238b33d1873a091dd3d6c62b3/OCtoWikidata.py#L11

The code gets hard to read when variables have short names. I use PyCharm to refactor variable names to something meaningful when needed. It automatically updates all occurrences. :)

csisc commented 3 years ago

Added comments to explain the algorithm.