As I mentioned in a previous post, I completed the Wikipedia Viewer project for freeCodeCamp. I wasn’t entirely happy with it though. I had used the opensearch action, and while I liked the results it came up with- I thought they were quirky and interesting, it wasn’t really what was intended from the project.
Wikipedia has [what seems to me anyway!] pretty comprehensive documentation for their API, and one of parts I found a lot more useful this time around was the API Sandbox- a page where you can pick and choose all the data you would like, and it gives you the url you need to make the request. It’s also useful because it tells you which properties you can specify [some can be used with one action, but throw an error if used with another,] and you can try out the url within the page, so you can see if any errors pop up. I did still find the documentation a little overwhelming, but I tried to just look at what was relevant, and ignore the rest!
One of the features I might like to add to the Wikipedia Viewer is something that I’ve seen a few people suggest: use the opensearch action to suggest searches as the user is typing in the search box. That’s apparently the proper use of that particular action, and I think it would really add something to the page, so depending on when you read this, I might have implemented it already!
I’m continuing on with The Web Developer Bootcamp course on Udemy, and focusing more on that than freeCodeCamp for now. I’m learning some pretty valuable things that I can apply in the fCC projects- in this project for example I can see that my code has become a bit more efficient, and I feel like I’m thinking about projects in a more logical way than I was previously.