It's not that Reddit doesn't allow self-posts, it's because you asked the question in a subreddit that isn't mean to have questions in the title, which is also why they removed the self-post functionality from their subreddit. There is /r/AskProgramming for that which allows self-posts.