Skip to content

Split methods into logical units and change JVM usage#5

Open
kollstrom wants to merge 4 commits intosidhuparas:masterfrom
kollstrom:split
Open

Split methods into logical units and change JVM usage#5
kollstrom wants to merge 4 commits intosidhuparas:masterfrom
kollstrom:split

Conversation

@kollstrom
Copy link
Copy Markdown

@kollstrom kollstrom commented Oct 30, 2019

The one file for the library was getting big. I think it is easier to find what you're looking for if functionality is grouped into smaller files, especially when the library is getting bigger as it probably will. Hopefully a split like this will make it easier to navigate.

I also added JVM notations so that the usage from Java becomes SimpleDate.toDateStandard(date) instead of SimpleDateKt.toDateStandard(date). The Kt postfix is now removed.

Would love feedback on how to improve or discuss why this doesn't make sense.

I also remove the out-commented printline()s. Looks like a test suite to me, and maybe we should create tests instead?

Kotlin project files should be in a folder named kotlin, not java
The mono file was getting too big.
The methods were split into these logical units:
- Date
- DateTime
- Day
- Time
Previously Java users would write SimpleDateKt.toDateTimeStandard(new Date()).
This commit removes the Kt postfix of the generated class name.
The print lines looks like something that maybe should
be moved to unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant