Two ways to compute moments in families of L-functions