nstarlike / javautils Goto Github PK
View Code? Open in Web Editor NEWJava utilities used frequently
License: Apache License 2.0
Java utilities used frequently
License: Apache License 2.0
All most list in a web application need a pagination for performance. Calculation for a pagination is tedious boilderplate work. Thus, a pagination utility does help a development of web application.
We need features regarding ID. For now, as follows.
We sometimes need to get dates like today, yesterday and the dates before or after 1 month, 1 year, etc while we develop some applications. To get those dates is not that simple becuase the counts of the days of a month and a year are different. For example, the days of January is 31 and the days of April is 30. And when we calculate the days of February we need to consider leap year. If the year is leap year then the days will be 29 if not it will be 28. Lastly, we need to consider whether we want to include the basis date.
The following is the list for functionalities needed.
Go for it!
The getRandomID method of the IDUtils class of the nstarlike.javautils.credential package returns a random ID which are suffixed four random numbers. I feel not quite satisfied with this. I think we should make it better to get more relevant IDs with the input ID. But we have a limitation, for example we cannot include a huge dictionary. So I think we should just make some core funtionality with some sample data. After that, as changing the interface, we can use this functionality in production perfectly.
First of all we need some algorithm to get a relevant word or something.
And then we have two options for nominees.
First, we can use a Database system.
Secondly, we can use a file or files. (I think this is more proper.)
Good luck!
@BelleHan Do you have any idea of features? Feel free. :)
As the variables in the PasswordUtils class are not changed after defined, they need to be declared as final.
In web applications, a query string is appened to a link to list, view, write, update, etc pages. It's a little complicate logic.
When a query string exists in web page, query strings for each purpose needs to be generated based on the existent query string.
About the javautil package name, java is unnecessary.
Because this utilities will be only used in Java programs.
Change the javautil package name to just util.
If build method executed and prefix is null the query string results in prefixed one.
First, we need to learn Markdown. Check out the GitHub Docs. (https://docs.github.com/en/get-started/writing-on-github)
Second, what is the content going to be composed of? Let's refer to the README file of other projects.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.