понеділок, 16 липня 2012 р.

Oracle ADF

Guys, I've been completely disappointed in Oracle Java Middleware. Awkward WebLogic on one hand, and awful ADF on other. Let's start from WL. I've fall in trouble with simple using XPath, I wasn't able to use Xerces or any other. So, I'he used standard WL implementation from weblogic.* package. OMG! My code was working when it was Library of Sun JVM, but on WL it crashed all time. Crazy! ADF... what can i say. The worst framework in the world. The slowest software development. Incredible slow production. No good documentation, no books, no examples, a lot of guys from India. Never ever ever ever use this framework. Don't believe me? Check up this article and comments

четвер, 21 червня 2012 р.

node.js impression

Well, I had some deals with node.js in last weeks. That's nice. Node.js is high-performance web-server, you application is in JavaScript and runs on back-end. The most of developers, specially web-developers, knows JavaScript. Well, I agree that usually people know jQuery or only base knowledge in JavaScript. However, it's very easy and powerful language. Unfortunately, node.js is still bad documented. That sad to hear, but this is bad documented area. So, please, pay your attention on it when choose node.js. Ok, go further. JavaScript is nice language to parse pages (or json and so on - so node.js can be a good choose for high-performance REST service). I was happy to work with this technology, but it has some problems... For example, error on page means error in your server code - it can be a problem. The next one, is "infinity pages" - I guess, you know what I mean. so, surprise here! The easiest way to work with "infinity page" is Selenium WebDriver:) I guess, if you need to use not high-performance parser, you have to look at this testing tool

пʼятниця, 20 квітня 2012 р.

понеділок, 16 квітня 2012 р.

Jersey as yout REST impl in standalone app

Just today morning I wrote a simple standalone application which works with REST as a server (and client). Well, server-client application via REST. In general, the idea is pretty simple, but I was disappointed when got next exception: A message body reader for Java class java.lang.String, and Java type class java.lang.String, and MIME media type text/plain was not found. wtf? I googled this problem and found there are problems with packing META-INF/services/*. Not sure, but it seems happens when you use Maven to assemble your Jersey application. Fortunately, the solution is very simple and fast. You have to add next plugin to your pom.xml ServicesResourceTransformer For now, all works:)

середа, 14 березня 2012 р.

Execute commands in parallel via SSH

When you need to manage one web-server (or AS) there isn't problems. because you make all operations just one time. But what about next situation: you have several servers and need to do the same operations several times? Of course, you can repeat your set of commands several times. However there is much better solution - Capistrano. In fact, it was developed in Ruby and for Ruby projects need. Don't worry, you can use it not for only Ruby applications:)
Capistrano uses special DSL for specifying commands.
Yeap, it's perfect solution for executing commands in parallel

вівторок, 6 березня 2012 р.

how to add logger to class in one click

Hi! Just a simple genius way to add logger to each java class in one click (for Eclipse)
There is Eclipse template, to add this one go to Windows — Preferences — Java — Editor — Templates — New
And text of template:
${:import(org.slf4j.Logger, org.slf4j.LoggerFactory)}
private static final Logger log = LoggerFactory.getLogger(${primary_type_name}.class);

середа, 15 лютого 2012 р.

патерни українською

книга з патернів проектування від львівського розробника
http://designpatterns.andriybuday.com/
усі патерни описано дотепно та весело, читати можна (і навітьрекомендується) не зважаючи на приклади мовою С# (і відповідне неканонічне форматування коду)