30 December 2011
As year 2011 is going to end very soon I did a little recap of things occured on this blog during this year. I wrote 18 posts, which is more than in a previous year (it was 11). Readers left total number of 43 comments. This blog has been visited 58% often than in the previous year with 200% more actions performed. In the December I switched layout (with help from Chilid team), which made it more readable and easy to use.
To sum things up: that was good year, but next is going to be better :-) Thank you for reading my articles and don’t hesistate to leave comments and suggestions about improvements that you can see.
Read more
8 December 2011
Today I proudly present a brand new blog layout. Thanks to Chilid New Marketing Agency from Gliwice, Poland now blog is more readable and minimalistic. I need to admit that cooperation with Chilid was awesome – they clearly understand my needs, did great graphics and creation and communicated very well. Thanks again to Ania, Tomek, Patrycjusz, Marcin and Adam!
Read more
23 November 2011
Gliwicki Software House XSolve poszukuje programistów PHP, Java, .NET, a także Functional Designerów, Solution Architectów, sysadminów. Jeśli jesteś jednym z powyższych i masz ambicje tworzyć oprogramowanie na najwyższym poziomie, dla klientów z pierwszej ligi – zobacz co oferujemy i aplikuj!
Więcej na Praca XSolve oraz naszym profilu XSolve Jobs
Read more
1 November 2011
Recently I did a lot of Test Driven Development on my Symfony2 bundle. I used PHPUnit’s built-in mocks and stubs for many projects, so I took it again. But while I was working on mocking Symfony2 core objects I found those mocks very uncomfortable in use. I tried Mockery and it saved my day. Let’s see how to get it working with Symfony2 and how it kicks ass!
Read more
23 October 2011
Generally, it’s not a good idea to unit test protected or private methods, but in some cases it could be useful. Of course we don’t want to change our class contract, and expose those methods as a public ones, just becasue we want to test them with PHPUnit. This case can be solved with Proxy-Object library. It provides easy-to-use way to get protected classes to the surface. More about that is here http://blog.bastian-feder.de/blog/029_proxyObject.html. Here I’ll show how to integrate proxy object into your Symfony2 application:
Read more
18 October 2011
Today I needed to add a custom class to textarea field, to achieve TinyMCE field rendering (with help of http://symfony2bundles.org/stfalcon/TinymceBundle). It wasn’t such straightforward like I thought… I tried:
But it threw exception, that attribute “class” is undefined, so I need to solve it in other way. Thank god I use Twig, so I tried form theming (in template with form). Only thing you need to do is to find out html ID of the textarea field (in my case: wowo_bundle_newsletterbundle_newslettertype_mailing_body). Then you need to add a “_” on the front and “_widget” on the end and class=”tinymce” is there for you.
The solution is simple and powerful, Symfony2 has proven its quality again :-)
UPDATE 19.10.2011
As Florian and Stloyd mentioned in comments, setting custom class can be done in elegant way, which ain’t included in the documentation yet.
UPDATE 29.10.2011
After my contribution, “attr” element is now documented in official Symfony2 docs http://symfony.com/doc/current/reference/forms/types/field.html
Read more
27 September 2011
Today I ran into a little issue: how to pass generic logger object to method? I wanted to get some verbose output from method, which I call from Command, but onc time it should log with Symfony2 OutputInterface and other time it should use monolog logger. Of course I can make some wrapper class for both of them, but it would be kind of an overkill. The Closure from PHP 5.3 came with solution. In calling method I created closure like this:
On the second hand I’ve got:
As you can see I don’t need to care about logging – just call the closure with message and it will log it properly, depending on context.
Read more
17 September 2011
Wczoraj wróciłem z InternetBeta2011, która odbyła się w Rzeszowie. Trzeba przyznać, że poziom organizacji był na naprawdę wysokim poziomie, podobnie jak poziom ludzi, których tam spotkałem. Wiele znanych osobistości, wiele pasjonatów i mnóstwo nowych znajomości. Jako architekt oprogramowania miałem obawy o trudności znalezienia wspólnego języka z przedstawicielami mediów, marketingu, agencji interaktywnych czy PR, ale te wątpliwości szybko zostały rozwiane.
Szczególnie do gustu przypadł mi panel technologiczny, na którym prelegenci byli doskonale przygotowani i z którego wyniosłem najwięcej (sam osobiście też wygłosiłem prelekcję na tymże). Oczywiście nie ujmuję tutaj pozostałym przemowom, bo na głównej auli prezentacje w większości były świetne. Poza tym warto tu pochwalić warstwę audio-wizualną imprezy oraz doskonale przygotowane programy wieczorne :-)
Trochę brakowało mi interakcji pomiędzy prelegentami a widownią po prezentacjach. Pytania z publiki zawsze stawiają kropkę nad “i”, tutaj agenda była wypełniona dość szczelnie i nie było na to czasu. Drugą kwestią, która trochę zawiodła to catering, ale nie samym chlebem człowiek żyje :-)
Ważnym wydarzeniem był też wernisaż Oli Anzel, który przedstawiał najważniejsze osoby w polskim Internecie, a któremu towarzyszyła również cyfrowa edycja http://webdokwadratu.pl. Więcej o tym projekcie, można przeczytać na blogu Marcina Dryki, który był głównym developerem projektu.
Podsumowując: wielkie słowa uznania dla Matuesza Tułeckiego i jego drużyny za organizację InternetBeta, mam nadzieję, że w przyszłym roku znowu będzie mi dane tam być.
Read more
15 September 2011
Poniżej slajdy z mojej prezentacji, którą wygłosiłem na InternetBeta 2011 w Rzeszowie. Zapraszam do zapoznania się z slajdami.
Read more
12 September 2011
W czwartek 15 września 2011 o 14:30 będę miał przyjemność prowadzić prelekcję na Sesji Technologicznej InternetBeta 2011 w Rzeszowie. Mój temat to Łebski Development czyli kiedy i dlaczego tworzyć oprogramowanie pod klucz i dlaczego framework Symfony2 pasuje tu jak ulał? A poniżej krótka agenda:
- - oprogramowanie dedykowane vs. produkty Open Source gotowe do użycia – w którym momencie te drugie przestają być wystarczające,
- - jaką wartością jest indywidualne podejście do zagadnienia i gdzie każdy z udziałowców projektu otrzymuje największe korzyści,
- - po co komu framework, skoro można wszystko samemu napisać najlepiej?
- - Symfony2, jego historia, możliwości i usytuowanie na rynku,
- - przykłady z życia codziennego, jak PHP i Symfony2 zwinnie daje radę w przeróżnych dziedzinach software developmentu.
Wszystkich zainteresowanych tematem serdecznie zapraszam :-)
Read more