Tutorials/Hoglin farming

Hoglin farming is the process of killing hoglins for leather, raw porkchops, and cooked porkchops.

Applications
Raw porkchops can be traded for emeralds, but not cooked porkchops! On the other hand, cooked porkchops are very nutritious food equivalent to steak. This means that massive quantities of cooked porkchops are unnecessary in singleplayer or small servers. However, raw porkchops can be gathered in massive quantities if a large automatic farm can produce so many hoglins. These raw porkchops can be converted to emeralds as long as you have enough villagers.

Leather can also be traded for emeralds, or alternatively used to produce books, which too can be traded for emeralds, enchanted or used to create bookshelves and lecterns.

Large, automatic
Notice: This video was made in Java Edition 20w07a. The actual showcase of this design starts at 1:38, everything before that is an intro.