Spock rulez. Writing tests has never been simpler and more pleasant. All thanks to concise and informative syntax. But how is Spock syntax made possible?
From the dawn of time there is an ongoing discussion about using surrogate keys vs natural keys in your database tables. I don’t want to take any side here - just write about one consequence you’ll face when persisting natural key entity with Spring Data repository.
The short answer is: go Lazy if you care about number of queries happening under the hood. “But what if I always need a particular relation?” - still go lazy, here is why.
Remember the times when we had to register dispatchers, viewResolvers, etc. to make our spring application web-app? Then there was @EnableWebMvc annotation and now even this is redundant.
These days the only thing you need to do is to add ‘org.springframework.boot:spring-boot-starter-web’ dependency to your project and everything else is done automagically.
Recently I’ve faced an interesting issue. Got transactional method saving entity to the database - method is called, no exception is thrown - but no data is stored into the db.
Amsterdam gave me a taste of everything - I guess this is what this city is about :).
Few days ago 4F company gave me an opportunity to participate in Spring I/O conference in Barcelona.
2 days, 4 rooms and 41 speakers presenting technologies behind, within and around most popular java framework.
Having some conference history, at some point I developed believe that at any given event, many presentations and lectures find their place in agenda only by mere accident. All the more I was curious how all of this will look under watchful (I hoped) eye of Pivotal.
Always hungry for changes, some time ago 4F company moved from Maven to Gradle.
Most of the migration work went relatively smoothly.
Surprisingly though, not every developer was eager to sacrifice his precious time on something as trival as build tools and
with rapid googling for example based knowledge some mistakes were made.
One of them can serve to decribe one of Gradle’s fundamental aspects - Build Phases.