jugLviv

Meta


Recent Posts


Categories


Tags


Archives



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 [...]

JUG LvivJUG Lviv

#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)

JUG LvivJUG Lviv

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 = [...]

JUG LvivJUG Lviv