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 | blueyon | null | More examples that apples multi touch patents and invalid:
http://www.osnews.com/story/23089/Apple_Slapped_with_Multitouch_Patent_Lawsuit
http://www.ted.com/talks/jeff_han_demos_his_breakthrough_touchscreen.html
yet again Florian Mueller ignores this!
Microsoft must be paying you loads to spread propaganda about Go... | null | 0 | 1318934856 | False | 0 | c2sepg4 | t3_j7xw7 | null | t1_c2sepg4 | t3_j7xw7 | null | 1427747647 | 1 | t5_2fwo | null | null | null |
True | MarshallBanana | null | Or just *use a random number generator that doesn't suck.*
It's easy. I prefer a [Tausworthe generator](http://www.reddit.com/r/programming/comments/lfsfk/how_to_really_use_rand/c2sepa4), which is small enough that you can just dump it into any file or project that needs it. It's also very fast. | null | 0 | 1318934905 | False | 0 | c2sepj6 | t3_lfsfk | null | t1_c2sepj6 | t3_lfsfk | null | 1427747658 | 4 | t5_2fwo | null | null | null |
True | ptera-work | null | It would be much shorter. The author doesn't explicitly state it but what I gather from the article is "C# is like Java with messy reference/value handling management, poorer cross-platform compatibility, horrible upper/lower case conventions and oh it's like C++ in which methods are final by default unless specified v... | null | 0 | 1318934943 | True | 0 | c2seplf | t3_lg1xx | null | t1_c2seplf | t1_c2secpq | null | 1427747649 | -12 | t5_2fwo | null | null | null |
True | Timmmmbob | null | Also:
* A nice concurrency model (better than mutexes et al.)
* Implicit interfaces
* Strongly typed
* Extendible "classes" (i.e. you can define new methods on any type.
In fact methods are pretty much just short-hand for the C way of doing classes. I.e. in C++ you might have
class Vector {
public:
... | null | 0 | 1318934987 | False | 0 | c2sepn5 | t3_lfm1k | null | t1_c2sepn5 | t1_c2sconi | null | 1427747651 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318935001 | False | 0 | c2sepnq | t3_lfcd0 | null | t1_c2sepnq | t1_c2s93ew | null | 1427747651 | 3 | t5_2fwo | null | null | null |
True | phort99 | null | Is there an article like this for C# programmers starting in C++? | null | 0 | 1318935092 | False | 0 | c2septv | t3_lg1xx | null | t1_c2septv | t3_lg1xx | null | 1427747662 | 30 | t5_2fwo | null | null | null |
True | whitetofu | null | are you a bus driver? (serious question) | null | 0 | 1318935250 | False | 0 | c2seq3n | t3_lf038 | null | t1_c2seq3n | t1_c2scx8j | null | 1427747657 | 0 | t5_2fwo | null | null | null |
True | axilmar | null | Polymorphism has nothing to do with how a type is treated, i.e. by reference or by value. In C++, these two design decisions are unrelated.
But, since you brought it up, I think it's better to have 'virtual' being explicitly declared, because it then forces you to design your types.
In practice, having programmed in... | null | 0 | 1318935364 | False | 0 | c2seqao | t3_kljc0 | null | t1_c2seqao | t1_c2s8bk1 | null | 1427747660 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318935576 | False | 0 | c2seqm8 | t3_lg59j | null | t1_c2seqm8 | t3_lg59j | null | 1427747664 | 1 | t5_2fwo | null | null | null |
True | irascible | null | belongs in r/wtf. | null | 0 | 1318935626 | False | 0 | c2seqpf | t3_lg59j | null | t1_c2seqpf | t3_lg59j | null | 1427747665 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | Can't be. Real nerds wouldn't be using a full-blown IDE -- unless it's emacs. | null | 0 | 1318935718 | False | 0 | c2sequp | t3_lg5md | null | t1_c2sequp | t3_lg5md | null | 1427747666 | 2 | t5_2fwo | null | null | null |
True | pmckizzle | null | My main one was "Why doesn't C++ have this kind of code completion?" It really does all the typing for you. | null | 0 | 1318936144 | True | 0 | c2serkp | t3_lg1xx | null | t1_c2serkp | t3_lg1xx | null | 1427747675 | -1 | t5_2fwo | null | null | null |
True | axilmar | null | Haskell is harder because it does not allow programs to easily grow and be modified. One change in one part of the Haskell program will ripple through every other part, in most cases.
Furthermore, the more complex a problem is to solve, the more it becomes like a puzzle, but the relationship between complexity and the... | null | 0 | 1318936210 | False | 0 | c2serpc | t3_lfm1k | null | t1_c2serpc | t3_lfm1k | null | 1427747676 | -8 | t5_2fwo | null | null | null |
True | leonscape | null | No language has code completion. The IDE has code completion.
MS seems not to bother anymore for C++ in Visual Studio. Used to be quite good as well.
Other IDE's do better now. | null | 0 | 1318936399 | False | 0 | c2ses1c | t3_lg1xx | null | t1_c2ses1c | t1_c2serkp | null | 1427747681 | 42 | t5_2fwo | null | null | null |
True | avecbells | null | I'd completely forgotten how verbose Java is! | null | 0 | 1318936536 | False | 0 | c2sesac | t3_lg661 | null | t1_c2sesac | t3_lg661 | null | 1427747685 | 0 | t5_2fwo | null | null | null |
True | Gotebe | null | >If previously you're limited to one process accessing a database - I know, terrible design aside - and now you can have multiple processes running across as many machines or CPUs as you like, hasn't that increased your scalability options?
It did, but at a price of making these processes/machines (just like sporke... | null | 0 | 1318936558 | False | 0 | c2sesbx | t3_lff3n | null | t1_c2sesbx | t1_c2segi8 | null | 1427747685 | 2 | t5_2fwo | null | null | null |
True | illuminatedtiger | null | Because I enjoy imperative programming? | null | 0 | 1318936682 | False | 0 | c2sesjw | t3_lfm1k | null | t1_c2sesjw | t3_lfm1k | null | 1427747687 | 2 | t5_2fwo | null | null | null |
True | oldm | null | I wish he would write a little more about delegates. He mentions delegate inference in C#2.0 without explaining what delegates are. | null | 0 | 1318936688 | False | 0 | c2seskc | t3_lg1xx | null | t1_c2seskc | t3_lg1xx | null | 1427747689 | 3 | t5_2fwo | null | null | null |
True | noscreenname | null | Agreed! HTML+JavaScript is pretty good combination to get started. All you need is notepad and a browser. Using images is really simple, handling keyboard and mouse is also easy. | null | 0 | 1318936774 | False | 0 | c2sesqc | t3_lf038 | null | t1_c2sesqc | t1_c2s9l50 | null | 1427747691 | 1 | t5_2fwo | null | null | null |
True | MothersRapeHorn | null | Doesn't scroll on android. | null | 0 | 1318936824 | False | 0 | c2sessy | t3_lg1xx | null | t1_c2sessy | t3_lg1xx | null | 1427747694 | 9 | t5_2fwo | null | null | null |
True | axilmar | null | You've hit the nail right in the head.
You have to have in mind though that when Haskellers say
> If you've written a Haskell program that runs, it's highly likely to be a correct solution
, it means that the specifications you gave to the compiler are mathematically correctly compiled to machine code.
It does ... | null | 0 | 1318936848 | False | 0 | c2sesup | t3_lfm1k | null | t1_c2sesup | t1_c2se7zn | null | 1427747694 | 0 | t5_2fwo | null | null | null |
True | sanity | null | Some people, when confronted with a problem, think
“I know, I'll use XML.” Now they have two problems.
(with apologies to Jamie Zawinski) | null | 0 | 1318936863 | False | 0 | c2sesvl | t3_lg661 | null | t1_c2sesvl | t3_lg661 | null | 1427747693 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | Dead link in section 6.8 (const correctness). [Archived page](http://web.archive.org/web/20100212130304/http://blogs.msdn.com/oldnewthing/archive/2004/04/27/121049.aspx). | null | 0 | 1318936979 | False | 0 | c2set3k | t3_lg1xx | null | t1_c2set3k | t3_lg1xx | null | 1427747696 | 2 | t5_2fwo | null | null | null |
True | crinos666 | null | "FFFFFFFFu" is what someone said after staring at their code for 6 hours wondering why it didn't work. | null | 0 | 1318936982 | False | 0 | c2set3o | t3_lg59j | null | t1_c2set3o | t3_lg59j | null | 1427747696 | 13 | t5_2fwo | null | null | null |
True | ZeroNihilist | null | I used message queues, and my member grew 3 inches. Yes, it's now 3 and a half inches! Use message queues today! | null | 0 | 1318937129 | False | 0 | c2setds | t3_lff3n | null | t1_c2setds | t1_c2s9j6g | null | 1428192149 | -4 | t5_2fwo | null | null | null |
True | michaelochurch | null | Fluid intelligence doesn't necessarily decline with age. It's more likely that this is the Flynn effect in action: fluid intelligence is getting higher as the generations pass.
A few things, without dispute, do decline with age. One is reaction time. Another is computation speed: rapid computation starts declining ar... | null | 0 | 1318937137 | False | 0 | c2seteb | t3_lf038 | null | t1_c2seteb | t1_c2scszl | null | 1428192149 | 3 | t5_2fwo | null | null | null |
True | shamen_uk | null | > oh it's like C++ in which methods are final by default unless specified virtual (Java is the opposite)
This is a good thing. Virtual functions affect performance, so they should be explicitly turned on when needed, not constantly active by default. | null | 0 | 1318937180 | False | 0 | c2sethc | t3_lg1xx | null | t1_c2sethc | t1_c2seplf | null | 1427747701 | 5 | t5_2fwo | null | null | null |
True | eric_t | null | My first C program was a program to measure the bandwidth/latency of a computer cluster using the MPI library, as part of a course in parallel computing. This was part of a computational science degree, so up until then I had only programmed in Matlab and Fortran. As for Herb, the lecturer assumed knowledge of C from t... | null | 0 | 1318937290 | False | 0 | c2setpm | t3_lf7o7 | null | t1_c2setpm | t3_lf7o7 | null | 1427747703 | 1 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | See my [other reply](http://www.reddit.com/r/programming/comments/lfsfk/how_to_really_use_rand/c2seb8v) - yes, they key point is about turning a good generator into a bad one, and this is where the article has merit. However, it doesn't do that very well either. | null | 0 | 1318937447 | False | 0 | c2seu0o | t3_lfsfk | null | t1_c2seu0o | t1_c2semmn | null | 1427747707 | 0 | t5_2fwo | null | null | null |
True | paracelsus | null | Don't see the big mess here. The 15 minute tutorial is pretty clear
http://www.shenlanguage.org/Documentation/Tutorials/Shen-in-15min.htm
and the whole book is indexed by keyword and contents on every page so you can zoom in.
If you really want to read a 400 page book cover to cover then the web aint the place to d... | null | 0 | 1318937460 | False | 0 | c2seu1h | t3_le3tg | null | t1_c2seu1h | t1_c2rxsod | null | 1427747709 | 0 | t5_2fwo | null | null | null |
True | kamatsu | null | >Reduce programming to formal logic, and maybe you have a powerful tool, but you don't have a silver bullet.
I never claimed it was a silver bullet. The only time you would be incapable of correctly translating a specification into the expressive logics used in those languages would be if you didn't properly unders... | null | 0 | 1318937522 | False | 0 | c2seu5o | t3_lfm1k | null | t1_c2seu5o | t1_c2seiqd | null | 1427747710 | 7 | t5_2fwo | null | null | null |
True | [deleted] | null | It's not provided by the C standard library? `rand` is the only interface given. | null | 0 | 1318937527 | False | 0 | c2seu63 | t3_lfsfk | null | t1_c2seu63 | t1_c2se9tq | null | 1427747710 | 3 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | Aaaaaaaaaahhh! | null | 0 | 1318937712 | False | 0 | c2seui6 | t3_lf7o7 | null | t1_c2seui6 | t1_c2s7zyi | null | 1427747714 | 1 | t5_2fwo | null | null | null |
True | josefx | null | There is an error in the description of C# Destructors. As a java developer I am quite sure it should read: "DO NOT USE!!! Not useful for anything but debugging at best and usually a breeding ground for non-deterministic bugs."
Deterministic resource management is more than just freeing resources, its flushing stream... | null | 0 | 1318937722 | False | 0 | c2seuiq | t3_lg1xx | null | t1_c2seuiq | t3_lg1xx | null | 1427747714 | -3 | t5_2fwo | null | null | null |
True | paracelsus | null | I doubt if you could integrate a Prolog compiler with sequent calculus notation - easy its not and 30 years ago? Get real. | null | 0 | 1318937784 | False | 0 | c2seunz | t3_le3tg | null | t1_c2seunz | t1_c2s3ynp | null | 1427747716 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318937796 | False | 0 | c2seuop | t3_lfsfk | null | t1_c2seuop | t1_c2se3ku | null | 1427747716 | 1 | t5_2fwo | null | null | null |
True | UberMouse894 | null | The implementation provided by the factory method has all the dependencies injected into it by the framework, which is what the DI framework is used for.
Hence the name Dependency Injection. | null | 0 | 1318937843 | False | 0 | c2seus5 | t3_lf1px | null | t1_c2seus5 | t1_c2sedha | null | 1427747717 | 5 | t5_2fwo | null | null | null |
True | docholiday | null | Wow, your explanation was way more useful than the blog, thanks. | null | 0 | 1318937959 | False | 0 | c2sev07 | t3_lfsfk | null | t1_c2sev07 | t1_c2sdc6n | null | 1427747720 | 7 | t5_2fwo | null | null | null |
True | the_kg | null | Oh, it's you again!
No one can say that your dedication to your OS is anything short of fascinating. But I can't help but wonder what you've done to make ends meet for the last 8.5 years. Have you made any money from LoseThos?
If you reply, please refrain from including bible scripture. | null | 0 | 1318937968 | False | 0 | c2sev0t | t3_lfqqr | null | t1_c2sev0t | t1_c2sdyoi | null | 1427747720 | 5 | t5_2fwo | null | null | null |
True | compiling | null | Yep. Say you were generating random numbers between 0 and 255 (this is way too low for an actual RNG), and wanted to turn that into 1-6.
You will generate numbers 1-2 with probability 43/256 and numbers 3-6 with probability 42/256.
By the time you are using a 32 bit integer, or a 64 bit integer for the range, it's n... | null | 0 | 1318938016 | False | 0 | c2sev3y | t3_lfsfk | null | t1_c2sev3y | t1_c2sciw6 | null | 1427747722 | 4 | t5_2fwo | null | null | null |
True | ezekiel | null | > DI frameworks were introduced to get around problems that people have introduced with various other patterns and frameworks that people started using
Quite often, yes. Some of the causes include: the GoF patterns, some common OOP practices, wobbly business requirements.
The proof that you and I are correct is th... | null | 0 | 1318938090 | False | 0 | c2sev9a | t3_lf1px | null | t1_c2sev9a | t1_c2s9iid | null | 1427747724 | 2 | t5_2fwo | null | null | null |
True | kamatsu | null | This is total, unsubstantiated, hogwash. | null | 0 | 1318938163 | False | 0 | c2sevdz | t3_lfm1k | null | t1_c2sevdz | t1_c2serpc | null | 1428192148 | 4 | t5_2fwo | null | null | null |
True | ezekiel | null | Right. | null | 0 | 1318938180 | False | 0 | c2sevf9 | t3_lf1px | null | t1_c2sevf9 | t1_c2sbur9 | null | 1427747726 | 1 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | > but the new system is much, much better
You have to wait another two years to make that judgement. | null | 0 | 1318938182 | False | 0 | c2sevfc | t3_ldgye | null | t1_c2sevfc | t1_c2rrz0q | null | 1427747726 | 1 | t5_2fwo | null | null | null |
True | axilmar | null | The denial you Haskellers have will not do you any good.
| null | 0 | 1318938229 | False | 0 | c2sevjb | t3_lfm1k | null | t1_c2sevjb | t1_c2sevdz | null | 1427747727 | -6 | t5_2fwo | null | null | null |
True | __j_random_hacker | null | Cool! I will pack this next to "schadenfreude" :) | null | 0 | 1318938304 | False | 0 | c2sevpi | t3_lfsfk | null | t1_c2sevpi | t1_c2sdnlp | null | 1427747729 | 4 | t5_2fwo | null | null | null |
True | taw | null | It's very short, I'll just copy&paste:
> Q. I'm a C# programmer and I want to program C++.
> A. Don't. | null | 0 | 1318938304 | False | 0 | c2sevpj | t3_lg1xx | null | t1_c2sevpj | t1_c2septv | null | 1427747729 | -29 | t5_2fwo | null | null | null |
True | kyz | null | It could work on Firefox too - [ExoticA.org.uk](http://www.exotica.org.uk/) has both the Amiga cursor and the 'wait' cursor when you click a link.
It has this simple CSS:
body,a,input {
cursor: url(/mediawiki/skins/exotica/images/pointer.cur), default;
}
a:active {
cursor: url(/mediawiki/skins... | null | 0 | 1318938312 | True | 0 | c2sevq3 | t3_lfqqr | null | t1_c2sevq3 | t1_c2se49p | null | 1427747730 | 2 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | *shrug*
It does the job 99 times out of 100. | null | 0 | 1318938336 | False | 0 | c2sevru | t3_lccsd | null | t1_c2sevru | t3_lccsd | null | 1427747730 | 1 | t5_2fwo | null | null | null |
True | kamatsu | null | I write Haskell programs for my job. Big Haskell programs. Haskell programs with complicated types. What you are saying is total bullshit, and what you are doing is trolling. This sort of behavior is not conducive to discussion, and so I will end our conversation here. Good day. | null | 0 | 1318938340 | False | 0 | c2sevs2 | t3_lfm1k | null | t1_c2sevs2 | t1_c2sevjb | null | 1427747730 | 5 | t5_2fwo | null | null | null |
True | axilmar | null | By your reaction, I can say I've hit the nail in the head.
As if you would admit it if you had such problems.
Have a good day.
| null | 0 | 1318938510 | True | 0 | c2sew4i | t3_lfm1k | null | t1_c2sew4i | t1_c2sevs2 | null | 1427747735 | -11 | t5_2fwo | null | null | null |
True | ezekiel | null | This is how to separate so that each function does one thing. The I/O function (impure) is separate from the two pure functions.
RpcRequest x = PrepareRpcInput(...);
RpcResult z = CallRPC(x);
ProcessRpcResult(z);
The two pure functions can be tested without the CallRpc() function. The test program can use... | null | 0 | 1318938562 | False | 0 | c2sew86 | t3_lf1px | null | t1_c2sew86 | t1_c2s5aj8 | null | 1427747737 | 1 | t5_2fwo | null | null | null |
True | spoulson | null | Nothing new here. Back in the days of C64/Atari/Amiga, demos had to be boot images. When the demoscene moved into PCs, everyone got spoiled by DOS and big memory. There was no need to pre-empt the OS to build the best demo.
It is, however a great learning experience building a boot sector program. You get to write... | null | 0 | 1318938641 | False | 0 | c2sewdj | t3_lfqqr | null | t1_c2sewdj | t1_c2sdt39 | null | 1427747744 | 1 | t5_2fwo | null | null | null |
True | ninjeff | null | Hindsight is 20/20, but I found the FUD in the comments on [this blog post linked in the article](http://blogs.msdn.com/b/ericgu/archive/2004/08/17/215740.aspx) to be really cute. | null | 0 | 1318938760 | False | 0 | c2sewlz | t3_lg1xx | null | t1_c2sewlz | t3_lg1xx | null | 1428192147 | 2 | t5_2fwo | null | null | null |
True | thatpaulbloke | null | Brilliant idea, assuming that you know in advance that a method needs to be virtual so that the subclass written to extend it in two years' time can override the method that you thought couldn't possibly change. Performance is a good thing, but you can't know in advance what will be needed (otherwise you would've done ... | null | 0 | 1318939042 | False | 0 | c2sex6u | t3_lg1xx | null | t1_c2sex6u | t1_c2sethc | null | 1427747753 | -1 | t5_2fwo | null | null | null |
True | shamen_uk | null | If you are subclassing and overriding a non-virtual function it is fairly straightforward to go into the parent class and make that function virtual, is it not? A pretty standard and intuitive workflow, you don't need to be an oracle or anything, I assure you. | null | 0 | 1318939269 | False | 0 | c2sexnh | t3_lg1xx | null | t1_c2sexnh | t1_c2sex6u | null | 1427747765 | 6 | t5_2fwo | null | null | null |
True | Alexis_ | null | "'sup dawg, we heard you like XML so we put Java in your XML so you can XML while you Java?"
completely useless reply, I know, but that was pretty much the feeling I got when I read the title. | null | 0 | 1318939302 | False | 0 | c2sexqf | t3_lg661 | null | t1_c2sexqf | t3_lg661 | null | 1427747766 | 0 | t5_2fwo | null | null | null |
True | __j_random_hacker | null | > The amount of randomness lost by modding rand() with a relatively small number isn't much.
In the OP's defence, in her very first sentence she mentions that
> the low order bits tend to cycle in uncomfortably short amounts
in some common implementations of `rand()`. If that's true, then *it* will cause prob... | null | 0 | 1318939314 | False | 0 | c2sexra | t3_lfsfk | null | t1_c2sexra | t1_c2sdurs | null | 1427747766 | 3 | t5_2fwo | null | null | null |
True | dhaivatpandya | null | More XML? Java already has all these problems since it is connected by every limb to XML, and they're trying to apply XML to another, new technology. You'll never learn, Oracle... | null | 0 | 1318939318 | False | 0 | c2sexrt | t3_lg661 | null | t1_c2sexrt | t3_lg661 | null | 1427747766 | 1 | t5_2fwo | null | null | null |
True | ThisIsADogHello | null | Scrolling is broken on my PC too, if I middle-click to get the auto-scrolling dealy going.
EDIT: http://www.readability.com/articles/45vhrfsn Is one workaround that doesn't involve faffing about with the CSS definitions. | null | 0 | 1318939469 | True | 0 | c2sey3b | t3_lg1xx | null | t1_c2sey3b | t1_c2sessy | null | 1427747768 | 3 | t5_2fwo | null | null | null |
True | MaksimBurnin | null | Yes, they call it "intel syntax", total nonsense. | null | 0 | 1318939571 | False | 0 | c2seyb0 | t3_lfqqr | null | t1_c2seyb0 | t1_c2se2ju | null | 1427747771 | 3 | t5_2fwo | null | null | null |
True | Negitivefrags | null | > What a roundabout way to avoid using cron directly. I'm picking up on some idiot smell.
He is talking about a situation in which tasks are added to the database unpredictably (like due to a user action). The "regular intervals" comment is referring to processing the arbitrary tasks currently in the DB at regular ... | null | 0 | 1318939581 | False | 0 | c2seybu | t3_lff3n | null | t1_c2seybu | t1_c2say3w | null | 1427747771 | 6 | t5_2fwo | null | null | null |
True | Poddster | null | The dependency is already there in the form of the interface. | null | 0 | 1318939811 | False | 0 | c2seyu6 | t3_lf1px | null | t1_c2seyu6 | t1_c2seus5 | null | 1427747776 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318939882 | False | 0 | c2sez08 | t3_lg6zg | null | t1_c2sez08 | t3_lg6zg | null | 1427747778 | 1 | t5_2fwo | null | null | null |
True | locster | null | Possibly the difference you will encounter the most is that the string equals operator in C# does an actual string content comparison rather than reference equality. | null | 0 | 1318940029 | True | 0 | c2sezbn | t3_lg1xx | null | t1_c2sezbn | t1_c2secpq | null | 1427747783 | 10 | t5_2fwo | null | null | null |
True | Kazurik | null | Why can you scroll horizontally at all? What is the point of that?! This site is crazy. | null | 0 | 1318940030 | False | 0 | c2sezbs | t3_lg1xx | null | t1_c2sezbs | t1_c2sey3b | null | 1427747783 | 3 | t5_2fwo | null | null | null |
True | skew | null | > As a matter of fact, isn't that one of the big gotchas of logic-based AI systems, that you try to write down a bunch of logical statements that are true about a world you're trying to model, and then when you're done you have no way of even knowing if what you wrote down is actually consistent and valid?
Once you... | null | 0 | 1318940035 | False | 0 | c2sezc6 | t3_lfm1k | null | t1_c2sezc6 | t1_c2seiqd | null | 1427747783 | 1 | t5_2fwo | null | null | null |
True | Kazurik | null | I have heard the code completion for C++ in VS 2011 is pretty good but I have not used it myself. | null | 0 | 1318940066 | False | 0 | c2sezfd | t3_lg1xx | null | t1_c2sezfd | t1_c2ses1c | null | 1427747783 | 7 | t5_2fwo | null | null | null |
True | julesjacobs | null | How about:
int uniform_rand(int range){
return ((long long)rand()*RAND_MAX + rand()) % range;
}
This has a max bias of (RAND_MAX^2 % range) / RAND_MAX^2 which is at most range / RAND_MAX^2. If you now assume that range < RAND_MAX (as you also do?), then the bias is at most 1 / RAND_MAX. Runtime is ... | null | 0 | 1318940265 | False | 0 | c2sezw7 | t3_lfsfk | null | t1_c2sezw7 | t1_c2sehzi | null | 1427747791 | 1 | t5_2fwo | null | null | null |
True | lukeatron | null | It's been a while since I've worked in java but isn't this because java strings are mutable objects while .net strings are immutable value types? | null | 0 | 1318940436 | False | 0 | c2sf0a8 | t3_lg1xx | null | t1_c2sf0a8 | t1_c2sezbn | null | 1427747793 | 1 | t5_2fwo | null | null | null |
True | yellowstuff | null | That is funny. One guy solemnly points out that List<Employee> is worse than EmployeeCollection because you might want to change your collection to a Hashtable, as though you would be able to do that without carefully looking at any code that uses the collection. | null | 0 | 1318940452 | False | 0 | c2sf0bm | t3_lg1xx | null | t1_c2sf0bm | t1_c2sewlz | null | 1427747793 | 5 | t5_2fwo | null | null | null |
True | leonscape | null | That would be cool. You get so used to it with other languages its suddenly a speed bump with your thinking when switching to C++ | null | 0 | 1318940507 | False | 0 | c2sf0gg | t3_lg1xx | null | t1_c2sf0gg | t1_c2sezfd | null | 1427747793 | 6 | t5_2fwo | null | null | null |
True | Gotebe | null | Oh, look, my favorite pet peeve!
Flushing a stream is not deterministic resource management. In fact, it's a pretty bad idea to put that into resource management, as it's a clear-cut "can fail" operation that has no place on a cleanup path (cleanup path is a nothrow zone).
That said... To a Java developer, C# destruc... | null | 0 | 1318940573 | False | 0 | c2sf0mf | t3_lg1xx | null | t1_c2sf0mf | t1_c2seuiq | null | 1427747795 | 5 | t5_2fwo | null | null | null |
True | mitsuhiko | null | No. | null | 0 | 1318940748 | False | 0 | c2sf135 | t3_lg1xx | null | t1_c2sf135 | t1_c2sf0a8 | null | 1427747800 | -3 | t5_2fwo | null | null | null |
True | lukeatron | null | I write a lot of library code and I can't say I've ever had a problem with this. You generally have a pretty good feel for what methods need to be virtual when you're writing the base class anyway (assuming you take the time to think that part through). About the only time I find myself needing to go back and make so... | null | 0 | 1318940751 | False | 0 | c2sf13k | t3_lg1xx | null | t1_c2sf13k | t1_c2sexnh | null | 1427747800 | 6 | t5_2fwo | null | null | null |
True | deverdev | null | Sorry, but functional languages don't have to be purely functional language.
Speaking in OO terms, PurelyFunctional is just a subclass of Functional. | null | 0 | 1318940759 | False | 0 | c2sf147 | t3_lfm1k | null | t1_c2sf147 | t1_c2se7q6 | null | 1427747800 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | BangPatterns is not for making fields strict. That feature is already in Haskell with no extensions. BangPatterns is for forcing values when pattern matching. | null | 0 | 1318940784 | False | 0 | c2sf16u | t3_lfm1k | null | t1_c2sf16u | t1_c2sedbg | null | 1427747802 | 6 | t5_2fwo | null | null | null |
True | Kazurik | null | I know what you mean. "Ctrl + .", a double tap of tab, and arrows keys/enter are probably my most common key presses in VS when dealing with C#. Now if only F# had such great intellisense support :( | null | 0 | 1318940798 | False | 0 | c2sf189 | t3_lg1xx | null | t1_c2sf189 | t1_c2sf0gg | null | 1427747802 | 2 | t5_2fwo | null | null | null |
True | yellowstuff | null | I don't think so. I'm not even a C programmer, but I would've guessed that negating an unsigned int is not a very good idea and will not behave consistently across platforms. | null | 0 | 1318940809 | False | 0 | c2sf19j | t3_lg59j | null | t1_c2sf19j | t1_c2seqpf | null | 1427747802 | 4 | t5_2fwo | null | null | null |
True | deverdev | null | > This is an extremely trivial example, but both programs basically work and I think it illustrates that even ugly Haskell isn't particularly impossible to understand.
... until you start using noise functions like <>= >>== >= (=) and Perl suddenly looks nice again ;) | null | 0 | 1318940877 | False | 0 | c2sf1fn | t3_lfm1k | null | t1_c2sf1fn | t1_c2seerf | null | 1427747805 | 1 | t5_2fwo | null | null | null |
True | ethraax | null | > the semicolon of C is just the IO monad, in a sense
I'm confused. Are you talking about sequence points? | null | 0 | 1318940974 | False | 0 | c2sf1nx | t3_lfm1k | null | t1_c2sf1nx | t1_c2seada | null | 1427747808 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Not sure what you are complaining about. The proposed change only affects a line of code or two. Are you just saying Haskell is hard because you don't know how to use it? | null | 0 | 1318941076 | False | 0 | c2sf1wy | t3_lfm1k | null | t1_c2sf1wy | t1_c2sdvkq | null | 1427747811 | 7 | t5_2fwo | null | null | null |
True | shamen_uk | null | True. And even when you are expanding functionality on a class that was not envisaged for inheritance, it's not really that hard. Adding a "virtual" to a function declaration takes a couple of seconds. | null | 0 | 1318941194 | False | 0 | c2sf28h | t3_lg1xx | null | t1_c2sf28h | t1_c2sf13k | null | 1427747815 | 3 | t5_2fwo | null | null | null |
True | julesjacobs | null | Can you give an example of this? Advocates of DI always argue that, but when asked for an actual example of good design that uses DI they either fall silent, or they provide an example that could be better solved without DI. | null | 0 | 1318941309 | False | 0 | c2sf2jg | t3_lf1px | null | t1_c2sf2jg | t1_c2saqz1 | null | 1427747820 | 0 | t5_2fwo | null | null | null |
True | lukeatron | null | In .net you accomplish this by implementing the IDisposable interface, which the GC looks for. This way important resources can be freed up in a timely manner while leaving the expensive but mundane memory management operations to be executed when the GC decides it's a good time to do that (and it's generally pretty g... | null | 0 | 1318941361 | True | 0 | c2sf2o6 | t3_lg1xx | null | t1_c2sf2o6 | t1_c2seuiq | null | 1427747821 | 7 | t5_2fwo | null | null | null |
True | ethraax | null | I don't know a whole lot about databases so I don't think I can really comment on the first "alternative", but the second one is bad. The performance difference between those optimizations and a basic `-O2` is not gigantic (in most cases), generally far less than an order of magnitude. So a new programmer doesn't rea... | null | 0 | 1318941401 | False | 0 | c2sf2sh | t3_lfm1k | null | t1_c2sf2sh | t1_c2se8p2 | null | 1427747822 | -1 | t5_2fwo | null | null | null |
True | [deleted] | null | Chrome is fine.. | null | 0 | 1318941445 | False | 0 | c2sf2w1 | t3_lg6zg | null | t1_c2sf2w1 | t1_c2sez08 | null | 1427747833 | 7 | t5_2fwo | null | null | null |
True | billsnow | null | I'm no vi expert (my vim friends run circles around me in the editor when they aren't comparing vimrc's and plugins). In fact, I probably use vim more often because it's more common on default linux systems. I don't know about gq or visual mode, but I do know that ed and ex commands are entered by first typing colon. | null | 0 | 1318941465 | False | 0 | c2sf2y0 | t3_lfblq | null | t1_c2sf2y0 | t1_c2sdr7k | null | 1427747824 | 1 | t5_2fwo | null | null | null |
True | ethraax | null | I guess I thought the point of Haskell (and other abstract, high-level languages) was that you didn't have to worry much about what's going on at the assembly level. If you're going to worry about that kind of stuff, why not just use C or C++, where it's far more explicit and within plain view instead of hiding under ... | null | 0 | 1318941529 | False | 0 | c2sf33c | t3_lfm1k | null | t1_c2sf33c | t1_c2sec95 | null | 1427747826 | 8 | t5_2fwo | null | null | null |
True | roboduck | null | Wow, you're at -16. Apparently, among the things that C++ lacks are generics, garbage collection, and a sense of humor. | null | 0 | 1318941649 | False | 0 | c2sf3di | t3_lg1xx | null | t1_c2sf3di | t1_c2sevpj | null | 1427747830 | 15 | t5_2fwo | null | null | null |
True | ethraax | null | I would argue that understanding a C compiler at a conceptual level is far easier than a Haskell compiler. It *is* a thin layer over the machine, compared with Haskell. Yeah, it will optimize some stuff for you, but in general it's easy to reason about what the processor is actually doing. Hell, it even makes memory... | null | 0 | 1318941655 | False | 0 | c2sf3dz | t3_lfm1k | null | t1_c2sf3dz | t1_c2sekru | null | 1427747830 | 11 | t5_2fwo | null | null | null |
True | lukeatron | null | Because I'm actually interested in the answer to this, are you saying that java strings are in fact immutable as well? Or are you just being an asshole? | null | 0 | 1318941669 | False | 0 | c2sf3f5 | t3_lg1xx | null | t1_c2sf3f5 | t1_c2sf135 | null | 1427747830 | 2 | t5_2fwo | null | null | null |
True | sebzim4500 | null | there is no need for the fact 1 = 1 line. | null | 0 | 1318941703 | False | 0 | c2sf3in | t3_lfm1k | null | t1_c2sf3in | t1_c2seerf | null | 1427747833 | 8 | t5_2fwo | null | null | null |
True | mb86 | null | As someone who wrote a popular and similar FAQ bridging C++ to Objective-C, this is a much appreciated document. | null | 0 | 1318941708 | False | 0 | c2sf3ja | t3_lg1xx | null | t1_c2sf3ja | t3_lg1xx | null | 1427747833 | 4 | t5_2fwo | null | null | null |
True | roboduck | null | Java strings are not mutable either. It's because Java doesn't have operator overloading.
Well, er, except of course it does, with +. So, uh, it's because... LOOK, JAVA JUST DOES THIS, OKAY, DON'T ASK QUESTIONS. | null | 0 | 1318941844 | False | 0 | c2sf3vz | t3_lg1xx | null | t1_c2sf3vz | t1_c2sf0a8 | null | 1427747837 | 28 | t5_2fwo | null | null | null |
True | kolme | null | We're not talking about operating systems here, I guess you meant VIM. | null | 0 | 1318941860 | False | 0 | c2sf3xu | t3_lg5md | null | t1_c2sf3xu | t1_c2sequp | null | 1427747837 | 2 | t5_2fwo | null | null | null |
True | ixid | null | Why do you dislike implicit semicolons? | null | 0 | 1318941912 | False | 0 | c2sf43g | t3_lfm1k | null | t1_c2sf43g | t1_c2sepn5 | null | 1427747839 | 2 | t5_2fwo | null | null | null |
True | MarshallBanana | null | I like how LINQ example goes "Query expressions are just syntactic sugar " and then shows how they resolve to code that is significantly shorter. | null | 0 | 1318941936 | False | 0 | c2sf45y | t3_lg1xx | null | t1_c2sf45y | t3_lg1xx | null | 1427747840 | 15 | t5_2fwo | null | null | null |
True | BeatLeJuce | null | But since RAND_MAX is usually much, much, much, much larger than 3, it doesn't usually matter. While I can see where your example comes from, you make the problem sound much worse than it usually is. | null | 0 | 1318941969 | False | 0 | c2sf492 | t3_lfsfk | null | t1_c2sf492 | t1_c2sdc6n | null | 1427747848 | 5 | t5_2fwo | null | null | null |
True | [deleted] | null | Good point. | null | 0 | 1318942069 | False | 0 | c2sf4hi | t3_lg5md | null | t1_c2sf4hi | t1_c2sf3xu | null | 1427747852 | 1 | 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.