There was an interesting talk about Pipelines as Code in the last JW2017:
In fact, the speaker wrote a book about it: Jenkins 2 - Up and Running : Evolve Your Deployment Pipeline for Next Generation Automation
There are more talks from this year which are IMO a must to watch, since it's not just about coding but also what's coming and what's the impact of using them massively :
Cheers