archived
stringclasses
2 values
author
stringlengths
3
20
author_fullname
stringlengths
4
12
body
stringlengths
0
22.5k
comment_type
stringclasses
1 value
controversiality
stringclasses
2 values
created_utc
stringlengths
10
10
edited
stringlengths
4
12
gilded
stringclasses
7 values
id
stringlengths
1
7
link_id
stringlengths
7
10
locked
stringclasses
2 values
name
stringlengths
4
10
parent_id
stringlengths
5
10
permalink
stringlengths
41
91
retrieved_on
stringlengths
10
10
score
stringlengths
1
4
subreddit_id
stringclasses
1 value
subreddit_name_prefixed
stringclasses
1 value
subreddit_type
stringclasses
1 value
total_awards_received
stringclasses
19 values
True
antonivs
null
You need to work on your reading comprehension. Jabberworx claimed that the only reason people dismiss Silverlight etc. is because of anti-Microsoft fanboyism. In that context, the fact that Microsoft themselves are avoiding Silverlight in the Metro context directly contradicts his claim, unless we're accusing Microsoft of anti-Microsoft fanboyism. My advice to you is that the next time you want to use the word "retarded" in a sentence, go and look in a mirror first to calibrate your retardometer at the upper level of the scale.
null
0
1316124474
False
0
c2k616u
t3_kgb4h
null
t1_c2k616u
t1_c2k1aag
null
1427605266
0
t5_2fwo
null
null
null
True
uhhhclem
null
This is excellent work and really fun to play with. Three things that might improve it: First, the data isn't meaningful without knowing what time period it applies to. 96,000 Chinese have emigrated to Korea. Since when? I'm guessing that the data must be comparatively recent (since there's no Irish immigration to the US depicted in the data set). You can find that by investigating the data set, but it should really be in the map. Second, the map strikingly *doesn't* answer the question "Where are migrants coming from?" because the lines aren't directional. The map could just as easily be saying that 9 million people emigrated from the US to Mexico (when?) than the other way around. It's not until you see the arrivals/departures widget that it becomes clear. I'm not sure if there's a good way to fix this without introducing a lot of visual clutter - possibly you could change the line-drawing so that it only draws a dot at the origin and not the destination. A third problem is that it looks like proportions are depicted, but they're not. The map tells us that more Americans than Guatemalans emigrate to Mexico. The numbers tell us that *fifteen times* more Americans than Guatemalans do so. You intuitively expect the differences in color value to correspond to differences in migration volume. They don't: they correspond to differences in ranking. Two ways I can think of to fix this: one is to construct the colors dynamically, and another would be to replace the square swatches in the legend with bars of proportional length. You might also want to look into the "NaN" values in the data set and find another way of portraying them. (See, for instance, the population of St. Pierre & Miquelon.)
null
0
1316124595
False
0
c2k61rl
t3_kgjcg
null
t1_c2k61rl
t3_kgjcg
null
1427605270
8
t5_2fwo
null
null
null
True
pozorvlak
null
I'd assumed as much :-) I'm a pragmatist: the free market solves some problems very effectively, and states solve other problems very effectively. Both have a tendency to introduce undesirable side-effects: markets have negative externalities, and states are subject to regulatory capture. The best solution to these problems, AFAICT, is moderation: markets moderate the State, and the state moderates the Market. We have yet to find the ideal mix, but IMHO that's what we should be aiming for.
null
0
1316124615
False
0
c2k61uu
t3_kgbzq
null
t1_c2k61uu
t1_c2k5jyg
null
1427605271
5
t5_2fwo
null
null
null
True
11t1
null
If you take Reddit hivemind opinions as fact during your early development as a programmer, you're going to enter the working world as some kind of retarded flipper baby.
null
0
1316124651
False
0
c2k620q
t3_kgq62
null
t1_c2k620q
t1_c2k55rf
null
1427605276
25
t5_2fwo
null
null
null
True
paulscode
null
There is an x86 version of the dynarec (it's taken from Ari64's Pandora port of Mupen64Plus 1.5). I currently have it disabled for testing on ARM devices first (would take minimal effort to set it up to compile the x86 version, but currently untested yet since I don't have an x86 Android device myself)
null
0
1316124680
False
0
c2k625b
t3_ker63
null
t1_c2k625b
t1_c2jultz
null
1427605274
1
t5_2fwo
null
null
null
True
[deleted]
null
They have to break that mindset.
null
0
1316124682
False
0
c2k625n
t3_kgb4h
null
t1_c2k625n
t1_c2k2jrq
null
1427605274
1
t5_2fwo
null
null
null
True
pozorvlak
null
SCRIPTABLE COFFEE MACHINES!
null
0
1316124686
False
0
c2k626k
t3_kgbzq
null
t1_c2k626k
t1_c2k5lmx
null
1427605274
1
t5_2fwo
null
null
null
True
henk53
null
>As far as programming goes, object pools and other ways of avoiding generating garbage is usually the best bet. Avoiding generating garbage is of course always a strategy, just as you generally try to avoid unnecessary allocations in say C++. Object pooling can certainly help, but it's not as clear cut. In it's last incarnations the JVM has become blindingly fast in object allocations. For more patterns than common logic would dictate it's actually faster to create a new object than fetch one from say a hashmap. If you do need (a lot of) pooling, an off-heap but in-process cache can be an interesting solution. This is basically a huge continuous array that you manage as if it was low-level memory (and unless you're a hardcore fan, you'd best use an existing solution here instead of cobbling something yourself). The advantage is that the GC doesn't look inside this, which could save overhead if the amount of data is really big.
null
0
1316124812
False
0
c2k62rz
t3_kgq62
null
t1_c2k62rz
t1_c2k60cl
null
1427605281
8
t5_2fwo
null
null
null
True
[deleted]
null
Is this just a decoder or encoder as well?
null
0
1316124826
False
0
c2k62ui
t3_kgqdd
null
t1_c2k62ui
t3_kgqdd
null
1427605283
9
t5_2fwo
null
null
null
True
djdonnell
null
sup dawg, I heard you like NP problems ...
null
0
1316124827
False
0
c2k62uw
t3_kgfhb
null
t1_c2k62uw
t1_c2k4w32
null
1427605283
-6
t5_2fwo
null
null
null
True
albertzeyer
null
The change in CPython: https://github.com/albertz/CPython/commit/2670e621458fd80311fc02897b698ea2a36d494b
null
0
1316124833
False
0
c2k62vs
t3_kgzb1
null
t1_c2k62vs
t3_kgzb1
null
1427605284
1
t5_2fwo
null
null
null
True
buciuman
null
Well, no, you are missing out on the point that what you call a brute force method is actually a great number of checks, which are easy to do on an individual basis. P problems are NP problems too because they are easy to check, BUT they are also easy to solve, which makes them a subset of NP. I recommend you read again.
null
0
1316124899
False
0
c2k636t
t3_kgfhb
null
t1_c2k636t
t1_c2k5rfr
null
1427605287
2
t5_2fwo
null
null
null
True
punpunpun
null
attempt to sign in causes: "Internal Server Error" FTW!
null
0
1316124910
False
0
c2k638d
t3_kgsnl
null
t1_c2k638d
t1_c2k53j7
null
1427605287
4
t5_2fwo
null
null
null
True
pozorvlak
null
I agree that public schooling (or, as we call it in the UK, state schooling :-) ) often has that structure. But that's not to say it *needs* to have that structure.
null
0
1316124992
False
0
c2k63l3
t3_kgbzq
null
t1_c2k63l3
t1_c2k2ozn
null
1427605292
3
t5_2fwo
null
null
null
True
AeroNotix
null
They just read off the slides, mostly. I think they could've just hosted the .ppt and be done with it. Erlang sounds interesting though, I love that hot-code idea. Could breed laziness though.
null
0
1316125008
False
0
c2k63nv
t3_kfo63
null
t1_c2k63nv
t1_c2jw151
null
1427605303
2
t5_2fwo
null
null
null
True
pozorvlak
null
Great article, BTW.
null
0
1316125021
False
0
c2k63q1
t3_kgbzq
null
t1_c2k63q1
t1_c2k2v43
null
1427605294
1
t5_2fwo
null
null
null
True
pozorvlak
null
Your challenge for the day: write such a rhyme.
null
0
1316125090
False
0
c2k641a
t3_kgbzq
null
t1_c2k641a
t1_c2k5dla
null
1427605299
1
t5_2fwo
null
null
null
True
[deleted]
null
... Fuck the world?
null
0
1316125093
False
0
c2k641s
t3_kgsnl
null
t1_c2k641s
t1_c2k638d
null
1427605299
2
t5_2fwo
null
null
null
True
[deleted]
null
They have never been a "leapfrogging" company. They basically follow the market. Somebody introduces a successful product or service and a few years later Microsoft either comes out with their own version or buys a company and enters the market.
null
0
1316125121
False
0
c2k646k
t3_kgb4h
null
t1_c2k646k
t1_c2k1m7w
null
1427605300
2
t5_2fwo
null
null
null
True
tarantulus
null
I completely agree, an attempt should be made to provision it equally until aptitude (or lack thereof) is established. However discriminating based on financial means is a hideous proposition.
null
0
1316125233
False
0
c2k64p5
t3_kgbzq
null
t1_c2k64p5
t1_c2k5yrq
null
1427605307
5
t5_2fwo
null
null
null
True
kierank
null
Just decoder for now. An encoder will inevitably appear.
null
0
1316125236
False
0
c2k64pp
t3_kgqdd
null
t1_c2k64pp
t1_c2k62ui
null
1427605307
12
t5_2fwo
null
null
null
True
[deleted]
null
>I was taking particular issue with your phrase "every day the desktop becomes less relevant". Guess what most of the "work" done on a desktop is browsing and consuming digital media these days. Outside of programmers I'd say way above 50%. For those people the desktop is redundant.
null
0
1316125261
False
0
c2k64tr
t3_kgb4h
null
t1_c2k64tr
t1_c2k1kms
null
1427605309
1
t5_2fwo
null
null
null
True
captainAwesomePants
null
This is true, but one-time pads are useless for most Internet communication, and symmetric encryption similarly requires a shared secret. Yes, many simple encryption algorithms would still work, but most of the Internet encryption algorithms would not.
null
0
1316125405
False
0
c2k65gs
t3_kgfhb
null
t1_c2k65gs
t1_c2k575l
null
1427605317
3
t5_2fwo
null
null
null
True
oakdog8
null
Well, saying all P problems are easy it is a bit of an overstatement. The difference in P and NP problems really lies in the amount of time it would take to test all possible outcomes for a solution. P problems are solvable in "polynomial time," for example: 2x tries. NP problems are solvable in "non-polynomial time" (usually exponential), such as 2^x tries. As you can see, when x=1,2 they are both the same. However by x=10, the P example is only 20, whereas the NP example is 1024. Now, P and NP problems have certain distinguishing characteristics. Possible solutions to NP problems can be checked by computers to see if they are a solution, but a computer might not be able to find a solution on its own within years. P problems are NP problems because computers can verify a P solution's accuracy as well. NP problems are not P problems, because a computer can find a solution to a P problem in a reasonable amount of time, but the same is not true for an NP problem.
null
0
1316125496
False
0
c2k65u4
t3_kgfhb
null
t1_c2k65u4
t1_c2k59jj
null
1427605331
1
t5_2fwo
null
null
null
True
Pragmataraxia
null
Thank you. That whole paragraph was a horrible waste of time. Even if it didn't contain this ridiculous pair of definitions, at best it just explains things tautologically. Hurray!
null
0
1316125508
False
0
c2k65z0
t3_kgfhb
null
t1_c2k65z0
t1_c2k59jj
null
1427605326
2
t5_2fwo
null
null
null
True
Saivo
null
Nope. It seems that you've accidentally omitted wads of text from between those two statements. In the first statement, I was discussing corporations being too stingy to move their enterprisey shit to some modern language. In the latter statement, I discuss my personal preferences. Note the important distinction: I did not say that my preferences would be the most modern languages in the world, or even more "modern" than Java. I would also like to clarify that I was not using "modern" in the strictly chronological sense, i.e. "Y is more modern than X, because Y was conceived after X." I just meant that a "modern" language is something that A) feels fresh, or has still something to give to the current day and age, and B) is not Java.
null
0
1316125557
False
0
c2k665z
t3_kgq62
null
t1_c2k665z
t1_c2k60bc
null
1427605330
2
t5_2fwo
null
null
null
True
bonch
null
It's read-only and limited. Very boring.
null
0
1316125706
False
0
c2k66sp
t3_kgsnl
null
t1_c2k66sp
t3_kgsnl
null
1427605335
26
t5_2fwo
null
null
null
True
punpunpun
null
Entry #1, not #2: http://www.urbandictionary.com/define.php?term=ftw
null
0
1316125723
False
0
c2k66v0
t3_kgsnl
null
t1_c2k66v0
t1_c2k641s
null
1427605337
3
t5_2fwo
null
null
null
True
bonch
null
Prepare to get modbombed by the thousands of Google fanboys who frequent /r/programming.
null
0
1316125745
False
0
c2k66yr
t3_kgsnl
null
t1_c2k66yr
t1_c2k57l2
null
1427605337
-26
t5_2fwo
null
null
null
True
bonch
null
Holy crap, look at that modbombing. All that for the sin of saying you stopped using a Google product. Frankly, after the pseudonym debacle and Eric Schmidt's admission that Google+ is an identity service rather than a social network, I don't get why there's any interest left at all.
null
0
1316125789
False
0
c2k6765
t3_kgsnl
null
t1_c2k6765
t1_c2k4m9i
null
1427605340
-7
t5_2fwo
null
null
null
True
ondra
null
> Honestly, semantics. Well, you started. My point is that Visual Studio does hot code replacement in unmanaged C++. Nowhere does .NET enter the equation.
null
0
1316125792
False
0
c2k676n
t3_kepcp
null
t1_c2k676n
t1_c2k60bt
null
1427605340
1
t5_2fwo
null
null
null
True
more_exercise
null
not sure if serious...
null
0
1316125796
False
0
c2k677c
t3_kg44k
null
t1_c2k677c
t1_c2k0x8b
null
1427605344
2
t5_2fwo
null
null
null
True
8-bit_d-boy
null
I knew Elvis wasn't dead! I wonder what Tupac is reverse-engineering...
null
0
1316125820
False
0
c2k67bb
t3_kgqdd
null
t1_c2k67bb
t3_kgqdd
null
1427605341
22
t5_2fwo
null
null
null
True
bonch
null
One for every active Google+ user.
null
0
1316125924
False
0
c2k67sj
t3_kgsnl
null
t1_c2k67sj
t1_c2k4yiz
null
1427605346
33
t5_2fwo
null
null
null
True
Shawnanigans
null
What I don't understand is why Google Plus was not released as a type of open standard akin to email, HTML or even Google Wave. Why not make Google Plus a protocol wherein Google's servers host a version but other people can host their own. Yet due to their usage of the same protocol can interact. This helps solve one of the fundamental problems of social networks. That is: a lack of interoperability between sites that makes user migration impossible. I.e. How can I leave facebook if that's how all my friends connect? If there was a standard similar to email you get people who choose their service provider without limiting their contacts. Think how you can leave Hotmail (and you should) for GMail or host your own email server.
null
0
1316126029
False
0
c2k68ad
t3_kgsnl
null
t1_c2k68ad
t3_kgsnl
null
1427605354
22
t5_2fwo
null
null
null
True
othermatt
null
So NP are problems that can be easily checked. And P are problems that can be solved without checking every possible answer? Does it matter if the problem doesn't have a solution? For example, the rock pile problem where every rock except one weighs the same. For that matter if the rock pile problem had every rock weight the same except two, would that still qualify as not belonging to P? BTW thanks for taking the time to answer a lay person. This is the first time I actually feel like I'm starting to get my mind around P vs NP.
null
0
1316126106
False
0
c2k68mi
t3_kgfhb
null
t1_c2k68mi
t1_c2k636t
null
1427605358
1
t5_2fwo
null
null
null
True
acornalert
null
Unpopular culture reference noted.
null
0
1316126115
False
0
c2k68nw
t3_kewkd
null
t1_c2k68nw
t1_c2juv14
null
1427605359
1
t5_2fwo
null
null
null
True
bonch
null
That's not really true. If Minecraft was efficient enough to run on netbooks, for example, it would be even more successful.
null
0
1316126120
False
0
c2k68oo
t3_kfiuk
null
t1_c2k68oo
t1_c2k1r46
null
1427605359
0
t5_2fwo
null
null
null
True
antonivs
null
So to streamline things for tablet users, they avoided Silverlight. This refutes your claim that the only reason to dismiss Silverlight is petty fanboyism. The point is that your claim was far too over-generalized.
null
0
1316126121
False
0
c2k68ot
t3_kgb4h
null
t1_c2k68ot
t1_c2k144a
null
1427605359
1
t5_2fwo
null
null
null
True
Baaz
null
At our company we use Flex to generate complex user interfaces in object oriented code. Works like a charm. I wouldn't want to miss it.
null
0
1316126143
False
0
c2k68s9
t3_kgb4h
null
t1_c2k68s9
t1_c2k3m9m
null
1427605360
3
t5_2fwo
null
null
null
True
bonch
null
Have you looked at deobfuscated Minecraft code? It's pretty eye-opening in a bad way.
null
0
1316126222
False
0
c2k693d
t3_kfiuk
null
t1_c2k693d
t1_c2k0mgc
null
1427605365
2
t5_2fwo
null
null
null
True
Saivo
null
I think you are perhaps a little bit intellectually dishonest if you claim that the level of verbosity is the same between your example languages (C, C++, Objective-C, C#, Java). There are at least two, maybe three separate tiers there. Java makes me write a lot of redundant stuff, and at some point it really starts to annoy me. With Java, I always get the feeling that I'm wasting more time with syntactical dry-humping than getting actual fucking things done.
null
0
1316126242
False
0
c2k6965
t3_kgq62
null
t1_c2k6965
t1_c2k5zhc
null
1428193971
-3
t5_2fwo
null
null
null
True
some_dev
null
Can you give some examples of redundant stuff? I find that a lot of the supposed boilerplate that is "forced" on developers is actually just optional and foisted due to "best practices."
null
0
1316126368
False
0
c2k69os
t3_kgq62
null
t1_c2k69os
t1_c2k6965
null
1427605380
8
t5_2fwo
null
null
null
True
bonch
null
Shortcomings can affect success, and I'm sure Minecraft's inability to run on netbooks, for example, has affected sales.
null
0
1316126437
False
0
c2k69zb
t3_kfiuk
null
t1_c2k69zb
t1_c2k45ac
null
1427605376
0
t5_2fwo
null
null
null
True
kish22
null
Build it and they will come. Maybe.
null
0
1316126502
False
0
c2k6a9o
t3_kgsnl
null
t1_c2k6a9o
t3_kgsnl
null
1427605379
5
t5_2fwo
null
null
null
True
Sc4Freak
null
Not exactly. Think of it as COM++. It's still 100% native, but they've added a bunch of stuff to COM (and syntactic sugar extensions to C++) to make it slightly less painful to use. This "super COM" is used to talk to WinRT.
null
0
1316126525
False
0
c2k6acm
t3_kgl4f
null
t1_c2k6acm
t1_c2k5hvy
null
1427605380
3
t5_2fwo
null
null
null
True
Freeky
null
Maybe you should look at Scala, or Clojure if Java-the-language offends you so much. Not like it's the only choice even if you are stuck with Java-the-actually-pretty-good-VM.
null
0
1316126590
False
0
c2k6ana
t3_kgq62
null
t1_c2k6ana
t1_c2k6965
null
1427605384
2
t5_2fwo
null
null
null
True
BubblegumBalloon
null
May I ask what you are porting it to? :)
null
0
1316126840
False
0
c2k6bsl
t3_ker63
null
t1_c2k6bsl
t1_c2k2rwf
null
1427605399
1
t5_2fwo
null
null
null
True
St4ud3
null
ah ok, that makes the most sense from all these answers :) Thank you.
null
0
1316126841
False
0
c2k6bsv
t3_kgfhb
null
t1_c2k6bsv
t1_c2k4gig
null
1427605399
1
t5_2fwo
null
null
null
True
[deleted]
null
Muphry's Law.
null
0
1316126850
False
0
c2k6buc
t3_kgb4h
null
t1_c2k6buc
t1_c2k2zdl
null
1427605401
3
t5_2fwo
null
null
null
True
vocalbit
null
Care to share more?
null
0
1316126862
False
0
c2k6bwb
t3_kfvm7
null
t1_c2k6bwb
t1_c2k32u5
null
1427605401
2
t5_2fwo
null
null
null
True
elpablo
null
I'm really surprised that it's so low. My parents both have an iPhone and neither of them even know how to update it. Surely there must be a lot of people that aren't up to date? My dad doesn't even plug his into his computer!
null
0
1316126929
False
0
c2k6c7k
t3_kfirl
null
t1_c2k6c7k
t1_c2k5j8g
null
1427605406
1
t5_2fwo
null
null
null
True
icandoitbetter
null
They're not missing much. Coding anything substantial and sufficiently original is hard and takes too much time. Very rarely do I experience the feeling that I am really *expressing* myself through programming; I'm mostly gluing stuff and debugging. On the other hand, I can express myself through writing instantly. Arguing for better programming education isn't gonna do much; it might be more effective to argue for more expressive, humane programming languages.
null
0
1316126933
False
0
c2k6c87
t3_kgbzq
null
t1_c2k6c87
t1_c2k2mzb
null
1427605406
4
t5_2fwo
null
null
null
True
twooster
null
It does make sense, though... For mongodb, every .1 alternates between an unstable and a stable version. So, 1.8 was stable, 1.9 was the unstable development version that became 2.0 once it stabilized. But yeah, it reads weird.
null
0
1316126956
False
0
c2k6ccp
t3_kggd3
null
t1_c2k6ccp
t3_kggd3
null
1427605406
1
t5_2fwo
null
null
null
True
Mylos
null
This was the first time I actually understood this! Thanks so much!
null
0
1316127014
False
0
c2k6cku
t3_kgfhb
null
t1_c2k6cku
t3_kgfhb
null
1427605409
1
t5_2fwo
null
null
null
True
Chroko
null
I've not started to dig into it, but the developer preview includes a retooled [Microsoft Expression](http://www.microsoft.com/expression/products/StudioWebPro_Overview.aspx), which can be used to graphically design the user interfaces and visual elements of HTML5 apps.
null
0
1316127046
False
0
c2k6cod
t3_kgb4h
null
t1_c2k6cod
t1_c2k4h60
null
1427605411
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1316127059
False
0
c2k6ct8
t3_kgb4h
null
t1_c2k6ct8
t1_c2k4h60
null
1427605412
1
t5_2fwo
null
null
null
True
more_exercise
null
Wibbly wobbly timey-wimey... stuff, yes.
null
0
1316127191
False
0
c2k6dir
t3_kgl4f
null
t1_c2k6dir
t1_c2k5hvy
null
1427605423
3
t5_2fwo
null
null
null
True
nrselleh
null
hot damn, you are bumping into a whole industry - [Geographic Information Systems](http://en.wikipedia.org/wiki/Geographic_information_system) - Can you hook this up to a SQL database in the backend? I know that would probably kill the performance, but if so you'd have the foundations of an "Enterprise" web application.
null
0
1316127267
False
0
c2k6dv5
t3_kgjcg
null
t1_c2k6dv5
t3_kgjcg
null
1427605427
2
t5_2fwo
null
null
null
True
Jookia
null
Ah. I look forward to messing around with it when Windows 8 officially comes out.
null
0
1316127327
False
0
c2k6e4n
t3_kgl4f
null
t1_c2k6e4n
t1_c2k6acm
null
1427605432
1
t5_2fwo
null
null
null
True
brehaut
null
Firstly, CoffeeScript is a _giant_ leap in syntax from javascript; It is the semantics that it generally tries to maintain. Where there is a 1 to 1 mapping to javascript, CS maintains semantic equivalence. Lets look at two examples: Examine the [Class syntax](http://jashkenas.github.com/coffee-script/#classes) and the generated code. CoffeeScript has _classes_, Javascript does not. > "The greatest crime perpetrated in the name of JavaScript is the propensity for every > framework, library, and trifle uses the prototypal inheritance capabilities of the > language to implement class-based inheritance." — [Michael Fogus](http://blog.fogus.me/2011/09/08/10-technical-papers-every-programmer-should-read-at-least-twice/) The semantic divide between Classical OO and Prototypal is staggering. As a second example, by making every statement be an expression and have a value, CS has already made a large semantic departure from Javascript. The particular details of how that change impacts the composition of loops (and in particular the for loop) with respect to a semantic change CS has already made is what is being discussed here. Secondly, `_.flatten` is not a general solution to map oriented comprehensions. mapcat oriented comprehensions only concatenate the results of the immediate child. It is entirely reasonable for a comprehension to generate a series of lists as its body, using _.flatten would result in those arrays being flattened into the containing collection. E.g.: _.flatten ([i, j] for i in [0..2] for j in [0..2]) # => [0,0,1,0,2,0,0,1,1,1,2,1,0,2,1,2,2,2] The suggested idiom provided by Trevor Burnham in the issue linked by homoiconic is arr = [] arr.push [i, j] for i in [0..2] for j in [0..2] # => [[0,0],[1,0],[2,0],[0,1],[1,1],[2,1],[0,2],[1,2],[2,2]] This is consistent with the mapcat comprehension
null
0
1316127422
True
0
c2k6el5
t3_kddpb
null
t1_c2k6el5
t1_c2k00pj
null
1427605441
1
t5_2fwo
null
null
null
True
Saivo
null
I think the verbosity comes from a lot of small stuff that adds up as you write more and more code. Often seemingly minor things, for example initializing Java's basic data structures is often much more work than with C++ containers, and ends up to become a major pain in the ass in the long run. Or maybe I am just short-tempered; be that as it may, every time I write Java I feel like I'm producing more waste than goods. Definitely "best practices" have a part in the play, but then again similar practices exist for every programming language. And super-definitely all the different frameworks (especially if you're working in "enterprise") add lots and lots of extra overhead on top of the already rambling language.
null
0
1316127480
False
0
c2k6eu8
t3_kgq62
null
t1_c2k6eu8
t1_c2k69os
null
1427605446
-1
t5_2fwo
null
null
null
True
[deleted]
null
Scumbag Fermat
null
0
1316127489
False
0
c2k6evw
t3_kgfhb
null
t1_c2k6evw
t1_c2k5b77
null
1427605446
14
t5_2fwo
null
null
null
True
mmccaskill
null
How long until they remove it like some of the other useful APIs?
null
0
1316127548
False
0
c2k6f5p
t3_kgsnl
null
t1_c2k6f5p
t3_kgsnl
null
1427605450
14
t5_2fwo
null
null
null
True
x-skeww
null
Have you seen his 4k games? Do you think some average (=not even good) programmer could pull that stuff off?
null
0
1316127636
False
0
c2k6fk9
t3_kfiuk
null
t1_c2k6fk9
t1_c2k693d
null
1427605454
2
t5_2fwo
null
null
null
True
DrMonkeyLove
null
>...that you can't make money in the market on average, except by luck. Don't you mean, "can't make money, *above average market returns*, except by luck"?
null
0
1316127637
False
0
c2k6fkj
t3_kgfhb
null
t1_c2k6fkj
t1_c2k4sgt
null
1427605454
9
t5_2fwo
null
null
null
True
[deleted]
null
You think factionalism is over at Microsoft? Have done any structural work in the corporation to reduce or get rid of factionalism?
null
0
1316127717
False
0
c2k6fy3
t3_kgl4f
null
t1_c2k6fy3
t1_c2k4n3b
null
1427605457
0
t5_2fwo
null
null
null
True
Saivo
null
Yep, I've taken a look at the both, and while the Java-likeness is somewhat off-putting, I definitely don't harbour as much frustration and outright wraith towards them. In fact, there are some pretty neat ideas in both compared to *many* other languages. However, this whole discussion thread was about Java, not about its spin-off languages.
null
0
1316127726
False
0
c2k6fzm
t3_kgq62
null
t1_c2k6fzm
t1_c2k6ana
null
1427605457
0
t5_2fwo
null
null
null
True
grauenwolf
null
Other than the file format for metadata there is no CLR stuff. This is all COM that has been tweaked to look like CLR.
null
0
1316127737
False
0
c2k6g1e
t3_kgl4f
null
t1_c2k6g1e
t1_c2k5hvy
null
1427605459
5
t5_2fwo
null
null
null
True
thenamedone1
null
That's interesting to me. The few programmers that I've met out in the real world all seem to hate working with java. Of course, I don't really have enough experience to give a shit one way or the other, but I thought the original comment sounded a little out of place when all of my experience with other programmers seems to agree with his/her statement.
null
0
1316127801
False
0
c2k6gbl
t3_kgq62
null
t1_c2k6gbl
t1_c2k5s59
null
1427605461
0
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1316127827
False
0
c2k6ggd
t3_kgsnl
null
t1_c2k6ggd
t1_c2k68ad
null
1427605463
1
t5_2fwo
null
null
null
True
[deleted]
null
>Eh. Icaza can be a Microsoft fanboy sometimes, but he's a useful contrast to all the anti-Microsoft fanboys that are around FOSS. How is he a useful contrast exactly? It seems to me that he exists as a mere codpiece that Microsoft can point to and say "see we don't really hate open source, just ignore all of our lawsuits, patents, and belligerent talk".
null
0
1316127838
False
0
c2k6ghs
t3_kgl4f
null
t1_c2k6ghs
t1_c2k5hix
null
1427605463
-7
t5_2fwo
null
null
null
True
some_dev
null
See, the thing is that I never hear *specific* complaints. About the closest I've heard is a lack of free functions and lambdas, which I definitely agree with. Well, that and a general "Java isn't dynamically typed," complaint. Yes, there are a bunch of little things that add up, but I've never felt that I was spending a disproportionate amount of time writing boilerplate. Perhaps I just have a thicker skin than most. I can say for a fact that I've never worked on a project where switching to one of the more in-vogue languages would have saved me significant time. The disclaimer here is that I don't use "enterprise-ey" stuff. I've never used EJB, for example.
null
0
1316127853
False
0
c2k6gk4
t3_kgq62
null
t1_c2k6gk4
t1_c2k6eu8
null
1427605464
6
t5_2fwo
null
null
null
True
[deleted]
null
Dude, I'm a college droupout without a passion of maths. I am still learning Haskell and it took me a month of reading, snippeting to understand it's basic concepts. To finally get it. It is a small price to pay (a month, a fluke) for the great satisfactionary moments you have afterwards. And now I started to like math again through Haskell.
null
0
1316127887
False
0
c2k6gpp
t3_kgt9u
null
t1_c2k6gpp
t1_c2k5r7f
null
1427605465
1
t5_2fwo
null
null
null
True
timbowen
null
That may be true, but those people probably aren't in your market anyway. If they aren't even going to sync music are they really going to buy or download your app?
null
0
1316127900
False
0
c2k6grh
t3_kfirl
null
t1_c2k6grh
t1_c2k6c7k
null
1427605466
1
t5_2fwo
null
null
null
True
TimTheTinker
null
Programming. *Programming.* **Programming.**
null
0
1316127935
False
0
c2k6gxf
t3_kgteo
null
t1_c2k6gxf
t3_kgteo
null
1427605468
1
t5_2fwo
null
null
null
True
thenamedone1
null
Oddly enough, the few programmers that I've met out in the real world all seem to hate working with java. Of course, I don't really have enough experience to give a shit one way or the other.
null
0
1316127936
False
0
c2k6gxr
t3_kgq62
null
t1_c2k6gxr
t1_c2k620q
null
1427605468
3
t5_2fwo
null
null
null
True
ejrh
null
> Why does anyone think that P might equal NP? Part of the rationale is that non-deterministic *finite* automata can be transformed into deterministic ones (Kleene's Theorem) -- so definitely "P = NP", for FAs and NFAs, at least. The big question is whether it also holds for Turing machines, which are kind of like FAs (in that you read an input and transition between states based on it; but then Turing machines can change direction and have infinite inputs, and other things). Can every nondeterministic Turing machines be translated into a deterministic one? Since Turing machines (as a class) are equivalent to any other Turing-complete class the question can be generalised away from automata-model systems to anything else that's Turing complete.
null
0
1316127951
False
0
c2k6h0a
t3_kgfhb
null
t1_c2k6h0a
t1_c2k2ihl
null
1427605468
0
t5_2fwo
null
null
null
True
Freeky
null
People seem to be discussing both the language and the virtual machine(s), both of which are "Java". When it comes to performance discussions, the latter is really rather more relevant than the former.
null
0
1316128071
False
0
c2k6hiw
t3_kgq62
null
t1_c2k6hiw
t1_c2k6fzm
null
1427605474
2
t5_2fwo
null
null
null
True
some_dev
null
I've never met any that *hated* working in Java. I have met those who play up their dislike of it for dramatic effect and "street cred." > "Java is pretty bad." > "Yeah Java is terrible I don't like working with it." > "Java is the worst. I'd rather be poked in the eye." > "Oh Java? Java killed my dog." > "Java is WORSE THAN HITLER." Java isn't my favorite language. Its not a language I would write most of my pet projects in. Its got warts and problems. But I wouldn't describe my emotions as "hating" it. Rather, I "don't particularly like it." But it also has massive support and a giant community, which tends to be more important than my niggling complaints with it.
null
0
1316128101
True
0
c2k6hnw
t3_kgq62
null
t1_c2k6hnw
t1_c2k6gbl
null
1427605476
2
t5_2fwo
null
null
null
True
doomchild
null
Interesting. I'm also a college dropout with no real love lost for any math after trig. It just doesn't want to click for me, and that has made me less likely to try it again. I just don't see the benefit in being frustrated.
null
0
1316128141
False
0
c2k6huh
t3_kgt9u
null
t1_c2k6huh
t1_c2k6gpp
null
1427605489
1
t5_2fwo
null
null
null
True
thenamedone1
null
I have heard that third statement more than once. Word for word.
null
0
1316128235
False
0
c2k6i8k
t3_kgq62
null
t1_c2k6i8k
t1_c2k6hnw
null
1427605485
2
t5_2fwo
null
null
null
True
vade
null
This could be very large for compatibility with hardware encoders (such as the Atmos Ninja) for DSLR (as well as some larger cinema cameras like the ARRI). Having Pro Res support could bolster OSS editing apps. Its also decently fast (decode is asymmetric compared to encode, which is much more CPU expensive). Nice work.
null
0
1316128309
False
0
c2k6ik7
t3_kgqdd
null
t1_c2k6ik7
t3_kgqdd
null
1427605500
3
t5_2fwo
null
null
null
True
danltn
null
It's a near-H2G2 quote. Alas.
null
0
1316128400
False
0
c2k6izv
t3_kewkd
null
t1_c2k6izv
t1_c2k68nw
null
1427605497
1
t5_2fwo
null
null
null
True
vilhelm_s
null
Some combinatorial problems _do_ have solutions though. For example, [matching](http://en.wikipedia.org/wiki/Matching_%28graph_theory%29) in a bipartite graph has a similar "feel" to many NP-complete problems, yet it famously turns out to be polynomial. In fact, it has recently become known that it's possible to leverage the matching algorithm to get polynomial algorithms for some problems which are tantalizingly similar to know NP-complete problems, via so-called [holographic algorithms](http://en.wikipedia.org/wiki/Holographic_algorithm). So whatever it is about NP-complete problems that make them so hard, it can't be just that they have a combinatorial flavour...
null
0
1316128552
False
0
c2k6jof
t3_kgfhb
null
t1_c2k6jof
t1_c2k2ihl
null
1427605504
5
t5_2fwo
null
null
null
True
kyz
null
TL;DR: OpenGL immediate mode
null
0
1316128553
False
0
c2k6jp2
t3_kgq62
null
t1_c2k6jp2
t1_c2k50qu
null
1427605505
11
t5_2fwo
null
null
null
True
hoyfkd
null
Silverlight death? Does this mean I can watch netflix on linux?
null
0
1316128565
False
0
c2k6jrs
t3_kgb4h
null
t1_c2k6jrs
t3_kgb4h
null
1427605505
1
t5_2fwo
null
null
null
True
sevenalive
null
For the gritty details: I have a custom library composed of different stuff I use in most of my programs. TaskDialog, RestartRecoveryManager, different controls, extensions, and validation rules. One day when I ever I displayed a TaskDialog the program would crash. It was working fine for over a year and I haven't touched the code, or so I thought. It turns out my R# settings aren't the best when working with the WinAPI. It took me about 12 hours to find and fix the issue. I had to visualdiff different versions of code, look at the original MS ApiCodePack source, etc. Problem: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 4)] internal class TaskDialogConfiguration {....} [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Auto)] internal struct IconUnion {....} Cause: R# + Stylecop was reordering the fields by alphabetical and access order. Then it converted the internal and public fields to auto properties. I didn't notice because I usually to a whole solution code cleanup and that never broke anything, except this time. FXCop and Stylecop complain that fields are for private use and I agree, but there is no work around for it and if I did it would just be clutter just to satisfy a rule.
null
0
1316128583
False
0
c2k6ju7
t3_kh1a8
null
t1_c2k6ju7
t3_kh1a8
null
1427605505
1
t5_2fwo
null
null
null
True
pozorvlak
null
I think the two are inextricably intertwined: we won't get humane programming systems without making a serious attempt to teach programming to non-geeks.
null
0
1316128791
False
0
c2k6ktg
t3_kgbzq
null
t1_c2k6ktg
t1_c2k6c87
null
1427605519
1
t5_2fwo
null
null
null
True
Saivo
null
No need to get snarky. I gave you a specific complaint. Let's expand my perhaps vaguely stated example a bit: **Java** import java.util.HashMap; HashMap<SomeStupidlyLongClassName, SomeStupidlyLongClassName> hashmap = new HashMap<SomeStupidlyLongClassName, SomeStupidlyLongClassName>(); **C++:** #include <map> map<type,type> hashmap; Gee, why the fuck did I have to write THE SAME FUCKING SHIT twice in the Java version? (I *know* why, but I refuse to accept Java's sorry excuse for it and move on to different languages). You can Google the internets for more examples. Things start to get pretty evident already by looking at Wikipedia's Java vs. C++ comparison page. All this System.out.println("blaa") vs. cout << "blaa" really adds up. I guess I could try to concoct more concrete examples still, but I don't want to spend that much time having all these Java flashbacks. As I said in some other comment, it's the basic coder-sense in the lowest parts of my lizard-brain that starts hooting and honking when working with Java. A faint inner voice yells to me: "stop writing so much shit and get things done!" Out of curiosity, how familiar are you with other languages (and which ones)? How do you consider them from the verbosity/redundancy viewpoint?
null
0
1316128827
False
0
c2k6kzq
t3_kgq62
null
t1_c2k6kzq
t1_c2k6gk4
null
1427605521
-1
t5_2fwo
null
null
null
True
chrisrico
null
>markets have negative externalities >states are subject to regulatory capture I agree with you on these two points. >markets moderate the State >the state moderates the Market I disagree with these, however. States necessarily exist outside markets. They exercise their power upon markets, and *some* market participants exercise their power upon the state. This is what you previously called regulatory capture. We both agree that this is not a good thing. You also seem to implicitly claim that states do not suffer from and solve the problem of negative externalities. Can you defend this position? The state is not a single entity, but almost all those in its employ share one thing in common - none of them want to see the scope of the state diminished. On the contrary, many of them want to see the scope increased. This gives us the never ending expansion of government, the greatest example of which is the United States. What was originally intended to be a small federal government (debatable, sure) has now become a behemoth.
null
0
1316128933
False
0
c2k6lgi
t3_kgbzq
null
t1_c2k6lgi
t1_c2k61uu
null
1427605525
1
t5_2fwo
null
null
null
True
grauenwolf
null
Nooo Microsoft DevDiv loves Mono but the rest of Microsoft acts like it doesn't exist..
null
0
1316128938
False
0
c2k6lhf
t3_kgl4f
null
t1_c2k6lhf
t1_c2k6ghs
null
1427605526
5
t5_2fwo
null
null
null
True
Saivo
null
OK, I agree, that is true also. Maybe my original comment way above in the thread took a sidestep from the performance viewpoint. I've just wanted to get this Java stuff off my chest for so long, and through a little trolliness, the opportunity arose. :)
null
0
1316129099
False
0
c2k6m6u
t3_kgq62
null
t1_c2k6m6u
t1_c2k6hiw
null
1427605535
1
t5_2fwo
null
null
null
True
chrisrico
null
I would argue that the structure we see is an inevitable consequence of state education. The Prussian system of compulsory (public) education was created to make better subjects of the state, not to make better people. This is the basis for the system we have today. This is not a personal dig at you, but I find it interesting that anarchists are the ones who are considered utopian, when the state that statists desire is contrary to every state that's ever existed.
null
0
1316129294
False
0
c2k6n37
t3_kgbzq
null
t1_c2k6n37
t1_c2k63l3
null
1427605547
0
t5_2fwo
null
null
null
True
[deleted]
null
I'm really hoping that Google will do this in fact. They have pushed for that in the past with a couple other networks, but the F site decided against it, which killed the project. I'm hoping that once/if Google+ gains enough momentum to be relevant they'll be in a better position to bring Facebook to the table with an open social network interchange standard. For now though, I think they want to work on making Google+ the best possible social network that they can (that fits in with their goal of putting ads in place) and then open it up. I really think it would be premature for them to try and let other people connect their systems at this point. But when it does happen, I expect it to work similar to XMPP.
null
0
1316129465
False
0
c2k6nui
t3_kgsnl
null
t1_c2k6nui
t1_c2k68ad
null
1427605557
4
t5_2fwo
null
null
null
True
kierank
null
This is a big deal for the creation of Broadcast content, VoD and Blu-Ray discs with an Open Source workflow. I work on making decent Open Source workflows for both of these tasks and there are always complaints about ProRes.
null
0
1316129504
False
0
c2k6o03
t3_kgqdd
null
t1_c2k6o03
t1_c2k6ik7
null
1427605561
6
t5_2fwo
null
null
null
True
marssaxman
null
it's way fun.
null
0
1316129609
False
0
c2k6ofg
t3_kfvm7
null
t1_c2k6ofg
t1_c2k5czm
null
1427605564
4
t5_2fwo
null
null
null
True
DasWood
null
World's largest stdlib. :) Knowing what parts of the stblib should be used it a job in itself.
null
0
1316129636
False
0
c2k6ojf
t3_kgq62
null
t1_c2k6ojf
t1_c2k6hnw
null
1427605566
2
t5_2fwo
null
null
null
True
muuh-gnu
null
You mean Google employees, who only still use it because they're forced to. Even the last fanboys have given up Google+ by now. Google, damnit, why dont you suck it up already and give up this idiotic real-name-only policy and try to save whats left to save? Find out who made the idiotic decision to open fire on enthusiastic *early adopters* and hang him by his balls. If you dont, Google+ will go down in internet history as a synonym for "Trying to wield power. Has none." Facebook can enforce a real name policy, you cant. P.S. Furious punishment downvoting won't make me or anybody else use G+.
null
0
1316129643
True
0
c2k6okh
t3_kgsnl
null
t1_c2k6okh
t1_c2k66yr
null
1427605567
-23
t5_2fwo
null
null
null
True
some_dev
null
I honestly wasn't being snarky. Your comment about data structures wasn't specific in my opinion, and I have trawled around google looking for concrete explanations. I usually only come up with very vague emotions and a dearth of specific examples. And lets be blunt: I'm not a fan of Java. You touched upon one of the points that I dislike: lack of type inferrence. I also dislike lack of lambdas and free functions, lack of any sort of event system or delegates, and a generally antipathy towards functional-style programming. None of these things are enough to make me *hate* the language. Touching on your example, you exaggerated the Java portion. Changing like to like: ***Java:*** > import java.util.*; > Map<type, type> hashmap = new HashMap<type, type>(); ***C++:*** > #include <map> > map<type,type> hashmap; It's not quite as stark the difference as you're making it out to be. Likewise, System.out.println("blah") isn't that much worse than std::cout << "blah" << std::endl; As for my languages, my most heavily used previously were C++, C#, and Javascript. I do a lot of glue code in PERL (now there's a language that can inspire hatred). I'm picking up Python and Ruby in my spare time, which is limited. I've also omitted languages that I've played with but have not used heavily in a professional setting (Clojure, LISP, OCaml, vanilla C, etc). Of C++ and C#, I find that C++ is about on par with Java in verbosity, in actual fact, but the C++0X stuff has mitigated a lot of that. I don't have a lot of experience in Python to pass judgement, but I feel that its much better for verbosity. Make no mistake, Java is a *verbose* language. The issue here, though, is that I don't feel that the verbosity is holding me back quite to the degree that others do. My ability to create a HashMap a few seconds quicker does not significantly impact the delivery time on my project. In the same vein, I can't relate to fellow programmers who go on and on about how much more productive they are in vim. I like vim, but I don't feel that most of my time is spent actually *typing* my programs. I sink more time into design, coordination with my team, unit/integration testing, documentation, code reviews, and myriad other things involved with writing robust software in a team setting. Using a language that is concise is nice, and I prefer it when its available and prudent, but I often find that Java's near-universal support trumps my mild dislike of its verbosity.
null
0
1316129733
False
0
c2k6oz8
t3_kgq62
null
t1_c2k6oz8
t1_c2k6kzq
null
1427605572
5
t5_2fwo
null
null
null