It's taken me years, but I finally got over import java.util.*;. First, I don't use an IDE. I know an IDE could manage my imports, but I'm not an IDE guy. So, for years I've managed my imports manually, or given up and done import java.util.* and felt guilty about it. Well, I'm over that, and I can give Groovy the credit. By default Groovy imports java.util.*. I've been using Groovy every day now for about a year and a half and the house is still standing, our code compiles, we haven't had name conflicts. Things work, and it's a lot easier.
I used to worry about name clashes and compilation speed, and other shiboleths spoken of around coder camp fires and in hushed tones. After all everyone "knows" that the * should be avoided. Well, I'm over it, import java.util.* is just fine with me. Now when I start a Java source file I almost always just add java.util.*.
java.util.* is one of the most frequently used packages in my code. I don't want to spend mental time managing imports, and no I'm not going to an IDE, at least not now. So, it's import java.util.*. Hey, I even do import javax.persistence.* from time to time now! Oh me oh my!
Recent comments
1 week 6 days ago
2 weeks 3 days ago
3 weeks 10 hours ago
3 weeks 6 days ago
4 weeks 2 days ago
4 weeks 2 days ago
5 weeks 38 min ago
8 weeks 1 day ago
8 weeks 6 days ago
8 weeks 6 days ago