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 […]
VirtualJUG: meetup with James Gosling
Java and the Wave Glider with James Gosling Tell a friend Share Thursday, January 22, 2015 5:00 PM to 6:00 PM 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 [...]
#tip #mongo #limit
Interesting thing with mongo queringDo you know result of db.myCollection.find().limit(0)?It will be the same to db.myCollection.find() and return everything from collectionWhat 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)
#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
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 = [...]
Oracle Confirms New Java 9 Features
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
Цікава стаття про Message Processing With Spring Integration http://java.dzone.com/articles/message-processing-spring