Both triodes and transistors act as amplifiers. But due to the large size of the triode valve, there is a problem in installing it in the electronic device. This requires more energy consumption , less reliability and cooling system. But transistors do not have these problems. So transistors are better than triodes.