Programming is really just structured problem solving, spoken in various languages. There is no better teacher of problem solving than mathematics, and basic algebra a fundamental piece in that education.
Will you use the formulas and theorems you learn in algebra while developing my_dream_app.pl? Probably not. Will you use the way of thinking you developed while studying algebra? Constantly.