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 | sjw79 | null | C isn't simple, it just looks it. For example, the following
unsigned int x;
...
if (x < x + 1) {
no overflow case
} else {
overflow case
}
can be compiled to
no overflow case
which is a bit surprising if you think that check determines if
x + 1 overflows ...
Also, for compilers something with sum types makes life much easier, IMHO. | null | 0 | 1316954569 | False | 0 | c2mfrh7 | t3_kpqzv | null | t1_c2mfrh7 | t1_c2mampj | null | 1427644459 | 0 | t5_2fwo | null | null | null |
True | snip596 | null | For those more comfortable with pointers, you can look at an array's built in *ptr* field to see it move about:
writefln("length %s, capacity %s, address: 0x%x", stack.length, stack.capacity, stack.ptr);
Gives me:
> length 3, capacity 3, address: 0x2f3fd0
>
> Push: length 4, capacity 7, address: 0x2f2f60
>
> Push: length 5, capacity 7, address: 0x2f2f60
>
> Pop: length 4, capacity 0, address: 0x2f2f60
>
> Push: length 5, capacity 7, address: 0x2f2f40
>
> Pop: length 4, capacity 0, address: 0x2f2f40
>
> Pop: length 3, capacity 0, address: 0x2f2f40
>
> Push: length 4, capacity 7, address: 0x2f2f20 | null | 0 | 1316954690 | False | 0 | c2mfroh | t3_kqoz2 | null | t1_c2mfroh | t3_kqoz2 | null | 1427644461 | 5 | t5_2fwo | null | null | null |
True | sjw79 | null | Speed of what? Compilation? Development?
Maybe when you are compiling millions of LOC then the compiler becomes a bottleneck, but in a project like this I think the amount of developer time is critical, especially when you start thinking about optimisations etc. | null | 0 | 1316954735 | False | 0 | c2mfrr8 | t3_kpqzv | null | t1_c2mfrr8 | t1_c2mc25a | null | 1427644462 | 1 | t5_2fwo | null | null | null |
True | steven_h | null | Space shuttle firmware is more likely to have been proven correct, which is way better than testing. | null | 0 | 1316955250 | False | 0 | c2mfsos | t3_klypn | null | t1_c2mfsos | t1_c2m1pje | null | 1427644475 | 1 | t5_2fwo | null | null | null |
True | Poddster | null | All those words, and he just repeats the same thing over and over without actually saying why, in any concrete way.
I think I agree with him, but who can I be sure when it's so badly written? | null | 0 | 1316955310 | False | 0 | c2mfssi | t3_kq001 | null | t1_c2mfssi | t3_kq001 | null | 1427644481 | 1 | t5_2fwo | null | null | null |
True | Poddster | null | Jim? | null | 0 | 1316955391 | False | 0 | c2mfsy6 | t3_kq001 | null | t1_c2mfsy6 | t1_c2mb1cj | null | 1428192931 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1316955593 | False | 0 | c2mfta2 | t3_kqqd5 | null | t1_c2mfta2 | t3_kqqd5 | null | 1427644484 | 7 | t5_2fwo | null | null | null |
True | steven_h | null | The things that business folk produce are in no sense specifications. Software specifications are written in things like Z and bear an uncomfortable resemblance to program code. What programmers are given is a wish list, not a specification. | null | 0 | 1316955616 | False | 0 | c2mftbn | t3_klypn | null | t1_c2mftbn | t1_c2lew0u | null | 1427644484 | 1 | t5_2fwo | null | null | null |
True | bart2019 | null | If your stack pointer is (rather) independent of the actual allocation (nad lenghth) of the array, you should never see any slowness; except if the array is too small to contain your entire stack, at what time you can reallocate.
I mean: your array may have room for, say, 32 items, while the stack contains only 3. That means you have 29 empty slots. Pushing an item would just use one of the free slots. | null | 0 | 1316956051 | False | 0 | c2mfu2d | t3_kqoz2 | null | t1_c2mfu2d | t1_c2mf6bw | null | 1427644493 | 2 | t5_2fwo | null | null | null |
True | NevilleDNZ | null | ECMA also publish the JavaScript (i.e., ECMAscript) standard, and also the CLR (Common Language Runtime) and C## standards developed by Microsoft.
| null | 0 | 1316956064 | False | 0 | c2mfu3d | t3_kqdhm | null | t1_c2mfu3d | t3_kqdhm | null | 1427644496 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1316956535 | False | 0 | c2mfuxp | t3_kq27q | null | t1_c2mfuxp | t1_c2mc4wl | null | 1427644507 | 2 | t5_2fwo | null | null | null |
True | tau-lepton | null | Excellent, then they'll ignore it and I can continue to use the toy to get work done. | null | 0 | 1316956648 | False | 0 | c2mfv5v | t3_kpecl | null | t1_c2mfv5v | t1_c2mf935 | null | 1427644510 | 8 | t5_2fwo | null | null | null |
True | weavejester | null | Ah, thank you! I spent ages looking for that, but my google-fu was clearly not good enough.
| null | 0 | 1316956720 | False | 0 | c2mfvas | t3_kpk8d | null | t1_c2mfvas | t1_c2meyel | null | 1427644510 | 5 | t5_2fwo | null | null | null |
True | gthank | null | Thanks for the info. I had heard both ways, with more votes for GWT, but never had a solid source. | null | 0 | 1316957254 | False | 0 | c2mfwc2 | t3_kq27q | null | t1_c2mfwc2 | t1_c2mfqdx | null | 1427644522 | 1 | t5_2fwo | null | null | null |
True | ecafyelims | null | http://mitpress.mit.edu/sicp/full-text/book/book.html | null | 0 | 1316957424 | False | 0 | c2mfwns | t3_kqixo | null | t1_c2mfwns | t1_c2mdx81 | null | 1428192928 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | What is an iPad-kindle? | null | 0 | 1316957435 | False | 0 | c2mfwoe | t3_kqixo | null | t1_c2mfwoe | t1_c2mf44c | null | 1428192928 | 1 | t5_2fwo | null | null | null |
True | MaikB | null | Altering shaders in Blender looks to me like a good hands-on way to try out shader scripts
* [First tutorial on this](http://en.wikibooks.org/wiki/GLSL_Programming/Blender/Minimal_Shader)
I will definitely play around with this :D | null | 0 | 1316957623 | True | 0 | c2mfx0z | t3_kqqd5 | null | t1_c2mfx0z | t3_kqqd5 | null | 1427644532 | 7 | t5_2fwo | null | null | null |
True | gthank | null | I'm guessing that number is actually even smaller if you add the constraint that the programmer has to beat it in at least two different domains. | null | 0 | 1316957627 | False | 0 | c2mfx1c | t3_kq27q | null | t1_c2mfx1c | t1_c2mckye | null | 1427644532 | 6 | t5_2fwo | null | null | null |
True | combustible | null | I came here expecting and was not disappointed. | null | 0 | 1316957673 | False | 0 | c2mfx4j | t3_kqixo | null | t1_c2mfx4j | t1_c2mdwxs | null | 1427644533 | 3 | t5_2fwo | null | null | null |
True | Maxious | null | Haha, getting 3D Movie Maker to work under QEMU/VirtualBox/VMWare is a fun project on it's own. Worth it for the nostalgia :D | null | 0 | 1316957757 | False | 0 | c2mfxa7 | t3_kmshh | null | t1_c2mfxa7 | t1_c2lu5en | null | 1427644534 | 1 | t5_2fwo | null | null | null |
True | Poddster | null | I'd be dismayed if I was writing a graphics engine and didn't already know 3/4 of this stuff. | null | 0 | 1316957859 | False | 0 | c2mfxio | t3_kqqd5 | null | t1_c2mfxio | t1_c2mfta2 | null | 1427644538 | -24 | t5_2fwo | null | null | null |
True | expertunderachiever | null | Technically we're ISO 90210 [whatever] certified so we're listed as a C99 shop. But most of what we do is C90 compatible. So technically it was implicit in our standards that tools are to be written in C unless designed otherwise.
It was just a simple case of giving the intern too much rope. The guy is a smart dude [he works for us full time now] but at the time he was more interested in intellectual coolness than business savvy. It didn't occur to him that on our dozen other platforms Haskell wasn't that well supported [doesn't help that he's a Gentoo fan too...].
| null | 0 | 1316958030 | False | 0 | c2mfxvu | t3_kos4z | null | t1_c2mfxvu | t1_c2mfqg6 | null | 1427644543 | 1 | t5_2fwo | null | null | null |
True | renke2 | null | All I need is Kindle now. | null | 0 | 1316958102 | False | 0 | c2mfy0o | t3_kqixo | null | t1_c2mfy0o | t3_kqixo | null | 1427644555 | 3 | t5_2fwo | null | null | null |
True | Ph0X | null | Do you know what some differences are? I don't see why you have to make a custom version. Isn't it just text at the end of the day ? Can't the Kindle handle converting PDFs into it's own thing? | null | 0 | 1316958114 | False | 0 | c2mfy1m | t3_kqixo | null | t1_c2mfy1m | t1_c2mfa3z | null | 1427644555 | 1 | t5_2fwo | null | null | null |
True | QuestionMarker | null | I'd be dismayed if I couldn't write a graphics engine to learn this stuff. | null | 0 | 1316958603 | False | 0 | c2mfz29 | t3_kqqd5 | null | t1_c2mfz29 | t1_c2mfxio | null | 1427644575 | 25 | t5_2fwo | null | null | null |
True | astrashe | null | I read several books on my iPhone before someone gave me a Kindle as a gift. I didn't want a Kindle -- I thought, "I can do this on my phone, why carry another device."
The actual Kindle is much, much better. I don't know if it's the e-ink, or the larger screen, or the way the forward and backward buttons work. But once I had the Kindle, I never read anything else on the phone again.
More importantly, I started to read about twice as many books in a month as I had in the past. | null | 0 | 1316958624 | False | 0 | c2mfz3s | t3_kqixo | null | t1_c2mfz3s | t1_c2mfgy0 | null | 1427644562 | 10 | t5_2fwo | null | null | null |
True | LoganCale | null | You can load mobi files into Kindle for iOS apps by either emailing them to yourself or accessing them via Mobile Safari. An option to "Open in Kindle" will appear when clicking the files. | null | 0 | 1316958807 | False | 0 | c2mfzi5 | t3_kqixo | null | t1_c2mfzi5 | t1_c2mf44c | null | 1427644570 | 2 | t5_2fwo | null | null | null |
True | Fabien4 | null | > If you start trying to argue basic algebra with a professor of math ("does 2 + 2 REALLY equal 4")
It's not trivial, actually.
The computation itself is fairly simple:
S(S(0)) + S(S(0)) = S( S(S(0))+S(0) ) = S( S(S(S(0))+0) ) = S( S(S(S(0))) )
but that only comes after you've proved that the Peano axioms are coherent and work as expected.
Besides, you can prove that (2+2=5) implies that you're the Pope, which is pretty cool. | null | 0 | 1316958820 | False | 0 | c2mfzje | t3_korcu | null | t1_c2mfzje | t1_c2lzuwk | null | 1427644570 | 2 | t5_2fwo | null | null | null |
True | generic_0 | null | Hopefully smart answer:
[calibre](http://calibre-ebook.com/)
I use it for my Kindle. Works wonderfully. Mobi files are supported without any extra effort, but this program will also convert other filetypes fairly transparently for you as well. | null | 0 | 1316958963 | False | 0 | c2mfzuc | t3_kqixo | null | t1_c2mfzuc | t1_c2meb2w | null | 1427644573 | 11 | t5_2fwo | null | null | null |
True | astrashe | null | This is really great. Thanks!
Does anyone know if these are the cleanest/highest resolution copies of the videos available?
http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/
I know there are smaller files in newer formats available. But I assume they were made from these. Is that right?
| null | 0 | 1316959021 | False | 0 | c2mfzz4 | t3_kqixo | null | t1_c2mfzz4 | t3_kqixo | null | 1427644576 | 2 | t5_2fwo | null | null | null |
True | Poddster | null | You'll end up with a terrible graphic engine if you don't already know this stuff.
It's putting the cart before the horse: Why are you making a graphics engine if you don't even know graphics? | null | 0 | 1316959666 | False | 0 | c2mg1i6 | t3_kqqd5 | null | t1_c2mg1i6 | t1_c2mfz29 | null | 1427644590 | -18 | t5_2fwo | null | null | null |
True | severeon | null | That depends on the amount of client side Javascript you use - we have a lot. We were using Pypy before we made the switch.
I've used and stress tested both languages. Have you? Be it the popular stand point for programmers or not - we like NodeJS where I work. | null | 0 | 1316959753 | False | 0 | c2mg1pg | t3_kq27q | null | t1_c2mg1pg | t1_c2maj85 | null | 1427644593 | 1 | t5_2fwo | null | null | null |
True | danharaj | null | Pedagogical example? | null | 0 | 1316959813 | False | 0 | c2mg1vs | t3_kqqd5 | null | t1_c2mg1vs | t1_c2mfo8f | null | 1427644596 | 7 | t5_2fwo | null | null | null |
True | Poddster | null | I know nothing about D: What does the ~ operator do on an array? | null | 0 | 1316959908 | False | 0 | c2mg23w | t3_kqoz2 | null | t1_c2mg23w | t3_kqoz2 | null | 1427644599 | 5 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1316960087 | False | 0 | c2mg2jw | t3_kqqd5 | null | t1_c2mg2jw | t1_c2mg1i6 | null | 1428192924 | 16 | t5_2fwo | null | null | null |
True | QuestionMarker | null | Perhaps you missed the words "trying" and "toy" in the original comment. | null | 0 | 1316960336 | False | 0 | c2mg34c | t3_kqqd5 | null | t1_c2mg34c | t1_c2mg1i6 | null | 1427644618 | 22 | t5_2fwo | null | null | null |
True | jmking | null | lol, wow, projecting much?
I'm not in any way a proponent of TDD as "the one true way". I'm just in favour of automated testing period. I think there's some value in writing tests first in some cases, but I'm not going to berate someone for writing them after either. | null | 0 | 1316960429 | False | 0 | c2mg3cf | t3_kq001 | null | t1_c2mg3cf | t1_c2metiw | null | 1427644630 | 2 | t5_2fwo | null | null | null |
True | gnuvince | null | Array concatenation. | null | 0 | 1316960699 | False | 0 | c2mg41i | t3_kqoz2 | null | t1_c2mg41i | t1_c2mg23w | null | 1427644634 | 5 | t5_2fwo | null | null | null |
True | [deleted] | null | I didn't actually understand e-ink (how embarrassing) until my wife gave me my graphite Kindle DX as a gift. I'm 46 years old so, like most people over 40, I have presbyopia. I've also had a detached retina be reattached. So my vision isn't what it used to be, and the Kindle is an absolute Godsend. | null | 0 | 1316960831 | False | 0 | c2mg4ed | t3_kqixo | null | t1_c2mg4ed | t1_c2mfz3s | null | 1427644637 | 6 | t5_2fwo | null | null | null |
True | [deleted] | null | Head and shoulders the best Java-based Scheme is [SISC](http://sisc-scheme.org). | null | 0 | 1316960959 | False | 0 | c2mg4rk | t3_kqixo | null | t1_c2mg4rk | t1_c2meo5a | null | 1427644640 | 3 | t5_2fwo | null | null | null |
True | tdk2fe | null | Awesome - i'll certainly check back. Thank! | null | 0 | 1316961188 | False | 0 | c2mg5cp | t3_kq001 | null | t1_c2mg5cp | t1_c2mbjse | null | 1427644645 | 1 | t5_2fwo | null | null | null |
True | -main | null | Have a look through [these](http://www.cliki.net/HTML%20generator). CL-Markup and CL-WHO both look like the kind of thing you're looking for. The best thing about these, btw, is that you can just insert lisp code anywhere. | null | 0 | 1316961227 | False | 0 | c2mg5g9 | t3_kos4z | null | t1_c2mg5g9 | t1_c2mdj5q | null | 1427644646 | 2 | t5_2fwo | null | null | null |
True | TheNewAndy | null | No it can't. unsigned overflow is perfectly well defined in C, and it will always wrap around, and do so in a 2's complementey type way.
In any case, if you had code like this it would be better to just write:
if (x != INT_MAX) {
no overflow case
} else {
overflow case
}
It is much clearer don't you think? | null | 0 | 1316961310 | False | 0 | c2mg5nx | t3_kpqzv | null | t1_c2mg5nx | t1_c2mfrh7 | null | 1427644648 | 2 | t5_2fwo | null | null | null |
True | officemonkey | null | >like most people over 40, I have presbyopia.
Me too, it hit me when I was 43 and now I'm pretty useless without reading glasses. The Kindle makes me grateful that I won't have to get "Large Print" editions of books at the library. | null | 0 | 1316962141 | False | 0 | c2mg7wp | t3_kqixo | null | t1_c2mg7wp | t1_c2mg4ed | null | 1427644674 | 3 | t5_2fwo | null | null | null |
True | astrashe | null | I'm 48, and I've got presbyopia as well.
I think that as I got older and small text started to put more strain on my eyes, I started to read less. It wasn't something I was aware of. But I do read more than twice as much as I did before I got the Kindle. It's been a huge thing.
I actually left mine in a seat pocket on a plane about a week ago. I've been waiting to see if the airline will find it before I buy a new one, and reading on my phone's Kindle app. It's just not the same.
| null | 0 | 1316962196 | False | 0 | c2mg82n | t3_kqixo | null | t1_c2mg82n | t1_c2mg4ed | null | 1427644676 | 1 | t5_2fwo | null | null | null |
True | quantumcoffeemug | null | I wish they put up the LaTex file for the book. Reading it in html with symbols put in as images is really ugly. | null | 0 | 1316962238 | False | 0 | c2mg86x | t3_kqixo | null | t1_c2mg86x | t1_c2me1vv | null | 1427644678 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | Righto, I see. Too much rope to hang himself. | null | 0 | 1316962268 | False | 0 | c2mg8a5 | t3_kos4z | null | t1_c2mg8a5 | t1_c2mfxvu | null | 1427644679 | 1 | t5_2fwo | null | null | null |
True | capnrefsmmat | null | I did that as soon as I saw the SICP adaptation, but the .gif renderings of the equations just look awful.
Also, SICM doesn't seem to be Creative Commons licensed like SICP is. | null | 0 | 1316963002 | False | 0 | c2mgaiz | t3_kqixo | null | t1_c2mgaiz | t1_c2me1vv | null | 1427644709 | 2 | t5_2fwo | null | null | null |
True | dyydvujbxs | null | A programmer who wastes 32 GB today will waste 64 GB tomorrow. | null | 0 | 1316963136 | False | 0 | c2mgay9 | t3_kq27q | null | t1_c2mgay9 | t1_c2md80j | null | 1427644714 | 6 | t5_2fwo | null | null | null |
True | wynyx | null | > if you know what you're doing.
That's a pretty big caveat. | null | 0 | 1316963238 | False | 0 | c2mgb9e | t3_kpqzv | null | t1_c2mgb9e | t1_c2mcxhs | null | 1427644717 | 3 | t5_2fwo | null | null | null |
True | dyydvujbxs | null | But do those 140K connections all need to be in the same process? That would seem to be a design flaw of Node.js or applications. | null | 0 | 1316963253 | False | 0 | c2mgbax | t3_kq27q | null | t1_c2mgbax | t1_c2mf0zu | null | 1427644720 | 1 | t5_2fwo | null | null | null |
True | dyydvujbxs | null | I thought Rhino is JS on Java, and Node is JS on C++.
So that would be replacing Java with C++, wouldn't it? | null | 0 | 1316963659 | False | 0 | c2mgck8 | t3_kq27q | null | t1_c2mgck8 | t1_c2mcva8 | null | 1427644736 | 3 | t5_2fwo | null | null | null |
True | robertcrowther | null | The key difference:
* Time between major Android/iOS/WebKit releases - every 6-12 months
* Time between IE6 and IE7 releases - 5 years
The problem with targeting IE6 wasn't so much that it was a bad target at the time of it's release, it was that it was frozen in time to the extent that even now you have to give consideration to supporting it on many web site projects. By comparison, how many people devote much time to supporting iOS v1, released less than 5 years ago, in either web or native apps? | null | 0 | 1316963815 | False | 0 | c2mgd0z | t3_kpgmn | null | t1_c2mgd0z | t1_c2mceq3 | null | 1427644741 | 2 | t5_2fwo | null | null | null |
True | robertcrowther | null | Can't you do that already with 2 cores? | null | 0 | 1316963909 | False | 0 | c2mgdbi | t3_kpgmn | null | t1_c2mgdbi | t1_c2m96vj | null | 1427644745 | 1 | t5_2fwo | null | null | null |
True | TheWalruss | null | Sure it does. It's cheap, easy, and has that special retro look-and-feel. | null | 0 | 1316963915 | False | 0 | c2mgdc6 | t3_kqqd5 | null | t1_c2mgdc6 | t1_c2mfo8f | null | 1427644745 | 7 | t5_2fwo | null | null | null |
True | 8-bit_d-boy | null | TF2? | null | 0 | 1316963952 | False | 0 | c2mgdg9 | t3_kqqd5 | null | t1_c2mgdg9 | t1_c2mfo8f | null | 1427644755 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | Well, you've outed me there Sherlock. Bravo. So have you actually written any lob silverlight or wpf apps? Or winforms for that matter? Or is this another innane Microsoft rant? | null | 0 | 1316964067 | False | 0 | c2mgdt8 | t3_ko2wv | null | t1_c2mgdt8 | t1_c2mdgna | null | 1427644751 | 0 | t5_2fwo | null | null | null |
True | i8beef | null | If you are not at least limiting your inputs to a given character set, you are doing something wrong. At the very least, I would limit it to "every typable character" usually, as most people aren't going to be typing higher order ASCII characters, and if they are, they are probably not a normal user (this is all from a general security perspective, anyway).
As for the tests being as complex to write as the original code, absolutely, especially once you start getting into mocking. The goal is not to necessarily have simple tests, it's to have tests which you can run fast whenever you change something to ensure backwards compatibility (that you didn't break something). Some people see that as a waste of time, while others see that as a massive time saver since we find out about our screw ups very quickly, or at least, it causes us to have a deeper understanding of the assumptions about the operating conditions of our programs, as if I change something and I have to change a bunch of tests to reflect that, it probably means I may have introduced some other niche cases that I should be aware of.
In the end, tests are there to help the developer. This is why we don't write tests for getters and setters: they don't really add any value. | null | 0 | 1316964318 | False | 0 | c2mgeng | t3_kq001 | null | t1_c2mgeng | t1_c2mbzhx | null | 1427644771 | 2 | t5_2fwo | null | null | null |
True | dyydvujbxs | null | http://www.google.com/?q=van+de+boor+usenix+gmail+javascript&flip=0
There is no indication in those slides the "service" refers to anything but the front-end. But it is unclear.
Obviously the data providing end is Google's overall infrastructure that is shared by many apps and is not JS. | null | 0 | 1316964402 | False | 0 | c2mgexn | t3_kq27q | null | t1_c2mgexn | t1_c2mae3l | null | 1427644766 | 1 | t5_2fwo | null | null | null |
True | iLiekCaeks | null | >The original version of the Wii game Blast Works was a PC freeware game called Tumiki Fighters that (along with at least a couple other games) was written by Kenta Cho waaay back in a very early version of D.
Is the Wii game written in D? Does that guy still use D? | null | 0 | 1316964599 | False | 0 | c2mgfkc | t3_kqoz2 | null | t1_c2mgfkc | t1_c2mfigb | null | 1427644777 | 4 | t5_2fwo | null | null | null |
True | qbg | null | I find that if you add some additional abstractions on top of Spring, unit testing your controllers (and sometimes parts of your views) becomes relatively easy. Spring makes it easy to integration test your DAOs (if you are using SQL), which is in some sense the smallest unit applicable to DAOs. | null | 0 | 1316964605 | False | 0 | c2mgfl4 | t3_kq001 | null | t1_c2mgfl4 | t1_c2m8qvx | null | 1427644777 | 1 | t5_2fwo | null | null | null |
True | TKN | null | That would be my choice too. I'm just not sure how easy it would be to port to Kindle. At least porting to Android hasn't been straightforward, https://github.com/neomantic/Android-SISC-Scheme-Eval
> The sources include:
- A patched version of SISC Scheme - release 1.17.0 alpha. The version in this repository does not contain the dynamic class generation library - which won't work on Android's dex bytecode. It also includes a small patch to get the s2j module (scheme to java) implementation to work.
- A minimal version of the thankfully GPL-licensed openjdk's java beans source. SISC depends on it, but Android provides very limited support for java beans. | null | 0 | 1316964628 | False | 0 | c2mgfn9 | t3_kqixo | null | t1_c2mgfn9 | t1_c2mg4rk | null | 1427644779 | 2 | t5_2fwo | null | null | null |
True | i8beef | null | The goal isn't to cover every possible input, it's to cover the divergent code paths that may be CAUSED by those different inputs. I see this mentality a lot in people who want to test validation methods... it's not as if we want you to test that all of the non-whitelisted characters (since everyone know that blacklists are usually a security hole, or at least a mistake, right?) cause a validation exception. We just want to know that if **A** non-whitelisted character goes in, a validation exception gets thrown or something like that. You're ensuring functionality without getting bogged down in specifics.
**Then** if you start having bugs of some sort, you write a unit test for each confirmed bug to protect against regression after you change something. This WOULD be an ok place to get into specifics, but again, only the specifics of the bug.
Unless you're talking about some sort of 100% code coverage suite of unit tests, in which case no, I would hope you haven't seen a test suite like that because it would be testing a lot of crap it shouldn't.
However, if you are talking about states that cause DIVERGENT CODE PATHS then absolutely they should probably be tested... that is where code coverage analysis tools come in real handy, not because of the percentage number it spits out, but because it tells you where these divergent code paths are so you can decide if you should be testing there or not. | null | 0 | 1316964733 | False | 0 | c2mgfzx | t3_kq001 | null | t1_c2mgfzx | t1_c2mbwl2 | null | 1428192914 | 2 | t5_2fwo | null | null | null |
True | Whanhee | null | I think I am getting a clearer picture, thank you for spending the time to explain this to me. If I am not mistaken, Monads are something that lets you iterate over the elements of a list without inadvertently changing their structure?
I am most familiar with c++ so your syntax makes sense, but I am trying to pick up functional because I've seen the craziness that you can do with Haskell. Again, thanks for your help. | null | 0 | 1316964858 | False | 0 | c2mggea | t3_kogj4 | null | t1_c2mggea | t1_c2mfpvr | null | 1427644791 | 1 | t5_2fwo | null | null | null |
True | danharaj | null | I seem to recall a statement about Stroustrup or someone else involved in the R&D of C++ about adding reflection to C++, how they managed to do it, but the overhead was so massive that it was seen as too costly to add. I can't remember where I read this though. Anyone know what I'm talking about, or is this just a fevered dream of my imagination? | null | 0 | 1316964871 | False | 0 | c2mggg0 | t3_kqtat | null | t1_c2mggg0 | t3_kqtat | null | 1427644791 | 8 | t5_2fwo | null | null | null |
True | under_dog | null | If it's recorded please report back for those of us who aren't in the Boston area! | null | 0 | 1316965022 | False | 0 | c2mggzc | t3_kow8f | null | t1_c2mggzc | t3_kow8f | null | 1427644798 | 2 | t5_2fwo | null | null | null |
True | adolfojp | null | With all due respect, your comment suggests that you don't understand what Silverlight is. I assumed that you did and crafted my answer accordingly. This might have been a mistake. Because if you don't understand what Silverlight is then you can't understand its role on the transition to Metro.
Silverlight is .net. Explicitly mentioning Silverlight would have been redundant because when I talk about .net I talk about Silverlight too. Silverlight developers are .net developers. To be more precise, Silverlight is basically a subset of the .net framework that was designed to be sandboxed and somewhat portable. That's why Silverlight apps not only run inside of the browser, but also on the Windows and Mac desktops and on the Windows phones. And I am talking about the official Microsoft distribution. I am not talking about Mono. Silverlight on the browser was stillborn, but as a desktop and mobile technology it works fine. And keep in mind that desktop and phone Silverlight don't run inside of a browser. They're just regular .net apps.
It is difficult to differentiate a Silverlight desktop app from a regular .net desktop app (WPF) because they use the same technologies. They both use the same programming languages (C# and VB.NET), use the same presentation language (XAML), and are built with Visual Studio and Blend. Windows 8 Metro apps will use the same technologies and introduce a few new APIs. You will build Metro apps with C# and VB.NET, XAML, and Visual Studio, just like you develop .net apps now. (This includes Silverlight) This is because Metro will run a sandboxed version of .net. Because of this you can think of Metro apps as the next version of Silverlight apps.
But Windows 8 is not all about Metro. Windows 8 preserves the classic desktop because many apps can't benefit from the Metro environment. Also, many apps that require elevated permissions can't run in Metro at all. That's why outside of Metro the current .net that you use will still work on Windows 8 unmodified. And that includes Silverlight. Microsoft will soon ship a new version of Silverlight and if you don't care about developing for the Metro component then Silverlight is still a good choice. And considering that we're still using XP and that Windows 7 will still be used 10 years from now developing non metro apps is still a very good idea.
| null | 0 | 1316965042 | True | 0 | c2mgh1o | t3_ko2wv | null | t1_c2mgh1o | t1_c2mfgpo | null | 1427644799 | 3 | t5_2fwo | null | null | null |
True | benihana | null | Valve (and about 17 trillion people who play TF2) seem to disagree. | null | 0 | 1316965051 | False | 0 | c2mgh31 | t3_kqqd5 | null | t1_c2mgh31 | t1_c2mfo8f | null | 1427644798 | 4 | t5_2fwo | null | null | null |
True | benihana | null | This is fantastic. I'm sure anyone who's tried to get into OpenGL development realizes that the NeHe tutorials are way out of date, and the Durian Software Joe guy hasn't updated his site in about half a year now. Hope this remains fresh and relevant. | null | 0 | 1316965210 | False | 0 | c2mghll | t3_kqqd5 | null | t1_c2mghll | t3_kqqd5 | null | 1427644869 | 10 | t5_2fwo | null | null | null |
True | igouy | null | > Because it's easier to understand and use.
No, it isn't.
That's all it takes to contradict a baseless assertion.
> general purpose
"General purpose" is a claim about what sort of problems can reasonably be addressed using Scala - that doesn't say anything about the programming paradigms, which is why scala-lang.org goes on to say "smoothly integrates features of object-oriented and functional languages". | null | 0 | 1316965324 | False | 0 | c2mghzo | t3_kos4z | null | t1_c2mghzo | t1_c2m9f0o | null | 1427644875 | 4 | t5_2fwo | null | null | null |
True | summerteeth | null | Yeah it's ambiguous. But 443,000 lines of Javascript for the front alone sounds like too much. Even post minification that seems like a lot.
The wording also made me think that it was Javascript backend, why would people be surprised to find out the client side was written in Javascript, and entirely makes sound like it's client and backend.
But whatever, I read this article awhile ago, remembered it and thought it would bring something to this discussion. As appi pointed out, the backend was written in Java/C++, which makes more sense. | null | 0 | 1316965348 | True | 0 | c2mgi2n | t3_kq27q | null | t1_c2mgi2n | t1_c2mgexn | null | 1427644876 | 1 | t5_2fwo | null | null | null |
True | summerteeth | null | Thanks for the link, that clears that up. | null | 0 | 1316965521 | False | 0 | c2mginh | t3_kq27q | null | t1_c2mginh | t1_c2mfqdx | null | 1427644883 | 1 | t5_2fwo | null | null | null |
True | gadgster | null | I agree it's not a fair comparison but it is perfectly possible that, in a couple of years, a non-webkit browser will have significant market share. This might be Windows Phone and they might well then start diverging their browser in significant ways.
Hopefully, a site based on a library like JQuery Mobile would be insulated from those differences.
Also, although my mobile traffic is nearly all webkit - in fact, nearly all iOS, my bills are paid by a man who uses a Blackberry, so this is an important platform for me.
| null | 0 | 1316965557 | False | 0 | c2mgirp | t3_kpgmn | null | t1_c2mgirp | t1_c2mgd0z | null | 1427644885 | 1 | t5_2fwo | null | null | null |
True | MarshallBanana | null | TF2? Phong shading?
What on earth are you on about? It uses a lighting model miles away from Phong.
In fact, it is a shining example of why *not* to use Phong, as it doesn't, and as a result looks a million times better! | null | 0 | 1316965608 | False | 0 | c2mgiys | t3_kqqd5 | null | t1_c2mgiys | t1_c2mgh31 | null | 1427644887 | -6 | t5_2fwo | null | null | null |
True | MarshallBanana | null | Does not use anything remotely resembling Phong lighting. | null | 0 | 1316965674 | False | 0 | c2mgj6r | t3_kqqd5 | null | t1_c2mgj6r | t1_c2mgdg9 | null | 1427644890 | -7 | t5_2fwo | null | null | null |
True | MarshallBanana | null | There's good retro, and then there's Phong. | null | 0 | 1316965734 | False | 0 | c2mgjeb | t3_kqqd5 | null | t1_c2mgjeb | t1_c2mgdc6 | null | 1427644894 | -4 | t5_2fwo | null | null | null |
True | gmartres | null | Jailbreak, get a terminal: http://info.iet.unipi.it/~luigi/kindle/ , cross-compile any scheme to ARM. | null | 0 | 1316965744 | False | 0 | c2mgjfl | t3_kqixo | null | t1_c2mgjfl | t1_c2me2ni | null | 1427644894 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | > It's becoming an issue now, because we start talking more about the JavaScript MVC.
Who's **we**? | null | 0 | 1316965867 | False | 0 | c2mgju3 | t3_kquum | null | t1_c2mgju3 | t3_kquum | null | 1427644907 | 2 | t5_2fwo | null | null | null |
True | 8-bit_d-boy | null | Actually it uses several lighting techniques, Phong being one of them. | null | 0 | 1316965962 | False | 0 | c2mgk5v | t3_kqqd5 | null | t1_c2mgk5v | t1_c2mgj6r | null | 1427644908 | 3 | t5_2fwo | null | null | null |
True | MarshallBanana | null | If it's mixed in there somewhere, it's a pretty minor part. | null | 0 | 1316966034 | False | 0 | c2mgkg6 | t3_kqqd5 | null | t1_c2mgkg6 | t1_c2mgk5v | null | 1428192911 | -3 | t5_2fwo | null | null | null |
True | 8-bit_d-boy | null | Actually, its a big part. | null | 0 | 1316966171 | False | 0 | c2mgkxh | t3_kqqd5 | null | t1_c2mgkxh | t1_c2mgkg6 | null | 1427644919 | 2 | t5_2fwo | null | null | null |
True | Drfuzzykins | null | It seems like the vast majority of discussions involving MVC are on what is or isn't MVC. In Rails, you separate the code used for the model, the view, and the controller. This is 99% of the point of MVC. | null | 0 | 1316966381 | False | 0 | c2mglmz | t3_kquum | null | t1_c2mglmz | t3_kquum | null | 1427644931 | 7 | t5_2fwo | null | null | null |
True | roerd | null | This post was better than I suspected, because it's not just a "Rails is using wrong terminology" rant, but it's giving a valid reason why that's a problem.
On the other hand though, the term 'Model2' has the severe problem that by itself it doesn't carry any meaning besides "it's different from 'Model1'". I think that makes MVC still the better term on the overall score. | null | 0 | 1316966408 | False | 0 | c2mglq4 | t3_kquum | null | t1_c2mglq4 | t3_kquum | null | 1427644932 | 6 | t5_2fwo | null | null | null |
True | jasenmh | null | Thanks for the replies! | null | 0 | 1316966592 | False | 0 | c2mgmcn | t3_kqixo | null | t1_c2mgmcn | t1_c2meb2w | null | 1427644936 | 1 | t5_2fwo | null | null | null |
True | igouy | null | fyi Someone more entrepreneurial [bootstrapped a successful resource optimisation consultancy using constraint programming in Mozart/Oz](http://www.friartuck.net/resources/advantage/competitive-edge.htm). | null | 0 | 1316966693 | False | 0 | c2mgmpe | t3_kpwjl | null | t1_c2mgmpe | t1_c2m9k0b | null | 1427644939 | 2 | t5_2fwo | null | null | null |
True | alien_bob | null | No, PDF isn't just text. It contains rendering instructions that result in text being drawn.
I don't know why the Kindle doesn't handle PDFs better, but it tries to scale entire pages to fit the screen which results in small text. Or you can have bigger text, but you have a place a viewbox that you scroll around to read everything.
I think the ebooks have better support for defining pages that display well on the Kindle's screen. And also can have selectable text sizes, rather than "zooming" the entire page. Also the text to speech doesn't work for PDFs.
So yeah, the Kindle kind of sucks at displaying PDFs. | null | 0 | 1316966800 | False | 0 | c2mgn3z | t3_kqixo | null | t1_c2mgn3z | t1_c2mfy1m | null | 1427644942 | 9 | t5_2fwo | null | null | null |
True | ivquatch | null | Try to express that algorithm in idiomatic Latin and you'll understand the difficulty. | null | 0 | 1316967031 | False | 0 | c2mgnyc | t3_kogj4 | null | t1_c2mgnyc | t1_c2lw6u3 | null | 1427644953 | 1 | t5_2fwo | null | null | null |
True | adolfojp | null | They could keep things as they are, make the distinction in the FAQs [like Django does](https://docs.djangoproject.com/en/dev/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names), or add more acronyms like Microsoft did with MVP and MVVM. People will complain either way. People are still having heated discussions about whether Java is a true object oriented language. The distinction is, nevertheless, an interesting topic for discussion. | null | 0 | 1316967128 | False | 0 | c2mgob0 | t3_kquum | null | t1_c2mgob0 | t3_kquum | null | 1427644957 | 3 | t5_2fwo | null | null | null |
True | zerny | null | Yes, OchaCaml is an extension of CamlLight. There is nothing new in encoding coroutines/generators using delimited control. The examples are well known and are simply to illustrate the power of abstraction for the uninitiated. OchaCaml however extends the HM-style type inference of CamlLight with answer type modification (of which the system author, Kenich Asai, is a co-inventor). This distinguishes it from most other delimited control libraries. Notice the lack of type annotations in the above code. Also, while generators are nice, the delimited control operators shift and reset provide more expressive power and can encode many more features (in fact Andrzej Filinski showed how any monad can be encoded using shift and reset, even layers of monadic effects).
For example, Aaron Turon presented some very cool uses of control operators to add rollback features to parsers at [ICFP'11](http://icfpconference.org/icfp2011/) and [CW'11](http://logic.cs.tsukuba.ac.jp/cw2011/) respectively: [Modular Rollback through Control Logging](http://www.ccs.neu.edu/home/turon/rollback.pdf) and *Modular rollback through free monads* (can't find a link to the paper). | null | 0 | 1316967374 | True | 0 | c2mgp7z | t3_kqi1v | null | t1_c2mgp7z | t1_c2md4jw | null | 1428192906 | 2 | t5_2fwo | null | null | null |
True | godofpumpkins | null | You can write slow C code if you don't know what you're doing, too. | null | 0 | 1316967456 | False | 0 | c2mgpjs | t3_kpqzv | null | t1_c2mgpjs | t1_c2mgb9e | null | 1427644977 | 1 | t5_2fwo | null | null | null |
True | LoganCale | null | There are a lot of tools to convert PDFs, but nothing converts PDFs *well*. Always much better to start with HTML when converting an ebook into multiple formats like mobi/epub. | null | 0 | 1316967494 | False | 0 | c2mgpoz | t3_kqixo | null | t1_c2mgpoz | t1_c2mfy1m | null | 1427644980 | 3 | t5_2fwo | null | null | null |
True | immerc | null | To some extent, that's true. If you start using Ruby, you should try to use blocks and iterators rather than for loops. If you use a Lisp-type language you'll have to rethink a lot of things to make everything into parenthesized lists. If you use C, you're best to just abandon all OO approaches and make everything procedural.
On the other hand, different as all those languages are, copy >> paste >> modify >> (compile) >> run >> modify >> (compile) >> run, etc. works well in all of them. The only drawback might be that in a compiled language the compilation step takes long enough that you want to make more changes before you hit the "compile" button so that you don't waste all your time waiting for the compilation to finish.
| null | 0 | 1316967565 | False | 0 | c2mgpyu | t3_kooiy | null | t1_c2mgpyu | t1_c2mfhcd | null | 1428192904 | -1 | t5_2fwo | null | null | null |
True | Ph0X | null | Well the original SICP is in html? I know you can't change the size of the text in .pdf, but can't you load .html in the Kindle? Or just pure text files. | null | 0 | 1316967665 | False | 0 | c2mgqdm | t3_kqixo | null | t1_c2mgqdm | t1_c2mgpoz | null | 1427644995 | 1 | t5_2fwo | null | null | null |
True | comomomo | null | I remember a mod that removed phong, the game looked very strange without it.
EDIT: http://www.gamebanana.com/skins/95889 | null | 0 | 1316967766 | True | 0 | c2mgqs8 | t3_kqqd5 | null | t1_c2mgqs8 | t1_c2mgiys | null | 1427644997 | 3 | t5_2fwo | null | null | null |
True | xiongchiamiov | null | Yeah, I wrote [a little function](https://gist.github.com/1076924) to allow me to just 'call this and get me the output, dammit!', because that's usually all I want to do. I actually ended up with [a slightly more complicated version that throws exceptions](https://github.com/xiongchiamiov/ticket/blob/master/ticket.py#L20) in the tool I wrote it for. | null | 0 | 1316967871 | False | 0 | c2mgr68 | t3_kpqzv | null | t1_c2mgr68 | t1_c2mdcyt | null | 1427645005 | 1 | t5_2fwo | null | null | null |
True | toaster13 | null | Yes, I did the math. On a per connection basis that's not horrible. Lets look past that.
Why are you writing something that maintains 140,000 connections, each with 240K of data structures, in *javascript*. | null | 0 | 1316968073 | False | 0 | c2mgry5 | t3_kq27q | null | t1_c2mgry5 | t1_c2mbrka | null | 1427645015 | 4 | t5_2fwo | null | null | null |
True | xiongchiamiov | null | Whoah, now I feel stupid. Yes, backticks in Python were essentially `repr()`. Still got removed in Py3K, though. | null | 0 | 1316968075 | False | 0 | c2mgryg | t3_kpqzv | null | t1_c2mgryg | t1_c2mc4ei | null | 1427645015 | 2 | t5_2fwo | null | null | null |
True | xiongchiamiov | null | So you're ok with reformatting it before checkin, but not with reformatting it when you paste it? | null | 0 | 1316968129 | False | 0 | c2mgs6r | t3_kooiy | null | t1_c2mgs6r | t1_c2mbzav | null | 1427645017 | 1 | t5_2fwo | null | null | null |
True | ivquatch | null | The thing about Java that was difficult for me to "grok" as a first year undergrad (who already knew a little c++), was where the program's entry-point was. It just seemed ridiculous that the program's main method had to be method in a class. Even if it was fairly trivial, you still had to write this obscenity:
public static void main(String[] args) { /* ... */ }
Writing event handlers was also kind of strange. You'd think it would be as simple as writing a function and attach it, but instead, you had to implement a special event listener interface either in a separate class or the current one, including methods that you weren't even going to use. What made this even weirder was that "special" adapter classes had to be written to take care of a lot of the boilerplate interface implementation. The final shortcut was to define the adapter inline, as a literal - an entire class definition sitting inside a call to attachEventListener.
All that freaking nonsense was required just to handle an event. As someone who already knew about function pointers in C/++, event handling in Java just seemed retarded.
So, it's not always the case that people don't have an "aptitude" for programming. Some languages, such as a strict OOP language like java, require the programmer to adopt a different, sometimes non-intuitive way of thinking. It some people more time to accept it than others, particularly people who haven't encountered a pure OOP language before. | null | 0 | 1316968175 | True | 0 | c2mgscy | t3_kogj4 | null | t1_c2mgscy | t1_c2lw6u3 | null | 1427645019 | 1 | t5_2fwo | null | null | null |
True | toaster13 | null | >He chose a tool for a purpose
Not necessarily. Quite often a tool is chosen because it is the "nearest" one (for various values of nearest, including popularity, l33tness, web2.0ness, familiarity, etc), and not for any rational purpose. You are assuming he chose javascript because it was the best tool for the task. I find this assumption fairly dubious. Javascript is not exactly known for managing high connection count, large-ish concurrent dataset, server side applications. It wasn't designed or intended for it, so it would be surprising if somehow it fit his purpose better than any other existing languages which have been designed with heavy applications in mind.
This is why I am fairly comfortable claiming he shouldn't be doing what he's doing. | null | 0 | 1316968533 | False | 0 | c2mgttd | t3_kq27q | null | t1_c2mgttd | t1_c2mbqav | null | 1427645045 | 3 | t5_2fwo | null | null | null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.