Along the way you picked up some algebra since every assignment statment is an algebraic equation. Unless you use one of those tools that doesn't require you to write any code. In which case I'd have to question whether you're really a programmer. Boolean Logic is a little hard to understand without any foundation as well.
Myself, I sucked at math, got bad grades in algebra, and never did feel very good in math until my mid-twenties when I took Finite Math and Calculus for my business program and actually took the time to do all the homework and attend all the classes.
It was hard, but it was very satisfying to get over that hump. I will say that I never appreciated Algebra as a tool until I took Calculus.
Well, after hearing a calculus teacher say many times "... and after doing the algebra, the final solution to the calculus problem is ..." with all the algebra steps left out, you really have no choice, but to learn algebra, and quickly.
Most calculus teachers will not waste their time going over algebra.