What do software engineers hate? Parsing strings into dates and scraping HTML!
After the setting up our classpath in Episode 6 of "Watch Me Code," we start to tackle writing the implementation...
This time we start by extracting the last modified timestamp of a branch or tag by HTML scraping a gitweb commit view page and parsing the text date. As expected, we don't exactly get the right element first time. We have fun finding the correct format for the date parser... oh and we write a test with incorrect test data!
If you are interested in examining my work so far, you can look at the GitHub code snapshot as of the end of this video.
Stephen Connolly is a member of the engineering team at CloudBees. He has over 20 years experience in software development. He is involved in a number of open source projects, including Jenkins and Apache. Stephen was one of the first non-Sun committers to the Jenkins project and developed the weather icons. Stephen lives in Dublin, Ireland - where the weather icons are particularly useful. Follow Stephen on Twitter and on his blog .
Check out the entire series:
Stay up to date
We'll never share your email address and you can opt out at any time, we promise.