Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split methods into logical units and change JVM usage #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kollstrom
Copy link

@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