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)
JUG Lviv
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
JUG Lviv
Martin Fowler виклав цікаву (принаймні для мене) статтю.Ідея така що коли пишеш валідатори потрібно не викидати ексепшини, а робити список повідомлень.Тобто замінити ось такий код class BookingRequest… public void check() { if (date == null) throw new IllegalArgumentException("date is missing"); LocalDate parsedDate; try { parsedDate = [...]
JUG Lviv
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: [...]
juglviv
Цікава стаття про Message Processing With Spring Integration http://java.dzone.com/articles/message-processing-spring
juglviv
Наступного четверга 11 грудня о 19-00 відбудеться 24-тя зустріч Java User Group Lviv Тема: AKKurate AKKA Доповідач: java/scala розробник компанії Eleks – Юрій Остапчук Презентація торкнеться наступних питань: – SCALAbility problem, Actor System / Java&Scala Actors – Load-balancing, Supervision & Fault- [...]
juglviv
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 […]
juglviv