Today was a free day for me since I finished the wall early yesterday. After working with more strings in morning algorithms and then a quick lecture about MySQL, I went ahead and started working an optional section of the learning platform, Ajax with Python. I figured Ajax is pretty awesome and I could use some more experience setting it up in flask, so why not. I’ll start Django on schedule tomorrow.
Most of getting Ajax to work with Python was just a refresher on jQuery. However, now that I’m sending and receiving requests with my own server files, I’m able to do some more complicated Ajax calls by actually directing requests at my own server. Using the new techniques I learned from the platform, I was able to convert my Wall assignment to run entirely on Ajax calls. It created a much smoother user experience since all changes to the database were now being reflected in real time upon user actions without the page refreshing and popping back up to the top. Ajax really is an integral part of web development. See the code for the converted Ajax Wall.
I also fiddled around with the Google Maps directions API for a bit. Responses were coming back frustratingly slow, but I eventually got the results I was looking for. The Google Maps directions API results were super huge and I was reminded that figuring out how to use APIs is all about iterative experimentation and reading documentation. I didn’t look into it much yet, but it seems like there must be a way to specify that you only want certain parts of the result in the API request. I could really use some more info about doing something like that. I don’t want to get sucked into researching all about APIs though so I’ll just not worry about it for now.
I’m excited to get started on Django, so I’m gonna keep this short!