Java Code Geeks http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Mon, 02 Mar 2015 17:00:43 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 Minor GC vs Major GC vs Full GChttp://www.javacodegeeks.com/2015/03/minor-gc-vs-major-gc-vs-full-gc.html http://www.javacodegeeks.com/2015/03/minor-gc-vs-major-gc-vs-full-gc.html#comments Mon, 02 Mar 2015 17:00:43 +0000 http://www.javacodegeeks.com/?p=37601 While working with the GC pause detection functionality in Plumbr I was forced to work my way through loads of articles, books and presentations about the subject. Throughout the journey, I was repeatedly confused about the (mis)use of the Minor, Major and Full GC events. This led to this blog post where I hope I […]

 

]]>
http://www.javacodegeeks.com/2015/03/minor-gc-vs-major-gc-vs-full-gc.html/feed/ 0
Build Binaries Only Once for Continuous Deploymenthttp://www.javacodegeeks.com/2015/03/build-binaries-only-once-for-continuous-deployment.html http://www.javacodegeeks.com/2015/03/build-binaries-only-once-for-continuous-deployment.html#comments Mon, 02 Mar 2015 14:00:44 +0000 http://www.javacodegeeks.com/?p=37512 What is Build Binaries Only Once? One of the fundamental principle of Continuous Delivery is Build Binaries Only Once, or in short BBOO. This means that the binary artifacts should be build once, and only once. These artifacts should then be stored in a repository manager, such as a Nexus Repository. Subsequent deploy, test, and release cycles […]

 

]]>
http://www.javacodegeeks.com/2015/03/build-binaries-only-once-for-continuous-deployment.html/feed/ 0
jOOQ vs. Slick – Pros and Cons of Each Approachhttp://www.javacodegeeks.com/2015/03/jooq-vs-slick-pros-and-cons-of-each-approach.html http://www.javacodegeeks.com/2015/03/jooq-vs-slick-pros-and-cons-of-each-approach.html#comments Mon, 02 Mar 2015 11:00:09 +0000 http://www.javacodegeeks.com/?p=37511 Every framework introduces a new compromise. A compromise that is introduced because the framework makes some assumptions about how you’d like to interact with your software infrastructure. An example of where this compromise has struck users recently is the discussion “Are Slick queries generally isomorphic to the SQL queries?“. And, of course, the answer is: […]

 

]]>
http://www.javacodegeeks.com/2015/03/jooq-vs-slick-pros-and-cons-of-each-approach.html/feed/ 0
Setup Local Nexus Repository and Deploying WAR File from Mavenhttp://www.javacodegeeks.com/2015/03/setup-local-nexus-repository-and-deploying-war-file-from-maven.html http://www.javacodegeeks.com/2015/03/setup-local-nexus-repository-and-deploying-war-file-from-maven.html#comments Mon, 02 Mar 2015 08:00:50 +0000 http://www.javacodegeeks.com/?p=37510 Maven Central serves as the central repository manager where binary artifacts are uploaded by different teams/companies/individuals and shared with rest of the world. Much like github, and other source code repositories, which are very effective for source code control, these repository managers also act as a deployment destination for your own generated binary artifacts. Setting up […]

 

]]>
http://www.javacodegeeks.com/2015/03/setup-local-nexus-repository-and-deploying-war-file-from-maven.html/feed/ 0
JVM Pressure – Context Switching Overheadhttp://www.javacodegeeks.com/2015/03/jvm-pressure-context-switching-overhead.html http://www.javacodegeeks.com/2015/03/jvm-pressure-context-switching-overhead.html#comments Mon, 02 Mar 2015 05:00:36 +0000 http://www.javacodegeeks.com/?p=37509 Context Switching (CS) is a valuable service provided by the underlying Operating System. It prevents greedy processes from CPU hogging, time-shares CPU between multiple threads/tasks/processes to create an illusion of continuous progress. However, the suspension of the first process and scheduling of the second one requires the kernel to store the state of the first […]

 

]]>
http://www.javacodegeeks.com/2015/03/jvm-pressure-context-switching-overhead.html/feed/ 0
The New Agile–Decisions, Decisionshttp://www.javacodegeeks.com/2015/03/the-new-agile-decisions-decisions.html http://www.javacodegeeks.com/2015/03/the-new-agile-decisions-decisions.html#comments Sun, 01 Mar 2015 23:00:46 +0000 http://www.javacodegeeks.com/?p=37508 In the new knowledge economy, the winners are the ones who learn quickly. But learning means nothing, if it cannot be applied to the business. So the winners are the ones who learn, and use that knowledge, by deciding where to go, and what to do next. If decision making is the king maker, it […]

 

]]>
http://www.javacodegeeks.com/2015/03/the-new-agile-decisions-decisions.html/feed/ 0
Balanced Abstraction Principlehttp://www.javacodegeeks.com/2015/03/balanced-abstraction-principle.html http://www.javacodegeeks.com/2015/03/balanced-abstraction-principle.html#comments Sun, 01 Mar 2015 13:00:01 +0000 http://www.javacodegeeks.com/?p=37468 One of the things that make code complicated to read and understand is when the instructions inside a method are at different levels of abstraction. Let’s assume that our application only allows the logged-in user to see trips from her friends. If users are not friends, no trips should be displayed. An example:     […]

 

]]>
http://www.javacodegeeks.com/2015/03/balanced-abstraction-principle.html/feed/ 0
Journey to idempotency and temporal decouplinghttp://www.javacodegeeks.com/2015/02/journey-to-idempotency-and-temporal-decoupling.html http://www.javacodegeeks.com/2015/02/journey-to-idempotency-and-temporal-decoupling.html#comments Sat, 28 Feb 2015 13:00:57 +0000 http://www.javacodegeeks.com/?p=37466 Idempotency in HTTP means that the same request can be performed multiple times with the same effect as if it was executed just once. If you replace current state of some resource with new one, no matter how many times you do so, in the end state will be the same as if you did […]

 

]]>
http://www.javacodegeeks.com/2015/02/journey-to-idempotency-and-temporal-decoupling.html/feed/ 0
Working with sass scripts in Grails 2.3.Xhttp://www.javacodegeeks.com/2015/02/working-with-sass-scripts-in-grails-2-3-x.html http://www.javacodegeeks.com/2015/02/working-with-sass-scripts-in-grails-2-3-x.html#comments Fri, 27 Feb 2015 20:00:31 +0000 http://www.javacodegeeks.com/?p=37558 Sass is one of the most mature, stable, and powerful professional grade CSS extension language available. Before we can use Sass, we need to set it up on our project. In grails-2.4.X, it is very easy to use sass through asset pipeline plugin. But with grails-2.3.x version, we need to follow these steps: Step 1 […]

 

]]>
http://www.javacodegeeks.com/2015/02/working-with-sass-scripts-in-grails-2-3-x.html/feed/ 0
Readable code is code that looks like the problem statementhttp://www.javacodegeeks.com/2015/02/readable-code-is-code-that-looks-like-the-problem-statement.html http://www.javacodegeeks.com/2015/02/readable-code-is-code-that-looks-like-the-problem-statement.html#comments Fri, 27 Feb 2015 17:00:26 +0000 http://www.javacodegeeks.com/?p=37465 Background In a recent blog post I showed how you could use Java’s labels as a way to clarify the given, when and then sections of a test. I think that this can result in more readable and comprehensible tests. Obviously since its a matter of style this isn’t an opinion that will be shared […]

 

]]>
http://www.javacodegeeks.com/2015/02/readable-code-is-code-that-looks-like-the-problem-statement.html/feed/ 0