I'm a junior developer at a tech company and have been working at my current company for around half a year.
It's becoming clear to me that I am not getting necessary negative feedback. For example, my boss will not tell me that he doesn't like the way something looks or is implemented unless I say it first, in which case he will agree with me (if it's true). In another case, a few months ago, I was asked to complete a somewhat large task; I submitted my work and never got any feedback. Looking back it wasn't completed as the company wanted, but it would have been nice to be told "Thanks, but please do it differently / we needed something else."
My boss is a generally nice person and I'm not oversensitive - I try to get feedback as often as possible (which he doesn't give too much of anyway). What is a professional way to ask my boss to tell me when something isn't done well, instead of being silent and/or giving the work to someone else?
Edit: to clarify, I'm somewhat of a beginner to the type of software engineering going on said company, and there are sometimes tasks that I legitimately can't finish in the time allotted. I'm fine with having someone else complete the task - I just want my boss to acknowledge it, and let me know what I should know/learn for next time.