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 | [deleted] | null | [deleted] | null | 0 | 1318907154 | True | 0 | c2scefj | t3_lfm1k | null | t1_c2scefj | t1_c2sbko6 | null | 1427746560 | 7 | t5_2fwo | null | null | null |
True | bratty_fly | null | A gem from the article:
*probability of any newly generated number being any number in the range is 1/p. This is called the “normal”, or “uniform” distribution.*
Hehe, that made my day. Someone who doesn't know what normal distribution is gets upvoted on proggit. | null | 0 | 1318907418 | False | 0 | c2scfrz | t3_lfsfk | null | t1_c2scfrz | t3_lfsfk | null | 1427746578 | 75 | t5_2fwo | null | null | null |
True | earthboundkid | null | Your rebuttal doesn't address the issue at hand. No one thinks about the whitespace in Python because it's easy to get the whitespace right. People spend a long time getting their heads wrapped around the type system in Haskell because it's hard to get the types right. | null | 0 | 1318907584 | False | 0 | c2scgln | t3_lfm1k | null | t1_c2scgln | t1_c2sc946 | null | 1427746588 | 18 | t5_2fwo | null | null | null |
True | leonardo_m | null | A bit cleaned up D code (works with updated D2 compiler): http://codepad.org/oXi2st5t
I think this gives wrong output:
Image([[BG, BG], [BG, BG]]).largestRectStack() | null | 0 | 1318907636 | False | 0 | c2scgva | t3_lew0f | null | t1_c2scgva | t3_lew0f | null | 1427746592 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | > not everyone enjoys writing software
How do you know you don't enjoy something until you've tried it? His friends in question appear to be avoiding it because of the learning load.
> They invariably respond that they don’t think it’s the best use of their time. They think it’ll take them years to learn the n... | null | 0 | 1318907884 | False | 0 | c2sci3m | t3_lfrt9 | null | t1_c2sci3m | t1_c2sbqmh | null | 1427746609 | 0 | t5_2fwo | null | null | null |
True | notfancy | null | Thr point about `rand() % N` not being uniformly distributed unless N divides `RAND_MAX` + 1 (*edit:* not `RAND_MAX`, as **sydneyc** points) (fun to prove it via Pigeonhole) more than makes up for the error. | null | 0 | 1318908038 | True | 0 | c2sciw6 | t3_lfsfk | null | t1_c2sciw6 | t1_c2scfrz | null | 1427746619 | 15 | t5_2fwo | null | null | null |
True | shub | null | Ok, if using tools and libraries to do addition is your thing then have at it. | null | 0 | 1318908097 | False | 0 | c2scj74 | t3_le7ky | null | t1_c2scj74 | t1_c2s4y6f | null | 1427746624 | 0 | t5_2fwo | null | null | null |
True | seanmccleary | null | Twitter still uses it for their API. They use OAuth 2.0. | null | 0 | 1318908210 | False | 0 | c2scjr5 | t3_lfhyw | null | t1_c2scjr5 | t1_c2s9ewf | null | 1427746630 | 1 | t5_2fwo | null | null | null |
True | seanmccleary | null | Agreed. Asking your user to please go to this URL on Twitter's web site, copy the code, and come back and paste it... is lousy. | null | 0 | 1318908271 | False | 0 | c2sck1o | t3_lfhyw | null | t1_c2sck1o | t1_c2s9spl | null | 1427746634 | 4 | t5_2fwo | null | null | null |
True | Vanthu | null | Much of the time I wasn't better than the other programmers.
I do, however, believe that I have experienced age discrimination many times. I could see it in their eyes. When the interviewer starts looking around the room and their body language closes, and they offer a limp handshake at the end of a very short intervi... | null | 0 | 1318908288 | False | 0 | c2sck4p | t3_lf038 | null | t1_c2sck4p | t1_c2s8d3t | null | 1427746635 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | Ok. I want to be able to add a simple logging statement to a function deep in my domain logic. Would you consider this trivial or nontrivial in haskell, and trivial or nontrivial in ruby? | null | 0 | 1318908340 | False | 0 | c2sckdj | t3_lfm1k | null | t1_c2sckdj | t1_c2sbp8t | null | 1427746638 | 8 | t5_2fwo | null | null | null |
True | devynci | null | It's the clearest way to write Haskell code — the indentation scheme is naturally columnar — but it is certainly possible to write Haskell code without “layout” using the bracket syntax. For example, instead of
main = do putStrLn "Hello!"
putStrLn "Isn't this fun?"
we can write
main = do {
... | null | 0 | 1318908370 | False | 0 | c2sckk1 | t3_lfm1k | null | t1_c2sckk1 | t1_c2sccjn | null | 1427746641 | 7 | t5_2fwo | null | null | null |
True | devynci | null | Hint: Not all of us do web programming. | null | 0 | 1318908402 | False | 0 | c2sckpp | t3_lfm1k | null | t1_c2sckpp | t1_c2scc7w | null | 1427746644 | 11 | t5_2fwo | null | null | null |
True | Vanthu | null | All the girls in my graduating class, some who flirted their way through college and couldn't program worth a darn, got jobs immediately on graduation. | null | 0 | 1318908420 | False | 0 | c2sckua | t3_lf038 | null | t1_c2sckua | t1_c2s8fe1 | null | 1427746645 | 6 | t5_2fwo | null | null | null |
True | [deleted] | null | looks like nick swardson's chubby brother | null | 0 | 1318908475 | False | 0 | c2scl52 | t3_lez71 | null | t1_c2scl52 | t3_lez71 | null | 1427746649 | -3 | t5_2fwo | null | null | null |
True | calc0000 | null | It's the same thing with Facebook. Really limits my options. | null | 0 | 1318908491 | False | 0 | c2scl87 | t3_lfhyw | null | t1_c2scl87 | t1_c2sck1o | null | 1427746650 | 1 | t5_2fwo | null | null | null |
True | Vanthu | null | I think I suck at job interviews. I started college with a 2.85 gpa. I managed to graduate with a 3.28, made the deans list several times, all while working 50 hours a week as a dept. manager. I was voted team captain in every group project in college and every team I led got an A. I may suck, I'm definitely not the be... | null | 0 | 1318908630 | False | 0 | c2sclx8 | t3_lf038 | null | t1_c2sclx8 | t1_c2s8h07 | null | 1427746659 | 2 | t5_2fwo | null | null | null |
True | Bognar | null | As a fledgling programmer with no experience in image processing, can you explain what would be a good way to represent an image in some language? | null | 0 | 1318908730 | False | 0 | c2scmf7 | t3_lew0f | null | t1_c2scmf7 | t1_c2s95zj | null | 1427746667 | 2 | t5_2fwo | null | null | null |
True | FataOne | null | This is what my school does for Electrical Engineering majors. I'm not sure about Computer Science, though. I did a semester of programming an LC-3 in assembly and now we've moved on to programming a 9S12 in assembly while simultaneously learning C. | null | 0 | 1318908769 | False | 0 | c2scmm7 | t3_lf038 | null | t1_c2scmm7 | t1_c2s9o6o | null | 1427746668 | 1 | t5_2fwo | null | null | null |
True | seanmccleary | null | So you've done OAuth with both Twitter and Facebook too, huh?
Kind of laughable that this is, in theory, the same protocol they're both using, huh? (Even though Twitter is OAuth 2.0 and Facebook's not, IIRC... one major version number doesn't sufficiently describe the differences.)
First app, I wrote the code mysel... | null | 0 | 1318908798 | False | 0 | c2scmrc | t3_lfhyw | null | t1_c2scmrc | t1_c2scl87 | null | 1427746670 | 2 | t5_2fwo | null | null | null |
True | aaaxxxlll | null | 3 million users throwing messages at queues on an average server, pegging CPU and memory limits. It's possible the queues weren't configured properly. It's very possible the hardware wasn't adequate. Think how often Reddit goes down. Like that :)
As grauenwolf suggests, sticking everything in the database was the bes... | null | 0 | 1318908890 | False | 0 | c2scn6u | t3_lff3n | null | t1_c2scn6u | t1_c2sambr | null | 1427746676 | 5 | t5_2fwo | null | null | null |
True | [deleted] | null | "I can't handle Haskell because I'm a retard". | null | 0 | 1318908904 | False | 0 | c2scn93 | t3_lfm1k | null | t1_c2scn93 | t3_lfm1k | null | 1427746677 | -22 | t5_2fwo | null | null | null |
True | akdas | null | [vi actually doesn't have text objects](http://vimdoc.sourceforge.net/htmldoc/motion.html#text-objects), and I think everyone here is pretty sold on their utility. This is why it's important to distinguish between vi and vim.
For example, whenever someone offers [Emacs' Viper Mode](http://www.emacswiki.org/emacs/Viper... | null | 0 | 1318908927 | True | 0 | c2scnd9 | t3_lfblq | null | t1_c2scnd9 | t3_lfblq | null | 1427746679 | 2 | t5_2fwo | null | null | null |
True | slurpme | null | It doesn't mean I want to learn a language where something you can't see can affect how the code behaves... | null | 0 | 1318908948 | False | 0 | c2scngj | t3_lfm1k | null | t1_c2scngj | t1_c2sckk1 | null | 1427746679 | -2 | t5_2fwo | null | null | null |
True | [deleted] | null | You want I should lazy evaluate? | null | 0 | 1318908956 | False | 0 | c2scnhx | t3_lfm1k | null | t1_c2scnhx | t1_c2scefj | null | 1428192169 | 17 | t5_2fwo | null | null | null |
True | uriel | null | Could you be more specific about what things you like about Go? | null | 0 | 1318909109 | False | 0 | c2sco8f | t3_lfm1k | null | t1_c2sco8f | t1_c2sc60y | null | 1427746691 | 6 | t5_2fwo | null | null | null |
True | MrSparkle666 | null | I have thought about doing this, but my EE degree takes up all my time at the moment. My current goal now is just to steer towards embedded systems as much as possible, which is where there is the most overlap between the EE and CS worlds. | null | 0 | 1318909143 | False | 0 | c2scoe5 | t3_lf038 | null | t1_c2scoe5 | t1_c2sbx39 | null | 1427746693 | 2 | t5_2fwo | null | null | null |
True | vagif | null | Long time imperative programmer here. I can say that i am more productive with haskell + emacs that i've ever been with java/dotnet and all those powerful IDEs (VS, IDEA, Eclipse etc.)
| null | 0 | 1318909159 | False | 0 | c2scogj | t3_lfm1k | null | t1_c2scogj | t3_lfm1k | null | 1427746694 | 6 | t5_2fwo | null | null | null |
True | [deleted] | null | i like that Go has:
1. types that are powerful-enough
2. concurrency that is easy to learn
3. utf8 from day 1 | null | 0 | 1318909198 | False | 0 | c2sconi | t3_lfm1k | null | t1_c2sconi | t1_c2sco8f | null | 1427746700 | 11 | t5_2fwo | null | null | null |
True | Vanthu | null | >I'm sure if he's as apt and vigorous as he comes off, his superior skill will shine past the discrimination.
Thank you. I think it will in the end too. I still hold to the premise of the thread. It is never too late to learn programming if you want to. Not just the exercises on some "learn programming" website, bu... | null | 0 | 1318909231 | False | 0 | c2scos8 | t3_lf038 | null | t1_c2scos8 | t1_c2sb8az | null | 1427746698 | 3 | t5_2fwo | null | null | null |
True | jrhorn424 | null | Excellent point! When I purchased my wife a Keurig, I noted there were many reviews saying the machine was loud and leaky. The reviews were posted over a 6 month period, about a year ago. Since Keurig mostly had positive reviews since then, I went ahead and took the plunge and wasn't disappointed. Anyway, timing is ver... | null | 0 | 1318909342 | False | 0 | c2scpak | t3_ktx2g | null | t1_c2scpak | t1_c2n8zc8 | null | 1427746705 | 1 | t5_2fwo | null | null | null |
True | evmar | null | I really would prefer to not have a long drawn-out language war on reddit. If you're really interested I'd be glad to answer via email. I think my answers would be familiar to you if you're an experienced Haskell programmer but would come off as trolling in a casual context. | null | 0 | 1318909414 | False | 0 | c2scpmr | t3_lfm1k | null | t1_c2scpmr | t1_c2scdr8 | null | 1427746707 | -15 | t5_2fwo | null | null | null |
True | evmar | null | See my above answer about language wars. | null | 0 | 1318909422 | False | 0 | c2scpo8 | t3_lfm1k | null | t1_c2scpo8 | t1_c2sco8f | null | 1427746707 | -17 | t5_2fwo | null | null | null |
True | [deleted] | null | agreed, hackage is full of code that indulges type-wankery for no useful reason other than to satisfy someone's intellect
haskell is like c++ in a way - it gives you a lot of (well-typed) rope to hang yourself with. i've spent hours just trying to figure out how certain people have decided to propogate errors. i've fo... | null | 0 | 1318909478 | False | 0 | c2scpyc | t3_lfm1k | null | t1_c2scpyc | t1_c2sb9ed | null | 1427746712 | 10 | t5_2fwo | null | null | null |
True | Vanthu | null | I think one of the biggest factors in age discrimination is one of control. Nobody wants to hire someone who can ultimately replace them. If they people you hire are all younger than you, they are easier to control. When you tell someone who is older than you, and knows better, it's a threat to your authority.
But, i... | null | 0 | 1318909584 | False | 0 | c2scqgd | t3_lf038 | null | t1_c2scqgd | t1_c2sa62u | null | 1427746721 | 7 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318909734 | False | 0 | c2scr5v | t3_lfm1k | null | t1_c2scr5v | t1_c2scgln | null | 1427746728 | 9 | t5_2fwo | null | null | null |
True | ethraax | null | When I brought up ugly looking code to my manager, I was told that there was no "business value" in trying to refactor it. Also, there were almost no comments at all, and no overall documentation of the architecture. Its shear size made it impossible to reason about due to the extreme level of coupling.
The worst pa... | null | 0 | 1318909796 | False | 0 | c2scrgi | t3_lehrj | null | t1_c2scrgi | t1_c2s513j | null | 1427746733 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | That depends in part on how you structure your program and what you're talking about - if you're operating inside of an instance of `MonadIO` for example, in this particular part of your code, then adding logging is utterly, utterly trivial (`log = liftIO . putStrLn` - and before people attempt to shoot me saying OMG ... | null | 0 | 1318910006 | True | 0 | c2scsgd | t3_lfm1k | null | t1_c2scsgd | t1_c2sckdj | null | 1427746745 | 15 | t5_2fwo | null | null | null |
True | Vanthu | null | Understand this before you quit your job. Programming can be amazingly dull. And, when you are under pressure to get something done, and you have no idea how you are going to solve the problem, it can be amazingly stressful. How many jobs do you know that can be amazingly dull and amazingly stressful at the same time? ... | null | 0 | 1318910067 | True | 0 | c2scsrc | t3_lf038 | null | t1_c2scsrc | t1_c2s7b2c | null | 1427746749 | 3 | t5_2fwo | null | null | null |
True | SnowdensOfYesteryear | null | > [[ or ]] (to move to previous/next function)
Wow. Just wow. You've opened my eyes to the ] commands today. | null | 0 | 1318910074 | False | 0 | c2scssk | t3_lfblq | null | t1_c2scssk | t1_c2s9lt8 | null | 1427746749 | 2 | t5_2fwo | null | null | null |
True | last_useful_man | null | I'd like to know the basis of your 'mediocre' vs 'others' distinction.
Almost regardless, once you distinguish 'fluid' from 'crystallized' intelligence, and realize that a programmer needs /fluid/ intelligence, always, no matter how much they may have crystallized, things look dimmer. Note, I'm not trying to pick on ... | null | 0 | 1318910115 | True | 0 | c2scszl | t3_lf038 | null | t1_c2scszl | t1_c2sa62u | null | 1427746752 | 3 | t5_2fwo | null | null | null |
True | last_useful_man | null | As an older guy (not as old as yourself, mind) myself, I've heard someone say (indirectly), that they don't want someone set in their ways insisting on doing something the way they did it elsewhere. Ie, I guess, employers like the pliance and I'd guess, just the cheerfulness and energy of youth.
| null | 0 | 1318910308 | True | 0 | c2sctvw | t3_lf038 | null | t1_c2sctvw | t1_c2scqgd | null | 1427746763 | 1 | t5_2fwo | null | null | null |
True | gmrple | null | Can the Arduino do HV programming? The AVRdragon (~$50+shipping) can... which will let you do a bit more. It is a bit of a pain for beginners though, since there is some soldering required and most of the headers aren't included. | null | 0 | 1318910321 | False | 0 | c2scty0 | t3_lf57z | null | t1_c2scty0 | t1_c2sbvnc | null | 1427746763 | 2 | t5_2fwo | null | null | null |
True | doubtingthomas | null | Interesting; this post could almost have been written by me.
I know Haskell, I like Haskell, and I think it's a great language, but I've found that (in general) I can write efficient and correct programs just as fast or faster in other languages, and they end up less fancy.
Haskell is really great for heavily algorithm... | null | 0 | 1318910334 | True | 0 | c2scu0d | t3_lfm1k | null | t1_c2scu0d | t3_lfm1k | null | 1427746765 | 35 | t5_2fwo | null | null | null |
True | AlonzoIsOurChurch | null | Huh? What exactly does it mean for code to "get the job done" (outer rectangle of Venn diagram, presumably) but not be a "correct solution" (central circle)?
I wish Dijkstra were still around. | null | 0 | 1318910343 | False | 0 | c2scu1z | t3_lfm1k | null | t1_c2scu1z | t3_lfm1k | null | 1427746765 | 11 | t5_2fwo | null | null | null |
True | devynci | null | And what by that do you mean? | null | 0 | 1318910361 | False | 0 | c2scu4u | t3_lfm1k | null | t1_c2scu4u | t1_c2scngj | null | 1427746767 | 3 | t5_2fwo | null | null | null |
True | greenspans | null | Linux sucks. Email me me if you want to know why. I tried a random distro casually, for like, a month after spending 20 years using windows. I don't want to post anything specific publicly that could be seen as inflammatory or anything, my point is it sucks, just wanted to get the out there. | null | 0 | 1318910483 | True | 0 | c2scuqd | t3_lfm1k | null | t1_c2scuqd | t1_c2scpmr | null | 1427746775 | 7 | t5_2fwo | null | null | null |
True | Vanthu | null | my opinion on a good starting language: [learn python the hard way](http://learnpythonthehardway.org/)
First learn a language, then learn how to think in the language, then forget about the language and learn how to solve problems. | null | 0 | 1318910626 | False | 0 | c2scve0 | t3_lf038 | null | t1_c2scve0 | t1_c2s9hjz | null | 1427746784 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318910931 | False | 0 | c2scwr4 | t3_lf038 | null | t1_c2scwr4 | t3_lf038 | null | 1427746809 | 2 | t5_2fwo | null | null | null |
True | Vanthu | null | yea, that's how I got my break. They were going to lose a 12 million dollar revenue a year client unless something happened. I happened. They had no choice but to give me a chance. | null | 0 | 1318910999 | False | 0 | c2scx2x | t3_lf038 | null | t1_c2scx2x | t1_c2s7cxd | null | 1427746809 | 1 | t5_2fwo | null | null | null |
True | Vanthu | null | Metro Los Angeles. | null | 0 | 1318911032 | False | 0 | c2scx8j | t3_lf038 | null | t1_c2scx8j | t1_c2savuw | null | 1427746817 | 1 | t5_2fwo | null | null | null |
True | cavercody | null | > If you can't figure out a doubly linked list implementation pretty quickly just by pure thought, thats definitely a red flag
Exactly. | null | 0 | 1318911054 | False | 0 | c2scxcb | t3_lf038 | null | t1_c2scxcb | t1_c2scb6g | null | 1427746812 | -1 | t5_2fwo | null | null | null |
True | greenspans | null | They call it ruby because it likes to rub its ass on the programming community's carpet.
They call it haskell because haskell curry was a badass mathematician.
Does that answer your question | null | 0 | 1318911086 | False | 0 | c2scxhv | t3_lfm1k | null | t1_c2scxhv | t1_c2sckdj | null | 1427746813 | -13 | t5_2fwo | null | null | null |
True | Vanthu | null | I will throw some resumes up there and see what happens. | null | 0 | 1318911098 | False | 0 | c2scxjx | t3_lf038 | null | t1_c2scxjx | t1_c2s9xky | null | 1427746814 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Interesting! I did not know about the trace function. The fact that it exists is a nice demonstration of the difficulty with purity. | null | 0 | 1318911176 | False | 0 | c2scxx7 | t3_lfm1k | null | t1_c2scxx7 | t1_c2scsgd | null | 1427746818 | 0 | t5_2fwo | null | null | null |
True | grumdrig | null | Hilarious. So to choose between 0 and 1 randomly, you should call rand() an expected RAND_MAX/2 times. | null | 0 | 1318911187 | False | 0 | c2scxzb | t3_lfsfk | null | t1_c2scxzb | t3_lfsfk | null | 1427746819 | 6 | t5_2fwo | null | null | null |
True | [deleted] | null | > But for the general, pure case
trace :: String -> a -> a
trace string expr = unsafePerformIO $ do
putTraceMsg string
return expr
Mhhh, maybe not so pure after all.
| null | 0 | 1318911188 | False | 0 | c2scxzi | t3_lfm1k | null | t1_c2scxzi | t1_c2scsgd | null | 1427746819 | -2 | t5_2fwo | null | null | null |
True | [deleted] | null | Experimenting is where everything starts... and the desktop is not really as used as the web browser now by the average user, so I wouldn't be surprised if that came along soon. | null | 0 | 1318911285 | False | 0 | c2scyfa | t3_lca6k | null | t1_c2scyfa | t1_c2sanrj | null | 1427746822 | 1 | t5_2fwo | null | null | null |
True | snakepants | null | After the last time this came up on Reddit I decided to put my money where my mouth is and actually learn Haskell.
The first project I tried was writing a raytracer. I thought it mapped really well to the functional paradigm. (each ray is only dependent on the read-only global state and it's sub rays). It's also emba... | null | 0 | 1318911321 | True | 0 | c2scyjm | t3_lfm1k | null | t1_c2scyjm | t3_lfm1k | null | 1427746824 | 41 | t5_2fwo | null | null | null |
True | Vulpyne | null | From what I know of dons, he is probably asking from the perspective of *how can I make this better, how can I address the problems a user experienced* rather than trying to start any sort of language war.
You don't necessarily have to respond publicly. | null | 0 | 1318911345 | False | 0 | c2scypj | t3_lfm1k | null | t1_c2scypj | t1_c2scpmr | null | 1427746826 | 8 | t5_2fwo | null | null | null |
True | [deleted] | null | > Everything you just said about C++ applies equally to statically typed languages higher up the abstraction chain (anything ML based, Haskell, ATS).
Those languages aren't higher up the abstraction chain. If we consider turning machines to be at +1 and lamda calculus to be at -1 and distance from 0 to be how low ... | null | 0 | 1318911429 | False | 0 | c2scz2y | t3_lf038 | null | t1_c2scz2y | t1_c2s9h0y | null | 1427746831 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318911444 | False | 0 | c2scz5d | t3_lf038 | null | t1_c2scz5d | t1_c2scxjx | null | 1427746832 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | >A real fix is to work with the distribution rather than try to circumvent it. Simply call rand() until you get a number that fits within your selected range:
I can't believe this is presented as a candidate for a solution. | null | 0 | 1318911460 | False | 0 | c2scz7y | t3_lfsfk | null | t1_c2scz7y | t3_lfsfk | null | 1427746833 | 25 | t5_2fwo | null | null | null |
True | [deleted] | null | I think most people can judge whether they would find sitting at a computer typing source code enjoyable or not. Even if they're wrong they're probably not out much(given the vast majority of things they could be doing instead)
I don't really think it's about being afraid of learning so much as rational ignorance. To ... | null | 0 | 1318911634 | False | 0 | c2sd00m | t3_lfrt9 | null | t1_c2sd00m | t1_c2sci3m | null | 1427746844 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | > A EE could select the first part that comes up in a Google search
Then you have to wait for it to arrive by mail. APIs are a download away. | null | 0 | 1318911648 | False | 0 | c2sd03a | t3_lf038 | null | t1_c2sd03a | t1_c2sb940 | null | 1427746845 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318911828 | False | 0 | c2sd0x3 | t3_lew0f | null | t1_c2sd0x3 | t3_lew0f | null | 1427746855 | -3 | t5_2fwo | null | null | null |
True | Vanthu | null | I don't miss C++ (or C# for that matter), but, oh how I wish I had done more Java after I graduated school. I, however, settled on web programming after I finished school because I could transition from my previous career more easily that way. Maybe that was a mistake, but it's too late to change that now.
I know it'... | null | 0 | 1318911841 | True | 0 | c2sd0zd | t3_lf038 | null | t1_c2sd0zd | t1_c2sb4pc | null | 1427746857 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Hopefully eventually you'll see that "pleasing the type system" and "the problem you have at hand" are profoundly related. This is admittedly not probably a trivial undertaking, given how many years (decades?) most of us have spent having the incorrect notion that "types" describe how bits are laid out in memory forced... | null | 0 | 1318911884 | False | 0 | c2sd16u | t3_lfm1k | null | t1_c2sd16u | t1_c2sb9ed | null | 1427746858 | 13 | t5_2fwo | null | null | null |
True | [deleted] | null | I wish I could give you one upvote for the sensible post and one for the awesome name. | null | 0 | 1318912034 | False | 0 | c2sd1w7 | t3_lfm1k | null | t1_c2sd1w7 | t1_c2scu1z | null | 1427746875 | 6 | t5_2fwo | null | null | null |
True | Smallpaul | null | I'm downvoting you because your comments are not enlightening to a programmer audience. Actually: they are insulting and annoying. "You're smart enough that I can explain to you that Haskell does not work for me, but not smart enough to understand my actual examples."
If you are not prepared to defend your position,yo... | null | 0 | 1318912126 | False | 0 | c2sd2db | t3_lfm1k | null | t1_c2sd2db | t1_c2scpo8 | null | 1427746875 | 12 | t5_2fwo | null | null | null |
True | doubtingthomas | null | You're providing a great example for why (I presume) he doesn't want to get into a language discussion on Reddit.
Reddit is a great place for arguing, but (as of the last few years?) isn't always a good place for a civil discussion, especially about something like programming languages. Folks like you mischaracterize ... | null | 0 | 1318912206 | False | 0 | c2sd2rd | t3_lfm1k | null | t1_c2sd2rd | t1_c2scuqd | null | 1427746880 | 19 | t5_2fwo | null | null | null |
True | polycant | null | Nice! I had no idea. | null | 0 | 1318912249 | False | 0 | c2sd2z1 | t3_lfblq | null | t1_c2sd2z1 | t1_c2sb7j9 | null | 1427746882 | 1 | t5_2fwo | null | null | null |
True | Smallpaul | null | Please leave the pop physics at home Deepak. | null | 0 | 1318912288 | False | 0 | c2sd35c | t3_lfm1k | null | t1_c2sd35c | t1_c2sc9ql | null | 1427746885 | 8 | t5_2fwo | null | null | null |
True | [deleted] | null | Has the assertion that using only the higher- or lower-order bits results in a non-uniform distribution been proved? If not, I suspect a right-shift could work for all power-of-two N. | null | 0 | 1318912359 | False | 0 | c2sd3gn | t3_lfsfk | null | t1_c2sd3gn | t3_lfsfk | null | 1427746889 | 4 | t5_2fwo | null | null | null |
True | imbcmdth | null | A well known technique for generating points randomly inside a unit circle involves generating pairs (x, y) of random numbers over the range of -1 to 1 and rejecting any pairs outside of the unit circle (any pairs for which x\*x+y\*y > 1). | null | 0 | 1318912381 | True | 0 | c2sd3kh | t3_lfsfk | null | t1_c2sd3kh | t1_c2scz7y | null | 1427746890 | 11 | t5_2fwo | null | null | null |
True | a_redditor | null | Keep it in the cesspool please. | null | 0 | 1318912381 | False | 0 | c2sd3kn | t3_lflbu | null | t1_c2sd3kn | t3_lflbu | null | 1427746890 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | Theoretically I could pay someone to tie my shoes for me, practically some tasks are so simple that they can't be outsourced effectively. | null | 0 | 1318912412 | False | 0 | c2sd3pq | t3_lfrt9 | null | t1_c2sd3pq | t1_c2sbqmh | null | 1427746893 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | It has a time complexity of O(rand())! | null | 0 | 1318912439 | False | 0 | c2sd3ua | t3_lfsfk | null | t1_c2sd3ua | t1_c2scz7y | null | 1427746894 | 20 | t5_2fwo | null | null | null |
True | [deleted] | null | > and they don't get bogged down in abstraction wankery.
Yes, because when using Haskell, the abstraction wankery is so high you have to actively fight it, because otherwise it controls your brain and forces you to write endless blog posts about fibonacci functions using prepromorphic zygohistomines instead of gett... | null | 0 | 1318912480 | False | 0 | c2sd41m | t3_lfm1k | null | t1_c2sd41m | t1_c2scu0d | null | 1427746897 | 4 | t5_2fwo | null | null | null |
True | Smallpaul | null | Grow up. You're justifying the OP's point that programmers cannot discuss programming languages like adults. | null | 0 | 1318912497 | False | 0 | c2sd43j | t3_lfm1k | null | t1_c2sd43j | t1_c2scxhv | null | 1427746897 | 9 | t5_2fwo | null | null | null |
True | Smallpaul | null | Doesn't GHC have explicit parallelization primitives? Aren't they appropriate? | null | 0 | 1318912650 | False | 0 | c2sd4rz | t3_lfm1k | null | t1_c2sd4rz | t1_c2scyjm | null | 1427746908 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318912674 | False | 0 | c2sd4vx | t3_lfm1k | null | t1_c2sd4vx | t1_c2sd35c | null | 1427746910 | 0 | t5_2fwo | null | null | null |
True | reventlov | null | It depends on the specific pseudo-random number generator in use. Many of the ones that old C or Java standard libraries used had very, very non-random low-order bits. (For example, an early JVM PRNG alternated the lowest bit on every single call.) | null | 0 | 1318912689 | False | 0 | c2sd4y7 | t3_lfsfk | null | t1_c2sd4y7 | t1_c2sd3gn | null | 1427746912 | 3 | t5_2fwo | null | null | null |
True | Smallpaul | null | Why are you presuming that that's what the rectangle represents? It says quite explicitly that it is ALL POSSIBLE PROGRAMS. The "code that works" circle is also the "gets the job done" circle. | null | 0 | 1318912737 | False | 0 | c2sd55o | t3_lfm1k | null | t1_c2sd55o | t1_c2scu1z | null | 1427746915 | 8 | t5_2fwo | null | null | null |
True | [deleted] | null | When I said "pure case" I mean "adding logging to a pure function," i.e. not affecting that functions overall type signature and thus not requiring some refactoring of your program if you don't want to do that - presumably what `Canumber` is getting at. It's just there as a utility and if you need it, then fine.
This ... | null | 0 | 1318912768 | True | 0 | c2sd5at | t3_lfm1k | null | t1_c2sd5at | t1_c2scxzi | null | 1427746917 | 13 | t5_2fwo | null | null | null |
True | EntroperZero | null | Probably not, since RAND_MAX + 1 is very likely to be evenly divisible by 2. | null | 0 | 1318912911 | False | 0 | c2sd5ww | t3_lfsfk | null | t1_c2sd5ww | t1_c2scxzb | null | 1427746925 | 5 | t5_2fwo | null | null | null |
True | [deleted] | null | I've worked as a programmer/software engineer for over 20 years; I think it's too late for me to learn now.
| null | 0 | 1318913105 | False | 0 | c2sd6qz | t3_lf038 | null | t1_c2sd6qz | t3_lf038 | null | 1427746941 | 1 | t5_2fwo | null | null | null |
True | billsnow | null | Well, considering Bill Joy's original paper *An Introduction to Display Editing with Vi* has a section titled "4.2. Higher level text objects" I wouldn't say that vi doesn't have text objects. Vim's text objects are a more powerful extrapolation of the original commands but not THAT much more powerful.
The nicest thin... | null | 0 | 1318913114 | False | 0 | c2sd6si | t3_lfblq | null | t1_c2sd6si | t1_c2scnd9 | null | 1427746939 | 6 | t5_2fwo | null | null | null |
True | AlonzoIsOurChurch | null | >If you've written a Haskell program that runs, it's highly likely to be a correct solution; but the set of runnable Haskell programs is much smaller than the space of programs that get the job done
You're right, as long as you assume the diagram has nothing to do with the accompanying text. | null | 0 | 1318913157 | False | 0 | c2sd6zc | t3_lfm1k | null | t1_c2sd6zc | t1_c2sd55o | null | 1427746941 | -2 | t5_2fwo | null | null | null |
True | benchambers | null | I can understand this opinion. I think several things contribute to the pain:
1. Many of the ways that people structure large applications and get them to interact don't work in Haskell. I have yet to see an equivalent to Design Patterns that makes it clear how to handle different things.
For example, when I was ... | null | 0 | 1318913258 | True | 0 | c2sd7f3 | t3_lfm1k | null | t1_c2sd7f3 | t3_lfm1k | null | 1427746946 | 7 | t5_2fwo | null | null | null |
True | rounding_error | null | You can use rand() for some really cruel pranks.
Tuck this away in a commonly used header file:
#define if(x) if((rand()%10000) && (x))
Every once in a while, (rand()%10000) will evaluate to 0, and a true condition will incorrectly evaluate as false. With some creative abuse of the preprocessor, you can... | null | 0 | 1318913296 | True | 0 | c2sd7lb | t3_lfsfk | null | t1_c2sd7lb | t3_lfsfk | null | 1427746947 | 43 | t5_2fwo | null | null | null |
True | doubtingthomas | null | Haskell presents many exciting, powerful, and interesting possibilities that other languages don't. Many of them aren't useful, and it takes experience and some self-control to avoid doing neat useless things.
The same can be said for Lisp macros, Ruby metaclasses, C++ templates, etc. It's great to have powerful featu... | null | 0 | 1318913331 | False | 0 | c2sd7qp | t3_lfm1k | null | t1_c2sd7qp | t1_c2sd41m | null | 1427746948 | 31 | t5_2fwo | null | null | null |
True | [deleted] | null | You are technically correct, of course. But you can't deny that the function has side effects, albeit hidden away. There is a reason why the module is in `Debug`. | null | 0 | 1318913629 | False | 0 | c2sd92w | t3_lfm1k | null | t1_c2sd92w | t1_c2sd5at | null | 1427746963 | -1 | t5_2fwo | null | null | null |
True | Jyaif | null | As long as RAND_MAX+1 is a power of two, any subset of bits represent a uniform distribution.
And yes, in this case you can use right-shifts, since it is equivalent to a division by a power-of-two. | null | 0 | 1318913704 | True | 0 | c2sd9ef | t3_lfsfk | null | t1_c2sd9ef | t1_c2sd3gn | null | 1427746967 | 2 | t5_2fwo | null | null | null |
True | polveroj | null | This is okay because you know that the area of the circle is a reasonable fraction of the area of the square. In the article's case, the desired range might be much, much smaller than RAND_MAX. However, we can get by by accepting rand() results in any range whose size is an integer multiple of the desired range's siz... | null | 0 | 1318913800 | False | 0 | c2sd9tj | t3_lfsfk | null | t1_c2sd9tj | t1_c2sd3kh | null | 1427746981 | 11 | t5_2fwo | null | null | null |
True | aidenr | null | I got a job interview and was asked to write a C tic tac toe game on the spot. They left me in the room with the compiler and (on a shelf) the original book. 8 hours later I was in love with C and began my career as a dev. Day one is when K&R changed my life. | null | 0 | 1318913831 | False | 0 | c2sd9yj | t3_lf7o7 | null | t1_c2sd9yj | t3_lf7o7 | null | 1427746973 | 6 | t5_2fwo | null | null | null |
True | Smallpaul | null | He meant: "the set of correct, runnable Haskell programs is much smaller than the set of programs that get the job done (I.e. Are sufficiently correct but not elegant)."
He did not express an opinion on whether only "truly correct" programs are also sufficiently correct. | null | 0 | 1318913849 | False | 0 | c2sda1b | t3_lfm1k | null | t1_c2sda1b | t1_c2sd6zc | null | 1427746974 | 6 | t5_2fwo | null | null | null |
True | prog101 | null | The probability of a point being accepted is pi/4 in your case. For what the author is doing, the probability of acceptance is miniscule for most situations (range much smaller than RAND_MAX). | null | 0 | 1318913893 | False | 0 | c2sda7j | t3_lfsfk | null | t1_c2sda7j | t1_c2sd3kh | null | 1427746986 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | I am not denying it, and I don't believe I ever did anything of the sort. It's merely a detail that's orthogonal to the original question - "can I add logging to my function" - and the answer is yes, you can. You can do it many ways. `trace` is just one of them. Doing it other ways may require restructuring/rethinking ... | null | 0 | 1318913931 | False | 0 | c2sdadc | t3_lfm1k | null | t1_c2sdadc | t1_c2sd92w | null | 1428192162 | 5 | t5_2fwo | null | null | null |
True | ipeev | null | Very good. | null | 0 | 1318913959 | False | 0 | c2sdah9 | t3_lff0t | null | t1_c2sdah9 | t3_lff0t | null | 1427746994 | 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.