Drenius
|
 |
«
Reply #30 - Posted
2014-03-19 20:38:32 » |
|
Or a short! (no idea about English, but it is senseful in German...)
|
|
|
|
Riven
|
 |
«
Reply #31 - Posted
2014-03-19 20:55:06 » |
|
Can you serve me a drink while I shift in this char? - Sure, but it might overflow a bit. 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
Drenius
|
 |
«
Reply #32 - Posted
2014-03-19 21:01:49 » |
|
Let the medals begin...
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Riven
|
 |
«
Reply #33 - Posted
2014-03-19 21:02:51 » |
|
I'm hopeless. I'd much rather feed this thread to the chitchat monster, than to get my medals from this kind of crap 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
Drenius
|
 |
«
Reply #34 - Posted
2014-03-19 21:03:21 » |
|
No, its a good thread.
|
|
|
|
saucymeatman
|
 |
«
Reply #35 - Posted
2014-03-19 21:29:21 » |
|
I'm hopeless. I'd much rather feed this thread to the chitchat monster, than to get my medals from this kind of crap  Well spoken, +1
|
|
|
|
theagentd
|
 |
«
Reply #36 - Posted
2014-03-20 00:29:49 » |
|
It's okay, Riven. I can just hold all those medals for you if they're so heavy. 
|
Myomyomyo.
|
|
|
DrHalfway
|
 |
«
Reply #37 - Posted
2014-03-20 02:39:07 » |
|
99 little bugs in the code 99 bugs in the code Fix one bug, compile it again 101 little bugs in the code.
101 little bugs in the code 101 bugs in the code Fix one bug, compile it again, 103 little bugs in the code.
|
|
|
|
Gibbo3771
|
 |
«
Reply #38 - Posted
2014-03-20 07:34:14 » |
|
2 bytes walk into a bar, the bartender says, "what can I get you guys?".
"Make us a double!".
Wouldn't that be two floats? Wouldn't sound right lol
|
"This code works flawlessly first time and exactly how I wanted it" Said no programmer ever
|
|
|
Roquen
|
 |
«
Reply #39 - Posted
2014-03-20 08:45:48 » |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| public void printJokes() { java.util.Random rng = java.util.concurrent.ThreadLocalRandom.current(); for(Book book : books) { String title = book.title.toLowerCase(); int ha = 0; if (title.contains("best")) ha++; if (title.contains("modular")) ha++; if (title.contains("teach yourself")) ha++; if (title.contains("learn to")) ha++; if (title.contains("agile")) ha++; if (title.contains("extreme")) ha++; if (title.contains("wicked")) ha += 2; if (title.contains("cool")) ha += 2; if (title.contains("hardcore")) ha += 2; if (title.contains("expert")) ha += 2; if (title.contains("killer")) ha += 2; if (title.contains("awesome")) ha += 3; if (title.contains("days")) ha += 7; if (title.contains("weeks")) ha += 6; if (title.contains("like a pro")) ha += 2; if (title.contains("by example")) ha++; if (title.contains("with examples")) ha++; if (title.contains("software engineering")) ha++; if (title.contains("patterns")) ha++; if (ha != 0) { int first = ha <= 3 ? ha : ha-3; int last = ha-first; String joke = book.title + "? "; do { while(first != 0) { joke += "ha"; if (rng.nextBoolean()) joke += "! "; first--; } joke += "!"; if (last != 0) { joke += " Stop! You're killing me!"; first = last; last = 0; } else break; } while(true); System.out.println(joke); } } } |
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Oskuro
|
 |
«
Reply #40 - Posted
2014-03-20 14:51:41 » |
|
A Java Programmer, a C++ Programmer and a Pascal Programmer walk into a bar.
|
|
|
|
Riven
|
 |
«
Reply #41 - Posted
2014-03-20 18:52:41 » |
|
A Java Programmer, a C++ Programmer and a Pascal Programmer walk into a bar.
It's funny because it's the JCP in action. * Riven runs
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
|
JVallius
|
 |
«
Reply #43 - Posted
2014-03-24 11:43:06 » |
|
|
|
|
|
matheus23
|
 |
«
Reply #44 - Posted
2014-03-25 17:55:42 » |
|
A blind man is standing at the traffic light. Next to him there's a programmer. The blind man asks the programmer: "Is the traffic light red, yellow or green?" (We have those colors in germany/europe). The programmer answers "Yes.". 
|
|
|
|
SHC
|
 |
«
Reply #45 - Posted
2014-03-26 05:36:16 » |
|
|
|
|
|
SHC
|
 |
«
Reply #46 - Posted
2014-03-26 05:38:44 » |
|
A man flying in a hot air balloon suddenly realizes he’s lost. He reduces height and spots a man down below. He lowers the balloon further and shouts to get directions, "Excuse me, can you tell me where I am?"
The man below says: "Yes. You're in a hot air balloon, hovering 30 feet above this field."
"You must work in Information Technology," says the balloonist.
"I do" replies the man. "How did you know?"
"Well," says the balloonist, "everything you have told me is technically correct, but It's of no use to anyone."
The man below replies, "You must work in management."
"I do," replies the balloonist, "But how'd you know?"*
"Well", says the man, "you don’t know where you are or where you’re going, but you expect me to be able to help. You’re in the same position you were before we met, but now it’s my fault."
|
|
|
|
SHC
|
 |
«
Reply #47 - Posted
2014-03-26 05:53:00 » |
|
1 2 3 4 5 6 7 8 9 10 11 12
| public class Foo { public static void bar() { System.out.println("Hello World!"); }
public static void main(String[] args) { Foo.bar(); } } |
A foo walks into a bar, takes a look around and says "Hello World!"
|
|
|
|
Drenius
|
 |
«
Reply #48 - Posted
2014-03-27 21:07:09 » |
|
A foo walks into a bar, takes a look around and says "Hello World!" Answer: "0"
|
|
|
|
kpars
|
 |
«
Reply #49 - Posted
2014-03-28 07:39:09 » |
|
I made this gem earlier:  - Jev
|
|
|
|
jonjava
|
 |
«
Reply #50 - Posted
2014-04-01 19:01:51 » |
|
|
|
|
|
SHC
|
 |
«
Reply #51 - Posted
2014-04-30 16:08:25 » |
|
"Have you heard about the object-oriented way to become wealthy?" "No..." "Inheritance."
|
|
|
|
Riven
|
 |
«
Reply #52 - Posted
2014-04-30 20:12:03 » |
|
On that note, I dare every programmer here to look in the mirror and tell me your reflection isn't ugly. (and still you love modeling) 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
BurntPizza
|
 |
«
Reply #53 - Posted
2014-04-30 21:11:17 » |
|
On that note, I dare every programmer here to look in the mirror and tell me your reflection isn't ugly.
1 2 3 4 5 6
| fname.setAccessible(true); int mods = fname.getModifiers(); Field modF = fname.getClass().getDeclaredField("modifiers"); mods = mods & ~Modifier.FINAL; modF.setAccessible(true); modF.setInt(fname, mods); |
Yep, damn ugly.
|
|
|
|
Slyth2727
|
 |
«
Reply #54 - Posted
2014-05-05 11:15:12 » |
|
1 2 3
| public void toMyMadness() { beCrazy(); } |
|
|
|
|
theagentd
|
 |
«
Reply #55 - Posted
2014-05-05 12:10:49 » |
|
On that note, I dare every programmer here to look in the mirror and tell me your reflection isn't ugly.
I once wrote a simple script parser for a visual novel engine thingy, and I used reflection to map script called functions to Java functions. The only ugly part was that I had to change all function arguments that had primitive types to use wrapper classes instead (int input ---> Integer input). That was IMHO one of the coolest things I've ever done. >_>
|
Myomyomyo.
|
|
|
ags1
|
 |
«
Reply #56 - Posted
2014-05-05 22:05:05 » |
|
public void mirror(FacialConfiguration face) throws CrackedMirrorException { if (face.isProgrammer() && !face.isAgs()) { throw new CrackedMirrorException(); } throw new VanityOverflowException(); //unchecked }
|
|
|
|
BurntPizza
|
 |
«
Reply #57 - Posted
2014-05-05 22:07:09 » |
|
public void mirror(FacialConfiguration face) throws CrackedMirrorException { if (face.isProgrammer() && !face.isAgs()) { throw new CrackedMirrorException(); } throw new VanityOverflowException(); //unchecked }
Your vanity goes unchecked!
|
|
|
|
DarkCart
|
 |
«
Reply #58 - Posted
2014-05-05 22:10:44 » |
|
A student hands his programming task to the teacher. The teacher says "I'm (EDIT) 8K in and have no idea what you're saying"
|
The darkest of carts.
|
|
|
Riven
|
 |
«
Reply #59 - Posted
2014-05-05 22:19:22 » |
|
The teacher says "I'm 8K in and have no idea what you're saying"
There, FTFY. 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
|