I have been working in an agile environment for the past year and a half (PHP, Java). Before that I was an apprentice with the company I work for, for a long while where I learnt how to make websites (basic html, css)...
But since then I've also spent a lot of my personal time (during non-work hours) reading various blogs, writing nifty functions in js, learning frameworks such as angular, libraries such as D3, and even writing my own version of jQuery (personal use). I've also recently started freelancing in my spare time for some extra cash.
I just don't know how to handle it, while it may not be best practice to do it like that, and I didn't have all of the code outside of the js file, only the parts that were using values from the programming language.
He is a nice guy, he's not the kind of guy to say something spiteful and he's always helpful if I don't know something. I don't believe he does this as a way of patronising me, but as I say, it's extremely embarrassing because he speaks loudly in an open office plan and I find it quite insulting most of the time, just because of the sheer amount of time I spend working 14-15 hours a day some days (this job + freelancing/coding for fun).