[ 
https://issues.apache.org/jira/browse/TEXT-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15764980#comment-15764980
 ] 

Duncan Jones commented on TEXT-34:
----------------------------------

I'm still not completely sold on the {{withDigits()}} convenience method, 
although I can understand where you're coming from. My concern lies in the fact 
that it's not particularly scalable and also doesn't intrinsically make it 
clear what happens when you chain them together.

Would {{withDigits().withNumbers()}} give you just numbers or would they 
combine to be alphanumeric? How many more of these would we want/need to have?

Maybe I can find a way to draw more attention to a series of built-in 
predicates. Nicer naming might help, I guess {{DIGIT_PREDICATE}} is a bit 
unwieldy.

To some extent, I don't have a whole lot of sympathy for people who explore an 
API using auto-complete rather than reading the documentation :-)

> Add class to generate random strings
> ------------------------------------
>
>                 Key: TEXT-34
>                 URL: https://issues.apache.org/jira/browse/TEXT-34
>             Project: Commons Text
>          Issue Type: New Feature
>            Reporter: Duncan Jones
>            Assignee: Duncan Jones
>
> The {{RandomStringUtils}} class will be deprecated in Commons Lang and reborn 
> in Commons Text.
> Because the original class has some complicated parameters and potentially 
> unnecessary capabilities, I'll simplify as I move it across. I'll also ensure 
> the class plays nicely with Unicode characters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to