I considered adding a subtitle to this post: “making things harder than they need to be for educational purposes.” Because at many points, that’s what it felt like. Every time I figured out how to do something cool, and I did figure out how to do some cool things, my first thought after the initial “YES!” was, “it would have been so much easier to do this with Ruby.” Upon completion, I feel that, while I can now do a lot of cool things with forms and buttons, I have ultimately made this app work less well. And that is really frustrating, no matter how much I have learned in the process of making things work less well.
But I did learn a lot. The most daunting and mysterious part of learning any new language or tool in this program is the moment when you have to figure out how to actually use it within a project of your own making. It’s confusing figuring out how to make these different languages and tools communicate with each other. And also how to set them up from scratch from start to finish. We dipped our toes in with the Rails/jQuery Tic Tac Toe project but now we really get thrown in.
This project was about taking the Rails app that we made for the previous section and integrating javascript/jQuery into the front end. I was initially excited about this because when I was building that app, there had been some things that I had wanted to do with the forms that I couldn’t do without the ability to hide and show, or listen for a click. However, after having to recreate some of my rails link_to tags with old school long form routes in “<a>” tags, having to communicate with the controller through $.get and $.post requests, and having to use javascript date formatting tools instead of the Ruby helpers I’d built to display my datetime objects correctly, I feel that this project has really stretched javascript past its usefulness.
On the bright side, I can now create notes on the Meeting show pages, which makes so much more sense.