Translate

вівторок, 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