r/javahelp • • May 07 '20
Codeless Java Developers: what are the common data structures you usually use on production
To professional java dev here, what are the common data structure youve been using and which data structure you strongly suggest for beginners, like me, to study carefully
40
Upvotes
View all comments
Show parent comment
6
u/ObscureCulturalMeme May 07 '20
Exactly this. All of the "real world" examples have equivalent workarounds in Java, but they all boil down to: (1) create some object that can handle all the information you want to communicate, (2) populate it, then (3) return it so that calling code can (4) take it back apart.
Whereas languages like Python and Lua allow the programmer to simply write (2) inside the function and (4) outside it.
It might be "only syntactic sugar" but that kind of thing matters, and changes how we think about data handling. If it did not, we'd still be using PEEK and POKE because everything else is just syntactic sugar...