I don't know about the type checking question (148), but the SQL question (135) should not have been closed. One user expressed they did not like the question whereas at least eight liked it enough to upvote. Kaveh gave sufficient reason why his question should remain open, but this explanation was ignored.
I wonder: do the community mods who monitor here have expertise in computer science? If not, I wonder how they can judge the value of a question. Closing anything with a close vote on it is a poor strategy.
I am not sure closing is a good method to prompt OPs to adapt their questionquestion; closing seems harsh, and we know that few users read FAQs right away. Maybe a private message or a comment would be fair asbetter suited to ask users to adapt their questions in a first stepfriendly way?