r/java • • Apr 15 '15

Java reference in GTA V - Beautiful.

http://imgur.com/gallery/zQGfUnP/
314 Upvotes

60 comments sorted by

2

u/Lordmau5 Apr 16 '15

Just want to point out that /u/FridgeBoyLP found this beautiful store when we were playing Online together :)

2

u/FridgeBoyLP Apr 16 '15

Thanks for mentioning me, you didn't have to, but can you finaly come back online

2

u/UnspeakableEvil Apr 15 '15

Double espresso, Breakfast extending Meal, and...what? Can't make out the top two lines on the left hand side! milk.foam perhaps?

6

u/Lordmau5 Apr 15 '15

package java.cappucino;
import java.shot.milk.foam;
:P

16

u/jordaniac89 Apr 15 '15

import java.shot.milk.Foam;

Sorry, that bothers me.

0

u/Harha Apr 16 '15

I don't like having capitals as the first letter in my class's names. Am I a bad person now? :(

5

u/jrh3k5 Apr 16 '15

No, you're just in violation of common Java practices. :p

1

u/JAVA_USER Apr 18 '15

It's distracting to see two variable names side by side, and wonder why its not throwing an error, then only to realize that one of them was a class without proper naming conventions.

1

u/Harha Apr 18 '15

I use the hungarian notion for variable names so haven't had that happen to me. :P

1

u/JAVA_USER Apr 18 '15

if I saw someone writing String strPerson, I would take their keyboard away from them. Only joking. Do whatever you want.

1

u/Harha Apr 18 '15

Haha, that's not exactly what I do though, there's no sense in that.

String m_person, or s_person or g_person, depending on wheter it's a member, static or global variable, for example. And so on.

1

u/JAVA_USER Apr 19 '15

how do you handle polymorphism with hungarian notation?

1

u/Harha Apr 19 '15

If you mean extending classes into subclasses and so on, I don't really care if a member variable is a member of the superclass or the child class, etc. I still prefix it with m_, it would get ridiculous if I'd prefix subclass member variables with their own prefix and so on. It's fine like that, at least in my head and I mainly code for myself so it doesn't matter so much.

And after all, if you have an abstract class with member variables and make a class that extends it, all the private or public variables in the class you extended are going to be members of your child class even if you don't use them, so in that sense it doesn't really matter, just prefix them with m_.

→ More replies (0)

135

u/seanr8 Apr 15 '15

Awesome find but the return type of sandwich being void makes me so angry...

112

u/[deleted] Apr 15 '15

no way i'm getting coffee at a place whose sign doesn't even compile

26

u/Foolbird Apr 15 '15

I like how it would return 4 and not a sandwich object.

4

u/caltheon Apr 16 '15

maybe it's the price

8

u/[deleted] Apr 16 '15

Classic shitty legacy code, poorly named functions that don't do what you think they'd do

1

u/Jonno_FTW Apr 16 '15 edited Apr 16 '15

How does a void function return a number?

31

u/vecowski Apr 15 '15

Some python developer wrote that.

18

u/[deleted] Apr 15 '15

Or worse. PHP.

9

u/berlinbrown Apr 15 '15

Won't compile, crash.

Is that a bug we can report? hahah

5

u/edman3d Apr 15 '15

idk about angry but I came here to make a joke about that too

1

u/bj_christianson Apr 16 '15

Dang. Didn’t notice that because I was just getting upset at the lack of closing brace on the method.

2

u/metamatic Apr 28 '15

The closing brace is to the right of the door to the café.

1

u/Tevroc Apr 16 '15

The method also doesn't accept a parameter of type Currency :(

1

u/BinaryRockStar Apr 15 '15

Also there's no type specified for the variables.

10

u/lenois Apr 15 '15

They are declared as fields above

3

u/BinaryRockStar Apr 15 '15

Oh god how did I miss that?

-4

u/ChickenOfDoom Apr 15 '15

This is why I opened the comment thread. So I could upvote this comment that I knew would be here.

0

u/[deleted] Apr 16 '15

[deleted]

4

u/compdog Apr 16 '15

Call the food safety inspector!

0

u/[deleted] Apr 15 '15

[deleted]

5

u/zman0900 Apr 15 '15

The probably don't even sell sandwiches.

44

u/3pieceSuit Apr 15 '15

void method returning an int...

but other than that, pretty cool

29

u/idanh Apr 15 '15

yeah, those GTA programmers can't program eh?

14

u/DoktuhParadox Apr 15 '15

The modelers probably didn't check with the dev team.

6

u/[deleted] Apr 16 '15

One of the graphic artists just added "professional Java" to their resume.

9

u/caltheon Apr 16 '15

besides the MISSING CLOSING BRACE

3

u/[deleted] Apr 16 '15

Not missing. Look at the big yellow one below.

3

u/superdemongob Apr 16 '15

false. because that one matches with the other big yellow one on the left.

and even if they did intend that as the closing, there's still one too few.

regardless, i find this a charming and awesome inclusion.

8

u/MMistro Apr 16 '15

Must be lots of bugs in this coffee shop

24

u/JAVA_USER Apr 15 '15

I don't like that sandwich. Sandwich should be a class, and a builder pattern should be used to make it.

11

u/shadowdude777 Apr 16 '15

Are you kidding? You forgot about the AbstractSandwichFactoryDecoratorVisitorFactory

1

u/JAVA_USER Apr 18 '15

perhaps the SimpleBeanFactoryAwareAspectInstanceFactory

7

u/Black_Monkey Apr 16 '15

Someone should report this as a bug

2

u/king_of_the_universe Apr 16 '15

And they should address the texture in one of the patches. :D

6

u/vplatt Apr 15 '15

Anyone see the Smalltalk reference on the radio LCD? Looks like there was some passive aggressive spat going on there between devs.

1

u/the_original_fuckup Apr 16 '15

Nice catch. One of my professors loves small talk. I'll have to show this to him

1

u/caustiq Apr 16 '15

Which radio? Screenshot?

2

u/vplatt Apr 16 '15

In the OP's imgur screenshot post.

3

u/motionblurrr Apr 15 '15

Should have been changed to groovy when they updated the game for PC.

5

u/Joha_Mraadu Apr 15 '15

Won't compile... it's a trap!

2

u/[deleted] Apr 16 '15

I thought this was irl....

1

u/dev_dov_dang Apr 16 '15

I did too for a second. Dem graphics :O

3

u/girichards Apr 16 '15

It would be an accurate Java Update if the staff asked if you wanted to install the Ask Toolbar every time you purchased something.

2

u/outadoc Apr 16 '15

Ah, people taking it so seriously they didn't even notice the java.update() joke.

1

u/lechatsportif Apr 15 '15

Are they one of the people using java servers for online gameplay?

0

u/GTB3NW Apr 15 '15

2 rashers!? Barbaric!