  Linear complementary dual (LCD) codes introduced by Massey are the codes
whose intersections with their dual codes are trivial. It can help to improve
the security of the information processed by sensitive devices, especially
against side-channel attacks (SCA) and fault invasive attacks. In this paper,
By construction of puncturing, extending, shortening and combination codes,
many good ternary LCD codes are presented. We give a Table 1 with the values of
$d_{LCD}(n,k)$ for length $ n \leq 20$. In addition, Many of these ternary LCD
codes given in this paper are optimal which are saturating the lower or upper
bound of Grassl's codetable in \cite{Grassl} and some of them are nearly
optimal.
