Improved naming to better convey intention and more TO DO's.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-04-12 12:03:48 -05:00
parent 52b90dd8dd
commit 2c61055b38
2 changed files with 8 additions and 4 deletions

View File

@ -2,7 +2,7 @@ accessing
collectRawTweetsForPages: anInteger collectRawTweetsForPages: anInteger
| pagesDict response | | pagesDict response |
pagesDict := self pageURLs: anInteger. pagesDict := self getPagesContentsUntil: anInteger.
response := TweetsCollection new. response := TweetsCollection new.
response query: pagesDict keys. response query: pagesDict keys.
pagesDict keysAndValuesDo: [ :key :rawTweets | | temp | pagesDict keysAndValuesDo: [ :key :rawTweets | | temp |

View File

@ -1,7 +1,11 @@
accessing accessing
pageURLs: anInteger getPagesContentsUntil: anInteger
"I retroactively get all pages contents until a specified page number.
| response nextPageLink previousPageLink dicTemp |
TO DO: should this be splitted back to two methods, one getting the page urls and other its content?
or do we always be getting the cursor urls and its contents all the time.
[ ] Benchmark alternative approaches."
| response nextPageLink previousPageLink |
response := OrderedDictionary new. response := OrderedDictionary new.
response at: self userNameLink put: self documentTree. response at: self userNameLink put: self documentTree.