Sunday, 16 March 2014

[Review] Functional Programming in Java. Harnessing the Power of Java 8 Lambda Expressions by Venkat Subramaniam.

My new year commitment was, that I read one book each month. I don’t predicted an unexpected events that may me slow down :( I do not give up. Next book review will be in 16’th of April.

About the book. I’ve read a beta 6 edition from 13 of January, but I think that final version is very similar to the this beta version. It is not the book about Java 8. It is a book about Lambda Expressions in JDK8. The title says that. In JDK8 there are for example changes in GC. I was missing at least one chapter or few pages about it. 

It was book easy to understand. I have Groovy and Scala experience, so there was nothing new to me. All the time I was mapping Java code to Scala code :). It was good for me. 

Next good thing is that it reads like a group of blog posts. We have some examples of imperative style, then we move to declarative or functional style. Size of chapters was appropriate for me to read before sleep. 

I didn’t like code examples (not in book, but downloadable code). Code examples was without tests and assertions. Just run and print output. I like BDD tests, and it will be great to read examples that are combined with BDD tests. 


I would recommend this book to a friend, because it is focused on good developer practices. 

Saturday, 8 February 2014

[Review] Groovy Recipes by Scott Davi

Hi. My new year commitment is to read a book every month and write a review on this blog.
So the first book is Groovy Recipes by Scott Davis. This book was easy to read. I read it fast. Very fast. Mostly because I know more or less about Groovy. There was one maybe two things that was new to me. So I think this book w is not good for developers with some Groovy experience.

Besides that book was very well organized. In each chapter we could find answer to to the problem related to chapter title. 

This book need an update. It was written in 2008. A lot changed since then. For example maven building style. 

I will definitely recommend this book to my friends who would like to start using Groovy quickly. 


My rate is 4 of 5 starts.

Sunday, 20 October 2013

[Event] Agile By Example 2013

Agile By Example is over. It was good three days. Organizers do they's best. There was great organization, good internet acces and good food. Jeff Suterland keynote was average. For me the real keynote was given by Sandro Moncuso "Software craftsmanship".

In the second day, good speach gave Jurgen Appelo and Tom Gilb. Tom Gilb presentation was challenging. Slides were awful. Tom marked many times that we must deliver value. Remember that value may be delivered without single line of code. One of the tools that Tim presented was "Value Decision Tables" which may look as sophisticated Excel system. But Krzysztof Jelski, on the next day presented "Impact Mapping" tool which was very easy to use.

I've meet Agile from a new perspective. It was good for me that I’ve joined this conference.

Thank you SoftwareMill and Touk for this event.

Sunday, 14 July 2013

[Scala] Scala event in Warsaw

On July 10, there was an event called "Scalania". A group of Scala developers and Scala "wannabe" developers, meet at Warsaw University Of Technology. We were solving 99-scala problems. Result of our work can be found at bitbucket.

Sunday, 7 July 2013

[Git] Experimenting with git ls-files. Show ignored files in git.

This post describes, my experiments with git ls-files command.

 In repository, we have files:

.DS_Store (Mac OS X, folder settings file)
.git (Git repository file)
.gitignore (Git ignore file)
ignoredFile (Some file, that should be ignored)
inRepo (File in repository)
untracked (Som untracked file)
staged (Staged file)


This command show us, all committed files and staged files.
$ git ls-files
.gitignore
inRepo
staged


This command show us, all files that are ignored or untracked. Those files are called 'other'.
$ git ls-files --others
.DS_Store
ignoredFile
untracked


This command show us, all others files, without ignored files. Option exclude-standard means that standard git exclusion files are included.
$ git ls-files --others --exclude-standard
untracked


This command show us, all files that are ignored.
$ git ls-files --ignored --others --exclude-standard
.DS_Store
ignoredFile

In my global git ignore file, there is a rule to ignore all .DS_Store files. In my local git ignore file, there is a rule to ignore ignoredFile file.

Wednesday, 17 April 2013

Fest Assert

9 kwietnia 2013 roku wygłosiłem Flashtalk na temat FestAssert na Warszawa JUG.
Udostępniam:
- Nagranie
- Slajdy

Sunday, 24 February 2013

Trigger Jenkins build from BitBucket

W tym poście przedstawię jak zrobić, aby natychmiast po wypchnięciu zmian do BitBucket.org serwer ciągłej integracji rozpoczął proces budowania aplikacji.

Konfiguracja Jenkinsa

1. W związku z tym, że nasz Jenkins musi być dostępny publicznie, warto go trochę zabezpieczyć. Dostęp do Jenkinsa ograniczymy tylko dla zarejestrowanych użytkowników. Opcje konfiguracji zabezpieczeń powinny być ustawione tak jak na screenie poniżej. 

2. Nazwa użytkownika w tym przypadku to "lewy". Następnie musimy pobrać nasz "user API token". Znajdziemy go tutaj:

3. Następnie musimy włączyć dla naszego projektu, możliwość zdalnego triggerowania budowania:

4. Aby przetestować konfigurację Jenkinsa wywołaj zapytanie do serwisu:
http://lewy:USER_KEY@klkl.pl:8081/job/WorkTracker/build?token=PROJECT_KEY
Po wykonaniu tej operacji, nasz serwer Jenkinsa powinien ruszyć z nowym procesem budowania.

Konfiguracja BitBucketa

BitBucket'a konfigurujemy tak jak na screenie przedstawionym poniżej:

Jeżeli tak skonfigurujemy nasze środowisko, po pchnięciu zmian, serwer ciągłej integracji, powinien automatycznie rozpocząć budowanie aplikacji. 
Niestety BitBucket nie udostępnia żadnych logów, więc jeżeli coś nie działa, to pozostaje nam próbować zmieniać coś w ciemno, aż zadziała.