- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Karel++: Difference between revisions
imported>Nignog No edit summary |
imported>Nignog No edit summary |
||
Line 36: | Line 36: | ||
<b style="color:#2E8B57;font-size:103%;">boolean</b> butthurt = <span style="color:#FF00FF">true</span>; | <b style="color:#2E8B57;font-size:103%;">boolean</b> butthurt = <span style="color:#FF00FF">true</span>; | ||
[[File: | [[File:Richardpattis.jpg|thumb| See me after class] | ||
[[File:Karel_the_robot.png|thumb| This is what Karel has been reduced to because of your bullshit]] | [[File:Karel_the_robot.png|thumb| This is what Karel has been reduced to because of your bullshit]] | ||
Revision as of 04:10, 29 December 2012
Karel++ is part of a series on Programming. [Enter the Matrix] | |
ADA • Assembly • C • C++ • COBOL • Debug • DOS • Erlang • Error • Fdisk • Fortran • Integer • Java • LOLCode • Machine Code • Matlab • MIRC Script • MUMPS • Open Source • Perl • PHP • Programming language • Python • QBASIC • Ruby on Rails • Scratch • SSH • Visual Basic
Firefox XPS IRC Attack • Safari XPS Attack • Sandworm
Bill Gates • Linus Torvalds • Weev • Goatse Security • Terry Davis • Theo de Raadt
Operating system • Warez • Notepad • Is not a bug, it's a feature • Database Error |
— Any programming teacher |
Karel++, or Karel for the mentally incompetent is a handy-dandy fucking retarded programming language. In its most basic state (by basic we mean basic ) Karel is a Java library intended for teaching inner city youths how to program a little robot to run around and shit on street corners all day. However, Karel comes in a slew of other shitty flavors including:
Karel's world
Karel the Robot lives in a world comprised of beepers, neutronium walls, and robots. The beepers, much like shit, are black dots that are subject to some schoolyard lore. Allegedly, you can only detect beepers when you are standing on it, making them a horrible nuisance for just about everybody. Beepers can be picked up, put in a beeper bag and shat back onto the ground given the command putBeeper. Somehow, regardless of all of Karel's other inabilities, he is able to carry and infinite amount of beepers.
History of Karel
Karel the robot was created by Richard E. Pattis in the 80's. Being that everything from that joke of an 'era' is an atrocity, Karel fit right in. Regardless of its simplicity, the first victims of Karel's wrath were the washed up yuppies of Stanford University.
- Fun Fact niggers! It's called Karel, because Karel Čapek, some czechfag, invented the robot
Due to the ever so charming Mr. Pattis' love for pun and games and showing off he wasn't a genuine autist enjoyed making pop-culture references, almost like the meme-spouting /b/tards and redditors. For example, the Ruby edition of Karel was titled Karel Tuesdays . This man needs to talk to a talent coordinator, because damn that was fine. For python it was Monty Karel, and Java, being the dumbfuck he is, just made it: Karel learns Java. Because ya'know, keeping trends is waaay to mainstream nowadays. Soon, the monstrosity known as Karel the Robot grew to cult-like proportions. But how did Karel grow to an insurmountable pile of shit? Java. [[File:RichardPattis.png|thumb| See me after class]
Karel's Java tendencies
Because Karel was intended for simplicity, it was designed with Java, for Java, and as a Java operator. It all starts with Karel's tiny list of abilities, as they are commonly dubbed. They are, and are severely limited to:
turnLeft( ); move( ); pickBeeper( ); putBeeper( ); turnOff( );
Booleans, AKA 'tests'
public boolean butthurt;
butthurt = true;
or all at once:
boolean butthurt = true; [[File:Richardpattis.jpg|thumb| See me after class]
Logical operators
Logical operators are like an extension of comparison operators. The logical operators are:
&& and
|| or
Example: a && b and The result is true only if both a and b are true.
a || b or The result is true if either a or b is true.
You can also use the not operator. !a not true if a is false and false if a is true.
nigger you put code here
This will print the statement because the or operator only requires one of the conditions to be true.