Translate

четвер, 26 березня 2015 р.

#JUGLviv: 21-st meetup: #Dropwizard - 2-nd of April


JUG Lviv  відкриває новий сезон!
Перша зустріч в цьому році

2-ге квітня о 19-00 за адресою вул. Наукова 7г,
 приміщення тренінг-центру компанії Елекс

вхід традиційно вільний

 Dropwizard

  light-weight Java framework for easy and fast developing RESTful web services


Are you exhausted from pulling together 100500 different Java framework to develop RESTfull web services? Let try Dropwizard :)

Make Magic with Dropwizard
Agenda:
- Overview
- Setup and Configuration
- Dropwizard Freatures: Easy YAML configuration, Metrics, Database Integration, Microservices, Authentication and more
- Similar Solutions
- Q&A

Speaker:  Yurii Luchkiv
Software Engineer at Conscensia
3.5+ year of experience
Interested in Java/Android/Scala


середа, 25 лютого 2015 р.

Помилка у алгоритмі сортування в джаві?


Ось тут з'явилась цікава стаття про помилку в стандартному алгоритмі сортування в java

Може кому цікаво дослідити тему і обговорити на зустрічі групи?

середа, 18 лютого 2015 р.

JavaOne 2014 Video


https://www.oracle.com/javaone/sessions/index.html

понеділок, 9 лютого 2015 р.

Morning@Lohika: Spring Boot in production is coming!


Dear all,
We are glad to inform you that next Morning@Lohika will be held on February 14th . As usual we invite only the best speakers and high-quality specialists so please welcome our speaker from Kyiv – Oleksiy Rezchykov, Software Engineer at Playtika. This time you have a good chance to hear about «Spring Boot in production”.
Someone may think that Spring Boot is just another rapid application development tool for pet projects and/or presentations. Oleksiy will destroy that myth as he has successful experience of implementing microservices architecture using it for the complex applications that are currently in production.
Oleksiy Rezchykov
Oleksiy Rezchykov, Software Engineer at Playtika


вівторок, 13 січня 2015 р.

VirtualJUG: meetup with James Gosling


Java and the Wave Glider with James Gosling

  •  to 
  • Needs a location

  • This is a virtual Meetup occuring at 5PM UK time. For help with your timezone calculation, refer to this.
    You can tune in to the session at http://virtualJUG.com
    If all fails, you can still access YouTube and IRC via previous means:
    1) Join the IRC channel - Ask questions, chat, discuss 

    2) View the live stream on YouTube
    Java and the Wave Glider with James Gosling
    Abstract tba
    Speaker: James Gosling
    James Gosling is the founder of Java and CTO at Liquid Robotics. 


#tip #mongo #limit


Interesting thing with mongo quering
Do you know result of db.myCollection.find().limit(0)?
It will be the same to db.myCollection.find() and return everything from collection
What about such thing db.myCollection.find().limit(-12)? Will it work at all?
Yes It will return the same to db.myCollection.find().limit(+12)

пʼятниця, 9 січня 2015 р.

#tip #java


If you are not 100% sure prefer String.valueOf(value) over new String(value).

Inside valueOf method we have check on null so that you'll never get NPE



середа, 31 грудня 2014 р.

Replacing Throwing Exceptions with Notification in Validations


Martin Fowler виклав цікаву (принаймні для мене) статтю.
Ідея така що коли пишеш валідатори потрібно не викидати ексепшини, а робити список повідомлень.
Тобто замінити ось такий код
class BookingRequest…
  public void check() {
     if (date == null) throw new IllegalArgumentException("date is missing");
     LocalDate parsedDate;
     try {
       parsedDate = LocalDate.parse(date);
     }
     catch (DateTimeParseException e) {
       throw new IllegalArgumentException("Invalid format for date", e);
     }
     if (parsedDate.isBefore(LocalDate.now())) throw new IllegalArgumentException("date cannot be before today");
     if (numberOfSeats == null) throw new IllegalArgumentException("number of seats cannot be null");
     if (numberOfSeats < 1) throw new IllegalArgumentException("number of seats must be positive");
   }


на


class BookingRequest…
  private void validateNumberOfSeats(Notification note) {
    if (numberOfSeats == null) {
      note.addError("number of seats cannot be null");
      return;
    }
    if (numberOfSeats < 1) note.addError("number of seats must be positive");
  }
Оскільки в моєму поточному проекті багато перевірок, думаю варто спробувати такий підхід

середа, 24 грудня 2014 р.

Oracle Confirms New Java 9 Features


The new set of JCPs announced are:
  1. JEP 158: Unified JVM Logging — Introduces a common component logging system.
  2. JEP 165: Compiler Control — Improves control of JVM compiles through a new set of options.
  3. JEP 214: Remove GC Combinations Deprecated in JDK 8 — Maybe self-explanatory: it removes GC combinations from JDK8. 
  4. JEP 213: Milling Project Coin — Addresses some language changes in Project Coin to "smooth out the edges."
  5. JEP 219: Datagram Transport Layer Security (DTLS) — DTLS will be supported in Java 9.
  6. JEP 224: HTML5 Javadoc — Java 9 includes the javadoc tool for outputting HTML5.


субота, 20 грудня 2014 р.

пʼятниця, 5 грудня 2014 р.

JUG- 24 AKKurate AKKA


Наступного четверга 11 грудня о 19-00 відбудеться 24-тя зустріч Java User Group Lviv
Тема:  AKKurate AKKA
Доповідач: java/scala розробник компанії Eleks – Юрій Остапчук
Презентація торкнеться наступних питань:
- SCALAbility problem, Actor System / Java&Scala Actors
- Load-balancing, Supervision & Fault- Tolerance. Networking
- Some Patterns & Best Practices
- Note on 'reactiveness'











Вхід Вільний.
Щоб уникнути stack overflow, прошу зареєструватися ось тут.
Зустріч відбудеться у тренінг центрі компанії Eleks - за адресою  Наукова 7г (1-ий поверх) 



пʼятниця, 28 листопада 2014 р.