Building A Chat App With Codename One Part 2

In the second part of this tutorial we will cover the login process for Google and getting a unique id. We’ll try to write generic code that we can later reuse for the Facebook login process. But first lets cover what “signing in” actually means…​ When you handle your own user list and a user signs in thru registration, you ...

Read More »

How and Why to Serialize Lambdas

Overview Serializing lambdas can be useful in a number of use cases such as persisting configuration, or as a visitor pattern to remote resources. Remote Visitors For example, so I want to access a resource on a remote Map, I can use get/put, but say I just want to return a field from the value of a Map, I can ...

Read More »

Why we do not use comments

When I learned PASCAL programming at TU Budapest in 1986 there was a preprocessor developed specially for student code. It stopped the compilation process if the number of inline comments was less than the number of executable code. There was a rule: we had to have at least 50% of the code meaningful comments. 30 years passed and now we ...

Read More »

Alerting in Production: 6 Tools to Track Errors and Uptime

What are some of the best alerting tools for tracking errors and uptime? Having all the automation and management in the world can only take you so far if you have no clue what’s actually happening in your production app. Alerting tools provide insight into the workings and status of your app. Some reach out to you to notify you ...

Read More »

Apache Drill : How to Create a New Function?

java-interview-questions-answers

Apache Drill allows users to explore any type of data using ANSI SQL. This is great, but Drill goes even further than that and allows you to create custom functions to extend the query engine. These custom functions have all the performance of any of the Drill primitive operations, but allowing that performance makes writing these functions a little trickier ...

Read More »

Kubernetes Design Patterns

14,000 commits and 400 contributors (including one tiny commit from me!) is what build Kubernetes 1.0. It is now available! Download here API Docs Kubectl command tool Getting Started Guide Kubernetes Introduction Slides This blog discusses some of the Kubernetes design patterns. All source code for the design patterns discussed below are available at kubernetes-java-sample. Key Concepts of Kubernetes At a very high level, there are three ...

Read More »

What the sun.misc.Unsafe Misery Teaches Us

Oracle will remove the internal sun.misc.Unsafe class in Java 9. While most people are probably rather indifferent regarding this change, some other people – mostly library developers – are not. There had been a couple of recent articles in the blogosphere painting a dark picture of what this change will imply:             Dripstat‘s Removal of ...

Read More »

Monitoring DevOps Style With WildFly 9 And Jolokia

DevOps is among the hottest topic these days. And the wide range of topics around it makes it hard to actually find a complete description or something that covers everything on a decent granularity. One thing is for sure: One of the most important parts is to deliver the correct metrics and and information for monitoring of the application.   ...

Read More »