Re: Possible bug in Calendar
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Thu, 13 Nov 2008 22:59:20 -0500
Harold Yarmouth wrote:
Arne Vajhøj wrote:Harold Yarmouth wrote:Arne Vajhøj wrote:Harold Yarmouth wrote:It is. And it belongs in the UI layer. Times should be something simple, like nanoseconds since the epoch, under the hood.
Which it also is in Java - the Date class.
But Java need something to match that with calendars - and it has.
There's a problem with this, though -- those deprecated Date constructors. How is someone supposed to get a Date from, say, numbers extracted from a time stamp in some text file in a natural way? Calendar.getInstance(), set(yy, mm, dd, h, m, s), getTime() runs into the problem that started this whole mess, and involves Calendar. Where is the simple, easy to use DateBuilder that does not have these problems?
Calendar.
Excessively complicated to use for the stated purpose. A boondoggle, really.
And why are you so dead set against the idea that adding one would be a good idea?
I am not. We already have it. Calendar.
Excessively complicated to use for the stated purpose. A boondoggle, really.
Almost everybody except you seems capable of using it.
And I really don't think Java API should be designed after
people like you that don't read the docs.
Oh - and it is not just PL - it is also BLL.
No. See an earlier post.
Of course it is.
No. See several fresh posts by me.
Almost all business has things that happen at a certain weekday, at
a certain day in month etc..
Policy object. Dependency injection. Need I repeat myself yet again?
The class still need to be there. It is irrelevant how it gets
instantiated.
Arne
.
- Follow-Ups:
- Re: Possible bug in Calendar
- From: Harold Yarmouth
- Re: Possible bug in Calendar
- References:
- Re: Possible bug in Calendar
- From: Harold Yarmouth
- Re: Possible bug in Calendar
- From: Arne Vajhøj
- Re: Possible bug in Calendar
- From: Harold Yarmouth
- Re: Possible bug in Calendar
- From: Arne Vajhøj
- Re: Possible bug in Calendar
- From: Harold Yarmouth
- Re: Possible bug in Calendar
- From: Arne Vajhøj
- Re: Possible bug in Calendar
- From: Harold Yarmouth
- Re: Possible bug in Calendar
- Prev by Date: Re: Possible bug in Calendar
- Next by Date: Re: Possible bug in Calendar
- Previous by thread: Re: Possible bug in Calendar
- Next by thread: Re: Possible bug in Calendar
- Index(es):
Relevant Pages
|