r/javahelp • u/Ashamed_Specialist • Apr 29 '19
Java internship but not ready?
My internship starts in a few weeks and I'll be working with Java most likely, but I don't know what else I'll be using. I've done a little bit of coding in Java (syntax stuff like hash tables, loops, some recursion, the 101's, etc), but nothing really else. What should I learn in the next few weeks so I can hit the ground running and maximize my initial velocity? I don't want to lag behind too much because I heard it goes by fast and I want to do really well
16
Upvotes
2
u/thenameunforgettable Apr 30 '19
Build pipelines. By that I mean that most engineering projects are about transforming data - mapping and reducing. I don't mean Hadoop. I mean you'll have a data set and you'll want to create a summary of that data. The best way to do this in Java is by using the InputStreams and OutputStreams. Build them together to work in conjunction, and it becomes easy to stream large amounts of data through your system.
Look at Google Guava. It's a really helpful library with a lot of little things that do some heavy lifting.
Try to never create threads directly. Use a thread pool. The number of threads you use should usually be equal to the number of cores on the machine if you're CPU bound. If you're network bound, create a pool and a thread safe queue. Put the work you need to do into the queue and have the threads poll the queue. Alternatively use Netty but it's super hard to write a high quality async network client.