2024-11-15 π programmerhumor β RE: ReversalHatchery
Why did you even bring up AI?
IDEs have been able to generate equality functions for decades without AI.
Itβs kinda neat to have this defined directly in the language so that compilers can implement it, but creating equality function is so low effort that this doesnβt really seem like a big deal.
Like, you define the members in a class, then you tell your IDE to generate getters, constructor, equals, hashcode, etc all in like 5 seconds.
I like it, itβs nice when the language itself defines reasonable defaults for things, but realistically youβre saving yourself a few seconds of effort.
2024-11-16 ReversalHatchery β edited β 1π¬
I thought you were thinking an AI based code generator klike copilot) does it, when you said the IDE does it.
username checks out /s
2024-11-15 words_number β 1π¬
Isnβt it obvious? More code to skim, scroll over and maintain if something changes. If you add a struct field, your manual EQ implementation still compiles and seems to work but is wrong and [β¦]
Yeah but if the class changes you need to update everything, you got all that boilerplate taking up space for no real reason, etcβ¦
The Rust wayβs just a lot cleaner imo.
ββββ
ββββ