Updated: 4 hours 45 min ago
Multi-paradigm programming with Java has been possible for many years, with its support for a mix of service oriented, object oriented and aspect oriented programming. Java 8 with its lambdas and java.util.stream.Stream class, is good news because it lets us add the functional programming paradigm into the mix. Indeed there has been a lot of hype around lambdas. But is changing our...
Every now and then, I miss SQL’s three-valued BOOLEAN semantics in Java. In SQL, we have:TRUEFALSEUNKNOWN (also known as NULL)Every now and then, I find myself in a situation where I wish I could also express this UNKNOWN or UNINITIALISED semantics in Java, when plaintrue and false aren’t enough.
If you’ve read the previous five blogs in this series, you’ll know that I’ve been building a Spring application that runs periodically to check a whole bunch of error logs for exceptions and then email you the results.
Having written the code and the tests, and being fairly certain it’ll work the next and final step is...
By default WordPress comes with an in-built RSS feed allowing your visitors to subscribe to your RSS feeds to be alerted to your new articles.
The below code will look into getting other post types into your website RSS feed.
Automated testing has become something people don't speak about any more. It matured to being a standard in software development, everyone is and should be practicing. No more talks at conferences, only a few blog posts and online articles from now and then. That radically changed recently, again becoming a hotly debated topic, at least after some of @dhh's quite provocative posts and his...
This is a joint post by Guest Author Craig Burton who writes at http://www.craigburton.com/ (craigburton) and 3scale’s Steven Willmott (njyx on twitter). The original axiom approach was dreamt up by Craig and we’ve iterated together since.
As we’ve already pointed out the claim that everything and everyone will be API enabled...
Fact #1: More and More Sites are using SSL to Secure Their Users' Transactions
Everybody requires security and privacy these days.
If you don't believe it, take a look at Google, Facebook and Twitter. All them are using HTTPS and SSL to secure all their webpages and API calls including simple feed presentation and search page presentation.
As you might have noticed—at least if you have read SQL Performance Explained—I don’t think clustered indexes are as useful as most people believe. That is mainly because it is just too darn difficult to choose a good clustering key. As a matter of fact, choosing a good—the “right”—clustering key is almost impossible if there are more than one or two indexes on the table. The result...
Update 5/5/14 10:45PM: Heroku’s default PHP buildpack now allows Composer to install the MongoDB extension. You do not need to use the develop branch. To enable, add “ext-mongo” to the composer.json file as described in the Solution section.
One of our close Platform-as-a-Service (PaaS) partners, Heroku, recently announced its...
It’s common to see people point fingers and play the blame game after a project fails. These blame games not only hurt the team members but also impact their morale as well. Is there a way to avoid these hurtful situations while focusing on improving process and identifying the failure’s root cause?
No, not the book
and personal productivity method by David Allen, though somewhat
related in intent. I’m talking about getting things done in software
Both timebox-oriented [e.g. Scrum] and flow-oriented [e.g. Kanban] methods try to emphasize getting things done so that they can be used earlier and provide value. ...
Groovy adds a lot of extra methods to the File object to work with the contents or find and filter files in a directory. These methods are now also added to the java.nio.file.Path class since Groovy 2.3.
Groovy adds a lot of extra methods to the File object to work with the contents or find and filter files in a...
[This article was originally written by Kim Singletary.]
Live migration is starting to become a cloud differentiator. Giving business an easy path to utilize the most efficient computing instances as they become available. This only relates to the optimized computing and storage options.
Man, my boss is always on my case. After what I did with Azure Mobile Services with him, he’s always after me. So this Friday, he calls me up in his office and following conversation happens between us:
Boss: The Virtual Machines we’re hosting in Azure, we want to bring the cost of them down.
Long time ago, I wrote a post @OneToOne with shared primary key. Today I would like to return to this problem, with solution based on @MapsId annotation introduced in JPA 2.0
Long time ago, I wrote a post @OneToOne with shared primary key. Today I would like to return to this problem, with solution based on @MapsId...
Since Groovy 1.8 we can use the trampoline method for a closure to get better recursive behavior for tail recursion. All closure invocations are then invoked sequentially instead of stacked, so there is no StackOverFlowError. As from Groovy 2.3 we can use this for recursive methods as well with the @TailRecursive AST transformation.
In a previous post,
we had shared a small function that generated random string in Java. It
turns out that similar functionality is available from a class in the
extremely useful apache commons lang library.
If you are using maven, download the jar using the following dependency:
In a previous post, we had shared a small function...
Java ME 8 is now here, just a short while after Java SE 8. From my
personal experience many developers still strongly associate Java ME
with feature phones and are far too quick to not pay enough attention to
it. It is important to remember that Java ME is really about running
Java on any small devices, not just feature phones. This means that Java
ME can be hugely important for the emerging...
NoSQL vs. SQL is a rather contentious topic: everybody loves comparing databases (to MongoDB, most of the time), explaining their reasons for abandoning NoSQL (or moving to it), and just generally trashing one solution or another. It's a very dramatic space.
NoSQL vs. SQL is a rather contentious topic: everybody loves comparing...
I have been using Spring Scala for a toy project for the last few days and I have to say that it is a fantastic project, it simplifies Spring configuration even further when compared to the already simple configuration purely based on
I have been using Spring Scala for a toy project for the last few days and I have to...