Not being a java dev or even knowing java I've been given 2k lines of uncommented code that I did not write to own. It lives in a SaaS solution. The method that's called is passed multiple SQL statements for tables that do not exist locally as well as a flat file of employee information. I do not have a development workspace where I can setup temp tables for testing nor would I really be able to without being able to setup a mini SaaS product. Pushing code up to the SaaS solution and a test run after any changes takes about 4 hours. Having never used Eclipse or any other java IDE I have no idea how I can step through this code to see what methods are actually being used. There are methods in different classes with the same name, some are called, some are literally example code the vendor threw in there from their KBs which I know are not used. I need to get familiarity with Eclipse before I start to modify this, and using "Control + H" on methods is making my eyes bleed. I know when compiling the Jar if I delete the wrong method or class it'll let me know, but I want to approach it in the inverse so I can get these 2k lines of code down to a more manageable 800 or so. I guess what I'm looking for is a good Eclipse primer and the OP is like 14 years old.
|
|
# ¿ Feb 7, 2024 13:54 |
|
|
# ¿ May 9, 2024 19:52 |
What if, due to not having local class dependencies, I could never effectively get an actual local run in the IDE? Seems like I'll need to cut and compile and test I was hoping I could say call com.vendor.foo.impla(bar) and just run through the classes that enumerates through. Not an actual test case, just sorta how problems will display if I axe the wrong method or class. An unused code plugin gave nada. com.vendor.foo is not a public library. I'll hunt for some docs but I can't even find documentation to determine environmental variables or subdomains where the code is running to solve for hardcoded dev vs prod variables (lmao it's worse than that, hard coded domains etc in code). Submarine Sandpaper fucked around with this message at 15:53 on Feb 7, 2024 |
|
# ¿ Feb 7, 2024 15:48 |
CmdrRiker posted:I am very sorry, but what you are describing is a horrible nightmare of programming that I would never wish on another developer. I told my boss that a mid level engineer cannot be expected to fix this, so they promoted me So now I'll be taking your approach, I think I can leave the current integration in place and build net new.
|
|
# ¿ Apr 29, 2024 23:43 |
I hope those bugs will at least be my friend vs guessing which near identical method is actually used vs copypasta from documentation or a different client.
|
|
# ¿ Apr 30, 2024 00:14 |