I suspect that a lot of that context (or "buy-in") was missing, as it was when you explained it the first time here, which is why you got the response you did.
A lot of people show up in programming communities asking for help with their intro programming homework. Once you see a few dozen of those, it's understandable if your knee-jerk reaction is at least somewhat insulting.