How to develop infrared remote control?

i have learned something from net. there are some choices.
1 use lirc https://openwrt.org/docs/guide-user/hardware/lirc
2 use an uart IR module
3 use IR led and code the driver code

so how about the second method?

ir-keytable