r/badcode • u/achillelambrughi • Dec 28 '21
java Just found this piece of code I wrote some years ago. Not automatically generated.
529
Upvotes
r/badcode • u/achillelambrughi • Dec 28 '21
5
u/manuelrurda Dec 28 '21
I'm just starting in JavaFX, is there another way to do this? Can you use arrays or loops in any way?
92
u/akuani Dec 28 '21
Ah... JavaFX. Remembered my college days.
61
u/1921453 Dec 28 '21
I also hate arrays
102
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 28 '21 edited Dec 29 '21
Image Transcription: Code
[The screenshot shows code from a file named
GameController.java, as follows:]I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
29
u/Stromovik Dec 28 '21
Liar !
You made the FXML in a SceneBuilder by drag and dropping and did not rename elelemnts. Then you generated controller from a fxml file.
2
u/owsei-was-taken Dec 28 '21
pane 0_0
1
u/MrHyderion Dec 29 '21
My God, it's full of labels.
1
u/Prom3th3an Dec 31 '21
At least your annotation has the right sentiment about XML. F it.
0
u/[deleted] Dec 28 '21
[deleted] — view deleted comment