#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
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
Martin Fowler виклав цікаву (принаймні для мене) статтю.Ідея така що коли пишеш валідатори потрібно не викидати ексепшини, а робити список повідомлень.Тобто замінити ось такий код class BookingRequest… public void check() { if (date == null) throw new IllegalArgumentException("date is missing"); LocalDate parsedDate; try { parsedDate = [...]
The new set of JCPs announced are: JEP 158: Unified JVM Logging — Introduces a common component logging system. JEP 165: Compiler Control — Improves control of JVM compiles through a new set of options. JEP 214: Remove GC Combinations Deprecated in JDK 8 — Maybe self-explanatory: it removes GC combinations from JDK8. JEP 213: [...]
Цікава стаття про Message Processing With Spring Integration http://java.dzone.com/articles/message-processing-spring
Наступного четверга 11 грудня о 19-00 відбудеться 24-тя зустріч Java User Group Lviv Тема: AKKurate AKKA Доповідач: java/scala розробник компанії Eleks – Юрій Остапчук Презентація торкнеться наступних питань: – SCALAbility problem, Actor System / Java&Scala Actors – Load-balancing, Supervision & Fault- [...]
10 Things You Didn’t Know About Java So, you’ve been working with Java since the very beginning? Remember the days when it was called “Oak”, when OO was still a hot topic, when C++ folks thought that Java had no chance, when Applets were still a thing? I bet that you didn’t know at least half […]
Цікава програмка, яка графічно описує як працює Concurrency в Java:http://sourceforge.net/projects/javaconcurrenta/?source=directory