Aug 18, 2008

Should abbreviations be used in the code?

Two times in the past month I came to the same question: should abbreviations be used in the code or not? In this article I am trying to give my answer to the question.
DEFINTION

Wikipedia defines abbreviation as:
An abbreviation (from Latin brevis "short" is a shortened form of a word or phrase. Usually, but not always, it consists of a letter or group of letters taken from the word or phrase. For example, the word "abbreviation" can itself be represented by the abbreviation "abbr." or "abbrev."
So the question becomes: should code contain

$mySqlResultSet = $GLOBALS['TYPO3_DB']->exec_SELECTquery(...);

or can be as simple as

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(...);

Aug 13, 2008

RTE in TYPO3 sections: a nasty bug

I thought I should publish a little story how the bug #8232 was solved. It took me 11 hours to make a fix and the story may help other developers to solve similar problems.

But firsts I want to give you a little insight about sections and RTE in TYPO3.

TYPO3 AND SECTIONS

Sections in TYPO3 is a way to have repeating structured elements in forms. Mainly it is used by TemplaVoila and its Flexible Content Elements (FCEs).

For example, think that you have a product and a number of its characteristics. You want characteristics to be defined in the structured way. You want to have a title and a link to the page with details. You can do that all in RTE but then your data and presentation are bound together. If you have many products and want to change presentation for all of them, it becomes a problem.

Aug 9, 2008

Font is too large in the OpenOffice for Mac

OpenOffice finally decided to make its software run natively on Mac (previous versions required X11). It is still beta and runs slower than NeoOffice. But it has better revision handling than previous OpenOffice or current NeoOffice.

I tried OpenOffice 3 beta 2 recently and found that fonts are much larger than fonts in other Mac applications. Next I decided to try development version but the problem is still there.

I searched OpenOffice settings to revert font size to normal for Mac but could not find any. However there is an option to scale the whole OpenOffice. Setting this option to 88% makes interface the same size as normal Mac applications and similar to NeoOffice.

Here is what to do if you feel that OpenOffice fonts are too large:

Aug 3, 2008

"TYPO3 Extension programming" – my book

Packt Publishing has announced my book about TYPO3 extension development. It is expected in the end of September. I cannot yet tell you yet any details except those that you can read at Packt web site. But I can tell that book will be very interesting for both novice and experienced TYPO3 programmers. It guides readers from overview of the TYPO3 API through extension generation and programming to the writing documentation for the extension.

I worked hard on this book and tried to put every even smallest tip that I remember to the book. I tried to show some non-trivial but highly useful tips that I personally learned. I hope I can help people to write better extensions by using this book.

I am really excited about Packt's announcement! I waited for this moment for a long 8 months while working on the book. Every day I though about the book and how to transfer my experience to other people better. I hope I succeed. But it is up to you to decide, of course!

I hope you will love the book!

It is obvious, isn't it?

From "The Theory of Everything":

'Corse it's obvious!