Consulting your programming knowledge out is a very high ROI per hour (more so than coding).
Some people build plugins for ecosystems like Wordpress and that's pretty profitable.
I have a Slack marketplace app that is ramen profitable.
Write code to solve a problem and charge for it is probably the best way to monetize your programming hobby.