Being a mechanical engineer and ending up doing some crappy job which i absolutely hate i want to shift my path to programming.
Coding is not a joke i know but will 1 year of hard work can get me a job. Atleast i will love what i am doing though i have never code before.
You say if you do programming, you would be 'doing somethnig which you love'. But you also say you never programmed before.
So are you just speculating that you "would" love programming?
I am asking this since if you think Felicity cracking her fingers on a keyboard and hacking secret military organization in seconds, is NOT programming. (Or if you didn't get the Arrow reference, it's not the typical hackers who are shown in films).
Programming isn't glamour. Programming is often mundane activity being performed late in night, or under your Team Leader's pressure and it requires to support your tools in extra time. Programming is not just the end result, but the process of conception, planning, drawing a framework, developing a prototype, creating the tools/softwares/service and then testing it for eventual bugs that would creep up no matter how carefully you have programmed it. And then listening from the clients that they "actually wanted something else". Programming is "not just coding", it involves various other aspects that one probably never think of before .
Programming is not programming, it's actually a Mindset. Mindset of "problem solving" abilities, and a mind that tries to get into the "how". Bonus marks if you also try to get into the "why" of things. (Mostly, to think over "why" is a Manager's job). Programming is also the "willingness" and the "attitude" to solve things that most of the time would seem impossible.
Yes, it's a rewarding experience. To be able to create something from nothing and seeing it in action have a feeling that not most can experience.
So first think about that. And then we can proceed further.