[TYPO3-dev] "Clean code" at t3dd11 on July 8th
Dmitry Dulepov
dmitry.dulepov at gmail.com
Tue Jul 5 20:30:47 CEST 2011
Hi!
Because my T3DD11 workshop is a little unusual, I want to give advance info
about it.
As you probably know, most of topics at the coming T3DD11 are workshops. So
they should contain more working than talking. This is good because it is
easier to learn by seeing and doing than by sleeping on a boring lecture :)
I plan to divide my workshop to two parts. During the first part I will
talk and show various examples of unclean code and explain why exactly that
code is unclean and why you should not write your code this way. This would
be a typical presentation with examples from the TYPO3 core. After showing
those, I will explain what is clean code, what are benefits of it and how
exactly you can write clean code. It is absolutely necessary to start from
the talking part because there are some ideas that you need to hear before
we proceed to a practical part.
For the practical part we will take a file from the TYPO3 core and attempt
to change it according to "clean code" principles. This will be a live show
(no prepared tricks). I do not know yet what file it will be. Today, as a
part of Gerrit review, I came across t3lib_compressor and I thought may we
try to improve that. It is a very clever piece of code but it is quite
complex in programming. We will try to simplify it without loosing any
functionality. If we succeed, we will make a patch request to Gerrit to
commit our improvements.
I am going to use PhpStorm as the editor for the practical part. You are
encouraged to bring a laptop if you have one and try doing the same things
as I. I will comment all actions and explain why I do certain changes.
The aim of this talk is to improve our code and coding culture. I think it
is important now because we have more and more contributors. We need to
make sure that our code uses the best possible modern quality standards.
The talk is meant exclusively for programmers. So if you are a designer or
a TypoScript writer or a support person, you will not benefit anything from
attending. If you are a PHP developer, you may be interested.
--
Dmitry "itoldyou" Dulepov
TYPO3 core&security team member
E-mail: dmitry.dulepov at typo3.org
Web: http://dmitry-dulepov.com/
More information about the TYPO3-dev
mailing list