Lee Mandell’s 1,000-square-foot Brooklyn loft is at once an apartment, a grow room, a home office and workshop. As a computer programmer for libraries and archives, he supports himself by spending his days in front of a screen. But as an urban farmer, he takes frequent breaks to tend cucumber vines and cauliflower stalks that grow a few feet from his desk. Mandell, 49, founded Boswyck Farms, a Brooklyn-based indoor hydroponic farm and for-profit company, in 2008. It’s a lot of work, but it’s not without its perks: “If I want to cook, I can go snip some basil and use it,” he points out. While he hopes to eventually earn a living from Boswyck Farms, Mandell seems most motivated by the less tangible upshots of the farm. The best thing he’s gotten out of urban farming, he says, is sharing it with others.