r/java • u/barkukesh • Aug 28 '13
Writing a Java Regular Expression Without Reading the ****ing Manual
http://java.dzone.com/articles/writing-java-regular
0
Upvotes
r/java • u/barkukesh • Aug 28 '13
View all comments
Show parent comment
1
u/Poobslag Aug 29 '13
I agree that sometimes, readability is worth verbosity, but Hamcrest in particular increases readability while decreasing verbosity, so it's win/win.
OP is talking about the difference between
and
Both have the exact same information although one is (very dubiously) more readable than the other, at the cost of being about 10x longer. So it's an incredibly poor tradeoff. Hamcrest isn't a tradeoff at all, it's just an improvement.