Skip to content

Commit 854891a

Browse files
committed
fix: refer to constants.js not consts.js
1 parent e237536 commit 854891a

File tree

1 file changed

+1
-1
lines changed
  • sources/academy/webscraping/web_scraping_for_beginners/challenge

1 file changed

+1
-1
lines changed

sources/academy/webscraping/web_scraping_for_beginners/challenge/modularity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ await crawler.run();
102102
log.info('Crawl finished.');
103103
```
104104
105-
One of the main reasons we **modularize** our code is to prevent massive and difficult to read files by separating concerns into separate files. In our **main.js** file, we're handling the initialization, configuration, and running of our crawler. In **routes.js**, we determine how the crawler should handle different routes, and in **consts.js** we define non-changing values that will be used throughout the project.
105+
One of the main reasons we **modularize** our code is to prevent massive and difficult to read files by separating concerns into separate files. In our **main.js** file, we're handling the initialization, configuration, and running of our crawler. In **routes.js**, we determine how the crawler should handle different routes, and in **constants.js** we define non-changing values that will be used throughout the project.
106106
107107
Organized code makes everyone happy, including you - the one developing the scraper! Spaghetti is super awesome, [but not when it comes to programming](https://www.urbandictionary.com/define.php?term=spaghetti+code) 🍝
108108

0 commit comments

Comments
 (0)