In the last guide I implemented an XML parser that counted all of the lines from Shakespeare's Macbeth play. That implementation worked, however it used an iterative approach, which resulted in a highly coupled method that would only be able to work on another XML file if it had an identical structure and set of tag names. In this guide we're going to refactor the solution to utilize a functional approach.
Follow me:
Twitter: / jordanhudgens
Instagram: / jordanhudgens
GitHub: http://github.com/jordanhudgens
Source code: https://www.crondose.com/2017/03/refa...
On this page of the site you can watch the video online How to Use Functional Programming in Ruby with XML with a duration of hours minute second in good quality, which was uploaded by the user edutechional 24 March 2017, share the link with friends and acquaintances, this video has already been watched 1,191 times on youtube and it was liked by 11 viewers. Enjoy your viewing!