not an integrated drive electronics cable! no! Some piece of shit software to help you with another shitty software! Mr. Doc once said that Java was a piece of shit. I wouldn't be saying this but i accidentally bought a shitty google phone thinking i was a hipster. yeah. anyways, i found over the last few weeks of punch my hands through drywall that Java is a true piece of slowly burning piss.
1. why are there so many repeated lines in Java? I don't get it.. coming from a company that made data de-duplication that's pretty fucking lame. I feel like I have typed the word "return" 508993874 times in the last 3 weeks.
2. why is it so bloated? (as part of #1.) to make something object oriented + portable and optimized across tons of low hardware requirements, .. doesn't make any sense to me.. why not STAY WITH FUCKING C PROGRAMMING? static? what?
3. why is there a method of using XML files which are converted to byte code during compilation for laying out the user interfaces? What the fuck?
What if I didn't know XML already? "Yeah, uhh, you need to learn another language too cos our's is too lame to do this without writing 50 extra lines of code per Activity." I think Sun is infatuated with XML.
4. IDE - all of the ones I have used in Windows are a fucking joke. Eclipse for instance, why does it seem that after developing for about 1 hour or so it starts to play fucking games? Like it had a bit too much CPU time and now it's delirious? what the fuck, dude, the people who created that need fucking drawn and quartered in my home. in my basement. What's cute is when my code compiles fine, no errors in the IDE, yet when i install the app on my phone I get a FORCE CLOSE button. Yeah, good. Thanks IDE. I code in nano and vi. period.
5. SDK's. Is there really a need? Think about it.. Google offers SDK's for there platforms, yet it requires like 30 lines of code to play an mp3 sound when you press a button. SDK... (S)o you (D)on't have to (K)now.
6. The life of Java.. how has it lived so long you say? well, only the good die young?
Once I release my applications (in a few days or so) for Android or Mongoloid whatever it's called, I am never touching Java again in my life. Which sucks because I just learned that Amazon is releasing YET ANOTHER SDK FOR THE KINDLE. YAY. JAVAA>A.
FUCK YOU JAVA.
you caved my poor lil head in...
processors are faster, intepreters are faster. everything is just getting faster and more efficient in so many languages now like php/perl/ruby/python.. why hasn't java gotten any better?
Here's a cute example from Sun's prestigious website about their glorified mobile phone language:
class WhileDemo {
public static void main(String[] args){
int count = 1;
while (count < 11) {
System.out.println("Count is: " + count);
count++;
}
}
}
That's a while Loop. watch this, here is the same code in Perl:
while ($count < 11) {
print "count is" . $count . "\n";
$count++;
}
Now one may think that Perl does all the work, magically, that Java compilers dont, so I am a dumb coder since I type less. Am i? I type less and do the same job. "public static void main" ? what the fuck is that a hipster beat poem?
I can't do this anymore. My life is now in shambles.
Here's a cool example of trying to make your phone vibrate:
So, vibration can be done within two lines of code !
Sample Activity:
Java:
public class AndroidVibrator extends Activity {
android.os.IVibratorService myVibratorService = null;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
// Receive the VibratorManagerService
myVibratorService = android.os.IVibratorService.Stub
.asInterface(ServiceManager.getService("vibrator"));
// Do a short (100ms) vibration.
try {
myVibratorService.vibrate(100);
} catch (DeadObjectException e) { }
}
}
Direct quote from that bone heads forum. First he creates the activity, then comes line 1:
android.os.IVibratorService myVibratorService = null;
That creates a variable needed by the vibrator service.
line 2:
myVibratorService = android.os.IVibratorService.Stub
.asInterface(ServiceManager.getService("vibrator"));
Yeah, that's actually 1 line in Java. We must excuse the code for being so bloated, and pretend. (it's 2.) That creates an object using something similar to libraries in C. why create an object? cos it only makes sense when you dont want to write 1's and 0's but you wanna be hip and go low level.
line 3,4,5: (wait? line 3? he says in two lines you make the phone vibrate..)
try {
myVibratorService.vibrate(100);
} catch (DeadObjectException e) { }
That just makes so much sense doesn't it? deadobjectexception e. Sounds like something windows would say to you when it closes an application for no apparent reason.
Well, 2 lines of code to a Java programmer actually means 5 (6 if you count the extremely long line that takes up two "lines") lines. (You don't need to be a mathematician to wear glasses i guess, thanks plusminus!) You really know why? It's because of the IDE. The IDE will add all kinds of shit to the program for you after you code. Yeah, you see your code look like a spell error in Word with a red squiggly underline, right click and it fixes the code for you.
cute huh? Another cool thing about IDE's is that if your mouse touches anything in the window, you get a big pop up explanation dialog that covers most of the code you want to read.
whoopsey! There's something called androidmanifest.xml that needs to be editted as well, you need to add aline into it to add "permission" to use the fucking sacred vibrating device...
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
what the flying fucking rats ass fuck turd?
Here's one that's fucking GOLDEN:
Eclipse IDE once more. You edit your XML file and ALL the lines get underlined with YELLOW fucking squigglies! you say "What the fuck am i doing? Why am I using this piece of garbage.. oh yeah Java is too MASSIVE to type out by hand." You exit Eclipse and go back into the application and guess what???
NO GRAMMAR ERRORS!! WOW! ALLZ I HAZ 2 DU IZ REZTART IT!!!/!/?/
I like when you add new resources to your workspace tree but the R.java file has no idea where they are. In the IDE you edit the R.java file and you get a pop up spam-like window saying "SUMN EDITTZ MEH R.JAVA FOILE, YE CUNT! SO EYEZ POOT IT BACK WHERE THA FAHK IT WAZ!" And that new resource folder (used in every tutorial every on internet universe, is never usable by your IDE.
cute.