Re: Should Duration be deprecated?
you're thinking of windows. Martijn Dashorst wrote: On Tue, Jan 26, 2010 at 10:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i thought they were all stored as electrons My vote goes to Umpalumpa's shifting miniature pumpkins on scales Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27339042.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Should Duration be deprecated?
While we're on the subject of 1's and 0's: Did you know this? There are only 10 types of people in the world: Those who understand binary, and those who don't. Back in my day we didn't need Tapestry, or Wicket or WebObjects, or even Servlets, or for that matter Java! We just coded in plain assembly language. And before that we had to just type in 1's and 0's. Sometimes we didn't even have 1's. I once had to code for an entire month, barefoot, in the dead of winter, using just 0's... but you didn't hear me complaining. Regards, Chris Colman Step Ahead Software http://stepaheadsoftware.com you're thinking of windows. Martijn Dashorst wrote: On Tue, Jan 26, 2010 at 10:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i thought they were all stored as electrons My vote goes to Umpalumpa's shifting miniature pumpkins on scales Martijn -- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
My keyboard on has 2 keys: 0 and 1. Thats all i need when i code :) NM On Wed, Jan 27, 2010 at 10:32 AM, Chris Colman chr...@stepaheadsoftware.com wrote: While we're on the subject of 1's and 0's: Did you know this? There are only 10 types of people in the world: Those who understand binary, and those who don't. Back in my day we didn't need Tapestry, or Wicket or WebObjects, or even Servlets, or for that matter Java! We just coded in plain assembly language. And before that we had to just type in 1's and 0's. Sometimes we didn't even have 1's. I once had to code for an entire month, barefoot, in the dead of winter, using just 0's... but you didn't hear me complaining. Regards, Chris Colman Step Ahead Software http://stepaheadsoftware.com you're thinking of windows. Martijn Dashorst wrote: On Tue, Jan 26, 2010 at 10:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i thought they were all stored as electrons My vote goes to Umpalumpa's shifting miniature pumpkins on scales Martijn -- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Should Duration be deprecated?
I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean
Re: Should Duration be deprecated?
java.util.concurrent.TimeUnit only covers units from nanos to seconds (in java 1.5, that is) So before wicket moves to java 1.6 we probably have a 'no go' here... On Tue, Jan 26, 2010 at 3:42 PM, Objelean Alex alex.objel...@gmail.com wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
Hej, 2010/1/26 Objelean Alex alex.objel...@gmail.com: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? If I am correct TimeUnit doesn't store a duration, it is used for informing about the interpretation of a value and helps converting it. Hej då Hauke Ingmar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
TimeUnit is icky and storing time values in primitive types is a bad idea. Alexandru Objelean wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
All data in Java is ultimately stored as some sort of primitive type. On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: TimeUnit is icky and storing time values in primitive types is a bad idea. Alexandru Objelean wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
i thought they were all stored as electrons -igor On Tue, Jan 26, 2010 at 12:00 PM, James Carman jcar...@carmanconsulting.com wrote: All data in Java is ultimately stored as some sort of primitive type. On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: TimeUnit is icky and storing time values in primitive types is a bad idea. Alexandru Objelean wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
... touche? :) On Tue, Jan 26, 2010 at 2:00 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: i thought they were all stored as electrons -igor On Tue, Jan 26, 2010 at 12:00 PM, James Carman jcar...@carmanconsulting.com wrote: All data in Java is ultimately stored as some sort of primitive type. On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: TimeUnit is icky and storing time values in primitive types is a bad idea. Alexandru Objelean wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
Yeah - and although I haven't confirmed it myself, I have been told that all dates are actually stored as 0's and 1's - and that must be why there was such a fuss in 2000 - too many zeroes and not enough ones - or something like that. :) -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jan 26, 2010 at 2:00 PM, James Carman jcar...@carmanconsulting.comwrote: All data in Java is ultimately stored as some sort of primitive type. On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: TimeUnit is icky and storing time values in primitive types is a bad idea. Alexandru Objelean wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
There is a difference between MILLISECONDS.toSeconds(duration) and duration.toSeconds() As for all data being stored as primitives, sometimes being able to access it on higher level can be kinda nice... -Matej On Tue, Jan 26, 2010 at 9:00 PM, James Carman jcar...@carmanconsulting.com wrote: All data in Java is ultimately stored as some sort of primitive type. On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: TimeUnit is icky and storing time values in primitive types is a bad idea. Alexandru Objelean wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
I was misinformed. I stand corrected! :) On Tue, Jan 26, 2010 at 4:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i thought they were all stored as electrons -igor On Tue, Jan 26, 2010 at 12:00 PM, James Carman jcar...@carmanconsulting.com wrote: All data in Java is ultimately stored as some sort of primitive type. On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: TimeUnit is icky and storing time values in primitive types is a bad idea. Alexandru Objelean wrote: I was wondering why would wicket need Duration class as long as java provides a similar TimeUnit. Maybe it would be a good idea to deprecate this class encourage usage of TimeUnit? Alex Objelean -- View this message in context: http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Should Duration be deprecated?
On Tue, Jan 26, 2010 at 10:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i thought they were all stored as electrons My vote goes to Umpalumpa's shifting miniature pumpkins on scales Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org