Learning to program is low risk, high reward. The absolute worst thing that can come from failing is the hard drive space used by VSCode and the lost evenings you were going to waste on Minecraft anyway. Meanwhile, the reward is a lucrative software engineering job or at least the ability to make neat stuff. No reason not to give it a try; if you like it, you gained a new skill. If you dislike it, you find some other hobby. A maximum of $0 will be spent. Maybe $20 if you buy a book or something.
The same is not true of an industrial coffee farm. Property tax bills will come due. Employees have to be hired and then fired when you fail. Specialized machinery needs to be purchased and will be useless when you give up.
If you've got a few million dollars in your bank account that's burning a hole in your pocket, then I suppose "learn the coffee trade by buying a full-scale manor" is something you could do. If you don't, then cash out now and use the money to build a business you'll actually succeed in. If you just want to learn how to grow and roast coffee, plant a coffee tree in your backyard. When you get bored and it dies, pay someone $200 to remove it.
I definitely get these ideas in my head all the time. I was watching some video about a box factory and was like I should own a box factory. You get a cool industrial loft, and there are machines in there, and guys with trucks come to pick up your boxes. Easy money easy life!! The I realize the video is a safety investigation video and the box factory blew up and killed everyone in the neighborhood because water coming into the plant had too much oxygen in it and am like; wait I don't know anything about any of this stuff. I will stick to programming for the time being.