Carrying some sort of food is wise on any long ride, to stop what cyclists call bonking (which marathon runners call “hitting the wall”, and I call “running out of puff”).
A quick bite can perk you up surprisingly quickly if you find yourself flagging.
There are all sorts of premade gels, jellys, bars and snacks to choose from, but if you’re going on a long ride a few times a week, these can get pricey.
Making your own bars is one solution. It’s much cheaper, but it does take a little time.