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
dauphic
null
How does '*I did something I was explicitly told not to and the API didn't shout at me*' translate into '*win32 programming is harder than it needs to be?*' If someone thinks win32 programming is harder than it needs to be because they aren't shouted at when they break the rules set by the API, I don't think they should be working at such a low level. In general, no low level API should be required to validate the data passed by the developer. It's just a waste of cycles.
null
0
1317316366
True
0
c2njiah
t3_kvfej
null
t1_c2njiah
t3_kvfej
null
1427663656
55
t5_2fwo
null
null
null
True
binford2k
null
The change has been made. He's asking for it to be changed back. For that to happen, he has make a business case for it. Apple's reason for doing it in the first place could quite easily be "because we fucking wanted to" and there's not really anything you can say about it. If it bothers you, don't give them money. But don't expect them to be slaves to your personal aesthetics. For the record, they've got more cash than god. I think they just might be doing something right, ya? More likely than some random redditor at least.
null
0
1317316466
False
0
c2njiun
t3_krv1k
null
t1_c2njiun
t1_c2ndzyh
null
1427663664
0
t5_2fwo
null
null
null
True
mushishi
null
I wonder if it's better now. You can shrink the keyboard size a bit, and toggling the section menu should make it go completely out of your eyes.
null
0
1317316651
False
0
c2njjuk
t3_ktenx
null
t1_c2njjuk
t1_c2n6c0f
null
1427663677
1
t5_2fwo
null
null
null
True
[deleted]
null
Maybe the compiler could optimize this? Or warn? Comparing a char and constant string is either unnecessary (string has length 1) or always false.
null
0
1317316723
False
0
c2njk81
t3_kvg67
null
t1_c2njk81
t3_kvg67
null
1427663682
10
t5_2fwo
null
null
null
True
pnpbios
null
Oh visual basic... You are so silly.
null
0
1317316788
False
0
c2njkla
t3_kvg67
null
t1_c2njkla
t3_kvg67
null
1427663687
17
t5_2fwo
null
null
null
True
day_cq
null
that's just silly. **.** marks the boundary better to me at least. let x . f = f x im . rows . map cols . all and or you can use more vivid marker like F# does let x |> f = f x im |> rows |> map cols |> all and
null
0
1317316851
False
0
c2njkx9
t3_kv3ww
null
t1_c2njkx9
t1_c2nix1j
null
1427663691
7
t5_2fwo
null
null
null
True
bitwize
null
USB-to-serial adapters are not terribly hard to come by, and they worked well with any piece of RS232 equipment I've ever tried to connect to them. I think you know what has to be done. Fun fact: A Pizza Hut near where I work still has point-of-sale terminals that are at least 20 years old, and probably close to 30. Even as the cashiers grumble about them I experience a little shot of retro-geek glee just watching them, their little 9" displays glowing with _actual amber phosphor_. The staff of the restaurant react with a bit of disbelief when I tell them about my attempts to make my thoroughly modern and fast computer emulate, to the maximum extent that is practical, this ancient piece of derelict technology.
null
0
1317316871
False
0
c2njl0z
t3_kuti3
null
t1_c2njl0z
t1_c2njg7j
null
1427663693
3
t5_2fwo
null
null
null
True
codewarrior0
null
This reminds me of the blog post not too long ago about how to parse if-statements where the syntax makes the opening and closing braces optional - and the discussion was about which 'if' to associate an 'else' with. As a Python programmer, I just chuckled.
null
0
1317317060
False
0
c2njm52
t3_kvg67
null
t1_c2njm52
t1_c2njk81
null
1427663711
2
t5_2fwo
null
null
null
True
Jengu
null
Ah. Python is great for whipping up command line utilities. There was even code for a decorator posted awhile back that would automagically turn any function into a command line utility (inferring command line arguments from parameter names).
null
0
1317317226
False
0
c2njn3h
t3_ku73e
null
t1_c2njn3h
t1_c2ncb9b
null
1427663719
2
t5_2fwo
null
null
null
True
cdsmith
null
I certainly agree that having undefined behavior makes programming harder than it needs to be. Most modern languages recognize this as well, and work hard to reduce the number of places where undefined behavior happens. Normally it can be reduced to uses of concurrency, foreign functions, or specific escape hatches designed for places where indeterminate results are okay.
null
0
1317317308
False
0
c2njnjt
t3_kvfej
null
t1_c2njnjt
t1_c2njiah
null
1427663724
7
t5_2fwo
null
null
null
True
Jengu
null
> I mean, Facebook is written in PHP, but do you think anybody cares? If anyone gave Zuckerberg shit for doing it in PHP, well we sure don't know their name. That is ironically the worst example you could pick ;) Facebook being written in PHP caused them considerable pain -- they had to write a PHP to C++ compiler in order to make the performance acceptable. Choice of language matters. > We should really be evaluating the usefulness of the system, rather than how it's implemented. The quality of the implementation matters when you want to change the software. If you always judge it based on whether it's useful you'll acquire a lot of [technical debt](http://martinfowler.com/bliki/TechnicalDebt.html).
null
0
1317317375
False
0
c2njnx6
t3_ku73e
null
t1_c2njnx6
t1_c2nbx1m
null
1427663729
2
t5_2fwo
null
null
null
True
Dr_Deadmeat
null
I thought just using 'a' instead of "a" would make sure it was compared as a char.
null
0
1317317403
False
0
c2njo2z
t3_kvg67
null
t1_c2njo2z
t3_kvg67
null
1427663731
7
t5_2fwo
null
null
null
True
the_456
null
Great idea and I wish my professors were more willing to encourage the discussions of our own failures as a teaching tool rather than simply a cause for embarrassment or a bad grade.
null
0
1317317445
False
0
c2njobk
t3_kvarj
null
t1_c2njobk
t3_kvarj
null
1427663734
5
t5_2fwo
null
null
null
True
NoMoreNicksLeft
null
Yeh. Now if I just had even the slightest clue how to use PostGIS in general (I want to).
null
0
1317317462
False
0
c2njoen
t3_kuxxa
null
t1_c2njoen
t3_kuxxa
null
1427663736
1
t5_2fwo
null
null
null
True
[deleted]
null
> The standard implementation of MapReduce is the JAVA-based HADOOP framework, which is very complex and somewhat temperamental. Moreover, it is necessary to write HADOOP-specific code into mappers and reducers. My prototype library takes about 100 lines of code and can wrap generic mapper / reducer functions. Hmm. > My code so far runs concurrently and in multiple threads within a single OS image. It won't work on clustered systems. Classical functional programming -- solve the easy 20% of the problem, wrap it in a monad.
null
0
1317317607
False
0
c2njp97
t3_kv4xx
null
t1_c2njp97
t3_kv4xx
null
1427663747
18
t5_2fwo
null
null
null
True
day_cq
null
yah, when you learn Haskell, Haskell programs will make sense to you.
null
0
1317317724
False
0
c2njpwt
t3_kv3ww
null
t1_c2njpwt
t1_c2nixdz
null
1427663755
8
t5_2fwo
null
null
null
True
day_cq
null
I don't think I follow your reasoning. I don't understand Mandarin Chinese. That's why so few people are Mandarin speakers.
null
0
1317317816
False
0
c2njqfc
t3_kv3ww
null
t1_c2njqfc
t1_c2njh9w
null
1427663763
16
t5_2fwo
null
null
null
True
riotnerd
null
Those begin with "prancing baby," so I'm probably just risking an Ally McBeal reference, rather than a view into orifice of darkness.
null
0
1317317818
False
0
c2njqgs
t3_kv3ww
null
t1_c2njqgs
t1_c2nj0zs
null
1427663763
3
t5_2fwo
null
null
null
True
gc3
null
Sorry, I wrote this over 15 years ago... it actually wrote the text characters to the text mode part of the graphics card for the display... and was not good about archiving my home projects. I gave it up once I realized that you could make an evolutionary algorithm to make a realistic AI, but the fitness algorithm was the critical part, and impossible to predict what a good one was. But the algorithm for the genetics was pretty much what you see in this article, and the steps for an organism to move was similarly simple. I'll look on my old hard drives this friday to see if I can find it, I have my old drives in the garage.
null
0
1317317978
False
0
c2njreh
t3_ktg7o
null
t1_c2njreh
t1_c2ngdsc
null
1427663774
1
t5_2fwo
null
null
null
True
samandiriel
null
I bet using a real programming language would bring about an even larger increase in efficiency...
null
0
1317318001
False
0
c2njrj6
t3_kvg67
null
t1_c2njrj6
t3_kvg67
null
1427663776
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317318075
False
0
c2njrxs
t3_kuye2
null
t1_c2njrxs
t1_c2nh5bw
null
1427663781
0
t5_2fwo
null
null
null
True
harlows_monkeys
null
That's why I said "next generation" instead of "latest" and said it should be "seriously considered".
null
0
1317318166
False
0
c2njsf5
t3_kuit6
null
t1_c2njsf5
t1_c2nhmfy
null
1427663789
2
t5_2fwo
null
null
null
True
kodefuguru
null
Works in C-based languages, but not VB.
null
0
1317318392
False
0
c2njtpr
t3_kvg67
null
t1_c2njtpr
t1_c2njo2z
null
1427663805
11
t5_2fwo
null
null
null
True
Wavicle
null
All you Haskell guys who claim that the Haskell community is warm and friendly: > Now the obvious, **stupid**, way of finding the largest rectangle is to enumerate all rectangles in the image, and pick the largest from that list: Just remember that bolded bit. The *naive* approach may not be optimal, but calling it *stupid* is yet another bit of elitist snobbery that reflects poorly on you. Even the naive approach requires a bit of deep thinking.
null
0
1317318584
False
0
c2njus4
t3_kv3ww
null
t1_c2njus4
t3_kv3ww
null
1427663822
-10
t5_2fwo
null
null
null
True
maxinvictus
null
I'm going to go with the second one. Not me, however.
null
0
1317318789
False
0
c2njvzj
t3_kuye2
null
t1_c2njvzj
t1_c2nhdp9
null
1427663835
1
t5_2fwo
null
null
null
True
byron
null
>"Disciplined" is meaningless. In my world it isn't, but to each their own. >As for "useful", well, that can be judged by what they're used for. I mean, yes, tautologically so. Sorry, judging by your response, I guess I came off as dismissive or something; I didn't mean to.
null
0
1317318902
False
0
c2njwna
t3_ktg7o
null
t1_c2njwna
t1_c2njhub
null
1427663843
1
t5_2fwo
null
null
null
True
exitjudas
null
Well, you come off as a troll.
null
0
1317318929
False
0
c2njws5
t3_ktxk5
null
t1_c2njws5
t1_c2ngvs8
null
1427663845
1
t5_2fwo
null
null
null
True
jmmcd
null
Intentional tautology. They're used so widely and successfully that "useful" follows.
null
0
1317319010
False
0
c2njx8z
t3_ktg7o
null
t1_c2njx8z
t1_c2njwna
null
1427663851
1
t5_2fwo
null
null
null
True
byron
null
haha. Hi Nolan!
null
0
1317319062
False
0
c2njxk2
t3_kuxxa
null
t1_c2njxk2
t1_c2nj57p
null
1427663856
1
t5_2fwo
null
null
null
True
mypublicredditface
null
As someone who has multiple unsuccessful attempts to theme Notepad++ under his belt, let me say this: Have my babies.
null
0
1317319286
False
0
c2njyt6
t3_kuti3
null
t1_c2njyt6
t1_c2ngj3g
null
1427663872
2
t5_2fwo
null
null
null
True
PLanPLan
null
Yep, seems like a good combination though my personal preference is for PyQt.
null
0
1317319298
False
0
c2njyxz
t3_ku81g
null
t1_c2njyxz
t1_c2niwja
null
1427663874
1
t5_2fwo
null
null
null
True
Weezeb
null
What they have works fine. What should it be checked for? Reddit trolls?
null
0
1317319321
False
0
c2njz32
t3_krakt
null
t1_c2njz32
t1_c2mjzy7
null
1427663876
-2
t5_2fwo
null
null
null
True
ropers
null
http://www.google.ie/search?hl=en&q=javascript+detect+screen+resolution Incidentally, do a Google search and look at the (unedited) URL that Google creates -- it has biw and bih parameters... **tl;dr**: Every website you visit can get a pretty good idea what your screen resolution is -- especially if you run your browser fullscreen.
null
0
1317319385
False
0
c2njzgb
t3_ktenx
null
t1_c2njzgb
t1_c2n8guh
null
1427663882
1
t5_2fwo
null
null
null
True
Dr_Deadmeat
null
Ok. Thanks for clearing that up =)
null
0
1317319516
False
0
c2nk08e
t3_kvg67
null
t1_c2nk08e
t1_c2njtpr
null
1427663891
2
t5_2fwo
null
null
null
True
NueDumaz
null
I have a rectangle.....IN MY PANTS!!!
null
0
1317319647
False
0
c2nk0xw
t3_kv3ww
null
t1_c2nk0xw
t3_kv3ww
null
1427663900
-6
t5_2fwo
null
null
null
True
drspod
null
Can you find the link?
null
0
1317319697
False
0
c2nk18y
t3_kvg67
null
t1_c2nk18y
t1_c2njm52
null
1427663905
1
t5_2fwo
null
null
null
True
name_was_taken
null
Sounds like the BattleChess duck. http://stackoverflow.com/questions/2349378/new-programming-jargon-you-coined/2444361#2444361 I've used this to my advantage without really thinking about it. If I make something sound difficult and provide a solution I claim will work, people who can't program will just agree with me. If I fully clue them in, they'll want to make little changes to it until its inefficient and painful.
null
0
1317319746
False
0
c2nk1jy
t3_kva8g
null
t1_c2nk1jy
t3_kva8g
null
1427663908
1
t5_2fwo
null
null
null
True
iredwards
null
I use Inconsolata for publishing docs when the Consolas terms of use don't apply. It's nice having the option. I use Consolas myself and it maps to Inconsolata nicely.
null
0
1317319776
False
0
c2nk1pu
t3_kuti3
null
t1_c2nk1pu
t1_c2nhgug
null
1427663910
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317319811
False
0
c2nk1xg
t3_kuti3
null
t1_c2nk1xg
t3_kuti3
null
1427663913
1
t5_2fwo
null
null
null
True
jones77
null
Yup, me too. I think I gave the guy money twice. The second time, after the fact, I was like, this feels awfully familiar. Oh, well. It was worth it. Such a nice, clean, simple, non-space consuming font. I suspect from a classical typography perspective it's probably a shambles. But from a getting out of your way, maximum usability perspective it's simply dreamy. Hope he keeps up with the monitor sizes of the future ...
null
0
1317319995
False
0
c2nk2yv
t3_kuti3
null
t1_c2nk2yv
t1_c2nfwva
null
1427663927
3
t5_2fwo
null
null
null
True
joegrat
null
This is totally awesome. The perfect integration of computing and biology. I am hooked! Great job...
null
0
1317320005
False
0
c2nk30v
t3_kucjn
null
t1_c2nk30v
t3_kucjn
null
1427663934
2
t5_2fwo
null
null
null
True
SickZX6R
null
You're basically arguing against specialization. Sure, a C# developer should be able to deal with modifying Telerik controls given the source, but I bet a Telerik consultant or control developer would be able to do the job better and faster.
null
0
1317320008
False
0
c2nk31q
t3_kuye2
null
t1_c2nk31q
t1_c2ni2ig
null
1427663934
1
t5_2fwo
null
null
null
True
iconoklast
null
Anything to make coding in PHP more awful.
null
0
1317320069
False
0
c2nk3eo
t3_kuti3
null
t1_c2nk3eo
t1_c2ni6vu
null
1427663933
2
t5_2fwo
null
null
null
True
[deleted]
null
VB.NET is a compiled .NET language just like C#. C# is comparable to Java. VB.NET isn't slow and it isn't your father's VB.
null
0
1317320126
False
0
c2nk3qn
t3_kvg67
null
t1_c2nk3qn
t1_c2njrj6
null
1427663937
10
t5_2fwo
null
null
null
True
julesjacobs
null
That is awesome! The rest of your blog too :)
null
0
1317320149
False
0
c2nk3vo
t3_kuhn3
null
t1_c2nk3vo
t1_c2nhzqn
null
1427663940
4
t5_2fwo
null
null
null
True
ThunderMuff
null
>>I'm really curious about >Sorry, but that's only because of a lack of knowledge regarding the system tools on your part. What? (Edit: when I said "the usefulness of this system" I was referring to the usefulness of Boo) >Before he implements an (again already existing) online key value store, he should get the basics right in the console version. What are you referring to here when you say "already existing?"
null
0
1317320219
True
0
c2nk4ab
t3_ku73e
null
t1_c2nk4ab
t1_c2ngqmx
null
1427663944
1
t5_2fwo
null
null
null
True
myliverhatesme
null
He wants to be able to delete or edit an email after it is sent. So he wants to be able to modify emails in other people's inboxes. Once you sent it and it is in their inbox, it's theirs. End of story. What if they have a filter that copies all their emails to another folder upon receiving? Then you're really screwed. Or what if they read it first and then you choose to edit or delete it? What happens? I've sent emails with mistakes or to the wrong people before. But oh well, it's my fault. Just be more careful.
null
0
1317320257
False
0
c2nk4j3
t3_kuz9x
null
t1_c2nk4j3
t3_kuz9x
null
1427663948
1
t5_2fwo
null
null
null
True
ropers
null
It is better. :) It might also be possible to optionally slightly reduce the font size and whitspace throughout -- though at some point then, you'd probably just find yourself reimplementing a browser zoom feature in your website. OTOH, even that might not even be as daft as it sounds -- not every browser's zoom feature works the same, and I'm not even sure if all browsers have zoom features -- apart from the fact that many users might not find them or think of using them (whether such users would be likely to learn vi is another matter). Well, however, lots of effort, diminishing returns, yadda, yadda, yadda, so maybe let's just leave it at saying that yes, it is better. :)
null
0
1317320306
False
0
c2nk4sv
t3_ktenx
null
t1_c2nk4sv
t1_c2njjuk
null
1427663951
1
t5_2fwo
null
null
null
True
grauenwolf
null
This is why I wish Visual Studio had an extensible code analysis toolkit.
null
0
1317320324
False
0
c2nk4x1
t3_kvg67
null
t1_c2nk4x1
t1_c2njk81
null
1427663952
2
t5_2fwo
null
null
null
True
00kyle00
null
>the Adapter Pattern what the fuck? ~~Also, i wonder if behavior is defined if i pass it (void*)1~~ ~~We could be even more explicit and say its undefined for (void*)2 too.~~
null
0
1317320361
True
0
c2nk543
t3_kvfej
null
t1_c2nk543
t3_kvfej
null
1427663955
-1
t5_2fwo
null
null
null
True
nascent
null
> It's a custom dialog. Dialogs in MFC have value type controls embedded in them. You must mean, "can have" cause otherwise this goes against everything you've been saying. > Yes, but that does not limit you from using MyButton as a value type if you wish. This is true, but you are still dictating how MyDialog is to be used, even if you may be the only user. A good API will think ahead about how the API is going to be used and early on will be changed to meet the needs of its usage.
null
0
1317320377
False
0
c2nk57p
t3_kljc0
null
t1_c2nk57p
t1_c2nitjw
null
1427663955
1
t5_2fwo
null
null
null
True
grauenwolf
null
Monads don't necessarily mean mutable state.
null
0
1317320403
False
0
c2nk5de
t3_kv4xx
null
t1_c2nk5de
t1_c2njfoj
null
1427663957
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317320427
False
0
c2nk5iy
t3_kvj6y
null
t1_c2nk5iy
t3_kvj6y
null
1427663959
1
t5_2fwo
null
null
null
True
pnpbios
null
I agree, i guess, GTK locks it in to the gnome/unity desktop, and KDE is once again a 2nd class citizen.
null
0
1317320436
False
0
c2nk5l4
t3_ku81g
null
t1_c2nk5l4
t1_c2njyxz
null
1427663960
1
t5_2fwo
null
null
null
True
[deleted]
null
A single quote starts a comment in VB.
null
0
1317320439
False
0
c2nk5lt
t3_kvg67
null
t1_c2nk5lt
t1_c2nk08e
null
1427663960
3
t5_2fwo
null
null
null
True
catcradle5
null
Anyone else notice the guy is probably missing an equals sign in that if statement?
null
0
1317320478
False
0
c2nk5tj
t3_kuti3
null
t1_c2nk5tj
t3_kuti3
null
1427663964
1
t5_2fwo
null
null
null
True
redweasel
null
Oddly enough, I use USB-to-serial adapters on an almost-daily basis in my job as software engineer for a company making scientific instruments; it's amazing how RS232 lingers in certain industries. In my case, however, it's all about communicating "outward" from the PC to a device that requires serial comm; if I were to connect a terminal and communicate "inward," it seems to me I'd have to write my own "host" app for it to *talk to,* wouldn't I? Let me know if I'm wrong. I'll bet serial terminals are dirt cheap nowadays, if they're available at all. Either that or they're now so scarce that they're valuable again. Oh, and I just remembered I do still have my VAXstation -- but I don't think it has serial ports as it's meant to be single-user. Still, I may have an old DECserver around somewhere... Unfortunately the last time I tried to boot the VS it complained of pain in its SCSI controller and wouldn't get out of bed.
null
0
1317320662
False
0
c2nk6xi
t3_kuti3
null
t1_c2nk6xi
t1_c2njl0z
null
1427663979
1
t5_2fwo
null
null
null
True
grauenwolf
null
Those cycles are probably wasted anyways. Clearly it checks for a null, otherwise it would have seg faulted.
null
0
1317320680
False
0
c2nk71d
t3_kvfej
null
t1_c2nk71d
t1_c2njiah
null
1427663980
2
t5_2fwo
null
null
null
True
satayboy
null
I agree with the author, but the first paragraph seems to assert that this problem arose recently. It did not. When I interviewed for my first programming job, the manager asked, "What do you think is our biggest problem?" I gave a typical, naive, straight-out-of-college answer: "Keeping up with your competition!" "No", he said, "It's maintenance." That interview took place 25 years ago.
null
0
1317320803
False
0
c2nk7pl
t3_kursf
null
t1_c2nk7pl
t3_kursf
null
1427663990
2
t5_2fwo
null
null
null
True
benstiglitz
null
Many functions which are passed an NSError** don’t set the pointer-to NSError* unless they fail. If you don’t init those NSErrors to nil they could have any random stack junk in them. The error-check code is right because it checks plistData, but the comments are wrong since they mention what the error will equal on success. Well, almost right—it releases the NSError, which is wrong.
null
0
1317320934
False
0
c2nk8ft
t3_krakt
null
t1_c2nk8ft
t1_c2njz32
null
1427663999
6
t5_2fwo
null
null
null
True
drysart
null
> Also, i wonder if behavior is defined if i pass it (void*)1 Looking at [the MSDN documentation](http://msdn.microsoft.com/library/aa366701.aspx): Nope, the behavior is not defined if you pass it (void*)1. It's only defined if you pass it a pointer that was returned by HeapAlloc or HeapReAlloc. Any other value is undefined. The only thing special about NULL is that it is explicitly defined to be undefined. I don't see what's "harder than it needs to be" about this. Only pass it things you can actually free. That's not a particularly burdensome requirement of a free function.
null
0
1317321012
False
0
c2nk8vt
t3_kvfej
null
t1_c2nk8vt
t1_c2nk543
null
1427664007
7
t5_2fwo
null
null
null
True
00kyle00
null
~~Yes. I was trying to point out that NULL is the same case as 1, 2, etc. these are not returned by HeapAlloc nor HeapReAlloc.~~ ~~As you said, NULL is only special here because they included it there. 1, 2, etc would be the same.~~ Actually, i take it all back. HeapAlloc / HeapReAlloc return NULL upon failure, so it needs to be special cased in HeapFree documentation (or mentioned that only pointers returned on success of Alloc functions are OK).
null
0
1317321262
True
0
c2nkac8
t3_kvfej
null
t1_c2nkac8
t1_c2nk8vt
null
1427664024
2
t5_2fwo
null
null
null
True
kamatsu
null
Am I missing something? Of course mapReduce is a monad - parallel list comprehensions, essentially?
null
0
1317321355
False
0
c2nkaw4
t3_kv4xx
null
t1_c2nkaw4
t3_kv4xx
null
1427664030
3
t5_2fwo
null
null
null
True
LudoA
null
Isn't what you're proposing contrary to the idea the US was built on?
null
0
1317321399
False
0
c2nkb4l
t3_kuye2
null
t1_c2nkb4l
t1_c2nhlsw
null
1427664033
1
t5_2fwo
null
null
null
True
[deleted]
null
Gotta give it to the Haskell community, they're crafty and full of imagination when it comes to pushing the Haskell agenda without being too obvious.
null
0
1317321447
False
0
c2nkbec
t3_kv3ww
null
t1_c2nkbec
t3_kv3ww
null
1427664036
-10
t5_2fwo
null
null
null
True
drysart
null
I imagine the reason NULL is called out in particular is because HeapAlloc and HeapReAlloc return NULL on failure; so it's actually a legitimate reduction of the allowable argument value space, rather than just random commentary duplicating the implicit "garbage in, garbage out" property of the Win32 API.
null
0
1317321547
False
0
c2nkby7
t3_kvfej
null
t1_c2nkby7
t1_c2nkac8
null
1427664045
7
t5_2fwo
null
null
null
True
[deleted]
null
You shut your filthy goddamn mouth about Vim.
null
0
1317321665
False
0
c2nkcml
t3_kuti3
null
t1_c2nkcml
t1_c2ngpxd
null
1427664053
4
t5_2fwo
null
null
null
True
[deleted]
null
It's great for Roguelikes!
null
0
1317321688
False
0
c2nkcqy
t3_kuti3
null
t1_c2nkcqy
t1_c2nepjy
null
1427664065
2
t5_2fwo
null
null
null
True
dmwit
null
Opening and closing braces are not optional in Python, it's just that you spell your opening brace with a spacebar. But as a Haskell programmer, I chuckled. (edit: the joke here, for you non-Haskell-programmers, is that our `if` construct doesn't require braces around the `then` or `else` clauses, *and* the grammar is not ambiguous... but this is because there must _always_ be an `else` clause)
null
0
1317321747
True
0
c2nkd32
t3_kvg67
null
t1_c2nkd32
t1_c2njm52
null
1427664059
7
t5_2fwo
null
null
null
True
mappum
null
Lulz for returning 1. karma++;
null
0
1317321806
False
0
c2nkdf7
t3_ku203
null
t1_c2nkdf7
t1_c2ngll7
null
1427664065
3
t5_2fwo
null
null
null
True
drysart
null
> Well so was AJAX :) I remember using XMLHttpRequest and Javascript to live update sections of a webpage in IE5.0 back in 1999. If only I'd thought to steal Microsoft's concept, give it a name of my own invention, and the pretend I invented the paradigm myself; I could have been famous!
null
0
1317321812
False
0
c2nkdgl
t3_kv57g
null
t1_c2nkdgl
t1_c2njcs0
null
1427664065
0
t5_2fwo
null
null
null
True
SweetIrony
null
Rest is just a way of structuring an API that any application could use. there is no conflict. I think you may be trying to think that you should bind objects directly with a REST interface, but thats not a great way to build API. An API is an actual application, just like the front end is its own application. You should use an MVC to MVC architecture to form the request between them. Your data is the view, the handler is the controller, and the models between them. Trying to bind a RESTful protocol directly to a model without a controller would be jarring and hurt your application architecture. It would also create message bloat and make it hard to build specific API's to target platforms. The only benefit to it would be to speed up initial deployment and make the client more powerful by delegating application logic to it. Eventually that spools up into a complex almost MVC model stack, which should be avoided at all costs. But more to point, most of the issues he raises are true of any successful application, not just REST. Its the nature for any piece of code to turn into a "Ball of Mud" as you add more and more engineering to it without an overriding architectural vision and enforcement.
null
0
1317321855
False
0
c2nkdq3
t3_kv57g
null
t1_c2nkdq3
t1_c2nhkiy
null
1427664069
2
t5_2fwo
null
null
null
True
wadcann
null
>>the Adapter Pattern > >what the fuck? Design patterns are the Esperanto of the programming world.
null
0
1317322048
False
0
c2nkerh
t3_kvfej
null
t1_c2nkerh
t1_c2nk543
null
1427664081
1
t5_2fwo
null
null
null
True
myliverhatesme
null
Go fuck yourself.
null
0
1317322097
False
0
c2nkf3j
t3_ku203
null
t1_c2nkf3j
t1_c2nb3t6
null
1427664085
-1
t5_2fwo
null
null
null
True
codewarrior0
null
I don't want the braces to be optional! There's too much room for ambiguity. I'd rather use a restricted subset of whatever-language-I'm-using where the compiler screams whenever I omit the "optional" braces.
null
0
1317322175
False
0
c2nkfkf
t3_kvg67
null
t1_c2nkfkf
t1_c2nkd32
null
1427664092
5
t5_2fwo
null
null
null
True
zip117
null
Why would you not be able to use a certain font for publishing documentation, especially one that comes free with Windows? This sounds silly to me.
null
0
1317322225
False
0
c2nkfte
t3_kuti3
null
t1_c2nkfte
t1_c2nk1pu
null
1427664095
3
t5_2fwo
null
null
null
True
dmwit
null
> You may wonder whether this method also works in higher dimensions. And the answer to that question is no. The reason is that there can be more than O( n^3 ) maximal cubes in a three dimensional image. In fact, there can be at least O( n^d^2 ) maximal hypercubes in d dimensions. I don't understand this argument. There are more than O( n^2 ) maximal hypercubes in 2 dimensions according to this formula (O( n^2^2 )=O( n^4 )), but we saw that we only needed to consider O( n^2 ) of them. So what gives?
null
0
1317322270
False
0
c2nkg3t
t3_kv3ww
null
t1_c2nkg3t
t3_kv3ww
null
1427664098
7
t5_2fwo
null
null
null
True
ash_gti
null
Making it a monad is a useful language construct in Haskell that will let you abstract away a number of details to let you get the job done. If your working in a language you might as well use all of that languages constructs to accomplish the task.
null
0
1317322282
False
0
c2nkg5y
t3_kv4xx
null
t1_c2nkg5y
t1_c2njcd7
null
1427664099
7
t5_2fwo
null
null
null
True
mushishi
null
Good! I'll leave it at that for the moment, and maybe rethink about this if I make a mobile version.
null
0
1317322316
False
0
c2nkgdg
t3_ktenx
null
t1_c2nkgdg
t1_c2nk4sv
null
1427664103
2
t5_2fwo
null
null
null
True
captainAwesomePants
null
He is speaking in terms of time complexity, a well-defined concept in computer science. He's not saying there are no possible improvements or speedups, but he is saying that the absolute worst case time of an algorithm that solves this problem on an NxN square must be at least O(N^2), since there are N^2 pixels, and you must examine each pixel at least one time (which would be N^2 operations). You could imagine there would be shortcuts where you could discount some pixels without needing to examine them in some cases, but if you imagine a field where every pixel is "true," you'd need to check each one to make sure it was "true." If you didn't, your algorithm would be wrong.
null
0
1317322320
False
0
c2nkgef
t3_kv3ww
null
t1_c2nkgef
t1_c2ni3b6
null
1427664103
3
t5_2fwo
null
null
null
True
wadcann
null
>If someone thinks win32 programming is harder than it needs to be because they aren't shouted at when they break the rules set by the API I think that the point is that they want the rules to include a rule saying "If I don't like these arguments, I'll tell you instead of reformatting your hard drive". >In general, no low level API should be required to validate the data passed by the developer. It's just a waste of cycles. In a world with perfect developers (and perfect APIs that are never unclear), that would be correct. Also in that world, programs would not have bugs and static typing would be unnecessary. In practice, I'd like to know if the library is confused, rather than having to figure out myself whether the library is broken or it's being miscalled. I strongly suspect that any CPU overhead is almost always minimal.
null
0
1317322475
False
0
c2nkh9q
t3_kvfej
null
t1_c2nkh9q
t1_c2njiah
null
1428192700
5
t5_2fwo
null
null
null
True
tairygreene
null
umm this is common knowledge to anyone working on secure systems.
null
0
1317322614
False
0
c2nki1m
t3_kuicc
null
t1_c2nki1m
t3_kuicc
null
1427664125
-1
t5_2fwo
null
null
null
True
byronsucks
null
Sup dawg let me know if you want to hangout at the David Foster Wallace subreddit sometime.
null
0
1317322634
False
0
c2nki65
t3_kuxxa
null
t1_c2nki65
t1_c2njxk2
null
1427664127
1
t5_2fwo
null
null
null
True
ultimatt42
null
I hear whitespace is pretty easy to learn, too.
null
0
1317322731
False
0
c2nkip9
t3_kv3ww
null
t1_c2nkip9
t1_c2njqfc
null
1427664133
3
t5_2fwo
null
null
null
True
khoury
null
What's the justification for having them?
null
0
1317322943
False
0
c2nkjvw
t3_kuye2
null
t1_c2nkjvw
t1_c2ngoer
null
1427664147
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317322991
False
0
c2nkk7b
t3_kvj6y
null
t1_c2nkk7b
t3_kvj6y
null
1427664152
3
t5_2fwo
null
null
null
True
funkah
null
Booooo.
null
0
1317323052
False
0
c2nkkke
t3_kvg67
null
t1_c2nkkke
t1_c2njtpr
null
1427664156
-1
t5_2fwo
null
null
null
True
untogethered
null
Care to back that up? It's pretty much accepted fact that there's a real shortage of decent software engineers, particularly in the New York area. Just one article: http://www.businessinsider.com/engineer-shortage-2010-9
null
0
1317323099
False
0
c2nkktg
t3_kuye2
null
t1_c2nkktg
t1_c2njrxs
null
1427664160
0
t5_2fwo
null
null
null
True
eras
null
The advantage is that a tuple's elements don't need to be of the same type. In fact, I dare to claim that most often they aren't, so perhaps my reasons for using tuples is different from yours.
null
0
1317323143
False
0
c2nkl2k
t3_ktxzn
null
t1_c2nkl2k
t1_c2nil32
null
1427664163
2
t5_2fwo
null
null
null
True
Sycosys
null
there is no right answer in evolution, just want works for now.. regardless of how well it works by your subjective perspective
null
0
1317323238
False
0
c2nkllo
t3_kucjn
null
t1_c2nkllo
t1_c2nhhjy
null
1427664171
0
t5_2fwo
null
null
null
True
mcandre
null
ML wouldn't have let the old code compile.
null
0
1317323240
False
0
c2nklm7
t3_kvg67
null
t1_c2nklm7
t3_kvg67
null
1427664171
3
t5_2fwo
null
null
null
True
dmwit
null
In fact, I think you can write a dimension-polymorphic implementation that runs in O( (2d)! n^d ) time, where `n` is the length of one side of the hypercube. The observation made in the post is that each maximal rectangle contains (at least) one point for which the process "expand up, then left, then right" reconstructs that rectangle. (Expanding down gets hidden by trying this process with a lower pixel.) It seems plausible that a correspondingly generalized lemma stating that each maximal hypercube contains at least one point for which the process "choose an ordering of the possible directions, then expand in each of those directions in order" would reconstruct that hypercube. In two dimensions, it seems to turn out that one of the orderings subsumes the others; some similar optimization is probably possible in higher dimensions, too, though I haven't (yet? =) figured out the details.
null
0
1317323270
True
0
c2nkls0
t3_kv3ww
null
t1_c2nkls0
t1_c2nkg3t
null
1427664173
0
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317323660
False
0
c2nknz5
t3_kvj6y
null
t1_c2nknz5
t1_c2nk5iy
null
1427664201
1
t5_2fwo
null
null
null
True
cowgod42
null
I love this one. I use it for everything.
null
0
1317323749
False
0
c2nkohr
t3_kuti3
null
t1_c2nkohr
t1_c2nel70
null
1427664209
1
t5_2fwo
null
null
null
True
one-half
null
You don't need a font that lets you see more code horizontally, you need to use shorter lines. If that makes you need too much vertical space, then you need to write less code.
null
0
1317324068
False
0
c2nkqbv
t3_kuti3
null
t1_c2nkqbv
t3_kuti3
null
1427664233
0
t5_2fwo
null
null
null
True
pgngugmgg
null
First off, let me make a statement: I probably understand evolution much more than you would like to admit. Now RE your belief: *Whether or not there's a creator behind the universe is 99.99999999999999% irrelevant to the concept of evolution*. Let's consider an argument: creationism is 99.99999999999999% relevant to evolutionism, because they're mutually exclusive. Agree, yeah? Now let's consider another argument: evolutionism is 99.99999999999999% relevant to evolution. Agree, yeah? So in light of this, I would argue whether or not there's a creator behind the universe is 99.99999999999999% **relevant** to the concept of evolution. The above is by logic. Now, let's see some facts. Consider the GA worm program. There is some sort/degree of evolution. That the evolution exists and how it performs is mainly determined by the programmer. If there wasn't the programmer, the program and the evolution therein would not exist. So either way, I don't see how your belief can stand. Now let's switch to another point you made: *Fact is that the forces is what we need to know to understand how beings can come into existence without manual intervention by a sentient being / creator.* This is so plainly wrong that I don't know where to start counter-arguing. But let me try saying some real facts first. Fact I: You don't know there is a Creator or not. Fact II: If there is a Creator, you don't know if He will intervent your understanding or not. If you don't know these, and as a matter of fact you don't know indeed, you cannot claim "the forces is what we need to know ...". If you cannot make even that claim, it is plainly wrong to call that claim as "Fact". I have to say your "Fact is ..." is simply a guess, sorry. Let's examine your guess a bit more. If it could be right, we need to ask what forces leads to such an understanding. Put in another way, by what forces, you can argue your guess is a correct understanding. There is none, I bet.
null
0
1317324075
False
0
c2nkqd4
t3_kucjn
null
t1_c2nkqd4
t1_c2nh2ey
null
1427664233
0
t5_2fwo
null
null
null
True
[deleted]
null
I'm not sure what you mean. In any other statically typed language (I don't know Scala actually, but I do know Haskell) you can't "combine" a float and int in any reasonable way, on accident. `(+)` in Haskell can work over either Ints, or Floats, as they are both instances of `Num`, but you can never confuse them. There scariness of floats is still there, sure. The main thing is that it's just missing a convenient abstraction. The fact you have to pollute your namespace with TONS of operators for every individual specialization of a type is rather sad and annoying, for example. It means I have to rewrite functions based on the instantiation of some type parameter, *when that's what polymorphism is already supposed to provide.* Is there a good solution to this in OCaml that doesn't involve functors? I mean they're not an incorrect solution, I just personally find them heavyweight and wonder if there's a better way.
null
0
1317324274
True
0
c2nkric
t3_kuhn3
null
t1_c2nkric
t1_c2niev9
null
1427664249
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317324479
False
0
c2nkspv
t3_kuti3
null
t1_c2nkspv
t1_c2ngj3g
null
1427664263
1
t5_2fwo
null
null
null
True
pgngugmgg
null
I don't think you have to talk about it in terms of the physical laws. Just some abstract thinking will suffice. You cannot ignore the environment when you try to establish the point: *there no requirement for creation*. By doing so, your reasoning is seriously flawed, and your conclusion has little chance to be right. Good luck with that belief.
null
0
1317324693
False
0
c2nktx1
t3_kucjn
null
t1_c2nktx1
t1_c2nejwc
null
1427664279
1
t5_2fwo
null
null
null
True
samandiriel
null
Perhaps not, but it sure is fun to poke VB devs with stick :)
null
0
1317324787
False
0
c2nkufw
t3_kvg67
null
t1_c2nkufw
t1_c2nk3qn
null
1427664286
-1
t5_2fwo
null
null
null