There is an easier way! You can access functions contained in tables (like the turtle API) by the lua table indexing methods. Instead of writing "turtle." a dozen times, put the string indexes of the functions in a table and then use a loop.
local t_commands = {"forward","forward","turnLeft","up","forward","turnRight","place","placeDown",
"turnLeft","forward","forward","attack","attackDown","dropUp","forward","placeUp","turnLeft","down",}
for i,v in ipairs(t_commands) do turtle[v]() end
Run this code, and your turtle will run around acting pretty stupid for a bit. But the point is that we have accomplished in a few lines what would otherwise take quite a lot of lines.This makes it far easier to look over the sequence of commands and see that they are right, without the same danger of "code fatigue" that makes every line starting with "turtle." and ending with "()" look identical.
The reason that this trick works is because turtle.forward() is just another way of saying turtle["forward"](), and the same is true for every turtle command.