I challenge the distinction between hard work and smart work. You cannot be smart without hard work. Amassing knowledge and mental ability requires years of effort and work. It is easier for gifted/clever people, but not inherent.
gifted =/= smart
gifted =/= smart
You can keep churning out spaghetti code (hopefully the uncooked kind) or you can learn and apply better methods, for example.