i’ve probably ranted on this before, but it deserves it much, much worse.
okay, mr Hot Shot Java Teacher. You’ve taken your basic Java courses and maybe gotten your cert. Then how come YOU CANT REMEMBER SHIT ABOUT JAVA? You cant remember how long the basic data types are and I, with NO FORMER EXPERIENCE IN JAVA, am REMINDING you of size of basic data types throughout the course. Now that you’ve led me astray i cant even remember them myself.
now you’ve gotten me off to a bad start. you dont even remember if you can compare strings with “==”
dont even get me started on strings. STRINGS SHOULD BE OBJECTS OR THEY SHOULDNT BE. If strings are objects dont confuse the issue by assigning them with “=”. If they are objects, then HOW COME I CANT FUCKING OVERLOAD THE “=” OPERATOR FOR MY OTHER DAMN OBJECTS.
i’m redesigning a page to make sure the objects are destroyed at the end (they are, but my idiot boss doenst trust the JVM) and wrote a compare function(procedure, or whatever the Java Gods decided to call it) taking parameter STRING1 then comparing STRING1==“STRING”. if I send it the constant “STRING”, it works, if i send it a variable initialized to “STRING”, it fails.
THAT IS THE MOST INCONSISTENT PIECE OF CRAP LANGUAGE DESIGN I HAVE SEEN THIS SIDE OF THE 8.3 FILENAME LIMITATION. For consistencies sake, each constant string should be its own object, initiazed separately with its own address. And yes, i need to use equals(). But heres the catch: my wonderful VB-loving, bill gates jizz-catching, fake-hipster AOL-bashing Java instructor doesnt know Jack Chick about the fundamentals of the design of the equals() operation.
So I ask him “when you perform the equals() operation, by default, does it perform the == operation on all the consistituents of the object, or does it perform the == operation on the non-objects, and the equals() operation on the object?” and he DIDNT UNDERSTAND MY QUESTION.
Needless to say, as par for the course, the less useful case turned out to be true. Why would anyone want a default equals() operation that applied == to the member objects instead of recursively applying equals()? Was this language designed by Duns Scotus? Strom Thurmond? If i wanted to jump through hoops to write code, i’d program in assembly on a TRS-80 using a harmonica to send tones over a 20 baud modem. thank you very much.