Live data from Hacker News

There's a coffeeshop called java.update() in GTA V

orcz.com

11–20 of 80 posts

Re: There's a coffeeshop called java.update() in GTA V

#11
It doesn't feel like it's enterprise enough to be realistic.

    class TwoBaconRashersInsideTwoSlicesOfBreadFactory {
      
      /* Make a sandwich
       * 

* Construct a foodstuff consisting of two slices * of bread with two slices of bacon. * @return TwoBaconRashersInsideTwoSlicesOfBread a sandwich */ Public TwoBaconRashersInsideTwoSlicesOfBread getSandwich () { BaconRasherFactory pig = new BaconRasherFactory(); BaconRasherInstance bacon1 = pig.getBaconRasher(); BaconRasherInstance bacon2 = pig.getBaconRasher(); SliceOfBreadFactory loaf = new SliceOfBreadFactory(); SliceOfBread bread1 = loaf.getSliceOfBread(); SliceOfBread bread2 = loaf.getSliceOfBread(); return new TwoBaconRashersInsideTwoSlicesOfBread(bread1, bacon1, bacon2, bread2); }

Or something... trying to do Enterprise Java is hard.

Re: There's a coffeeshop called java.update() in GTA V

#12

Earlier quoted context omitted.

'sudo make me a sandwich'

-bash: sudo make me a sandwich: command not found

I'm surprised you don't have make installed. That's usually one of the first tools I install on any new system (if it's not included as part of the base install, like Arch does):

    sudo apt-get install build-essential
Incidentally, the make error you'd get is amusing:

    make: *** No rule to make target `me'.  Stop.

Re: There's a coffeeshop called java.update() in GTA V

#13

It doesn't feel like it's enterprise enough to be realistic. class TwoBaconRashersInsideTwoSlicesOfBreadFactory { /* Make a sandwich * * Construct a foodstuff consisting of two slices * of bread with two slices of bacon. * @return TwoBaconRashersInsideTwoSlicesOfBread a sandwich */ Public TwoBaconRashersInsideTwoSlicesOfBread getSandwich () { BaconRasherFactory pig = new BaconRasherFactory(); BaconRasherInstance baco…

Any language has hard time being enterprise.

That what the space station architects are there for.

Re: There's a coffeeshop called java.update() in GTA V

#14

It doesn't feel like it's enterprise enough to be realistic. class TwoBaconRashersInsideTwoSlicesOfBreadFactory { /* Make a sandwich * * Construct a foodstuff consisting of two slices * of bread with two slices of bacon. * @return TwoBaconRashersInsideTwoSlicesOfBread a sandwich */ Public TwoBaconRashersInsideTwoSlicesOfBread getSandwich () { BaconRasherFactory pig = new BaconRasherFactory(); BaconRasherInstance baco…

Not enterprise enough, it doesn't implement any interfaces nor extends any generic classes, there also should be some try/catch blocks (what if the bacon isn't fried enough?) and of course several unit tests to guarantee the highest quality sandwich ;)

Re: There's a coffeeshop called java.update() in GTA V

#16
post #12

Earlier quoted context omitted.

-bash: sudo make me a sandwich: command not found

I'm surprised you don't have make installed. That's usually one of the first tools I install on any new system (if it's not included as part of the base install, like Arch does): sudo apt-get install build-essential Incidentally, the make error you'd get is amusing: make: *** No rule to make target `me'. Stop.

    sudo make me a sandwich
will result in sudo running with 'make me a sandwich' as arguments.

    'sudo make me a sandwich'
will result in 'sudo make me a sandwich' running.

Re: There's a coffeeshop called java.update() in GTA V

#17
post #8

Earlier quoted context omitted.

A void method that returns a sandwich , no less.

Never mind that the function casts (coerces? constructs?) ints to bread and ints to bacon. Let alone how it's got a special "plus" operator that can work on bread/bacon and return a sandwich...

If you look carefully at the screenshot, you'll see that bread and bacon are declared to be ints above the method. =]

Re: There's a coffeeshop called java.update() in GTA V

#19

And a hilariously detailed start-up with a (Dropbox inspired?) play room. There's also a hacker character whose convincingly detailed computer setup shows several VIM sessions (one on a portrait oriented monitor).

Do you have any screenshots of this computer setup with vim?
Post reply on HN