Whats the difference in the meaning between the given sentences? [closed]

The first one using a gerund which is a noun; The second sentence has a verb;

In this situation, it is better to use a gerund. The gerund is perfect to use in the role of:

  • Subject Eating cake is pleasant.
  • Extraposed subject It can be pleasant eating cakes.
  • Subject Complement What I'm looking forward to is eating cakes
  • Direct object I can't stop eating cakes.
  • Prepositional object I dreamt of eating cakes.
  • Adverbial He walks the streets eating cakes.
  • Part of noun phrase It's a picture of a man eating cakes.
  • Part of adjective phrase They are all busy eating cakes.
  • Complement of preposition She takes pleasure in eating cakes.

What are gerunds and how do you use them