Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
JsonBoa2998362dWe had the same problem once, made some admittedly messy but otherwise effective "jython pipe" that consumes full Java objects and yelds simpler versions of the same Java objects, thus making the following Java contracts&code much easier.
Python and Java don't have to be enemies. -
AlmondSauce16141361dIf you're just hacking together something quick and throwaway for the data, why use Java in the first place?
...or if this is for a system that's going to last, quit whining and adhere to those contracts so you don't get tripped up later. -
lorentz15133361dIf you can rely on it, it should have a getter. If it doesn't have a getter and you don't know why, it's probably because you can't rely on it. (Or because the person who wrote the class wasn't very familiar with Java).
-
lorentz15133361dBy the way, Java has a very old reflection system which should allow you to completely bypass visibility rules I think. Your coworkers will hate you for using it.
-
CaptainRant3584361d@AlmondSauce This is DevRant, where people rant. It's for an existing, overly complex system for what it is. This complexity is not needed. It's written by lazy devs who put together spaghetticode.
That's where my complaint was. -
vintprox5630361dReimplement the class from third-party package because the original is so stigmatized that even the most important data gets lost in `private`. Gonna love this! 😂
Related Rants
Dear Java, I don't care about your tight rules and patterns; I just want the data.
Do I want some values from some far, hidden-away objects? Oh no, I can't, because I must respect the OO contracts between those objects and interfaces and type safety and blah dee bla.
rant
java
strict
annoying