Your friend may have a point though. You should know that your original post was exactly what works here. You were polite, communicated well, showed code, and presented an interesting, if common, problem. Some seekers never do that, even after years of posting here.
You got good replies because you made a good post. Some monks are crabbier than others and everyone can have a bad day. Questions are sometimes answered with RTFM but usually only when the OP hit some kind of sour note or rubbed someone the wrong way.
Be prepared for a little friction while trusting the soul of the monastery.