Виртуальная песочница (тм)

Wednesday, July 5, 2017

If you only have JRE... ;)



Read more...

Thursday, June 8, 2017

WildFly Swarm in 15 minutes



"how to have executable Jars, use standard Java EE APIs and write Micro, Nano and even Pico services using WildFly Swarm"

Read more...

Sunday, April 23, 2017

Java User Group Latvia - 42nd meeting on 25-April-2017

JUG LV Homepage
Free Registration for JUG LV #42, Konventa Seta, 9/11 Kalēju iela, LV-1050, Rīga. Kampenhauzens conference room, 1st floor.

Agenda

1. Look ma, no JavaScript – how you can build a modern web app 100% in Java by Sami Ekblad

Building great web apps is not an easy task. User expectations keep growing, and the technologies needed to fulfil them are increasingly complicated. Vaadin takes a very different approach to web development. For starters, there's no need to write HTML or JavaScript. No REST services. Instead, you build your app using ready-made UI components in Java and let Vaadin handle the rest. Come find out how fun and productive web development can be when you cut out all the nonsense.


2. Forget about Microservices, Micromodules is a new Silver Bullet by Dmitry Buzdin & Ilgvars Jecis
Read more...

Rod Johnson on portability of J2EE applications

Rod Johnson, the father of Spring, wrote in his famous book "Expert One-on-One J2EE Design and Development" (2002):

"Portability is a great bonus of the J2EE platform. <...> portability can be achieved in real applications, but it's not the point of J2EE. The requirement of the vast majority of projects is to build an application that solves a particular problem well on one target platform. An application that runs badly on one platform will never be ported to other platforms (the application might be ported to another operating system that runs on more powerful hardware to gain adequate performance, but that's not the kind of portability that professional developers aspire to).

J2EE orthodoxy holds that an application should be portable across J2EE application servers and must be able to work with different databases. The distinction between these two goals is important, and sometimes missed. Portability between application servers may deliver business value and is usually a realistic goal. Portability between databases is much more fraught, and often provides no business value.

Portability is usually taken to mean code portability: the ability to take the application and run it on another platform without any change. <...> this is an expensive misconception. Naïve emphasis on total code portability often leads to heavy costs in lost productivity and less satisfactory deliverables. Write Once Run Anywhere (WORA), while a reality where Java itself is concerned, is a dangerous slogan to apply to enterprise development, which depends on a range of resources.

<...>

The portability myth has led to wide acceptance that J2EE applications can't use the capabilities of today's relational databases, but should use them only as dumb storage. This does great harm in the real world."
Read more...

Friday, March 24, 2017

Java User Group Latvia - 41st meeting on 30-March-2017

JUG LV Homepage
Free Registration for JUG LV #41, Konventa Seta, 9/11 Kalēju iela, LV-1050, Rīga

Agenda

1. Service interaction patterns and anti-patterns by Dmitry Lebedev

Somehow, there are some important things in service-to-service interactions, which are often missed, when we are building our services in a hurry, but later those aspects may play a significant role in your application performance and stability. How to organize service-to-service calls, how to optimize them, what to do in order to make them fail safe, what to do when a request has failed and etc.
This talk is rather a general discussion of available approaches, than a prescription of which library or framework to use, but some Java-related recipes will be given. And as a cherry on top of it all - some real-life war stories.

2. Testing RESTful services: The What, The How and The Automated by Alexey Buzdin
Read more...

Thursday, March 2, 2017

git clone "fatal: remote error: Invalid username or password" (Windows)


Проблемка:

Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\xyz>git --version
git version 2.10.0.windows.1

C:\xyz>git clone -v https://username@hostname.domainname.com/scm/git/superproject
Cloning into 'superproject'...
fatal: remote error: Invalid username or password.

Read more...

Wednesday, February 1, 2017

Serverless

Read more...

Tuesday, January 31, 2017

Rewrite from scratch

A "quote-style conspect" of the (IMO) main points from the famous article by Joel Spolsky.
Read more...