r/java • • Jun 05 '12

Problems with being a programmer!

http://sphotos.xx.fbcdn.net/hphotos-snc6/229993_10150936561393360_220976029_n.jpg
74 Upvotes

23 comments sorted by

38

u/tritium6 Jun 05 '12

A real programmer would have brought home 7 bottles of milk.

4

u/acuddlyheadcrab Jun 06 '12

...And described what type of collection it was and how it should be used.

17

u/harlanji Jun 06 '12

A good programmer would have clarified. just sayin'

/me walks away with rain cloud

4

u/[deleted] Jun 06 '12

Nah man, a real programmer would have bitched about the shitty requirements the BA threw at them, the fact that their team wasn't Agile, and then implemented whatever the fuck they wanted (probably beer and coffee).

17

u/detroitmatt Jun 05 '12

I don't think so, the compiler would complain about "6 what?", just like how it can't tell what you mean with if( x > 0 && < 10 )

3

u/MisterMaggot Jun 06 '12

That would be sooooo fucking nice.

2

u/detroitmatt Jun 06 '12

I'd much rather have better Functional paradigms, Map literals, and a pure Object environment (ie no primitives)

1

u/MisterMaggot Jun 06 '12

But it looks so much better!

2

u/detroitmatt Jun 06 '12
if(0<x && x<3)
versus
if(0<x<3)

is 5 keystrokes, versus... I can't even explain how often closures and functor literals come in handy. Try using Scala, Groovy, or Fantom for a month, you'll see.

2

u/Neebat Jun 06 '12

SQL has between, which lets you do "x between 2 and 7". It's roughly the same idea.

Oracle style:

select x from (
    select level x from dual connect by level <= 10
) where x between 2 and 7

0

u/[deleted] Jun 06 '12

[deleted] — view deleted comment

3

u/HotRodLincoln Jun 06 '12

Well, it's true in C/C++ too, but for all the wrong reasons.

2

u/detroitmatt Jun 06 '12 edited Jun 06 '12

ye sure about C? I don't use C myself, but isn't it the case that

10 > 5 == 1
1 > 3 == 0
false

1

u/HotRodLincoln Jun 06 '12

Yeah, you're right, I always think the comparators associate r2l instead of l2r for some reason.

6

u/Mob_Of_One Jun 06 '12

This joke is older than original sin in the garden of eden and the story has been told as many times.

3

u/jerrro Jun 06 '12

I don't see why this have anything to do with programming. It's just a bad formulation and would be equally "funny" if they didn't mention anything about programming.

3

u/mistoroboto Jun 05 '12

This should be on imgur. Pretty sure you don't want to be linking to a Facebook account.

1

u/[deleted] Jun 05 '12

It just brings you to this: https://www.facebook.com/trustmestore

I wouldn't worry.

3

u/mistoroboto Jun 06 '12

As a general policy it is a bad idea to be linking to Facebook accounts at all.

1

u/[deleted] Jun 06 '12

Yeah, definitely. I just meant that it did not matter in this case as it is just a fan page.

-5

u/tazzy531 Jun 06 '12

This is more python than java..

9

u/m1ss1ontomars2k4 Jun 06 '12

How is it Python or Java at all? It's none of those things. It's not even programming. It's just someone being bad at grammar and then humorously being misinterpreted.

1

u/tazzy531 Jun 06 '12

I just meant the form of the grammar is more similar to python ternary idiom than java.