Sorting something myself is one of the least useful things I learned. I almost never use it and even if I do, it’s almost always just natural order and thus the default implementation.
Fetching something from a database gives you a good overview over Datastructures and object oriented programming.
I agree that it’s not the first thing you should do, but it’s definitely solid advice
Yeah, but he wants to learn, and to me there’s nothing most useful than struggle a little bit and see a result at the end. This basic thing will make him learn about objects, conditionals, loops, etc. and also he will have something that definitely will have to improve.
I think that a very good skill is to have the ability to split something big into smaller parts, for this scenario where he needs to connect to a db and lets say he doesn't understand how if() works, well, focus on that make a few examples and then use it and so on.
3
u/Riattatouille Mar 11 '24
Connect to a sql db using jdbc and retrieve something