Yes, it wasn't constructive, it certainly wasn't specific, and most of us would experience it as rude. Don't let your frustration at asssumed laziness by the OP provoke you into a rant. (For a 1-point newbie poster, it was a decent post and showed effort)

 - **Your comment contains three "yous", five imperative verbs and at least four insulting phrases.** As an exercise, why not rewrite it with zero "yous" and insults, and verbs relating to what the code should do, not the person. Why not avoid totally avoid the word "you", or "your code". Say "this code".
 - **Keep your comment specific**: "You don't understand at a fundamental level how X works and you need to go read a book" is still not constructive.
 - **Pinpoint the specific concept OP does not understand**, e.g. "This code is not MVC because a) b) c). It needs to do d) e) f). Example g), tutorial h) or book i) should be helpful."
 - **Criticize the code, not the person**. "This code is bad", not "You don't understand and need to go away and read a book".
 - **Just don't throw in phrases like** "You don't understand at a fundamental level...". Rewrite, making the specific concept the subject. Not the person. Don't say "Stop being a cargo cult programmer", say "For correct MVC decomposition you must do x) y) z) [or give a link]". Your frustration with the person is spilling over, and your language is amplifying that. I don't think you meant to write everything ad-hominem, but you did. But I think you have good intent.