{"user_id":"anon_1da38bbb7f3b2cdf","answerer_user_id":"anon_fb6c3730b0c63815","subreddit":"programming","timestamp":"2006-12-20T18:20:52+00:00","post_id":"viqs","question":"Why haven't you written a book about Haskell?","preferred_answer":"It's called print.\r\n\r\nprint :: (Show a) => a -> IO ()\r\n\r\nprint = putStrLn . show\r\n\r\nReally. Anything that derives or instances Show can be printed.","full_conversation":[{"role":"OP","user_id":"anon_1da38bbb7f3b2cdf","comment_id":"viqs","kind":"post","text":"Why haven't you written a book about Haskell?","timestamp":"2006-12-20T18:20:52+00:00","score":12},{"role":"answerer","user_id":"anon_fb6c3730b0c63815","comment_id":"cvj36","kind":"comment","text":"It's called print.\r\n\r\nprint :: (Show a) => a -> IO ()\r\n\r\nprint = putStrLn . show\r\n\r\nReally. Anything that derives or instances Show can be printed.","timestamp":"2006-12-20T19:16:55+00:00","score":4},{"role":"OP","user_id":"anon_1da38bbb7f3b2cdf","comment_id":"cvj43","kind":"comment","text":"Thanks. I don't know how many tuts I've waded through that only show printStr.","timestamp":"2006-12-20T19:23:23+00:00","score":2},{"role":"answerer","user_id":"anon_fb6c3730b0c63815","comment_id":"cvj5w","kind":"comment","text":"I am a bit confused why you mention dynamic languages, but do not want to work with an interpreter available.\r\n\r\nOf course, I won't stop you from working how you like, and there was certainly an answer to your question.\r\n\r\nThe way I work with Haskell code is to edit it alongside a running copy of ghci which I constantly reload in. Emacs supports this particular style of development with integration between the two. I'm sure there's similar plugins for other editors.\r\n\r\nI became very accustomed to this from working with Common Lisp, where like Smalltalk, programmers tend to work within a dynamically changing environment with immediate feedback from recompiled code.\r\n\r\nThere are a lot of advantages besides being able to type expressions at the prompt. Having immediate and referenced feedback on type errors is nice. Being able to query types and information about program identifiers is also very useful.","timestamp":"2006-12-20T19:30:21+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1da38bbb7f3b2cdf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fb6c3730b0c63815","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cvj36","thanks_reply_id":"cvj43","post_score":12,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_a6e77aa1364ce6bf","answerer_user_id":"anon_5b278eabf51f968d","subreddit":"programming","timestamp":"2007-02-13T19:15:31+00:00","post_id":"14dfy","question":"How do you quit your Java (J2EE) Programming job to do something more interesting","preferred_answer":"Actually, that's why I used job board aggregators like http://www.indeed.com and http://www.simplyhired.com -- when you are looking for something more rare, they work pretty well. If you do a search, they both give you an RSS link to the search so you can monitor it over time. I found my current job that way -- it took months of keeping up with the feed to find what I was looking for, but I would never have found it otherwise.","full_conversation":[{"role":"OP","user_id":"anon_a6e77aa1364ce6bf","comment_id":"14dfy","kind":"post","text":"How do you quit your Java (J2EE) Programming job to do something more interesting","timestamp":"2007-02-13T19:15:31+00:00","score":27},{"role":"answerer","user_id":"anon_5b278eabf51f968d","comment_id":"c14dx8","kind":"comment","text":"Actually, that's why I used job board aggregators like http://www.indeed.com and http://www.simplyhired.com -- when you are looking for something more rare, they work pretty well. If you do a search, they both give you an RSS link to the search so you can monitor it over time. I found my current job that way -- it took months of keeping up with the feed to find what I was looking for, but I would never have found it otherwise.","timestamp":"2007-02-13T20:28:22+00:00","score":5},{"role":"OP","user_id":"anon_a6e77aa1364ce6bf","comment_id":"c14dyn","kind":"comment","text":"Thanks. I am not implying that I just 'wont' work with java. It is more the culture surrounding J2EE development that really doesnt encourage innovation and users and management are in complete control.","timestamp":"2007-02-13T20:35:13+00:00","score":3},{"role":"answerer","user_id":"anon_5b278eabf51f968d","comment_id":"c14e82","kind":"comment","text":"Do you work for internal IT or a software company? I think environment differences have to do more with what the focus of the company is rather than what technology it uses.\r\n\r\nWhen I was working in J2EE as in in-house developer, the project was actually pretty ok and well run. The rest of the company was pathological and made the environment unbearable. That same exact project in another company would have been totally fine. \r\n\r\nNow I work in .NET for a software company -- we sell software, so we really care about it -- software is an asset and developers are investment, not a cost center (the way non-software companies think of them). The difference in environment has nothing to do with the differences between Java and .NET.","timestamp":"2007-02-13T21:16:13+00:00","score":10}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a6e77aa1364ce6bf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5b278eabf51f968d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c14dx8","thanks_reply_id":"c14dyn","post_score":27,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_9becfdbd6554b5e0","answerer_user_id":"anon_d13585895a3e0bd6","subreddit":"programming","timestamp":"2007-02-27T20:53:33+00:00","post_id":"16wlm","question":"Why Rails Fixtures are No Fun","preferred_answer":"Fixtures shouldn't have hard-coded IDs in them. That's just asking for trouble.\r\n\r\nIt's Python, but I wrote [NonMockObjects](http://www.jerf.org/programming/nonMockObjects.html) basically for this same reason. (Well, actually, I just skipped over the part where I tried to hard-code my test database rows, since I lucked into a situation where once I realized I needed test data, the requisite data was already too complicated to hard code in any reasonable amount of time.) Perhaps a Ruby port would be a good idea. NonMockObjects is currently in use in a Django environment, which is very similar, so I know the idea is sound.\r\n\r\nWith a bit of library support and the right structure, I find generating test data via code to be about an order of magnitude or so easier, and I just don't get everyone's apparent obsession with test fixtures which, being static data and not code, are not particularly amenable to refactoring, abstraction, or any of the other advantages of living code over dead data.","full_conversation":[{"role":"OP","user_id":"anon_9becfdbd6554b5e0","comment_id":"16wlm","kind":"post","text":"Why Rails Fixtures are No Fun","timestamp":"2007-02-27T20:53:33+00:00","score":5},{"role":"answerer","user_id":"anon_d13585895a3e0bd6","comment_id":"c16z51","kind":"comment","text":"Fixtures shouldn't have hard-coded IDs in them. That's just asking for trouble.\r\n\r\nIt's Python, but I wrote [NonMockObjects](http://www.jerf.org/programming/nonMockObjects.html) basically for this same reason. (Well, actually, I just skipped over the part where I tried to hard-code my test database rows, since I lucked into a situation where once I realized I needed test data, the requisite data was already too complicated to hard code in any reasonable amount of time.) Perhaps a Ruby port would be a good idea. NonMockObjects is currently in use in a Django environment, which is very similar, so I know the idea is sound.\r\n\r\nWith a bit of library support and the right structure, I find generating test data via code to be about an order of magnitude or so easier, and I just don't get everyone's apparent obsession with test fixtures which, being static data and not code, are not particularly amenable to refactoring, abstraction, or any of the other advantages of living code over dead data.","timestamp":"2007-02-28T05:05:35+00:00","score":3},{"role":"OP","user_id":"anon_9becfdbd6554b5e0","comment_id":"c175xz","kind":"comment","text":"Thanks for the input jerf.","timestamp":"2007-03-01T05:26:47+00:00","score":1},{"role":"answerer","user_id":"anon_d13585895a3e0bd6","comment_id":"c1796p","kind":"comment","text":"Less extreme than porting code from another language, you ought to be able to get somewhere with using Ruby symbols for IDs, then allowing the fixture framework to convert that to IDs for you. Then the IDs are still symbolic and can get moved around and such, but you can still use what fixtures you have with minimal changes.\r\n\r\nI have no idea who you'd suggest that to, but I'd consider it a vital fixtures feature. (You'll also need some way of requesting objects by the symbolic ID used this run.)","timestamp":"2007-03-01T19:14:09+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9becfdbd6554b5e0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d13585895a3e0bd6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c16z51","thanks_reply_id":"c175xz","post_score":5,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_94265549b21d00f4","answerer_user_id":"anon_d649eeb147a27ba2","subreddit":"programming","timestamp":"2007-03-14T14:57:19+00:00","post_id":"1a73t","question":"FINE: I will look at LISP. Where do I start?","preferred_answer":"Probably will be recommended by 50 trillion people after me, but Practical Common Lisp is a nice book. Look on the author's page and download a Lispbox for Windows.\r\n\r\nEdit: Should mention that today the two most-used dialects of Lisp are Common Lisp and Scheme. In my opinion, Common Lisp is more \"practical\", but Scheme is prettier. If you do want to broaden your mind about programming rather than just \"learn another language\", then I recommend SICP (Structure and Interpretation of Computer Programs). Be warned though - it does require patience (probably wouldn't be worth much if it didn't).","full_conversation":[{"role":"OP","user_id":"anon_94265549b21d00f4","comment_id":"1a73t","kind":"post","text":"FINE: I will look at LISP. Where do I start?","timestamp":"2007-03-14T14:57:19+00:00","score":163},{"role":"answerer","user_id":"anon_d649eeb147a27ba2","comment_id":"c1a76x","kind":"comment","text":"Probably will be recommended by 50 trillion people after me, but Practical Common Lisp is a nice book. Look on the author's page and download a Lispbox for Windows.\r\n\r\nEdit: Should mention that today the two most-used dialects of Lisp are Common Lisp and Scheme. In my opinion, Common Lisp is more \"practical\", but Scheme is prettier. If you do want to broaden your mind about programming rather than just \"learn another language\", then I recommend SICP (Structure and Interpretation of Computer Programs). Be warned though - it does require patience (probably wouldn't be worth much if it didn't).","timestamp":"2007-03-14T15:09:30+00:00","score":15},{"role":"OP","user_id":"anon_94265549b21d00f4","comment_id":"c1a780","kind":"comment","text":"Done and done. Thanks!\r\n\r\nLookee here: The text of said book\r\nhttp://www.gigamonkeys.com/book/\r\n\r\nAnd here is the download of Lispbox from the same site\r\nhttp://www.gigamonkeys.com/book/lispbox/","timestamp":"2007-03-14T15:13:06+00:00","score":11},{"role":"answerer","user_id":"anon_d649eeb147a27ba2","comment_id":"c1a7aj","kind":"comment","text":"Yep, I was too lazy to post those links and decided to rely on you googling for them :)","timestamp":"2007-03-14T15:20:29+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_94265549b21d00f4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d649eeb147a27ba2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1a76x","thanks_reply_id":"c1a780","post_score":163,"answer_score":15,"preferred_answer_is_top_level":true}} {"user_id":"anon_ffc0e4863259c323","answerer_user_id":"anon_fe2a03b6fcb7a669","subreddit":"programming","timestamp":"2007-03-15T23:21:56+00:00","post_id":"1akns","question":"Can Operating Systems tell if they're running in a Virtual Machine?","preferred_answer":"This guy is running about 8-10 months behind the times. Most notably, a few weeks ago Peter Ferrie at Symantec and our team at Matasano published \r\n[several techniques for detecting virtualization][1], including \"hardware-virtualized\" rootkits --- Joanna's BluePill (AMD) and our Vitriol (Intel). \r\n\r\nThere's a \"debate\" about whether hypervisor detection will remain feasible in the long term (assuming it continues to rely on VT/SVM extensions). What we know now is:\r\n\r\n- You can definitely tell if you're software/DBT virtualized (a la VMWare), and likely always will be able to.\r\n\r\n- You can currently tell if you're hardware virtualized via VT/SVM.\r\n\r\n- There are a lot of ways to tell if you're hardware virtualized, many of them hard to defeat.\r\n\r\n- Most of them are way, way easier if you're in ring 0, like the Vista kernel is, and most of them take near-negligable CPU time.\r\n\r\n- But who knows what else Joanna will come up with; this is cat-and-mouse stuff.\r\n\r\nNits: nobody cares about SubVirt (it's very noisy), \"inferred\" fingerprinting doesn't rely on instructions the VMM doesn't know how to emulate (you can, for instance, defeat a virtualized TSC counter), there is no evidence Joanna's \"RedPill\" exists, the IDTR is now virtualized, and, come on, there are like 4889438 clocks inside of a modern PC, and they all have to agree with each other to hide a hypervisor; you don't need wristwatches to time Blue Pill.\r\n\r\n[1]: http://www.matasano.com/log/680/detecting-virtualized-rootkits/","full_conversation":[{"role":"OP","user_id":"anon_ffc0e4863259c323","comment_id":"1akns","kind":"post","text":"Can Operating Systems tell if they're running in a Virtual Machine?","timestamp":"2007-03-15T23:21:56+00:00","score":185},{"role":"answerer","user_id":"anon_fe2a03b6fcb7a669","comment_id":"c1ami4","kind":"comment","text":"This guy is running about 8-10 months behind the times. Most notably, a few weeks ago Peter Ferrie at Symantec and our team at Matasano published \r\n[several techniques for detecting virtualization][1], including \"hardware-virtualized\" rootkits --- Joanna's BluePill (AMD) and our Vitriol (Intel). \r\n\r\nThere's a \"debate\" about whether hypervisor detection will remain feasible in the long term (assuming it continues to rely on VT/SVM extensions). What we know now is:\r\n\r\n- You can definitely tell if you're software/DBT virtualized (a la VMWare), and likely always will be able to.\r\n\r\n- You can currently tell if you're hardware virtualized via VT/SVM.\r\n\r\n- There are a lot of ways to tell if you're hardware virtualized, many of them hard to defeat.\r\n\r\n- Most of them are way, way easier if you're in ring 0, like the Vista kernel is, and most of them take near-negligable CPU time.\r\n\r\n- But who knows what else Joanna will come up with; this is cat-and-mouse stuff.\r\n\r\nNits: nobody cares about SubVirt (it's very noisy), \"inferred\" fingerprinting doesn't rely on instructions the VMM doesn't know how to emulate (you can, for instance, defeat a virtualized TSC counter), there is no evidence Joanna's \"RedPill\" exists, the IDTR is now virtualized, and, come on, there are like 4889438 clocks inside of a modern PC, and they all have to agree with each other to hide a hypervisor; you don't need wristwatches to time Blue Pill.\r\n\r\n[1]: http://www.matasano.com/log/680/detecting-virtualized-rootkits/","timestamp":"2007-03-16T04:40:18+00:00","score":30},{"role":"OP","user_id":"anon_ffc0e4863259c323","comment_id":"c1amnp","kind":"comment","text":"Thanks for taking the time to respond!\r\n\r\nI wrote that back in October, so it wasn't quite as behind the times back then. Would you care to comment on the blog post and possibly expand further on the nits?","timestamp":"2007-03-16T05:14:04+00:00","score":10},{"role":"answerer","user_id":"anon_fe2a03b6fcb7a669","comment_id":"c1amof","kind":"comment","text":"Wow, I'm sorry. I downvoted my own comment. =)","timestamp":"2007-03-16T05:17:16+00:00","score":0},{"role":"OP","user_id":"anon_ffc0e4863259c323","comment_id":"c1ams0","kind":"comment","text":"Well, I voted you back up! Thanks for your very insightful comment on the post.","timestamp":"2007-03-16T05:36:34+00:00","score":5}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ffc0e4863259c323","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fe2a03b6fcb7a669","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1ami4","thanks_reply_id":"c1amnp","post_score":185,"answer_score":30,"preferred_answer_is_top_level":true}} {"user_id":"anon_ee9ff70126257336","answerer_user_id":"anon_bf60e431d9e8c752","subreddit":"programming","timestamp":"2007-07-31T03:52:10+00:00","post_id":"2awjt","question":"Ask Reddit: how do I digitize all my paper?","preferred_answer":"Well, I don't know about doing it all by yourself. I have digitalized some books I own using djvulibre and unpaper (djvulibre produces the DJVU format, and unpaper corrects the problems and cleans the scans). If you can get a service to digitize your stuff, then it's trivial to generate ebooks.\r\n\r\nhttp://djvu.sourceforge.net/\r\nhttp://unpaper.berlios.de/\r\nhttp://www.djvu.org/\r\n\r\nThe djvu.org has a service for you to submit stuff and they generate the djvu files.\r\n\r\nThe DJVU format achieves very high compression. Apparently, it uses wavelets technology. State-of-the-art, they say.\r\n\r\nBt the way, the original implementation used LUSH, a Lisp-based language and environment for number-crunching tasks.","full_conversation":[{"role":"OP","user_id":"anon_ee9ff70126257336","comment_id":"2awjt","kind":"post","text":"Ask Reddit: how do I digitize all my paper?","timestamp":"2007-07-31T03:52:10+00:00","score":0},{"role":"answerer","user_id":"anon_bf60e431d9e8c752","comment_id":"c2awnw","kind":"comment","text":"Well, I don't know about doing it all by yourself. I have digitalized some books I own using djvulibre and unpaper (djvulibre produces the DJVU format, and unpaper corrects the problems and cleans the scans). If you can get a service to digitize your stuff, then it's trivial to generate ebooks.\r\n\r\nhttp://djvu.sourceforge.net/\r\nhttp://unpaper.berlios.de/\r\nhttp://www.djvu.org/\r\n\r\nThe djvu.org has a service for you to submit stuff and they generate the djvu files.\r\n\r\nThe DJVU format achieves very high compression. Apparently, it uses wavelets technology. State-of-the-art, they say.\r\n\r\nBt the way, the original implementation used LUSH, a Lisp-based language and environment for number-crunching tasks.","timestamp":"2007-07-31T04:08:54+00:00","score":3},{"role":"OP","user_id":"anon_ee9ff70126257336","comment_id":"c2awry","kind":"comment","text":"Thanks, since it's lisp I guess I'll have to use it:)\r\n\r\nFound a good google answer too:\r\nhttp://answers.google.com/answers/threadview?id=365069","timestamp":"2007-07-31T04:28:13+00:00","score":2},{"role":"answerer","user_id":"anon_bf60e431d9e8c752","comment_id":"c2b4sy","kind":"comment","text":"The *original* implementation used LUSH. But LUSH kinda sucks (dynamic scoping all over). It was only used for prototyping, since LUSH performs fast numerical computations (that's what it's made for) and it's a lisp.\r\n\r\nIt was developed under AT & T and the released as open source.\r\n\r\nThe current implementation is written in C, IIRC. For speed and portability, I guess.","timestamp":"2007-07-31T20:04:56+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ee9ff70126257336","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bf60e431d9e8c752","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2awnw","thanks_reply_id":"c2awry","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_90b9415ab4c43cea","answerer_user_id":"anon_c0c5a200d38e99fc","subreddit":"programming","timestamp":"2007-08-23T14:38:58+00:00","post_id":"2hyp2","question":"Why do so many database programmers think that a primary key = a single autogenerated column?","preferred_answer":"Uniqueness of primary keys is not the only requirement.\r\n\r\nSurrogate keys never change. So the link once established is solid. You never think about it, never have any headache maintaining it.\r\n\r\nIf you use data fields for primary keys, data may change in a future. And then you have to chase that key in every child table and update it accordingly.\r\n\r\nToo much trouble for nothing.","full_conversation":[{"role":"OP","user_id":"anon_90b9415ab4c43cea","comment_id":"2hyp2","kind":"post","text":"Why do so many database programmers think that a primary key = a single autogenerated column?","timestamp":"2007-08-23T14:38:58+00:00","score":83},{"role":"answerer","user_id":"anon_c0c5a200d38e99fc","comment_id":"c2i080","kind":"comment","text":"Uniqueness of primary keys is not the only requirement.\r\n\r\nSurrogate keys never change. So the link once established is solid. You never think about it, never have any headache maintaining it.\r\n\r\nIf you use data fields for primary keys, data may change in a future. And then you have to chase that key in every child table and update it accordingly.\r\n\r\nToo much trouble for nothing.","timestamp":"2007-08-23T16:34:26+00:00","score":6},{"role":"OP","user_id":"anon_90b9415ab4c43cea","comment_id":"c2i08y","kind":"comment","text":"vagif -- I appreciate what you are saying, but I recommend perhaps reading the article.","timestamp":"2007-08-23T16:36:52+00:00","score":4},{"role":"answerer","user_id":"anon_c0c5a200d38e99fc","comment_id":"c2i0tt","kind":"comment","text":"Yes, you are right. Of course you can stack together surrogate keys (surrogate only!) to create another perfectly surrogate key. \r\n\r\nBut what you are forgetting is that chasing that small simplification (removing 1 field and 1 more unique index constraint) you are introducing much more complexity somewhere else.\r\n\r\nHow many times you need to create a table ? 1 time only.\r\n\r\nHow many times you need to query it ? Many times in many different places in your code.\r\n\r\nSo tell me which is simpler ?\r\n\r\n select bla bla \r\n from a inner join b on a.blablaid = b.blablaid \r\n and a.anotherblaid = b.anotherblaid\r\n\r\nor\r\n\r\n select bla bla \r\n from a inner join b on a.blablaid = b.blablaid \r\n\r\nBtw same goes for all other operations:\r\n\r\n update a ... where a.blablaid = 111 and a.anotherblaid = 222\r\n\r\nversus \r\n\r\n update a ... where a.blablaid = 111\r\n\r\n\r\nI do not mind such a small overhead and ambiguity in a table definition if it allows me to conveniently describe joins in a consistent manner everywhere in my code.","timestamp":"2007-08-23T17:23:54+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_90b9415ab4c43cea","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c0c5a200d38e99fc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2i080","thanks_reply_id":"c2i08y","post_score":83,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_624c930b4b8c6e24","answerer_user_id":"anon_84c845b2bfa8f3f8","subreddit":"programming","timestamp":"2007-08-29T09:34:24+00:00","post_id":"2jpxj","question":"Do you occasionally program in Bash? Read this thoroughly, you will save a lot of time.","preferred_answer":"I've never used wait before, but is it roughly equivalent to:\r\n\r\n from subprocess import call\r\n from threading import Thread\r\n import sys\r\n\r\n procs = []\r\n for i, arg in enumerate(sys.argv):\r\n cmd = \"echo hello %s\" % i\r\n t = Thread(target=lambda: call(cmd))\r\n t.start()\r\n procs.append(t)\r\n\r\n for p in procs:\r\n p.join()\r\n\r\n print \"do something else\"\r\n\r\n\r\n?","full_conversation":[{"role":"OP","user_id":"anon_624c930b4b8c6e24","comment_id":"2jpxj","kind":"post","text":"Do you occasionally program in Bash? Read this thoroughly, you will save a lot of time.","timestamp":"2007-08-29T09:34:24+00:00","score":75},{"role":"answerer","user_id":"anon_84c845b2bfa8f3f8","comment_id":"c2js0g","kind":"comment","text":"I've never used wait before, but is it roughly equivalent to:\r\n\r\n from subprocess import call\r\n from threading import Thread\r\n import sys\r\n\r\n procs = []\r\n for i, arg in enumerate(sys.argv):\r\n cmd = \"echo hello %s\" % i\r\n t = Thread(target=lambda: call(cmd))\r\n t.start()\r\n procs.append(t)\r\n\r\n for p in procs:\r\n p.join()\r\n\r\n print \"do something else\"\r\n\r\n\r\n?","timestamp":"2007-08-29T13:52:36+00:00","score":6},{"role":"OP","user_id":"anon_624c930b4b8c6e24","comment_id":"c2jsx3","kind":"comment","text":"The bash version feels really natural and doesn't depend on any external code. This is exactly my point : typical shell activities are a lot more natural in bash than in python. Of course you wouldn't want to use bash for more general programming activities. (although you can, of course!)","timestamp":"2007-08-29T15:11:59+00:00","score":10},{"role":"answerer","user_id":"anon_84c845b2bfa8f3f8","comment_id":"c2jsz4","kind":"comment","text":"> The bash version feels really natural \r\n\r\nThe python version feels more natural to me, but that could just be bias. I've never learned more bash than absolutely required because its gotchas are horrifying IMHO.\r\n\r\n> and doesn't depend on any external code\r\n\r\nNeither does the python version - it's all in the standard library. Unless you count that as \"external code\"?\r\n\r\nPlus, if the script grows (as they are wont to do) into something more substantial, you're already in a general programming language.","timestamp":"2007-08-29T15:15:44+00:00","score":7},{"role":"OP","user_id":"anon_624c930b4b8c6e24","comment_id":"c2jt12","kind":"comment","text":"Fair points, but do you really use python for *everything*? I'm a heavy python user, but for looking through a bunch of files, I find the combination of bash with applications such as grep, sed, xargs, find, etc. really useful. I really don't see how I could do this stuff easily with python.","timestamp":"2007-08-29T15:19:30+00:00","score":5},{"role":"answerer","user_id":"anon_84c845b2bfa8f3f8","comment_id":"c2jt7k","kind":"comment","text":"Sometimes that stuff is really handy, and I marshal it in and out of python as necessary. When you set shell=True in subprocess.Popen, you can run arbitrary shell commands and use all the >s, bars, and ampersands you would from the command line.\r\n\r\nThere's some good examples [here](http://www.oreillynet.com/onlamp/blog/2007/08/pymotw_subprocess_1.html).","timestamp":"2007-08-29T15:34:31+00:00","score":8}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_624c930b4b8c6e24","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_84c845b2bfa8f3f8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2js0g","thanks_reply_id":"c2jsx3","post_score":75,"answer_score":6,"preferred_answer_is_top_level":false}} {"user_id":"anon_ca90f34f3a1bde62","answerer_user_id":"anon_ce9662c3a8d363dd","subreddit":"programming","timestamp":"2007-08-30T05:43:45+00:00","post_id":"2k1q7","question":"ask reddit: What school teaches computer science *right*?","preferred_answer":"I think the most important thing is not to expect your school to give all ability/knowledge you need. Do study on your own -- that will develop something that is really valuable -- initiative. Java/C++/C#/TheNewCoolLanguage are only tools.\r\n\r\nTry to learn (on your own) as many different \"things\" as you can, and also as deeply as you can. Of course, you can't learn everything about computers. But you can take 2 or 3 areas and dive deeply, while reading about everything else.\r\n\r\nThis is what I would do if I were in your position:\r\n\r\n- Programming paradigms: funcional (Haskell/Scheme/Erlang/OCaml/etc), OO (Java/Smalltalk/C++/Ruby/etc), generative (Q), low-level (C), Logic (Prolog), maybe Forth;\r\n- Compiler and interpreter construction: Get \"Lisp in Small Pieces\" and other books on how to implement languages and write some little language of yours. Not in a weekend, but maybe over 3 or 4 years;\r\n- Always mix theory and practice as much as possible. Compiler course? Write a compiler. Optimization course? Solve a real-world problem with what you've learned. Programming course? Don't do only small examples, write large programs;\r\n- Try to seriously understand what you see in CS undergrad and grad courses, even if your CS school doesn't give you the opportunity: distributed computing, computational biology, computer graphics, AI, computer architecture, etc;\r\n- Theoretical CS: algorithm complexity, combinatorial optimization, cryptography, theory of Quantum computing, lots of math;\r\n- More \"human\" stuff: read something about human-computer interaction and a bit of psychology. May sound silly, but think what will happen when you, knowing lots of math and programming AND humanities, is compared to lots of people you see out there, who don't do both;\r\n- Also, do learn arts. Music, painting, drama, doesn't matter what. The more you expand the ways you use your brain, the better you'll be in everything you do;\r\n- And do sports. Really, it makes a huge difference. You become more efficient, get sick less often... You know what I mean. Bike, indoor climbing, jogging, martial arts -- there are so many cool options!\r\n- Develop discipline. Really, you can boost your productivity by getting used to plan your days and stick to what you're doing without wandering aroung (reddit, slashdot, chat, coffee, look at the wall, play some game, ...). Not that these things are \"bad\", but you should have some control over how much time and energy they take from you.","full_conversation":[{"role":"OP","user_id":"anon_ca90f34f3a1bde62","comment_id":"2k1q7","kind":"post","text":"ask reddit: What school teaches computer science *right*?","timestamp":"2007-08-30T05:43:45+00:00","score":32},{"role":"answerer","user_id":"anon_ce9662c3a8d363dd","comment_id":"c2k32s","kind":"comment","text":"I think the most important thing is not to expect your school to give all ability/knowledge you need. Do study on your own -- that will develop something that is really valuable -- initiative. Java/C++/C#/TheNewCoolLanguage are only tools.\r\n\r\nTry to learn (on your own) as many different \"things\" as you can, and also as deeply as you can. Of course, you can't learn everything about computers. But you can take 2 or 3 areas and dive deeply, while reading about everything else.\r\n\r\nThis is what I would do if I were in your position:\r\n\r\n- Programming paradigms: funcional (Haskell/Scheme/Erlang/OCaml/etc), OO (Java/Smalltalk/C++/Ruby/etc), generative (Q), low-level (C), Logic (Prolog), maybe Forth;\r\n- Compiler and interpreter construction: Get \"Lisp in Small Pieces\" and other books on how to implement languages and write some little language of yours. Not in a weekend, but maybe over 3 or 4 years;\r\n- Always mix theory and practice as much as possible. Compiler course? Write a compiler. Optimization course? Solve a real-world problem with what you've learned. Programming course? Don't do only small examples, write large programs;\r\n- Try to seriously understand what you see in CS undergrad and grad courses, even if your CS school doesn't give you the opportunity: distributed computing, computational biology, computer graphics, AI, computer architecture, etc;\r\n- Theoretical CS: algorithm complexity, combinatorial optimization, cryptography, theory of Quantum computing, lots of math;\r\n- More \"human\" stuff: read something about human-computer interaction and a bit of psychology. May sound silly, but think what will happen when you, knowing lots of math and programming AND humanities, is compared to lots of people you see out there, who don't do both;\r\n- Also, do learn arts. Music, painting, drama, doesn't matter what. The more you expand the ways you use your brain, the better you'll be in everything you do;\r\n- And do sports. Really, it makes a huge difference. You become more efficient, get sick less often... You know what I mean. Bike, indoor climbing, jogging, martial arts -- there are so many cool options!\r\n- Develop discipline. Really, you can boost your productivity by getting used to plan your days and stick to what you're doing without wandering aroung (reddit, slashdot, chat, coffee, look at the wall, play some game, ...). Not that these things are \"bad\", but you should have some control over how much time and energy they take from you.","timestamp":"2007-08-30T09:43:00+00:00","score":30},{"role":"OP","user_id":"anon_ca90f34f3a1bde62","comment_id":"c2k6bd","kind":"comment","text":"I appreciate your reply a lot. But one questions jumps at me: How do I have time to learn all those things when I'm busy at school not expecting to learn all those things? \r\n\r\nI understand your point that I play the biggest part in my own learning, but if I'm doing most of the learning on my own, what's the point of school?","timestamp":"2007-08-30T15:38:48+00:00","score":2},{"role":"answerer","user_id":"anon_ce9662c3a8d363dd","comment_id":"c2k6r2","kind":"comment","text":"Well, I'm not saying schools are useless. You will learn a lot from your school, and the better your school is, the more you learn. What I meant is that you should also study on your own (always have a pet project!)\r\nAt school, you will learn lots of math that would be harder to learn alone (Calculus, Linear Algebra, Statistics...), and you may get involved in some cool project at the school lab (robots, experimental systems, and lots of other interesting things). And you will \"learn to learn quickly\" (because you will have lots of deadlines). That's one great ability.\r\n\r\nEven at school, you should learn to anticipate what will be required from you and learn in advance... Also, see what they didn't teach you and complement your studies in your free time.\r\n\r\nYou will also quickly realize what are your good teachers, and they will help you with good feedback when you ask questions or opinions. By the way, teachers that make you think and find out things by yourself are the best!\r\n\r\nBesides all of this (and some people will kill me or saying this), a degree may get you some credibility (but that depends a lot on who you're talking to)...","timestamp":"2007-08-30T16:13:53+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ca90f34f3a1bde62","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ce9662c3a8d363dd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2k32s","thanks_reply_id":"c2k6bd","post_score":32,"answer_score":30,"preferred_answer_is_top_level":true}} {"user_id":"anon_2329820dac83fbbe","answerer_user_id":"anon_9f942e2ba086e8fd","subreddit":"programming","timestamp":"2007-09-04T20:28:19+00:00","post_id":"2lrqa","question":"My startup. Comments?","preferred_answer":"Ok.. tried to join just for giggles. Using Firefox (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6) with AdBlock Plus (though I don't know if that matters in this case). Filled out form, clicked 'Join', and keep getting 'Please tells us where you heard about Scriggle-it\" even though I have 'reddit' in the 'Where did you hear about Scriggle-it?' input control. \r\n\r\nNeeds work. Cool look and feel though FWIW.","full_conversation":[{"role":"OP","user_id":"anon_2329820dac83fbbe","comment_id":"2lrqa","kind":"post","text":"My startup. Comments?","timestamp":"2007-09-04T20:28:19+00:00","score":0},{"role":"answerer","user_id":"anon_9f942e2ba086e8fd","comment_id":"c2lryy","kind":"comment","text":"Ok.. tried to join just for giggles. Using Firefox (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6) with AdBlock Plus (though I don't know if that matters in this case). Filled out form, clicked 'Join', and keep getting 'Please tells us where you heard about Scriggle-it\" even though I have 'reddit' in the 'Where did you hear about Scriggle-it?' input control. \r\n\r\nNeeds work. Cool look and feel though FWIW.","timestamp":"2007-09-04T20:51:27+00:00","score":2},{"role":"OP","user_id":"anon_2329820dac83fbbe","comment_id":"c2lrze","kind":"comment","text":"Ooh. Eek. Thanks. I'll have that fixed at once.\r\n\r\nEdit: And fixed. Funny how I make the stupidest Javascript logic errors when I'm working fast.","timestamp":"2007-09-04T20:51:57+00:00","score":2},{"role":"answerer","user_id":"anon_9f942e2ba086e8fd","comment_id":"c2ls0r","kind":"comment","text":"Since we're such good (free) testers, you mind sharing some details about your platform, tools, language(s), etc? Not trying to snipe your secret sauce, just curious.","timestamp":"2007-09-04T20:54:28+00:00","score":1},{"role":"OP","user_id":"anon_2329820dac83fbbe","comment_id":"c2ls23","kind":"comment","text":"You *are* good free testers. And I'm indebted to you. So, it's built on FreeBSD and Ruby on Rails and MySQL and Mongrel and Apache (front-end with mod-proxy-balancer) and Postfix and plenty of custom straight-up Ruby scripts.","timestamp":"2007-09-04T20:57:58+00:00","score":2},{"role":"answerer","user_id":"anon_9f942e2ba086e8fd","comment_id":"c2lsjw","kind":"comment","text":"A couple^H^H^H^H^H^Hbuncha notes:\r\n\r\n- Don't make me choose time zone if I feed you a valid Zip + State. Or only ask for time zone and not all 3.\r\n\r\n- Your captcha is giving me the same value it gave me earlier. It's fake isn't it? :)\r\n\r\n- You're requiring my phone number and email address. Do you really want a fake phone number?\r\n\r\n- Validation error on the missing elements above caused me to appear to lose my choice on the option box concerning 'did I hear about it from a current user'. Sure enough, that caused another validation error. \r\n\r\n- Email address validation is not occurring correctly. I was able to enter 'ADSF@asdf@asdf@.com' in the management information email field. (Yeah, I'm a bastard. :)\r\n\r\nLet me know when you're ready for me to break the fan data import. ;)","timestamp":"2007-09-04T21:44:49+00:00","score":1},{"role":"OP","user_id":"anon_2329820dac83fbbe","comment_id":"c2lsor","kind":"comment","text":"Nope, not a fake captcha. It's session-based, and obviously I'm not clearing/updating it when I should. Thanks for the feedback -- this is the kind of close scrutiny I was looking for.","timestamp":"2007-09-04T22:02:05+00:00","score":1},{"role":"answerer","user_id":"anon_9f942e2ba086e8fd","comment_id":"c2lspo","kind":"comment","text":"Hmm.. well I've had this instance of Firefox open all day, so you probably just need to expire your sessions periodically (or not; expired sessions can mean frustrated users).","timestamp":"2007-09-04T22:04:43+00:00","score":1},{"role":"OP","user_id":"anon_2329820dac83fbbe","comment_id":"c2lsri","kind":"comment","text":"I think what I need to do is generate a new captcha upon each signup form request. That would solve the problem.","timestamp":"2007-09-04T22:09:16+00:00","score":1},{"role":"answerer","user_id":"anon_9f942e2ba086e8fd","comment_id":"c2lt64","kind":"comment","text":"That's probably going to be safer against spam bots anyway. Otherwise someone could get a session going, get the captcha, then start a script with that as a parameter. Better to make 'em work at it.","timestamp":"2007-09-04T22:51:53+00:00","score":1}],"n_turns":10,"n_turns_after_thanks":7,"op_metadata":{"user_id":"anon_2329820dac83fbbe","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9f942e2ba086e8fd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2lryy","thanks_reply_id":"c2lrze","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_c7075dee92023bc5","answerer_user_id":"anon_4e4b2e4726b04782","subreddit":"programming","timestamp":"2007-11-05T13:26:38+00:00","post_id":"5zux5","question":"Ask Reddit: Have you written any apps for your personal use on your mobile phone? If so, what have you written and how?","preferred_answer":"[Enjoy!](http://wiki.forum.nokia.com/index.php/Category:Code_Examples) All you need is a text editor and a memory card, [Installation Instructions](http://wiki.opensource.nokia.com/projects/Installing_PyS60) just in case something's unclear.","full_conversation":[{"role":"OP","user_id":"anon_c7075dee92023bc5","comment_id":"5zux5","kind":"post","text":"Ask Reddit: Have you written any apps for your personal use on your mobile phone? If so, what have you written and how?","timestamp":"2007-11-05T13:26:38+00:00","score":41},{"role":"answerer","user_id":"anon_4e4b2e4726b04782","comment_id":"c02dpm2","kind":"comment","text":"[Enjoy!](http://wiki.forum.nokia.com/index.php/Category:Code_Examples) All you need is a text editor and a memory card, [Installation Instructions](http://wiki.opensource.nokia.com/projects/Installing_PyS60) just in case something's unclear.","timestamp":"2007-11-05T14:35:24+00:00","score":10},{"role":"OP","user_id":"anon_c7075dee92023bc5","comment_id":"c02dpmy","kind":"comment","text":"Thank you. I'd never seen that resource before.","timestamp":"2007-11-05T14:40:12+00:00","score":3},{"role":"answerer","user_id":"anon_4e4b2e4726b04782","comment_id":"c02dpp1","kind":"comment","text":"Happy to help.","timestamp":"2007-11-05T14:48:13+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c7075dee92023bc5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4e4b2e4726b04782","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c02dpm2","thanks_reply_id":"c02dpmy","post_score":41,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_a7a60ab44fd79a4a","answerer_user_id":"anon_c0c5a200d38e99fc","subreddit":"programming","timestamp":"2007-12-31T20:55:50+00:00","post_id":"648e7","question":"Yes, I have Vista. Guess what? I hate it. (Surprise) How do I switch to Linux?","preferred_answer":"1. Install Ubuntu.\n2. Call HP for a windows refund.","full_conversation":[{"role":"OP","user_id":"anon_a7a60ab44fd79a4a","comment_id":"648e7","kind":"post","text":"Yes, I have Vista. Guess what? I hate it. (Surprise) How do I switch to Linux?","timestamp":"2007-12-31T20:55:50+00:00","score":0},{"role":"answerer","user_id":"anon_c0c5a200d38e99fc","comment_id":"c02s8hk","kind":"comment","text":"1. Install Ubuntu.\n2. Call HP for a windows refund.","timestamp":"2007-12-31T20:59:48+00:00","score":10},{"role":"OP","user_id":"anon_a7a60ab44fd79a4a","comment_id":"c02s8jg","kind":"comment","text":"Ha, thanks. I have 2.5gb RAM, and vista runs slower than shit. Will it be even slower if I dual-boot?\n\nEdit: Can I seriously get a refund, or was that tongue-in-cheek?","timestamp":"2007-12-31T21:06:56+00:00","score":3},{"role":"answerer","user_id":"anon_c0c5a200d38e99fc","comment_id":"c02s8sj","kind":"comment","text":"I ordered my dell Inspiron 1520 laptop a week ago. Yesterday i called dell support and asked for windows refund, since i'm going to install linux on it. Like you I thought it would be impossible and i will waste a few hours and end up with nothing.\n\nTo my big surprise, in less than 5 minutes of talk, they agreed to refund me $50 for windows.\n\nAnd by the way, I got my laptop just a few minutes ago. Happy new Year!! :)","timestamp":"2007-12-31T21:39:22+00:00","score":2},{"role":"OP","user_id":"anon_a7a60ab44fd79a4a","comment_id":"c02s9lg","kind":"comment","text":"Mine was purchased through BestBuy as a gift from my SO 6 months back. I'll see what I can do, thanks again.","timestamp":"2007-12-31T23:36:22+00:00","score":1},{"role":"answerer","user_id":"anon_c0c5a200d38e99fc","comment_id":"c02sc7v","kind":"comment","text":"That would not work. It has to be new, and you cannot run it, otherwise you agreed on license.","timestamp":"2008-01-01T08:05:09+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_a7a60ab44fd79a4a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c0c5a200d38e99fc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c02s8hk","thanks_reply_id":"c02s8jg","post_score":0,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_1a09e9adbe9f1f3f","answerer_user_id":"anon_fa8852efd8bd996d","subreddit":"programming","timestamp":"2008-02-09T17:02:32+00:00","post_id":"68755","question":"What programming language would you teach your children?","preferred_answer":"Yep, ignore rails (for now at least).\n\nThere's a good [tutorial](http://pine.fm/LearnToProgram/) for beginners. Most of it's online, and there is an expanded [book/pdf](http://www.pragprog.com/titles/fr_ltp) version.\n\nThere's also a very cool [interactive tutorial](http://tryruby.hobix.com/), that let's you get a sense of it fairly quickly (just type 'help' to get started).\n\nIt can't be too tough for you old folks to learn, I started with it about three years ago, when I was 40 ;)","full_conversation":[{"role":"OP","user_id":"anon_1a09e9adbe9f1f3f","comment_id":"68755","kind":"post","text":"What programming language would you teach your children?","timestamp":"2008-02-09T17:02:32+00:00","score":33},{"role":"answerer","user_id":"anon_fa8852efd8bd996d","comment_id":"c034x82","kind":"comment","text":"Yep, ignore rails (for now at least).\n\nThere's a good [tutorial](http://pine.fm/LearnToProgram/) for beginners. Most of it's online, and there is an expanded [book/pdf](http://www.pragprog.com/titles/fr_ltp) version.\n\nThere's also a very cool [interactive tutorial](http://tryruby.hobix.com/), that let's you get a sense of it fairly quickly (just type 'help' to get started).\n\nIt can't be too tough for you old folks to learn, I started with it about three years ago, when I was 40 ;)","timestamp":"2008-02-09T17:28:42+00:00","score":3},{"role":"OP","user_id":"anon_1a09e9adbe9f1f3f","comment_id":"c034xa7","kind":"comment","text":"Thanks, I'll take a look at those links. Ruby seems to have a powerful yet sparse syntax.","timestamp":"2008-02-09T17:37:36+00:00","score":2},{"role":"answerer","user_id":"anon_fa8852efd8bd996d","comment_id":"c034xde","kind":"comment","text":"Yep, that's what I like about it. Less typing, but still fairly easy to read a month later.","timestamp":"2008-02-09T17:46:46+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1a09e9adbe9f1f3f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fa8852efd8bd996d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c034x82","thanks_reply_id":"c034xa7","post_score":33,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_c2c3e32e5bc39fb9","answerer_user_id":"anon_d7efbdf1cd5bfb46","subreddit":"programming","timestamp":"2008-02-11T23:51:07+00:00","post_id":"68f8z","question":"Help a noob: Are there any languages/setups that can provide a Linux/Windows cross platform IDE with a GUI toolkit and builder and good packaging capability?","preferred_answer":"The java platform does this. You can use whatever language you want (Java, Scala, Groovy, Clojure, JRuby, Jython), and it runs on windows and linux (and mac, and solaris). Your app can be stored in an executable jar file, which is compressed and contains all the binary code and all the other resources the app could need, AND that jar file can be cryptographically signed to prove you made it. Netbean's GUI builder and Groovy's SwingBuilder can be used to build guis (and i'm sure the eclipse RCP offers one as well).\n\nIt's kind of cool that one of the major platforms actually meets your needs, fully, in a flexible way.","full_conversation":[{"role":"OP","user_id":"anon_c2c3e32e5bc39fb9","comment_id":"68f8z","kind":"post","text":"Help a noob: Are there any languages/setups that can provide a Linux/Windows cross platform IDE with a GUI toolkit and builder and good packaging capability?","timestamp":"2008-02-11T23:51:07+00:00","score":6},{"role":"answerer","user_id":"anon_d7efbdf1cd5bfb46","comment_id":"c035nhs","kind":"comment","text":"The java platform does this. You can use whatever language you want (Java, Scala, Groovy, Clojure, JRuby, Jython), and it runs on windows and linux (and mac, and solaris). Your app can be stored in an executable jar file, which is compressed and contains all the binary code and all the other resources the app could need, AND that jar file can be cryptographically signed to prove you made it. Netbean's GUI builder and Groovy's SwingBuilder can be used to build guis (and i'm sure the eclipse RCP offers one as well).\n\nIt's kind of cool that one of the major platforms actually meets your needs, fully, in a flexible way.","timestamp":"2008-02-11T23:59:52+00:00","score":13},{"role":"OP","user_id":"anon_c2c3e32e5bc39fb9","comment_id":"c035njl","kind":"comment","text":"Thanks for replying. I hear java is pretty resource intensive, but it certainly seems to be what I asked for. I appreciate your expertise. Also, what's jython? A rewrite of python so you can use the same syntax but get java's compatibility? I presume it comes at the cost of java's resource-intensiveness?","timestamp":"2008-02-12T00:06:07+00:00","score":1},{"role":"answerer","user_id":"anon_d7efbdf1cd5bfb46","comment_id":"c035obh","kind":"comment","text":"Modern Java's not resource intensive. It'll run on machines from 10 years ago.","timestamp":"2008-02-12T01:44:39+00:00","score":10}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c2c3e32e5bc39fb9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d7efbdf1cd5bfb46","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c035nhs","thanks_reply_id":"c035njl","post_score":6,"answer_score":13,"preferred_answer_is_top_level":true}} {"user_id":"anon_ee9ff70126257336","answerer_user_id":"anon_d78384ab32bffd3a","subreddit":"programming","timestamp":"2008-02-15T06:17:46+00:00","post_id":"68tr9","question":"Ask Proggit: a lisp with uncar and uncdr?","preferred_answer":"Not that I've heard of, but then, I'm really only familiar with Scheme, and mainly PLT-Scheme at that.","full_conversation":[{"role":"OP","user_id":"anon_ee9ff70126257336","comment_id":"68tr9","kind":"post","text":"Ask Proggit: a lisp with uncar and uncdr?","timestamp":"2008-02-15T06:17:46+00:00","score":0},{"role":"answerer","user_id":"anon_d78384ab32bffd3a","comment_id":"c038l8a","kind":"comment","text":"Not that I've heard of, but then, I'm really only familiar with Scheme, and mainly PLT-Scheme at that.","timestamp":"2008-02-21T03:49:48+00:00","score":1},{"role":"OP","user_id":"anon_ee9ff70126257336","comment_id":"c038loj","kind":"comment","text":"Okay, well, thanks for the input.","timestamp":"2008-02-21T04:36:20+00:00","score":1},{"role":"answerer","user_id":"anon_d78384ab32bffd3a","comment_id":"c038lr1","kind":"comment","text":"np","timestamp":"2008-02-21T04:44:53+00:00","score":1},{"role":"OP","user_id":"anon_ee9ff70126257336","comment_id":"c038x8d","kind":"comment","text":"I just realized the simple description of what I'm asking for: that lisp lists be doubly linked.","timestamp":"2008-02-22T05:13:46+00:00","score":1},{"role":"answerer","user_id":"anon_d78384ab32bffd3a","comment_id":"c038xha","kind":"comment","text":"Oooh, okay. Sure, you can construct doubly linked lists.","timestamp":"2008-02-22T05:53:17+00:00","score":1},{"role":"OP","user_id":"anon_ee9ff70126257336","comment_id":"c038ys8","kind":"comment","text":"I mean the list structure that underlies the sexps in lisp. Normally it is only accessible in singly linked form, as far as I can tell. \n\nWell, I'll stop bugging you now. Just thought I would resolve the discussion.","timestamp":"2008-02-22T10:03:39+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_ee9ff70126257336","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d78384ab32bffd3a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c038l8a","thanks_reply_id":"c038loj","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_27d9ed3439ca2983","answerer_user_id":"anon_84c845b2bfa8f3f8","subreddit":"programming","timestamp":"2008-03-15T20:25:39+00:00","post_id":"6c7ln","question":"Ask reddit: Where's the reddit API? How would you write your own?","preferred_answer":"When I needed it, I hacked some python. I never cleaned the code up, but if it's interesting, here it is:\n\n import re, urllib, cPickle, os\n from time import sleep\n \n list_stories = re.compile(r'
(\\d+) comments?|>comments?').findall(text)]\n \n url = \"http://reddit.com/r/programming/new?sort=new&after=%s\"\n \n if os.path.isfile(\"stories.pkl\"):\n stories = cPickle.load(file(\"stories.pkl\"))\n seed = stories[-1][0]\n else:\n stories = []\n seed = \"t3_6914u\"\n \n class LlimllibURLopener(urllib.FancyURLopener):\n version = \"user llimllib wants statistics\" #set the user-agent string\n urllib._urlopener = LlimllibURLopener()\n \n for i in range(1000):\n print \"opening page %s\" % url % seed\n text = urllib.urlopen(url % seed).read()\n s, c, d = list_stories(text), list_comments(text), list_dates(text)\n if (len(s), len(c), len(d)) != (25,25,25):\n print \"error parsing page: %s (%d) %s (%d) %s (%d)\" % \\\n (s, len(s), c, len(c), d, len(d))\n raise\n stories.extend(zip(s,c,d))\n seed = stories[-1][0]\n print \"last story from %s\" % stories[-1][2]\n sleep(.5)\n \n cPickle.dump(stories, file(\"stories.pkl\"))\n\nThen I wrote similar code to go to each story, and count the words per comment, to see if words per comment had changed over time. (It hadn't).","full_conversation":[{"role":"OP","user_id":"anon_27d9ed3439ca2983","comment_id":"6c7ln","kind":"post","text":"Ask reddit: Where's the reddit API? How would you write your own?","timestamp":"2008-03-15T20:25:39+00:00","score":0},{"role":"answerer","user_id":"anon_84c845b2bfa8f3f8","comment_id":"c03gcvc","kind":"comment","text":"When I needed it, I hacked some python. I never cleaned the code up, but if it's interesting, here it is:\n\n import re, urllib, cPickle, os\n from time import sleep\n \n list_stories = re.compile(r'
(\\d+) comments?|>comments?').findall(text)]\n \n url = \"http://reddit.com/r/programming/new?sort=new&after=%s\"\n \n if os.path.isfile(\"stories.pkl\"):\n stories = cPickle.load(file(\"stories.pkl\"))\n seed = stories[-1][0]\n else:\n stories = []\n seed = \"t3_6914u\"\n \n class LlimllibURLopener(urllib.FancyURLopener):\n version = \"user llimllib wants statistics\" #set the user-agent string\n urllib._urlopener = LlimllibURLopener()\n \n for i in range(1000):\n print \"opening page %s\" % url % seed\n text = urllib.urlopen(url % seed).read()\n s, c, d = list_stories(text), list_comments(text), list_dates(text)\n if (len(s), len(c), len(d)) != (25,25,25):\n print \"error parsing page: %s (%d) %s (%d) %s (%d)\" % \\\n (s, len(s), c, len(c), d, len(d))\n raise\n stories.extend(zip(s,c,d))\n seed = stories[-1][0]\n print \"last story from %s\" % stories[-1][2]\n sleep(.5)\n \n cPickle.dump(stories, file(\"stories.pkl\"))\n\nThen I wrote similar code to go to each story, and count the words per comment, to see if words per comment had changed over time. (It hadn't).","timestamp":"2008-03-15T20:53:09+00:00","score":5},{"role":"OP","user_id":"anon_27d9ed3439ca2983","comment_id":"c03gk8i","kind":"comment","text":"Thanks a lot! Any license on this code?","timestamp":"2008-03-16T17:37:46+00:00","score":1},{"role":"answerer","user_id":"anon_84c845b2bfa8f3f8","comment_id":"c03gk9o","kind":"comment","text":"[WTFPL v2](http://sam.zoy.org/wtfpl/)","timestamp":"2008-03-16T17:41:16+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_27d9ed3439ca2983","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_84c845b2bfa8f3f8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c03gcvc","thanks_reply_id":"c03gk8i","post_score":0,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_ac82c508e7b0f77a","answerer_user_id":"anon_7c506be0eeb11814","subreddit":"programming","timestamp":"2008-04-14T20:09:25+00:00","post_id":"6frbc","question":"Where should I look to find an entry level C++ job?","preferred_answer":"http://www-03.ibm.com/employment/us/fi_search.shtml\n\nFollow the link, search for entry level C++ jobs. San Jose, Austin, Cambridge, Charlotte, Raleigh, Atlanta, Beaverton, Taiwan, New Zealand, ... over 100 positions in hardware, software, and research which are classified entry level and pull up with \"C++\". Stuff like working with the Cell processor, etc.","full_conversation":[{"role":"OP","user_id":"anon_ac82c508e7b0f77a","comment_id":"6frbc","kind":"post","text":"Where should I look to find an entry level C++ job?","timestamp":"2008-04-14T20:09:25+00:00","score":6},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c03q3q7","kind":"comment","text":"http://www-03.ibm.com/employment/us/fi_search.shtml\n\nFollow the link, search for entry level C++ jobs. San Jose, Austin, Cambridge, Charlotte, Raleigh, Atlanta, Beaverton, Taiwan, New Zealand, ... over 100 positions in hardware, software, and research which are classified entry level and pull up with \"C++\". Stuff like working with the Cell processor, etc.","timestamp":"2008-04-15T14:14:25+00:00","score":2},{"role":"OP","user_id":"anon_ac82c508e7b0f77a","comment_id":"c03q3ut","kind":"comment","text":"Another great link. Thanks man!","timestamp":"2008-04-15T14:28:05+00:00","score":1},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c03q44t","kind":"comment","text":"Unfortunately the search for \"C++\" is not as good as it could be; some jobs *are* C++ jobs, others may be for other languages but give C++ as an example of a desired skill. In particular the San Jose jobs I saw were the ones which were most C++ specific.\n\n> large-ish mid-western state university\n\nPurdue?","timestamp":"2008-04-15T14:53:44+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ac82c508e7b0f77a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7c506be0eeb11814","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c03q3q7","thanks_reply_id":"c03q3ut","post_score":6,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_8275e7f0d0113df5","answerer_user_id":"anon_491bd7a610603a81","subreddit":"programming","timestamp":"2008-04-16T20:19:42+00:00","post_id":"6g18f","question":"What is the best webhost for a personal playground and source repository?","preferred_answer":"Try Slicehost, they give you a VPS with full root access. They also have howtos to get you started on configuring your own server.","full_conversation":[{"role":"OP","user_id":"anon_8275e7f0d0113df5","comment_id":"6g18f","kind":"post","text":"What is the best webhost for a personal playground and source repository?","timestamp":"2008-04-16T20:19:42+00:00","score":0},{"role":"answerer","user_id":"anon_491bd7a610603a81","comment_id":"c03qmga","kind":"comment","text":"Try Slicehost, they give you a VPS with full root access. They also have howtos to get you started on configuring your own server.","timestamp":"2008-04-16T20:38:31+00:00","score":7},{"role":"OP","user_id":"anon_8275e7f0d0113df5","comment_id":"c03qmh6","kind":"comment","text":"Wow, thanks for the heads up. Their costs don't seem too bad either considering the flexibility.","timestamp":"2008-04-16T20:40:16+00:00","score":2},{"role":"answerer","user_id":"anon_491bd7a610603a81","comment_id":"c03qs9d","kind":"comment","text":"You're welcome. They also have forums if you get into trouble.","timestamp":"2008-04-17T07:58:31+00:00","score":2},{"role":"OP","user_id":"anon_8275e7f0d0113df5","comment_id":"c03quge","kind":"comment","text":"Do you have any recommendations on who to buy the domain name from? I was thinking gandi.net.\n\nI'm asking because I don't want to support a company like Network Solutions for example.","timestamp":"2008-04-17T14:11:31+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_8275e7f0d0113df5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_491bd7a610603a81","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c03qmga","thanks_reply_id":"c03qmh6","post_score":0,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_b1e6d2a52ca0e97b","answerer_user_id":"anon_a59a47428e2fa45f","subreddit":"programming","timestamp":"2008-05-12T14:14:37+00:00","post_id":"6j2ex","question":"GPGPUs: Neat Idea or Disruptive Technology?","preferred_answer":"You can simulate double-floats and quad-floats using unevaluated sums of paired or quadrupled single-precision floats. If I remember right there is also some work done for multiprecision arithmetic. Helps with speeding up RSA encryption. \n\nhttp://portal.acm.org/citation.cfm?doid=1198555.1198768\n\nThere is of course speed penalty for doing all this. I don't know how economic that solution is now. \n\nI have only seen when one guy implemented in house SVM (Support Vector Machine) implementation using graphics card with single precision floats. Damn it was fast. Instant 150X speedup.","full_conversation":[{"role":"OP","user_id":"anon_b1e6d2a52ca0e97b","comment_id":"6j2ex","kind":"post","text":"GPGPUs: Neat Idea or Disruptive Technology?","timestamp":"2008-05-12T14:14:37+00:00","score":0},{"role":"answerer","user_id":"anon_a59a47428e2fa45f","comment_id":"c03zir8","kind":"comment","text":"You can simulate double-floats and quad-floats using unevaluated sums of paired or quadrupled single-precision floats. If I remember right there is also some work done for multiprecision arithmetic. Helps with speeding up RSA encryption. \n\nhttp://portal.acm.org/citation.cfm?doid=1198555.1198768\n\nThere is of course speed penalty for doing all this. I don't know how economic that solution is now. \n\nI have only seen when one guy implemented in house SVM (Support Vector Machine) implementation using graphics card with single precision floats. Damn it was fast. Instant 150X speedup.","timestamp":"2008-05-12T18:53:49+00:00","score":1},{"role":"OP","user_id":"anon_b1e6d2a52ca0e97b","comment_id":"c03zqq3","kind":"comment","text":"Thanks for the link, very interesting. Did that guy publish anything on his SVM implementation?","timestamp":"2008-05-13T07:41:25+00:00","score":1},{"role":"answerer","user_id":"anon_a59a47428e2fa45f","comment_id":"c03zqse","kind":"comment","text":"Nope. It was for data mining company and strictly trade secret (150X speedup means that you can increase data set sizes almost that much for the cost of GPU and some hard drives).\n\nThere is article about similar results with neural networks in the net somewhere.","timestamp":"2008-05-13T07:54:36+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b1e6d2a52ca0e97b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a59a47428e2fa45f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c03zir8","thanks_reply_id":"c03zqq3","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_52fb323d2559daf5","answerer_user_id":"anon_d13585895a3e0bd6","subreddit":"programming","timestamp":"2008-06-11T19:02:25+00:00","post_id":"6mz4u","question":"Ask Reddit: Multiplayer Card Game Hardware Needs?","preferred_answer":"The only reasonable answer is \"it depends\".\n\nI'd seriously consider Erlang for this, even if you don't already know it. You only need it for the core backend, the web site itself and everything else can be built in some other language you know. How many servers it would take is still an \"it depends\" situation (what the dependencies are, etc), but the scaling story is much better; you should get more games on one server and it'll be easier to add your second server (and third, and fourth...) if you start out either backing to a normal database or using Mnesia. (You can implement a way for your web site to query Mnesia for data without too much hassle.)","full_conversation":[{"role":"OP","user_id":"anon_52fb323d2559daf5","comment_id":"6mz4u","kind":"post","text":"Ask Reddit: Multiplayer Card Game Hardware Needs?","timestamp":"2008-06-11T19:02:25+00:00","score":0},{"role":"answerer","user_id":"anon_d13585895a3e0bd6","comment_id":"c04bjaw","kind":"comment","text":"The only reasonable answer is \"it depends\".\n\nI'd seriously consider Erlang for this, even if you don't already know it. You only need it for the core backend, the web site itself and everything else can be built in some other language you know. How many servers it would take is still an \"it depends\" situation (what the dependencies are, etc), but the scaling story is much better; you should get more games on one server and it'll be easier to add your second server (and third, and fourth...) if you start out either backing to a normal database or using Mnesia. (You can implement a way for your web site to query Mnesia for data without too much hassle.)","timestamp":"2008-06-11T19:07:45+00:00","score":2},{"role":"OP","user_id":"anon_52fb323d2559daf5","comment_id":"c04bjeh","kind":"comment","text":"Thanks. I'm not familiar with Erlang at all. What makes it more appropriate for this application?","timestamp":"2008-06-11T19:13:27+00:00","score":1},{"role":"answerer","user_id":"anon_d13585895a3e0bd6","comment_id":"c04bjin","kind":"comment","text":"You're looking to have a lot of intercommunicating processes; one socket per user (I'm assuming you want to use Flash to get a real socket and not go through HTTP for every request, which adds a ___lot___ of overhead), and with each of the users talking to each other and/or a central game process a whole lot.\n\nIn Erlang, you'll be able to naturally model this as one process per connection, one process per game (running the central rules), and each of these can communicate in a very natural manner. And, best of all, this \"natural manner\" of communication is also what you'll need to scale up; getting that all working in Java will be a good deal harder. (With only a bit of foresight, you can decouple the user's game state and the process managing the socket connection, so if their connection drops you can try to re-establish it right away with no state loss.)\n\nUsing Mnesia to store the main game data also means you can scale up fairly easily with more machines, and these machines will be easily (not quite \"trivially\", but \"easily\") clusterable, and you won't even have to think about whether the player sockets are all on the same machine as the main game process.\n\nFinally, you'll be able to use a real multi-threading solution, instead of shared memory, with full support in the language runtime.\n\nYou probably won't mind the focus on reliability, either, and live code upgrades may interest you too.\n\nBasically, it plays right into the strengths of Erlang and right into some of the weaknesses of Java. While you _can_ get around all of these issues in Java, I think that if you're the only programmer on the project you're going to blow a lot of time just assembling the necessary stack (if it even exists) and fighting with threading issues and locking issues and all kinds of other crap, whereas in Erlang, once you get past the \"learn the language\" step (which I won't lie, it will take a bit), you'll actually be solving your problem relatively quickly, and I would estimate you'll recover your time spent learning Erlang in a matter of weeks.\n\nBut just something to think about; if Java is what you want, go for it. I do think it's a bad idea, but you gotta do what you gotta do. (I don't want to sound like I'm pressuring you or anything.)","timestamp":"2008-06-11T19:21:14+00:00","score":2},{"role":"OP","user_id":"anon_52fb323d2559daf5","comment_id":"c04bk60","kind":"comment","text":"Cool, thanks for the well thought out reply.\r\n\r\nMy original plan was to use PHP ;) (still not over HTTP, just running the socket server as a standalone process), so I am moving towards something resembling an intelligent decision. I'm going to get the client working first, then I'll take care of the server side stuff.","timestamp":"2008-06-11T19:57:39+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_52fb323d2559daf5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d13585895a3e0bd6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c04bjaw","thanks_reply_id":"c04bjeh","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_3412a6c800dd9c14","answerer_user_id":"anon_9960e099ca5b1b6a","subreddit":"programming","timestamp":"2008-06-30T16:12:31+00:00","post_id":"6pmis","question":"But what if I want to write a bytecode-based VM? What should I read?","preferred_answer":"Anything by [Anton Ertl](http://liinwww.ira.uka.de/csbib/Compiler/Inst.Computersprachen.TUWien?query=Ertl&partial=off&case=on&maxnum=200&sort=year) and [David Gregg](https://www.cs.tcd.ie/David.Gregg/pubs.html) for starters. Their papers are generally easy to read and always come with numbers. Or just use [vmgen](http://www.complang.tuwien.ac.at/anton/vmgen/) and call it a day; make sure to read the paper on it.\n\nIf you want a JIT on top of that, read some of [Michael Franz' papers](http://www.ics.uci.edu/%7Efranz/Site/publications.html). Don't forget that a decent JIT depends on a fast interpreter to find hotspots, so you can't skimp on the interpreter.\n\nIf you want a GC, try the Garbage Collection book by Jones & Lins. Or just read the plethora of newer publications on _that_ topic too.","full_conversation":[{"role":"OP","user_id":"anon_3412a6c800dd9c14","comment_id":"6pmis","kind":"post","text":"But what if I want to write a bytecode-based VM? What should I read?","timestamp":"2008-06-30T16:12:31+00:00","score":34},{"role":"answerer","user_id":"anon_9960e099ca5b1b6a","comment_id":"c04j9ex","kind":"comment","text":"Anything by [Anton Ertl](http://liinwww.ira.uka.de/csbib/Compiler/Inst.Computersprachen.TUWien?query=Ertl&partial=off&case=on&maxnum=200&sort=year) and [David Gregg](https://www.cs.tcd.ie/David.Gregg/pubs.html) for starters. Their papers are generally easy to read and always come with numbers. Or just use [vmgen](http://www.complang.tuwien.ac.at/anton/vmgen/) and call it a day; make sure to read the paper on it.\n\nIf you want a JIT on top of that, read some of [Michael Franz' papers](http://www.ics.uci.edu/%7Efranz/Site/publications.html). Don't forget that a decent JIT depends on a fast interpreter to find hotspots, so you can't skimp on the interpreter.\n\nIf you want a GC, try the Garbage Collection book by Jones & Lins. Or just read the plethora of newer publications on _that_ topic too.","timestamp":"2008-06-30T18:44:38+00:00","score":12},{"role":"OP","user_id":"anon_3412a6c800dd9c14","comment_id":"c04j9uc","kind":"comment","text":"Thanks, lots of pointers. Actually I just ordered the GC book from Jones & Lins before posting here.","timestamp":"2008-06-30T19:12:24+00:00","score":1},{"role":"answerer","user_id":"anon_9960e099ca5b1b6a","comment_id":"c04j9w2","kind":"comment","text":"I ought to point out that [this](http://www.complang.tuwien.ac.at/anton/euroforth/ef01/ertl01.pdf) paper by Ertl is a good overview of the various styles of threaded code.\n\nEven if you read most of the papers listed above, it's worth looking at vmgen. You _can_ write more efficient interpreters than it can generate, but it's not worth the effort.","timestamp":"2008-06-30T19:15:50+00:00","score":2},{"role":"OP","user_id":"anon_3412a6c800dd9c14","comment_id":"c04ja0l","kind":"comment","text":"My chief interest is in learning the subject, so I'll probably end up with a half-done Scheme compiler + VM. :-)","timestamp":"2008-06-30T19:23:51+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3412a6c800dd9c14","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9960e099ca5b1b6a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c04j9ex","thanks_reply_id":"c04j9uc","post_score":34,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_730a1f319bb791bd","answerer_user_id":"anon_006ef77e1afdb6c1","subreddit":"programming","timestamp":"2008-06-30T18:32:30+00:00","post_id":"6pnb6","question":"AskReddit: How do I prevent a program from taking up extra memory in a Vista's environment?","preferred_answer":"Depends on what you want to do. If you are okay with generic, commercial, web-based software (for which there is a huge demand right now), Java (J2EE), PHP, Ruby, HTML / XML, JavaScript, C#, ASP, .NET, etc., with general knowledge of SQL stuff are all pretty safe bets.\n\nI just graduated and was promoted from intern to full-time developer at my company. We do web-based automotive end-of-line production testing / reporting (as well as some other apps). The majority of the work I do is Java (J2EE) and SQL. Every so often I get a smattering of C++ (when working on one of our older apps), HTML, and JavaScript... so I have pretty okay knowledge of all of those.\n\nIf I wanted to get a job elsewhere, I'd grab a PHP book, and maybe some stuff about Ruby and C#.","full_conversation":[{"role":"OP","user_id":"anon_730a1f319bb791bd","comment_id":"6pnb6","kind":"post","text":"AskReddit: How do I prevent a program from taking up extra memory in a Vista's environment?","timestamp":"2008-06-30T18:32:30+00:00","score":0},{"role":"answerer","user_id":"anon_006ef77e1afdb6c1","comment_id":"c04j9gw","kind":"comment","text":"Depends on what you want to do. If you are okay with generic, commercial, web-based software (for which there is a huge demand right now), Java (J2EE), PHP, Ruby, HTML / XML, JavaScript, C#, ASP, .NET, etc., with general knowledge of SQL stuff are all pretty safe bets.\n\nI just graduated and was promoted from intern to full-time developer at my company. We do web-based automotive end-of-line production testing / reporting (as well as some other apps). The majority of the work I do is Java (J2EE) and SQL. Every so often I get a smattering of C++ (when working on one of our older apps), HTML, and JavaScript... so I have pretty okay knowledge of all of those.\n\nIf I wanted to get a job elsewhere, I'd grab a PHP book, and maybe some stuff about Ruby and C#.","timestamp":"2008-06-30T18:48:33+00:00","score":1},{"role":"OP","user_id":"anon_730a1f319bb791bd","comment_id":"c04ja9e","kind":"comment","text":"thanks, urm, why did you get downmodded?","timestamp":"2008-06-30T19:39:04+00:00","score":1},{"role":"answerer","user_id":"anon_006ef77e1afdb6c1","comment_id":"c04jaqj","kind":"comment","text":"Not sure. Seems to be a fairly common theme nowadays where people downmod for no apparent reason and don't explain why.\n\nOh well. If I helped you out and all, I'm happy about it.","timestamp":"2008-06-30T20:10:58+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_730a1f319bb791bd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_006ef77e1afdb6c1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c04j9gw","thanks_reply_id":"c04ja9e","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_b4c868a39f4fe615","answerer_user_id":"anon_fa39223abacabf18","subreddit":"programming","timestamp":"2008-07-04T08:12:41+00:00","post_id":"6q8jq","question":"AskReddit: Experience/Suggestions programming with cheap webcams?","preferred_answer":"quickcam 9000 pro from logitech. To bad it doesn't fit in your price range, but it makes nice hires-videos (sth. like 1024x768) and works plug-and-play like under linux.\nSome years ago i bought a cheap quickcam express, it worked without any problems under linux but the image quality is very poor (besides the low resolution, QVGA 320x240).","full_conversation":[{"role":"OP","user_id":"anon_b4c868a39f4fe615","comment_id":"6q8jq","kind":"post","text":"AskReddit: Experience/Suggestions programming with cheap webcams?","timestamp":"2008-07-04T08:12:41+00:00","score":0},{"role":"answerer","user_id":"anon_fa39223abacabf18","comment_id":"c04kyox","kind":"comment","text":"quickcam 9000 pro from logitech. To bad it doesn't fit in your price range, but it makes nice hires-videos (sth. like 1024x768) and works plug-and-play like under linux.\nSome years ago i bought a cheap quickcam express, it worked without any problems under linux but the image quality is very poor (besides the low resolution, QVGA 320x240).","timestamp":"2008-07-04T14:18:19+00:00","score":2},{"role":"OP","user_id":"anon_b4c868a39f4fe615","comment_id":"c04l244","kind":"comment","text":"Thanks for the suggestion. Do you have any suggestions about how I meant start learning how to control it from (say) a C program? I've never worked with USB before, but I'm willing to learn :)","timestamp":"2008-07-04T19:30:41+00:00","score":1},{"role":"answerer","user_id":"anon_fa39223abacabf18","comment_id":"c04l8pt","kind":"comment","text":"> how to control it from (say) a C program?\n\nThis is fairly easy under linux. You don't even need USB knowledge. \nThe camera drivers provide a /dev/video device where you send commands using ioctl and receive image data as a stream or through shared memory.\nThe APl is called \"video 4 Linux\" and there are 2 versions of it (v4l and v4l2 for short), look at: http://linux.bytesex.org/v4l2/ for docs. (played with v4l and common lisp some time ago)","timestamp":"2008-07-05T10:01:47+00:00","score":2},{"role":"OP","user_id":"anon_b4c868a39f4fe615","comment_id":"c04ldxy","kind":"comment","text":"Great, thanks for your help! This looks like a good starting point.","timestamp":"2008-07-05T21:18:11+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b4c868a39f4fe615","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fa39223abacabf18","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c04kyox","thanks_reply_id":"c04l244","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_e5d84c248c220c51","answerer_user_id":"anon_6d17a4d28e386249","subreddit":"programming","timestamp":"2008-07-04T08:26:23+00:00","post_id":"6q8lc","question":"Ask Proggit: What is the best free/open source continuous build automation tool?","preferred_answer":"There's [buildbot](http://buildbot.sf.net/).","full_conversation":[{"role":"OP","user_id":"anon_e5d84c248c220c51","comment_id":"6q8lc","kind":"post","text":"Ask Proggit: What is the best free/open source continuous build automation tool?","timestamp":"2008-07-04T08:26:23+00:00","score":0},{"role":"answerer","user_id":"anon_6d17a4d28e386249","comment_id":"c04kymt","kind":"comment","text":"There's [buildbot](http://buildbot.sf.net/).","timestamp":"2008-07-04T14:12:41+00:00","score":2},{"role":"OP","user_id":"anon_e5d84c248c220c51","comment_id":"c04l8id","kind":"comment","text":"Thanks for the line. \n\nI should have mentioned it in the comment, that I was mainly looking for a solution to Windows, as we must build our thing in Windows. \n\nIt seems to me buildbot is *nix oriented.","timestamp":"2008-07-05T09:16:38+00:00","score":1},{"role":"answerer","user_id":"anon_6d17a4d28e386249","comment_id":"c04ladq","kind":"comment","text":"It runs on Windows.","timestamp":"2008-07-05T15:15:17+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e5d84c248c220c51","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6d17a4d28e386249","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c04kymt","thanks_reply_id":"c04l8id","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_5b338e8d75f116e3","answerer_user_id":"anon_7bac166cc272de7a","subreddit":"programming","timestamp":"2008-08-09T09:37:42+00:00","post_id":"6vl0z","question":"Ask Reddit: Steps and libraries to migrate away from C# into C++?","preferred_answer":"So it's a complete rewriting. the libraries depends of what's your current code is doing.\n\nBut you can take a look at [Boost](http://boost.org)","full_conversation":[{"role":"OP","user_id":"anon_5b338e8d75f116e3","comment_id":"6vl0z","kind":"post","text":"Ask Reddit: Steps and libraries to migrate away from C# into C++?","timestamp":"2008-08-09T09:37:42+00:00","score":0},{"role":"answerer","user_id":"anon_7bac166cc272de7a","comment_id":"c04zeqa","kind":"comment","text":"So it's a complete rewriting. the libraries depends of what's your current code is doing.\n\nBut you can take a look at [Boost](http://boost.org)","timestamp":"2008-08-09T10:19:18+00:00","score":2},{"role":"OP","user_id":"anon_5b338e8d75f116e3","comment_id":"c04zeqv","kind":"comment","text":"Thanks!!\r\n\r\nWhat would you use for communication instead of WCF and remoting?","timestamp":"2008-08-09T10:25:17+00:00","score":1},{"role":"answerer","user_id":"anon_7bac166cc272de7a","comment_id":"c04zeup","kind":"comment","text":"http://en.wikipedia.org/wiki/XML-RPC","timestamp":"2008-08-09T10:56:12+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5b338e8d75f116e3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7bac166cc272de7a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c04zeqa","thanks_reply_id":"c04zeqv","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_a7c156a70e967176","answerer_user_id":"anon_be12453c8b82aca3","subreddit":"programming","timestamp":"2008-08-11T16:28:38+00:00","post_id":"6vu4u","question":"Ask proggit: I'm an undergraduate making career plans. AI, graphics, speech recognition, and games are all fascinating. Is a CS Master's important?","preferred_answer":"I'd recommend checking out machine learning. It's broadly applicable and covers most of what you're interested in some way:\n\n * It's broadly used in Natural Language Processing / Computational Linguistics\n * It's AI that actually works :-)\n * Probably useful in Game AI (I have no experience in game programming)\n\nI'm not sure that many schools offer a degree in just that, but several schools have computer science programs with professors who are big in the field.\n\nYou said you're not interested in a PhD, but the Machine Learning PhD program at Carnagie Mellon is probably great:\n\nhttp://www.ml.cmu.edu/prospective_students/phd_programs.html\n\nOtherwise, like I said, you can enroll for a master's in a university that offer some classes in machine learning.\n\nYou can get some idea of who's who in the machine learning world by looking at the people involved in (or have publications/presentations at) these two conferences:\n\n * [NIPS](http://nips.cc/)\n * [ICML](http://icml2008.cs.helsinki.fi/)","full_conversation":[{"role":"OP","user_id":"anon_a7c156a70e967176","comment_id":"6vu4u","kind":"post","text":"Ask proggit: I'm an undergraduate making career plans. AI, graphics, speech recognition, and games are all fascinating. Is a CS Master's important?","timestamp":"2008-08-11T16:28:38+00:00","score":5},{"role":"answerer","user_id":"anon_be12453c8b82aca3","comment_id":"c05083i","kind":"comment","text":"I'd recommend checking out machine learning. It's broadly applicable and covers most of what you're interested in some way:\n\n * It's broadly used in Natural Language Processing / Computational Linguistics\n * It's AI that actually works :-)\n * Probably useful in Game AI (I have no experience in game programming)\n\nI'm not sure that many schools offer a degree in just that, but several schools have computer science programs with professors who are big in the field.\n\nYou said you're not interested in a PhD, but the Machine Learning PhD program at Carnagie Mellon is probably great:\n\nhttp://www.ml.cmu.edu/prospective_students/phd_programs.html\n\nOtherwise, like I said, you can enroll for a master's in a university that offer some classes in machine learning.\n\nYou can get some idea of who's who in the machine learning world by looking at the people involved in (or have publications/presentations at) these two conferences:\n\n * [NIPS](http://nips.cc/)\n * [ICML](http://icml2008.cs.helsinki.fi/)","timestamp":"2008-08-11T17:59:59+00:00","score":4},{"role":"OP","user_id":"anon_a7c156a70e967176","comment_id":"c05087s","kind":"comment","text":"Thank you. Those links will be helpful. I actually did some machine learning research last summer, and I agree that it's a (perhaps the only) good middle ground between my interests. I guess I just don't know anyone employed to do machine learning outside of academia.\n\nNothing against academia (I've had some wonderful professors) but at the moment, I don't see myself ending up there.","timestamp":"2008-08-11T18:08:48+00:00","score":1},{"role":"answerer","user_id":"anon_be12453c8b82aca3","comment_id":"c0509rb","kind":"comment","text":"> I guess I just don't know anyone employed to do machine learning outside of academia.\n\nI wouldn't look at it as \"doing machine learning,\" but rather applying machine learning to some particular domain.\n\nI'd imagine many interesting problems today could be approached with an ML-bent.\n\nFor instance, I bet:\n\n * A lot of serious players in Wall Street would surely look quite favorably on people with machine learning skills to fill their 'quant' positions.\n\n * As an example of above, [D E Shaw](http://www.deshaw.com/) could be somewhere in the \"upper echelon\" of what you could shoot for.\n\n * Google will love you\n\n * Look at the machine learning group at [NEC Labs](http://www.nec-labs.com/research/machine/index.php)\n\n * The chief scientist at [Sense Networks](http://www.sensenetworks.com/) is *the* machine learning guy at Columbia University. I could imagine much of the social-web 2.0 is hungry for ML skills\n\n * Anyone doing bioinformatics could benefit from machine learning\n\nI guess my point is that you don't have to stay in academia if you don't want to once you get some good training.\n\nOf course this is all conjecture as I'm still in academia ... but it does seem reasonable to me :-)","timestamp":"2008-08-11T19:53:19+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a7c156a70e967176","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_be12453c8b82aca3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c05083i","thanks_reply_id":"c05087s","post_score":5,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_624c930b4b8c6e24","answerer_user_id":"anon_b18f32d0234f935e","subreddit":"programming","timestamp":"2008-08-14T09:56:13+00:00","post_id":"6wa4i","question":"Now that the java platform is finally open source, and with jython being compatible with python 2.5, java finally sounds interesting again. What books should I get to refresh my java skills?","preferred_answer":"Personally I'm very partial to [Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-Professional/dp/0201633612/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1218756346&sr=8-1). I see Java more and more as a software engineering, rather than a programming language. You can do programming more effectively in Python/Jython or (J)Ruby, but Java for me still is king for developing type-safe, robust libraries and unit testing.\r\n\r\nYou might also want to read up on Eclipse or another decent IDE. Eclipse reduces the amount of monkey typing that all Java developers must endure dramatically with things like templates, getter/setter generation, delegate method generation etc. Since the editor parses the code as you type and keeps an AST in memory, refactoring support is excellent and you'll spend less time worrying about minor design issues when starting a new project. Code is compiled on the fly so startup times are minimal. It's also able to produce very descriptive and useful information about any errors you might have in your code (unlike GCC, for instance:)\r\n\r\nIf you want to know a bit more about how the JVM itself works, read [The JavaTM Virtual Machine Specification, Second Edition](http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.html) which is online and free. It'll give you a bit more insight into why some crappy things are as crappy as they are (backwards compatibility with Java 1.1). Read books that are recent enough to include language features of 1.5 and 1.6, such as static imports, enums, generics, varargs and so on, and decompile some Java code to see how the compiler implements them.","full_conversation":[{"role":"OP","user_id":"anon_624c930b4b8c6e24","comment_id":"6wa4i","kind":"post","text":"Now that the java platform is finally open source, and with jython being compatible with python 2.5, java finally sounds interesting again. What books should I get to refresh my java skills?","timestamp":"2008-08-14T09:56:13+00:00","score":3},{"role":"answerer","user_id":"anon_b18f32d0234f935e","comment_id":"c051r6l","kind":"comment","text":"Personally I'm very partial to [Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-Professional/dp/0201633612/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1218756346&sr=8-1). I see Java more and more as a software engineering, rather than a programming language. You can do programming more effectively in Python/Jython or (J)Ruby, but Java for me still is king for developing type-safe, robust libraries and unit testing.\r\n\r\nYou might also want to read up on Eclipse or another decent IDE. Eclipse reduces the amount of monkey typing that all Java developers must endure dramatically with things like templates, getter/setter generation, delegate method generation etc. Since the editor parses the code as you type and keeps an AST in memory, refactoring support is excellent and you'll spend less time worrying about minor design issues when starting a new project. Code is compiled on the fly so startup times are minimal. It's also able to produce very descriptive and useful information about any errors you might have in your code (unlike GCC, for instance:)\r\n\r\nIf you want to know a bit more about how the JVM itself works, read [The JavaTM Virtual Machine Specification, Second Edition](http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.html) which is online and free. It'll give you a bit more insight into why some crappy things are as crappy as they are (backwards compatibility with Java 1.1). Read books that are recent enough to include language features of 1.5 and 1.6, such as static imports, enums, generics, varargs and so on, and decompile some Java code to see how the compiler implements them.","timestamp":"2008-08-14T23:40:07+00:00","score":1},{"role":"OP","user_id":"anon_624c930b4b8c6e24","comment_id":"c051voz","kind":"comment","text":"Thanks for your comment. I don't know why you get downvoted, it was a good comment.","timestamp":"2008-08-15T07:27:58+00:00","score":1},{"role":"answerer","user_id":"anon_b18f32d0234f935e","comment_id":"c051vsi","kind":"comment","text":"Heh, no worries. This is Reddit, after all. People will downvote posts simply because they don't agree, it's easier than actually coming up with a good counterargument :)","timestamp":"2008-08-15T07:41:55+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_624c930b4b8c6e24","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b18f32d0234f935e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c051r6l","thanks_reply_id":"c051voz","post_score":3,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_1e70c4e0331a26b8","answerer_user_id":"anon_7c506be0eeb11814","subreddit":"programming","timestamp":"2008-08-15T14:06:01+00:00","post_id":"6wglz","question":"Ask Reddit: I'm hoping to write my own programming language for comp sci what sort of features should it have?","preferred_answer":"> What language?\n\nHaskell is pretty much designed for doing this. See: [Writing A Lisp Interpreter In Haskell](http://www.defmacro.org/ramblings/lisp-in-haskell.html) for a one-page example. The main reason still to use C is (to me) if you really, really want to one-to-one map over specific C libraries (particularly threads, signals, and networking) and system calls.\n\n> What types\n\nArrays? Lists? Maps?\n\n> feature suggestsions\n\nImplicit lazy parallelism.\n\n> Any name suggestions?\n\nI think \"FaceL\" is available. To go along the \"Faceless\" moniker, maybe implement [Katahdin](http://www.chrisseaton.com/katahdin/) in something other than C# -- it is a language whose syntax can be defined on the fly.","full_conversation":[{"role":"OP","user_id":"anon_1e70c4e0331a26b8","comment_id":"6wglz","kind":"post","text":"Ask Reddit: I'm hoping to write my own programming language for comp sci what sort of features should it have?","timestamp":"2008-08-15T14:06:01+00:00","score":3},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c051zo3","kind":"comment","text":"> What language?\n\nHaskell is pretty much designed for doing this. See: [Writing A Lisp Interpreter In Haskell](http://www.defmacro.org/ramblings/lisp-in-haskell.html) for a one-page example. The main reason still to use C is (to me) if you really, really want to one-to-one map over specific C libraries (particularly threads, signals, and networking) and system calls.\n\n> What types\n\nArrays? Lists? Maps?\n\n> feature suggestsions\n\nImplicit lazy parallelism.\n\n> Any name suggestions?\n\nI think \"FaceL\" is available. To go along the \"Faceless\" moniker, maybe implement [Katahdin](http://www.chrisseaton.com/katahdin/) in something other than C# -- it is a language whose syntax can be defined on the fly.","timestamp":"2008-08-15T15:26:16+00:00","score":3},{"role":"OP","user_id":"anon_1e70c4e0331a26b8","comment_id":"c052dki","kind":"comment","text":"I completely forgot about arrays and lists thanks. I'll definitely need those. Lazy parellelism is one of those concepts that is just a little beyond my understanding if I can understand it better I'll try and see where it goes. The Katahdin idea seems good though I'm not sure how well I'll be able to implement it.","timestamp":"2008-08-16T17:39:30+00:00","score":2},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c052dls","kind":"comment","text":"I haven't taken too deep a look at the source, but it should be implementable in other languages. To do a more direct mapping, the likelihood is that another object oriented language would be most suited.","timestamp":"2008-08-16T17:43:25+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1e70c4e0331a26b8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7c506be0eeb11814","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c051zo3","thanks_reply_id":"c052dki","post_score":3,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_479037a5647b9497","answerer_user_id":"anon_6a4b00ef1953668c","subreddit":"programming","timestamp":"2008-08-19T17:19:04+00:00","post_id":"6x0vo","question":"Ask Proggit: Am I Screwed?","preferred_answer":"I'm in the home stretch of a similar project. This codebase wasn't \"huge\" (~150kloc) but it's taken over a year to dig ourselves out from underneath the mess we were handed with. Very little of the original code now remains.\n\nTactics that worked for us:\n\n * you cannot rewrite it from scratch right away, so don't even think about it. The code has to keep working.\n\n * software process tools are very helpful here. Your first goal above all needs to be the simplification and automation of the build & deployment of your project. You need to be able to cut a new release in at most ONE step. It would be best if you had a continuous integration server keyed to version control which builds, deploys, and tests your product whenever new changes are committed, and emails you if something goes wrong.\n\n * audit the existing code. Develop a feeling for where the trouble spots are, which modules don't meet standards, where the error handling is weak or nonexistent, etc.\n\n * moving forward your main line of thinking should be reducing the level of interconnectedness between your software components. It's my experience that software complexity rises with the square of the degree of connectedness of your module interference graph. Legacy codebases (especially those written by hacks) can be completely unmanageable Gordian knots. Do rewrite, but at the module/subsystem level. Gradually tease apart the spaghetti into small, self-contained, easily testable functional components. Once you've rewritten/refactored enough subsystems, you can usually hew away the rest of the garbage and be left with a much smaller, more manageable, functional codebase.\n\n * Make a priority queue for maintenance items and fix the stinkiest crap first. Keep in mind that the business people will expect you to be producing new features in parallel with any ongoing maintenance work.\n\n * The more automated testing you have, the better. Introducing testing \"in the large\" to a legacy codebase that was not designed for testability is not likely to work too well, although a black box testing framework like Selenium could be a big help.","full_conversation":[{"role":"OP","user_id":"anon_479037a5647b9497","comment_id":"6x0vo","kind":"post","text":"Ask Proggit: Am I Screwed?","timestamp":"2008-08-19T17:19:04+00:00","score":0},{"role":"answerer","user_id":"anon_6a4b00ef1953668c","comment_id":"c053k0t","kind":"comment","text":"I'm in the home stretch of a similar project. This codebase wasn't \"huge\" (~150kloc) but it's taken over a year to dig ourselves out from underneath the mess we were handed with. Very little of the original code now remains.\n\nTactics that worked for us:\n\n * you cannot rewrite it from scratch right away, so don't even think about it. The code has to keep working.\n\n * software process tools are very helpful here. Your first goal above all needs to be the simplification and automation of the build & deployment of your project. You need to be able to cut a new release in at most ONE step. It would be best if you had a continuous integration server keyed to version control which builds, deploys, and tests your product whenever new changes are committed, and emails you if something goes wrong.\n\n * audit the existing code. Develop a feeling for where the trouble spots are, which modules don't meet standards, where the error handling is weak or nonexistent, etc.\n\n * moving forward your main line of thinking should be reducing the level of interconnectedness between your software components. It's my experience that software complexity rises with the square of the degree of connectedness of your module interference graph. Legacy codebases (especially those written by hacks) can be completely unmanageable Gordian knots. Do rewrite, but at the module/subsystem level. Gradually tease apart the spaghetti into small, self-contained, easily testable functional components. Once you've rewritten/refactored enough subsystems, you can usually hew away the rest of the garbage and be left with a much smaller, more manageable, functional codebase.\n\n * Make a priority queue for maintenance items and fix the stinkiest crap first. Keep in mind that the business people will expect you to be producing new features in parallel with any ongoing maintenance work.\n\n * The more automated testing you have, the better. Introducing testing \"in the large\" to a legacy codebase that was not designed for testability is not likely to work too well, although a black box testing framework like Selenium could be a big help.","timestamp":"2008-08-19T17:57:48+00:00","score":10},{"role":"OP","user_id":"anon_479037a5647b9497","comment_id":"c053k5v","kind":"comment","text":"Thanks, \n\nCan you elaborate more on the testing/testing frameworks you found helpful?\n\nI've been thinking I should research continuous integration more. Our current QA approach, is all-too-often waiting until customers start complaining.","timestamp":"2008-08-19T18:05:41+00:00","score":2},{"role":"answerer","user_id":"anon_6a4b00ef1953668c","comment_id":"c053kez","kind":"comment","text":"Re: testing, that may be too big an issue to get into here. The \"software testing\" page on wikipedia might be a good launching point for your own research here. Also many books have been written on this subject.\n\nSomeone else posted a link to the \"Joel on Software Test\", which has some good advice, although I wouldn't consider it the last word on software process. Some items in his list are bigger wins than others.\n\nWhen I started my current project, I made a lot of software process changes. Continuous integration (and the build/deployment improvements you need to make in order to get it to work) has been the biggest improvement, by far.","timestamp":"2008-08-19T18:20:31+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_479037a5647b9497","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6a4b00ef1953668c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c053k0t","thanks_reply_id":"c053k5v","post_score":0,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_bcc4113dbf695eb4","answerer_user_id":"anon_7ab0d7c289329b53","subreddit":"programming","timestamp":"2008-08-26T07:41:19+00:00","post_id":"6y0zn","question":"What is the best (python) library for creating interactive maps that incorporate GIS data sets?","preferred_answer":"Did you check out what they used for whrrl.com?\n\nI lost the original company, but you might get some help here:\n\nhttp://gislounge.com/python-and-gis-resources/","full_conversation":[{"role":"OP","user_id":"anon_bcc4113dbf695eb4","comment_id":"6y0zn","kind":"post","text":"What is the best (python) library for creating interactive maps that incorporate GIS data sets?","timestamp":"2008-08-26T07:41:19+00:00","score":0},{"role":"answerer","user_id":"anon_7ab0d7c289329b53","comment_id":"c056aba","kind":"comment","text":"Did you check out what they used for whrrl.com?\n\nI lost the original company, but you might get some help here:\n\nhttp://gislounge.com/python-and-gis-resources/","timestamp":"2008-08-26T07:52:42+00:00","score":1},{"role":"OP","user_id":"anon_bcc4113dbf695eb4","comment_id":"c056eyh","kind":"comment","text":"Thanks for the link, it looks good. As for whrrl it looks like they just use google maps and plot points on the map. I want to use my own elevation map instead, and I'm a little lost on how to start. I'll try sifting through the link you sent.\n\ncheers","timestamp":"2008-08-26T16:00:59+00:00","score":1},{"role":"answerer","user_id":"anon_7ab0d7c289329b53","comment_id":"c056puo","kind":"comment","text":"Oh nice - the best use of elevation data mashed with reality and google maps is from these guys:\n\nhttp://www.enkin.net\n\nAre you using the NASA elevation data?","timestamp":"2008-08-27T04:18:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bcc4113dbf695eb4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7ab0d7c289329b53","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c056aba","thanks_reply_id":"c056eyh","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_b0f143ad97a799da","answerer_user_id":"anon_8ee7075e7fff3cdd","subreddit":"programming","timestamp":"2008-09-16T02:57:06+00:00","post_id":"71nhh","question":"Ask Proggit: What's missing from programming languages?","preferred_answer":"Gah, I really need to put a monitoring script on that (putting it on a proper server would probably help too). Should be back up around 6:30 Eastern Time.\n\nIn the meantime, the download page is still up: http://www.retrodev.com/rhope.html There's a zip that contains some heavily commented (but relatively trivial) examples which will at least give you an idea of what the language currently looks like.","full_conversation":[{"role":"OP","user_id":"anon_b0f143ad97a799da","comment_id":"71nhh","kind":"post","text":"Ask Proggit: What's missing from programming languages?","timestamp":"2008-09-16T02:57:06+00:00","score":12},{"role":"answerer","user_id":"anon_8ee7075e7fff3cdd","comment_id":"c05ghuy","kind":"comment","text":"Gah, I really need to put a monitoring script on that (putting it on a proper server would probably help too). Should be back up around 6:30 Eastern Time.\n\nIn the meantime, the download page is still up: http://www.retrodev.com/rhope.html There's a zip that contains some heavily commented (but relatively trivial) examples which will at least give you an idea of what the language currently looks like.","timestamp":"2008-09-16T20:21:54+00:00","score":1},{"role":"OP","user_id":"anon_b0f143ad97a799da","comment_id":"c05gifs","kind":"comment","text":"cool, thanks. do you develop this on the side? or is this your full-time thing?","timestamp":"2008-09-16T20:55:44+00:00","score":1},{"role":"answerer","user_id":"anon_8ee7075e7fff3cdd","comment_id":"c05gkn3","kind":"comment","text":"On the side. I am largely a PHP developer by day.\n\nWeb site should be back up now. I must have knocked the video card loose when I was fiddling with cables last night (the machine hosting the site doesn't currently have a case).","timestamp":"2008-09-16T23:24:48+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b0f143ad97a799da","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8ee7075e7fff3cdd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c05ghuy","thanks_reply_id":"c05gifs","post_score":12,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_6cedc1f27002261f","answerer_user_id":"anon_60c2a8911901bb24","subreddit":"programming","timestamp":"2008-09-23T16:16:13+00:00","post_id":"731xl","question":"Hey Programmers: I'd like to transition from QA to development- What steps should I take?","preferred_answer":"The logical next step, career-wise, is to learn a scripting language and start automating your current job. Much easier (from a job market POV) to transition that way than to try and make the jump all at once.\n\nYou'll probably want to supplement it with some self-study and independent projects, though, as automating QA stuff involves:\n\n* Easy 'programming' -- your programs will probably all be very linear, step one-two-three things with no data structure/algorithms work at all. (e.g.: \"Uninstall old version, check that the system is clean, download latest build, install it, check that it was installed properly.\")\n* Difficult, fiddly, and frustrating API/integration work; 99% of the effort will be in finding the right libraries/languages/etc to use and getting it to work correctly. And often the right tool to use is one that rots your brain -- I've written a fair number of continuous-integration tools in VBA of all things.\n\nAnother simple next step, if it's allowed: Start supplementing your QA with code reading. Try and find a bug or two in new code *before* you actually test it... ((The thing that has probably helped me the most as a programmer was the realization that you cannot read code like a novel; you have to approach it like an academic math paper, which for difficult topics, or unfamiliar ones, means upwards of an hour-per-paragraph with lots of cross referencing. Of course I first had to realize that you can't read an academic paper like a novel ... ))","full_conversation":[{"role":"OP","user_id":"anon_6cedc1f27002261f","comment_id":"731xl","kind":"post","text":"Hey Programmers: I'd like to transition from QA to development- What steps should I take?","timestamp":"2008-09-23T16:16:13+00:00","score":0},{"role":"answerer","user_id":"anon_60c2a8911901bb24","comment_id":"c05jpl5","kind":"comment","text":"The logical next step, career-wise, is to learn a scripting language and start automating your current job. Much easier (from a job market POV) to transition that way than to try and make the jump all at once.\n\nYou'll probably want to supplement it with some self-study and independent projects, though, as automating QA stuff involves:\n\n* Easy 'programming' -- your programs will probably all be very linear, step one-two-three things with no data structure/algorithms work at all. (e.g.: \"Uninstall old version, check that the system is clean, download latest build, install it, check that it was installed properly.\")\n* Difficult, fiddly, and frustrating API/integration work; 99% of the effort will be in finding the right libraries/languages/etc to use and getting it to work correctly. And often the right tool to use is one that rots your brain -- I've written a fair number of continuous-integration tools in VBA of all things.\n\nAnother simple next step, if it's allowed: Start supplementing your QA with code reading. Try and find a bug or two in new code *before* you actually test it... ((The thing that has probably helped me the most as a programmer was the realization that you cannot read code like a novel; you have to approach it like an academic math paper, which for difficult topics, or unfamiliar ones, means upwards of an hour-per-paragraph with lots of cross referencing. Of course I first had to realize that you can't read an academic paper like a novel ... ))","timestamp":"2008-09-23T16:42:48+00:00","score":2},{"role":"OP","user_id":"anon_6cedc1f27002261f","comment_id":"c05jq9v","kind":"comment","text":"Thanks for the suggestions. Unfortunately most of my testing is manual, everytime we try to adopt new QA software- the project gets abandoned and forgotten. I work on websites, so I can view the front-end code. Maybe as I get better I'll ask to look at some of the back-end code... thanks for the suggestions.","timestamp":"2008-09-23T17:16:48+00:00","score":1},{"role":"answerer","user_id":"anon_60c2a8911901bb24","comment_id":"c05jr3c","kind":"comment","text":"Try experimenting a bit with something like [selenium](http://selenium.openqa.org/)? I haven't used it myself but it seems rather slick.\n\nIt's important to never turn this sort of thing into a project: projects never go anywhere. Puttering around a bit and experimenting, however, does.\n\nAnd remember the point is to start to build in programming tasks as you go, so make sure to exercise w/ that as opposed to just recording-and-playing-back tests...","timestamp":"2008-09-23T17:58:39+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6cedc1f27002261f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_60c2a8911901bb24","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c05jpl5","thanks_reply_id":"c05jq9v","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_38107385fa988411","answerer_user_id":"anon_f9fa0339174da098","subreddit":"programming","timestamp":"2008-10-02T06:13:38+00:00","post_id":"74rnz","question":"Ask Reddit: How much should I charge for contract programming work?","preferred_answer":"Without knowing anything more than the description of the project and your experience, you should be asking for more like $60 or $75/hr. In my experience most of the time people don't question rates, but need to know them for budgeting reasons.\n\nAlso, I wouldn't recommend taking a contract with such a short turnaround time. Maybe it's common in some contexts, but 3 days and $200, not to mention an hour-based requirement on the initial request, seems a bit shady to me.","full_conversation":[{"role":"OP","user_id":"anon_38107385fa988411","comment_id":"74rnz","kind":"post","text":"Ask Reddit: How much should I charge for contract programming work?","timestamp":"2008-10-02T06:13:38+00:00","score":15},{"role":"answerer","user_id":"anon_f9fa0339174da098","comment_id":"c05o8ii","kind":"comment","text":"Without knowing anything more than the description of the project and your experience, you should be asking for more like $60 or $75/hr. In my experience most of the time people don't question rates, but need to know them for budgeting reasons.\n\nAlso, I wouldn't recommend taking a contract with such a short turnaround time. Maybe it's common in some contexts, but 3 days and $200, not to mention an hour-based requirement on the initial request, seems a bit shady to me.","timestamp":"2008-10-02T07:13:44+00:00","score":12},{"role":"OP","user_id":"anon_38107385fa988411","comment_id":"c05o8kl","kind":"comment","text":"Thanks much for your input, and I would definitely agree on the turnaround time. I was a little put off from the urgency they conveyed, but I didn't negotiate a fair price and I can see now that I was *severely* underpaid. By anywheres from $50-$70 an *hour*.","timestamp":"2008-10-02T07:21:11+00:00","score":2},{"role":"answerer","user_id":"anon_f9fa0339174da098","comment_id":"c05o8l4","kind":"comment","text":"The good news: you now have something to show future clients, and if the project ends well you have a good reference. I got most of my initial leads by doing pro-bono work, so you beat me by $200!\n\nEdit: The general rule of thumb is to think of the highest number you could reasonably expect to get paid and double it. There's nothing wrong with a bit of haggling up front, either, and for that you have to start high.","timestamp":"2008-10-02T07:23:35+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_38107385fa988411","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f9fa0339174da098","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c05o8ii","thanks_reply_id":"c05o8kl","post_score":15,"answer_score":12,"preferred_answer_is_top_level":false}} {"user_id":"anon_8e2e46ae9a795dd1","answerer_user_id":"anon_bf5fcb839c8f4827","subreddit":"programming","timestamp":"2008-10-07T03:02:45+00:00","post_id":"75mh6","question":"What's So Evil About Mono? - Linux Today Blog","preferred_answer":"It stands in the way of sexual intercourse.","full_conversation":[{"role":"OP","user_id":"anon_8e2e46ae9a795dd1","comment_id":"75mh6","kind":"post","text":"What's So Evil About Mono? - Linux Today Blog","timestamp":"2008-10-07T03:02:45+00:00","score":56},{"role":"answerer","user_id":"anon_bf5fcb839c8f4827","comment_id":"c05qmjj","kind":"comment","text":"It stands in the way of sexual intercourse.","timestamp":"2008-10-07T03:03:39+00:00","score":-15},{"role":"OP","user_id":"anon_8e2e46ae9a795dd1","comment_id":"c05qmk0","kind":"comment","text":"Thank you for making Reddit feel a little more like Digg.","timestamp":"2008-10-07T03:05:01+00:00","score":7},{"role":"answerer","user_id":"anon_bf5fcb839c8f4827","comment_id":"c05qmxk","kind":"comment","text":"hey, you was asking for it.","timestamp":"2008-10-07T03:31:18+00:00","score":-12}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8e2e46ae9a795dd1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bf5fcb839c8f4827","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c05qmjj","thanks_reply_id":"c05qmk0","post_score":56,"answer_score":-15,"preferred_answer_is_top_level":true}} {"user_id":"anon_5df1008403daaef6","answerer_user_id":"anon_732adc283a4318c0","subreddit":"programming","timestamp":"2008-10-07T18:12:39+00:00","post_id":"75r92","question":"Ask a game dev: Anything you ever wanted to ask a console game programmer?","preferred_answer":">I didn't think the hardware was really powerful enough for that.\n\nIt's not. It wasn't my choice to use lua and I fought all I could to keep it out.","full_conversation":[{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"75r92","kind":"post","text":"Ask a game dev: Anything you ever wanted to ask a console game programmer?","timestamp":"2008-10-07T18:12:39+00:00","score":220},{"role":"answerer","user_id":"anon_732adc283a4318c0","comment_id":"c05r009","kind":"comment","text":">I didn't think the hardware was really powerful enough for that.\n\nIt's not. It wasn't my choice to use lua and I fought all I could to keep it out.","timestamp":"2008-10-07T19:46:51+00:00","score":12},{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"c05r01k","kind":"comment","text":"Ouch. Thanks for the heads up then. I'll keep that in mind.","timestamp":"2008-10-07T19:48:36+00:00","score":11},{"role":"answerer","user_id":"anon_732adc283a4318c0","comment_id":"c05r09y","kind":"comment","text":"Just to let you know. I don't work at the company where I made DS games anymore. I've moved onto another game studio.\n\nI left that company after the CEO insisted..no commanded that I use floating point arithmetics on the DS to \"make the code cleaner and faster\". Seriously. \n\nI quit before I can really see how much that would hurt on the next game.","timestamp":"2008-10-07T19:59:56+00:00","score":12},{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"c05r0fw","kind":"comment","text":"Holy shit.\n\nWhat games did you make before you left? Any I'd know?","timestamp":"2008-10-07T20:07:22+00:00","score":5},{"role":"answerer","user_id":"anon_732adc283a4318c0","comment_id":"c05r0m2","kind":"comment","text":"Honestly, I'm not too proud of them so I'd rather not say.","timestamp":"2008-10-07T20:15:45+00:00","score":5},{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"c05r0r3","kind":"comment","text":"Ouch. Fair enough. There's no shame in making My Little Pony Fashion Design Kit 2006 if it pays the bills.","timestamp":"2008-10-07T20:22:27+00:00","score":8},{"role":"answerer","user_id":"anon_732adc283a4318c0","comment_id":"c05r13k","kind":"comment","text":"Let me just say this: My friend, who left the company 3 years ago, did the mistake of telling his new coworkers what games he worked on and he *still* hasn't lived it down.\n\nI haven't told anybody. Not my coworkers, not my friends, and not anybody who might remotely have a chance of knowing somebody I work with.","timestamp":"2008-10-07T20:40:00+00:00","score":10}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_5df1008403daaef6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_732adc283a4318c0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c05r009","thanks_reply_id":"c05r01k","post_score":220,"answer_score":12,"preferred_answer_is_top_level":false}} {"user_id":"anon_ae0470f0ef8211ef","answerer_user_id":"anon_e1c04ab98fefbcdd","subreddit":"programming","timestamp":"2008-10-24T19:34:56+00:00","post_id":"7974q","question":"Ask proggit: Good fluxbox-based distributions?","preferred_answer":"distro should help you install new packages and admin your system, yet you remind me of my uncle who tried dozens of livecds and chose distro that had prettiest desktop background and widget theme.","full_conversation":[{"role":"OP","user_id":"anon_ae0470f0ef8211ef","comment_id":"7974q","kind":"post","text":"Ask proggit: Good fluxbox-based distributions?","timestamp":"2008-10-24T19:34:56+00:00","score":0},{"role":"answerer","user_id":"anon_e1c04ab98fefbcdd","comment_id":"c060icz","kind":"comment","text":"distro should help you install new packages and admin your system, yet you remind me of my uncle who tried dozens of livecds and chose distro that had prettiest desktop background and widget theme.","timestamp":"2008-10-24T21:02:40+00:00","score":3},{"role":"OP","user_id":"anon_ae0470f0ef8211ef","comment_id":"c060j3l","kind":"comment","text":"that worked happily enough under gentoo and descendants, but ubuntu really does fight you if you stray from the gnome way.","timestamp":"2008-10-24T21:42:55+00:00","score":1},{"role":"answerer","user_id":"anon_e1c04ab98fefbcdd","comment_id":"c060jbf","kind":"comment","text":"than stay with gentoo. if your wifi works under any other distro it can work under gentoo too. and there are plenty of people on forums.gentoo.org that will help you to make it work.","timestamp":"2008-10-24T21:56:02+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ae0470f0ef8211ef","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e1c04ab98fefbcdd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c060icz","thanks_reply_id":"c060j3l","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_5356538e0fe43405","answerer_user_id":"anon_ce362ce3178609e9","subreddit":"programming","timestamp":"2008-10-28T16:12:38+00:00","post_id":"79veo","question":"Is Code Coverage Really All That Useful?","preferred_answer":"The second example is great. Not only did he typo 'return', the code cannot crash because it does floating-point division, which can handle division by zero just fine and in a well-defined manner.\n\nNot to belittle the article, though it's a bit devoid of content: he's right, 100% code coverage is, unsurprisingly enough, not proof that the code works.","full_conversation":[{"role":"OP","user_id":"anon_5356538e0fe43405","comment_id":"79veo","kind":"post","text":"Is Code Coverage Really All That Useful?","timestamp":"2008-10-28T16:12:38+00:00","score":7},{"role":"answerer","user_id":"anon_ce362ce3178609e9","comment_id":"c062e98","kind":"comment","text":"The second example is great. Not only did he typo 'return', the code cannot crash because it does floating-point division, which can handle division by zero just fine and in a well-defined manner.\n\nNot to belittle the article, though it's a bit devoid of content: he's right, 100% code coverage is, unsurprisingly enough, not proof that the code works.","timestamp":"2008-10-28T16:46:35+00:00","score":5},{"role":"OP","user_id":"anon_5356538e0fe43405","comment_id":"c062fv4","kind":"comment","text":"Fixed the typo. Thanks for the correction.\n\nAs for content, I respectfully disagree. The point may be simple, even intuitive to some, but that doesn't change the fact that there are programmers and managers out there who view code coverage as a useful way to gauge how well-tested their applications are when in fact it provides very little information to that. I will agree with some of the other commenters, however, that code coverage does encourage developers to think more about testing different use cases.","timestamp":"2008-10-28T18:01:56+00:00","score":-1},{"role":"answerer","user_id":"anon_ce362ce3178609e9","comment_id":"c062g3t","kind":"comment","text":"> Fixed the typo. Thanks for the correction.\n\nIt's still doing floating point division, which isn't problematic in the way you describe.\n\n> The point may be simple, even intuitive to some, but that doesn't change the fact that there are programmers and managers out there who view code coverage as a useful way to gauge how well-tested their applications are when in fact it provides very little information to that.\n\nFortunately, I have yet to encounter such people. :-) (Although I haven't much discussed code coverage with people, either.)","timestamp":"2008-10-28T18:13:58+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5356538e0fe43405","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ce362ce3178609e9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c062e98","thanks_reply_id":"c062fv4","post_score":7,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_f1dc63b1240da3b4","answerer_user_id":"anon_1cd048c1f88f02ef","subreddit":"programming","timestamp":"2008-11-04T20:49:22+00:00","post_id":"7bc1q","question":"I want to learn a programming language for web. Where do I start, Reddit?","preferred_answer":"PHP is that special combination of Popular and Easy To Hate that leads to a fair amount of ranting and snark. I myself am responsible for plenty of both.\n\nPHP's popularity, wide utilization, and laundry list of viable projects do actually point at some merits, many of which have to do with its accessibility to entry-level coders. Despite this, I'm just about certain that a beginner will be better served by other languages and environments.\n\nIn no particular order:\n\n* Culture, culture, culture. There are PHP best practices and (theoretically) style conventions. The language offers, some quirks aside, plenty of features which can help keep things tidy. The dominant culture of PHP is to ignore all of these things.\n* Habits. This is probably only a restatement of \"culture\", but all things being equal, you will be a better programmer with more portable skills sooner if you're exposed primarily to better code, better practices, better conventions, and better documentation.\n* If you _need_ to write PHP after learning any reasonable modern language, you'll be fine (you'll be frustrated too, but that's a separate issue). It's cake to pick up. There is, however, a higher than average risk that if you learn what seems to be a satisfactory amount of PHP, you're going to find yourself at sea in other environments.\n\nI could go on for a while in this vein, but I think I'm essentially repeating myself.\n\nEdit: And I'm willing to admit that I could be wrong in a pretty important way. Maybe for lots of people the most important thing is that they can _get traction with something_. PHP certainly seems to enable a lot of people to do just that.","full_conversation":[{"role":"OP","user_id":"anon_f1dc63b1240da3b4","comment_id":"7bc1q","kind":"post","text":"I want to learn a programming language for web. Where do I start, Reddit?","timestamp":"2008-11-04T20:49:22+00:00","score":2},{"role":"answerer","user_id":"anon_1cd048c1f88f02ef","comment_id":"c067fzc","kind":"comment","text":"PHP is that special combination of Popular and Easy To Hate that leads to a fair amount of ranting and snark. I myself am responsible for plenty of both.\n\nPHP's popularity, wide utilization, and laundry list of viable projects do actually point at some merits, many of which have to do with its accessibility to entry-level coders. Despite this, I'm just about certain that a beginner will be better served by other languages and environments.\n\nIn no particular order:\n\n* Culture, culture, culture. There are PHP best practices and (theoretically) style conventions. The language offers, some quirks aside, plenty of features which can help keep things tidy. The dominant culture of PHP is to ignore all of these things.\n* Habits. This is probably only a restatement of \"culture\", but all things being equal, you will be a better programmer with more portable skills sooner if you're exposed primarily to better code, better practices, better conventions, and better documentation.\n* If you _need_ to write PHP after learning any reasonable modern language, you'll be fine (you'll be frustrated too, but that's a separate issue). It's cake to pick up. There is, however, a higher than average risk that if you learn what seems to be a satisfactory amount of PHP, you're going to find yourself at sea in other environments.\n\nI could go on for a while in this vein, but I think I'm essentially repeating myself.\n\nEdit: And I'm willing to admit that I could be wrong in a pretty important way. Maybe for lots of people the most important thing is that they can _get traction with something_. PHP certainly seems to enable a lot of people to do just that.","timestamp":"2008-11-05T21:29:49+00:00","score":3},{"role":"OP","user_id":"anon_f1dc63b1240da3b4","comment_id":"c067iq7","kind":"comment","text":"Thanks for all the advice. But I'm not really sure what you're saying, since you say both good and bad things about PHP. Are you saying I shouldn't bother jumping into this first, because I'll easily pick it up later when I learn better code practices?","timestamp":"2008-11-05T23:13:11+00:00","score":1},{"role":"answerer","user_id":"anon_1cd048c1f88f02ef","comment_id":"c067j46","kind":"comment","text":"Pretty much, with a touch of \"if you're lucky you'll never need it\" and some \"but I'm not feeling especially strident about this today\".","timestamp":"2008-11-05T23:29:51+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f1dc63b1240da3b4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1cd048c1f88f02ef","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c067fzc","thanks_reply_id":"c067iq7","post_score":2,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_e52defe27dbdb99a","answerer_user_id":"anon_6a91a70ea4a08b66","subreddit":"programming","timestamp":"2008-11-09T18:47:04+00:00","post_id":"7cbbx","question":"Ask proggit: What are the best books or reources for a programmer (without a good sense of style) to learn to make good looking websites?","preferred_answer":"Simple is elegant, just sketch something simple and use a colour scheme from [colorlovers](http://www.colourlovers.com/).\r\n\r\nIt's not as difficult as some people would have you believe.","full_conversation":[{"role":"OP","user_id":"anon_e52defe27dbdb99a","comment_id":"7cbbx","kind":"post","text":"Ask proggit: What are the best books or reources for a programmer (without a good sense of style) to learn to make good looking websites?","timestamp":"2008-11-09T18:47:04+00:00","score":21},{"role":"answerer","user_id":"anon_6a91a70ea4a08b66","comment_id":"c069stt","kind":"comment","text":"Simple is elegant, just sketch something simple and use a colour scheme from [colorlovers](http://www.colourlovers.com/).\r\n\r\nIt's not as difficult as some people would have you believe.","timestamp":"2008-11-09T19:46:44+00:00","score":9},{"role":"OP","user_id":"anon_e52defe27dbdb99a","comment_id":"c069sxg","kind":"comment","text":"Thanks for the link, that's an interesting site and the kind of thing I'd never find on my own.","timestamp":"2008-11-09T19:53:57+00:00","score":3},{"role":"answerer","user_id":"anon_6a91a70ea4a08b66","comment_id":"c069t55","kind":"comment","text":"Why not just adapt an open source [template](http://www.google.com/search?client=opera&rls=en&q=open+source+web+templates).","timestamp":"2008-11-09T20:09:26+00:00","score":3},{"role":"OP","user_id":"anon_e52defe27dbdb99a","comment_id":"c069tib","kind":"comment","text":"I think those are nice as a reference. One problem is that I know many of those suck, and I don't know why they suck. I also know that what I will prefer isn't going to be what the typical user will (who probably won't have the mind of a programmer/mathematician/internet troll).\n\nI know from many other life experiences that there are a _lot_ of areas where you have to search really hard to find what the general principles are, and people will scream at you that there's no such thing, and people will give you the wrong idea, but nonetheless the general principles _do_ exist, and they are fantastically effective when you find them.","timestamp":"2008-11-09T20:30:55+00:00","score":3},{"role":"answerer","user_id":"anon_6a91a70ea4a08b66","comment_id":"c069trg","kind":"comment","text":"Dude. The general principle is to keep it simple. As long as you're not building an ajax application, that's fairly easy to acheive. A header, a navigation, a content box and a good easy on the eye colour scheme is my personal preference. Minimal CSS, minimal bitmap trickery, minimal JavaScript.\r\n\r\nIf you really need inspiration, don't go looking for books and resources, try to adapt one from real life or something.","timestamp":"2008-11-09T20:46:03+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_e52defe27dbdb99a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6a91a70ea4a08b66","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c069stt","thanks_reply_id":"c069sxg","post_score":21,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_44fd86fd966f9ddf","answerer_user_id":"anon_482f776db38438b5","subreddit":"programming","timestamp":"2008-11-17T11:50:09+00:00","post_id":"7duum","question":"I've built this site to help people split bills between friends. What do you think?","preferred_answer":"I was a bit dubious at first, but actually I really like it. There are ten of us going to a house in the country in two weeks and we split the food and accommodation between us. I can see this being a great way to help us work who owes who what.\n\nThough the ability to add more fields for extra people would be great.","full_conversation":[{"role":"OP","user_id":"anon_44fd86fd966f9ddf","comment_id":"7duum","kind":"post","text":"I've built this site to help people split bills between friends. What do you think?","timestamp":"2008-11-17T11:50:09+00:00","score":0},{"role":"answerer","user_id":"anon_482f776db38438b5","comment_id":"c06eaae","kind":"comment","text":"I was a bit dubious at first, but actually I really like it. There are ten of us going to a house in the country in two weeks and we split the food and accommodation between us. I can see this being a great way to help us work who owes who what.\n\nThough the ability to add more fields for extra people would be great.","timestamp":"2008-11-17T12:16:16+00:00","score":2},{"role":"OP","user_id":"anon_44fd86fd966f9ddf","comment_id":"c06eadp","kind":"comment","text":"Thanks! I think I'll add a '+'-button so you can add more people to the list. \n\nBut I was wondering - why do you felt it was dubious at first?","timestamp":"2008-11-17T12:28:01+00:00","score":2},{"role":"answerer","user_id":"anon_482f776db38438b5","comment_id":"c06eaih","kind":"comment","text":"Just because I thought, what's the point, I can divide 458 by 8 if I want to. It was only later I realised its real beauty is it evens out contributions. \n\nOr in other words, the value to me is not splitting a bill in a restaurant, but making it easy to work out whether person A has over-contributed and, if so, how much person B owes him.","timestamp":"2008-11-17T12:43:14+00:00","score":2},{"role":"OP","user_id":"anon_44fd86fd966f9ddf","comment_id":"c06ealy","kind":"comment","text":"In that case I guess we have some work to do. The site was built exactly for the purpose you describe, but apparently it fails to communicate that. I think I'll look into re-wording and re-writing some text to make this more clear.\n\nBut anyway, thanks for the thumbs up! \n\nPS: Did you know we use a fancy algorithm derived from distributed computing to calculate this? The given answer is the optimal solution - the solution where an equilibrium is reached with a minimum number of transactions of minimum size. Cool huh? :D","timestamp":"2008-11-17T12:55:24+00:00","score":5}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_44fd86fd966f9ddf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_482f776db38438b5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06eaae","thanks_reply_id":"c06eadp","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_006ef77e1afdb6c1","answerer_user_id":"anon_8cc312a6c76382c1","subreddit":"programming","timestamp":"2008-12-02T00:45:56+00:00","post_id":"7grhr","question":"So... I got laid off today. Thanks, recession. Any ideas for getting another job again quick?","preferred_answer":"Update your resume, don't just say what you did, also add how it benefited the people you work for. \n\nAre you on linked in? Start digging through dice/monster. Call local recruiters. Start applying with major defense contractors. \n\nAll of this might land you some action before the end of the year, but if it doesn't don't let that get you down, budgets are low this time of year, and there's lots of people with use it or lose it vacation. \n\nSo in the mean time, learn another language. e.g. Python, Clojure, Erlang. Start contributing to an open source project. Volunteer. Relax. Decompress. Read a book.","full_conversation":[{"role":"OP","user_id":"anon_006ef77e1afdb6c1","comment_id":"7grhr","kind":"post","text":"So... I got laid off today. Thanks, recession. Any ideas for getting another job again quick?","timestamp":"2008-12-02T00:45:56+00:00","score":54},{"role":"answerer","user_id":"anon_8cc312a6c76382c1","comment_id":"c06m4gn","kind":"comment","text":"Update your resume, don't just say what you did, also add how it benefited the people you work for. \n\nAre you on linked in? Start digging through dice/monster. Call local recruiters. Start applying with major defense contractors. \n\nAll of this might land you some action before the end of the year, but if it doesn't don't let that get you down, budgets are low this time of year, and there's lots of people with use it or lose it vacation. \n\nSo in the mean time, learn another language. e.g. Python, Clojure, Erlang. Start contributing to an open source project. Volunteer. Relax. Decompress. Read a book.","timestamp":"2008-12-02T02:43:08+00:00","score":14},{"role":"OP","user_id":"anon_006ef77e1afdb6c1","comment_id":"c06m4kx","kind":"comment","text":"Thanks. This is really good advice.\n\n>learn another language. Python, Clojure, Erlang.\n\nRecommendations? I don't know any of those. Where should I start?\n\n>Start contributing to an open source project.\n\nRecommendations?\n\n>Read a book.\n\nRecommendations?\n\n;)","timestamp":"2008-12-02T02:50:12+00:00","score":5},{"role":"answerer","user_id":"anon_8cc312a6c76382c1","comment_id":"c06m5h8","kind":"comment","text":"Language? Python (python.org) is the most practical. Clojure (clojure.org) sounds like the most interesting.\n\nProject? Something that interests you.\n\nBook? beats me. Do you like Stephen King?","timestamp":"2008-12-02T04:25:37+00:00","score":4},{"role":"OP","user_id":"anon_006ef77e1afdb6c1","comment_id":"c06m5l7","kind":"comment","text":"Douglas Adams is my favorite author. I enjoy Robert Asprin, David Sedaris, Kurt Vonnegut, Nick Hornby, Arthur Conan Doyle to name a few.","timestamp":"2008-12-02T04:31:38+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_006ef77e1afdb6c1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8cc312a6c76382c1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06m4gn","thanks_reply_id":"c06m4kx","post_score":54,"answer_score":14,"preferred_answer_is_top_level":true}} {"user_id":"anon_639c3c899d367f32","answerer_user_id":"anon_c8097364d595b4da","subreddit":"programming","timestamp":"2008-12-05T21:00:27+00:00","post_id":"7hnxf","question":"Need help from programming reddit for process watching","preferred_answer":"Take a look at this:\n\nhttp://msdn.microsoft.com/en-us/library/ms257355%28VS.80%29.aspx","full_conversation":[{"role":"OP","user_id":"anon_639c3c899d367f32","comment_id":"7hnxf","kind":"post","text":"Need help from programming reddit for process watching","timestamp":"2008-12-05T21:00:27+00:00","score":0},{"role":"answerer","user_id":"anon_c8097364d595b4da","comment_id":"c06ojfz","kind":"comment","text":"Take a look at this:\n\nhttp://msdn.microsoft.com/en-us/library/ms257355%28VS.80%29.aspx","timestamp":"2008-12-05T21:36:39+00:00","score":2},{"role":"OP","user_id":"anon_639c3c899d367f32","comment_id":"c06ojkk","kind":"comment","text":"This is exactly what I'm doing. The problem is that in order for this to work, you need to put the poll on a loop. Every time the query is run, the CPU usage spikes.","timestamp":"2008-12-05T21:43:02+00:00","score":1},{"role":"answerer","user_id":"anon_c8097364d595b4da","comment_id":"c06okac","kind":"comment","text":"> This is exactly what I'm doing. The problem is that in order for this to work, you need to put the poll on a loop. Every time the query is run, the CPU usage spikes.\n\nIn the example, the program waits for an event, so it shouldn't have to loop. But you can also receive events asynchronously:\n\nhttp://msdn.microsoft.com/en-us/library/ms257360%28VS.80%29.aspx","timestamp":"2008-12-05T22:15:55+00:00","score":2},{"role":"OP","user_id":"anon_639c3c899d367f32","comment_id":"c06oket","kind":"comment","text":"Interestingly enough, this is what I am currently doing after I figured out I needed to watch multiple processes. Go figure :)","timestamp":"2008-12-05T22:21:45+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_639c3c899d367f32","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c8097364d595b4da","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06ojfz","thanks_reply_id":"c06ojkk","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_d48145299de7952d","answerer_user_id":"anon_7c506be0eeb11814","subreddit":"programming","timestamp":"2008-12-08T18:48:46+00:00","post_id":"7i5ot","question":"Ask Reddit: I need a VPS hosting solution for a small MSSQL Server 2005-based web-app; what are your recommendations?","preferred_answer":"Tektonic or VPSVillage (by GrokThis). Both were fine to work with in my limited experience.","full_conversation":[{"role":"OP","user_id":"anon_d48145299de7952d","comment_id":"7i5ot","kind":"post","text":"Ask Reddit: I need a VPS hosting solution for a small MSSQL Server 2005-based web-app; what are your recommendations?","timestamp":"2008-12-08T18:48:46+00:00","score":0},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c06pztd","kind":"comment","text":"Tektonic or VPSVillage (by GrokThis). Both were fine to work with in my limited experience.","timestamp":"2008-12-08T19:03:28+00:00","score":1},{"role":"OP","user_id":"anon_d48145299de7952d","comment_id":"c06q1kd","kind":"comment","text":"Thanks for the help. Unfortunately I can't use Linux OS's... so nix on the Tektonic and the VPSVillage. :/","timestamp":"2008-12-08T20:25:03+00:00","score":1},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c06q2li","kind":"comment","text":"Ah, sorry, I missed the \"Windows\" in your comment. Anyway, I thought Tektonic did offer Windows VPS, though I have only used Linux there.\n\nedit: it appears that they no longer sell Windows VPS, though they used to. I'm really not sure, you may want to just ask:\n\nhttp://tektonic.net/forum/showthread.php?t=2100","timestamp":"2008-12-08T21:06:30+00:00","score":1},{"role":"OP","user_id":"anon_d48145299de7952d","comment_id":"c06q2m9","kind":"comment","text":"If they do, they've hidden it awfully well.","timestamp":"2008-12-08T21:07:33+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d48145299de7952d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7c506be0eeb11814","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06pztd","thanks_reply_id":"c06q1kd","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_902ef56bf02db2c5","answerer_user_id":"anon_bb5875941fda3d41","subreddit":"programming","timestamp":"2008-12-11T05:15:52+00:00","post_id":"7iqtv","question":"Have they really done it? Scalable transactions?","preferred_answer":"Hi jsnx. I'm one of the developers of P2PS. Unfortunately, the code you downloaded from the site does not contain the transaction layer that Monkeyget mentioned. The students work for the project using the [nightly SVN snapshot](http://gforge.info.ucl.ac.be/scm/?group_id=15). It's true that the documentation is very very thin, but we are actually working on a reimplementation of the whole system, and then we will provide better docs.\n\nAnyway, there are [some slides](http://www.info.ucl.ac.be/Enseignement/Cours/SINF2345/lectures/p2ps.pdf) with a summary of the API that the students used that might help. Transactions are done using the same Paxos-consensus algorithm of Scalaris, which relies on the majority of the peers holding the replicas, with replicated transaction managers as well, so it's more reliable that two-phase commit.\n\ncheers","full_conversation":[{"role":"OP","user_id":"anon_902ef56bf02db2c5","comment_id":"7iqtv","kind":"post","text":"Have they really done it? Scalable transactions?","timestamp":"2008-12-11T05:15:52+00:00","score":26},{"role":"answerer","user_id":"anon_bb5875941fda3d41","comment_id":"1fmq","kind":"comment","text":"Hi jsnx. I'm one of the developers of P2PS. Unfortunately, the code you downloaded from the site does not contain the transaction layer that Monkeyget mentioned. The students work for the project using the [nightly SVN snapshot](http://gforge.info.ucl.ac.be/scm/?group_id=15). It's true that the documentation is very very thin, but we are actually working on a reimplementation of the whole system, and then we will provide better docs.\n\nAnyway, there are [some slides](http://www.info.ucl.ac.be/Enseignement/Cours/SINF2345/lectures/p2ps.pdf) with a summary of the API that the students used that might help. Transactions are done using the same Paxos-consensus algorithm of Scalaris, which relies on the majority of the peers holding the replicas, with replicated transaction managers as well, so it's more reliable that two-phase commit.\n\ncheers","timestamp":"2008-12-20T12:32:42+00:00","score":1},{"role":"OP","user_id":"anon_902ef56bf02db2c5","comment_id":"2cws","kind":"comment","text":"Thank you for the slides -- I've read them with interest. I look forward to learning more about what you are doing.","timestamp":"2008-12-22T05:51:10+00:00","score":1},{"role":"answerer","user_id":"anon_bb5875941fda3d41","comment_id":"2scn","kind":"comment","text":"Good to hear you found it interesting. As I said, we are planning to rebuild the whole system with what we have learned after the first implementation and the feedback from our students working on the project.\n\nWe will update the website of p2ps during january with more information. And we will document more about how transactions are implemented. I gave already some explanation in another reply.\n\ncheers","timestamp":"2008-12-22T22:45:27+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_902ef56bf02db2c5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bb5875941fda3d41","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"1fmq","thanks_reply_id":"2cws","post_score":26,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_4da22c3369910b7d","answerer_user_id":"anon_792dfb96b27bd18c","subreddit":"programming","timestamp":"2008-12-14T14:24:52+00:00","post_id":"7je9r","question":"AskProgramming: What's the best (free) program to manage code snippets?","preferred_answer":"Don't manage code snippets, study them so you understand what the snippet does, then you can reproduce it whenever you want and (if applicable) in whatever language you want.","full_conversation":[{"role":"OP","user_id":"anon_4da22c3369910b7d","comment_id":"7je9r","kind":"post","text":"AskProgramming: What's the best (free) program to manage code snippets?","timestamp":"2008-12-14T14:24:52+00:00","score":20},{"role":"answerer","user_id":"anon_792dfb96b27bd18c","comment_id":"c06ti67","kind":"comment","text":"Don't manage code snippets, study them so you understand what the snippet does, then you can reproduce it whenever you want and (if applicable) in whatever language you want.","timestamp":"2008-12-14T14:43:57+00:00","score":-2},{"role":"OP","user_id":"anon_4da22c3369910b7d","comment_id":"c06ti6z","kind":"comment","text":"True, but what if I spent an entire afternoon creating the PERFECT regex to check for e-mail addresses? I wouldn't remember it when I needed it again, which is where a code snippets database comes in handy.","timestamp":"2008-12-14T14:46:48+00:00","score":3},{"role":"answerer","user_id":"anon_792dfb96b27bd18c","comment_id":"c06tit5","kind":"comment","text":"That's called bookmarking web sites. If you want to become a decent programmer, you've got to learn what things do and how, not that you have some code somewhere that does what you want.","timestamp":"2008-12-14T15:51:01+00:00","score":-1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4da22c3369910b7d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_792dfb96b27bd18c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06ti67","thanks_reply_id":"c06ti6z","post_score":20,"answer_score":-2,"preferred_answer_is_top_level":true}} {"user_id":"anon_78ec39c0adf097f0","answerer_user_id":"anon_48bcfd4617c9cce3","subreddit":"programming","timestamp":"2008-12-17T03:53:42+00:00","post_id":"7jzm0","question":"Can someone recommend a good textbook for learning how to develop web apps?","preferred_answer":"The best way is to pick a programming language you want to use. Then pick one of the predominant web libararies...\n\nPython: Django( http://www.djangoproject.com/ ) Web.py ( http://webpy.org/ ) \n\nRuby: Ruby on Rails ( http://www.rubyonrails.org/ ) \n\nC#: ASP.net ( http://www.asp.net/default.aspx?wwwaspnetrdirset=1 ) \n\nPHP\n\nAll these languages can do very well on their own without the framework but it helps. \n\nFollow one of the many THOUSAND web application tutorials for all of these frameworks and build away. Nothing will help better then a good background in programming though.\n\nGOODLUCK","full_conversation":[{"role":"OP","user_id":"anon_78ec39c0adf097f0","comment_id":"7jzm0","kind":"post","text":"Can someone recommend a good textbook for learning how to develop web apps?","timestamp":"2008-12-17T03:53:42+00:00","score":0},{"role":"answerer","user_id":"anon_48bcfd4617c9cce3","comment_id":"c06v6tn","kind":"comment","text":"The best way is to pick a programming language you want to use. Then pick one of the predominant web libararies...\n\nPython: Django( http://www.djangoproject.com/ ) Web.py ( http://webpy.org/ ) \n\nRuby: Ruby on Rails ( http://www.rubyonrails.org/ ) \n\nC#: ASP.net ( http://www.asp.net/default.aspx?wwwaspnetrdirset=1 ) \n\nPHP\n\nAll these languages can do very well on their own without the framework but it helps. \n\nFollow one of the many THOUSAND web application tutorials for all of these frameworks and build away. Nothing will help better then a good background in programming though.\n\nGOODLUCK","timestamp":"2008-12-17T04:12:46+00:00","score":4},{"role":"OP","user_id":"anon_78ec39c0adf097f0","comment_id":"c06v7nn","kind":"comment","text":"Thanks so much! This is very helpful. I am looking for a way to link blocks of texts using tags.","timestamp":"2008-12-17T05:02:31+00:00","score":0},{"role":"answerer","user_id":"anon_48bcfd4617c9cce3","comment_id":"c06vd0s","kind":"comment","text":"Good luck.","timestamp":"2008-12-17T13:40:46+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_78ec39c0adf097f0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_48bcfd4617c9cce3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06v6tn","thanks_reply_id":"c06v7nn","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_7a6825728e62dac9","answerer_user_id":"anon_e666be39437448ca","subreddit":"programming","timestamp":"2008-12-17T17:29:33+00:00","post_id":"7k4k1","question":"OK Reddit, everyone takes the piss out of PHP. What programming language should I learn instead to create web apps?","preferred_answer":"Never mind the language, get something with a better model of programming web applications. Current PHP frameworks show that this seems to be the major problem, they try to use traditional MVC approaches and have to go against the language quite often.\n\nJavaScript should definitely be in your portfolia, as lots of apps nowadays can use nothing but this for most of their user interface, served by a backend (preferably REST) using whatever language you like.\n\nRuby/sinatra would make for a nice backend stack if you want to have a lightweight, rather traditional solution. Java/Hibernate/Spring would be the enterprisey choice, and by having a different frontend you'll avoid the hurt the usual MVC systems encourage. Stuff like Terracotta and NIO is rather great for big applications. Optionally, add clojure for easier wiring.\n\nFor something more mind-blowing, Erlang/Mnesia could definitely be worthwile.","full_conversation":[{"role":"OP","user_id":"anon_7a6825728e62dac9","comment_id":"7k4k1","kind":"post","text":"OK Reddit, everyone takes the piss out of PHP. What programming language should I learn instead to create web apps?","timestamp":"2008-12-17T17:29:33+00:00","score":0},{"role":"answerer","user_id":"anon_e666be39437448ca","comment_id":"c06vi8z","kind":"comment","text":"Never mind the language, get something with a better model of programming web applications. Current PHP frameworks show that this seems to be the major problem, they try to use traditional MVC approaches and have to go against the language quite often.\n\nJavaScript should definitely be in your portfolia, as lots of apps nowadays can use nothing but this for most of their user interface, served by a backend (preferably REST) using whatever language you like.\n\nRuby/sinatra would make for a nice backend stack if you want to have a lightweight, rather traditional solution. Java/Hibernate/Spring would be the enterprisey choice, and by having a different frontend you'll avoid the hurt the usual MVC systems encourage. Stuff like Terracotta and NIO is rather great for big applications. Optionally, add clojure for easier wiring.\n\nFor something more mind-blowing, Erlang/Mnesia could definitely be worthwile.","timestamp":"2008-12-17T18:03:07+00:00","score":1},{"role":"OP","user_id":"anon_7a6825728e62dac9","comment_id":"c06vkac","kind":"comment","text":"Thanks for your comment...\r\n\r\nWe use an MVC approach with PHP in house and i've also used Cake in the past. Your advice is good thought and i'd recommend learning to use an MVC approach to anyone who doesn't.\r\n\r\nI use JavaScript on a day to day basis so that's all good. On top of javascript i'd suggest looking at JQuery which will allow you to build amazing interfaces will very little effort.\r\n\r\nI'm really looking for a server side system.","timestamp":"2008-12-17T19:24:38+00:00","score":1},{"role":"answerer","user_id":"anon_e666be39437448ca","comment_id":"c06vl4y","kind":"comment","text":"I think the two main problems PHP has when you apply it to all parts of MVC is code organization and the execution model. So most frameworks end up using the front controller approach, and either paying the price in performance or going through some loops to ensure that it's still fast enough.\n\nNothing of that is actually inherent in the PHP *language*, but creating some kind of memory-retained application server is an ungrateful task, as this would really not play to PHP's strengths. \n\nUsing some kind of REST backend, retaining state wouldn't actually be neccessary, and with opcode caches you could actually apply enough abstraction without paying a huge price. This would be a good migration path for those shops employing a large number of PHP programmers.\n\nIf it's a backend system for a single person or small team, it's a matter of taste. I'd recommend playing around with some possible solutions. Make a single-page AJAX application, where the backend mainly has to provide JSON or XML messages, maybe a simple shop, a recipe collection or a wiki. Then just recreate the backend with some likely candidates.\n\nA lot of PHP5 programmers are easily able to wrap their minds around Java, as the object-model is pretty similar and it mostly uses the same kinds of loops. The problem is that most books go straight for the heavy-weight environments, which kinda clouds the issue. The MVC frameworks are rather huge, so there's way too much to learn at the beginning. If you're going for a REST approach, use something like Restlet or Jersey, this will make the backend that much easier. Maybe start out with coding the SQL manually in JDB and migrate to Hibernate after everything else comes together.\n\nI've already mentioned Ruby and Sinatra. Coupled with Sequel, this is a really leightweight solution. It almost makes one feel guilty about the size of the code involved... Avoid Rails, as again, this kinda clouds the issue whether the language is suitable or just the framework.\n\nErlang and Mnesia is the odd duck here, some people are kinda enlightened after trying out functional languages, others just don't see the point. It is definitely worth trying, but not as the first option and surely not when you're in a hurry.","timestamp":"2008-12-17T20:00:51+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7a6825728e62dac9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e666be39437448ca","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06vi8z","thanks_reply_id":"c06vkac","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_a10c75bd192d0cb6","answerer_user_id":"anon_c4296d8e193cf31e","subreddit":"programming","timestamp":"2008-12-18T17:49:05+00:00","post_id":"7kda0","question":"Have you made PDF files with hi-dpi images using PHP?","preferred_answer":"I'm not sure how well it handles hi-dpi images, but where I work we use Jasper Reports for all our PDF needs. It's java based, but you just link to the right place and it generates the report automatically. Worth a look.","full_conversation":[{"role":"OP","user_id":"anon_a10c75bd192d0cb6","comment_id":"7kda0","kind":"post","text":"Have you made PDF files with hi-dpi images using PHP?","timestamp":"2008-12-18T17:49:05+00:00","score":0},{"role":"answerer","user_id":"anon_c4296d8e193cf31e","comment_id":"9tw","kind":"comment","text":"I'm not sure how well it handles hi-dpi images, but where I work we use Jasper Reports for all our PDF needs. It's java based, but you just link to the right place and it generates the report automatically. Worth a look.","timestamp":"2008-12-18T17:54:25+00:00","score":1},{"role":"OP","user_id":"anon_a10c75bd192d0cb6","comment_id":"cd4","kind":"comment","text":"Thanks for the pointer but the environment I'm in is bound to PHP. Fun.","timestamp":"2008-12-18T19:43:03+00:00","score":1},{"role":"answerer","user_id":"anon_c4296d8e193cf31e","comment_id":"cgl","kind":"comment","text":"You call the Jasper Report from within PHP, all you need is the Java Path and you're done. [This](http://www.rjohnson.id.au/wordpress/2007/10/27/bullet-proof-jasper-reports-and-php/) has an example, but I don't have time at the moment to hunt for a better one.","timestamp":"2008-12-18T19:47:21+00:00","score":1},{"role":"OP","user_id":"anon_a10c75bd192d0cb6","comment_id":"l7p","kind":"comment","text":"Ended up putting the image into a PDF and using Zend to load it in a put text on top. Thanks for the suggestion but this particular problem is solved.","timestamp":"2008-12-19T02:37:56+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a10c75bd192d0cb6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c4296d8e193cf31e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"9tw","thanks_reply_id":"cd4","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_2dad3a11d57828df","answerer_user_id":"anon_02ea4bb125ae211c","subreddit":"programming","timestamp":"2009-01-08T01:18:14+00:00","post_id":"7o5hv","question":"200 students, divide into 10 classes of 20. Balance for gender, ethnicity, ability level, other factors. How would you do it?","preferred_answer":"Gotcha. This is a well understood problem in experimental design. What you're looking for is called Block Tools: [http://cran.r-project.org/web/packages/blockTools/blockTools.pdf](http://cran.r-project.org/web/packages/blockTools/blockTools.pdf). It's an R package that will create the groups.","full_conversation":[{"role":"OP","user_id":"anon_2dad3a11d57828df","comment_id":"7o5hv","kind":"post","text":"200 students, divide into 10 classes of 20. Balance for gender, ethnicity, ability level, other factors. How would you do it?","timestamp":"2009-01-08T01:18:14+00:00","score":23},{"role":"answerer","user_id":"anon_02ea4bb125ae211c","comment_id":"c06wrl6","kind":"comment","text":"Gotcha. This is a well understood problem in experimental design. What you're looking for is called Block Tools: [http://cran.r-project.org/web/packages/blockTools/blockTools.pdf](http://cran.r-project.org/web/packages/blockTools/blockTools.pdf). It's an R package that will create the groups.","timestamp":"2009-01-08T19:02:21+00:00","score":4},{"role":"OP","user_id":"anon_2dad3a11d57828df","comment_id":"c06wse8","kind":"comment","text":"Thanks dggoldst. Do you have any other references on the underlying technique? I confess I'm not familiar with the domain, so the terminology is a challenge.","timestamp":"2009-01-08T19:29:10+00:00","score":1},{"role":"answerer","user_id":"anon_02ea4bb125ae211c","comment_id":"c06x0d0","kind":"comment","text":"Kefex, sure, check out this paper [\nOptimal multivariate matching before randomization](http://biostatistics.oxfordjournals.org/cgi/reprint/5/2/263) by Greevy, Lu, Silber, & Rosenbaum. It includes a case study. This paper is a very [in depth treatment with examples](http://sekhon.berkeley.edu/papers/MatchingJSS.pdf).","timestamp":"2009-01-08T23:57:14+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2dad3a11d57828df","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_02ea4bb125ae211c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c06wrl6","thanks_reply_id":"c06wse8","post_score":23,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_86943c5b279b701e","answerer_user_id":"anon_a381963ffe71cc8d","subreddit":"programming","timestamp":"2009-01-14T23:55:46+00:00","post_id":"7ps9w","question":"Which for a newb to learn? I like what I know of Python, but VB would be useful in my work.","preferred_answer":"I agree with that. It's like learning a verbal language, it's hard to do unless you are actively practicing it.","full_conversation":[{"role":"OP","user_id":"anon_86943c5b279b701e","comment_id":"7ps9w","kind":"post","text":"Which for a newb to learn? I like what I know of Python, but VB would be useful in my work.","timestamp":"2009-01-14T23:55:46+00:00","score":0},{"role":"answerer","user_id":"anon_a381963ffe71cc8d","comment_id":"c071lq6","kind":"comment","text":"I agree with that. It's like learning a verbal language, it's hard to do unless you are actively practicing it.","timestamp":"2009-01-15T00:05:06+00:00","score":0},{"role":"OP","user_id":"anon_86943c5b279b701e","comment_id":"c071njc","kind":"comment","text":"Probably VB then. Thanks. \nIt wont ruin my brain will it?","timestamp":"2009-01-15T01:16:20+00:00","score":1},{"role":"answerer","user_id":"anon_a381963ffe71cc8d","comment_id":"c071o8v","kind":"comment","text":"The only problem with using VB is that you can no longer call yourself a programmer.","timestamp":"2009-01-15T01:46:20+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_86943c5b279b701e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a381963ffe71cc8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c071lq6","thanks_reply_id":"c071njc","post_score":0,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_403290e4ffcfabf2","answerer_user_id":"anon_6288347aec11da27","subreddit":"programming","timestamp":"2009-01-19T18:35:50+00:00","post_id":"7qvgt","question":"Can you recommend a book on game physics in 2d?","preferred_answer":"Physics for game developers by Davig Bourg","full_conversation":[{"role":"OP","user_id":"anon_403290e4ffcfabf2","comment_id":"7qvgt","kind":"post","text":"Can you recommend a book on game physics in 2d?","timestamp":"2009-01-19T18:35:50+00:00","score":31},{"role":"answerer","user_id":"anon_6288347aec11da27","comment_id":"c0752yu","kind":"comment","text":"Physics for game developers by Davig Bourg","timestamp":"2009-01-19T19:33:40+00:00","score":7},{"role":"OP","user_id":"anon_403290e4ffcfabf2","comment_id":"c075vla","kind":"comment","text":"I have ordered this book. This is exactly what I was looking for. I am not math addict, so I'll have to learn while I read. A novel idea, huh?","timestamp":"2009-01-20T19:29:50+00:00","score":1},{"role":"answerer","user_id":"anon_6288347aec11da27","comment_id":"c075vmt","kind":"comment","text":"The math is not difficult at all, and is backed up with good old C code. I think we programmers better understand with code.","timestamp":"2009-01-20T19:31:17+00:00","score":1},{"role":"OP","user_id":"anon_403290e4ffcfabf2","comment_id":"c075vpu","kind":"comment","text":"Agreed","timestamp":"2009-01-20T19:33:56+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_403290e4ffcfabf2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6288347aec11da27","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0752yu","thanks_reply_id":"c075vla","post_score":31,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_34efc6d3abf4dead","answerer_user_id":"anon_cb3195e852b962aa","subreddit":"programming","timestamp":"2009-01-27T01:23:08+00:00","post_id":"7sn0c","question":"hey reddit, kudos for switching to jQuery, I love it too... but can you please fix Socialite or let the author know that it doesn't longer works?","preferred_answer":"Hey redditor, kudos for using Socialite, I love it too... but can you please spend a bit of time googling or searching on reddit to find out there's a version that works?\n\nhttp://www.reddit.com/r/socialite/comments/7o7xm/socialite_124pre4_released_now_with_full_support/","full_conversation":[{"role":"OP","user_id":"anon_34efc6d3abf4dead","comment_id":"7sn0c","kind":"post","text":"hey reddit, kudos for switching to jQuery, I love it too... but can you please fix Socialite or let the author know that it doesn't longer works?","timestamp":"2009-01-27T01:23:08+00:00","score":2},{"role":"answerer","user_id":"anon_cb3195e852b962aa","comment_id":"c07aluy","kind":"comment","text":"Hey redditor, kudos for using Socialite, I love it too... but can you please spend a bit of time googling or searching on reddit to find out there's a version that works?\n\nhttp://www.reddit.com/r/socialite/comments/7o7xm/socialite_124pre4_released_now_with_full_support/","timestamp":"2009-01-27T03:01:49+00:00","score":0},{"role":"OP","user_id":"anon_34efc6d3abf4dead","comment_id":"c07aw6s","kind":"comment","text":"thanks for you irony, but I searched and don't found anything... anyway thanks for the link","timestamp":"2009-01-27T14:48:05+00:00","score":-1},{"role":"answerer","user_id":"anon_cb3195e852b962aa","comment_id":"c07awot","kind":"comment","text":"Apparently not all that hard:\n\nhttp://flickr.com/photos/wfarr/3230866063/sizes/o/\n\nAlso, down-voting people for stating the blatantly obvious (search before asking)? Is this really what proggit has come to?","timestamp":"2009-01-27T15:12:49+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_34efc6d3abf4dead","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cb3195e852b962aa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c07aluy","thanks_reply_id":"c07aw6s","post_score":2,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_c198335ca93f3c44","answerer_user_id":"anon_1ba34b81f6f13e75","subreddit":"programming","timestamp":"2009-01-27T17:21:47+00:00","post_id":"7stcv","question":"I'm a developer and I have been programming since 1981, but I learned BASIC first and suck at OOP. What's the best source for total beginner info on Eclipse and Java?","preferred_answer":"OMG... Have you tried Googling it (java and eclipse for total beginners)?? \n\nHere's exactly what you are looking for... Video tutorials.\n\nhttp://eclipsetutorial.sourceforge.net/totalbeginner.html","full_conversation":[{"role":"OP","user_id":"anon_c198335ca93f3c44","comment_id":"7stcv","kind":"post","text":"I'm a developer and I have been programming since 1981, but I learned BASIC first and suck at OOP. What's the best source for total beginner info on Eclipse and Java?","timestamp":"2009-01-27T17:21:47+00:00","score":0},{"role":"answerer","user_id":"anon_1ba34b81f6f13e75","comment_id":"c07bb1t","kind":"comment","text":"OMG... Have you tried Googling it (java and eclipse for total beginners)?? \n\nHere's exactly what you are looking for... Video tutorials.\n\nhttp://eclipsetutorial.sourceforge.net/totalbeginner.html","timestamp":"2009-01-28T00:24:15+00:00","score":2},{"role":"OP","user_id":"anon_c198335ca93f3c44","comment_id":"c07bfnl","kind":"comment","text":"Thanks. I appreciate the urge to get all high and mighty about my apparent lack of ability to google, but I genuinely thought this might be something others would be interested in as well.\n\nApparently not.\n\nEdit: The good news is that my failed submission attempt wasn't a lame Eminem video on youtube and I didn't try submitting it again the first time nobody cared.","timestamp":"2009-01-28T04:02:03+00:00","score":1},{"role":"answerer","user_id":"anon_1ba34b81f6f13e75","comment_id":"c07c3yy","kind":"comment","text":":O ... you really got me there :P. \n\nJust wanted to point you out what first reflex you should probably have as a programmer... Although I understand your point.","timestamp":"2009-01-29T00:46:45+00:00","score":1},{"role":"OP","user_id":"anon_c198335ca93f3c44","comment_id":"c07caon","kind":"comment","text":"<3\n<3\n\nBFF?","timestamp":"2009-01-29T06:40:19+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c198335ca93f3c44","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1ba34b81f6f13e75","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c07bb1t","thanks_reply_id":"c07bfnl","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_becf7302ab608d5c","answerer_user_id":"anon_1a8905677b5e6d76","subreddit":"programming","timestamp":"2009-02-06T23:54:24+00:00","post_id":"7vi2z","question":"My boss wants to \"hand roll\" his own WSDL file and then have me create a Web Service. I want to create the business logic and have NetBeans create the WSDL. Which one of us is less wrong?","preferred_answer":"I'm bucking the majority opinion here but your boss is saying \"let me specify the interface and you write the service that offers it\" while you are saying \"let me write the service and the interface will fall out of it\".\n\nGiven that it sounds like your your boss knows exactly what the caller needs, I would suggest going his way unless you know for a fact that your generated WSDL is 100% compatible with his requirement.\n\nEDIT: you can compromise (or test) by taking his WSDL and comparing it to what comes out of your generator. If they don't match, he is not the one that's wrong if you catch my drift.","full_conversation":[{"role":"OP","user_id":"anon_becf7302ab608d5c","comment_id":"7vi2z","kind":"post","text":"My boss wants to \"hand roll\" his own WSDL file and then have me create a Web Service. I want to create the business logic and have NetBeans create the WSDL. Which one of us is less wrong?","timestamp":"2009-02-06T23:54:24+00:00","score":0},{"role":"answerer","user_id":"anon_1a8905677b5e6d76","comment_id":"c07itol","kind":"comment","text":"I'm bucking the majority opinion here but your boss is saying \"let me specify the interface and you write the service that offers it\" while you are saying \"let me write the service and the interface will fall out of it\".\n\nGiven that it sounds like your your boss knows exactly what the caller needs, I would suggest going his way unless you know for a fact that your generated WSDL is 100% compatible with his requirement.\n\nEDIT: you can compromise (or test) by taking his WSDL and comparing it to what comes out of your generator. If they don't match, he is not the one that's wrong if you catch my drift.","timestamp":"2009-02-07T02:38:28+00:00","score":7},{"role":"OP","user_id":"anon_becf7302ab608d5c","comment_id":"c07iusp","kind":"comment","text":"Thanks for the replys. I realize you don't have the whole story. Sheesh that would be boring as hell.\r\n\r\nTo clarify. There is an existing EJB.\r\n\r\nHere is the honest to goodness details.\r\n\r\nI am to relay to the boss how the EJB works, it's inputs and outputs.\r\n\r\nHe will create a WSDL.\r\n\r\nI will use the WSDL to create a Web Service (in netbeans) to expose the EJB.\r\n\r\nAll I want to do is right click on the EJB method and say \"create web service\".\r\n\r\nThat is the truth.","timestamp":"2009-02-07T03:41:56+00:00","score":2},{"role":"answerer","user_id":"anon_1a8905677b5e6d76","comment_id":"c07iwvo","kind":"comment","text":"I'm not an expert on the tools but from what you've said, it sounds trivial (<4 hr) to create that service including the WSDL. If so, there is really no harm in including the autogenerated WSDL as part of the documentation that he has requested to specify the actual WSDL. This would also help to identify any differences between what the bean currently does and what he needs it to do.","timestamp":"2009-02-07T05:56:37+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_becf7302ab608d5c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1a8905677b5e6d76","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c07itol","thanks_reply_id":"c07iusp","post_score":0,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_22d2af7471bf4515","answerer_user_id":"anon_edac16a67be5aa08","subreddit":"programming","timestamp":"2009-02-18T07:32:11+00:00","post_id":"7ya5e","question":"Hey proggit! Can you figure out why curl does not work with this page?","preferred_answer":"Alright, I have it. \n\nThe server is looking for an accept-language header;\n\n Accept-Language: en-us,en;q=0.5\n\nworks for me\n\nEDIT:\n curl -H \"Accept-Language: en-us,en;q=0.5\" http://www.diasorin.com/en/investors/press\ntoo","full_conversation":[{"role":"OP","user_id":"anon_22d2af7471bf4515","comment_id":"7ya5e","kind":"post","text":"Hey proggit! Can you figure out why curl does not work with this page?","timestamp":"2009-02-18T07:32:11+00:00","score":0},{"role":"answerer","user_id":"anon_edac16a67be5aa08","comment_id":"c07qit1","kind":"comment","text":"Alright, I have it. \n\nThe server is looking for an accept-language header;\n\n Accept-Language: en-us,en;q=0.5\n\nworks for me\n\nEDIT:\n curl -H \"Accept-Language: en-us,en;q=0.5\" http://www.diasorin.com/en/investors/press\ntoo","timestamp":"2009-02-18T08:18:59+00:00","score":1},{"role":"OP","user_id":"anon_22d2af7471bf4515","comment_id":"c07qiuw","kind":"comment","text":"Thanks! :D","timestamp":"2009-02-18T08:22:50+00:00","score":1},{"role":"answerer","user_id":"anon_edac16a67be5aa08","comment_id":"c07qpru","kind":"comment","text":"anytime!","timestamp":"2009-02-18T16:20:46+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_22d2af7471bf4515","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_edac16a67be5aa08","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c07qit1","thanks_reply_id":"c07qiuw","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_38d374a0227ccbd9","answerer_user_id":"anon_1a477758ff6a5f89","subreddit":"programming","timestamp":"2009-02-18T14:03:30+00:00","post_id":"7ycgs","question":"Noob with no programming experience AT ALL just got a TEENSY USB dev. board. Trying to get it to turn on an LED. Any Redditors feeling mentor-ly today?","preferred_answer":"I would start looking for example projects.\n\nI think they recommend using winavr with it. Never used it but I think it allows you to edit source code and program the device.\n\nhttp://sourceforge.net/project/showfiles.php?group_id=68108\n\nI know you just bought this, but if you want easy you should get an arduino. They have lots of support in the forums. http://arduino.cc\n\n\n\nEDIT: I just noticed you can install some code to the teensy that will let you use it as if it were an arduino.\nhttp://www.pjrc.com/teensy/teensyduino.html","full_conversation":[{"role":"OP","user_id":"anon_38d374a0227ccbd9","comment_id":"7ycgs","kind":"post","text":"Noob with no programming experience AT ALL just got a TEENSY USB dev. board. Trying to get it to turn on an LED. Any Redditors feeling mentor-ly today?","timestamp":"2009-02-18T14:03:30+00:00","score":1},{"role":"answerer","user_id":"anon_1a477758ff6a5f89","comment_id":"c07qn3y","kind":"comment","text":"I would start looking for example projects.\n\nI think they recommend using winavr with it. Never used it but I think it allows you to edit source code and program the device.\n\nhttp://sourceforge.net/project/showfiles.php?group_id=68108\n\nI know you just bought this, but if you want easy you should get an arduino. They have lots of support in the forums. http://arduino.cc\n\n\n\nEDIT: I just noticed you can install some code to the teensy that will let you use it as if it were an arduino.\nhttp://www.pjrc.com/teensy/teensyduino.html","timestamp":"2009-02-18T14:29:02+00:00","score":2},{"role":"OP","user_id":"anon_38d374a0227ccbd9","comment_id":"c07qnkb","kind":"comment","text":"Cool. Thanks. I just noticed the teensyduino myself. Looking into it now...","timestamp":"2009-02-18T14:50:04+00:00","score":2},{"role":"answerer","user_id":"anon_1a477758ff6a5f89","comment_id":"c07rldu","kind":"comment","text":"You should also have a look at these. They're $20 as well.\n\nhttp://en.wikipedia.org/wiki/AVR_Butterfly","timestamp":"2009-02-19T17:41:32+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_38d374a0227ccbd9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1a477758ff6a5f89","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c07qn3y","thanks_reply_id":"c07qnkb","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_ff0cfe98a5f836d8","answerer_user_id":"anon_fc949df5670da01f","subreddit":"programming","timestamp":"2009-02-27T05:08:23+00:00","post_id":"80o9t","question":"Is there anything on the internet to help me a complete programming noob understand coding?","preferred_answer":"As silly as it sounds, for some basics check out yootoob and googlevideo - after that just do a google search for programming documents (there's actually a whoooooole lot of info out there) If youre still stuck let me know","full_conversation":[{"role":"OP","user_id":"anon_ff0cfe98a5f836d8","comment_id":"80o9t","kind":"post","text":"Is there anything on the internet to help me a complete programming noob understand coding?","timestamp":"2009-02-27T05:08:23+00:00","score":0},{"role":"answerer","user_id":"anon_fc949df5670da01f","comment_id":"c07xbqa","kind":"comment","text":"As silly as it sounds, for some basics check out yootoob and googlevideo - after that just do a google search for programming documents (there's actually a whoooooole lot of info out there) If youre still stuck let me know","timestamp":"2009-02-27T05:13:25+00:00","score":2},{"role":"OP","user_id":"anon_ff0cfe98a5f836d8","comment_id":"c07xc58","kind":"comment","text":"ok thanks alot man I'll give that a try","timestamp":"2009-02-27T05:34:02+00:00","score":0},{"role":"answerer","user_id":"anon_fc949df5670da01f","comment_id":"c07xdv5","kind":"comment","text":"[This might help](http://computer.howstuffworks.com/computer-programming-channel.htm) I'm not too sure what kind of noob you are so this is a pretty basic launchpad for a few different branches of programming. All the best, don't get overwhelmed and if you want someone to do some alpha-testing down the track let me know! (Google alpha testing):P","timestamp":"2009-02-27T07:08:42+00:00","score":1},{"role":"OP","user_id":"anon_ff0cfe98a5f836d8","comment_id":"c07xiwk","kind":"comment","text":"well I'm looking for some one knows visual basic to help with our game","timestamp":"2009-02-27T14:24:35+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ff0cfe98a5f836d8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fc949df5670da01f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c07xbqa","thanks_reply_id":"c07xc58","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_7440fca0edf8d308","answerer_user_id":"anon_1bf4efece1d5423d","subreddit":"programming","timestamp":"2009-03-02T06:06:27+00:00","post_id":"81ce7","question":"JQuery Help Newbie: How To Iterate Table Rows?","preferred_answer":"Yeah, you're right, now that I found his original post. I just read the title of the post, not his comment inside it.\n\nBut hey, you taught me something in your post. Didn't realize I could do it like that.\n\nSo, he needs to find all rows with checked checkboxes in a table, and iterate on those column values.\n\n $('#mytable input:checked').parent().parent().children('TD').each(function() {\n alert('value=' + $(this).val());\n });","full_conversation":[{"role":"OP","user_id":"anon_7440fca0edf8d308","comment_id":"81ce7","kind":"post","text":"JQuery Help Newbie: How To Iterate Table Rows?","timestamp":"2009-03-02T06:06:27+00:00","score":0},{"role":"answerer","user_id":"anon_1bf4efece1d5423d","comment_id":"c07zbj7","kind":"comment","text":"Yeah, you're right, now that I found his original post. I just read the title of the post, not his comment inside it.\n\nBut hey, you taught me something in your post. Didn't realize I could do it like that.\n\nSo, he needs to find all rows with checked checkboxes in a table, and iterate on those column values.\n\n $('#mytable input:checked').parent().parent().children('TD').each(function() {\n alert('value=' + $(this).val());\n });","timestamp":"2009-03-02T06:47:14+00:00","score":2},{"role":"OP","user_id":"anon_7440fca0edf8d308","comment_id":"c0809s7","kind":"comment","text":"Thanks. You were the closest. Here's what I was able to get working:\n\n var updateStatus = function() {\n $('#queue input:checked').parent().parent().each(function() {\n //debugger;\n var id = this.children(1).innerText;\n var type = this.children(2).innerText;\n var amount = this.children(3).innerText;\n var createddtm = this.children(4).innerText;\n this.children(5).innerHTML = \"Processing...\";\n });\n }","timestamp":"2009-03-03T14:25:41+00:00","score":2},{"role":"answerer","user_id":"anon_1bf4efece1d5423d","comment_id":"c080alr","kind":"comment","text":"Excellent. And I guess that's why someone downmodded me to 0? Very strange. Could use a boost, I guess.","timestamp":"2009-03-03T15:07:32+00:00","score":2},{"role":"OP","user_id":"anon_7440fca0edf8d308","comment_id":"c080gfv","kind":"comment","text":"Boosted :) I never care about those things anymore. They used to mean something but now I believe that if people dont like something you have said, they just click your name link, and downmod anything you have posted in the last month, especially if it involves Israel or Palestine :)","timestamp":"2009-03-03T18:44:23+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7440fca0edf8d308","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1bf4efece1d5423d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c07zbj7","thanks_reply_id":"c0809s7","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_ad7b742ccd3bfb86","answerer_user_id":"anon_c7065a3407012a8a","subreddit":"programming","timestamp":"2009-03-10T19:51:02+00:00","post_id":"83m8b","question":"shared mutable state but with actors?","preferred_answer":"I think you are conflating two separate issues here. One is the concurrency management and the other is transaction management. Logical transactions need to be operated on together whether you're using message passing or STM. \nYour bank account example has to do with transactions because you're saying one account has to be debited when another account is credited at the same time to preserve the consistency of the system. If the debit or credit fail to occur, then both these operations need to be thrown out or retried as a single unit.\n\nHowever, when you start talking about critical sections, it's a different problem. Here, two separate blocks of code need to use the same resource or to debit the same bank account at precisely the same time. When this situation arises, you have to find a way to make sure that these two processes each get access to the bank account and are able to accomplish their task without conflicting with one another. \n\nCritical sections in the STM are a problem because one thread still has to wait for other threads to release the resource. Yes, STM's handle the locking and releasing of resources for you, but this imposes a significant performance penalty when lots of threads have to wait to sequentially access a common resource.","full_conversation":[{"role":"OP","user_id":"anon_ad7b742ccd3bfb86","comment_id":"83m8b","kind":"post","text":"shared mutable state but with actors?","timestamp":"2009-03-10T19:51:02+00:00","score":0},{"role":"answerer","user_id":"anon_c7065a3407012a8a","comment_id":"c086kdk","kind":"comment","text":"I think you are conflating two separate issues here. One is the concurrency management and the other is transaction management. Logical transactions need to be operated on together whether you're using message passing or STM. \nYour bank account example has to do with transactions because you're saying one account has to be debited when another account is credited at the same time to preserve the consistency of the system. If the debit or credit fail to occur, then both these operations need to be thrown out or retried as a single unit.\n\nHowever, when you start talking about critical sections, it's a different problem. Here, two separate blocks of code need to use the same resource or to debit the same bank account at precisely the same time. When this situation arises, you have to find a way to make sure that these two processes each get access to the bank account and are able to accomplish their task without conflicting with one another. \n\nCritical sections in the STM are a problem because one thread still has to wait for other threads to release the resource. Yes, STM's handle the locking and releasing of resources for you, but this imposes a significant performance penalty when lots of threads have to wait to sequentially access a common resource.","timestamp":"2009-03-12T00:47:01+00:00","score":2},{"role":"OP","user_id":"anon_ad7b742ccd3bfb86","comment_id":"c086lpd","kind":"comment","text":"oh, right, i think that helped! thank you.\n\nso there are some things which are done in shared-mutable-state code that use locks and things which are only there because of the issue of sharing that resource. those locks go away in the actor model because the actor sequences things safely.\n\nwhich doesn't magically take care of 'larger' operations which logically have to go together for some reason -- those would need some kind of transaction in either approach (e.g. mnesia i guess in erlang).","timestamp":"2009-03-12T01:49:31+00:00","score":1},{"role":"answerer","user_id":"anon_c7065a3407012a8a","comment_id":"c0870xs","kind":"comment","text":"You're mostly correct in your description here.\n\nActors don't so much sequence things correctly as they protect their internal state from direct access by other actors. Two threads that want to update an object in memory or to use a resource such as a file handle can only do so indirectly by sending a message. The message recipient changes its internal variables or accesses a resource it manages on behalf of the sender. If the message calls for a response, the recipient will send back a message in reply with updated information after executing such a change.\n\nBecause a message recipient can only do one thing at a time, the operations are sequenced and conflicts are avoided without locks, but there are no ordering guarantees of when an action will execute as a result of a message. An actor simply reads messages from a queue and processes them (out of order processing is not prohibited).\n\nSystems built out of actors can suffer from the same sorts of 'critical region' problems as STMs. If many parts of the system rely on sending messages to one or a few actors to perform some action or actions. Then the sequential processing of messages by that actor becomes a bottleneck to the system. This is no different than an STM-system heavily relying on frequent manipulation to one or several key objects in the system - each change requires those objects to be locked, an action performed, and then unlocked. Actors here should be a bit more efficient because the locking and unlocking can be expensive.","timestamp":"2009-03-12T17:02:00+00:00","score":1},{"role":"OP","user_id":"anon_ad7b742ccd3bfb86","comment_id":"c0876sn","kind":"comment","text":"(yes, by sequence i didn't intend to imply the actor knew anything special about order, only that it prevents the two things from interfering and screwing up the resource. thanks for the clarification.)\n\nso what do people do about multiple-resource coordination in actor systems? just use mnesia?","timestamp":"2009-03-12T20:24:48+00:00","score":1},{"role":"answerer","user_id":"anon_c7065a3407012a8a","comment_id":"c0882fr","kind":"comment","text":"Have a different actor each manage a single resource. Remember in these systems spawning off new threads is fairly cheap.","timestamp":"2009-03-13T23:12:17+00:00","score":1},{"role":"OP","user_id":"anon_ad7b742ccd3bfb86","comment_id":"c089u8m","kind":"comment","text":"sorry, i'm not speaking well - i meant the case that one resource has multiple users to be coordinated e.g. complicated financial transaction, more than the need for lots of actors (because i agree and understand that the actors are meant to be cheap enough).","timestamp":"2009-03-16T20:32:08+00:00","score":1},{"role":"answerer","user_id":"anon_c7065a3407012a8a","comment_id":"c08art7","kind":"comment","text":"In this situation, you do not allow any of your users to interact directly with the shared resource. Instead, you encapsulate the resource by a single actor. All of your users simply send messages to the actor managing the shared resource. The shared resource manager in turn processes incoming messages and makes changes to the resource it protects on behalf of all other actors in the system. It isn't a perfect solution, but it is a bit simpler than the alternative approaches.","timestamp":"2009-03-17T23:20:00+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_ad7b742ccd3bfb86","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c7065a3407012a8a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c086kdk","thanks_reply_id":"c086lpd","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_339c93c15d8b300d","answerer_user_id":"anon_006ef77e1afdb6c1","subreddit":"programming","timestamp":"2009-03-12T14:55:11+00:00","post_id":"8447k","question":"Apache/Subversion Question: \"svnsync: Error resolving case of: http:\\\\xxx.xxx.xxx\" What does it mean!?","preferred_answer":"Looks like a bad link to me.\n\n1) It's \"http:**//**\".\n\n2) \"http://xxx.xxx.xxx\" is not a valid URL.","full_conversation":[{"role":"OP","user_id":"anon_339c93c15d8b300d","comment_id":"8447k","kind":"post","text":"Apache/Subversion Question: \"svnsync: Error resolving case of: http:\\\\xxx.xxx.xxx\" What does it mean!?","timestamp":"2009-03-12T14:55:11+00:00","score":0},{"role":"answerer","user_id":"anon_006ef77e1afdb6c1","comment_id":"c086xs6","kind":"comment","text":"Looks like a bad link to me.\n\n1) It's \"http:**//**\".\n\n2) \"http://xxx.xxx.xxx\" is not a valid URL.","timestamp":"2009-03-12T15:05:36+00:00","score":3},{"role":"OP","user_id":"anon_339c93c15d8b300d","comment_id":"c086xx6","kind":"comment","text":"heh...heh...I am ashamed. Thanks!","timestamp":"2009-03-12T15:10:37+00:00","score":2},{"role":"answerer","user_id":"anon_006ef77e1afdb6c1","comment_id":"c086xyr","kind":"comment","text":"I do what I can.\n\nINTERNET SUPERHERO AWWAAAAYYYYYYY!!!!!!","timestamp":"2009-03-12T15:12:06+00:00","score":2},{"role":"OP","user_id":"anon_339c93c15d8b300d","comment_id":"c086y5d","kind":"comment","text":"Ok, got another one.\nWhen I try to run the initialization I get:\n>svnsync: Couldn't get lock on destination repos after 10 attempts\n\n\nthey are two completely empty repos so they shouldn't be locked. I ran \n>svn propdel svn:sync-lock --revprop -r 0 \"http://xxx.xxx.xxx.xxx/ \nanyways, but I still get the same error.","timestamp":"2009-03-12T15:19:22+00:00","score":1},{"role":"answerer","user_id":"anon_006ef77e1afdb6c1","comment_id":"c086ygc","kind":"comment","text":"Give these a shot:\n\nsvn pdel --revprop -r 0 svn:sync-lock \n\nsvn pdel --revprop -r 0 svn:sync-lock --username ","timestamp":"2009-03-12T15:30:45+00:00","score":1},{"role":"OP","user_id":"anon_339c93c15d8b300d","comment_id":"c086yr7","kind":"comment","text":"Nada :(","timestamp":"2009-03-12T15:43:08+00:00","score":1},{"role":"answerer","user_id":"anon_006ef77e1afdb6c1","comment_id":"c086yup","kind":"comment","text":"Sorry man. I suggest google.","timestamp":"2009-03-12T15:46:19+00:00","score":1},{"role":"OP","user_id":"anon_339c93c15d8b300d","comment_id":"c086z1p","kind":"comment","text":"The Google let me down. I appreciate the help though :)","timestamp":"2009-03-12T15:53:18+00:00","score":1}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_339c93c15d8b300d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_006ef77e1afdb6c1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c086xs6","thanks_reply_id":"c086xx6","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_cfa9d2d3e4c218d1","answerer_user_id":"anon_4c9ba98ecef93998","subreddit":"programming","timestamp":"2009-03-18T11:28:00+00:00","post_id":"85kmv","question":"[Ask Proggit]: Fixed point or integer linear algebra in C/C++?","preferred_answer":"Are you sure this is what you want to do? The GSL is definitely not well optimized (depending on the size of the matrices, try an optimized Lapack/BLAS or something like Eigen2) and dense linear algebra can be very effectively put on a GPU.","full_conversation":[{"role":"OP","user_id":"anon_cfa9d2d3e4c218d1","comment_id":"85kmv","kind":"post","text":"[Ask Proggit]: Fixed point or integer linear algebra in C/C++?","timestamp":"2009-03-18T11:28:00+00:00","score":2},{"role":"answerer","user_id":"anon_4c9ba98ecef93998","comment_id":"c08b3bo","kind":"comment","text":"Are you sure this is what you want to do? The GSL is definitely not well optimized (depending on the size of the matrices, try an optimized Lapack/BLAS or something like Eigen2) and dense linear algebra can be very effectively put on a GPU.","timestamp":"2009-03-18T12:16:54+00:00","score":3},{"role":"OP","user_id":"anon_cfa9d2d3e4c218d1","comment_id":"c08b3qj","kind":"comment","text":"Thanks for the advice. I probably will try GPU at some stage.\n\nThis is a research project so it's a bit pie in the sky and I would like to investigate the FPGA solution as there is also potential for a lot of parallelism.\n\nI like the look of eigen2 though so I will have a look at that. Know anything about [ATLAS](http://math-atlas.sourceforge.net/)?","timestamp":"2009-03-18T12:45:25+00:00","score":1},{"role":"answerer","user_id":"anon_4c9ba98ecef93998","comment_id":"c08b3y7","kind":"comment","text":"ATLAS is okay as a default BLAS/Lapack, but it's performance is pretty bad on recent hardware. For tuned BLAS on x86(-64) look at MKL, ACML, and GOTO. With CUDA there is CUBLAS.\n\nBLAS/Lapack is definitely the wrong way to go for relatively small matrices. Eigen2 is a C++ template library that provides [remarkably](http://eigen.tuxfamily.org/index.php?title=Benchmark) competitive (relative to vendor BLAS) performance for large sizes and usually much better performance for small sizes.\n\nMaybe you can give more details about what you're doing, but from what you've said so far, I think your time would be better spent with CUDA.","timestamp":"2009-03-18T12:59:28+00:00","score":2},{"role":"OP","user_id":"anon_cfa9d2d3e4c218d1","comment_id":"c08b4to","kind":"comment","text":"Thankyou for the comprehensive and awesome advice.\n\nOk. So I have a system to optimise. This requires repeatedly (potentially many billions of iterations) solving a square system Ax=b. It's a dense system.\n\nThe problem I am investigating varies in size from 2x2 - 100x100. At the minute I'm using a QR\\_decomp and QR\\_solve from the GSL.\n\nI'm looking for potential real performance improvements in my simulation setup via a faster linear algebra library or GPU via CUBLAS. This is mostly interesting from a practical perspective as I can run my simulations hella faster.\n\nFrom the research perspective I am interested in a FPGA based solution. There is a lot of parallelism that can be exploited (i.e. solve the linear system many times with different inputs in parallel). This is why I want to try a transformation to fixed point to test the sensitivity of the system to a fixed point transformation and get a handle on potential performance gains.\n\nIs that any clearer? Thanks again for the advice.","timestamp":"2009-03-18T13:46:10+00:00","score":1},{"role":"answerer","user_id":"anon_4c9ba98ecef93998","comment_id":"c08b5im","kind":"comment","text":"I assume the matrices are different each time? If not, you should look into solving multiple right hand sides at once (huge performance gains are possible). If they are different every time, how are you creating them? Why are you using QR? It's more stable but slower than LU. For the small sizes (less than 20 or so) BLAS will typically be quite bad, the implementations just aren't tuned for such sizes.\n\nI'll guess that you can get an order of magnitude improvement by using better algorithms/implementation on your current hardware, and perhaps a couple more orders of magnitude by moving it to a GPU. I'm doubtful that a hypothetical FPGA implementation using fixed-point math would get anywhere close to this.","timestamp":"2009-03-18T14:18:38+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_cfa9d2d3e4c218d1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4c9ba98ecef93998","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08b3bo","thanks_reply_id":"c08b3qj","post_score":2,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_47eeb6faede384ac","answerer_user_id":"anon_3c4bbb1749540b6a","subreddit":"programming","timestamp":"2009-03-18T15:30:34+00:00","post_id":"85mln","question":"Ask Proggit: Please give me feedback on my side project, Mancala Time?","preferred_answer":"Absolutely, with so many free flash games sites that don't ask for registration, I wouldn't want to create an account on yours. Permit unregistered playing, but add features for registered users like high scores, stats, and playing against other registered users.","full_conversation":[{"role":"OP","user_id":"anon_47eeb6faede384ac","comment_id":"85mln","kind":"post","text":"Ask Proggit: Please give me feedback on my side project, Mancala Time?","timestamp":"2009-03-18T15:30:34+00:00","score":0},{"role":"answerer","user_id":"anon_3c4bbb1749540b6a","comment_id":"c08bbfo","kind":"comment","text":"Absolutely, with so many free flash games sites that don't ask for registration, I wouldn't want to create an account on yours. Permit unregistered playing, but add features for registered users like high scores, stats, and playing against other registered users.","timestamp":"2009-03-18T18:08:04+00:00","score":2},{"role":"OP","user_id":"anon_47eeb6faede384ac","comment_id":"c08bbvf","kind":"comment","text":"You convinced me. I just added a \"try it\" option. Thanks again for your feedback.","timestamp":"2009-03-18T18:25:14+00:00","score":1},{"role":"answerer","user_id":"anon_3c4bbb1749540b6a","comment_id":"c08bc23","kind":"comment","text":"No problem :) I'm going to try it now ;)","timestamp":"2009-03-18T18:33:03+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_47eeb6faede384ac","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3c4bbb1749540b6a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08bbfo","thanks_reply_id":"c08bbvf","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_7ee1d20a9b18d89e","answerer_user_id":"anon_65b5b8a58baa699a","subreddit":"programming","timestamp":"2009-03-20T22:19:39+00:00","post_id":"86ai3","question":"Ask progreddit: can I build an allocator on top of mmap()?","preferred_answer":"http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/malloc.c?rev=1.115;content-type=text%2Fx-cvsweb-markup this is OpenBSD's new malloc for 4.4 (actually this is the head for 4.5 so there have been evolutions since 4.4 release), there are several calls of mmap (7 through the MMAP and MMAPA macros) in it. I don't know jack about C so I don't know what those mmaps are used for, and if it's only part of the strategy but you can probably understand how it's used by reading the code.","full_conversation":[{"role":"OP","user_id":"anon_7ee1d20a9b18d89e","comment_id":"86ai3","kind":"post","text":"Ask progreddit: can I build an allocator on top of mmap()?","timestamp":"2009-03-20T22:19:39+00:00","score":2},{"role":"answerer","user_id":"anon_65b5b8a58baa699a","comment_id":"c08d1l5","kind":"comment","text":"http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/malloc.c?rev=1.115;content-type=text%2Fx-cvsweb-markup this is OpenBSD's new malloc for 4.4 (actually this is the head for 4.5 so there have been evolutions since 4.4 release), there are several calls of mmap (7 through the MMAP and MMAPA macros) in it. I don't know jack about C so I don't know what those mmaps are used for, and if it's only part of the strategy but you can probably understand how it's used by reading the code.","timestamp":"2009-03-20T22:29:48+00:00","score":2},{"role":"OP","user_id":"anon_7ee1d20a9b18d89e","comment_id":"c08d1tw","kind":"comment","text":"Thanks, this is why OpenBSD does it this way: http://en.wikipedia.org/wiki/Malloc#OpenBSD.27s_malloc","timestamp":"2009-03-20T22:42:27+00:00","score":2},{"role":"answerer","user_id":"anon_65b5b8a58baa699a","comment_id":"c08d2az","kind":"comment","text":"I note that under that there's a mention of [Hoard's allocator](http://en.wikipedia.org/wiki/Hoard_memory_allocator) which is also based on malloc but is focused on performances. Probably a better source of inspiration for your goal.","timestamp":"2009-03-20T23:04:19+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7ee1d20a9b18d89e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_65b5b8a58baa699a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08d1l5","thanks_reply_id":"c08d1tw","post_score":2,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_f9bd8127d115c7a3","answerer_user_id":"anon_b564eb33caa8100d","subreddit":"programming","timestamp":"2009-03-24T21:33:17+00:00","post_id":"8772f","question":"Is there any way to disable the \"page flow\" bookmark window in Safari 4?","preferred_answer":"It's in the preferences... change the drop down so that new windows and new tabs do not open by default to \"Top Sites\" and then if you want you can also go to View/Customize Toolbar and remove the icon for it from the toolbar as well. Doing those steps effectively removes the feature.","full_conversation":[{"role":"OP","user_id":"anon_f9bd8127d115c7a3","comment_id":"8772f","kind":"post","text":"Is there any way to disable the \"page flow\" bookmark window in Safari 4?","timestamp":"2009-03-24T21:33:17+00:00","score":0},{"role":"answerer","user_id":"anon_b564eb33caa8100d","comment_id":"c08fnyz","kind":"comment","text":"It's in the preferences... change the drop down so that new windows and new tabs do not open by default to \"Top Sites\" and then if you want you can also go to View/Customize Toolbar and remove the icon for it from the toolbar as well. Doing those steps effectively removes the feature.","timestamp":"2009-03-24T21:37:48+00:00","score":2},{"role":"OP","user_id":"anon_f9bd8127d115c7a3","comment_id":"c08fqfr","kind":"comment","text":"MANY THANKS, woodeye! Much appreciated.\n \nReddit rocks. :)","timestamp":"2009-03-24T23:13:27+00:00","score":1},{"role":"answerer","user_id":"anon_b564eb33caa8100d","comment_id":"c08frcu","kind":"comment","text":"You are very much welcome :)","timestamp":"2009-03-24T23:55:49+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f9bd8127d115c7a3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b564eb33caa8100d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08fnyz","thanks_reply_id":"c08fqfr","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_5eb0f5712d6dea9c","answerer_user_id":"anon_1039a46c82d342ef","subreddit":"programming","timestamp":"2009-03-31T21:35:57+00:00","post_id":"88zyd","question":"Django or Pylons - which should I go for?","preferred_answer":"We at reddit went with Pylons because it was easier to customize. We already knew the problem domain very well and knew exactly what we wanted to do.\n\nIf I were personally starting another site from scratch I'd probably go with Django: better documentation and more support.","full_conversation":[{"role":"OP","user_id":"anon_5eb0f5712d6dea9c","comment_id":"88zyd","kind":"post","text":"Django or Pylons - which should I go for?","timestamp":"2009-03-31T21:35:57+00:00","score":27},{"role":"answerer","user_id":"anon_1039a46c82d342ef","comment_id":"c08l0dp","kind":"comment","text":"We at reddit went with Pylons because it was easier to customize. We already knew the problem domain very well and knew exactly what we wanted to do.\n\nIf I were personally starting another site from scratch I'd probably go with Django: better documentation and more support.","timestamp":"2009-03-31T22:12:12+00:00","score":37},{"role":"OP","user_id":"anon_5eb0f5712d6dea9c","comment_id":"c08l0og","kind":"comment","text":"Thanks for the input - you don't think Django is overly 'bloated' then?\n\nEdit: This question is based on an article I read that stated too much is being put in to make things too simple.","timestamp":"2009-03-31T22:24:43+00:00","score":1},{"role":"answerer","user_id":"anon_1039a46c82d342ef","comment_id":"c08l1h5","kind":"comment","text":"Yes, I do think Django is overly complex, but I think it depends on the nature of the project whether that is a bad thing. If you already know what you're doing, it'll just get in your way. If you're just starting out, it might save you some time.","timestamp":"2009-03-31T22:57:28+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5eb0f5712d6dea9c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1039a46c82d342ef","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08l0dp","thanks_reply_id":"c08l0og","post_score":27,"answer_score":37,"preferred_answer_is_top_level":true}} {"user_id":"anon_ad7b742ccd3bfb86","answerer_user_id":"anon_7c506be0eeb11814","subreddit":"programming","timestamp":"2009-04-03T18:17:39+00:00","post_id":"89scp","question":"best syntax extension approach?","preferred_answer":"Also things like Katahdin:\n\nhttp://www.chrisseaton.com/katahdin/","full_conversation":[{"role":"OP","user_id":"anon_ad7b742ccd3bfb86","comment_id":"89scp","kind":"post","text":"best syntax extension approach?","timestamp":"2009-04-03T18:17:39+00:00","score":1},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c08myg6","kind":"comment","text":"Also things like Katahdin:\n\nhttp://www.chrisseaton.com/katahdin/","timestamp":"2009-04-03T19:05:33+00:00","score":2},{"role":"OP","user_id":"anon_ad7b742ccd3bfb86","comment_id":"c08n36j","kind":"comment","text":"hah! thanks, i was looking for that (couldn't recall the name) before posting on reddit :-)","timestamp":"2009-04-03T21:58:28+00:00","score":1},{"role":"answerer","user_id":"anon_7c506be0eeb11814","comment_id":"c08n724","kind":"comment","text":"One of these days (*shakes fist*) I finally will port that awesome project from C# to Java.","timestamp":"2009-04-04T01:16:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ad7b742ccd3bfb86","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7c506be0eeb11814","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08myg6","thanks_reply_id":"c08n36j","post_score":1,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_a5a1c9eb6ed98a60","answerer_user_id":"anon_28a42d0528feef73","subreddit":"programming","timestamp":"2009-04-06T03:57:40+00:00","post_id":"8a9bi","question":"Any tips for finding programming work using Elance, Guru, etc?","preferred_answer":"bid low :D","full_conversation":[{"role":"OP","user_id":"anon_a5a1c9eb6ed98a60","comment_id":"8a9bi","kind":"post","text":"Any tips for finding programming work using Elance, Guru, etc?","timestamp":"2009-04-06T03:57:40+00:00","score":0},{"role":"answerer","user_id":"anon_28a42d0528feef73","comment_id":"c08oke8","kind":"comment","text":"bid low :D","timestamp":"2009-04-06T10:32:50+00:00","score":1},{"role":"OP","user_id":"anon_a5a1c9eb6ed98a60","comment_id":"c08okhk","kind":"comment","text":"The bar seems to be set pretty low already thanks to competition from outside the US.","timestamp":"2009-04-06T10:41:21+00:00","score":3},{"role":"answerer","user_id":"anon_28a42d0528feef73","comment_id":"c08ov8x","kind":"comment","text":"well, what with the population of the US being less than 5% of the world population, that's to be expected.. :D\n\n[http://en.wikipedia.org/wiki/World_population](http://en.wikipedia.org/wiki/World_population)\n\nand hard as that may be, that's just natural behavior for any marketplace, at least for an auction house, unless someone comes up with better system/scales that can measure and reward your work by its quality..","timestamp":"2009-04-06T19:17:21+00:00","score":1},{"role":"OP","user_id":"anon_a5a1c9eb6ed98a60","comment_id":"c08owku","kind":"comment","text":"Well, until then I'm stuck with the problem of how to pay my bills :)","timestamp":"2009-04-06T20:03:49+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a5a1c9eb6ed98a60","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_28a42d0528feef73","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08oke8","thanks_reply_id":"c08okhk","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_71ec151aabcd9b22","answerer_user_id":"anon_eba93e5811cc57b1","subreddit":"programming","timestamp":"2009-04-07T21:10:02+00:00","post_id":"8arks","question":"Ask Proggit: Is a computer science degree really worth it?","preferred_answer":"I guess it's not really fair, but so far it's worked to my advantage. I have a CS degree, but I've never had much passion for programming. An impressive-looking degree is my only edge.","full_conversation":[{"role":"OP","user_id":"anon_71ec151aabcd9b22","comment_id":"8arks","kind":"post","text":"Ask Proggit: Is a computer science degree really worth it?","timestamp":"2009-04-07T21:10:02+00:00","score":0},{"role":"answerer","user_id":"anon_eba93e5811cc57b1","comment_id":"c08ptv2","kind":"comment","text":"I guess it's not really fair, but so far it's worked to my advantage. I have a CS degree, but I've never had much passion for programming. An impressive-looking degree is my only edge.","timestamp":"2009-04-07T22:00:27+00:00","score":2},{"role":"OP","user_id":"anon_71ec151aabcd9b22","comment_id":"c08pv9g","kind":"comment","text":"This is exactly my point. Shouldn't someone who absolutely loves programming, and who's just as good or better, be the one with your job, regardless of whether or not they dealt with college?","timestamp":"2009-04-07T22:58:56+00:00","score":2},{"role":"answerer","user_id":"anon_eba93e5811cc57b1","comment_id":"c08pw51","kind":"comment","text":"The \"... or better\" part is what should determine whether someone else should be the one with my job, not how much anyone loves programming. Anyway, I doubt anyone who really loves programming and is really good at it would want my job. It isn't that much programming, and the pay is mediocre. A degree can only get me so far.","timestamp":"2009-04-07T23:39:02+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_71ec151aabcd9b22","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_eba93e5811cc57b1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08ptv2","thanks_reply_id":"c08pv9g","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_1c3e2b625ba482c4","answerer_user_id":"anon_d31809b974ecb66a","subreddit":"programming","timestamp":"2009-04-09T17:35:21+00:00","post_id":"8bag7","question":"In The Game of Life, what is the minimum number of logic gates needed to implement a cell?","preferred_answer":"The author has put your solution in the article now, although he spelt the domain name wrong so it goes to a parked page.","full_conversation":[{"role":"OP","user_id":"anon_1c3e2b625ba482c4","comment_id":"8bag7","kind":"post","text":"In The Game of Life, what is the minimum number of logic gates needed to implement a cell?","timestamp":"2009-04-09T17:35:21+00:00","score":113},{"role":"answerer","user_id":"anon_d31809b974ecb66a","comment_id":"c08reca","kind":"comment","text":"The author has put your solution in the article now, although he spelt the domain name wrong so it goes to a parked page.","timestamp":"2009-04-09T21:26:18+00:00","score":15},{"role":"OP","user_id":"anon_1c3e2b625ba482c4","comment_id":"c08rhzx","kind":"comment","text":"thanks for the notice...ill fix it right now. Have some pity on the typography of a 36 hour unrested brain!","timestamp":"2009-04-10T00:05:04+00:00","score":9},{"role":"answerer","user_id":"anon_d31809b974ecb66a","comment_id":"c08rigf","kind":"comment","text":"Never.","timestamp":"2009-04-10T00:29:01+00:00","score":9}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1c3e2b625ba482c4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d31809b974ecb66a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08reca","thanks_reply_id":"c08rhzx","post_score":113,"answer_score":15,"preferred_answer_is_top_level":false}} {"user_id":"anon_04ab3e1ecefb19a5","answerer_user_id":"anon_4e4e728826ad7887","subreddit":"programming","timestamp":"2009-04-17T08:10:31+00:00","post_id":"8d6oq","question":"Dear Reddit, I made this site to share our best stories \"anonymously\", What do you think?","preferred_answer":"Priblo title","full_conversation":[{"role":"OP","user_id":"anon_04ab3e1ecefb19a5","comment_id":"8d6oq","kind":"post","text":"Dear Reddit, I made this site to share our best stories \"anonymously\", What do you think?","timestamp":"2009-04-17T08:10:31+00:00","score":5},{"role":"answerer","user_id":"anon_4e4e728826ad7887","comment_id":"c08x1bn","kind":"comment","text":"Priblo title","timestamp":"2009-04-17T12:32:51+00:00","score":1},{"role":"OP","user_id":"anon_04ab3e1ecefb19a5","comment_id":"c08x1fr","kind":"comment","text":"Thank you very much, took me a while to notice the missing 'r'!","timestamp":"2009-04-17T12:39:23+00:00","score":2},{"role":"answerer","user_id":"anon_4e4e728826ad7887","comment_id":"c08x39y","kind":"comment","text":"No worries, good luck with the site.","timestamp":"2009-04-17T14:07:45+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_04ab3e1ecefb19a5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4e4e728826ad7887","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c08x1bn","thanks_reply_id":"c08x1fr","post_score":5,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_1b11757d33424678","answerer_user_id":"anon_6637ebfe82795078","subreddit":"programming","timestamp":"2009-04-23T05:49:30+00:00","post_id":"8eqon","question":"Q: High-level concepts behind j2ee application scaling?","preferred_answer":"This is not a direct answer to your question. But when you want to understand the JEE basics you need to go beyond the 'product level' (yes, JEE *is a* SUN product) and the product's marketing.\n\n* Entity Beans: Look for the theory of 'distibuted objects' and CORBA. EntityBeans failed for the same reasons as CORBA, just in the JAVA way.\n\n* Session Beans: Get some information about Transaction Monitors (TM). SessionBeans are a SUN's mostly misunderstood (and mis-communicated) way of providing TM functionality in server-side JAVA. SessionBeans are the best part of EJB. \n\n* A Message-Driven Beans: Message-Oriented Middleware (MOM) is the theory behind it. \n\n\nThe remaining pieces, esp. Servlets ('Web-Containers') are more accessible since there are many competitors (ASP, PHP, even RoR). Servlets offer superior enterprise functionality. \n\nP.S.: Don't be fooled by free-riders like 'Spring' which pretend to offer their own enterprise 'full stack' in Java.","full_conversation":[{"role":"OP","user_id":"anon_1b11757d33424678","comment_id":"8eqon","kind":"post","text":"Q: High-level concepts behind j2ee application scaling?","timestamp":"2009-04-23T05:49:30+00:00","score":0},{"role":"answerer","user_id":"anon_6637ebfe82795078","comment_id":"c0929uf","kind":"comment","text":"This is not a direct answer to your question. But when you want to understand the JEE basics you need to go beyond the 'product level' (yes, JEE *is a* SUN product) and the product's marketing.\n\n* Entity Beans: Look for the theory of 'distibuted objects' and CORBA. EntityBeans failed for the same reasons as CORBA, just in the JAVA way.\n\n* Session Beans: Get some information about Transaction Monitors (TM). SessionBeans are a SUN's mostly misunderstood (and mis-communicated) way of providing TM functionality in server-side JAVA. SessionBeans are the best part of EJB. \n\n* A Message-Driven Beans: Message-Oriented Middleware (MOM) is the theory behind it. \n\n\nThe remaining pieces, esp. Servlets ('Web-Containers') are more accessible since there are many competitors (ASP, PHP, even RoR). Servlets offer superior enterprise functionality. \n\nP.S.: Don't be fooled by free-riders like 'Spring' which pretend to offer their own enterprise 'full stack' in Java.","timestamp":"2009-04-23T20:05:40+00:00","score":1},{"role":"OP","user_id":"anon_1b11757d33424678","comment_id":"c092k8m","kind":"comment","text":"Hey thanks, pointer2void! I will (try to) look at what you've suggested above but I'm not sure any theory/text would also include a critique of the subject; usually, they advocate what they, well, advocate. I'll google on my own but would appreciate if you have any ready links (good ones) to share.\n\n> P.S.: Don't be fooled by free-riders like 'Spring' which ...\n\nWhere could I find more info on this... so that I can avoid being fooled?","timestamp":"2009-04-24T02:29:38+00:00","score":1},{"role":"answerer","user_id":"anon_6637ebfe82795078","comment_id":"c09346h","kind":"comment","text":"> Where could I find more info on this...\n\nhttp://www.web4j.com/Criticisms_Drawbacks_Pitfalls_Spring_Rails_PHP.jsp#Spring","timestamp":"2009-04-24T18:50:48+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1b11757d33424678","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6637ebfe82795078","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0929uf","thanks_reply_id":"c092k8m","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_d971b2a410d27123","answerer_user_id":"anon_79cdf5f7f8872e63","subreddit":"programming","timestamp":"2009-04-25T20:35:44+00:00","post_id":"8fgb7","question":"help me","preferred_answer":"A couple of points here: What language do you want/need. How much work would you like to see? Is pseudo code ok?","full_conversation":[{"role":"OP","user_id":"anon_d971b2a410d27123","comment_id":"8fgb7","kind":"post","text":"help me","timestamp":"2009-04-25T20:35:44+00:00","score":0},{"role":"answerer","user_id":"anon_79cdf5f7f8872e63","comment_id":"c093yde","kind":"comment","text":"A couple of points here: What language do you want/need. How much work would you like to see? Is pseudo code ok?","timestamp":"2009-04-25T20:44:24+00:00","score":0},{"role":"OP","user_id":"anon_d971b2a410d27123","comment_id":"c093ygx","kind":"comment","text":"first of all thanks for the serious reply, now as i said i have no idea about this stuff. I need whatever code it is maxima runs naturally, i dont know what that is, also i have no idea what pseudo code is, sorry but again thanks","timestamp":"2009-04-25T20:49:06+00:00","score":1},{"role":"answerer","user_id":"anon_79cdf5f7f8872e63","comment_id":"c093yzf","kind":"comment","text":"Hrm...well maybe this will get you started. (Since it seems you don't want it, I won't give you the full answer, but a little description)\n\nWe need to first figure out what a Taylor Expansion is. So we know \n\n1 + x^1 / 1! + x^2 / 2! + x^3 / 3! ...\n\nSo, now we need to look at arctan:\n\narctan(x) = x - x3/3 + x5/5 - x7/7 + .... \n\nRight?\n\nSo that should get you on your way...\n\n* edit why the down mods?","timestamp":"2009-04-25T21:13:31+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d971b2a410d27123","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_79cdf5f7f8872e63","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c093yde","thanks_reply_id":"c093ygx","post_score":0,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_85d28e608c5e3fd8","answerer_user_id":"anon_3592c0e1f116e6a6","subreddit":"programming","timestamp":"2009-05-04T12:54:08+00:00","post_id":"8hot7","question":"We spend 1000s of hours building Mozilla/OpenOffice/Ubuntu because we \"hate\" Microsoft - yet we all pay exorbitant taxes which the Govt squanders on ineffective healthcare systems projects - diverting moneyfrom treatment that we will all need. Where the hell is OpenSourceMedicalDatabase.org?","preferred_answer":"http://thebrainproject.org/2008-11-21.asp","full_conversation":[{"role":"OP","user_id":"anon_85d28e608c5e3fd8","comment_id":"8hot7","kind":"post","text":"We spend 1000s of hours building Mozilla/OpenOffice/Ubuntu because we \"hate\" Microsoft - yet we all pay exorbitant taxes which the Govt squanders on ineffective healthcare systems projects - diverting moneyfrom treatment that we will all need. Where the hell is OpenSourceMedicalDatabase.org?","timestamp":"2009-05-04T12:54:08+00:00","score":0},{"role":"answerer","user_id":"anon_3592c0e1f116e6a6","comment_id":"c09bequ","kind":"comment","text":"http://thebrainproject.org/2008-11-21.asp","timestamp":"2009-05-04T13:20:23+00:00","score":1},{"role":"OP","user_id":"anon_85d28e608c5e3fd8","comment_id":"c09bfbx","kind":"comment","text":"Thanks - that's a very specific project however in terms of scale. I'm thinking of open-source building the infrastructure required for patient records, prescriptions, drug interactions, treatment records, medicare, private insurance etc etc across the whole gamut of health care services - basically replacing \"white elephant\" public sector overspends that are sapping the lifeblood from public budgets with few results.","timestamp":"2009-05-04T13:48:28+00:00","score":1},{"role":"answerer","user_id":"anon_3592c0e1f116e6a6","comment_id":"c09bh3r","kind":"comment","text":"I figured you meant something more general, but I thought I'd point out that anyway. It was the result of \"googling\": OpenSourceMedicalDatabase.org","timestamp":"2009-05-04T15:07:13+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_85d28e608c5e3fd8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3592c0e1f116e6a6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09bequ","thanks_reply_id":"c09bfbx","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_929b893172cbc1a9","answerer_user_id":"anon_0707b2fa944f540a","subreddit":"programming","timestamp":"2009-05-06T16:48:50+00:00","post_id":"8id0y","question":"Hey programming - I want to teach myself enough to create a decent website. Is this the book? Is it even the right language?","preferred_answer":"Java, to create a website?\nNO.. While Java can be used to script a website, its really not the best solution. In-fact very few web host support Java nowadays. Java for web should only be used as a front-end for a much more complex program.\n\nAnyways you want to start out with HTML, once you've got that down, you want to work with a web language. You could go with PHP or Ruby, or Python, or a number of languages. But Java, not unless you already know it..","full_conversation":[{"role":"OP","user_id":"anon_929b893172cbc1a9","comment_id":"8id0y","kind":"post","text":"Hey programming - I want to teach myself enough to create a decent website. Is this the book? Is it even the right language?","timestamp":"2009-05-06T16:48:50+00:00","score":0},{"role":"answerer","user_id":"anon_0707b2fa944f540a","comment_id":"c09djs4","kind":"comment","text":"Java, to create a website?\nNO.. While Java can be used to script a website, its really not the best solution. In-fact very few web host support Java nowadays. Java for web should only be used as a front-end for a much more complex program.\n\nAnyways you want to start out with HTML, once you've got that down, you want to work with a web language. You could go with PHP or Ruby, or Python, or a number of languages. But Java, not unless you already know it..","timestamp":"2009-05-06T16:54:33+00:00","score":5},{"role":"OP","user_id":"anon_929b893172cbc1a9","comment_id":"c09dk2h","kind":"comment","text":"Thanks very much, excuse my ignorance. Can I build a website in HTML alone, or do I need one of those other programs too?\n\nAnd is there a book for starters in HTML you could recommend?","timestamp":"2009-05-06T17:03:36+00:00","score":1},{"role":"answerer","user_id":"anon_0707b2fa944f540a","comment_id":"c09dko7","kind":"comment","text":"Ekk. Yes, start with HTML. No I can't recommend any good books really. One of the quickest ways to learn HTML is to take an existing website that you like the look of. And do a Page Save (in firefox file menu). Or Save As, Webpage Complete in IE.\nThen open the .htm file in a text editor (NOT word, something like notepad or wordpad) and make changes and see how those changes affect the page. Use a basic reference guide like http://www.w3schools.com/tags/default.asp to find out what each tag does.\nThere are plenty of good HTML books out there, though I can't recommend any off hand.","timestamp":"2009-05-06T17:21:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_929b893172cbc1a9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0707b2fa944f540a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09djs4","thanks_reply_id":"c09dk2h","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_e20acf412ec5d94f","answerer_user_id":"anon_b7ff7d1b685f56c5","subreddit":"programming","timestamp":"2009-05-09T16:22:35+00:00","post_id":"8j60s","question":"Where to learn computer science - I'm a self taught ASP.NET programmer w/ 7yrs experience","preferred_answer":"Well, I learned it in a classroom, so I'm not sure what's most useful for self-learning. The wikipedia article (http://en.wikipedia.org/wiki/Big_O_notation) is a bit too abstract and formal for a beginner, IMO.\n\nBasically, saying that one function is big-O another function (looks like \"f(n) ∈ O(g(n))\") means that as n gets big, f(n) and g(n) increase similarly, after ignoring all kinds of things that are actually important such as constant multipliers (so f can be 100 times slower than g, but if it goes up in the same way, it's still in the order of g). So if a particular method takes the same amount of time no matter much data you feed it (such as array lookups), one might say that it's O(1). If it takes an amount of time that goes up according to a constant factor of the input size (like putting something at the end of a linked list), then you write that it's O(n). If doubling the input size makes it take 4 times as long, then it's O(n^2).\n\nhttp://mitpress.mit.edu/algorithms/ is a fantastic reference, but I don't think I'd be able to learn directly from it. There's also a lot of algorithm/data structures books written to take advantage of particular programming environments, but googling around doens't turn up any for C# or VB.NET, which is what I assume you're used to if you did ASP.NET. But there are a few for Java, which is almost the same as .NET. Sedgewick's \"Algorithms in Java\" has pretty good explanations of the math, but the code samples are all shite. They make you really aware that he's a C programmer :) But if you can figure them out, it's a decent text.\n\nYou could also try a local college/community college, depending where you are. This kind of stuff is usually covered in a sophomore course at state schools, or really early at fancy places like MIT.\n\nBest of luck! Feel free to msg me with any questions you come across. I've not done much with .NET, but I can do the other stuff :)","full_conversation":[{"role":"OP","user_id":"anon_e20acf412ec5d94f","comment_id":"8j60s","kind":"post","text":"Where to learn computer science - I'm a self taught ASP.NET programmer w/ 7yrs experience","timestamp":"2009-05-09T16:22:35+00:00","score":30},{"role":"answerer","user_id":"anon_b7ff7d1b685f56c5","comment_id":"c09hdhi","kind":"comment","text":"Well, I learned it in a classroom, so I'm not sure what's most useful for self-learning. The wikipedia article (http://en.wikipedia.org/wiki/Big_O_notation) is a bit too abstract and formal for a beginner, IMO.\n\nBasically, saying that one function is big-O another function (looks like \"f(n) ∈ O(g(n))\") means that as n gets big, f(n) and g(n) increase similarly, after ignoring all kinds of things that are actually important such as constant multipliers (so f can be 100 times slower than g, but if it goes up in the same way, it's still in the order of g). So if a particular method takes the same amount of time no matter much data you feed it (such as array lookups), one might say that it's O(1). If it takes an amount of time that goes up according to a constant factor of the input size (like putting something at the end of a linked list), then you write that it's O(n). If doubling the input size makes it take 4 times as long, then it's O(n^2).\n\nhttp://mitpress.mit.edu/algorithms/ is a fantastic reference, but I don't think I'd be able to learn directly from it. There's also a lot of algorithm/data structures books written to take advantage of particular programming environments, but googling around doens't turn up any for C# or VB.NET, which is what I assume you're used to if you did ASP.NET. But there are a few for Java, which is almost the same as .NET. Sedgewick's \"Algorithms in Java\" has pretty good explanations of the math, but the code samples are all shite. They make you really aware that he's a C programmer :) But if you can figure them out, it's a decent text.\n\nYou could also try a local college/community college, depending where you are. This kind of stuff is usually covered in a sophomore course at state schools, or really early at fancy places like MIT.\n\nBest of luck! Feel free to msg me with any questions you come across. I've not done much with .NET, but I can do the other stuff :)","timestamp":"2009-05-11T07:14:03+00:00","score":2},{"role":"OP","user_id":"anon_e20acf412ec5d94f","comment_id":"c09hejs","kind":"comment","text":"Thanks a ton. I might take you up on the msg bit!","timestamp":"2009-05-11T08:41:23+00:00","score":1},{"role":"answerer","user_id":"anon_b7ff7d1b685f56c5","comment_id":"c09hewl","kind":"comment","text":"Do it!","timestamp":"2009-05-11T09:15:41+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e20acf412ec5d94f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b7ff7d1b685f56c5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09hdhi","thanks_reply_id":"c09hejs","post_score":30,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_a838925267355ffd","answerer_user_id":"anon_7d2df2d31213df13","subreddit":"programming","timestamp":"2009-05-14T07:06:12+00:00","post_id":"8kd0c","question":"Hey Proggit, I have an option of either learning Adobe Flex or Qt. Which would you suggest and Why?","preferred_answer":"While I prefer Air/Flex to my other options for GUI development these days, it's for rapid-application development reasons and not for the quality of the code the framework encouarges. Qt is the singular nicest to use and best designed desktop GUI framework I've used. And I've used a lot.\n\nSo if you want to:\n - get a job as a 'web dude' just learn Flex/Air\n\n - get a job in visual effects or doing heavy 3D modeling like solidworks, learn PyQt\n\n - observe and use good programming techniques of the framework to improve your own coding skills and to better understand how a proper MVC framework should work use Qt/C++\n\n - rapidly develop an internet-services-centric, glitzy GUI use Air/Flex\n\n - observe and use good programming techniques of the framework to improve your own coding skills and to better understand how a proper aysnchronous/event-based GUI coding works, use PyQt\n\n - if you answered \"Yes\" to all of the above, pick a target problem - say 'yet another twitter client' and implement it first in PyQt. Then re-implement that same application in Flex/Air plus a good MVC framework like PureMVC and/or Cairngorn. \n\nI'd suggest the last option frankly. Flex is BRILLIANT but out of the box it encourages very messy, very tightly-coupled code that will quickly grow unmanageable in a junior coder's hands (much like PHP). Learning Qt using PyQt will get you accustomed to both the rapid development you should be seeing for GUI development as well as good programming techniques you'd be advised to carry over into the Air/Flex environment.","full_conversation":[{"role":"OP","user_id":"anon_a838925267355ffd","comment_id":"8kd0c","kind":"post","text":"Hey Proggit, I have an option of either learning Adobe Flex or Qt. Which would you suggest and Why?","timestamp":"2009-05-14T07:06:12+00:00","score":0},{"role":"answerer","user_id":"anon_7d2df2d31213df13","comment_id":"c09kb06","kind":"comment","text":"While I prefer Air/Flex to my other options for GUI development these days, it's for rapid-application development reasons and not for the quality of the code the framework encouarges. Qt is the singular nicest to use and best designed desktop GUI framework I've used. And I've used a lot.\n\nSo if you want to:\n - get a job as a 'web dude' just learn Flex/Air\n\n - get a job in visual effects or doing heavy 3D modeling like solidworks, learn PyQt\n\n - observe and use good programming techniques of the framework to improve your own coding skills and to better understand how a proper MVC framework should work use Qt/C++\n\n - rapidly develop an internet-services-centric, glitzy GUI use Air/Flex\n\n - observe and use good programming techniques of the framework to improve your own coding skills and to better understand how a proper aysnchronous/event-based GUI coding works, use PyQt\n\n - if you answered \"Yes\" to all of the above, pick a target problem - say 'yet another twitter client' and implement it first in PyQt. Then re-implement that same application in Flex/Air plus a good MVC framework like PureMVC and/or Cairngorn. \n\nI'd suggest the last option frankly. Flex is BRILLIANT but out of the box it encourages very messy, very tightly-coupled code that will quickly grow unmanageable in a junior coder's hands (much like PHP). Learning Qt using PyQt will get you accustomed to both the rapid development you should be seeing for GUI development as well as good programming techniques you'd be advised to carry over into the Air/Flex environment.","timestamp":"2009-05-14T09:57:18+00:00","score":1},{"role":"OP","user_id":"anon_a838925267355ffd","comment_id":"c09kbnk","kind":"comment","text":"Hi, Thanks for your wonderful answer. I really like the example target problem you gave. Do you by any chance have a link or so, where I can find, say, a list of all the \"real-time\" applications built using Qt or Flex? It would definitely make it easy to evaluate.","timestamp":"2009-05-14T10:51:01+00:00","score":1},{"role":"answerer","user_id":"anon_7d2df2d31213df13","comment_id":"c09kdjt","kind":"comment","text":"I've got heaps of personal experience with what I would call high-performance GUI's with both of these tools but I'm careful to not presume what you mean by \"real-time\". If you mean \"real-time\" like a stock trader means real-time then you'll struggle finding examples from either platform. I know of some 'very powerful' apps however:\n\n- PyQT: I know of aerodynamics engineering and 3D modelling applications built at Airbus that use PyQT with Enthought's \"Traits\" and other frameworks (http://code.enthought.com/). This is a very compelling and powerful stack. It's every bit as powerful as stuff I've seen built, with more effort, using Qt and C++.\n\n- C++ and Qt: The Foundry's Nuke is THE choice for hardcore 2D work in visual effects. It's built using C++ and Qt and has a bloody marvellous UI and is very high-performance. Mere mortals would be shocked by its power - it's so cool.\n\n- Flex/Air: I've personally built market-data visualisation applications using this stack that I can't share. Perhaps you can just download Tweetdeck to get a feel for Flex/Air's real-time capabilities.\n\nFlex/Air *really* is the way forward, it's just such a delight to use. BUT you MUST first understand:\n - the MVC ethos and separation of concerns\n - true event-based programming as Air is single-threaded. Conveniently, Qt has a GREAT event model called \"signals and slots\".\n\nFlex/Air will burn you badly if you don't understand this beforehand. And the Flex/Air gurus and the web tutorials/examples generally don't make nearly a big enough effort to address this.\n\nFinal note on this single-thread issue: C++ snobs are going to use this tidbit to dismiss the platform wholesale. Ignore them. They're just jealous it's still such a pain in the arse to use C++. And their beards itch.\n\nWhat you do need to realise though is that anything that requires loads of processing power should NOT be done in Air. Instead do that work in something like Python and communicate between the Python and Flex application using PyAMF. It's dead-easy to do this in a web-centric model. I've just finished a very satisfying prototype for a project management tool using:\n - Flex/Air user-interface, fronting a\n - Web2Py backend, running on\n - Google App Engine \n(see http://www.web2py.com/AlterEgo/default/show/22 for a starter)\n\nThis could be made to be quite fast, if not real-time with the right infrastructure. \"Real-Time\" applications are usually down to doing good, concurrent programming. Things like Python (using twisted, eventlets, or just generators), Erlang, Scala and others really have their heads screwed on right when it comes to concurrent programming. So my advice is pick a tool that:\n\n1) makes it easy and FAST to make a UI\n2) doesn't box you into design decisions that sacrifice performance arbitrarily\n3) easy and convenient concurrency capabilities\n\nFor me that tends to be Python for the 'hard stuff' and either PyQt for single-user UIs or Flex/Air for UIs that would be better distributed using the web model.","timestamp":"2009-05-14T12:54:19+00:00","score":2},{"role":"OP","user_id":"anon_a838925267355ffd","comment_id":"c09kdqg","kind":"comment","text":"Thank you so much! Can't upvote you enough. I think I've made my decision :) Thanks again!","timestamp":"2009-05-14T13:05:01+00:00","score":1},{"role":"answerer","user_id":"anon_7d2df2d31213df13","comment_id":"c09kdzz","kind":"comment","text":"Out of curiosity - which did you choose?\n\nAlso - try them all eventually. There's no \"one way\" to do things and you learn heaps by experimenting with each.\n\nHappy hacking!","timestamp":"2009-05-14T13:17:10+00:00","score":2},{"role":"OP","user_id":"anon_a838925267355ffd","comment_id":"c09ke9m","kind":"comment","text":"Me and my project partner chose Flex for this project, but are planning to use Qt for the next one. We were so impressed by both of 'em that we thought, 'What the heck, lets just learn both'. Decided to take it, step by step though. And since, we are focused on our current project and it has a 'deadline', we thought Flex is gonna be a lot more smoother. Thanks again for all your help. C ya :)","timestamp":"2009-05-14T13:30:07+00:00","score":1},{"role":"answerer","user_id":"anon_7d2df2d31213df13","comment_id":"c09keeu","kind":"comment","text":"Good choice and good luck - and remember: don't load too much logic into the blocks of your mxml sources -- use modules! :D\n\nhttp://livedocs.adobe.com/flex/3/html/help.html?content=usingas_6.html","timestamp":"2009-05-14T13:36:18+00:00","score":2},{"role":"OP","user_id":"anon_a838925267355ffd","comment_id":"c09keg7","kind":"comment","text":"Will definitely keep that in mind. Thanks!","timestamp":"2009-05-14T13:37:56+00:00","score":1}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_a838925267355ffd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7d2df2d31213df13","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09kb06","thanks_reply_id":"c09kbnk","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_31cca738d8b6269c","answerer_user_id":"anon_146a04a13db2b7c3","subreddit":"programming","timestamp":"2009-05-15T14:52:06+00:00","post_id":"8kqr8","question":"What should a modern macro system look like?","preferred_answer":"Awesome!\r\n\r\nIn fact, I've been toying with ideas for an ideal language, and what you're describing fits it almost perfectly. A really powerful idea is that of combining dynamicity and staticness into one language, so you can use whichever fits best. Your approach of having two kinds of object seems good, and perfectly feasible.","full_conversation":[{"role":"OP","user_id":"anon_31cca738d8b6269c","comment_id":"8kqr8","kind":"post","text":"What should a modern macro system look like?","timestamp":"2009-05-15T14:52:06+00:00","score":24},{"role":"answerer","user_id":"anon_146a04a13db2b7c3","comment_id":"c09m7ue","kind":"comment","text":"Awesome!\r\n\r\nIn fact, I've been toying with ideas for an ideal language, and what you're describing fits it almost perfectly. A really powerful idea is that of combining dynamicity and staticness into one language, so you can use whichever fits best. Your approach of having two kinds of object seems good, and perfectly feasible.","timestamp":"2009-05-16T18:54:28+00:00","score":1},{"role":"OP","user_id":"anon_31cca738d8b6269c","comment_id":"c09m9p9","kind":"comment","text":"Thanks. To be clear, its two kinds of method, not object. It's perfectly fine for an object to have both multi- and single-dispatch methods.\n\nNow, I just need to decide on a basic macro/metaprogramming system, implement multi-method dispatch, fill in a bunch of operators, and announce it. :)\n\nIt's called Mother, after the computer in the original Alien movie.","timestamp":"2009-05-16T20:26:09+00:00","score":2},{"role":"answerer","user_id":"anon_146a04a13db2b7c3","comment_id":"c09maqr","kind":"comment","text":"Of course. For some reason I read \"multiple dispatch\" and thought of what I guess is called dynamic dispatch, as in the difference between ruby and java, not as in common lisp and java. But I'm with you now.\r\n\r\nYou got me wondering how multiple dispatch is implemented in common lisp, and google came up with [this](http://compilers.iecc.com/comparch/article/08-09-100). Maybe that's interesting to you too.","timestamp":"2009-05-16T21:17:15+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_31cca738d8b6269c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_146a04a13db2b7c3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09m7ue","thanks_reply_id":"c09m9p9","post_score":24,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_679f69ae04c58629","answerer_user_id":"anon_f06bfef2b329f25a","subreddit":"programming","timestamp":"2009-05-21T09:20:48+00:00","post_id":"8m48q","question":"We (a small group of 6 students) are about to develop a Java EE website. It's a pretty standard C.R.U.D deal. Framework recommendations?","preferred_answer":"JBoss's Seam Framework and ICEFaces tie pretty well together, although ICEFaces documentation is a little lacking, and sometimes can be painful to tweak it \"just right\". \n\nDefinitely use Hibernate for persistence Layer... \n\n(Actually, I think there's a generator with Seam to build a simple CRUD website for a defined schema - never tried it myself, but might be reasonable starting point)","full_conversation":[{"role":"OP","user_id":"anon_679f69ae04c58629","comment_id":"8m48q","kind":"post","text":"We (a small group of 6 students) are about to develop a Java EE website. It's a pretty standard C.R.U.D deal. Framework recommendations?","timestamp":"2009-05-21T09:20:48+00:00","score":0},{"role":"answerer","user_id":"anon_f06bfef2b329f25a","comment_id":"c09pzj9","kind":"comment","text":"JBoss's Seam Framework and ICEFaces tie pretty well together, although ICEFaces documentation is a little lacking, and sometimes can be painful to tweak it \"just right\". \n\nDefinitely use Hibernate for persistence Layer... \n\n(Actually, I think there's a generator with Seam to build a simple CRUD website for a defined schema - never tried it myself, but might be reasonable starting point)","timestamp":"2009-05-21T09:29:49+00:00","score":0},{"role":"OP","user_id":"anon_679f69ae04c58629","comment_id":"c09pzro","kind":"comment","text":"Thanks I'm reading over the Seam tutorial now.\n\nCan anyone comment on the Tapestry framework?","timestamp":"2009-05-21T09:53:03+00:00","score":1},{"role":"answerer","user_id":"anon_f06bfef2b329f25a","comment_id":"c09q2jb","kind":"comment","text":"I should have added - if its to get a simple CRUD website up and running then don't look to Java - unless you are, as I suspect, looking at getting the experience...\n\nFor a quick way of building very functional CRUD website check out Python's Django project - a few simple python classes to represent a data model is all you need for full blown CRUD site (Django automatically generates an \"admin\" site if desired...)","timestamp":"2009-05-21T13:24:57+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_679f69ae04c58629","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f06bfef2b329f25a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09pzj9","thanks_reply_id":"c09pzro","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_55c03d04a702239c","answerer_user_id":"anon_4703c4e627fb0dea","subreddit":"programming","timestamp":"2009-05-25T17:34:16+00:00","post_id":"8n450","question":"Dear Reddit, could you please help me with choosing a Computer Science BSC graduation paper subject?","preferred_answer":"Lurk on LKML for a while. Find some nasty thing that is obviously broken but that no one wants to spend the time to fix or has gotten around to fixing yet. (Last time I looked, there were a lot of things like this.) Fix it. The more code you have to gut and replace with totally different algorithms, the better.","full_conversation":[{"role":"OP","user_id":"anon_55c03d04a702239c","comment_id":"8n450","kind":"post","text":"Dear Reddit, could you please help me with choosing a Computer Science BSC graduation paper subject?","timestamp":"2009-05-25T17:34:16+00:00","score":1},{"role":"answerer","user_id":"anon_4703c4e627fb0dea","comment_id":"c09t7qx","kind":"comment","text":"Lurk on LKML for a while. Find some nasty thing that is obviously broken but that no one wants to spend the time to fix or has gotten around to fixing yet. (Last time I looked, there were a lot of things like this.) Fix it. The more code you have to gut and replace with totally different algorithms, the better.","timestamp":"2009-05-25T20:29:53+00:00","score":0},{"role":"OP","user_id":"anon_55c03d04a702239c","comment_id":"c09t86r","kind":"comment","text":"Thank you. That's a very interesting idea. Do you have any tips on how I could browse more efficiently through all that information? I am kind of short on time. I have to provide a name for my thesis preferably this week.","timestamp":"2009-05-25T20:49:09+00:00","score":1},{"role":"answerer","user_id":"anon_4703c4e627fb0dea","comment_id":"c09t8kk","kind":"comment","text":"Read LWN. Love LWN. LWN is good.\r\n\r\nhttp://www.lwn.net/","timestamp":"2009-05-25T21:04:10+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_55c03d04a702239c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4703c4e627fb0dea","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09t7qx","thanks_reply_id":"c09t86r","post_score":1,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_8f0b713f36f9857d","answerer_user_id":"anon_013baa47c11529c3","subreddit":"programming","timestamp":"2009-05-27T05:18:00+00:00","post_id":"8nium","question":"Hey Reddit, Whats The Best Free Web Host?","preferred_answer":"http://www.free-webhosts.com/user_reviews.php\n\nDon't thank me, thank google. Input best free web hosting ratings...\n\nGood luck\n\nregards...jack","full_conversation":[{"role":"OP","user_id":"anon_8f0b713f36f9857d","comment_id":"8nium","kind":"post","text":"Hey Reddit, Whats The Best Free Web Host?","timestamp":"2009-05-27T05:18:00+00:00","score":0},{"role":"answerer","user_id":"anon_013baa47c11529c3","comment_id":"c09uhkr","kind":"comment","text":"http://www.free-webhosts.com/user_reviews.php\n\nDon't thank me, thank google. Input best free web hosting ratings...\n\nGood luck\n\nregards...jack","timestamp":"2009-05-27T05:23:25+00:00","score":1},{"role":"OP","user_id":"anon_8f0b713f36f9857d","comment_id":"c09uhvf","kind":"comment","text":"ok, i wont thank you \nthank you!","timestamp":"2009-05-27T05:40:08+00:00","score":2},{"role":"answerer","user_id":"anon_013baa47c11529c3","comment_id":"c09uic9","kind":"comment","text":"Cool.\n\nregards...jack","timestamp":"2009-05-27T06:02:29+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8f0b713f36f9857d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_013baa47c11529c3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09uhkr","thanks_reply_id":"c09uhvf","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_8055b23cb9a31bf1","answerer_user_id":"anon_249451e2b0932936","subreddit":"programming","timestamp":"2009-05-29T12:35:04+00:00","post_id":"8o792","question":"Does anyone have an opinion on developing a site with Google Web Toolkit? I cannot find any negatives online so any personal experience would be great to hear.","preferred_answer":"[Edited: please excuse my formatting skill]\n\nI've been using GWT (and Ext-GWT) for almost 1.5 years. So please take my opinion with a grain of salt. \n\nFirst of all, GWT is more suitable for a single page app with lots of UI interactivity and flashes. So you probably don't want to use it to build sites like Stackoverflow.com.\n\nSecond, if you need your site to be searchable by search engine, you should limit the use of GWT to small widgets whereas your pages should come from \"View/Template\" (Erb, JSP, PHP whatever). \n\nThird, anything you can do with JS, GWT should be able to do it. \n\nNow once we pass the high-level usage. Let's go deeper a little bit to GWT features/issues that I know in no particular order (you should check + use GWT yourself for the full features). \n\n* Internationalization. \nIt's easier to do i18n with GWT: create a property file for a target language and let GWT 1l8n tool handle the rest. GWT will load the right language properly for you. No extra logic. GWT i18n also help pluralization to some extend and the \"left to right\" plus \"right to left\" language format.\n\n* Abstracting Browsers. \nIt's true, it's write once run any browser... 99% of the time. There's this 1% case where certain browser just gave up, blew up or whatnot. The good news is that all these 1% cases have already been reported to GWT and they're there on their bug tracking list along with the discussion (open for public), workaround and future fixes. \n\n* Specific JS for specific Browser \nGWT compiles JS to various permutation output of popular browsers. If your client is IE, GWT will send IE JS code. So the code is guaranteed to be smaller than hand-written JS code that probably did something like \"if IE do the following\".\n\nNow: what would happen if HTML5 is out and you wrote your app in GWT? Nothing. GWT abstracts HTML/CSS/JS away from the developer.\n\nIn my experience using GWT, I've never have to care of the 1% until it hit me. Once it happened, Google for the bug and most likely you'll end up in GWT's bug tracking list. I still don't need to have extensive JS knowledge. It's like if you write a desktop app for Windows or Linux and there was a bug in the Windows/Linux kernel, do you have to know the kernel extensively? Most people don't need to know. \n\n* Debugging. \nDebugging GWT using Eclipse/Netbeans/Jetbrains feels like debugging a regular Java code. Again, debugging will cover 99% of the use-case. There is this 1% that the debugger can't cover: say in FF3 there is this bug where if you do setSelectionRange on a TextField (or... Firefox. Windows => IE. \n\nNow, the good news is that the GWT team is working hard to release Out-of-Process Hosted Mode so you can pick the browser to run your Hosted Mode on. It should be out soon. \n\n* Compilation, Obfuscation, Speed. \nGWT claims that it produces the faster JS code if compared with hand-written one. I don't know if it's true, but feel free to try it yourself. The code can be obfuscated as well so that's good if your JS or your UI code contains your secret sauce. \n\nOn the down-side, compilation process isn't the same with hitting refresh and GWT compiler is a bit slow. A medium-size project could take 2-4 minutes to compile. My development platform is OSX and it's a bit painful when I have to test on Firefox. Since Hosted-Mode is Safari only, I have to compile every time I want to test on other browser. Compilation issues will go away because GWT team is working on OOPHM (out of process) and compiler improvements. \n\n* Image Bundle. \nOne of the most well-known tricks to improve the responsiveness of the whole web-app is to bundle images and send them as one unified image file. But you'd have to do various tricks via CSS + background images + some (x,y) coordinates to access the images within the \"big image chunk\". First of all, I don't know any tools out there that can take a bunch of images, stitch them together, and generate CSS to map those images. Again, I'm a newbie in this area so there might be such tool already. GWT handles all of these for you via their ImageBundle sub-system. You create an interface + use Java annotation to point to an image file:\n\n@Resource(\"btn-submit-icon.gif\")\npublic AbstractImagePrototype submitButtonIcon();\n\nGWT compiler will collect all images pointed by @Resource and stitch them all for you. And you don't have to come up with your own CSS; GWT abstracts you from all of the tedious process.\n\n* Software Engineering/Agile goodies. \nI'm not a huge follower of Agile, XP, Scrum and all those things. But developing GWT app is almost as similar as developing a Java app. Which means you can do the following actions properly(?): Refactoring, Continuus Integration (Maven, Hudson), Unit Test, Mocking, etc.\n\nI haven't done them all but I suppose it is more easier to do them in GWT/Java environment compare to native JS?\n\nAs a side note: Google Gears (or HTML5 local database feature) brings powerful feature with added complexity. Now suddenly your front-end web-app can have features similar to a desktop-app. But you need to design your front-end code to support this \"Data Store\" layer properly (that either can ask data from Google Gears _or_ XMLHttpRequest Async callback) otherwise the JS code will be a huge messy jungle. \n\nPeople are quite familiar to design a complex desktop-app. I don't think people are comfortable to design front-end code using JS to adapt to a more desktop-app-like architecture.\n\n* Progressive JS Loading. \nThis is a new feature that I don't know when it's going to be included. The premise is that you don't have to send one big JS chunk to the client (JS = GWT compiled obfuscated JS output). The idea is that GWT will load pieces of the obfuscated code on-demand. \n\n* JSNI (JavaScript Native Interface). \nThe idea here is to write bits and pieces of pure native JS code and call that code from within GWT code. What's nice about this is that now you can wrap your favorite JS library (jQuery => GQuery) and use it within GWT. This means you can resort to JavaScript if you have to (for whatever reason). It's like writing ASM code within your C code (which is quite common in OS low-level code).\n\n* JS Overlay (JSON object => Java object). \nThis feature works similar to C union (or a wrapper). You define a Java object that extends JavaScriptObject. You provide getter/setter that calls JSNI code. You pass a JSON object to your Java object and voila, you can access all JSON properties with no parsing needed. \n\n* Weaknesses. \nIf you're using Java for server-side, there will be a case to have client side domain models: a simplify server side domain models. This introduce duplicates and grunt works to maintain. The way to avoid this is to make sure your domain-models are pure POJOs (I hate Java terminology). The general rule is that GWT should be able to compile your code. So if your domain-models contain annotations, those annotations must be available for GWT to compile (or even an interface marker like Serializable). GWT uses Java for its implementation language. Unfortunately, Java is too verbose for application development. You can make a strong case for server-side/system-level programming.","full_conversation":[{"role":"OP","user_id":"anon_8055b23cb9a31bf1","comment_id":"8o792","kind":"post","text":"Does anyone have an opinion on developing a site with Google Web Toolkit? I cannot find any negatives online so any personal experience would be great to hear.","timestamp":"2009-05-29T12:35:04+00:00","score":21},{"role":"answerer","user_id":"anon_249451e2b0932936","comment_id":"c09wu26","kind":"comment","text":"[Edited: please excuse my formatting skill]\n\nI've been using GWT (and Ext-GWT) for almost 1.5 years. So please take my opinion with a grain of salt. \n\nFirst of all, GWT is more suitable for a single page app with lots of UI interactivity and flashes. So you probably don't want to use it to build sites like Stackoverflow.com.\n\nSecond, if you need your site to be searchable by search engine, you should limit the use of GWT to small widgets whereas your pages should come from \"View/Template\" (Erb, JSP, PHP whatever). \n\nThird, anything you can do with JS, GWT should be able to do it. \n\nNow once we pass the high-level usage. Let's go deeper a little bit to GWT features/issues that I know in no particular order (you should check + use GWT yourself for the full features). \n\n* Internationalization. \nIt's easier to do i18n with GWT: create a property file for a target language and let GWT 1l8n tool handle the rest. GWT will load the right language properly for you. No extra logic. GWT i18n also help pluralization to some extend and the \"left to right\" plus \"right to left\" language format.\n\n* Abstracting Browsers. \nIt's true, it's write once run any browser... 99% of the time. There's this 1% case where certain browser just gave up, blew up or whatnot. The good news is that all these 1% cases have already been reported to GWT and they're there on their bug tracking list along with the discussion (open for public), workaround and future fixes. \n\n* Specific JS for specific Browser \nGWT compiles JS to various permutation output of popular browsers. If your client is IE, GWT will send IE JS code. So the code is guaranteed to be smaller than hand-written JS code that probably did something like \"if IE do the following\".\n\nNow: what would happen if HTML5 is out and you wrote your app in GWT? Nothing. GWT abstracts HTML/CSS/JS away from the developer.\n\nIn my experience using GWT, I've never have to care of the 1% until it hit me. Once it happened, Google for the bug and most likely you'll end up in GWT's bug tracking list. I still don't need to have extensive JS knowledge. It's like if you write a desktop app for Windows or Linux and there was a bug in the Windows/Linux kernel, do you have to know the kernel extensively? Most people don't need to know. \n\n* Debugging. \nDebugging GWT using Eclipse/Netbeans/Jetbrains feels like debugging a regular Java code. Again, debugging will cover 99% of the use-case. There is this 1% that the debugger can't cover: say in FF3 there is this bug where if you do setSelectionRange on a TextField (or... Firefox. Windows => IE. \n\nNow, the good news is that the GWT team is working hard to release Out-of-Process Hosted Mode so you can pick the browser to run your Hosted Mode on. It should be out soon. \n\n* Compilation, Obfuscation, Speed. \nGWT claims that it produces the faster JS code if compared with hand-written one. I don't know if it's true, but feel free to try it yourself. The code can be obfuscated as well so that's good if your JS or your UI code contains your secret sauce. \n\nOn the down-side, compilation process isn't the same with hitting refresh and GWT compiler is a bit slow. A medium-size project could take 2-4 minutes to compile. My development platform is OSX and it's a bit painful when I have to test on Firefox. Since Hosted-Mode is Safari only, I have to compile every time I want to test on other browser. Compilation issues will go away because GWT team is working on OOPHM (out of process) and compiler improvements. \n\n* Image Bundle. \nOne of the most well-known tricks to improve the responsiveness of the whole web-app is to bundle images and send them as one unified image file. But you'd have to do various tricks via CSS + background images + some (x,y) coordinates to access the images within the \"big image chunk\". First of all, I don't know any tools out there that can take a bunch of images, stitch them together, and generate CSS to map those images. Again, I'm a newbie in this area so there might be such tool already. GWT handles all of these for you via their ImageBundle sub-system. You create an interface + use Java annotation to point to an image file:\n\n@Resource(\"btn-submit-icon.gif\")\npublic AbstractImagePrototype submitButtonIcon();\n\nGWT compiler will collect all images pointed by @Resource and stitch them all for you. And you don't have to come up with your own CSS; GWT abstracts you from all of the tedious process.\n\n* Software Engineering/Agile goodies. \nI'm not a huge follower of Agile, XP, Scrum and all those things. But developing GWT app is almost as similar as developing a Java app. Which means you can do the following actions properly(?): Refactoring, Continuus Integration (Maven, Hudson), Unit Test, Mocking, etc.\n\nI haven't done them all but I suppose it is more easier to do them in GWT/Java environment compare to native JS?\n\nAs a side note: Google Gears (or HTML5 local database feature) brings powerful feature with added complexity. Now suddenly your front-end web-app can have features similar to a desktop-app. But you need to design your front-end code to support this \"Data Store\" layer properly (that either can ask data from Google Gears _or_ XMLHttpRequest Async callback) otherwise the JS code will be a huge messy jungle. \n\nPeople are quite familiar to design a complex desktop-app. I don't think people are comfortable to design front-end code using JS to adapt to a more desktop-app-like architecture.\n\n* Progressive JS Loading. \nThis is a new feature that I don't know when it's going to be included. The premise is that you don't have to send one big JS chunk to the client (JS = GWT compiled obfuscated JS output). The idea is that GWT will load pieces of the obfuscated code on-demand. \n\n* JSNI (JavaScript Native Interface). \nThe idea here is to write bits and pieces of pure native JS code and call that code from within GWT code. What's nice about this is that now you can wrap your favorite JS library (jQuery => GQuery) and use it within GWT. This means you can resort to JavaScript if you have to (for whatever reason). It's like writing ASM code within your C code (which is quite common in OS low-level code).\n\n* JS Overlay (JSON object => Java object). \nThis feature works similar to C union (or a wrapper). You define a Java object that extends JavaScriptObject. You provide getter/setter that calls JSNI code. You pass a JSON object to your Java object and voila, you can access all JSON properties with no parsing needed. \n\n* Weaknesses. \nIf you're using Java for server-side, there will be a case to have client side domain models: a simplify server side domain models. This introduce duplicates and grunt works to maintain. The way to avoid this is to make sure your domain-models are pure POJOs (I hate Java terminology). The general rule is that GWT should be able to compile your code. So if your domain-models contain annotations, those annotations must be available for GWT to compile (or even an interface marker like Serializable). GWT uses Java for its implementation language. Unfortunately, Java is too verbose for application development. You can make a strong case for server-side/system-level programming.","timestamp":"2009-05-29T17:10:04+00:00","score":28},{"role":"OP","user_id":"anon_8055b23cb9a31bf1","comment_id":"c09x2ui","kind":"comment","text":"Really appreciate the time and effort you have taken to respond to may fairly open ended question. Very helpful.","timestamp":"2009-05-29T22:05:05+00:00","score":6},{"role":"answerer","user_id":"anon_249451e2b0932936","comment_id":"c09y0rg","kind":"comment","text":"Oh and there are more\n\n* History \nMost AJAX web-apps have either no history, broken history, half-working history, or to use IFrame History workaround. GWT abstracts all of these from you. All you need to do is to register a history handle to your front-end code.\n\n* Optimized JS output \nThe JS output will not contain \"IF IE DO THIS\" kind of code. GWT generates output for different browsers and serves them depending on the browser type.","timestamp":"2009-05-31T07:04:46+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8055b23cb9a31bf1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_249451e2b0932936","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09wu26","thanks_reply_id":"c09x2ui","post_score":21,"answer_score":28,"preferred_answer_is_top_level":true}} {"user_id":"anon_dc14b6e2e53eedb1","answerer_user_id":"anon_cc319b2b11ee6453","subreddit":"programming","timestamp":"2009-05-30T11:58:51+00:00","post_id":"8ogb9","question":"Wanna learn something different: Haskell or PLT Scheme (comment inside)?","preferred_answer":"I do not know Haskell but heres why I think PLT Scheme is a good choice:\r\n\r\n 1. Really Good Documentations \r\nhttp://download.plt-scheme.org/doc/html/\r\n\r\n 2. DrScheme \r\n DrScheme is an amazing programming environment that comes with a compiler, stepper, syntax checkers, REPL, myriad of languages support and is extensible. This makes the entire experience fun. See some [screenshots](http://plt-scheme.org/screenshots/)\r\n\r\n 3. Good Support from the community. \r\nThe community is very enthusiastic about their language and very supportive too. If you have any questions, mailing lists, groups and forums are available. Even the authors are very very accessible.\r\n\r\n 4. Continuing Research \r\nPLT is very active and continue to make their tool better and better. You can expect a lot of innovations from the labs. eg. Im pretty excited about using this: http://blog.plt-scheme.org/2009/05/typed-scheme-20.html\r\n\r\n 5. Free Books and interesting tutorials to get you started. \r\nhttp://www.htdp.org/ \r\nhttp://world.cs.brown.edu/\r\n\r\n 6. Good modules and extensive libraries. \r\nhttp://www.cs.utah.edu/plt/develop/ \r\nhttp://planet.plt-scheme.org/ \r\nalso see [docs](http://docs.plt-scheme.org/)\r\n\r\nGive [PLT Scheme](http://download.plt-scheme.org/) a try. \r\n\r\nEdit: Btw have you seen [this article](http://scienceblogs.com/goodmath/2006/10/haskell_and_scheme_which_one_a.php)","full_conversation":[{"role":"OP","user_id":"anon_dc14b6e2e53eedb1","comment_id":"8ogb9","kind":"post","text":"Wanna learn something different: Haskell or PLT Scheme (comment inside)?","timestamp":"2009-05-30T11:58:51+00:00","score":11},{"role":"answerer","user_id":"anon_cc319b2b11ee6453","comment_id":"c09yasz","kind":"comment","text":"I do not know Haskell but heres why I think PLT Scheme is a good choice:\r\n\r\n 1. Really Good Documentations \r\nhttp://download.plt-scheme.org/doc/html/\r\n\r\n 2. DrScheme \r\n DrScheme is an amazing programming environment that comes with a compiler, stepper, syntax checkers, REPL, myriad of languages support and is extensible. This makes the entire experience fun. See some [screenshots](http://plt-scheme.org/screenshots/)\r\n\r\n 3. Good Support from the community. \r\nThe community is very enthusiastic about their language and very supportive too. If you have any questions, mailing lists, groups and forums are available. Even the authors are very very accessible.\r\n\r\n 4. Continuing Research \r\nPLT is very active and continue to make their tool better and better. You can expect a lot of innovations from the labs. eg. Im pretty excited about using this: http://blog.plt-scheme.org/2009/05/typed-scheme-20.html\r\n\r\n 5. Free Books and interesting tutorials to get you started. \r\nhttp://www.htdp.org/ \r\nhttp://world.cs.brown.edu/\r\n\r\n 6. Good modules and extensive libraries. \r\nhttp://www.cs.utah.edu/plt/develop/ \r\nhttp://planet.plt-scheme.org/ \r\nalso see [docs](http://docs.plt-scheme.org/)\r\n\r\nGive [PLT Scheme](http://download.plt-scheme.org/) a try. \r\n\r\nEdit: Btw have you seen [this article](http://scienceblogs.com/goodmath/2006/10/haskell_and_scheme_which_one_a.php)","timestamp":"2009-05-31T18:43:34+00:00","score":5},{"role":"OP","user_id":"anon_dc14b6e2e53eedb1","comment_id":"c09ztpf","kind":"comment","text":"Thanks kunjaan. Which language pack do you suggest? Should I use the *advanced student* from *How To Design Programs*? I'd like to have a \"complete\" environment since the beginning.\nOh, the article from scienceblogs.com looks interesting, I'm gonna read it right now!","timestamp":"2009-06-02T15:15:29+00:00","score":1},{"role":"answerer","user_id":"anon_cc319b2b11ee6453","comment_id":"c09zuhy","kind":"comment","text":"Since I started with HtDP, I used BSL and went to ASL. If you want the standard implementation then R5RS is good, but it doesnt have PLT's extensions to the language. Right now I just use the Module (#lang scheme).\r\n\r\nThere was an interesting discussion regarding various languages somewhere in comp.lang.scheme. I strongly urge you to join this group. Lot of PLT's researchers and the standard commitee's members are very active there.They will definitely welcome your questions and give you a better response .","timestamp":"2009-06-02T15:38:26+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_dc14b6e2e53eedb1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cc319b2b11ee6453","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c09yasz","thanks_reply_id":"c09ztpf","post_score":11,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_f37c7573a2ac32e5","answerer_user_id":"anon_6118959b6dfc70e4","subreddit":"programming","timestamp":"2009-06-08T05:10:44+00:00","post_id":"8qm86","question":"Is it possible to use same domain name for two servers with some setup? I will explain the question in the detail in comment due to space constraint.","preferred_answer":"As I understand it, your main domain is on a server where you have no PHP, and you need to show something done in PHP. Two quick and nasty solutions come to mind.\n\n1. An iframe, cheap and easy, but frowned upon. This is one of those few cases where I'd actually consider it... but I don't know the security implications for what you are trying to do. (Sessions, direct access, etc.). Some .htaccess magic could make sure that the page is only opened when linked to from the main domain.\n\n2. A subdomain that points to the PHP-enabled server. Probably more elegant but a little more work, and I don't know if you actually have DNS control of the main domain.\n\nWhat I would actually do:\n\n3. Just install php on the main server, it's not that hard. Or move the whole thing to a server with PHP.\n\nEdit: p.s. You know that a form action does not necessarily have to be hosted on the server that has the form, right? You can point the form to be processed elsewhere. If I had more specific information, I might be able to help out.","full_conversation":[{"role":"OP","user_id":"anon_f37c7573a2ac32e5","comment_id":"8qm86","kind":"post","text":"Is it possible to use same domain name for two servers with some setup? I will explain the question in the detail in comment due to space constraint.","timestamp":"2009-06-08T05:10:44+00:00","score":0},{"role":"answerer","user_id":"anon_6118959b6dfc70e4","comment_id":"c0a4o42","kind":"comment","text":"As I understand it, your main domain is on a server where you have no PHP, and you need to show something done in PHP. Two quick and nasty solutions come to mind.\n\n1. An iframe, cheap and easy, but frowned upon. This is one of those few cases where I'd actually consider it... but I don't know the security implications for what you are trying to do. (Sessions, direct access, etc.). Some .htaccess magic could make sure that the page is only opened when linked to from the main domain.\n\n2. A subdomain that points to the PHP-enabled server. Probably more elegant but a little more work, and I don't know if you actually have DNS control of the main domain.\n\nWhat I would actually do:\n\n3. Just install php on the main server, it's not that hard. Or move the whole thing to a server with PHP.\n\nEdit: p.s. You know that a form action does not necessarily have to be hosted on the server that has the form, right? You can point the form to be processed elsewhere. If I had more specific information, I might be able to help out.","timestamp":"2009-06-08T06:10:08+00:00","score":2},{"role":"OP","user_id":"anon_f37c7573a2ac32e5","comment_id":"c0a4o88","kind":"comment","text":"Thanks for the reply. It is not possible to install php on main server as the hosting company is not having that option.\n\nI will think about implementing your other suggestion. i-e moving while thing to a server with php. But the thing is domain name of non-php server will look good that the other.\n\nI hope there will be some way to change the domain name also. But I am not sure whether it will affect any search engine ranking.","timestamp":"2009-06-08T06:16:17+00:00","score":1},{"role":"answerer","user_id":"anon_6118959b6dfc70e4","comment_id":"c0a4oa3","kind":"comment","text":"A hosting company with no php these days? ... Move the whole thing.\n\nAs long as you have DNS control (i.e., you OWN the domain), moving it to a new server is trivial, as is creating subdomains that point elsewhere.\n\nOh, and as long as you move the whole thing and keep the same URIs, you should not lose any page ranking at all.","timestamp":"2009-06-08T06:19:53+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f37c7573a2ac32e5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6118959b6dfc70e4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0a4o42","thanks_reply_id":"c0a4o88","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_99b9b678e5fdd4b7","answerer_user_id":"anon_be12453c8b82aca3","subreddit":"programming","timestamp":"2009-06-10T01:58:47+00:00","post_id":"8r7m9","question":"Anyone mind commenting on my large table visualization plugin for jQuery?","preferred_answer":"Yeah, my only quip with it is the hover delay as well.\n\nIt would be nice if you can set the hover_delay of your bullseye/table when you're setting it up, something like:\n\n $('div#bullseye').bullseye({\n 'use_rows': 3,\n 'use_cols': 3,\n 'hover_delay': 2,\n });\n\nMaybe?","full_conversation":[{"role":"OP","user_id":"anon_99b9b678e5fdd4b7","comment_id":"8r7m9","kind":"post","text":"Anyone mind commenting on my large table visualization plugin for jQuery?","timestamp":"2009-06-10T01:58:47+00:00","score":4},{"role":"answerer","user_id":"anon_be12453c8b82aca3","comment_id":"c0a6r14","kind":"comment","text":"Yeah, my only quip with it is the hover delay as well.\n\nIt would be nice if you can set the hover_delay of your bullseye/table when you're setting it up, something like:\n\n $('div#bullseye').bullseye({\n 'use_rows': 3,\n 'use_cols': 3,\n 'hover_delay': 2,\n });\n\nMaybe?","timestamp":"2009-06-10T13:55:43+00:00","score":1},{"role":"OP","user_id":"anon_99b9b678e5fdd4b7","comment_id":"c0a6x6c","kind":"comment","text":"Thanks, [see this](http://www.reddit.com/r/programming/comments/8r7m9/anyone_mind_commenting_on_my_large_table/c0a6x46)","timestamp":"2009-06-10T17:13:58+00:00","score":1},{"role":"answerer","user_id":"anon_be12453c8b82aca3","comment_id":"c0a6ybj","kind":"comment","text":"Well done","timestamp":"2009-06-10T17:48:02+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_99b9b678e5fdd4b7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_be12453c8b82aca3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0a6r14","thanks_reply_id":"c0a6x6c","post_score":4,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_22c51c87ca038dcc","answerer_user_id":"anon_809e09cbace654d6","subreddit":"programming","timestamp":"2009-06-12T18:31:58+00:00","post_id":"8s1yj","question":"Ask reddit: Is it bad to tell a recruiter about others you are working with?","preferred_answer":"I have worked in Recruitment for almost 5 years and can tell you that you need to remember only 2 things when dealing with a Recruiter:\n\n* They are not there to find a job for you - They are there to find *you* for the job.\n* Never, ever, ever tell them about any other potential jobs you have lined up. \n\nThe reason for the second point is a practice known as 'lead farming'. They basically ask you which companies you are applying to or working with, so they can call that company 10 minutes later and submit several CVs / Résumés to that role. A large percentage of them will in-fact mention your name and voice their concerns about your reliability - to increase the chances of their candidates getting the job.\n\nTo give you an idea of their incentives for such behaviour: Successfully placing you in a £30k / $50k job would yield anywhere up to £2250 / $3750 in commission. Often the promise of great riches leads to morals being left at the door.\n\nThere are a reasonable amount of decent Recruitment agents out there but the underbelly is both seedy and considerable in size.\n\nHope this helps and doesn't put the frighteners on too much!\n\nFeel free to PM me if you are having any trouble with your applications / résumé or dealing with Recruiters. I recently left the industry to pursue a dream but would be more than happy to help :-)","full_conversation":[{"role":"OP","user_id":"anon_22c51c87ca038dcc","comment_id":"8s1yj","kind":"post","text":"Ask reddit: Is it bad to tell a recruiter about others you are working with?","timestamp":"2009-06-12T18:31:58+00:00","score":16},{"role":"answerer","user_id":"anon_809e09cbace654d6","comment_id":"c0a8xl0","kind":"comment","text":"I have worked in Recruitment for almost 5 years and can tell you that you need to remember only 2 things when dealing with a Recruiter:\n\n* They are not there to find a job for you - They are there to find *you* for the job.\n* Never, ever, ever tell them about any other potential jobs you have lined up. \n\nThe reason for the second point is a practice known as 'lead farming'. They basically ask you which companies you are applying to or working with, so they can call that company 10 minutes later and submit several CVs / Résumés to that role. A large percentage of them will in-fact mention your name and voice their concerns about your reliability - to increase the chances of their candidates getting the job.\n\nTo give you an idea of their incentives for such behaviour: Successfully placing you in a £30k / $50k job would yield anywhere up to £2250 / $3750 in commission. Often the promise of great riches leads to morals being left at the door.\n\nThere are a reasonable amount of decent Recruitment agents out there but the underbelly is both seedy and considerable in size.\n\nHope this helps and doesn't put the frighteners on too much!\n\nFeel free to PM me if you are having any trouble with your applications / résumé or dealing with Recruiters. I recently left the industry to pursue a dream but would be more than happy to help :-)","timestamp":"2009-06-12T18:55:57+00:00","score":32},{"role":"OP","user_id":"anon_22c51c87ca038dcc","comment_id":"c0a8yhb","kind":"comment","text":"Thanks for the info. Here's a follow-up: how to gracefully handle the questions then? I still want to appear favorable to these people, but when they ask what should I say? Just tell them I have no other leads? Or say \"I'd rather not say?\" What other tips do you have as a job seeker trying to manage being contacted by all these recruiters?","timestamp":"2009-06-12T19:21:52+00:00","score":6},{"role":"answerer","user_id":"anon_809e09cbace654d6","comment_id":"c0a8zsw","kind":"comment","text":"Recruiters are trained to push you on this. Regardless of your answer (short of telling them to mind their own business) they will, more than likely, push you on the matter several times. I'll offer some tips below to make your job search a more pleasant one.\n\n-----\n\nCall Recruiters by name whenever you speak to them (this generates consequence and takes them out of their comfort zone - you will notice a much greater level of attention being paid)\n\n-----\n\nIf you are faced with your original question, try something along the lines of \"I like to keep my cards close to my chest until I've found the right job\". As I say, they **will** push you on this. Just repeat variations of your initial statement and they will drop the subject with little or no consequence to you.\n\n-----\n\nIf you see a job you like, don't be lazy. Your CV / Résumé should look different for **every single** application you make. The reason for this is because you should be getting the job spec before you apply, or asking for the spec from the Recruiter before you permit them to send your CV / Résumé. Then, sit down and answer each individual requirement on the spec (do you have this skill / attribute? If so what is your proficiency and where did you acquire this skill?) and turn it into either a well written summary or bullet point set of personal skills / attributes. This should be at the top of your CV / Résumé. If you can't comfortably answer at least 60% of the main requirements, you should question your reasons for applying in the first place. If you do have 60%+ of the skills required and skilfully indicate this in a summary on the first page of your résumé, you are very likely to secure an interview.\n\n-----\n\nHiring Managers have neither the time nor the inclination to read your full job history, so make it easy for them in this format for every single job you’ve had: \n\n* Clear ‘from’ and ‘to’ dates and job title\n* Job description (“I was responsible for” It’s important to show that you have confidence in your yourself and can be clear about your actual responsibilities)\n* Achievements (anything from good client feedback to internal awards / meeting deadlines etc)\n* Reasons for leaving (Never be negative. Ever. Put a positive spin on as much as you can).\n* List of Skills / systems used (and proficiency). This creates a nice shit sandwich for every role. Starting with a description and your achievements, then the often shitty reason for leaving and cleaning up the taste with a nice set of appropriate skills along with your level of proficiency.\n\n-----\n\nThis is really just a sample. You’ll learn a lot by trial and error. Job seeking is often a draining and tiresome endeavour – Recruiters should be there to make it easier, but they’re not.\n\nAlso, if you haven’t already, sign up to a job search engine. Which country are you searching in? – I can give you links to a few regional search engines and tools that will help you.","timestamp":"2009-06-12T20:04:00+00:00","score":25}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_22c51c87ca038dcc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_809e09cbace654d6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0a8xl0","thanks_reply_id":"c0a8yhb","post_score":16,"answer_score":32,"preferred_answer_is_top_level":true}} {"user_id":"anon_b01da386a69d4023","answerer_user_id":"anon_5b11c5de8e629aa0","subreddit":"programming","timestamp":"2009-06-19T10:42:14+00:00","post_id":"8tv1o","question":"How to start using Git?\n\nSo, we are a team of 4 people, and we began a new project. We need some sort of version controle and we went with git. The problem is that we dont know much about version control and nothing about how git functions. I know that git is a distributed version control system, but how can we configure git so that we can come together and share our code? I don't know if anything what I said makes sence, but I hope you understand.","preferred_answer":"Read a tutorial ([this](http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html), for example), then look for [tips and hints](http://gitready.com/). There is also the [Git Community Book](http://book.git-scm.com/).\n\nAs for sharing you either want [GitHub](http://github.com/) or a local TCP (git-daemon), SSH or HTTP server.","full_conversation":[{"role":"OP","user_id":"anon_b01da386a69d4023","comment_id":"8tv1o","kind":"post","text":"How to start using Git?\n\nSo, we are a team of 4 people, and we began a new project. We need some sort of version controle and we went with git. The problem is that we dont know much about version control and nothing about how git functions. I know that git is a distributed version control system, but how can we configure git so that we can come together and share our code? I don't know if anything what I said makes sence, but I hope you understand.","timestamp":"2009-06-19T10:42:14+00:00","score":0},{"role":"answerer","user_id":"anon_5b11c5de8e629aa0","comment_id":"c0aes7l","kind":"comment","text":"Read a tutorial ([this](http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html), for example), then look for [tips and hints](http://gitready.com/). There is also the [Git Community Book](http://book.git-scm.com/).\n\nAs for sharing you either want [GitHub](http://github.com/) or a local TCP (git-daemon), SSH or HTTP server.","timestamp":"2009-06-19T11:56:59+00:00","score":1},{"role":"OP","user_id":"anon_b01da386a69d4023","comment_id":"c0aetdy","kind":"comment","text":"thanks for the tips...i'll try those out. If we want to share code over the internet, do we need a server?","timestamp":"2009-06-19T13:06:00+00:00","score":0},{"role":"answerer","user_id":"anon_5b11c5de8e629aa0","comment_id":"c0aeyyl","kind":"comment","text":"Yes, though you can always resort to sending and recieving patches through email. Here is an [instruction](http://gitready.com/intermediate/2009/01/24/sharing-your-changes.html) how to set up a server.","timestamp":"2009-06-19T16:20:02+00:00","score":1},{"role":"OP","user_id":"anon_b01da386a69d4023","comment_id":"c0af0q8","kind":"comment","text":"ok..I'll try it...Thanks","timestamp":"2009-06-19T17:09:27+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b01da386a69d4023","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5b11c5de8e629aa0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0aes7l","thanks_reply_id":"c0aetdy","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_17d93b3e93059e01","answerer_user_id":"anon_86ea27774b02896d","subreddit":"programming","timestamp":"2009-06-22T05:46:36+00:00","post_id":"8uhat","question":"can someone w/ Vista 64bit help me out? Need wow64cpu.dll\n\nMy laptop keeps crashing because of a corrupted dll file (C:\\windows\\system32\\wow64cpu.dll). Can someone with a Vista 64 bit edition please help me out? My \"temp\" e-mail is temp@apoetry.com. \n\nThanks a lot!","preferred_answer":"See\n\nhttp://neosmart.net/blog/2008/windows-vista-recovery-disc-download/\n\nThese are also available direct from Microsoft, although I have misplaced that specific link.\n\nThis will allow you to do certain repair actions","full_conversation":[{"role":"OP","user_id":"anon_17d93b3e93059e01","comment_id":"8uhat","kind":"post","text":"can someone w/ Vista 64bit help me out? Need wow64cpu.dll\n\nMy laptop keeps crashing because of a corrupted dll file (C:\\windows\\system32\\wow64cpu.dll). Can someone with a Vista 64 bit edition please help me out? My \"temp\" e-mail is temp@apoetry.com. \n\nThanks a lot!","timestamp":"2009-06-22T05:46:36+00:00","score":0},{"role":"answerer","user_id":"anon_86ea27774b02896d","comment_id":"c0agzom","kind":"comment","text":"See\n\nhttp://neosmart.net/blog/2008/windows-vista-recovery-disc-download/\n\nThese are also available direct from Microsoft, although I have misplaced that specific link.\n\nThis will allow you to do certain repair actions","timestamp":"2009-06-22T06:01:33+00:00","score":1},{"role":"OP","user_id":"anon_17d93b3e93059e01","comment_id":"c0ah98n","kind":"comment","text":"Thank you. I'll try it out tonight, and will let you know how it goes.","timestamp":"2009-06-22T15:16:32+00:00","score":1},{"role":"answerer","user_id":"anon_86ea27774b02896d","comment_id":"c0ahej0","kind":"comment","text":"You are welcome\n\nlet's you do a system restore among other things.","timestamp":"2009-06-22T17:49:26+00:00","score":1},{"role":"OP","user_id":"anon_17d93b3e93059e01","comment_id":"c0ahwod","kind":"comment","text":"Thanks anyway Scientologist2, but I tried it out, didn't help. The auto-recover tool fails, and the manual option just gets me to the command prompt. Can't do a system restore, as I don't have the original disk, nor do I have a backup of the files. It does mount the file system correctly and I can access it via command prompt. I technically had access to the file system by mounting this drive onto an XP installation. \nI'm a fairly experienced technician. \n\nAnyway I think I still need the wow64cpu.dll sigh.","timestamp":"2009-06-23T03:37:53+00:00","score":1},{"role":"answerer","user_id":"anon_86ea27774b02896d","comment_id":"c0ahxcs","kind":"comment","text":"then you might be able to find it in one of the system recover folders.\n\nI believe the recover disk does give you the option to run system restor IF you had it enabled in the first place.\n\nAlso, another place to look may be in the dll cache, or in the service pack install file folder.\n\nIf you have a windows live cd, then you may be able to do a search and find it in an obscure folder.\n\nI also note that these seem to have some system variations based on hardware optimization. (AMD64 vs Intel, etc)\n\nI also wonder if the file is on the recovery CD itself. \n\nNote: 7zip can also extract the contents of a wim file, and the data is compressed in a boot.wim on the recovery CD\n\nEdit: just did a quick check, no such luck.\n\nanother option is to run it as a slave from your xp system, and see if you can do an undelete using one of the common undelete tools out there. You could get lucky.","timestamp":"2009-06-23T04:04:25+00:00","score":1},{"role":"OP","user_id":"anon_17d93b3e93059e01","comment_id":"c0akpkx","kind":"comment","text":"Solved - Ok, I was able to get the file from a computer at work. In the future, if someone runs across the same problem as me, you can find the file, that I posted here: http://www.apoetry.com/random_files/wow64cpu.dll keywords: bad image, 00007, corrupted file, windows won't boot. \n\nTo repair the system, which wouldn't boot into safe mode, I had to use the boot-disk from the top (although mounting the disk should work also) and replaced the wow64cpu.dll . Please note that you may have to take ownership of the file, in order to replace it, in the mounted-disk solution. (Look up permissions and ownership for XP). \n\nCheers.","timestamp":"2009-06-25T20:31:33+00:00","score":1},{"role":"answerer","user_id":"anon_86ea27774b02896d","comment_id":"c0akvmi","kind":"comment","text":"excellent news!\n\nGood work!","timestamp":"2009-06-25T23:27:33+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_17d93b3e93059e01","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_86ea27774b02896d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0agzom","thanks_reply_id":"c0ah98n","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_1d34495558fc4cb3","answerer_user_id":"anon_95a5db54e130031f","subreddit":"programming","timestamp":"2009-06-27T07:30:00+00:00","post_id":"8w4t6","question":"looking for a specific financial crisis story\n\nA few months ago there was a link posted to proggit, to a story about a guy who wrote some software to faciliate packaging mortgages and loans up (CMO, CMD, whatever you want to call them). I feel like it was a wired article, but I cannot find it. Also numerous google searches have turned up nothing for me. Can anyone help me?","preferred_answer":"Michael Osinski is the name.\n\n[article:](http://nymag.com/news/business/55687/)\n\n[posted in various reddits](http://www.reddit.com/submit?url=http%3A%2F%2Fnymag.com%2Fnews%2Fbusiness%2F55687%2F)","full_conversation":[{"role":"OP","user_id":"anon_1d34495558fc4cb3","comment_id":"8w4t6","kind":"post","text":"looking for a specific financial crisis story\n\nA few months ago there was a link posted to proggit, to a story about a guy who wrote some software to faciliate packaging mortgages and loans up (CMO, CMD, whatever you want to call them). I feel like it was a wired article, but I cannot find it. Also numerous google searches have turned up nothing for me. Can anyone help me?","timestamp":"2009-06-27T07:30:00+00:00","score":0},{"role":"answerer","user_id":"anon_95a5db54e130031f","comment_id":"c0am4xz","kind":"comment","text":"Michael Osinski is the name.\n\n[article:](http://nymag.com/news/business/55687/)\n\n[posted in various reddits](http://www.reddit.com/submit?url=http%3A%2F%2Fnymag.com%2Fnews%2Fbusiness%2F55687%2F)","timestamp":"2009-06-27T07:44:30+00:00","score":2},{"role":"OP","user_id":"anon_1d34495558fc4cb3","comment_id":"c0am58g","kind":"comment","text":"Thank you very much!","timestamp":"2009-06-27T08:05:28+00:00","score":1},{"role":"answerer","user_id":"anon_95a5db54e130031f","comment_id":"c0am5a4","kind":"comment","text":"you're welcome! glad I could help.","timestamp":"2009-06-27T08:08:37+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1d34495558fc4cb3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_95a5db54e130031f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0am4xz","thanks_reply_id":"c0am58g","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a96233ebb24a8d1f","answerer_user_id":"anon_dba60ecadd4985b5","subreddit":"programming","timestamp":"2009-06-28T16:17:41+00:00","post_id":"8werd","question":"Ubuntu \"Gutsy Gibbon apt-get has many 404s - is it \r\nbroken?\n\nI'm getting messages like:\r\n\r\nFailed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.40 80]\r\n\r\nThis started about a week ago.\r\n\r\nSo I wonder:\r\n\r\nIs G.G. still being supported?\r\n\r\nIs my configuration hosed?\r\n\r\nAre there server problems for Ubuntu?","preferred_answer":"http://www.ubuntu.com/news/ubuntu-7.10-eol","full_conversation":[{"role":"OP","user_id":"anon_a96233ebb24a8d1f","comment_id":"8werd","kind":"post","text":"Ubuntu \"Gutsy Gibbon apt-get has many 404s - is it \r\nbroken?\n\nI'm getting messages like:\r\n\r\nFailed to fetch http://us.archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.40 80]\r\n\r\nThis started about a week ago.\r\n\r\nSo I wonder:\r\n\r\nIs G.G. still being supported?\r\n\r\nIs my configuration hosed?\r\n\r\nAre there server problems for Ubuntu?","timestamp":"2009-06-28T16:17:41+00:00","score":0},{"role":"answerer","user_id":"anon_dba60ecadd4985b5","comment_id":"c0an6nu","kind":"comment","text":"http://www.ubuntu.com/news/ubuntu-7.10-eol","timestamp":"2009-06-28T18:56:25+00:00","score":1},{"role":"OP","user_id":"anon_a96233ebb24a8d1f","comment_id":"c0an6um","kind":"comment","text":"Thank you!\r\n\r\nOkay, joke's on me, so it's time to upgrade.\r\n\r\nJust to add to the LULZ, I go the page you suggested, click the link for upgrade instructions and caveats, and the page doesn't exist.\r\n\r\nHowever, this page does exist:\r\n\r\nhttps://help.ubuntu.com/community/HardyUpgrades","timestamp":"2009-06-28T19:04:35+00:00","score":1},{"role":"answerer","user_id":"anon_dba60ecadd4985b5","comment_id":"c0an7hx","kind":"comment","text":"Yeah, I thought the non-existent upgrade HOWTO was the best.","timestamp":"2009-06-28T19:31:35+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a96233ebb24a8d1f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dba60ecadd4985b5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0an6nu","thanks_reply_id":"c0an6um","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_6ac92c0a4cbc9223","answerer_user_id":"anon_1347bb14f0310728","subreddit":"programming","timestamp":"2009-06-30T11:53:25+00:00","post_id":"8wxw0","question":"reddit help me choose a new public torrent tracker to replace pirate bay\n\nI LOOOVE pirate bay but looks like we need new options. (At least as a back up). Come on reddit, help me by voting up or posting the best alternatives. \n\nNote that (apparently) http://isohunt.com, http://btjunkie.org, http://torrentz.com are 'public search engines'. What I need is a 'public tracker' not somewhere that links out to somewhere else but a community of good trackers without ads.. ie... pirate bay, but not... \n\nGo to it! And Thanks.\n\nCan anyone help me?","preferred_answer":"wow....touche! I have no response! (except maybe an upvote is deserved for making you laugh/think/annoyed?)\n\nI think that both you and OP now deserve an invite code (if you want)","full_conversation":[{"role":"OP","user_id":"anon_6ac92c0a4cbc9223","comment_id":"8wxw0","kind":"post","text":"reddit help me choose a new public torrent tracker to replace pirate bay\n\nI LOOOVE pirate bay but looks like we need new options. (At least as a back up). Come on reddit, help me by voting up or posting the best alternatives. \n\nNote that (apparently) http://isohunt.com, http://btjunkie.org, http://torrentz.com are 'public search engines'. What I need is a 'public tracker' not somewhere that links out to somewhere else but a community of good trackers without ads.. ie... pirate bay, but not... \n\nGo to it! And Thanks.\n\nCan anyone help me?","timestamp":"2009-06-30T11:53:25+00:00","score":0},{"role":"answerer","user_id":"anon_1347bb14f0310728","comment_id":"c0aoxcj","kind":"comment","text":"wow....touche! I have no response! (except maybe an upvote is deserved for making you laugh/think/annoyed?)\n\nI think that both you and OP now deserve an invite code (if you want)","timestamp":"2009-06-30T12:25:13+00:00","score":1},{"role":"OP","user_id":"anon_6ac92c0a4cbc9223","comment_id":"c0apecc","kind":"comment","text":"yes please.. apologies btw for messing up the OP .. and incidentally thanks to all who bothered to comment even mr 6 reasons i suck","timestamp":"2009-06-30T20:29:18+00:00","score":3},{"role":"answerer","user_id":"anon_1347bb14f0310728","comment_id":"c0apkkj","kind":"comment","text":"well, in the end, you ended up with a 0 karma, so no harm done in the long run :D","timestamp":"2009-06-30T23:45:39+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6ac92c0a4cbc9223","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1347bb14f0310728","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0aoxcj","thanks_reply_id":"c0apecc","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_4e736ef703db231e","answerer_user_id":"anon_f7fd5c09bcaa3166","subreddit":"programming","timestamp":"2009-07-01T21:11:28+00:00","post_id":"8xf23","question":"my hosting for 4 sites expires in 1 week - what cheap webhost would you suggest reddit?\n\nlooking for a dependable webhost for shared hosting for 4 domains. the only criteria is the site has to be fast (low latency for MySQL queries) for a fast wordpress site.","preferred_answer":"I've had really good experience with http://hosting.mymarkdown.com. Their cheapest server is $2/month.","full_conversation":[{"role":"OP","user_id":"anon_4e736ef703db231e","comment_id":"8xf23","kind":"post","text":"my hosting for 4 sites expires in 1 week - what cheap webhost would you suggest reddit?\n\nlooking for a dependable webhost for shared hosting for 4 domains. the only criteria is the site has to be fast (low latency for MySQL queries) for a fast wordpress site.","timestamp":"2009-07-01T21:11:28+00:00","score":0},{"role":"answerer","user_id":"anon_f7fd5c09bcaa3166","comment_id":"c0aqpnv","kind":"comment","text":"I've had really good experience with http://hosting.mymarkdown.com. Their cheapest server is $2/month.","timestamp":"2009-07-02T03:15:04+00:00","score":1},{"role":"OP","user_id":"anon_4e736ef703db231e","comment_id":"c0ar5es","kind":"comment","text":"that seems scary cheap - i am looking in to them now. thanks","timestamp":"2009-07-02T15:31:03+00:00","score":1},{"role":"answerer","user_id":"anon_f7fd5c09bcaa3166","comment_id":"c0arv9u","kind":"comment","text":"I've been using them for a few years now. I use one of their [hosting specials](http://hosting.mymarkdown.com/specials/discount-web-hosting.html). Cost me a little over $25/year per domain. I'm happy with them.\n\nI'm not affiliated with this company, just a happy customer.","timestamp":"2009-07-03T05:47:04+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4e736ef703db231e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f7fd5c09bcaa3166","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0aqpnv","thanks_reply_id":"c0ar5es","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_656e0e080cc0b8ae","answerer_user_id":"anon_cead994f4e452ad8","subreddit":"programming","timestamp":"2009-07-05T00:44:28+00:00","post_id":"8y9u3","question":"Ask Proggit: Do you find yourself processing daily logic and choice with cognitive models similar to code?\n\nI recently started progr-- typing formulas into excel (just discovered arrays, i'm elated) and liked the concrete nature of the operations. I have a psychology degree so I'm generally interested as to how my mind is making choices or producing behavior. After a few days of constant work I found myself processing certain choices as if they were written code. I don't think my model itself changed, it was just another way to look at it. \n\nI don't know anyone who does a fair amount of programming so I thought I would ask you all how you felt about it. If you change languages for long enough does your cognitive model change? Do you combine or making use of certain 'commands' for certain situations? Do you ever think about any of this stuff?","preferred_answer":"I dream about Monads and Functors and related things now, instead of pointers and memory.\n\nI usually see a transitions between things like this in my dreams, and how I think about solving programming problems, but not in real life problems. I usually convert all problems into a visualization of something almost mechanical.\n\nI have been programming since I was extremely young, but I don't think I've ever related any sort of real-life algorithm such as a food recipe, or how to build a real life object into any sort of programming language.\n\nIn fact, I think most problems in can solve or think of in my head, real life or programming are always converted to a visualization in my mind of something nearly mechanical in nature. Being able to see a programming problem as moving pieces in my mind and this is what I think makes me good at programming and logic in general.\n\nThis kind of visualization is the same as what is in my dreams. Learning a different programming language or paradigm only changes what mechanical pieces I have to work with.","full_conversation":[{"role":"OP","user_id":"anon_656e0e080cc0b8ae","comment_id":"8y9u3","kind":"post","text":"Ask Proggit: Do you find yourself processing daily logic and choice with cognitive models similar to code?\n\nI recently started progr-- typing formulas into excel (just discovered arrays, i'm elated) and liked the concrete nature of the operations. I have a psychology degree so I'm generally interested as to how my mind is making choices or producing behavior. After a few days of constant work I found myself processing certain choices as if they were written code. I don't think my model itself changed, it was just another way to look at it. \n\nI don't know anyone who does a fair amount of programming so I thought I would ask you all how you felt about it. If you change languages for long enough does your cognitive model change? Do you combine or making use of certain 'commands' for certain situations? Do you ever think about any of this stuff?","timestamp":"2009-07-05T00:44:28+00:00","score":11},{"role":"answerer","user_id":"anon_cead994f4e452ad8","comment_id":"c0atab8","kind":"comment","text":"I dream about Monads and Functors and related things now, instead of pointers and memory.\n\nI usually see a transitions between things like this in my dreams, and how I think about solving programming problems, but not in real life problems. I usually convert all problems into a visualization of something almost mechanical.\n\nI have been programming since I was extremely young, but I don't think I've ever related any sort of real-life algorithm such as a food recipe, or how to build a real life object into any sort of programming language.\n\nIn fact, I think most problems in can solve or think of in my head, real life or programming are always converted to a visualization in my mind of something nearly mechanical in nature. Being able to see a programming problem as moving pieces in my mind and this is what I think makes me good at programming and logic in general.\n\nThis kind of visualization is the same as what is in my dreams. Learning a different programming language or paradigm only changes what mechanical pieces I have to work with.","timestamp":"2009-07-05T01:00:14+00:00","score":5},{"role":"OP","user_id":"anon_656e0e080cc0b8ae","comment_id":"c0atadi","kind":"comment","text":"Have you solved a real life programming problem through a dream? Are you working on current programs in the dreams or are they more abstract? Or do you solve meaningless problems, random numbers and concepts piled into the dream?","timestamp":"2009-07-05T01:02:52+00:00","score":3},{"role":"answerer","user_id":"anon_cead994f4e452ad8","comment_id":"c0av07x","kind":"comment","text":"There are a few times I can remember solving something in a dream that I was going to have to figure out the next morning at work. \n\nI can remember the last time, when I got to work it actually felt very much like I was being made to do the work twice, and I did use the same approach as in my dream.\n\nMost of the time any dreams about programming are pretty abstract and just visualizations about how data structures fit together, or like you said, random meaningless problems, queues, linked lists, trees, loops or flattened out recursion, stuff that is hard to describe.","timestamp":"2009-07-07T00:43:14+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_656e0e080cc0b8ae","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cead994f4e452ad8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0atab8","thanks_reply_id":"c0atadi","post_score":11,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_6570896f6a804f78","answerer_user_id":"anon_5c4b9e601ba994b3","subreddit":"programming","timestamp":"2009-07-14T05:01:36+00:00","post_id":"90yd2","question":"How do I prepare for an interview for a QA position\n\nI've scheduled an interview for a QA position, when I was told I had all the skills necessary even though I have next to no QA experience (I have a CS degree and a few short jobs working in the .NET framework), how do I prepare for the interview?","preferred_answer":"* Just off the top of my head: understand the difference between the various types of testings: sanity, regression, black box, unit testing, etc.\n\n\n* More nomenclature to be familiar with (If the person interviewing you is a stickler, he may be dickish about properly \"defining\" the terms): Test plan, test case, test specification, test documentation, bug report.\n\n\n* Look at the login screen of your yahoomail/gmail account, and write some test cases in a formal manner i.e you should be able to succinctly but sufficiently describe the tests and the expected outcomes, and the potential bug you uncovered too if submitted a bug report.\n\n\n* Familiarize yourself superficially with some of the automated testing programs/scripting languages out there.\n\n\nIf this is your first job, or you really need a job right now, then good luck to you! Otherwise, keep in mind that QA is essentially a thankless job, literally speaking. When you find a bug, developers will be annoyed. If you miss a bug, and product is released, developers will be annoyed. A large portion of your time may be involved in just writing test documentation in MS Word, and performing the same tests manually with mouse clicks over and over and over and over and over and over again....","full_conversation":[{"role":"OP","user_id":"anon_6570896f6a804f78","comment_id":"90yd2","kind":"post","text":"How do I prepare for an interview for a QA position\n\nI've scheduled an interview for a QA position, when I was told I had all the skills necessary even though I have next to no QA experience (I have a CS degree and a few short jobs working in the .NET framework), how do I prepare for the interview?","timestamp":"2009-07-14T05:01:36+00:00","score":0},{"role":"answerer","user_id":"anon_5c4b9e601ba994b3","comment_id":"c0b2avf","kind":"comment","text":"* Just off the top of my head: understand the difference between the various types of testings: sanity, regression, black box, unit testing, etc.\n\n\n* More nomenclature to be familiar with (If the person interviewing you is a stickler, he may be dickish about properly \"defining\" the terms): Test plan, test case, test specification, test documentation, bug report.\n\n\n* Look at the login screen of your yahoomail/gmail account, and write some test cases in a formal manner i.e you should be able to succinctly but sufficiently describe the tests and the expected outcomes, and the potential bug you uncovered too if submitted a bug report.\n\n\n* Familiarize yourself superficially with some of the automated testing programs/scripting languages out there.\n\n\nIf this is your first job, or you really need a job right now, then good luck to you! Otherwise, keep in mind that QA is essentially a thankless job, literally speaking. When you find a bug, developers will be annoyed. If you miss a bug, and product is released, developers will be annoyed. A large portion of your time may be involved in just writing test documentation in MS Word, and performing the same tests manually with mouse clicks over and over and over and over and over and over again....","timestamp":"2009-07-14T05:24:15+00:00","score":7},{"role":"OP","user_id":"anon_6570896f6a804f78","comment_id":"c0b2b1j","kind":"comment","text":"Thanks, can you give me more info on how to write test cases for my gmail account (or some other tests), I don't even know what program I'd use.","timestamp":"2009-07-14T05:31:03+00:00","score":1},{"role":"answerer","user_id":"anon_5c4b9e601ba994b3","comment_id":"c0b2bcz","kind":"comment","text":"It's really not that hard, mostly just common sense, sometimes to the point of being so obtusely obvious that it seems asinine. You can automate the tests, but more than likely it will be manual and documented in MS Word, at least for the first testing iterations. For your email login:\n\n* Testcase 1: provide valid login ID and valid password\n\nExpected result: logged in successfully\n\n* Testcase 2: provide valid login ID and invalid password\n\nExpected result: login rejected \n\n* Testcase 3: provide invalid login ID and some valid password\n\nExpected result: login rejected\n\n* Testcase 4: provide no login ID and some valid password\n\nExpected result: login rejected\n\netc, etc.","timestamp":"2009-07-14T05:45:25+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6570896f6a804f78","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5c4b9e601ba994b3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0b2avf","thanks_reply_id":"c0b2b1j","post_score":0,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_554dfa212a04b826","answerer_user_id":"anon_a1d9edb20dbb1ed5","subreddit":"programming","timestamp":"2009-07-15T20:04:44+00:00","post_id":"91j2o","question":"Dear Proggit: How did you get into the field that you are in?\n\nI am at somewhat of a crossroads in life. I have been doing web dev for a few years now (im 18, started when I was 15) and I have a lot of fun with it. I suck at design, but I'm getting pretty good at web-apps and things of those sorts. But it is starting to hit me, that web isn't everything and I should probably look into things like C++ / Java / Python. I took 3 years of schooling during highschool for network admin stuff, and loved that as well.\n\nI spend the last 2 or 3 weeks teaching myself python, and just feel that everything that I have learned how to do, can be easily accomplished with my js/php skills (with obvious pros and cons of each) and am starting to feel that I should just stick with my web stuff and expand my knowledge in them.\n\nI really enjoy doing stuff in linux, as well as screwing around with things such as active directory, but am not sure if thats what I want to focus on for my career. I am just as much on the fence about if I want to do programming for my career, and if so, what languages / types?\n\nWhat I am trying to get to here is, did any of you find yourself asking the same sort of questions, and how did you figure out what you wanted to go into?\n\nMany people have told me that since I am fairly knowledgeable in so many areas (networking, programming, etc) that I should look into getting a management position somewhere, or at least go to school for management. What are your thoughts? Thanks!","preferred_answer":"I am also 21 and was in the OP's shoes.\n\nI thought I didn't want to program for the rest of my life. Everyone made it seem like it would be something I'd hate, something that would burn me out and not make much money. I thought I'd just be a code monkey.\n\nAnd maybe I will end up a code monkey someday. But I am not going to listen to those people right now, I'm too busy making my own future starting a software company.\n\nIf you love doing it, keep doing it. \n\nAnd go to college, and DON'T just stick with js/php. Forget that shit for now and learn C/++ on Linux and read this: http://www.advancedlinuxprogramming.com/ it will change the way you code.","full_conversation":[{"role":"OP","user_id":"anon_554dfa212a04b826","comment_id":"91j2o","kind":"post","text":"Dear Proggit: How did you get into the field that you are in?\n\nI am at somewhat of a crossroads in life. I have been doing web dev for a few years now (im 18, started when I was 15) and I have a lot of fun with it. I suck at design, but I'm getting pretty good at web-apps and things of those sorts. But it is starting to hit me, that web isn't everything and I should probably look into things like C++ / Java / Python. I took 3 years of schooling during highschool for network admin stuff, and loved that as well.\n\nI spend the last 2 or 3 weeks teaching myself python, and just feel that everything that I have learned how to do, can be easily accomplished with my js/php skills (with obvious pros and cons of each) and am starting to feel that I should just stick with my web stuff and expand my knowledge in them.\n\nI really enjoy doing stuff in linux, as well as screwing around with things such as active directory, but am not sure if thats what I want to focus on for my career. I am just as much on the fence about if I want to do programming for my career, and if so, what languages / types?\n\nWhat I am trying to get to here is, did any of you find yourself asking the same sort of questions, and how did you figure out what you wanted to go into?\n\nMany people have told me that since I am fairly knowledgeable in so many areas (networking, programming, etc) that I should look into getting a management position somewhere, or at least go to school for management. What are your thoughts? Thanks!","timestamp":"2009-07-15T20:04:44+00:00","score":7},{"role":"answerer","user_id":"anon_a1d9edb20dbb1ed5","comment_id":"c0b68lz","kind":"comment","text":"I am also 21 and was in the OP's shoes.\n\nI thought I didn't want to program for the rest of my life. Everyone made it seem like it would be something I'd hate, something that would burn me out and not make much money. I thought I'd just be a code monkey.\n\nAnd maybe I will end up a code monkey someday. But I am not going to listen to those people right now, I'm too busy making my own future starting a software company.\n\nIf you love doing it, keep doing it. \n\nAnd go to college, and DON'T just stick with js/php. Forget that shit for now and learn C/++ on Linux and read this: http://www.advancedlinuxprogramming.com/ it will change the way you code.","timestamp":"2009-07-17T19:46:35+00:00","score":3},{"role":"OP","user_id":"anon_554dfa212a04b826","comment_id":"c0b6kb0","kind":"comment","text":"Would you recommend C/++ over Python? Why?\n\nAnd thanks for the tips everyone!","timestamp":"2009-07-18T02:06:46+00:00","score":1},{"role":"answerer","user_id":"anon_a1d9edb20dbb1ed5","comment_id":"c0b7a2m","kind":"comment","text":"No. I just think you should have enough exposure with C because it will really change the way you program even in languages like Python. It's really important knowledge to have even if you don't end up using the language in practice. For all practical purposes I use python.","timestamp":"2009-07-19T01:20:39+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_554dfa212a04b826","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a1d9edb20dbb1ed5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0b68lz","thanks_reply_id":"c0b6kb0","post_score":7,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_eddfc93c7c391367","answerer_user_id":"anon_fafb625cefebdf25","subreddit":"programming","timestamp":"2009-07-17T14:09:11+00:00","post_id":"923k3","question":"I need to learn Python for my senior design project. Anyone have any good book suggestions?","preferred_answer":"Seems like this gets asked every day, so I did a search and here is one of the first results:\n\nhttp://www.reddit.com/r/programming/comments/6xsnm/10_free_python_programming_books/","full_conversation":[{"role":"OP","user_id":"anon_eddfc93c7c391367","comment_id":"923k3","kind":"post","text":"I need to learn Python for my senior design project. Anyone have any good book suggestions?","timestamp":"2009-07-17T14:09:11+00:00","score":0},{"role":"answerer","user_id":"anon_fafb625cefebdf25","comment_id":"c0b5vgt","kind":"comment","text":"Seems like this gets asked every day, so I did a search and here is one of the first results:\n\nhttp://www.reddit.com/r/programming/comments/6xsnm/10_free_python_programming_books/","timestamp":"2009-07-17T14:17:49+00:00","score":1},{"role":"OP","user_id":"anon_eddfc93c7c391367","comment_id":"c0b5vwp","kind":"comment","text":"Thanks I saw that earlier, but I was looking for suggestions about good books rather than just free ones, but I appreciate the help.","timestamp":"2009-07-17T14:30:22+00:00","score":0},{"role":"answerer","user_id":"anon_fafb625cefebdf25","comment_id":"c0b5wie","kind":"comment","text":"Free can also be good. Assuming you're not already an experienced programmer, you might try this one:\n\nhttp://www.swaroopch.com/notes/Python","timestamp":"2009-07-17T14:45:20+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_eddfc93c7c391367","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fafb625cefebdf25","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0b5vgt","thanks_reply_id":"c0b5vwp","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_c524916d7cd8a9cf","answerer_user_id":"anon_f370586346069072","subreddit":"programming","timestamp":"2009-07-17T20:46:38+00:00","post_id":"927l6","question":"WTF? Is anyone else getting an \"attack site\" warning from Firefox for softwareliberty.org?","preferred_answer":"At the end of the page are a couple hidden iframes for \"reycross.cn\" and \"reycross.net\".\r\n\r\nhttp://www.google.com/safebrowsing/diagnostic?site=reycross.cn \r\nhttp://www.google.com/safebrowsing/diagnostic?site=reycross.net\r\n\r\nare both indicated as \"intermediaries\" in distributing infections.","full_conversation":[{"role":"OP","user_id":"anon_c524916d7cd8a9cf","comment_id":"927l6","kind":"post","text":"WTF? Is anyone else getting an \"attack site\" warning from Firefox for softwareliberty.org?","timestamp":"2009-07-17T20:46:38+00:00","score":0},{"role":"answerer","user_id":"anon_f370586346069072","comment_id":"c0b6c4k","kind":"comment","text":"At the end of the page are a couple hidden iframes for \"reycross.cn\" and \"reycross.net\".\r\n\r\nhttp://www.google.com/safebrowsing/diagnostic?site=reycross.cn \r\nhttp://www.google.com/safebrowsing/diagnostic?site=reycross.net\r\n\r\nare both indicated as \"intermediaries\" in distributing infections.","timestamp":"2009-07-17T21:16:02+00:00","score":10},{"role":"OP","user_id":"anon_c524916d7cd8a9cf","comment_id":"c0b6c8n","kind":"comment","text":"Ah, I see that, thanks. Probably injected and the owner doesn't even know. I had to wget the page because Firefox's view source command doesn't work on that page. That's scary. Do you know why by any chance?","timestamp":"2009-07-17T21:19:25+00:00","score":2},{"role":"answerer","user_id":"anon_f370586346069072","comment_id":"c0b6cbi","kind":"comment","text":"It worked for me in both iceweasel and opera. So no. I'm guessing that the hidden iframes added some scripts that did it for you. And it looks like they give different results in different contexts to try to hide what's being injected.","timestamp":"2009-07-17T21:21:27+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c524916d7cd8a9cf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f370586346069072","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0b6c4k","thanks_reply_id":"c0b6c8n","post_score":0,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_c669445eca2dc311","answerer_user_id":"anon_a5cdc5b079e8c08f","subreddit":"programming","timestamp":"2009-07-21T18:50:04+00:00","post_id":"9393s","question":"I'm a programmer/musician and I'm interested in getting into adaptive music for video games. Is anyone aware of any open source projects for that out there, and if not, would anyone be interested in helping to start one?","preferred_answer":"Yeah, and it's patented, and the patents are openly available. It's also been reverse engineered a bunch of times by the ScummVM people, and would serve as a good starting point.","full_conversation":[{"role":"OP","user_id":"anon_c669445eca2dc311","comment_id":"9393s","kind":"post","text":"I'm a programmer/musician and I'm interested in getting into adaptive music for video games. Is anyone aware of any open source projects for that out there, and if not, would anyone be interested in helping to start one?","timestamp":"2009-07-21T18:50:04+00:00","score":23},{"role":"answerer","user_id":"anon_a5cdc5b079e8c08f","comment_id":"c0ba6gs","kind":"comment","text":"Yeah, and it's patented, and the patents are openly available. It's also been reverse engineered a bunch of times by the ScummVM people, and would serve as a good starting point.","timestamp":"2009-07-22T01:01:35+00:00","score":2},{"role":"OP","user_id":"anon_c669445eca2dc311","comment_id":"c0ba6qj","kind":"comment","text":"Cool, thanks.","timestamp":"2009-07-22T01:11:50+00:00","score":1},{"role":"answerer","user_id":"anon_a5cdc5b079e8c08f","comment_id":"c0bba7h","kind":"comment","text":"For the latest version of reverse-engineered iMuse (although incomplete if I recall), see the sources of a project called \"Residual\", also by the ScummVM people.\n\nAs all other ScummVM code, Residual's code looks like a bowl of pubes.\n\nGood luck.","timestamp":"2009-07-23T00:35:59+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c669445eca2dc311","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a5cdc5b079e8c08f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ba6gs","thanks_reply_id":"c0ba6qj","post_score":23,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_512ee47200738bbd","answerer_user_id":"anon_be37d5ef76d50e03","subreddit":"programming","timestamp":"2009-07-23T20:23:55+00:00","post_id":"93yw3","question":"Is Linux a practical OS for a non-programmer?\n\nI've read up on the many pros of a Linux system, but for someone who isn't looking to delve into source code, I'd love to hear the ups and downs from a more pragmatic perspective. Is it an easy OS to get used to? Does it compare in any significant ways to a Windows or MacOS? Is the learning curve sharp (programming/customizing wise)?\n\nThanks!\n\nEdit: Thanks for all your help /r/programming. I'm going to keep doing my research so I don't end up destroying my new computer, but I really appreciate many helpful pointers.","preferred_answer":"It's like mac OS, pretty much. You'll be fine.","full_conversation":[{"role":"OP","user_id":"anon_512ee47200738bbd","comment_id":"93yw3","kind":"post","text":"Is Linux a practical OS for a non-programmer?\n\nI've read up on the many pros of a Linux system, but for someone who isn't looking to delve into source code, I'd love to hear the ups and downs from a more pragmatic perspective. Is it an easy OS to get used to? Does it compare in any significant ways to a Windows or MacOS? Is the learning curve sharp (programming/customizing wise)?\n\nThanks!\n\nEdit: Thanks for all your help /r/programming. I'm going to keep doing my research so I don't end up destroying my new computer, but I really appreciate many helpful pointers.","timestamp":"2009-07-23T20:23:55+00:00","score":4},{"role":"answerer","user_id":"anon_be37d5ef76d50e03","comment_id":"c0bc8l6","kind":"comment","text":"It's like mac OS, pretty much. You'll be fine.","timestamp":"2009-07-23T20:27:54+00:00","score":2},{"role":"OP","user_id":"anon_512ee47200738bbd","comment_id":"c0bc8pu","kind":"comment","text":"Thanks for the quick response. Ideally I would like to learn to start customizing it myself (I've coded a little in the past, but nothing too crazy). Are there any good guides or resources that you would recommend?","timestamp":"2009-07-23T20:30:22+00:00","score":1},{"role":"answerer","user_id":"anon_be37d5ef76d50e03","comment_id":"c0bc8uq","kind":"comment","text":"[This will give you more than you need to know](http://www.reddit.com/r/programming/comments/8sfim/30_useful_unix_and_linux_tutorials_for_beginners/)","timestamp":"2009-07-23T20:33:07+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_512ee47200738bbd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_be37d5ef76d50e03","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bc8l6","thanks_reply_id":"c0bc8pu","post_score":4,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0fcca1c4542b2d60","answerer_user_id":"anon_b7185245d64181c4","subreddit":"programming","timestamp":"2009-07-25T07:06:03+00:00","post_id":"94exx","question":"Ask Reddit: Google Code, Sourceforge, GitHub, etc. or in-house (public) trac/svn. Which is best for commercial code about to be released under GPL?\n\nMy employers are making encouraging noises about releasing one of our smaller projects as open source code.\nThe business would like some web traffic in return. Is it better to host the code in-house (on a separate trac/svn VM)? What have other small companies done?\nHow flexible are the various public code-hosting providers in allowing links to commercial sites? Sourceforge seems to allow a project's website to be separately hosted from the project's code.\nIs Sourceforge as slow as it was three years ago?\nAre there other popular, fast and reliable code hosting sites (in addition to Google Code, Sourceforge and GitHub)?","preferred_answer":"I admit Git probably isn't very useful for playing outside, however if he intends to do some programming or any other creative task involving text based formats learning a modern system will save him lots of time in the future, more time for him to spend outside playing.","full_conversation":[{"role":"OP","user_id":"anon_0fcca1c4542b2d60","comment_id":"94exx","kind":"post","text":"Ask Reddit: Google Code, Sourceforge, GitHub, etc. or in-house (public) trac/svn. Which is best for commercial code about to be released under GPL?\n\nMy employers are making encouraging noises about releasing one of our smaller projects as open source code.\nThe business would like some web traffic in return. Is it better to host the code in-house (on a separate trac/svn VM)? What have other small companies done?\nHow flexible are the various public code-hosting providers in allowing links to commercial sites? Sourceforge seems to allow a project's website to be separately hosted from the project's code.\nIs Sourceforge as slow as it was three years ago?\nAre there other popular, fast and reliable code hosting sites (in addition to Google Code, Sourceforge and GitHub)?","timestamp":"2009-07-25T07:06:03+00:00","score":13},{"role":"answerer","user_id":"anon_b7185245d64181c4","comment_id":"c0be9yp","kind":"comment","text":"I admit Git probably isn't very useful for playing outside, however if he intends to do some programming or any other creative task involving text based formats learning a modern system will save him lots of time in the future, more time for him to spend outside playing.","timestamp":"2009-07-25T18:55:43+00:00","score":4},{"role":"OP","user_id":"anon_0fcca1c4542b2d60","comment_id":"c0bepyj","kind":"comment","text":"Thanks, I already use Git and like it, but at work we use SVN. If all the developers at work were familiar with Git, we would use GitHub in a flash. It would seem more straightforward to use an SVN repo.\nI haven't used half of the features of Git - does it have compelling benefits when the project is only ~2KLOC, no one else knows Git, and the project needs a central repo?","timestamp":"2009-07-26T06:35:56+00:00","score":1},{"role":"answerer","user_id":"anon_b7185245d64181c4","comment_id":"c0besvr","kind":"comment","text":"The most compelling \"feature\" I found is that you don't have to worry about anything but the contents of your commit when you commit, in particular you can make smaller commits whenever you either complete a single feature or reach a point you might want to return to. You do not have to worry about breaking other developer's build.\n\nYou do not have to worry about how your history will look once it is pushed to the server while you are working either because you can use git rebase -i to edit and squash commits later when you are done and add a more complete and structured commit message then.\n\nIn general your commit history tends to look a lot cleaner and is more usable for stuff like reverting a fix that is later found to cause trouble or for cherry-picking a fix from the development to the stable branch.","timestamp":"2009-07-26T09:24:33+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0fcca1c4542b2d60","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b7185245d64181c4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0be9yp","thanks_reply_id":"c0bepyj","post_score":13,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_702c04c0a47d0aa3","answerer_user_id":"anon_6fa7896054334b24","subreddit":"programming","timestamp":"2009-07-27T18:23:29+00:00","post_id":"9512q","question":"Proggit, how does the for and range() work in this situation in Python?\n\nPlease look at [this](http://docs.python.org/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops) example in the tutorial.\n\nHow does Python find the prime number?\n\nI understand that if it's `for n in range(2, 10):` and it gets to `for x in range(2, n):` with the `n` as 2, the list is empty because it can't count from 2 to 2 so it immediately goes to the `else` clause.\n\nHowever, how does it work if it's, for example, `for x in range(2, n)` with 3, or 5 as the `n`?\n\nDoes it go to `if n % x == 0:` and the `n` is for example 9, and it starts with 2 as per `for x in range(2, n):`? \n\nIf so, it's 1 because 9 % 2 = 1, but on the output it comes out as `9 equals 3 * 3` which only happens if it equals 0?\n\nPerhaps I'm looking at this too hard, but I can't quite wrap my head around this? How does the interpreter go through the `range()` list and identify which is a prime number or not?\n\nKeep in mind I'm a complete n00b and this is my first programming language, I'm just trying to keep learning.","preferred_answer":"So I am a bit confused about what your confused on but basically here is the flow:\n\n for n in range(2, 10):\n\nThis code loops through the numbers 2,3,4,5,6,7,8,9. For EACH number, n = that number and the following body of code is run.\n\n for x in range(2, n):\n\nThis code then sets up a new for loop going through the numbers 2...n. Each time the outer loop increments (eg. n goes from 2 to 3) a new inner loop is setup with the new n. So the first time it goes through it tests \"for x in range(2,2):\". The second time it goes through it tests \"for x in range(2,3):\" and so on.\n\nWithin the inner loop it checks to see if \"n % x == 0\". If that comes out as True, then the inner loop breaks which skips the \"else:\" section which comes after the inner loop. In the break case, the outer loop increments right away and a new inner loop is setup. If the remainder test evaluates to false, the break never occurs and the inner loop increments [x increments through the inner loops range(2, n)]. If the inner loop goes through all the numbers in the inner loop's \"range(2, n)\" without breaking then the \"else:\" statement is executed which says that n is a prime number. This is of course because n is not divisible by any number less than n (apart from n and 1).\n\nDoes that make sense?","full_conversation":[{"role":"OP","user_id":"anon_702c04c0a47d0aa3","comment_id":"9512q","kind":"post","text":"Proggit, how does the for and range() work in this situation in Python?\n\nPlease look at [this](http://docs.python.org/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops) example in the tutorial.\n\nHow does Python find the prime number?\n\nI understand that if it's `for n in range(2, 10):` and it gets to `for x in range(2, n):` with the `n` as 2, the list is empty because it can't count from 2 to 2 so it immediately goes to the `else` clause.\n\nHowever, how does it work if it's, for example, `for x in range(2, n)` with 3, or 5 as the `n`?\n\nDoes it go to `if n % x == 0:` and the `n` is for example 9, and it starts with 2 as per `for x in range(2, n):`? \n\nIf so, it's 1 because 9 % 2 = 1, but on the output it comes out as `9 equals 3 * 3` which only happens if it equals 0?\n\nPerhaps I'm looking at this too hard, but I can't quite wrap my head around this? How does the interpreter go through the `range()` list and identify which is a prime number or not?\n\nKeep in mind I'm a complete n00b and this is my first programming language, I'm just trying to keep learning.","timestamp":"2009-07-27T18:23:29+00:00","score":0},{"role":"answerer","user_id":"anon_6fa7896054334b24","comment_id":"c0bg469","kind":"comment","text":"So I am a bit confused about what your confused on but basically here is the flow:\n\n for n in range(2, 10):\n\nThis code loops through the numbers 2,3,4,5,6,7,8,9. For EACH number, n = that number and the following body of code is run.\n\n for x in range(2, n):\n\nThis code then sets up a new for loop going through the numbers 2...n. Each time the outer loop increments (eg. n goes from 2 to 3) a new inner loop is setup with the new n. So the first time it goes through it tests \"for x in range(2,2):\". The second time it goes through it tests \"for x in range(2,3):\" and so on.\n\nWithin the inner loop it checks to see if \"n % x == 0\". If that comes out as True, then the inner loop breaks which skips the \"else:\" section which comes after the inner loop. In the break case, the outer loop increments right away and a new inner loop is setup. If the remainder test evaluates to false, the break never occurs and the inner loop increments [x increments through the inner loops range(2, n)]. If the inner loop goes through all the numbers in the inner loop's \"range(2, n)\" without breaking then the \"else:\" statement is executed which says that n is a prime number. This is of course because n is not divisible by any number less than n (apart from n and 1).\n\nDoes that make sense?","timestamp":"2009-07-27T18:39:26+00:00","score":2},{"role":"OP","user_id":"anon_702c04c0a47d0aa3","comment_id":"c0bh8om","kind":"comment","text":"Yes, thank you!\n\nPlease tell me if I'm right in my conclusion:\n\n**Even if the first item in a list from 2 to 9 ends up being 1, if there is another item in the list that ends up 0, it goes to the else clause**\n\nThat's all I need to know!\n\nALSO: If it is true, how does this apply to Python in general? Does it always look for the 'if' in a range?","timestamp":"2009-07-28T18:29:44+00:00","score":1},{"role":"answerer","user_id":"anon_6fa7896054334b24","comment_id":"c0bhfr5","kind":"comment","text":"Essentially the else clause is for the for loop, not the if statement. So the if statement runs for every number 2...9. Only if none of those numbers result in 0 does the else statement run.\n\nThink about the for...else like this:\n\nLoop x through each of the numbers in the range (for statement). For each number in the range run a test against x (if statement). If all of the tests fail, then run a separate piece of code (else statement). \n\nThe for...else construct is like a very through if...else construct. I guess. :D\n\nAnything else?","timestamp":"2009-07-28T21:10:35+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_702c04c0a47d0aa3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6fa7896054334b24","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bg469","thanks_reply_id":"c0bh8om","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2990e3fdd160682d","answerer_user_id":"anon_90b6f33ab4b294bf","subreddit":"programming","timestamp":"2009-07-29T01:06:06+00:00","post_id":"95h98","question":"What is programming in the real world actually like?\n\nI'm a high school senior, looking for colleges. I love programming, I love computer science. I want to study this in college, (hopefully Waterloo) my problem is I am not sure I really want to have a job as a programmer.\r\n\r\nI guess the big problem is I don't know what programmers actually *do* in the real world. Let me clarify: right now, I get to work on whatever I want, and only do things I think are interesting. \"Hey, I bet I can build a cellular automaton.\" \"Hey, I wonder if I can rewrite that program using only recursion.\" Hell, I love going on Project Euler.\r\n\r\nI find this stuff really interesting, but I'm worried that programming as a job will be nothing like this. It'll be working on boring projects with straightforward solutions. I don't want to spend the rest of my life writing code that isn't engaging or interesting.\r\n\r\nSo to all the professional programmers out there: are your jobs engaging? Are you presented with challenges where you have to be creative? Can I realistically expect to have an interesting job? What are your experiences?","preferred_answer":"It all depends on your skills, where you work, and what interests you. I've worked in business applications forever (started with ar/ap/gl/delivery system, did some point of sale systems, did some work on an insurance system, did some work on a mutual fund system, did some work on a business website, now I run/am a micro isv). \n\nBusiness applications can be boring, though the problems can be challenging by times. \n\nEarly in a business applications programming career don't expect to be in charge of much of anything. You might, if you're lucky, get to write an entire module on your own. Though typically you'll be assigned maintenance work (change module x to do y instead of z).\n\nA lot of business applications program is maintenance, though the systems tend to expand and grow... but that's really just \"big\" maintenance. Sometimes, though not often, the entire system will be replaced. \n\nSome of the systems I worked on were pretty big... the estimates to rewrite always came out in the 10 to 25 million range which the business just wasn't willing to commit to (risky risky).\n\nWhen you're interviewing for a job you should also be finding out what exactly the business wants you to do, what sort of work you'd be assigned, and so forth. If the job just isn't what you've been told (this has happened to me) you can either gut it out for a year/18 months or quit very early on (and \"forget\" to put them on your resume).\n\nWorking at startups can involve creating brand new software from the ground up. It can also involve lots of unpaid overtime and the company going bankrupt/laying people off.\n\nGetting a masters or PHD in compsci won't typically help you get a job... but you'll have spent a lot of years/money for skills that are not often required by typically programmers.\n\nFormal compsci stuff (ie. PHD track) typically requires excellent math. The research these folks do is very much about improving on existing algorithms and finding new/novel algorithms to solve existing problems. Some folks can stay in university doing this sort of research (and teaching) for ever. Check out \"restricted boltzmann machine\" (http://www.machinelearning.org/proceedings/icml2007/papers/407.pdf) for an example of serious AI/compsci research (there's also a google talk from Hinton that's very interesting: http://www.youtube.com/watch?v=AyzOUbkUf3M).\n\nWaterloo has an excellent coop program that you should definitely enroll in. It will take you longer, but the real world experience will be of serious use to you. Also Waterloo has a wide variety of compsci tracks... iirc software engineering is more aimed at business stuff, compsci more of a serious research track. Don't stay in the wrong one (ie. if you dislike the serious research stuff switch to engineering track... or vice versa).\n\nRead \"The Wealth Barber\" and save your money :)","full_conversation":[{"role":"OP","user_id":"anon_2990e3fdd160682d","comment_id":"95h98","kind":"post","text":"What is programming in the real world actually like?\n\nI'm a high school senior, looking for colleges. I love programming, I love computer science. I want to study this in college, (hopefully Waterloo) my problem is I am not sure I really want to have a job as a programmer.\r\n\r\nI guess the big problem is I don't know what programmers actually *do* in the real world. Let me clarify: right now, I get to work on whatever I want, and only do things I think are interesting. \"Hey, I bet I can build a cellular automaton.\" \"Hey, I wonder if I can rewrite that program using only recursion.\" Hell, I love going on Project Euler.\r\n\r\nI find this stuff really interesting, but I'm worried that programming as a job will be nothing like this. It'll be working on boring projects with straightforward solutions. I don't want to spend the rest of my life writing code that isn't engaging or interesting.\r\n\r\nSo to all the professional programmers out there: are your jobs engaging? Are you presented with challenges where you have to be creative? Can I realistically expect to have an interesting job? What are your experiences?","timestamp":"2009-07-29T01:06:06+00:00","score":365},{"role":"answerer","user_id":"anon_90b6f33ab4b294bf","comment_id":"c0bhosq","kind":"comment","text":"It all depends on your skills, where you work, and what interests you. I've worked in business applications forever (started with ar/ap/gl/delivery system, did some point of sale systems, did some work on an insurance system, did some work on a mutual fund system, did some work on a business website, now I run/am a micro isv). \n\nBusiness applications can be boring, though the problems can be challenging by times. \n\nEarly in a business applications programming career don't expect to be in charge of much of anything. You might, if you're lucky, get to write an entire module on your own. Though typically you'll be assigned maintenance work (change module x to do y instead of z).\n\nA lot of business applications program is maintenance, though the systems tend to expand and grow... but that's really just \"big\" maintenance. Sometimes, though not often, the entire system will be replaced. \n\nSome of the systems I worked on were pretty big... the estimates to rewrite always came out in the 10 to 25 million range which the business just wasn't willing to commit to (risky risky).\n\nWhen you're interviewing for a job you should also be finding out what exactly the business wants you to do, what sort of work you'd be assigned, and so forth. If the job just isn't what you've been told (this has happened to me) you can either gut it out for a year/18 months or quit very early on (and \"forget\" to put them on your resume).\n\nWorking at startups can involve creating brand new software from the ground up. It can also involve lots of unpaid overtime and the company going bankrupt/laying people off.\n\nGetting a masters or PHD in compsci won't typically help you get a job... but you'll have spent a lot of years/money for skills that are not often required by typically programmers.\n\nFormal compsci stuff (ie. PHD track) typically requires excellent math. The research these folks do is very much about improving on existing algorithms and finding new/novel algorithms to solve existing problems. Some folks can stay in university doing this sort of research (and teaching) for ever. Check out \"restricted boltzmann machine\" (http://www.machinelearning.org/proceedings/icml2007/papers/407.pdf) for an example of serious AI/compsci research (there's also a google talk from Hinton that's very interesting: http://www.youtube.com/watch?v=AyzOUbkUf3M).\n\nWaterloo has an excellent coop program that you should definitely enroll in. It will take you longer, but the real world experience will be of serious use to you. Also Waterloo has a wide variety of compsci tracks... iirc software engineering is more aimed at business stuff, compsci more of a serious research track. Don't stay in the wrong one (ie. if you dislike the serious research stuff switch to engineering track... or vice versa).\n\nRead \"The Wealth Barber\" and save your money :)","timestamp":"2009-07-29T01:42:15+00:00","score":4},{"role":"OP","user_id":"anon_2990e3fdd160682d","comment_id":"c0bhv1v","kind":"comment","text":"Thanks, this was really helpful. I love math, I'd love to do the whole PHD/research/new algorithm thing, but is this at all realistic? I mean, sure, some people do it and get paid well, but I imagine (and am afraid) that this is only available to an amazingly small percent of programmers. Can I *realistically* expect to be able to do anything interesting in a job? Do you?\r\n\r\nI don't mind the whole 9-5 thing, I do mind the whole 9-5 thing in a jobe I hate/am bored with.","timestamp":"2009-07-29T05:12:56+00:00","score":2},{"role":"answerer","user_id":"anon_90b6f33ab4b294bf","comment_id":"c0biarx","kind":"comment","text":"It is a difficult question to answer. I haven't run into many PHD's over the years... but a PHD wouldn't really be looking for work in my area (business applications/systems).\n\nThere is work for PHDs however. Microsoft has an excellent research group that does some amazing stuff. Google has more than a few PHDs. The National Research Council does lots of heavy research. In the States the gov't does lots of research (crypto is always hot... but that's 99.9% math).\n\nThe trick would be to study an area that can be applied to problem areas that companies or governments have to deal with. For example that Boltzmann machine stuff could be very useful to Google because of how it could be applied to large quantities of text (see the talk... at the end Hinton mentions a few possibilities).\n\nOne very important area that's hot now and will continue to be hot is modeling of DNA, proteins, etc (for example simulations of protein folding is very useful). The current biochemistry/molecular chemistry/medicine field is at the start of a big change... DNA sequencing the protein database and so forth is letting the science types really figure out how cells/groups of cells actually work at a chemical level. This stuff needs computers like you wouldn't believe.\n\nAnother is surveillance and sensing. A magic box that identifies \"terrorists\" or weapons would be a huge seller. Something that helps ports (ships and containers) tackle smuggling would be useful. Systems that consume lots and lots of data to produce answers are also useful (imagine what some clever software could do with the IRS information).\n\nLastly robotics will continue hot, with still lots of room for better algorithms and approaches. Walking robots (2 leg, 4 leg, more) and \"hands\" are getting lots of research dollars and military money. Unmanned flight is also doing very well... though by the time you get out of school this could be well settled.\n\nGenerally speaking it takes years for research grade compsci stuff to make it to the market. Hinton's stuff is a good example... he's been working on RBM's for ages... but it's only now starting to get a serious look by businesses. \n\nYou can make a ton of money simply by realizing that someone else's research could be applied to specific business problems. I can't usually make much out of compsci research papers (far to much math), let alone see how they might apply to a business problem... someone that can do both could do very well for themselves. Also being able to talk to business people and compsci people on their own \"levels\" is itself a very useful skill.\n\nTalk to the prof's, talk to the post grads doing research. The prof's could tell you where the PHDs students ended up working. The post grads can tell you where they hope to work. If you buy a post grad a beer they'll spill their guts (post grad's don't make a lot of money so free anything will perk them up).\n\nWaterloo is an excellent school if you want to do serious compsci stuff, there's few better (U of T is also good, MIT is the gold standard, and a few other US places). Work your ass of to get into Waterloo... there's no place better in Canada. If you're turned down it might be worth doing grade 12 again just to get in (assuming you can pull 90's the second time around). As a plus Waterloo's software engineering side of things makes you very desirable as a new hire.\n\nWork is work... it's not always going to be fun. Sometimes it can be a drag, sometimes for a few weeks at a time even. The people you work with can make up for that quite a bit. BUT... if you find yourself in a job you're just not enjoying look for another one. Typically people move around roughly every the 3 to 5 years. It's usually people feed up with the current job looking for something more interesting. Sometimes it's the economy/nature of the business. Programmers rarely stay unemployed unless they have bad references or are incompetent. Managers tend to be former programmers, and often former bad programmers. Read \"The rules of work\" for a heads up on how deal with that sort of stuff (\"office politics\" and so forth).\n\nYou can make a lot of money working as a programmer. If you're careful with your money and save sensibly you can retire early with a big chunk of cash. Or start your own business (very risky... most fail and the money is gone). Then you answer to no one, and can do what you like. The Wealth Barber book is a simple sound strategy for saving/financial management that will make you rich (in a whole lot of years... but you're young you have lots of years).","timestamp":"2009-07-29T16:02:53+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2990e3fdd160682d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_90b6f33ab4b294bf","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bhosq","thanks_reply_id":"c0bhv1v","post_score":365,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_cf7309560b3bbbb3","answerer_user_id":"anon_32b4436323c23404","subreddit":"programming","timestamp":"2009-07-29T16:19:02+00:00","post_id":"95os7","question":"Anyone work abroad and would recommend it?\n\nI'm thinking of working in either Australia or New Zealand, as a programmer ofc... Currently employed as programmer now and don't forsee any layoffs, but insurance isn't exactly my dream industry or anything. Recomend? Tips? etc..","preferred_answer":"As an Australian just going enter the industry for the first time, I have heard that there is quite a shortage in regards to IT, as in its one of the most sought after sort of people, mostly programmers.","full_conversation":[{"role":"OP","user_id":"anon_cf7309560b3bbbb3","comment_id":"95os7","kind":"post","text":"Anyone work abroad and would recommend it?\n\nI'm thinking of working in either Australia or New Zealand, as a programmer ofc... Currently employed as programmer now and don't forsee any layoffs, but insurance isn't exactly my dream industry or anything. Recomend? Tips? etc..","timestamp":"2009-07-29T16:19:02+00:00","score":15},{"role":"answerer","user_id":"anon_32b4436323c23404","comment_id":"c0bj5lb","kind":"comment","text":"As an Australian just going enter the industry for the first time, I have heard that there is quite a shortage in regards to IT, as in its one of the most sought after sort of people, mostly programmers.","timestamp":"2009-07-30T08:08:52+00:00","score":2},{"role":"OP","user_id":"anon_cf7309560b3bbbb3","comment_id":"c0bjfeb","kind":"comment","text":"Ah thanks. Are you on LinkedIn by any chance?","timestamp":"2009-07-30T15:39:35+00:00","score":1},{"role":"answerer","user_id":"anon_32b4436323c23404","comment_id":"c0bjwx9","kind":"comment","text":"Not on LinkedIn sorry.","timestamp":"2009-07-30T22:15:55+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cf7309560b3bbbb3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_32b4436323c23404","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bj5lb","thanks_reply_id":"c0bjfeb","post_score":15,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_bfebee80fcd961ab","answerer_user_id":"anon_0f10f9905588a7c9","subreddit":"programming","timestamp":"2009-08-02T15:45:39+00:00","post_id":"96u39","question":"Need help with a proof of concept\n\nI am writing a few proof of concept programs for the gamma programming language, which is based on a chemical reaction model of programming(this is being implemented in Java on top of IBMs TSpaces, but I don't think the TSpaces server was designed for hpc).\n\n\nWhat it boils down to is I can't think of any useful programs that fulfill the following requirements:\n\n1. large input data set\n\n2. input can be taken in randomly and operated on (and I assume then rewritten and operated on iteratively.)\n\n3. operation on data computationally intensive to create a speedup when done on a cluster\n\nThe same number of output as input is preferable, but more/fewer outputs would make it more interesting\n\nThe only thing I have found so far is a sorting program (that is (n^2)/p, where is is the number of processors and must be n/2 or less) and that never achieves a speedup to compensate for the networking/Java overhead.\n\nTechnically I am done with my summer research, but I have a week left, and I would like to do something that might be useful.\n\nedit:\n\nquick overview of the CRM:\n\ncomputation is a chemical reaction, and each 'molecule' is a compute node, so each node pulls N data elements(N=2 in the case of the sorter) randomly from a pool and operates on them, writes them back and repeats until the pool is 'inert' and no more calculations can be done.","preferred_answer":"Other simple options are matrix-matrix multiplication and matrix-vector multiplication. These require a slightly more sophisticated data distribution (look up Fox's algorithm).","full_conversation":[{"role":"OP","user_id":"anon_bfebee80fcd961ab","comment_id":"96u39","kind":"post","text":"Need help with a proof of concept\n\nI am writing a few proof of concept programs for the gamma programming language, which is based on a chemical reaction model of programming(this is being implemented in Java on top of IBMs TSpaces, but I don't think the TSpaces server was designed for hpc).\n\n\nWhat it boils down to is I can't think of any useful programs that fulfill the following requirements:\n\n1. large input data set\n\n2. input can be taken in randomly and operated on (and I assume then rewritten and operated on iteratively.)\n\n3. operation on data computationally intensive to create a speedup when done on a cluster\n\nThe same number of output as input is preferable, but more/fewer outputs would make it more interesting\n\nThe only thing I have found so far is a sorting program (that is (n^2)/p, where is is the number of processors and must be n/2 or less) and that never achieves a speedup to compensate for the networking/Java overhead.\n\nTechnically I am done with my summer research, but I have a week left, and I would like to do something that might be useful.\n\nedit:\n\nquick overview of the CRM:\n\ncomputation is a chemical reaction, and each 'molecule' is a compute node, so each node pulls N data elements(N=2 in the case of the sorter) randomly from a pool and operates on them, writes them back and repeats until the pool is 'inert' and no more calculations can be done.","timestamp":"2009-08-02T15:45:39+00:00","score":0},{"role":"answerer","user_id":"anon_0f10f9905588a7c9","comment_id":"c0bmq7a","kind":"comment","text":"Other simple options are matrix-matrix multiplication and matrix-vector multiplication. These require a slightly more sophisticated data distribution (look up Fox's algorithm).","timestamp":"2009-08-02T17:04:48+00:00","score":2},{"role":"OP","user_id":"anon_bfebee80fcd961ab","comment_id":"c0bms08","kind":"comment","text":"Thanks for the suggestions, but I don't see how those can be broken up in to data elements: individual entries in a matrix or columns/rows, in a way that will allow them to be randomly selected.","timestamp":"2009-08-02T18:08:43+00:00","score":1},{"role":"answerer","user_id":"anon_0f10f9905588a7c9","comment_id":"c0bmt05","kind":"comment","text":"Ah, ok I misunderstood. I thought you meant randomly generated. Thanks for the summary. Maybe a particle simulation? Although I guess you would have difficulties handling interaction between particles.","timestamp":"2009-08-02T18:42:01+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bfebee80fcd961ab","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0f10f9905588a7c9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bmq7a","thanks_reply_id":"c0bms08","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_f18e3d4d7027361d","answerer_user_id":"anon_335af4469863a4ba","subreddit":"programming","timestamp":"2009-08-02T17:17:34+00:00","post_id":"96upw","question":"Numerically integrate a function until certain value?","preferred_answer":"And, I suppose you'll want a first guess. How about treating the function as a rectangle first:\n\n target = f(a) * (b-a)\n ...\n b = (a*f(a) + target)/f(a)\n\nThen, you can find a good value of h as above.\n\nYou can add another step to make the first guess better by finding b as above, and then using linear interpolation to refine the value of b.","full_conversation":[{"role":"OP","user_id":"anon_f18e3d4d7027361d","comment_id":"96upw","kind":"post","text":"Numerically integrate a function until certain value?","timestamp":"2009-08-02T17:17:34+00:00","score":0},{"role":"answerer","user_id":"anon_335af4469863a4ba","comment_id":"c0bmu1q","kind":"comment","text":"And, I suppose you'll want a first guess. How about treating the function as a rectangle first:\n\n target = f(a) * (b-a)\n ...\n b = (a*f(a) + target)/f(a)\n\nThen, you can find a good value of h as above.\n\nYou can add another step to make the first guess better by finding b as above, and then using linear interpolation to refine the value of b.","timestamp":"2009-08-02T19:16:27+00:00","score":1},{"role":"OP","user_id":"anon_f18e3d4d7027361d","comment_id":"c0bmzf1","kind":"comment","text":"Hi, soapdish. Thank you for your responses.\n\nThis is pretty much the same thing that I invented from scratch. The rectangle idea is a good one.\n\nI was asking just in case, there was some super clever method that I was overlooking but I guess to some extent there's not.\n\nIt's a hard question to Google search for the answer because there are simply too many unrelated hits.\n\nCheers.","timestamp":"2009-08-02T22:18:09+00:00","score":1},{"role":"answerer","user_id":"anon_335af4469863a4ba","comment_id":"c0bn0v3","kind":"comment","text":"What exactly are you using it for? Maybe there's a completely different method to find what you need.","timestamp":"2009-08-02T23:11:20+00:00","score":1},{"role":"OP","user_id":"anon_f18e3d4d7027361d","comment_id":"c0bn2v1","kind":"comment","text":"I'm calculating 68%, 95%, and 99% confidence intervals (with equally likely error above or below the CI). The distribution does not have an anti-derivative.\n\nMy current code already works to find the numbers but I'm a real stickler for beautiful code. Not only for aesthetic appeal but because I frequently find that I can more easily re-use well-written code. I assumed that some dead mathematician would have his name attached to my particular problem but guess not. I should put mine version in print. How does the Turd Burglar Algorithm sound?","timestamp":"2009-08-03T00:25:55+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_f18e3d4d7027361d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_335af4469863a4ba","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bmu1q","thanks_reply_id":"c0bmzf1","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_cf1145d96f5f8ded","answerer_user_id":"anon_3796730c35f729be","subreddit":"programming","timestamp":"2009-08-03T04:56:39+00:00","post_id":"96yyg","question":"What DIDN'T college teach you about programming/computers? [asked by a College Student]","preferred_answer":"The biggest blindspot college usually teach you is that they'll tell you that all languages are the same thing with a different syntax and that if you know one, you can learn any of them very quickly.\n\nThis is bullshit. If they were the same thing, there would be no reason to have more than one language and don't ever believe that because you know the syntax of a language, you can write proper, idiomatic code in it.","full_conversation":[{"role":"OP","user_id":"anon_cf1145d96f5f8ded","comment_id":"96yyg","kind":"post","text":"What DIDN'T college teach you about programming/computers? [asked by a College Student]","timestamp":"2009-08-03T04:56:39+00:00","score":120},{"role":"answerer","user_id":"anon_3796730c35f729be","comment_id":"c0bnb6m","kind":"comment","text":"The biggest blindspot college usually teach you is that they'll tell you that all languages are the same thing with a different syntax and that if you know one, you can learn any of them very quickly.\n\nThis is bullshit. If they were the same thing, there would be no reason to have more than one language and don't ever believe that because you know the syntax of a language, you can write proper, idiomatic code in it.","timestamp":"2009-08-03T05:16:53+00:00","score":24},{"role":"OP","user_id":"anon_cf1145d96f5f8ded","comment_id":"c0bnbfp","kind":"comment","text":"Thanks! So, if I experience in C++ and Java, what are the languages that are different? And, which one of those would you recommend taking a look into?","timestamp":"2009-08-03T05:26:43+00:00","score":9},{"role":"answerer","user_id":"anon_3796730c35f729be","comment_id":"c0bncec","kind":"comment","text":"Many actually! In no particular order:\n\nPython. It's a scripting language that's meant to be very easy to write and to read. It's much more expressive than C++ or Java so you can finish your program in much less lines (as little as 1/10th of your C++ program).\n\nYou can pick it up easily from the [tutorial](http://docs.python.org/3.1/tutorial/) and once you are done you can read Mark Pilgrim's [Dive into Python 3](http://diveintopython3.org/) for free on his site. If you don't start with Python, still read the chapter about [Why everything you know about strings is wrong](http://diveintopython3.org/strings.html) as soon as possible because that's a critical thing that's valid in all languages they certainly won't teach you in college.\n\nHaskell. It's *the* functional language you have to learn. Functional programming is inspired by math (lambda calculus more precisely) radically different paradigm from Object Oriented (what do you mean I can't change my variable? Where's my for loop? Hey, did you pass an infinite list will *all* the prime numbers to infinity to that function?) and learning Haskell should give you a brand new perspective on programming, even in non-functional languages. The weakness of Haskell for someone who wants to learn it is that they suck at communicating with mere mortals so even if the language itself is not that hard, it may be hard to grok because sometimes, the explanation given is just undecipherable.\n\nThat said, try it whatever you learn from it will be valuable. The best book in know about it (also freely available) is [Real World Haskell](http://book.realworldhaskell.org/).\n\nD. If you want a language that compile to native executable with the same performance as C/C++ but that is much more expressive and makes it much harder to shoot yourself in the foot because of brain damaged feature that have to be kept for backward compatibility, D is the language. However, it's a young language, doesn't have much libraries for it yet and version 2 (which is a great improvement over version 1) is still in beta so you might keep an eye on that one until it's released.\n\nClojure. It's a modern Lisp (which means it has been clean of lots of the cruft of old Lisps) and this means that in it code is data and data is code. This may seem cryptic for now but it's also going to be enlightening when you can really understand what it means. It runs on the JVM which mean you can call your Java code from it and it's especially designed for concurrency.\n\nThe only book, as far as I know (but it's a great book) is [Programming Clojure](http://www.pragprog.com/titles/shcloj/programming-clojure) (not free).\n\nQt. Actually, Qt is not a language, it's a cross-platform C++ framework for building GUI apps but it rewrites lots of bad standard part of C++ and makes C++ a much better language to use.\n\nThe book you want for this one is [C++ GUI Programming with Qt 4 (2nd Edition)](http://www.amazon.com/Programming-Prentice-Source-Software-Development/dp/0132354160/ref=pd_sim_b_3)\n\nThat should be a bunch of fairly different from each other languages to learn, start from wherever you feel like.","timestamp":"2009-08-03T06:03:27+00:00","score":41}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cf1145d96f5f8ded","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3796730c35f729be","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bnb6m","thanks_reply_id":"c0bnbfp","post_score":120,"answer_score":24,"preferred_answer_is_top_level":false}} {"user_id":"anon_2f68cb46e9f6fa22","answerer_user_id":"anon_83b11300c88fbedb","subreddit":"programming","timestamp":"2009-08-03T21:56:15+00:00","post_id":"97758","question":"AskProgrammers: What's a good library to build PDFs?\n\nI just want to make a straightforward layout of images, but I'd like to have good control of the image's position and dimensions. The libraries I've found are a little convoluted when it comes to dealing with images. A .NET library would be ideal, I'm working in C#. But not absolutely necessary.","preferred_answer":"iText.NET -- it will do anything you want it to do. Images, Form Fields, javascript, you name it. Best PDF library I have ever used and it is written in C#. Enjoy","full_conversation":[{"role":"OP","user_id":"anon_2f68cb46e9f6fa22","comment_id":"97758","kind":"post","text":"AskProgrammers: What's a good library to build PDFs?\n\nI just want to make a straightforward layout of images, but I'd like to have good control of the image's position and dimensions. The libraries I've found are a little convoluted when it comes to dealing with images. A .NET library would be ideal, I'm working in C#. But not absolutely necessary.","timestamp":"2009-08-03T21:56:15+00:00","score":8},{"role":"answerer","user_id":"anon_83b11300c88fbedb","comment_id":"c0bnyd4","kind":"comment","text":"iText.NET -- it will do anything you want it to do. Images, Form Fields, javascript, you name it. Best PDF library I have ever used and it is written in C#. Enjoy","timestamp":"2009-08-03T22:17:24+00:00","score":10},{"role":"OP","user_id":"anon_2f68cb46e9f6fa22","comment_id":"c0bnyoe","kind":"comment","text":"Great, thanks very much!\n\nEDIT: [iText.NET PDF creator for C# .NET home page](http://www.ujihara.jp/iTextdotNET/en/)","timestamp":"2009-08-03T22:33:26+00:00","score":3},{"role":"answerer","user_id":"anon_83b11300c88fbedb","comment_id":"c0bnz71","kind":"comment","text":"I actually meant iTextSharp. Sorry for the confusion. It is just like iText (Java) and iText.NET (java port to J#), but iTextSharp is the C# version.","timestamp":"2009-08-03T22:49:55+00:00","score":6}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2f68cb46e9f6fa22","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_83b11300c88fbedb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bnyd4","thanks_reply_id":"c0bnyoe","post_score":8,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_9f6b30ed0aad11dd","answerer_user_id":"anon_db184f2c30e9aa89","subreddit":"programming","timestamp":"2009-08-04T18:10:53+00:00","post_id":"97hnt","question":"Can't Figure Out This AppleScript Error\n\n[EDIT] I can't figure out how to keep the formatting when I paste into Reddit. Sorry, trying to redo it.\n[EDIT x2] This is the best I can do with formatting, sorry it takes up so much space.\n\nSo here's what will compile (although the Growl portion doesn't work):\n\nset beth to \"eppc://user:pass@address\"\n\nset brian to \"eppc://user:pass@address\"\n\nset molly to \"eppc://user:pass@address\"\n\nset sarah to \"eppc://user:pass@address\"\n\n\n\n\nset theList to choose from list {\"brian\", \"beth\", \"molly\", \"sarah\"} \n with title \"Messaging Service\" with multiple selections allowed\nrepeat with i in theList\n\n\tif (i as text) is equal to \"brian\" then\n\n\t\tset machine_chosen to brian\n\n\t\tset user to (i as text)\n\n\telse if (i as text) is equal to \"beth\" then\n\n\t\tset machine_chosen to beth\n\n\t\tset user to (i as text)\n\n\telse if (i as text) is equal to \"molly\" then\n\n\t\tset machine_chosen to molly\n\n\t\tset user to (i as text)\n\n\telse if (i as text) is equal to \"sarah\" then\n\n\t\tset machine_chosen to sarah\n\n\t\tset user to (i as text)\n\n\tend if\n\n\tdisplay dialog (\"Messaging \" & user) default answer \"How are you doing\" buttons ¬\n\n\t\t{\"Cancel\", \"Send\"} default button 2\n\n\ttry\n\n\t\tcopy the result as list to {text_returned, button_pressed}\n\n\t\ttell application \"Finder\" of machine machine_chosen\n\n\t\t\tactivate\n\n\t\t\tdo shell script (say text_returned) password \"\" with administrator privileges\n\n\t\t\t#do shell script (say \"They're always in the last place you look, you know.\")\n\n\t\tend tell\n\t\ttell application \"GrowlHelperApp\"\n\t\t\t-- Make a list of all the notification types \n\t\t\t-- that this script will ever send:\n\t\t\tset the allNotificationsList to ¬\n\t\t\t\t{\"Test Notification\", \"Another Test Notification\"}\n\t\t\t\n\t\t\t-- Make a list of the notifications \n\t\t\t-- that will be enabled by default. \n\t\t\t-- Those not enabled by default can be enabled later \n\t\t\t-- in the 'Applications' tab of the growl prefpane.\n\t\t\tset the enabledNotificationsList to ¬\n\t\t\t\t{\"Test Notification\"}\n\t\t\t\n\t\t\t-- Register our script with growl.\n\t\t\t-- You can optionally (as here) set a default icon \n\t\t\t-- for this script's notifications.\n\t\t\tregister as application ¬\n\t\t\t\t\"Growl AppleScript Sample\" all notifications allNotificationsList ¬\n\t\t\t\tdefault notifications enabledNotificationsList ¬\n\t\t\t\ticon of application \"Script Editor\"\n\t\t\t\n\t\t\t--\tSend a Notification...\n\t\t\tnotify with name ¬\n\t\t\t\t\"Test Notification\" title ¬\n\t\t\t\t\"Test Notification\" description ¬\n\t\t\t\t\"This is a test AppleScript notification.\" application name \"Growl AppleScript Sample\"\n\t\t\t\n\t\t\tnotify with name ¬\n\t\t\t\t\"Another Test Notification\" title ¬\n\t\t\t\t\"Another Test Notification :) \" description ¬\n\t\t\t\t\"Alas — you won't see me until you enable me...\" application name \"Growl AppleScript Sample\"\n\t\t\t\n\t\tend tell\n\tend try\n\tset theList to rest of theList\nend repeat\n\nWhen I try to change the first Growl line to:\ntell application \"GrowlHelperApp\" of machine machine_chosen\n\nI get the error: Expected end of line, etc. but found “\"”.\n\nYes, it's very basic and kluj-y and there's a lot I could do better, but I'm trying to do one thing at a time. \n\nPlease note that the Growl tell, by itself, will run in a separate script WITH the \"of machine X\" inclusion.\n\nThanks for your help, Reddit!","preferred_answer":"What happens if you move the remote \"GrowlHelperApp\" tell block inside the remote \"Finder\" tell block?\n\nIs it possible to save the remote application reference in a variable that you can \"tell\" later on? e.g. set remoteGrowl to application \"GrowlHelperApp\" of machine machine_chosen\n\nAs a last resort, you can use do shell script on the remote machine with a shell script that uses osascript to compile and run the AppleScript driving GrowlHelperApp on-the-fly","full_conversation":[{"role":"OP","user_id":"anon_9f6b30ed0aad11dd","comment_id":"97hnt","kind":"post","text":"Can't Figure Out This AppleScript Error\n\n[EDIT] I can't figure out how to keep the formatting when I paste into Reddit. Sorry, trying to redo it.\n[EDIT x2] This is the best I can do with formatting, sorry it takes up so much space.\n\nSo here's what will compile (although the Growl portion doesn't work):\n\nset beth to \"eppc://user:pass@address\"\n\nset brian to \"eppc://user:pass@address\"\n\nset molly to \"eppc://user:pass@address\"\n\nset sarah to \"eppc://user:pass@address\"\n\n\n\n\nset theList to choose from list {\"brian\", \"beth\", \"molly\", \"sarah\"} \n with title \"Messaging Service\" with multiple selections allowed\nrepeat with i in theList\n\n\tif (i as text) is equal to \"brian\" then\n\n\t\tset machine_chosen to brian\n\n\t\tset user to (i as text)\n\n\telse if (i as text) is equal to \"beth\" then\n\n\t\tset machine_chosen to beth\n\n\t\tset user to (i as text)\n\n\telse if (i as text) is equal to \"molly\" then\n\n\t\tset machine_chosen to molly\n\n\t\tset user to (i as text)\n\n\telse if (i as text) is equal to \"sarah\" then\n\n\t\tset machine_chosen to sarah\n\n\t\tset user to (i as text)\n\n\tend if\n\n\tdisplay dialog (\"Messaging \" & user) default answer \"How are you doing\" buttons ¬\n\n\t\t{\"Cancel\", \"Send\"} default button 2\n\n\ttry\n\n\t\tcopy the result as list to {text_returned, button_pressed}\n\n\t\ttell application \"Finder\" of machine machine_chosen\n\n\t\t\tactivate\n\n\t\t\tdo shell script (say text_returned) password \"\" with administrator privileges\n\n\t\t\t#do shell script (say \"They're always in the last place you look, you know.\")\n\n\t\tend tell\n\t\ttell application \"GrowlHelperApp\"\n\t\t\t-- Make a list of all the notification types \n\t\t\t-- that this script will ever send:\n\t\t\tset the allNotificationsList to ¬\n\t\t\t\t{\"Test Notification\", \"Another Test Notification\"}\n\t\t\t\n\t\t\t-- Make a list of the notifications \n\t\t\t-- that will be enabled by default. \n\t\t\t-- Those not enabled by default can be enabled later \n\t\t\t-- in the 'Applications' tab of the growl prefpane.\n\t\t\tset the enabledNotificationsList to ¬\n\t\t\t\t{\"Test Notification\"}\n\t\t\t\n\t\t\t-- Register our script with growl.\n\t\t\t-- You can optionally (as here) set a default icon \n\t\t\t-- for this script's notifications.\n\t\t\tregister as application ¬\n\t\t\t\t\"Growl AppleScript Sample\" all notifications allNotificationsList ¬\n\t\t\t\tdefault notifications enabledNotificationsList ¬\n\t\t\t\ticon of application \"Script Editor\"\n\t\t\t\n\t\t\t--\tSend a Notification...\n\t\t\tnotify with name ¬\n\t\t\t\t\"Test Notification\" title ¬\n\t\t\t\t\"Test Notification\" description ¬\n\t\t\t\t\"This is a test AppleScript notification.\" application name \"Growl AppleScript Sample\"\n\t\t\t\n\t\t\tnotify with name ¬\n\t\t\t\t\"Another Test Notification\" title ¬\n\t\t\t\t\"Another Test Notification :) \" description ¬\n\t\t\t\t\"Alas — you won't see me until you enable me...\" application name \"Growl AppleScript Sample\"\n\t\t\t\n\t\tend tell\n\tend try\n\tset theList to rest of theList\nend repeat\n\nWhen I try to change the first Growl line to:\ntell application \"GrowlHelperApp\" of machine machine_chosen\n\nI get the error: Expected end of line, etc. but found “\"”.\n\nYes, it's very basic and kluj-y and there's a lot I could do better, but I'm trying to do one thing at a time. \n\nPlease note that the Growl tell, by itself, will run in a separate script WITH the \"of machine X\" inclusion.\n\nThanks for your help, Reddit!","timestamp":"2009-08-04T18:10:53+00:00","score":0},{"role":"answerer","user_id":"anon_db184f2c30e9aa89","comment_id":"c0bp7ll","kind":"comment","text":"What happens if you move the remote \"GrowlHelperApp\" tell block inside the remote \"Finder\" tell block?\n\nIs it possible to save the remote application reference in a variable that you can \"tell\" later on? e.g. set remoteGrowl to application \"GrowlHelperApp\" of machine machine_chosen\n\nAs a last resort, you can use do shell script on the remote machine with a shell script that uses osascript to compile and run the AppleScript driving GrowlHelperApp on-the-fly","timestamp":"2009-08-04T21:59:34+00:00","score":1},{"role":"OP","user_id":"anon_9f6b30ed0aad11dd","comment_id":"c0bpcek","kind":"comment","text":"Thanks for the suggestions, but:\n-Moving the Growl tell inside the Finder tell doesn't make a difference\n-Making a remoteGrowl replace doesn't make a difference\n\nI'll look into the osascript option, any ideas?\n\nThanks for the response. :)","timestamp":"2009-08-05T00:03:02+00:00","score":0},{"role":"answerer","user_id":"anon_db184f2c30e9aa89","comment_id":"c0bu1ke","kind":"comment","text":"Be prepared to do some quote escaping.\n\nEssentially, you would \"do shell script\" on the remote machine, just like you've tried with the \"say\" command up there.\n\nHowever, the shell script you would run will echo the source text of the AppleScript you want to run into a pipe to the osascript command. osascript will compile the AppleScript passed into its stdin by the pipe and then execute it.","timestamp":"2009-08-09T00:10:06+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9f6b30ed0aad11dd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_db184f2c30e9aa89","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bp7ll","thanks_reply_id":"c0bpcek","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_43c3dbfba7a7d947","answerer_user_id":"anon_6576462014878bec","subreddit":"programming","timestamp":"2009-08-05T20:23:20+00:00","post_id":"97vio","question":"What are the best introductions to Evolutionary Algorithmns/Genetic Programming?","preferred_answer":"It's a little like asking for a list of the books needed to be proficient in math: it's a wide and deep group of fields, not a single field.\n\nIf you're looking to jump right in, one good place to start is \"Practical Genetic Algorithms\" by Haupt.\n\nBanzhaf/Norton's \"Genetic Programming: An Introduction\" is a decent place to get started, as is Langdon's \"Foundations of Genetic Programming\". Riolo/Warzel's \"Genetic Programming Theory and Practice\" is pretty good, but a bit dense, so not a great place to start. (The later books in that series get better both in content and in ease of reading.) Baoding Lu's \"Theory and Practice of Uncertain Programming\" is great, but not beginner's material.\n\nFogel's \"Blondie24: Playing at the Edge of AI\" and \"Evolutionary Computation: Toward a New Philosophy of Machine Intelligence\" are both great, though the former is much easier than the latter, and written in more of a prose form; Blondie is actually palattable enough that people who aren't programmers can take a fair amount from it, and I recommend it frequently.\n\nEiben's \"Introduction to Evolutionary Computing\" is pretty good, though it sets the learning curve initially very low, and the way in which it assumes so little of the student frequently turns more experienced programmers off, so if you've a long traditional programming background, you might skip it.\n\nOnce you're a bit more solid on your feet, you can move on to more complete books, like Zbigniew Michalewicz' \"How to Solve It: Modern Heuristics\", Koza's \"Genetic Programming: On the Programming of Computers by Means of Natural Selection\", Poli's \"A Field Guide to Genetic Programming\", et cetera. I've heard good things from people I trust about Goldberg's \"Genetic Algorithms in Search, Optimization, and Machine Learning\", though I've not read it myself.\n\nWhen you start getting serious, it's time to play hardball. This includes things like \"Evolutionary Dynamics: Exploring the Equations of Life\" by Nowak, Hastie's \"The Elements of Statistical Learning: Data Mining, Inference, and Prediction\", or Russel/Norwig's classic \"Artificial Intelligence: A Modern Approach\".\n\nBut, I mean, genetic programming is a small subfield of a larger group, machine learning techniques. I wonder whether you realize you're excluding large blocks of interesting other crap. Ant search algoriths, emergent flocking, various forms of automatic pattern classification, modal clustering, etc. It may be appropriate to take some more general books on, as a way to get a flavor for other related fields you might want to search. Good books to that end include Alpaydin's \"Introduction to Machine Learning\", Bishop's \"Pattern Recognition and Machine Learning\", \n\nDuda/Hart's \"Pattern Classification\", Bishop's \"Neural Networks for Pattern Recognition\", Witten/Frank's \"Data Mining: Practical Machine Learning Tools and Techniques\", Schlkoph/Smola's \"Learning with Kernels: Support Vector Machines, Regularization, Optimization, and Beyond\", Hastie/Tibshirani/Friedman's \"The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Second Edition\", Gelman's \"Bayesian Data Analysis\", Dorigo's \"Ant Colony Optimization\", Clerc's \"Particle Swarm Optimization\", Price/Storm/Lampinen's \"Differential Evolution: A Practical Approach to Global Optimization\", Engelbrecht's \"Fundamentals of Computational Swarm Intelligence\", Bonobeau/Dorigo/Theauraz' \"Swarm Intelligence: From Natural to Artificial Systems\" and Casella's \"Statistical Inference\" are all examples of books that don't fit your question, but which I'm guessing you might really dig anyway.\n\nBooks on similar topics from the perspective of math people instead of computer people, if you can work with those, are also very valuable. Consider \"Nonlinear Dynamics And Chaos: With Applications To Physics, Biology, Chemistry, And Engineering\", \"Calculus of Variations\" and \"Complex Adaptive Systems: An Introduction to Computational Models of Social Life\". Oddly, a market book is also fascinating in this direction: \"Origin of Wealth: Evolution, Complexity, and Economics.\"\n\nYou may need some statistics background. Wasserman's \"All of Statistics\" is a great place to get started.\n\nThat should get you underway. If you need more, ask my blog, http://fullof.bs/ .","full_conversation":[{"role":"OP","user_id":"anon_43c3dbfba7a7d947","comment_id":"97vio","kind":"post","text":"What are the best introductions to Evolutionary Algorithmns/Genetic Programming?","timestamp":"2009-08-05T20:23:20+00:00","score":0},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0brjvm","kind":"comment","text":"It's a little like asking for a list of the books needed to be proficient in math: it's a wide and deep group of fields, not a single field.\n\nIf you're looking to jump right in, one good place to start is \"Practical Genetic Algorithms\" by Haupt.\n\nBanzhaf/Norton's \"Genetic Programming: An Introduction\" is a decent place to get started, as is Langdon's \"Foundations of Genetic Programming\". Riolo/Warzel's \"Genetic Programming Theory and Practice\" is pretty good, but a bit dense, so not a great place to start. (The later books in that series get better both in content and in ease of reading.) Baoding Lu's \"Theory and Practice of Uncertain Programming\" is great, but not beginner's material.\n\nFogel's \"Blondie24: Playing at the Edge of AI\" and \"Evolutionary Computation: Toward a New Philosophy of Machine Intelligence\" are both great, though the former is much easier than the latter, and written in more of a prose form; Blondie is actually palattable enough that people who aren't programmers can take a fair amount from it, and I recommend it frequently.\n\nEiben's \"Introduction to Evolutionary Computing\" is pretty good, though it sets the learning curve initially very low, and the way in which it assumes so little of the student frequently turns more experienced programmers off, so if you've a long traditional programming background, you might skip it.\n\nOnce you're a bit more solid on your feet, you can move on to more complete books, like Zbigniew Michalewicz' \"How to Solve It: Modern Heuristics\", Koza's \"Genetic Programming: On the Programming of Computers by Means of Natural Selection\", Poli's \"A Field Guide to Genetic Programming\", et cetera. I've heard good things from people I trust about Goldberg's \"Genetic Algorithms in Search, Optimization, and Machine Learning\", though I've not read it myself.\n\nWhen you start getting serious, it's time to play hardball. This includes things like \"Evolutionary Dynamics: Exploring the Equations of Life\" by Nowak, Hastie's \"The Elements of Statistical Learning: Data Mining, Inference, and Prediction\", or Russel/Norwig's classic \"Artificial Intelligence: A Modern Approach\".\n\nBut, I mean, genetic programming is a small subfield of a larger group, machine learning techniques. I wonder whether you realize you're excluding large blocks of interesting other crap. Ant search algoriths, emergent flocking, various forms of automatic pattern classification, modal clustering, etc. It may be appropriate to take some more general books on, as a way to get a flavor for other related fields you might want to search. Good books to that end include Alpaydin's \"Introduction to Machine Learning\", Bishop's \"Pattern Recognition and Machine Learning\", \n\nDuda/Hart's \"Pattern Classification\", Bishop's \"Neural Networks for Pattern Recognition\", Witten/Frank's \"Data Mining: Practical Machine Learning Tools and Techniques\", Schlkoph/Smola's \"Learning with Kernels: Support Vector Machines, Regularization, Optimization, and Beyond\", Hastie/Tibshirani/Friedman's \"The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Second Edition\", Gelman's \"Bayesian Data Analysis\", Dorigo's \"Ant Colony Optimization\", Clerc's \"Particle Swarm Optimization\", Price/Storm/Lampinen's \"Differential Evolution: A Practical Approach to Global Optimization\", Engelbrecht's \"Fundamentals of Computational Swarm Intelligence\", Bonobeau/Dorigo/Theauraz' \"Swarm Intelligence: From Natural to Artificial Systems\" and Casella's \"Statistical Inference\" are all examples of books that don't fit your question, but which I'm guessing you might really dig anyway.\n\nBooks on similar topics from the perspective of math people instead of computer people, if you can work with those, are also very valuable. Consider \"Nonlinear Dynamics And Chaos: With Applications To Physics, Biology, Chemistry, And Engineering\", \"Calculus of Variations\" and \"Complex Adaptive Systems: An Introduction to Computational Models of Social Life\". Oddly, a market book is also fascinating in this direction: \"Origin of Wealth: Evolution, Complexity, and Economics.\"\n\nYou may need some statistics background. Wasserman's \"All of Statistics\" is a great place to get started.\n\nThat should get you underway. If you need more, ask my blog, http://fullof.bs/ .","timestamp":"2009-08-06T19:30:11+00:00","score":2},{"role":"OP","user_id":"anon_43c3dbfba7a7d947","comment_id":"c0brlwo","kind":"comment","text":"Everyone on proggit should be upvoting you. Thank you a lot!","timestamp":"2009-08-06T20:14:16+00:00","score":1},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0bsxjx","kind":"comment","text":"No problem, boblem; I got most of those by recommendation, so I'd have to be a dick not to pay it forward.\n\nI mean, I am a dick. But I'll still pay it forward.\n\nAnyway, I stick by my original recommendation: Blondie24 and the book I misremembered the name of, \"Growing Artificial Societies\", are both great places to get your feet wet.","timestamp":"2009-08-07T20:43:52+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_43c3dbfba7a7d947","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6576462014878bec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0brjvm","thanks_reply_id":"c0brlwo","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_2a3c5fe927851068","answerer_user_id":"anon_09bdead4ee5b94a3","subreddit":"programming","timestamp":"2009-08-09T01:52:02+00:00","post_id":"98uz8","question":"Ask Proggit: does Emacs Lisp have the elements of a Lisp that makes learning it \"life-changing\"?\n\nI already program in Python for data mining so I thought the most immediately useful Lisp to learn would be Emacs Lisp (for text-processing, mostly). It's really great... but hasn't blown my mind like I thought it would. If I already program semi-functionally in Python, did I get my hopes up too much?","preferred_answer":"Me neither.\r\n\r\nhttp://www.jasani.org/2008/07/19/elisp-doesnt-support-closures\r\n\r\nThe problem isn't just adding something to your macro; but that a macro can't wrap a body of code/form that behaves expectedly in its dynamic world and have it do the same thing by dropping it trivially into a lambda.\r\n\r\nThe mind-blowing stuff in CL, and by god it is mindblowing, is in macro cases. With such different language properties in ELisp, at the very least I can say you won't be writing the same macros.","full_conversation":[{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"98uz8","kind":"post","text":"Ask Proggit: does Emacs Lisp have the elements of a Lisp that makes learning it \"life-changing\"?\n\nI already program in Python for data mining so I thought the most immediately useful Lisp to learn would be Emacs Lisp (for text-processing, mostly). It's really great... but hasn't blown my mind like I thought it would. If I already program semi-functionally in Python, did I get my hopes up too much?","timestamp":"2009-08-09T01:52:02+00:00","score":11},{"role":"answerer","user_id":"anon_09bdead4ee5b94a3","comment_id":"c0bu8e9","kind":"comment","text":"Me neither.\r\n\r\nhttp://www.jasani.org/2008/07/19/elisp-doesnt-support-closures\r\n\r\nThe problem isn't just adding something to your macro; but that a macro can't wrap a body of code/form that behaves expectedly in its dynamic world and have it do the same thing by dropping it trivially into a lambda.\r\n\r\nThe mind-blowing stuff in CL, and by god it is mindblowing, is in macro cases. With such different language properties in ELisp, at the very least I can say you won't be writing the same macros.","timestamp":"2009-08-09T04:26:16+00:00","score":3},{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"c0bu8ox","kind":"comment","text":"Thanks for the response -\nI think emacs lisp can implement closures through lexical-let form:\nhttp://www.delorie.com/gnu/docs/emacs/cl_21.html\nI wonder if that can be used to construct CL-like macros? I'm still trying to figure out the utility of a macro beyond delaying argument evaluation...","timestamp":"2009-08-09T04:37:18+00:00","score":1},{"role":"answerer","user_id":"anon_09bdead4ee5b94a3","comment_id":"c0bu96b","kind":"comment","text":"Right - but you can't put (mymacro .. . . ) around mycode and have the macro able to just wrap it in a lambda and have all the variables just work.\r\n\r\n> I'm still trying to figure out the utility of a macro beyond delaying argument evaluation...\r\n\r\nMacros run at a different time in a different context. Delaying parameters? That's about the most trivial thing you could do with a macro. It runs at a different time. Your \"parameter\" can be your whole program, which the macro could pick apart and put back together in some different way pre-execution. It could also define macros at inner scopes (macrolet), or expand macros that use different definititions at different scopes. Your macro could take any code that's inside it, download all the prices off of ebay, and interleave them in a \"print\" between every expression, all during your (compile/pre-execution) step.\r\n\r\n You can find this question posed. The person answering it responds with a simple macro that the audience can understand. \"Big deal, that's pretty simple to do without\". Then the person answering puts a complex/cool macro. \"But I can't read *that*\".\r\n\r\nBut that's enough about that on an EMACS thread.\r\n\r\nI'm not going to expand on it here beyond saying that ELisp and CL code and macro development will be very different.","timestamp":"2009-08-09T04:57:32+00:00","score":2},{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"c0bua7n","kind":"comment","text":"Good to know. I can certainly see the usefulness of the macrolet, the more complex examples... probably I will have to build up to it. Thank you much for the enlightenment. [in all honesty, this is an emacs LISP thread though :)]","timestamp":"2009-08-09T05:38:09+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2a3c5fe927851068","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_09bdead4ee5b94a3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bu8e9","thanks_reply_id":"c0bu8ox","post_score":11,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_dbfd9fd55f25af4a","answerer_user_id":"anon_36e5236fcd4c6104","subreddit":"programming","timestamp":"2009-08-09T17:18:30+00:00","post_id":"98zl3","question":"I found this on the yourworldoftext.com guy's website. Anyone want to help unravel the mysteries?","preferred_answer":"There are 5 different messages you can get, but once you've found those that's about it. Anything you could possibly draw using the boxes would be unoriginal since it's already one of the trillion pages. ;)","full_conversation":[{"role":"OP","user_id":"anon_dbfd9fd55f25af4a","comment_id":"98zl3","kind":"post","text":"I found this on the yourworldoftext.com guy's website. Anyone want to help unravel the mysteries?","timestamp":"2009-08-09T17:18:30+00:00","score":15},{"role":"answerer","user_id":"anon_36e5236fcd4c6104","comment_id":"c0buz0s","kind":"comment","text":"There are 5 different messages you can get, but once you've found those that's about it. Anything you could possibly draw using the boxes would be unoriginal since it's already one of the trillion pages. ;)","timestamp":"2009-08-09T23:34:44+00:00","score":7},{"role":"OP","user_id":"anon_dbfd9fd55f25af4a","comment_id":"c0bv3u4","kind":"comment","text":"Ah! thanks for clearing that up. I've found 4 of the 5 so far. I hope the 5th one is utterly grand.\n\nEdit: Argh. I found the 5th one. What a let down :(","timestamp":"2009-08-10T02:14:07+00:00","score":2},{"role":"answerer","user_id":"anon_36e5236fcd4c6104","comment_id":"c0bve8c","kind":"comment","text":"Well, sorry. There are plenty of hidden things on yourworldoftext, but I didn't make them.","timestamp":"2009-08-10T08:50:06+00:00","score":3},{"role":"OP","user_id":"anon_dbfd9fd55f25af4a","comment_id":"c0bvez9","kind":"comment","text":"That's okay. I made the made the mistake of taking \"Maybe you could try drawing something\" as a hint of some kind...","timestamp":"2009-08-10T09:38:49+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_dbfd9fd55f25af4a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_36e5236fcd4c6104","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0buz0s","thanks_reply_id":"c0bv3u4","post_score":15,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_7124d080fd29bd5c","answerer_user_id":"anon_1be42b76d9a80720","subreddit":"programming","timestamp":"2009-08-11T18:43:53+00:00","post_id":"99o1k","question":"Help me find my perfect HTML/PHP/CSS/Python IDE\n\nRequirements:\n\n* Linux compatibility\n* FTP support (must be able to find a file remotely, edit, and save it remotely without downloading the whole freaking site and synching it. Bonus points for the ability to save FTP login info for sites)\n* Syntax checking (aka squiggly red lines)\n* NOT Aptana or Eclipse (both have wayyyy more than what I need and take up needless resources)\n\nIs there anything out there for me?","preferred_answer":"Geany might be ok for you, but there's no FTP support.","full_conversation":[{"role":"OP","user_id":"anon_7124d080fd29bd5c","comment_id":"99o1k","kind":"post","text":"Help me find my perfect HTML/PHP/CSS/Python IDE\n\nRequirements:\n\n* Linux compatibility\n* FTP support (must be able to find a file remotely, edit, and save it remotely without downloading the whole freaking site and synching it. Bonus points for the ability to save FTP login info for sites)\n* Syntax checking (aka squiggly red lines)\n* NOT Aptana or Eclipse (both have wayyyy more than what I need and take up needless resources)\n\nIs there anything out there for me?","timestamp":"2009-08-11T18:43:53+00:00","score":0},{"role":"answerer","user_id":"anon_1be42b76d9a80720","comment_id":"c0bxvkw","kind":"comment","text":"Geany might be ok for you, but there's no FTP support.","timestamp":"2009-08-12T06:44:10+00:00","score":2},{"role":"OP","user_id":"anon_7124d080fd29bd5c","comment_id":"c0by7b0","kind":"comment","text":"Yeah, I might just go with Geany. It's basically the perfect editor for me minus the FTP support.","timestamp":"2009-08-12T15:16:32+00:00","score":1},{"role":"answerer","user_id":"anon_1be42b76d9a80720","comment_id":"c0byx89","kind":"comment","text":"As regards the FTP support, since you're developing on a linux machine, can't you mount the FTP as a share (or use Nautilus), and just use Geany as you would use it on your local documents?","timestamp":"2009-08-13T00:24:19+00:00","score":1},{"role":"OP","user_id":"anon_7124d080fd29bd5c","comment_id":"c0bz7dq","kind":"comment","text":"Yeah, that's what I'll probably do. But integration would be nice, that's all :)","timestamp":"2009-08-13T05:07:47+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7124d080fd29bd5c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1be42b76d9a80720","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0bxvkw","thanks_reply_id":"c0by7b0","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_45be57cc4da750a3","answerer_user_id":"anon_d063cf53ebcd44ef","subreddit":"programming","timestamp":"2009-08-18T09:29:17+00:00","post_id":"9bnuv","question":"AskProggit: is there an open source php/mysql ecommerce to sell photos?\n\nI'm looking for something very simple (but if Magento does it that's good) to allow the site administrator to upload pictures, and customers to browse through (watermarked) images and buy them. After payment they will receive a link and be able to download the image.\nI did some googling and couldn't find any.\nPlease, don't downmod me too much before I get some answers.","preferred_answer":"tried drupal with übercart to sell digital assets ?","full_conversation":[{"role":"OP","user_id":"anon_45be57cc4da750a3","comment_id":"9bnuv","kind":"post","text":"AskProggit: is there an open source php/mysql ecommerce to sell photos?\n\nI'm looking for something very simple (but if Magento does it that's good) to allow the site administrator to upload pictures, and customers to browse through (watermarked) images and buy them. After payment they will receive a link and be able to download the image.\nI did some googling and couldn't find any.\nPlease, don't downmod me too much before I get some answers.","timestamp":"2009-08-18T09:29:17+00:00","score":0},{"role":"answerer","user_id":"anon_d063cf53ebcd44ef","comment_id":"c0c5dfs","kind":"comment","text":"tried drupal with übercart to sell digital assets ?","timestamp":"2009-08-18T09:38:17+00:00","score":2},{"role":"OP","user_id":"anon_45be57cc4da750a3","comment_id":"c0c5dre","kind":"comment","text":"That's probably what I'm looking for. Thanks.","timestamp":"2009-08-18T09:59:12+00:00","score":0},{"role":"answerer","user_id":"anon_d063cf53ebcd44ef","comment_id":"c0c5dsm","kind":"comment","text":"there's a thing called the download module. perhaps that could be useful.","timestamp":"2009-08-18T10:02:09+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_45be57cc4da750a3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d063cf53ebcd44ef","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0c5dfs","thanks_reply_id":"c0c5dre","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2346fd09fbe8aee0","answerer_user_id":"anon_65b5b8a58baa699a","subreddit":"programming","timestamp":"2009-08-21T15:52:08+00:00","post_id":"9ctum","question":"I want to learn Django; recommendations? Details in text.\n\nI just finished going through \"How to think like a computer scientist (Python)\". That is my only programming experience. If I want to learn Django, where do I go from here? Any recommended resources and/or projects?","preferred_answer":"Start with the official Django tutorial (note: you might want to read Dive Into Python for Python, too).\n\nAlong with the rest of the official doc (which is pretty darn good) that should get you started. If you feel this isn't enough, swing by the Django Book.\n\nIf you want a \"paper\" book, Practical Django Projects 2nd ed is your friend.","full_conversation":[{"role":"OP","user_id":"anon_2346fd09fbe8aee0","comment_id":"9ctum","kind":"post","text":"I want to learn Django; recommendations? Details in text.\n\nI just finished going through \"How to think like a computer scientist (Python)\". That is my only programming experience. If I want to learn Django, where do I go from here? Any recommended resources and/or projects?","timestamp":"2009-08-21T15:52:08+00:00","score":0},{"role":"answerer","user_id":"anon_65b5b8a58baa699a","comment_id":"c0c9yp7","kind":"comment","text":"Start with the official Django tutorial (note: you might want to read Dive Into Python for Python, too).\n\nAlong with the rest of the official doc (which is pretty darn good) that should get you started. If you feel this isn't enough, swing by the Django Book.\n\nIf you want a \"paper\" book, Practical Django Projects 2nd ed is your friend.","timestamp":"2009-08-21T16:44:24+00:00","score":3},{"role":"OP","user_id":"anon_2346fd09fbe8aee0","comment_id":"c0c9z3m","kind":"comment","text":"Thank you!","timestamp":"2009-08-21T16:53:39+00:00","score":2},{"role":"answerer","user_id":"anon_65b5b8a58baa699a","comment_id":"c0ca0yc","kind":"comment","text":"You can also subscribe to the django-users mailing list and visit #django@irc.freenode.net\n\nYou might also want to subscribe to the blogs of [Brian Rosner](http://oebfare.com/), [Jeff Croft](http://jeffcroft.com/), [James Bennett](http://www.b-list.org/), [Jacob Kaplan-Moss](http://jacobian.org/writing/), [Adrian Holovaty](http://www.holovaty.com/) and [Simon Willison](http://simonwillison.net/) (among others) and browse their archives: they are or used to be Django developers (both users of django and core devs of it) and are as a result pretty important resources on quite a bunch of stuff (I very strongly recommend James Bennett's archives in particular when getting started).\n\nAlso, if you have problems start by searching the documentation, the intarwebs and the mailing list's archives: chances are, somebody else had the same issue.\n\nIf you can't find anything, ask on IRC its resident tend to be pretty friendly (though asking questions that can be answered by the doc or a quick googling isn't the best way to get on their good side).\n\nFinally, don't hesitate diving in Django's source itself, and if you find things that are incomplete or incorrect in the official documentation do open bugs on the tracker (if the issues aren't tracked already, don't forget to do a quick search) and, if you can, provide patches: documentation contributions are first-class contribs to the django project, they aren't considered second-class citizens.","timestamp":"2009-08-21T17:36:19+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2346fd09fbe8aee0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_65b5b8a58baa699a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0c9yp7","thanks_reply_id":"c0c9z3m","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_a632ba34bc86fa92","answerer_user_id":"anon_7eac1447fe0d2d31","subreddit":"programming","timestamp":"2009-08-22T03:07:26+00:00","post_id":"9czsi","question":"Ask proggit: Building up a sparse matrix from a set of data points?\n\nI'm wondering if there may be any (efficient?) way of 'building up' a sparse matrix representation of a data set?\n\nAll the information I have found about sparse matrices require the original matrix to exist, then reduce it to a sparse matrix representation.\n\nUnfortunately, the datasets I'm dealing with are stored as many-millions of individual events accumulated over time (each event has a spatial coordinate, but sequential events may have vastly different spatial coordinates) and can end up creating arrays that are 256MB or more.\n\nAfter populating the matrix, anywhere from 80-99% of the matrix elements are zero, so a sparse matrix representation would greatly reduce the space requirements. However, I have no idea if it is possible to 'build up' a sparse matrix from a stream of incoming data points without having to initially populate a large 256MB+ matrix.\n\nAny ideas or suggestions would be greatly appreciated!\n\nedit: I'll be using C++","preferred_answer":"You could use a [Yale Sparse Matrix Format](http://en.wikipedia.org/wiki/Sparse_matrix). As points come in, extend the arrays as needed.\n\nYou'll probably want to think of something clever in terms of using sorted lists. I imagine with some tweaking, adding all values should be nlogn. \n\nYou might want to try the stupid thing first -- store triples for all filled in points and aggregate them in a hashtable or binary tree.\n\nWhat language you are using is important here. If you can implement a 'matrix' interface that a sparse matrix package from a library can read, you should just use the stupid hash table approach and see what that does for you. I imagine if you intend to crunch this data, you won't want to screw around with optimizing this process so much right now.","full_conversation":[{"role":"OP","user_id":"anon_a632ba34bc86fa92","comment_id":"9czsi","kind":"post","text":"Ask proggit: Building up a sparse matrix from a set of data points?\n\nI'm wondering if there may be any (efficient?) way of 'building up' a sparse matrix representation of a data set?\n\nAll the information I have found about sparse matrices require the original matrix to exist, then reduce it to a sparse matrix representation.\n\nUnfortunately, the datasets I'm dealing with are stored as many-millions of individual events accumulated over time (each event has a spatial coordinate, but sequential events may have vastly different spatial coordinates) and can end up creating arrays that are 256MB or more.\n\nAfter populating the matrix, anywhere from 80-99% of the matrix elements are zero, so a sparse matrix representation would greatly reduce the space requirements. However, I have no idea if it is possible to 'build up' a sparse matrix from a stream of incoming data points without having to initially populate a large 256MB+ matrix.\n\nAny ideas or suggestions would be greatly appreciated!\n\nedit: I'll be using C++","timestamp":"2009-08-22T03:07:26+00:00","score":0},{"role":"answerer","user_id":"anon_7eac1447fe0d2d31","comment_id":"c0cape0","kind":"comment","text":"You could use a [Yale Sparse Matrix Format](http://en.wikipedia.org/wiki/Sparse_matrix). As points come in, extend the arrays as needed.\n\nYou'll probably want to think of something clever in terms of using sorted lists. I imagine with some tweaking, adding all values should be nlogn. \n\nYou might want to try the stupid thing first -- store triples for all filled in points and aggregate them in a hashtable or binary tree.\n\nWhat language you are using is important here. If you can implement a 'matrix' interface that a sparse matrix package from a library can read, you should just use the stupid hash table approach and see what that does for you. I imagine if you intend to crunch this data, you won't want to screw around with optimizing this process so much right now.","timestamp":"2009-08-22T06:25:46+00:00","score":2},{"role":"OP","user_id":"anon_a632ba34bc86fa92","comment_id":"c0cb33e","kind":"comment","text":"Thanks for the comment! I'll most likely be using C++ unless there is some compelling reason to use something else.\nI hadn't thought to store them in a hash table or binary tree. I guess I would just have to include a 'counter' in the event's data structure (because events with same x,y,energy need to be accumulated). I'm curious though, why do you refer to using a hashtable or binary tree as 'the stupid thing' ?\n\nAlso, any suggestions on where I could search for (or names of) libraries that have a sparse matrix package?\nThanks again","timestamp":"2009-08-22T17:56:06+00:00","score":1},{"role":"answerer","user_id":"anon_7eac1447fe0d2d31","comment_id":"c0cb6uc","kind":"comment","text":"> I'm curious though, why do you refer to using a hashtable or binary tree as 'the stupid thing' \n\nWhen I say 'the stupid thing', I mean it in the sense of 'the easiest thing to do, that might not work, but try it anyway'. Its a bit of a mantra for some CS folks -- always do the stupid thing first, and then make that better if it doesn't work.\n\nIn this regard, its 'stupid' because neither solution would scale particularly well. a hashtable is going to fuck you up on memory for enough inputs, and a binary tree will eventually fuck you up in performance. Thats why super optimized forms for sparse matrices exist. \n\nIts likely though you have a small enough scale so that none of that matters, and so the easiest thing to do will work perfectly. \n\nWhat kind of post processing are you going to do on the data?","timestamp":"2009-08-22T19:55:36+00:00","score":1},{"role":"OP","user_id":"anon_a632ba34bc86fa92","comment_id":"c0cbj09","kind":"comment","text":"Ah yes, I've definitely come across the 'make it work, then worry about performance' mantra before.. Unfortunately I sort of have to think about performance from the get-go (at least in terms of memory footprint).\n\n\n>What kind of post processing are you going to do on the data?\n\nWell, each event has a detector#, x position, y position and energy (or bin number). The detectors are to be considered separately, so the 'event space' created is a 3D space (x-position) x (y-position) x (energy/bin number) that can be as large as 256x256x4096. The only post-processing I need to do on the data is read through the (sparse) matrix to create 2D density maps (using pixel counts that are between some energy threshold).\n\nI have a feeling the Yale Sparse Matrix Format will be very useful, I'm going to give that a try.","timestamp":"2009-08-23T02:53:24+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a632ba34bc86fa92","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7eac1447fe0d2d31","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0cape0","thanks_reply_id":"c0cb33e","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_9cf4b96061eb5193","answerer_user_id":"anon_d8a8a5c337b70876","subreddit":"programming","timestamp":"2009-08-28T14:03:03+00:00","post_id":"9f1o6","question":"AskProggit: I have a ton of bookmarks and I'm beginning to fear that I'll lose some of the content over time. Can you help me find/make a utility to convert the links into pdfs?\n\nI run OS X 10.5.8. and have the bookmarks on Firefox, meaning I can export the bookmark list itself as .html (and do for backup purposes) and I have a lot of folders for categorizing, which would be nice to keep in the conversion process.\n\nI have a lot of diskspace and CPU power to handle such things, the problem is is that I don't know of any convenient program or method to do this automatically. We're talking about a 4 mbyte file of just links when exported to HTML.\n\n**What I want/need to do is to somehow get a program to go to each URL I have bookmarked and to print it out as a PDF copy so I can locally archive the content (text, images) of the pages** just in case the server goes down and its content isn't found elsewhere on the net. Unlikely, but I don't want to risk it.\n\nI'm using these bookmarks as source material to make documentaries for a website that I've been working on for ages. *Please* help me, this will pay itself back once I get the funds together to start developing the actual doc's, I swear there's such a large array of topics there's going to be something for everyone (and not superficial garbage either). The links provide easy dive-in points for my writing and research.\n\nThank you.\n\n**EDIT:** I see that people have been slightly confused as to what I meant, added some text (mostly in bold).\n\n**EDIT 2:** I forgot to mention that I have near-zero knowledge in command lines or programming. I am a total newb. Be gentle. The advice I'm getting is gold, but I still feel that the essence of what I'm getting at isn't getting addressed. I sent the developer of [wkpdf](http://plessl.github.com/wkpdf/) an email for some advice, hopefully that'll get me somewhere. Serious thanks to everyone, please share your advice if you have ideas.","preferred_answer":"It should be possible to point wget at your HTML file of exported bookmarks, and get it to follow every link therein. Do you just want the pages you bookmarked, or the whole of each site?\n\n**Edit**: I had a brief go at doing this, but I appear to be having a bit of trouble getting the options to wget right. For reference, here's how you extract the list of links from a Firefox bookmarks file:\n\n1. Save the file as, say, `bookmarks.html` in `/home/srussian/bookmarks` (ie, the \"bookmarks\" subdirectory of your home directory).\n2. Open a command prompt.\n3. Type `cd bookmarks`, and then press \"RETURN\" to change to the bookmarks directory.\n4. Type (or better, copy-and-paste) the line `perl -ne 'if (/href=\"(.*?)\"/i) { print \"$1\\n\"; }' bookmarks.html > bookmarks` into the command prompt, and press RETURN.\n5. All being well, there should now be a file called called `bookmarks` in the directory, that contains just the links, one per line.\n\nThis file can now be passed as an argument to wget's `-i` option. The original `bookmarks.html` ought to work here too, but it doesn't (at least, not for me), for reasons I don't care enough to investigate. Seasoned programmers will castigate me for operating on HTML with a regex, but Firefox's bookmarks file is not valid XML, so using xpath on it doesn't work either.\n\n**Further edit**: I think the correct `wget` invocation is `wget -E -H -k -K -p -i bookmarks`. Your mission is now to type `man wget`, find out what all those switches do, and work out why I suggest that you use them and what will happen. NB: this will not preserve your directory structure at all. Nor will it save things as PDF, but I don't think that's really helpful for your purposes anyway.","full_conversation":[{"role":"OP","user_id":"anon_9cf4b96061eb5193","comment_id":"9f1o6","kind":"post","text":"AskProggit: I have a ton of bookmarks and I'm beginning to fear that I'll lose some of the content over time. Can you help me find/make a utility to convert the links into pdfs?\n\nI run OS X 10.5.8. and have the bookmarks on Firefox, meaning I can export the bookmark list itself as .html (and do for backup purposes) and I have a lot of folders for categorizing, which would be nice to keep in the conversion process.\n\nI have a lot of diskspace and CPU power to handle such things, the problem is is that I don't know of any convenient program or method to do this automatically. We're talking about a 4 mbyte file of just links when exported to HTML.\n\n**What I want/need to do is to somehow get a program to go to each URL I have bookmarked and to print it out as a PDF copy so I can locally archive the content (text, images) of the pages** just in case the server goes down and its content isn't found elsewhere on the net. Unlikely, but I don't want to risk it.\n\nI'm using these bookmarks as source material to make documentaries for a website that I've been working on for ages. *Please* help me, this will pay itself back once I get the funds together to start developing the actual doc's, I swear there's such a large array of topics there's going to be something for everyone (and not superficial garbage either). The links provide easy dive-in points for my writing and research.\n\nThank you.\n\n**EDIT:** I see that people have been slightly confused as to what I meant, added some text (mostly in bold).\n\n**EDIT 2:** I forgot to mention that I have near-zero knowledge in command lines or programming. I am a total newb. Be gentle. The advice I'm getting is gold, but I still feel that the essence of what I'm getting at isn't getting addressed. I sent the developer of [wkpdf](http://plessl.github.com/wkpdf/) an email for some advice, hopefully that'll get me somewhere. Serious thanks to everyone, please share your advice if you have ideas.","timestamp":"2009-08-28T14:03:03+00:00","score":0},{"role":"answerer","user_id":"anon_d8a8a5c337b70876","comment_id":"c0ck2w5","kind":"comment","text":"It should be possible to point wget at your HTML file of exported bookmarks, and get it to follow every link therein. Do you just want the pages you bookmarked, or the whole of each site?\n\n**Edit**: I had a brief go at doing this, but I appear to be having a bit of trouble getting the options to wget right. For reference, here's how you extract the list of links from a Firefox bookmarks file:\n\n1. Save the file as, say, `bookmarks.html` in `/home/srussian/bookmarks` (ie, the \"bookmarks\" subdirectory of your home directory).\n2. Open a command prompt.\n3. Type `cd bookmarks`, and then press \"RETURN\" to change to the bookmarks directory.\n4. Type (or better, copy-and-paste) the line `perl -ne 'if (/href=\"(.*?)\"/i) { print \"$1\\n\"; }' bookmarks.html > bookmarks` into the command prompt, and press RETURN.\n5. All being well, there should now be a file called called `bookmarks` in the directory, that contains just the links, one per line.\n\nThis file can now be passed as an argument to wget's `-i` option. The original `bookmarks.html` ought to work here too, but it doesn't (at least, not for me), for reasons I don't care enough to investigate. Seasoned programmers will castigate me for operating on HTML with a regex, but Firefox's bookmarks file is not valid XML, so using xpath on it doesn't work either.\n\n**Further edit**: I think the correct `wget` invocation is `wget -E -H -k -K -p -i bookmarks`. Your mission is now to type `man wget`, find out what all those switches do, and work out why I suggest that you use them and what will happen. NB: this will not preserve your directory structure at all. Nor will it save things as PDF, but I don't think that's really helpful for your purposes anyway.","timestamp":"2009-08-29T16:36:27+00:00","score":2},{"role":"OP","user_id":"anon_9cf4b96061eb5193","comment_id":"c0cku64","kind":"comment","text":"Whoa, thanks a million! Very detailed and thorough advice.","timestamp":"2009-08-30T09:42:12+00:00","score":1},{"role":"answerer","user_id":"anon_d8a8a5c337b70876","comment_id":"c0ckxz8","kind":"comment","text":"No problem, and I hope it works for you. I think it may be possible to recover your directory structure by hacking the original `bookmarks.html` file to point to your local copies, but I'll have to experiment with that a bit. Actually, you could probably do it yourself by opening the file in a text editor, and replacing `href=\"http://` with `href=\"file:///home/srussian/bookmarks/` throughout.","timestamp":"2009-08-30T14:01:05+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9cf4b96061eb5193","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d8a8a5c337b70876","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ck2w5","thanks_reply_id":"c0cku64","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_00759792d4c4802f","answerer_user_id":"anon_b0df641dd31cbfd6","subreddit":"programming","timestamp":"2009-08-29T01:53:41+00:00","post_id":"9f8bt","question":"Any PHP framework suggestions?\n\nI'm kinda hoping someone has a suggestion of a magic bullet framework. Here are the particulars:\n\n\nI'm contracting to supporting a PHP website. The original developer learned PHP and web dev with this site and left when it became too cumbersome... The site mainly loads data from the DB into forms users can edit. It has minimal locking, some authentication, and is mostly table layouts.\n\nSome notes.\n\n* It's about 55K lines of PHP4, about 40 web pages\n* There are very few functions, no classes (lots of duplication)\n* A framework would need to run in Apache 1.3\n* I might be able to upgrade to PHP5 (more of a hosting issue)\n* I've got MySQL 5.0.X\n\nThis is my first real contract... I don't want spend much more than 80 hours \"doing nothing\" since they don't get to see how much better the framework is. Ideally, I can support the current pages and use the framework piecemeal as I add features.\n\nHere are some frameworks I've found online: [symfony](http://www.symfony-project.org/), [CakePHP](http://cakephp.org/), [FLOW3](http://flow3.typo3.org/), [Friendly](http://friendlyphp.org/), and [A Big List](http://php.devreview.com/big-list-of-php-frameworks). The problem isn't finding them. I'd like to know if anyone can recommend a framework from personal experience.","preferred_answer":"Propel can be molded quite well to most existing schemas.","full_conversation":[{"role":"OP","user_id":"anon_00759792d4c4802f","comment_id":"9f8bt","kind":"post","text":"Any PHP framework suggestions?\n\nI'm kinda hoping someone has a suggestion of a magic bullet framework. Here are the particulars:\n\n\nI'm contracting to supporting a PHP website. The original developer learned PHP and web dev with this site and left when it became too cumbersome... The site mainly loads data from the DB into forms users can edit. It has minimal locking, some authentication, and is mostly table layouts.\n\nSome notes.\n\n* It's about 55K lines of PHP4, about 40 web pages\n* There are very few functions, no classes (lots of duplication)\n* A framework would need to run in Apache 1.3\n* I might be able to upgrade to PHP5 (more of a hosting issue)\n* I've got MySQL 5.0.X\n\nThis is my first real contract... I don't want spend much more than 80 hours \"doing nothing\" since they don't get to see how much better the framework is. Ideally, I can support the current pages and use the framework piecemeal as I add features.\n\nHere are some frameworks I've found online: [symfony](http://www.symfony-project.org/), [CakePHP](http://cakephp.org/), [FLOW3](http://flow3.typo3.org/), [Friendly](http://friendlyphp.org/), and [A Big List](http://php.devreview.com/big-list-of-php-frameworks). The problem isn't finding them. I'd like to know if anyone can recommend a framework from personal experience.","timestamp":"2009-08-29T01:53:41+00:00","score":0},{"role":"answerer","user_id":"anon_b0df641dd31cbfd6","comment_id":"c0ck38x","kind":"comment","text":"Propel can be molded quite well to most existing schemas.","timestamp":"2009-08-29T16:47:55+00:00","score":2},{"role":"OP","user_id":"anon_00759792d4c4802f","comment_id":"c0ckdn0","kind":"comment","text":"Thanks. I'll check that one out too.","timestamp":"2009-08-29T22:39:52+00:00","score":1},{"role":"answerer","user_id":"anon_b0df641dd31cbfd6","comment_id":"c0ckjfa","kind":"comment","text":"Just to clear up some confusion, [Propel](http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/UserGuide) is the (default) ORM included in [Symfony](http://www.symfony-project.org/getting-started/1_2/en/).","timestamp":"2009-08-30T02:08:33+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_00759792d4c4802f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b0df641dd31cbfd6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ck38x","thanks_reply_id":"c0ckdn0","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_fe4ba7af69aaef93","answerer_user_id":"anon_3db47d29f33903f6","subreddit":"programming","timestamp":"2009-09-06T01:39:19+00:00","post_id":"9hqaf","question":"Is there a school that offers web design/development (or something similar) as a masters program?\n\nI was wanting to go to Notre Dame, but it's not looking like there's anything offered other than computer science. Can I customize a program to focus around something that I'd like to study (i.e.: web development)?\n\nHelp! \n\nEDIT: I've been doing web design/development for a while and started my own company and I am still in school with a major of Business Information Systems, minoring in Computer Science and Media Communications (and trying to combine them into a more useful major for me). I fully understand the concepts of programming, and have made plenty of websites. I've done work with databases and have taken classes on data communication, assembly programming, computer architecture, etc...\n\nI'm basically just looking for something after this for something that is MORE than just online tutorials. I want to advance the field, not just do what somebody else has already done.","preferred_answer":"Your best bet is to study Computer Science and specialize in Human-Computer Interaction, if you want a Masters, and do research in web development in relation to design.\n\nAnother budding field of interest might be Data/Information Visualization.","full_conversation":[{"role":"OP","user_id":"anon_fe4ba7af69aaef93","comment_id":"9hqaf","kind":"post","text":"Is there a school that offers web design/development (or something similar) as a masters program?\n\nI was wanting to go to Notre Dame, but it's not looking like there's anything offered other than computer science. Can I customize a program to focus around something that I'd like to study (i.e.: web development)?\n\nHelp! \n\nEDIT: I've been doing web design/development for a while and started my own company and I am still in school with a major of Business Information Systems, minoring in Computer Science and Media Communications (and trying to combine them into a more useful major for me). I fully understand the concepts of programming, and have made plenty of websites. I've done work with databases and have taken classes on data communication, assembly programming, computer architecture, etc...\n\nI'm basically just looking for something after this for something that is MORE than just online tutorials. I want to advance the field, not just do what somebody else has already done.","timestamp":"2009-09-06T01:39:19+00:00","score":0},{"role":"answerer","user_id":"anon_3db47d29f33903f6","comment_id":"c0ctqbf","kind":"comment","text":"Your best bet is to study Computer Science and specialize in Human-Computer Interaction, if you want a Masters, and do research in web development in relation to design.\n\nAnother budding field of interest might be Data/Information Visualization.","timestamp":"2009-09-06T02:54:13+00:00","score":6},{"role":"OP","user_id":"anon_fe4ba7af69aaef93","comment_id":"c0ctqf0","kind":"comment","text":"Thank you. This has actually been very helpful to me.\n\nI guess I've been looking for the answer to, \"What is the name for what I'm interested in.\" I feel as if I have a very clear vision, I just don't know how to get there from here.","timestamp":"2009-09-06T02:57:48+00:00","score":2},{"role":"answerer","user_id":"anon_3db47d29f33903f6","comment_id":"c0ctqrb","kind":"comment","text":"Not a problem - I'm actually doing my Masters in CS under Information Visualization (actually, Software Visualization, to be more precise) because of my interest in HCI topics, but my University lacked anyone in the HCI field who was decent and the InfoViz prof was a really good and it was, more or less, applied HCI.","timestamp":"2009-09-06T03:09:47+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fe4ba7af69aaef93","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3db47d29f33903f6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ctqbf","thanks_reply_id":"c0ctqf0","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_06e27aa2b23f9ba4","answerer_user_id":"anon_7dbd808d95b57af7","subreddit":"programming","timestamp":"2009-09-06T04:33:36+00:00","post_id":"9hr7d","question":"What Python IDE's Work With 3.0?\n\nI'm looking for something with more power than IDLE. I have never used another IDE for Python and want something with auto complete and debugging. Any suggestions?","preferred_answer":"Which.\n\nDefinitely check it out.","full_conversation":[{"role":"OP","user_id":"anon_06e27aa2b23f9ba4","comment_id":"9hr7d","kind":"post","text":"What Python IDE's Work With 3.0?\n\nI'm looking for something with more power than IDLE. I have never used another IDE for Python and want something with auto complete and debugging. Any suggestions?","timestamp":"2009-09-06T04:33:36+00:00","score":9},{"role":"answerer","user_id":"anon_7dbd808d95b57af7","comment_id":"c0cttg7","kind":"comment","text":"Which.\n\nDefinitely check it out.","timestamp":"2009-09-06T04:42:25+00:00","score":3},{"role":"OP","user_id":"anon_06e27aa2b23f9ba4","comment_id":"c0ctw12","kind":"comment","text":"Thanks for pointing that out. You lost me on the second sentence though.","timestamp":"2009-09-06T06:22:49+00:00","score":5},{"role":"answerer","user_id":"anon_7dbd808d95b57af7","comment_id":"c0cux4n","kind":"comment","text":"I had hoped you would search for it before realizing I was correcting your grammar.","timestamp":"2009-09-07T05:11:17+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_06e27aa2b23f9ba4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7dbd808d95b57af7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0cttg7","thanks_reply_id":"c0ctw12","post_score":9,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_2a3c5fe927851068","answerer_user_id":"anon_605eec2f499d19a7","subreddit":"programming","timestamp":"2009-09-08T08:01:12+00:00","post_id":"9ickt","question":"Manipulate/modify S-expressions in Emacs Lisp?\n\nHi, I wonder if there are any good documents or tutorials on how to\nmanipulate S-expressions in Emacs Lisp. My immediate goal\nis to modify one line of a function already loaded from a contributed\nlibrary. The function is rather long, so I was hoping for a more\nconcise solution than copy-pasting the whole function (with the slight\nmodification) in my .emacs file simply to redefine it after loading.\n\nFor instance, in the R language, I can do the following -\n\nrebind modified function:\n\n FunctionName <-\n `body<-`(FunctionName,\n value=replace(body(FunctionName),ListElement,\n list(quote(NewExpression))))\n\n\n(or, modifying the function in place):\n\n body(FunctionName)[[ListElement]] <- quote(NewExpression)\n\nEssentially, body() transforms a function into a list whose elements\nare (quoted) expressions comprising the function and body<-() allows assignment to it.\n\nI understand that this is called \"computing on the language\" and\nderived from Lisp. (Emacs) Lisp S-expressions can be parsed as trees\nand so searching and modifying should be even more natural...? I\nhaven't been able to find the appropriate documentation for converting\nEmacs Lisp functions into structures that I can search and modify - do you have any leads? Also... are there more general uses for such operations (there must be, I know, but my application domain is limited)? Thanks!","preferred_answer":"The main issue with your proposed technique is the same as with self-modifying code; hacking on (what is effectively) object code brings it out-of-sync with source code in ways that are not necessarily well-controlled.\n\nYou can very easily get into situations where you introduce hard-to-find bugs, and software configurations that are hard to reproduce.\n\n\"Manipulating S-expressions\" in Lisp is generally limited to macros, which act as a user-programmable front-end for the compiler, not doing invasive surgery after the compiler is done.\n\nThe key thing is that Lisp *source code* is explicitly written in the S-expression format which is easily processed as data. Lisp *object code* might be S-expressions, if you have a naive interpreter or simple compiler, but it also might be machine code.","full_conversation":[{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"9ickt","kind":"post","text":"Manipulate/modify S-expressions in Emacs Lisp?\n\nHi, I wonder if there are any good documents or tutorials on how to\nmanipulate S-expressions in Emacs Lisp. My immediate goal\nis to modify one line of a function already loaded from a contributed\nlibrary. The function is rather long, so I was hoping for a more\nconcise solution than copy-pasting the whole function (with the slight\nmodification) in my .emacs file simply to redefine it after loading.\n\nFor instance, in the R language, I can do the following -\n\nrebind modified function:\n\n FunctionName <-\n `body<-`(FunctionName,\n value=replace(body(FunctionName),ListElement,\n list(quote(NewExpression))))\n\n\n(or, modifying the function in place):\n\n body(FunctionName)[[ListElement]] <- quote(NewExpression)\n\nEssentially, body() transforms a function into a list whose elements\nare (quoted) expressions comprising the function and body<-() allows assignment to it.\n\nI understand that this is called \"computing on the language\" and\nderived from Lisp. (Emacs) Lisp S-expressions can be parsed as trees\nand so searching and modifying should be even more natural...? I\nhaven't been able to find the appropriate documentation for converting\nEmacs Lisp functions into structures that I can search and modify - do you have any leads? Also... are there more general uses for such operations (there must be, I know, but my application domain is limited)? Thanks!","timestamp":"2009-09-08T08:01:12+00:00","score":0},{"role":"answerer","user_id":"anon_605eec2f499d19a7","comment_id":"c0cwi1m","kind":"comment","text":"The main issue with your proposed technique is the same as with self-modifying code; hacking on (what is effectively) object code brings it out-of-sync with source code in ways that are not necessarily well-controlled.\n\nYou can very easily get into situations where you introduce hard-to-find bugs, and software configurations that are hard to reproduce.\n\n\"Manipulating S-expressions\" in Lisp is generally limited to macros, which act as a user-programmable front-end for the compiler, not doing invasive surgery after the compiler is done.\n\nThe key thing is that Lisp *source code* is explicitly written in the S-expression format which is easily processed as data. Lisp *object code* might be S-expressions, if you have a naive interpreter or simple compiler, but it also might be machine code.","timestamp":"2009-09-08T15:37:58+00:00","score":2},{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"c0cxcoy","kind":"comment","text":"Thank you - very helpful. I do think in some instances the edits could be small and contained enough enough that hacking it a posteriori isn't too egregious, but your point is well taken. Thanks for the insight!","timestamp":"2009-09-09T03:11:58+00:00","score":1},{"role":"answerer","user_id":"anon_605eec2f499d19a7","comment_id":"c0cxpdz","kind":"comment","text":"Another thing I didn't explicitly mention is the ability of Lisp environments to replace complete definitions at any time (i.e., late binding).\n\nIf you do want to replace definitions, `defadvice` allows for replacing definitions by wrapping the current definition, and copy-paste into your personal init file allows for replacing definitions with arbitrary altered definitions, but in both cases, source code navigation works. That is, the environment should keep track of those changes and be able to show you the source code that is in effect right now.\n\nIf you modify the object code, the environment is prone to confusion, and will give misleading indications as to the currently active definitions. (Emacs will show you source that is out-of-date or inapplicable, because you have made changes that it is unable to track.)","timestamp":"2009-09-09T12:35:53+00:00","score":2},{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"c0cxvqp","kind":"comment","text":"Much obliged. Sounds like what I want is something like defadvice but most examples I find are indeed wrapping the function and invoking functions before and after (and if 'wrapping' is its main functionality probably not suited for my task...). In that case it's probably best for me to redefine the function (either in my init file or in a separate file in ~/elisp/ or ~/.emacs.d/ which I will load) so that it replaces the original function (late binding or re-binding?).","timestamp":"2009-09-09T15:37:44+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2a3c5fe927851068","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_605eec2f499d19a7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0cwi1m","thanks_reply_id":"c0cxcoy","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6ec4389e336bd3c9","answerer_user_id":"anon_60cdc988fdaa951c","subreddit":"programming","timestamp":"2009-09-12T15:03:55+00:00","post_id":"9jviy","question":"Help! I am due to teach a Ruby college course and need ideas for programming exercises.\n\nHi! I am due to teach OOP with Ruby. All the usual concepts will be covered (encapsulation, inheritance, polymorphism, etc.). I do not want students be be distracted by GUIs, web or other APIs: just simple command-line and file/YAML i/o.\n\nI need inspiring, engaging programming tasks that cover each idea in a simple way, starting with classes and instantiation and going all the way through to mixins and procs.\n\nIf anyone can suggest good ideas, I (and my students) would be very grateful.\n\nThanks :-)","preferred_answer":"Ok then, this is a pen.\n\nA pen is an object.\n\nHave them describe the properties of the object. (length, diameter, color, etc.)\n\nHave them describe the functions of the pen. (write, retract, etc.)\n\nUse real world objects to describe what an OOP is and how different objects interact with each other to accomplish a task within a system.","full_conversation":[{"role":"OP","user_id":"anon_6ec4389e336bd3c9","comment_id":"9jviy","kind":"post","text":"Help! I am due to teach a Ruby college course and need ideas for programming exercises.\n\nHi! I am due to teach OOP with Ruby. All the usual concepts will be covered (encapsulation, inheritance, polymorphism, etc.). I do not want students be be distracted by GUIs, web or other APIs: just simple command-line and file/YAML i/o.\n\nI need inspiring, engaging programming tasks that cover each idea in a simple way, starting with classes and instantiation and going all the way through to mixins and procs.\n\nIf anyone can suggest good ideas, I (and my students) would be very grateful.\n\nThanks :-)","timestamp":"2009-09-12T15:03:55+00:00","score":0},{"role":"answerer","user_id":"anon_60cdc988fdaa951c","comment_id":"c0d28o3","kind":"comment","text":"Ok then, this is a pen.\n\nA pen is an object.\n\nHave them describe the properties of the object. (length, diameter, color, etc.)\n\nHave them describe the functions of the pen. (write, retract, etc.)\n\nUse real world objects to describe what an OOP is and how different objects interact with each other to accomplish a task within a system.","timestamp":"2009-09-12T16:06:00+00:00","score":2},{"role":"OP","user_id":"anon_6ec4389e336bd3c9","comment_id":"c0d295w","kind":"comment","text":"Okay, thanks, The_Mad_Highlander :-)","timestamp":"2009-09-12T16:20:27+00:00","score":0},{"role":"answerer","user_id":"anon_60cdc988fdaa951c","comment_id":"c0d2982","kind":"comment","text":"Your welcome, now kindly step off my lawn.","timestamp":"2009-09-12T16:22:15+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6ec4389e336bd3c9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_60cdc988fdaa951c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0d28o3","thanks_reply_id":"c0d295w","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_3cf65a14071afac0","answerer_user_id":"anon_9a26bf44398af74a","subreddit":"programming","timestamp":"2009-09-14T07:48:31+00:00","post_id":"9kavb","question":"Should I be writing in plain php or should I begin using a framework? (Advantages/Disadvantages)\n\nI've written a few web applications in plain PHP in the past and I've just seen a few frameworks out there, however I'm not sure what the advantages/disadvantages of using one of these are.","preferred_answer":"> Would it be wise to begin using a framework or should I continue with my regular learning.\n\nBoth, but frameworks are easy enough that you might not feel inclined to continue doing everything the long way. Maybe you could use a framework and try to write one at the same time if you want to continue working with OOP, which brings me to...\n\n> is adding a module/function to a framework as simple as writing your own class \n\nIt depends on what framework you use, but I think in general: No. Writing hooks may be, but in general adding a function to a controller or writing a model feels pretty procedural. You only use OO to construct a DB call or whatever, but you'll do more writing functions and calling functions than writing classes and private vars, etc.","full_conversation":[{"role":"OP","user_id":"anon_3cf65a14071afac0","comment_id":"9kavb","kind":"post","text":"Should I be writing in plain php or should I begin using a framework? (Advantages/Disadvantages)\n\nI've written a few web applications in plain PHP in the past and I've just seen a few frameworks out there, however I'm not sure what the advantages/disadvantages of using one of these are.","timestamp":"2009-09-14T07:48:31+00:00","score":0},{"role":"answerer","user_id":"anon_9a26bf44398af74a","comment_id":"c0d4gjv","kind":"comment","text":"> Would it be wise to begin using a framework or should I continue with my regular learning.\n\nBoth, but frameworks are easy enough that you might not feel inclined to continue doing everything the long way. Maybe you could use a framework and try to write one at the same time if you want to continue working with OOP, which brings me to...\n\n> is adding a module/function to a framework as simple as writing your own class \n\nIt depends on what framework you use, but I think in general: No. Writing hooks may be, but in general adding a function to a controller or writing a model feels pretty procedural. You only use OO to construct a DB call or whatever, but you'll do more writing functions and calling functions than writing classes and private vars, etc.","timestamp":"2009-09-14T08:56:03+00:00","score":2},{"role":"OP","user_id":"anon_3cf65a14071afac0","comment_id":"c0d4hrx","kind":"comment","text":"Thanks. I'll think I'll go through a bit more of using OO in php while writing in a framework. Means I would be more employable if I knew both I guess.\n\nthanks","timestamp":"2009-09-14T10:02:26+00:00","score":1},{"role":"answerer","user_id":"anon_9a26bf44398af74a","comment_id":"c0d4j0g","kind":"comment","text":"Not to mention you'll be more employable when you can deploy an application 3x faster because you don't have to write the same tedious set of features that come \"out of the box\" with frameworks. And, if you're working on a large project, it will be much much easier to manage and keep yourself sane. I've tried to stay unaffiliated in these last posts, but in my final one here I'll say that I've used Zend and Codeigniter, and I strongly recommend CI, especially for someone just getting into MVC frameworks.","timestamp":"2009-09-14T11:11:23+00:00","score":1},{"role":"OP","user_id":"anon_3cf65a14071afac0","comment_id":"c0d4jab","kind":"comment","text":"I had downloaded CI just before you posted this. I've been evaluating a whole lot of frameworks and it just sounds like the more appropriate option.\n\nThankyou so much for your help. :)","timestamp":"2009-09-14T11:26:53+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3cf65a14071afac0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9a26bf44398af74a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0d4gjv","thanks_reply_id":"c0d4hrx","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_58d7deed8f4d7a6e","answerer_user_id":"anon_7c9d6ab1cd8753c8","subreddit":"programming","timestamp":"2009-09-16T10:20:25+00:00","post_id":"9l31t","question":"Why must operating systems freeze?\n\nI don't know too much about operating systems so maybe this is a dumb question, but I don't understand why an OS has to freeze up. \n\nIs it not possible to somehow set a memory limit on the total memory consumption of the system so that when a (non core) process or processes near that limit they can simply be paused, so that the user can still decide what to do without the entire system becoming completely unusable? \n\nCould some erudite soul explicate this for me?","preferred_answer":"You should read up on memory allocation and management. It isn't quite as simple as you suggest. Operation systems most often freeze because of either poor programming or a bug. Also 'pausing' a process does not release the memory it has been allocated and if you free that memory, then the data would either have to be saved somewhere else or it would be lost. \n\nThere are few simple answers to a question that covers such a broad area. I advice you to read up on procedural programming, memory management and operating system developement.","full_conversation":[{"role":"OP","user_id":"anon_58d7deed8f4d7a6e","comment_id":"9l31t","kind":"post","text":"Why must operating systems freeze?\n\nI don't know too much about operating systems so maybe this is a dumb question, but I don't understand why an OS has to freeze up. \n\nIs it not possible to somehow set a memory limit on the total memory consumption of the system so that when a (non core) process or processes near that limit they can simply be paused, so that the user can still decide what to do without the entire system becoming completely unusable? \n\nCould some erudite soul explicate this for me?","timestamp":"2009-09-16T10:20:25+00:00","score":0},{"role":"answerer","user_id":"anon_7c9d6ab1cd8753c8","comment_id":"c0d7ria","kind":"comment","text":"You should read up on memory allocation and management. It isn't quite as simple as you suggest. Operation systems most often freeze because of either poor programming or a bug. Also 'pausing' a process does not release the memory it has been allocated and if you free that memory, then the data would either have to be saved somewhere else or it would be lost. \n\nThere are few simple answers to a question that covers such a broad area. I advice you to read up on procedural programming, memory management and operating system developement.","timestamp":"2009-09-16T10:32:11+00:00","score":2},{"role":"OP","user_id":"anon_58d7deed8f4d7a6e","comment_id":"c0d7rui","kind":"comment","text":"thanks and sorry, i didnt mean to imply that it was simple, but that i didn't understand it.\n\nand if possible can you provide some specific resources? i wouldnt really know how to pick them out.","timestamp":"2009-09-16T10:50:13+00:00","score":2},{"role":"answerer","user_id":"anon_7c9d6ab1cd8753c8","comment_id":"c0d7s06","kind":"comment","text":"No problem. I suggest you read up on wikipedia first. eg. http://en.wikipedia.org/wiki/Operating_system_development\n\nBut if you honestly want to LEARN, I'd say begin with learning C and move on to books and websites concerning operating systems. Google will be your friend","timestamp":"2009-09-16T10:59:00+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_58d7deed8f4d7a6e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7c9d6ab1cd8753c8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0d7ria","thanks_reply_id":"c0d7rui","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_658e397748b36db3","answerer_user_id":"anon_cb7cce7718c84be3","subreddit":"programming","timestamp":"2009-09-18T10:25:17+00:00","post_id":"9lsm1","question":"Where does my inspiration come from? Drawing. (sketches from 2007 moleskine about webapps)","preferred_answer":"I do the same thing, expect I don't buy moleskines. I use sketchbooks, from big (24x36) to small (4x6) and everything in between.\n\nTo be fair tho, yours look more like...you were focusing more on the sketch than the idea.","full_conversation":[{"role":"OP","user_id":"anon_658e397748b36db3","comment_id":"9lsm1","kind":"post","text":"Where does my inspiration come from? Drawing. (sketches from 2007 moleskine about webapps)","timestamp":"2009-09-18T10:25:17+00:00","score":0},{"role":"answerer","user_id":"anon_cb7cce7718c84be3","comment_id":"c0dawyu","kind":"comment","text":"I do the same thing, expect I don't buy moleskines. I use sketchbooks, from big (24x36) to small (4x6) and everything in between.\n\nTo be fair tho, yours look more like...you were focusing more on the sketch than the idea.","timestamp":"2009-09-18T11:27:07+00:00","score":2},{"role":"OP","user_id":"anon_658e397748b36db3","comment_id":"c0daxoy","kind":"comment","text":"Thanks for your comment and your visit.\n\nMoleskines are now too expensive and are not superior to any other sketchbook. It’s a good object but a bit overrated.\n\nI agree that I tend to doodle a bit too much but this process create a visual picture à-la “Mind map” :-) \n\nHowever while drawing UIs this is very valuabe because you end up quickly with a paper prototype.\n\nHave a good day.","timestamp":"2009-09-18T12:01:38+00:00","score":1},{"role":"answerer","user_id":"anon_cb7cce7718c84be3","comment_id":"c0day2v","kind":"comment","text":"I'll agree with the UI statement. I spend a LOT of time shading and tweaking a UI design.\n\nOnce I have a good one, I tend to rip those out and put them in a special folder.","timestamp":"2009-09-18T12:18:05+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_658e397748b36db3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cb7cce7718c84be3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dawyu","thanks_reply_id":"c0daxoy","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_77c9fc556c751597","answerer_user_id":"anon_9c49beb210733294","subreddit":"programming","timestamp":"2009-09-20T00:55:24+00:00","post_id":"9m98d","question":"how I saved a lot of time in my stats class\n\nI'm taking an AP Statistics class, and our teacher wanted us to collect a (minimum of) 50 data on 2 assigned variables to see if there is any correlation between them.\n\nMy variables were foot size and height...\n\nI'm taking 5 AP classes total - so going around town, begging people to help me, and recording their foot size and height didn't appeal to me. The project is due in a few days, and I was panicking this morning.\n\nThen I decided to write some code to generate data for me! The premise is simple; you feed the program a mean and a standard deviation, it randomly generates as much sample data as you want (which must fit a normal distribution), repeat the previous two steps for the second variable, calculate the correlation coefficient between the 2 generated sets, repeat the entire process if the correlation is less than desired amount.\n\nI sat down an hour ago and wrote this - and it works (whoo!). It's not as easy as I make it sound above; with large sample sizes, it's (almost) impossible to generate a set with anything better than a 30% correlation. There are some hacks in the code that work around this pretty well.\n\nJust thought I'd share the idea and the code with reddit in case anyone else has a crazy stats project, and lacks the time (or patience) to do it. There aren't many comments but using the code is pretty easy.\n\nLink to the code:\nstats.py : http://pastebin.com/f1cfa990d\nstats_project1.py : http://pastebin.com/f84601ec","preferred_answer":"Wow, stats cheating fail. \"It's not as easy as I make it sound above.\" Indeed, it is easier. You should have just sampled from a 2D gaussian. This way you could specify the correlation, means, and variances all at once, and not need to do the whole resampling step. It is certainly NOT \"(almost) impossible to generate a set with anything better than a 30% correlation.\"\n\nTo do this in Matlab or Octave (free) you don't even need to write any code.\n\nDon't fall into the trap of thinking that because you know how to code, you don't need to know math.","full_conversation":[{"role":"OP","user_id":"anon_77c9fc556c751597","comment_id":"9m98d","kind":"post","text":"how I saved a lot of time in my stats class\n\nI'm taking an AP Statistics class, and our teacher wanted us to collect a (minimum of) 50 data on 2 assigned variables to see if there is any correlation between them.\n\nMy variables were foot size and height...\n\nI'm taking 5 AP classes total - so going around town, begging people to help me, and recording their foot size and height didn't appeal to me. The project is due in a few days, and I was panicking this morning.\n\nThen I decided to write some code to generate data for me! The premise is simple; you feed the program a mean and a standard deviation, it randomly generates as much sample data as you want (which must fit a normal distribution), repeat the previous two steps for the second variable, calculate the correlation coefficient between the 2 generated sets, repeat the entire process if the correlation is less than desired amount.\n\nI sat down an hour ago and wrote this - and it works (whoo!). It's not as easy as I make it sound above; with large sample sizes, it's (almost) impossible to generate a set with anything better than a 30% correlation. There are some hacks in the code that work around this pretty well.\n\nJust thought I'd share the idea and the code with reddit in case anyone else has a crazy stats project, and lacks the time (or patience) to do it. There aren't many comments but using the code is pretty easy.\n\nLink to the code:\nstats.py : http://pastebin.com/f1cfa990d\nstats_project1.py : http://pastebin.com/f84601ec","timestamp":"2009-09-20T00:55:24+00:00","score":0},{"role":"answerer","user_id":"anon_9c49beb210733294","comment_id":"c0dczb0","kind":"comment","text":"Wow, stats cheating fail. \"It's not as easy as I make it sound above.\" Indeed, it is easier. You should have just sampled from a 2D gaussian. This way you could specify the correlation, means, and variances all at once, and not need to do the whole resampling step. It is certainly NOT \"(almost) impossible to generate a set with anything better than a 30% correlation.\"\n\nTo do this in Matlab or Octave (free) you don't even need to write any code.\n\nDon't fall into the trap of thinking that because you know how to code, you don't need to know math.","timestamp":"2009-09-20T01:47:11+00:00","score":5},{"role":"OP","user_id":"anon_77c9fc556c751597","comment_id":"c0dczz8","kind":"comment","text":"\"You should have just sampled from a 2D gaussian.\"\n\nLooking into this.. thanks.\n\n\"Don't fall into the trap of thinking that because you know how to code, you don't need to know math.\"\n\nI won't.","timestamp":"2009-09-20T02:09:19+00:00","score":1},{"role":"answerer","user_id":"anon_9c49beb210733294","comment_id":"c0ddjey","kind":"comment","text":"OK. Do you see the problem? You are generating the two variables independently, so of course any correlation between them is just an artifact of small sample size. If you want them to be related somehow, you have to sample from a model that makes them related.","timestamp":"2009-09-20T16:23:46+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_77c9fc556c751597","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9c49beb210733294","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dczb0","thanks_reply_id":"c0dczz8","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_eddfc93c7c391367","answerer_user_id":"anon_4d2e932474efe62d","subreddit":"programming","timestamp":"2009-09-22T02:10:07+00:00","post_id":"9msta","question":"/r/programming, I've done a good bit of programming, but never used JavaScript. What are your book suggestions for someone like me? What books have you found most helpful?","preferred_answer":"Those two are your best bets. Get 'good parts' first - 'Definitive' is more of a reference.","full_conversation":[{"role":"OP","user_id":"anon_eddfc93c7c391367","comment_id":"9msta","kind":"post","text":"/r/programming, I've done a good bit of programming, but never used JavaScript. What are your book suggestions for someone like me? What books have you found most helpful?","timestamp":"2009-09-22T02:10:07+00:00","score":0},{"role":"answerer","user_id":"anon_4d2e932474efe62d","comment_id":"c0dfnh4","kind":"comment","text":"Those two are your best bets. Get 'good parts' first - 'Definitive' is more of a reference.","timestamp":"2009-09-22T02:25:15+00:00","score":2},{"role":"OP","user_id":"anon_eddfc93c7c391367","comment_id":"c0dfpmj","kind":"comment","text":"Thanks for the help guys. I wish this wouldn't get downvoted so I could actually get the opinions of some of the experienced programmers around here.","timestamp":"2009-09-22T03:16:14+00:00","score":1},{"role":"answerer","user_id":"anon_4d2e932474efe62d","comment_id":"c0dgzeu","kind":"comment","text":"If it's any consolation I've taught Javascript classes and actually used it before it was named Javascript so I have an idea of what's useful in a book.","timestamp":"2009-09-22T23:52:13+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_eddfc93c7c391367","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4d2e932474efe62d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dfnh4","thanks_reply_id":"c0dfpmj","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_7399080d71e3e68e","answerer_user_id":"anon_309c3cf76a85b278","subreddit":"programming","timestamp":"2009-09-22T17:02:31+00:00","post_id":"9n0f5","question":"Hey Proggit; today I had my first class in databases and we talked about how Google can 'manage' billions of websites and give you search results in a second... Can anyone explain me in understandable English how Google does that?","preferred_answer":"Ok. A database index allows you to find things in binary search time. O(log n) average (which is very very fast). If you have lots and lots of indexes for all the parameters you wish to search by (text content in Google's case), it allows you to find stuff remarkably fast.\n\nThats the general idea. The specifics of how google does it are obviously much more complicated, but the basic idea is the same.","full_conversation":[{"role":"OP","user_id":"anon_7399080d71e3e68e","comment_id":"9n0f5","kind":"post","text":"Hey Proggit; today I had my first class in databases and we talked about how Google can 'manage' billions of websites and give you search results in a second... Can anyone explain me in understandable English how Google does that?","timestamp":"2009-09-22T17:02:31+00:00","score":0},{"role":"answerer","user_id":"anon_309c3cf76a85b278","comment_id":"c0dghtr","kind":"comment","text":"Ok. A database index allows you to find things in binary search time. O(log n) average (which is very very fast). If you have lots and lots of indexes for all the parameters you wish to search by (text content in Google's case), it allows you to find stuff remarkably fast.\n\nThats the general idea. The specifics of how google does it are obviously much more complicated, but the basic idea is the same.","timestamp":"2009-09-22T18:05:27+00:00","score":3},{"role":"OP","user_id":"anon_7399080d71e3e68e","comment_id":"c0dgirm","kind":"comment","text":"Thanks. So how should I picture this? When I enter a single word, for instance 'mother', in Google, it doesn't have to \"read\" every single bit of data, but instead they keep metadata on every word so they have instant access to the collection of data that contains \"mother\"? (that's the meaning of an index, right?)","timestamp":"2009-09-22T18:23:07+00:00","score":2},{"role":"answerer","user_id":"anon_309c3cf76a85b278","comment_id":"c0dgjao","kind":"comment","text":"In essence yes. \n\nI would suspect they actually keep indices on every substring as well, \"other\", \"ther\", \"her\", \"er\" and combine some of the abilities of grep. The fundamental algorithm is likely very elegant yet sophisticated. Not only do they find all the matches, but they also apply additional layers to rank and \"make appropriate\" to the query.","timestamp":"2009-09-22T18:33:08+00:00","score":2},{"role":"OP","user_id":"anon_7399080d71e3e68e","comment_id":"c0dgjka","kind":"comment","text":"Yes I did read (and understand :o) about PageRanking, which is indeed a very intelligent way to rate websites. I guess, apart from the smart indexing, their biggest advantage is the load of computer networks they installed all over the world. In any case, thanks for your answers, it helped. Upvotes for all your posts :)\n\nThanks for the others for replying too, the phone book helped me visualize it. I hope my stupidity wasn't frustrating :p Thanks again for helping a rookie :)","timestamp":"2009-09-22T18:38:05+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7399080d71e3e68e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_309c3cf76a85b278","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dghtr","thanks_reply_id":"c0dgirm","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_2a3c5fe927851068","answerer_user_id":"anon_1021583b74443e43","subreddit":"programming","timestamp":"2009-09-23T09:19:44+00:00","post_id":"9n8yb","question":"What kind of lisp macros might be useful for scientific applications?\n\nMany physical scientists I know are quite happy with the language constructs provided by Fortran - even if they also program in C or Python, they often settle with abstractions provided at the Fortran-level (my background also). If lisp macros can be used to create DSLs, what might pieces of it look like, if only conceptually? I don't mean to inquire specifically about high-performance computing applications, but also for interactive and exploratory analysis of (static) data (as opposed to dynamic data, which would carry us into the currently hot domain of the data scientist - but would love to hear your thoughts on any of the above...).","preferred_answer":"Hmmm. Generally, you can use macros to recreate convenience functions in high level data processing languages. Stuff I do:\n\n* Anything to simplify array processing. You can rebuild much of the functionality of, say, IDL, in Lisp.\n\n (for-all-2d-array-indices (array ix iy) ...)\n\n (for-array-elements-where (array ix iy condition)\n ;; stuff do do at ix, iy when condition is T\n )\n\n* Stuff to read stuff from files\n\n ;; bind x to col 0 of \"foo.dat\", and y to col 3\n (read-vectors-from-file \"foo.dat\" \n (*x* 0 :single-float) (*y* 3 :double-float))\n\n* Numerical integration (without boxing)\n\n (numerical-integrate-1d x (* x x (sin x)) :x0 0d0 :x1 10d0 :dx 0.01)","full_conversation":[{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"9n8yb","kind":"post","text":"What kind of lisp macros might be useful for scientific applications?\n\nMany physical scientists I know are quite happy with the language constructs provided by Fortran - even if they also program in C or Python, they often settle with abstractions provided at the Fortran-level (my background also). If lisp macros can be used to create DSLs, what might pieces of it look like, if only conceptually? I don't mean to inquire specifically about high-performance computing applications, but also for interactive and exploratory analysis of (static) data (as opposed to dynamic data, which would carry us into the currently hot domain of the data scientist - but would love to hear your thoughts on any of the above...).","timestamp":"2009-09-23T09:19:44+00:00","score":0},{"role":"answerer","user_id":"anon_1021583b74443e43","comment_id":"c0dhk3i","kind":"comment","text":"Hmmm. Generally, you can use macros to recreate convenience functions in high level data processing languages. Stuff I do:\n\n* Anything to simplify array processing. You can rebuild much of the functionality of, say, IDL, in Lisp.\n\n (for-all-2d-array-indices (array ix iy) ...)\n\n (for-array-elements-where (array ix iy condition)\n ;; stuff do do at ix, iy when condition is T\n )\n\n* Stuff to read stuff from files\n\n ;; bind x to col 0 of \"foo.dat\", and y to col 3\n (read-vectors-from-file \"foo.dat\" \n (*x* 0 :single-float) (*y* 3 :double-float))\n\n* Numerical integration (without boxing)\n\n (numerical-integrate-1d x (* x x (sin x)) :x0 0d0 :x1 10d0 :dx 0.01)","timestamp":"2009-09-23T09:36:53+00:00","score":2},{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"c0dhlky","kind":"comment","text":"Thanks for the tip! There is the subtle distinction between macros and functions that I need to study up on since you can implement arrays as a collection of functions, for instance a slicing operation as (mapcar car list-of-pairs) and so on...","timestamp":"2009-09-23T11:02:57+00:00","score":1},{"role":"answerer","user_id":"anon_1021583b74443e43","comment_id":"c0di3bi","kind":"comment","text":"I'd say that the distinction between arrays and functions isn't all that subtle, once you get past the syntax similarity. \n\nFunctions are just functions, and macros are code-rewriters. If you don't know macroexpand already, try it out on something like the loop macro:\n\n (macropexpand '(loop for i from 1 to 10 do (print i)))\n\nBut I agree that macros and functions can both be used to do similar stuff, often:\n\n (integrate-macro-1d x (* x x (sin x)) \n :x0 0d0 :x1 10d0 :dx 0.01)\n\nvs\n\n (integrate-function-1d (lambda (x) (* x x (sin x)))\n :x0 0d0 :x1 10d0 :dx 0.01)\n\nmight do the same thing, but the function form might be less efficient because it would box its float result (except mayber single floats on a 64 bit architecture), whereas the macro from would generate a block of integration code in-place. When I use the function form, I usually pack all the numbers into a structure to avoid boxing.\n\nOften a good alternative to macros is inline functions.","timestamp":"2009-09-23T18:25:08+00:00","score":2},{"role":"OP","user_id":"anon_2a3c5fe927851068","comment_id":"c0dj22h","kind":"comment","text":"Hmm... I've played around with macroexpand but was trying to find a practical use for it in my area of application. I was thinking it could lead to more elegant programming constructs that might save 'programmer/user time' but have not considered much about efficiency issues for the machine (between functions and macros)... I've read about inline functions, have to go see about them again. Thanks much!","timestamp":"2009-09-24T08:30:38+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2a3c5fe927851068","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1021583b74443e43","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dhk3i","thanks_reply_id":"c0dhlky","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_7f21d0c12f6d3df5","answerer_user_id":"anon_df724b216ad242c1","subreddit":"programming","timestamp":"2009-09-23T13:35:02+00:00","post_id":"9nb09","question":"Dear reddit, do you have any real-world stories of where mixins worked better than (multiple) inheritance?\n\nI'm writing a tutorial about mixins. Mixins pay off for larger, more complicated architectures. This makes toy examples unconvincing. I'm looking for an example from a domain that is easy to understand. Any testimonials (python, perl, C++, whatever)? I don't need source code, just a story (or a link).","preferred_answer":"You should look into [traits](http://scg.unibe.ch/research/traits) which were originally developed for Smalltalk, but have made their way into Scala and are called \"Roles\" in Perl. They as basically mixins but instead of (ab)using inheritance they are composed following a strict set of rules. In the perl community at least they have caught on pretty heavily and are proving to be a really useful too.","full_conversation":[{"role":"OP","user_id":"anon_7f21d0c12f6d3df5","comment_id":"9nb09","kind":"post","text":"Dear reddit, do you have any real-world stories of where mixins worked better than (multiple) inheritance?\n\nI'm writing a tutorial about mixins. Mixins pay off for larger, more complicated architectures. This makes toy examples unconvincing. I'm looking for an example from a domain that is easy to understand. Any testimonials (python, perl, C++, whatever)? I don't need source code, just a story (or a link).","timestamp":"2009-09-23T13:35:02+00:00","score":0},{"role":"answerer","user_id":"anon_df724b216ad242c1","comment_id":"c0dht51","kind":"comment","text":"You should look into [traits](http://scg.unibe.ch/research/traits) which were originally developed for Smalltalk, but have made their way into Scala and are called \"Roles\" in Perl. They as basically mixins but instead of (ab)using inheritance they are composed following a strict set of rules. In the perl community at least they have caught on pretty heavily and are proving to be a really useful too.","timestamp":"2009-09-23T14:59:59+00:00","score":2},{"role":"OP","user_id":"anon_7f21d0c12f6d3df5","comment_id":"c0dhvyv","kind":"comment","text":"Thanks for the hint, but what I need is not an explanation of mixins or related topics; I need a real-world application of mixins for illustrating their usefulness. Toy examples are too simple and totally unconvincing. Thanks all the same...","timestamp":"2009-09-23T16:01:34+00:00","score":2},{"role":"answerer","user_id":"anon_df724b216ad242c1","comment_id":"c0diw61","kind":"comment","text":"I guess I am more suggesting you not hype mixins as they are rarely any better then multiple inheritance (depending on the implementation). Roles/Traits are a better way to solve the same problem with a higher degree of safety. If you are looking for good non-toy use cases, then Perl/Moose is where you want to look.","timestamp":"2009-09-24T04:49:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7f21d0c12f6d3df5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_df724b216ad242c1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dht51","thanks_reply_id":"c0dhvyv","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_4df323dad84e2539","answerer_user_id":"anon_a6c708cf0c180ee9","subreddit":"programming","timestamp":"2009-09-23T23:36:08+00:00","post_id":"9nhc2","question":"Ask Proggit: Good incoming SMS gateways?\n\nSuppose I want to receive incoming SMS text messages (at low volume, let's say in the range of a dozen to maybe a few hundred per month) and process them automatically using software that will run on my server. Do any of you know of a service that will let me do this over the Internet cost-effectively? Or am I better off just getting a physical cellular modem with a prepaid plan and talking AT commands to it?\n\nI know shortcodes are expensive; a regular USA phone number is fine.","preferred_answer":"kannel http://www.kannel.org/ has a list of phones that work well with their software. \r\n \r\nnot sure if click-a-tell does incoming sms somehow. Looks like they do: \r\nhttp://www.clickatell.com/pricing/twoway.php","full_conversation":[{"role":"OP","user_id":"anon_4df323dad84e2539","comment_id":"9nhc2","kind":"post","text":"Ask Proggit: Good incoming SMS gateways?\n\nSuppose I want to receive incoming SMS text messages (at low volume, let's say in the range of a dozen to maybe a few hundred per month) and process them automatically using software that will run on my server. Do any of you know of a service that will let me do this over the Internet cost-effectively? Or am I better off just getting a physical cellular modem with a prepaid plan and talking AT commands to it?\n\nI know shortcodes are expensive; a regular USA phone number is fine.","timestamp":"2009-09-23T23:36:08+00:00","score":0},{"role":"answerer","user_id":"anon_a6c708cf0c180ee9","comment_id":"c0dikip","kind":"comment","text":"kannel http://www.kannel.org/ has a list of phones that work well with their software. \r\n \r\nnot sure if click-a-tell does incoming sms somehow. Looks like they do: \r\nhttp://www.clickatell.com/pricing/twoway.php","timestamp":"2009-09-24T00:06:08+00:00","score":2},{"role":"OP","user_id":"anon_4df323dad84e2539","comment_id":"c0dikvc","kind":"comment","text":"kannel looks useful, thanks.","timestamp":"2009-09-24T00:15:12+00:00","score":2},{"role":"answerer","user_id":"anon_a6c708cf0c180ee9","comment_id":"c0diqy2","kind":"comment","text":"click-a-tell is cheap (for the volume you are talking about) and has easy to use APIs - I use the smtp to sms interface to send sms from email, works great.","timestamp":"2009-09-24T02:39:11+00:00","score":1},{"role":"OP","user_id":"anon_4df323dad84e2539","comment_id":"c0dirsu","kind":"comment","text":"It doesn't look to me like you can get a USA virtual number from clickatell, only a European one (which means extra cost for people messaging from the USA where I am) or a $1700/month shortcode.","timestamp":"2009-09-24T02:58:39+00:00","score":1},{"role":"answerer","user_id":"anon_a6c708cf0c180ee9","comment_id":"c0diryp","kind":"comment","text":"ah, so kannel might be a better option in that case.","timestamp":"2009-09-24T03:02:53+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_4df323dad84e2539","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a6c708cf0c180ee9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dikip","thanks_reply_id":"c0dikvc","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_aa70390a6650208f","answerer_user_id":"anon_6cc8e8160820ea87","subreddit":"programming","timestamp":"2009-09-25T20:19:21+00:00","post_id":"9o4xu","question":"Help me with a quick bit of SQL? Thanks much!\n\nI have two tables. I need to get all members of table 1 and create a new column in my results that indicates whether or not their ID exists in table 2.\n\n Select ID, other stuff, *something magic involving table2* as IDExistsInTable2 FROM table1","preferred_answer":"select *, idexists = \r\n\r\n case\r\n\r\n when id in (select distinct id from table2 t2) then 1\r\n\r\n else 0\r\n\r\n end \r\n from table1 t1\r\n\r\n\r\n\r\n\r\n\r\n\r\nShould be something like that. I'll modify it if this doesn't work.\r\n\r\n*Edited for formatting.","full_conversation":[{"role":"OP","user_id":"anon_aa70390a6650208f","comment_id":"9o4xu","kind":"post","text":"Help me with a quick bit of SQL? Thanks much!\n\nI have two tables. I need to get all members of table 1 and create a new column in my results that indicates whether or not their ID exists in table 2.\n\n Select ID, other stuff, *something magic involving table2* as IDExistsInTable2 FROM table1","timestamp":"2009-09-25T20:19:21+00:00","score":0},{"role":"answerer","user_id":"anon_6cc8e8160820ea87","comment_id":"c0dlff5","kind":"comment","text":"select *, idexists = \r\n\r\n case\r\n\r\n when id in (select distinct id from table2 t2) then 1\r\n\r\n else 0\r\n\r\n end \r\n from table1 t1\r\n\r\n\r\n\r\n\r\n\r\n\r\nShould be something like that. I'll modify it if this doesn't work.\r\n\r\n*Edited for formatting.","timestamp":"2009-09-25T20:30:24+00:00","score":2},{"role":"OP","user_id":"anon_aa70390a6650208f","comment_id":"c0dlipw","kind":"comment","text":"I ended up using this option, works great. Thanks again!","timestamp":"2009-09-25T21:32:06+00:00","score":0},{"role":"answerer","user_id":"anon_6cc8e8160820ea87","comment_id":"c0dlj0h","kind":"comment","text":"No prob, glad to have helped.","timestamp":"2009-09-25T21:38:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_aa70390a6650208f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6cc8e8160820ea87","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dlff5","thanks_reply_id":"c0dlipw","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_55e600915472bcb4","answerer_user_id":"anon_84eee7dad58a78de","subreddit":"programming","timestamp":"2009-09-29T19:12:30+00:00","post_id":"9p8yu","question":"Ask Proggit: is UML really something used in real-world IT jobs?\n\nI'm learning UML as part of my Software Technology class in university, but I don't see so much life around it, for example the software used to make diagrams are years old. My question is: will I actually use this knowledge or is it just to broaden our view on approaching programming?","preferred_answer":"If you're developing software focusing on both quality and maintainability, then you might. If you're hacking things out rapidly with no cares about \"the right way\" then probably not.\n\nUML/Design is actually a very large area... most people don't understand most design techniques and can't tell you the actual differences between a sequence diagram and an activity diagram. Beyond that, they are pretty unlikely to be able to create both on their own. Well done UML/design components explain the problem at hand, guide the development of software, manage the distribution of work and time, and they can even be used to simplify the final code and product.\n\nCursory knowledge won't hurt, but I'd actually recommend a deeper course. CS isn't worth much if all you do in it barely touches the surface.","full_conversation":[{"role":"OP","user_id":"anon_55e600915472bcb4","comment_id":"9p8yu","kind":"post","text":"Ask Proggit: is UML really something used in real-world IT jobs?\n\nI'm learning UML as part of my Software Technology class in university, but I don't see so much life around it, for example the software used to make diagrams are years old. My question is: will I actually use this knowledge or is it just to broaden our view on approaching programming?","timestamp":"2009-09-29T19:12:30+00:00","score":31},{"role":"answerer","user_id":"anon_84eee7dad58a78de","comment_id":"c0dsd3y","kind":"comment","text":"If you're developing software focusing on both quality and maintainability, then you might. If you're hacking things out rapidly with no cares about \"the right way\" then probably not.\n\nUML/Design is actually a very large area... most people don't understand most design techniques and can't tell you the actual differences between a sequence diagram and an activity diagram. Beyond that, they are pretty unlikely to be able to create both on their own. Well done UML/design components explain the problem at hand, guide the development of software, manage the distribution of work and time, and they can even be used to simplify the final code and product.\n\nCursory knowledge won't hurt, but I'd actually recommend a deeper course. CS isn't worth much if all you do in it barely touches the surface.","timestamp":"2009-09-29T19:25:09+00:00","score":-6},{"role":"OP","user_id":"anon_55e600915472bcb4","comment_id":"c0dsebl","kind":"comment","text":"Thank you. I will remember that last sentence (I'm a rookie).","timestamp":"2009-09-29T19:46:21+00:00","score":1},{"role":"answerer","user_id":"anon_84eee7dad58a78de","comment_id":"c0dtuag","kind":"comment","text":"I'm glad that at least one sentence was taken as positive by someone. If you look through the post karma, the ones that say \"UML is bad\" get many upvotes and the others, no so much. It's a lot of work, most of the time, and has a bit of a stigma as a paperwork generator. It's not the tool, it's the designer. Knowing when these-other-five-to-ten diagrams will truly help is an art, and like most arts, appreciation can be both by clarity of its world-view and arbitrary, divined declarations (i.e. fanboyism).\n\nThere are many parts to UML, and they can all serve very particular circumstances well and others subtly. If you all you take away from UML is the whiteboard-favorites, you'll be fine, but knowing how to construct and understand finer relationships can really clarify problems and solutions.","timestamp":"2009-09-30T16:54:41+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_55e600915472bcb4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_84eee7dad58a78de","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dsd3y","thanks_reply_id":"c0dsebl","post_score":31,"answer_score":-6,"preferred_answer_is_top_level":true}} {"user_id":"anon_e3874bae09a3fb68","answerer_user_id":"anon_ddcfab38a3dfecb0","subreddit":"programming","timestamp":"2009-09-30T06:02:26+00:00","post_id":"9pehv","question":"Dear Proggit, I am a novice programmer interested in diving into the world of programming, advice?","preferred_answer":"I taught myself. Although I learned a lot, I made lots of mistakes and developed bad habits. \n\n[This is a great free online source for starting out.](http://see.stanford.edu/see/courseInfo.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111)","full_conversation":[{"role":"OP","user_id":"anon_e3874bae09a3fb68","comment_id":"9pehv","kind":"post","text":"Dear Proggit, I am a novice programmer interested in diving into the world of programming, advice?","timestamp":"2009-09-30T06:02:26+00:00","score":0},{"role":"answerer","user_id":"anon_ddcfab38a3dfecb0","comment_id":"c0dt9a7","kind":"comment","text":"I taught myself. Although I learned a lot, I made lots of mistakes and developed bad habits. \n\n[This is a great free online source for starting out.](http://see.stanford.edu/see/courseInfo.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111)","timestamp":"2009-09-30T06:08:49+00:00","score":1},{"role":"OP","user_id":"anon_e3874bae09a3fb68","comment_id":"c0dt9xg","kind":"comment","text":"Thank you for the source, however the information I am looking for dwells into the area not covered by colleges. What can I expect out of employment with a CIS degree? Will a typical college curriculum cover the topics and languages I should know for general employment? Should I specialize in a particular subsection of programming (automation vs server vs web development?). Is it reasonable to think that I can support myself and my family living an enjoyable lifestyle with just a bachelors degree? Subjects like tat.","timestamp":"2009-09-30T06:28:39+00:00","score":1},{"role":"answerer","user_id":"anon_ddcfab38a3dfecb0","comment_id":"c0dta0s","kind":"comment","text":"Here's what you can expect. \nhttp://realjobdescriptions.com/computer_programmer.html\n\nI've started a website that covers that information. Sadly, I haven't had time to devote to marketing or filling out the information myself.\n\nhttp://rjdwiki.com/\n\nIf you know anyone that wouldn't mind filling out a job description, point them [here](http://rjdwiki.com/new_description).","timestamp":"2009-09-30T06:31:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e3874bae09a3fb68","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ddcfab38a3dfecb0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dt9a7","thanks_reply_id":"c0dt9xg","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_077078cde22529d0","answerer_user_id":"anon_d78384ab32bffd3a","subreddit":"programming","timestamp":"2009-09-30T22:14:12+00:00","post_id":"9pnu2","question":"Should I use COMMON LISP or Scheme?\n\nI have an assignment due tomorrow and because I am so busy I am just now looking at it. My assignment requires that I write a single function to return the square root of 1 + x^2. I know nothing of COMMON LISP or Scheme except that they are both derived from \"pure LISP\" so I need advice on which to use. What I am looking for is which one will be easier to learn just enough to write this single function as quickly as possible tonight. I am fluent in C++, Java, and C# so if one has a syntax more similar to one of these than the other that may help. Thanks.\n\nEdit: Damn. I meant to put this in my original post but I accidentally put it in a comment below. Oh well.\n\nThanks for the suggestions. I used Scheme in PLT and wrote this. I highly doubt that any of my classmates will be trolling Reddit for the answer to this problem when it is due in 11 hours.\n\n((lambda (x) (sqrt (+ 1 (* x x)))) 2) \n\nOr\n\n(define (f x) (sqrt (+ 1 (* x x)))) \n(f 2) \n2.23606797749979","preferred_answer":"Oh, incidentally, sorry but lisp style syntax is _not_ C-like. It's a bit different than what you're used to, but it does have its benefits.\n\nEither way, may as well here give you a hand with the basic syntax for function/procedure/whatever you want to call it application:\n\n (proc arg1 arg2 arg3 etc...)\n\n(yes, in parens) is the basic syntax for applying a function.\n\nFor instance,\n\n (+ 3 5)\n\nwill return 8.\n\nIn Scheme, functions themselves are first class values. Functions can be passed as arguments, created anonymously (via lambda), etc...\n\nFor instance,\n\n ((lambda (x) (+ x 3)) 5)\n\nwill return 8.\n\nOne can define variables (in scheme) (changing their values (which you ought usually avoid) is generally done a bit differently) like this:\n\n (define blah 5)\n\nThat gives, well, blah the value of 5.\n\none can define functions via that syntax, with the business end of the define expression having a lambda expression, but there is a syntactic shortcut that basically translates to that:\n\n (define (myproc x 5)\n (+ x 5))\n\nNow you have a procedure myproc\n\n (myproc 3)\n\nwill return 8.\n\nThat ought be enough to get you started at least on understanding the basics of the syntax.\n\nThere're some slight differences in CL as far as defining stuff, and namespaces and so on.","full_conversation":[{"role":"OP","user_id":"anon_077078cde22529d0","comment_id":"9pnu2","kind":"post","text":"Should I use COMMON LISP or Scheme?\n\nI have an assignment due tomorrow and because I am so busy I am just now looking at it. My assignment requires that I write a single function to return the square root of 1 + x^2. I know nothing of COMMON LISP or Scheme except that they are both derived from \"pure LISP\" so I need advice on which to use. What I am looking for is which one will be easier to learn just enough to write this single function as quickly as possible tonight. I am fluent in C++, Java, and C# so if one has a syntax more similar to one of these than the other that may help. Thanks.\n\nEdit: Damn. I meant to put this in my original post but I accidentally put it in a comment below. Oh well.\n\nThanks for the suggestions. I used Scheme in PLT and wrote this. I highly doubt that any of my classmates will be trolling Reddit for the answer to this problem when it is due in 11 hours.\n\n((lambda (x) (sqrt (+ 1 (* x x)))) 2) \n\nOr\n\n(define (f x) (sqrt (+ 1 (* x x)))) \n(f 2) \n2.23606797749979","timestamp":"2009-09-30T22:14:12+00:00","score":6},{"role":"answerer","user_id":"anon_d78384ab32bffd3a","comment_id":"c0duebr","kind":"comment","text":"Oh, incidentally, sorry but lisp style syntax is _not_ C-like. It's a bit different than what you're used to, but it does have its benefits.\n\nEither way, may as well here give you a hand with the basic syntax for function/procedure/whatever you want to call it application:\n\n (proc arg1 arg2 arg3 etc...)\n\n(yes, in parens) is the basic syntax for applying a function.\n\nFor instance,\n\n (+ 3 5)\n\nwill return 8.\n\nIn Scheme, functions themselves are first class values. Functions can be passed as arguments, created anonymously (via lambda), etc...\n\nFor instance,\n\n ((lambda (x) (+ x 3)) 5)\n\nwill return 8.\n\nOne can define variables (in scheme) (changing their values (which you ought usually avoid) is generally done a bit differently) like this:\n\n (define blah 5)\n\nThat gives, well, blah the value of 5.\n\none can define functions via that syntax, with the business end of the define expression having a lambda expression, but there is a syntactic shortcut that basically translates to that:\n\n (define (myproc x 5)\n (+ x 5))\n\nNow you have a procedure myproc\n\n (myproc 3)\n\nwill return 8.\n\nThat ought be enough to get you started at least on understanding the basics of the syntax.\n\nThere're some slight differences in CL as far as defining stuff, and namespaces and so on.","timestamp":"2009-09-30T22:43:11+00:00","score":5},{"role":"OP","user_id":"anon_077078cde22529d0","comment_id":"c0dukob","kind":"comment","text":"Thanks man. This was very helpful.","timestamp":"2009-10-01T00:54:07+00:00","score":1},{"role":"answerer","user_id":"anon_d78384ab32bffd3a","comment_id":"c0dul0s","kind":"comment","text":"No prob.","timestamp":"2009-10-01T01:01:58+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_077078cde22529d0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d78384ab32bffd3a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0duebr","thanks_reply_id":"c0dukob","post_score":6,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_05b3659279315ff4","answerer_user_id":"anon_1c642060aa5b9b48","subreddit":"programming","timestamp":"2009-10-01T15:23:45+00:00","post_id":"9pw2j","question":"Ask Reddit: I'm about to graduate. Could you give me some advice on how to get a good start in the IT world?\n\nHi Reddit,\n\nHere's the gist. I'm graduating soon, moving to San Fransisco, and would like to start a career in programming. I'm a bit lost as to how to get off to a good start in the industry. So I was hoping I could get a bit of advice from you guys.\n\n**My Background**\n\nI'm 25, and will be graduating with a BS in Applied Math. My language of choice is C, although I'm just as proficient with C++ and Python. At the moment, I'm living in Colorado, but plan to move to San Francisco at the end of this semester upon graduation. From what I've heard and seen, the stretch of land between San Francisco and San Jose is the mecca of technology. I'm super excited.\n\nThe problem is that I don't really know where to start. When I look at most of the job ads on DICE, I see requests for very specific skills. While I have some experience in these areas (say, posix threads), I'm an expert in none. I started programming over 10 years ago, but I don't have any solid completed projects to show for it.\n\nIs it possible for a guy like me to get hired without any previous working experience in the industry? I have a very strong math background, and am well versed in Algorithms and proper software design. But like I said, I don't really have anything to show for it.\n\nMy main concern is making sure that I work somewhere interesting. I want to tackle interesting problems that actually mean something. I don't want to be a digital plumber that fixes bugs in an enterprise CRM system. Obviously though, I'll take what I can get just starting out.\n\nWhat advice would you guys have for someone just starting out in the software development world?\n\nThanks for the help.","preferred_answer":"Try and find a small company/start up. \n\nThe money won't be great, but in my experiance employers are more interested in passion and genuine ability to do the job. If you are enthusiastic and willing to learn you should be ok. \n\nI got my first job by being honest with my now boss. I got recomended to him by the boss of another company I was working for at the time (during my work placement year of a degree course) He was after a part time programmer to write some Windows applications and embedded PIC code. At the time I had never programmed Windows (was an Acorn programmer specialising in 6502 and ARM assembler) I told him \"I would like to help but I don't have the skills you need\"...His response, \"You can learn cant you?\" I was shocked, he was going to pay me to learn. \n\nI have never looked back, carried on working for him during my final year at Uni then went straight back. Been there ever since. Real nice the company has grown from him and I, to an employer of 12 engineers and others. \n\nI later found out he had interviewed a lot of programmers who made lots of claims, but when it came down to it couldn't do what he wanted. \n\nAnother piece of advice, when you do get your first programming job..if their are other engineers, ask them questions, pick there brains, experiance is a massive part of software development and there is no substitute for actually doing things yourself, but you can short circuit some of crap you go through. Also generally programmers like to pass on their knowledge and techniques.\n\nI think the main thing you need to decide is - Why are you going into the software industry? If it's money, look to the finacial, banking sector. \nIf it's technical challenges, you can't beat small companys. You will have to fulfill more than the role of a software developer. You gain experiance in working with customers and running a business. In bigger companies you are insulated from all that, you report to your manager.\n\nWe have just taken on a graduate in Systems Engineering. He doesn't know shit about programming (Uni's don't seem to teach *real world programming* anymore), but he has the right attitude and I am teaching him.\n\nHope this helps. Good luck.\n\nEdit: Can't understand why people are down voting you...\n\nEdit Edit: WTF? Every upvote you get, someone else downvotes you. What you playing at Reddit? This guy asks a sincere question and gets caned? Sort it out.","full_conversation":[{"role":"OP","user_id":"anon_05b3659279315ff4","comment_id":"9pw2j","kind":"post","text":"Ask Reddit: I'm about to graduate. Could you give me some advice on how to get a good start in the IT world?\n\nHi Reddit,\n\nHere's the gist. I'm graduating soon, moving to San Fransisco, and would like to start a career in programming. I'm a bit lost as to how to get off to a good start in the industry. So I was hoping I could get a bit of advice from you guys.\n\n**My Background**\n\nI'm 25, and will be graduating with a BS in Applied Math. My language of choice is C, although I'm just as proficient with C++ and Python. At the moment, I'm living in Colorado, but plan to move to San Francisco at the end of this semester upon graduation. From what I've heard and seen, the stretch of land between San Francisco and San Jose is the mecca of technology. I'm super excited.\n\nThe problem is that I don't really know where to start. When I look at most of the job ads on DICE, I see requests for very specific skills. While I have some experience in these areas (say, posix threads), I'm an expert in none. I started programming over 10 years ago, but I don't have any solid completed projects to show for it.\n\nIs it possible for a guy like me to get hired without any previous working experience in the industry? I have a very strong math background, and am well versed in Algorithms and proper software design. But like I said, I don't really have anything to show for it.\n\nMy main concern is making sure that I work somewhere interesting. I want to tackle interesting problems that actually mean something. I don't want to be a digital plumber that fixes bugs in an enterprise CRM system. Obviously though, I'll take what I can get just starting out.\n\nWhat advice would you guys have for someone just starting out in the software development world?\n\nThanks for the help.","timestamp":"2009-10-01T15:23:45+00:00","score":13},{"role":"answerer","user_id":"anon_1c642060aa5b9b48","comment_id":"c0dvkiy","kind":"comment","text":"Try and find a small company/start up. \n\nThe money won't be great, but in my experiance employers are more interested in passion and genuine ability to do the job. If you are enthusiastic and willing to learn you should be ok. \n\nI got my first job by being honest with my now boss. I got recomended to him by the boss of another company I was working for at the time (during my work placement year of a degree course) He was after a part time programmer to write some Windows applications and embedded PIC code. At the time I had never programmed Windows (was an Acorn programmer specialising in 6502 and ARM assembler) I told him \"I would like to help but I don't have the skills you need\"...His response, \"You can learn cant you?\" I was shocked, he was going to pay me to learn. \n\nI have never looked back, carried on working for him during my final year at Uni then went straight back. Been there ever since. Real nice the company has grown from him and I, to an employer of 12 engineers and others. \n\nI later found out he had interviewed a lot of programmers who made lots of claims, but when it came down to it couldn't do what he wanted. \n\nAnother piece of advice, when you do get your first programming job..if their are other engineers, ask them questions, pick there brains, experiance is a massive part of software development and there is no substitute for actually doing things yourself, but you can short circuit some of crap you go through. Also generally programmers like to pass on their knowledge and techniques.\n\nI think the main thing you need to decide is - Why are you going into the software industry? If it's money, look to the finacial, banking sector. \nIf it's technical challenges, you can't beat small companys. You will have to fulfill more than the role of a software developer. You gain experiance in working with customers and running a business. In bigger companies you are insulated from all that, you report to your manager.\n\nWe have just taken on a graduate in Systems Engineering. He doesn't know shit about programming (Uni's don't seem to teach *real world programming* anymore), but he has the right attitude and I am teaching him.\n\nHope this helps. Good luck.\n\nEdit: Can't understand why people are down voting you...\n\nEdit Edit: WTF? Every upvote you get, someone else downvotes you. What you playing at Reddit? This guy asks a sincere question and gets caned? Sort it out.","timestamp":"2009-10-01T17:53:23+00:00","score":12},{"role":"OP","user_id":"anon_05b3659279315ff4","comment_id":"c0dvv69","kind":"comment","text":"Thank you very much for your reply. I also posted this question to Hacker News and they suggested that I try networking at various conferences which also sounds like a good idea.","timestamp":"2009-10-01T20:48:52+00:00","score":1},{"role":"answerer","user_id":"anon_1c642060aa5b9b48","comment_id":"c0dvwq9","kind":"comment","text":"If you conduct yourself in the real world as you do on Reddit you will go a long way. \n\nAs you obviously have a tendancy towards math, maybe look into game physics programming, climate modelling or maybe parallel processing etc..There is another avenue...which is the Defence industry. I do have some experiance in this field and personally could not cope with the working practices. However they do have technology about 10 years in advance of what engineers in the public sector generally have access to. Of course you can't talk about it down the pub though ;-)","timestamp":"2009-10-01T21:12:38+00:00","score":1},{"role":"OP","user_id":"anon_05b3659279315ff4","comment_id":"c0dw88r","kind":"comment","text":"The defense industry sounds interesting, but I'm not sure that I would be able to get clearance since I hold dual citizenship (with an EU country through ancestry).","timestamp":"2009-10-02T00:49:33+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_05b3659279315ff4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1c642060aa5b9b48","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dvkiy","thanks_reply_id":"c0dvv69","post_score":13,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_a29206637752427d","answerer_user_id":"anon_7b06333c65fd9818","subreddit":"programming","timestamp":"2009-10-02T04:02:24+00:00","post_id":"9q2q5","question":"Looking for tips in generating aesthetic color palettes, for things like graphs and heat maps.\n\nParticularly, if I'm using something like: color(red, green, blue), and rgb are 0-255 values. Any tips on making algorithms to flow smoothly from like... orange into dark orange, to red, to purple? I've had some success with nesting for() loops, incrementing the Green value in small increments on the inner loop, and incrementing the Red value in medium increments on the outer loop.\n\nThe results are decent, but are there any tips for doing this properly?","preferred_answer":"Simple linear interpolation usually gives decent results for gradients. Something like:\n\n for (int step = from; step <= to; ++step) {\n red[step] = (from_red*(to-step) + to_red*(step-from)) / (from-to);\n grn[step] = (from_grn*(to-step) + to_grn*(step-from)) / (from-to);\n blu[step] = (from_blu*(to-step) + to_blu*(step-from)) / (from-to);\n } \n\nshould fill part the an array between from and to (inclusive) with a smooth gradient from the color (from\\_red,from\\_grn,from\\_blu) to the color (to\\_red,to\\_grn,to\\_blu). Turn it into a function and call multiple times to lay gradients end-to-end in order to go smoothly through a series of colors.\n\nFor classic rainbow colormaps, I like to use sine waves that are 120-degrees apart in phase and shifted and scaled in amplitude to go between 0 and 255.\n\nAn old favorite of mine gives a nice flame coloring (assuming a palette of 256 colors):\n\n for (int step = 0; step < 256; ++step)\n {\n red[step] = min(step * 4, 255);\n grn[step] = min(step * 2, 255);\n blu[step] = min(step * 1, 255);\n }","full_conversation":[{"role":"OP","user_id":"anon_a29206637752427d","comment_id":"9q2q5","kind":"post","text":"Looking for tips in generating aesthetic color palettes, for things like graphs and heat maps.\n\nParticularly, if I'm using something like: color(red, green, blue), and rgb are 0-255 values. Any tips on making algorithms to flow smoothly from like... orange into dark orange, to red, to purple? I've had some success with nesting for() loops, incrementing the Green value in small increments on the inner loop, and incrementing the Red value in medium increments on the outer loop.\n\nThe results are decent, but are there any tips for doing this properly?","timestamp":"2009-10-02T04:02:24+00:00","score":0},{"role":"answerer","user_id":"anon_7b06333c65fd9818","comment_id":"c0dwpxv","kind":"comment","text":"Simple linear interpolation usually gives decent results for gradients. Something like:\n\n for (int step = from; step <= to; ++step) {\n red[step] = (from_red*(to-step) + to_red*(step-from)) / (from-to);\n grn[step] = (from_grn*(to-step) + to_grn*(step-from)) / (from-to);\n blu[step] = (from_blu*(to-step) + to_blu*(step-from)) / (from-to);\n } \n\nshould fill part the an array between from and to (inclusive) with a smooth gradient from the color (from\\_red,from\\_grn,from\\_blu) to the color (to\\_red,to\\_grn,to\\_blu). Turn it into a function and call multiple times to lay gradients end-to-end in order to go smoothly through a series of colors.\n\nFor classic rainbow colormaps, I like to use sine waves that are 120-degrees apart in phase and shifted and scaled in amplitude to go between 0 and 255.\n\nAn old favorite of mine gives a nice flame coloring (assuming a palette of 256 colors):\n\n for (int step = 0; step < 256; ++step)\n {\n red[step] = min(step * 4, 255);\n grn[step] = min(step * 2, 255);\n blu[step] = min(step * 1, 255);\n }","timestamp":"2009-10-02T08:57:56+00:00","score":2},{"role":"OP","user_id":"anon_a29206637752427d","comment_id":"c0dwv64","kind":"comment","text":"Thank you very much. I'll be trying these later on. Can you confirm that the min() function returns values no higher than 255, after step * 4 goes over?","timestamp":"2009-10-02T13:14:07+00:00","score":1},{"role":"answerer","user_id":"anon_7b06333c65fd9818","comment_id":"c0dxe2n","kind":"comment","text":"Depending on your environment, you might need to define the min function yourself. You can always dodge the issue by hard coding it:\n\n red[step] = step < 64 ? step * 4 : 255;\n grn[step] = step < 128 ? step * 2 : 255;\n blu[step] = step < 256 ? step * 1 : 255;","timestamp":"2009-10-02T19:22:04+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a29206637752427d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7b06333c65fd9818","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dwpxv","thanks_reply_id":"c0dwv64","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2bb82cae722b36e9","answerer_user_id":"anon_1291da9c1149ea0c","subreddit":"programming","timestamp":"2009-10-03T09:17:18+00:00","post_id":"9qfum","question":"Ask Reddit: How does one write their own language? In binary? In another language?\n\nI am just starting out learning object oriented programming. VB if you want to know as it would be the most helpful where I work. I am blown away by the idea that an entire language itself is actually written. How is it done? \n\nEdit: I better clarify that I am a bona fide newbie at programming. In all areas.","preferred_answer":"> VB\n\nOuch. Do [SICP](http://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Computer_Programs). It talks about topics that are exactly 100% the answer you're looking for in the later chapters. Also try some assembly on an embedded chip or at least try to get a reasonable idea on how assembly works.","full_conversation":[{"role":"OP","user_id":"anon_2bb82cae722b36e9","comment_id":"9qfum","kind":"post","text":"Ask Reddit: How does one write their own language? In binary? In another language?\n\nI am just starting out learning object oriented programming. VB if you want to know as it would be the most helpful where I work. I am blown away by the idea that an entire language itself is actually written. How is it done? \n\nEdit: I better clarify that I am a bona fide newbie at programming. In all areas.","timestamp":"2009-10-03T09:17:18+00:00","score":0},{"role":"answerer","user_id":"anon_1291da9c1149ea0c","comment_id":"c0dyarl","kind":"comment","text":"> VB\n\nOuch. Do [SICP](http://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Computer_Programs). It talks about topics that are exactly 100% the answer you're looking for in the later chapters. Also try some assembly on an embedded chip or at least try to get a reasonable idea on how assembly works.","timestamp":"2009-10-03T09:23:28+00:00","score":2},{"role":"OP","user_id":"anon_2bb82cae722b36e9","comment_id":"c0dyb1g","kind":"comment","text":"Thanks, I'll look in to it. SICP looks old - it must be a seminal text to still be relevant. As far as writing assembly code, especially on an embedded chip, I think it may be above my station at the moment. I'm sure that starting on a high level language such as VB may not be best for the long run, but I am in my comfort zone so I'll stay there for a bit.","timestamp":"2009-10-03T09:39:09+00:00","score":2},{"role":"answerer","user_id":"anon_1291da9c1149ea0c","comment_id":"c0dybca","kind":"comment","text":"> especially on an embedded chip, I think it may be above my station at the moment\n\nIf you're in high school of beyond and as it seems you have more than a passing interest in this, you're more than ready. Pick the [6502](http://www.google.com.au/#hl=en&source=hp&q=6502&btnG=Google+Search&meta=&aq=f&oq=6502&fp=ef4dae79243053b3) or something like it.","timestamp":"2009-10-03T09:56:21+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2bb82cae722b36e9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1291da9c1149ea0c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0dyarl","thanks_reply_id":"c0dyb1g","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a58b04ce5b2045f3","answerer_user_id":"anon_02c94f6f5ad37878","subreddit":"programming","timestamp":"2009-10-11T02:07:08+00:00","post_id":"9suw4","question":"Hey proggit, could you guide my non-profit in setting up this free e-mail tutoring program?\n\nHere's the scenario: I live in one of the poorest cities in the U.S. and I recently formed a non-profit with a few people in the city. Our goal is to fight the short term effects and the long term causes for poverty in the city. One of the projects the organization is coordinating involves providing free e-mail help when inner city middle school and high school students have questions on their homework assignments. I have already enlisted the help of about 100 volunteers who are local area college students and young professionals and all that's needed now is for me to setup the system that coordinates everything.\n\nHere's how I have envisioned the system so far:\n\n* Tutor provides information to the organization on what he/she is good at and how many students he/she can take.\n\n* Organization advertises the program to the community and provides one e-mail address that students can e-mail when they have a question.\n\n* Someone (or an automated system) receives the student's initial e-mail and then forwards it to a tutor who is qualified and available.\n\n* Tutor responds personally to the student and cc's a different e-mail address belonging to the organization. This way the organization can make sure that the student's question is answered and can also track how busy the tutor is.\n\n* Future e-mails from the student are sent directly to the assigned tutor but the tutor must cc the org in all responses.\n\nThe problem right now is that the system requires someone to manually monitor the e-mails being received in order to assign the tutor, make sure the tutor responds, and to keep track of how busy a tutor is. This is completely unacceptable from both a scalability and a cost-effectiveness perspective. This is where you come in, proggit. **Do any of you know how I can automate this process? Or can you think of a better way to do this?** Would you be willing to guide me? I'm not a hardcore programmer but I do know how to tinker with code.\n\nP.S. I'm using a throwaway account for this mainly because I don't like others having a history of my comments and profiling me. I've been on reddit almost since day 1.\n\nEdit: Readability","preferred_answer":"Your needs seem to align pretty well with a \"helpdesk\" scenario. As an example of what I mean by \"helpdesk\", take a look at [cerberus](http://www.cerberusweb.com/home). Some of their features:\n\n> Remember anything about anybody, deftly reply to an e-mail flood, quarantine spam, capture organic feedback, track time, flag opportunities, share tasks, and otherwise collaborate efficiently.\n\nThe support staff at the company I work for uses cerberus, it seems to work quite well for us. It's also open source, so you can extend it to meet your needs in the future (if necessary). I do realize that cerberus is not free, but perhaps you can contact them and ask about a complimentary license for a non-profit. It could be a tax write off for them... there's certainly no harm in asking.\n\nThere are some recommendations for FOSS in this [ask slashdot article](http://ask.slashdot.org/article.pl?sid=09/02/26/236248).","full_conversation":[{"role":"OP","user_id":"anon_a58b04ce5b2045f3","comment_id":"9suw4","kind":"post","text":"Hey proggit, could you guide my non-profit in setting up this free e-mail tutoring program?\n\nHere's the scenario: I live in one of the poorest cities in the U.S. and I recently formed a non-profit with a few people in the city. Our goal is to fight the short term effects and the long term causes for poverty in the city. One of the projects the organization is coordinating involves providing free e-mail help when inner city middle school and high school students have questions on their homework assignments. I have already enlisted the help of about 100 volunteers who are local area college students and young professionals and all that's needed now is for me to setup the system that coordinates everything.\n\nHere's how I have envisioned the system so far:\n\n* Tutor provides information to the organization on what he/she is good at and how many students he/she can take.\n\n* Organization advertises the program to the community and provides one e-mail address that students can e-mail when they have a question.\n\n* Someone (or an automated system) receives the student's initial e-mail and then forwards it to a tutor who is qualified and available.\n\n* Tutor responds personally to the student and cc's a different e-mail address belonging to the organization. This way the organization can make sure that the student's question is answered and can also track how busy the tutor is.\n\n* Future e-mails from the student are sent directly to the assigned tutor but the tutor must cc the org in all responses.\n\nThe problem right now is that the system requires someone to manually monitor the e-mails being received in order to assign the tutor, make sure the tutor responds, and to keep track of how busy a tutor is. This is completely unacceptable from both a scalability and a cost-effectiveness perspective. This is where you come in, proggit. **Do any of you know how I can automate this process? Or can you think of a better way to do this?** Would you be willing to guide me? I'm not a hardcore programmer but I do know how to tinker with code.\n\nP.S. I'm using a throwaway account for this mainly because I don't like others having a history of my comments and profiling me. I've been on reddit almost since day 1.\n\nEdit: Readability","timestamp":"2009-10-11T02:07:08+00:00","score":0},{"role":"answerer","user_id":"anon_02c94f6f5ad37878","comment_id":"c0ea0t8","kind":"comment","text":"Your needs seem to align pretty well with a \"helpdesk\" scenario. As an example of what I mean by \"helpdesk\", take a look at [cerberus](http://www.cerberusweb.com/home). Some of their features:\n\n> Remember anything about anybody, deftly reply to an e-mail flood, quarantine spam, capture organic feedback, track time, flag opportunities, share tasks, and otherwise collaborate efficiently.\n\nThe support staff at the company I work for uses cerberus, it seems to work quite well for us. It's also open source, so you can extend it to meet your needs in the future (if necessary). I do realize that cerberus is not free, but perhaps you can contact them and ask about a complimentary license for a non-profit. It could be a tax write off for them... there's certainly no harm in asking.\n\nThere are some recommendations for FOSS in this [ask slashdot article](http://ask.slashdot.org/article.pl?sid=09/02/26/236248).","timestamp":"2009-10-11T03:33:47+00:00","score":2},{"role":"OP","user_id":"anon_a58b04ce5b2045f3","comment_id":"c0ea35y","kind":"comment","text":"Thank you for the reply. I'm still looking through the software that you mentioned but my initial area of concern is that all of these require for the tutor to sign in to the website on a fairly regular basis (or so it seems). Working with a group of volunteers, I don't think this can be expected. Since you've worked with Cereberus, do you know if there's any way to configure it so it e-mails the staff about tickets that they have been assigned?","timestamp":"2009-10-11T04:37:16+00:00","score":1},{"role":"answerer","user_id":"anon_02c94f6f5ad37878","comment_id":"c0eazjd","kind":"comment","text":"I'm actually not that familiar with Cerberus, as I don't use it personally. I just know that the employees that do use it seem to think it works quite well. A quick google search found [this link](http://forum.cerb4.com/showthread.php?t=132) for email notifications. It looks like setting \"watchers\" will work great. That's how the people distributing the tickets can assign them to individuals. That post was in 2007, so it's likely that the email notification plugin has improved since then.","timestamp":"2009-10-11T22:48:53+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a58b04ce5b2045f3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_02c94f6f5ad37878","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ea0t8","thanks_reply_id":"c0ea35y","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_63b8289d312454b8","answerer_user_id":"anon_803c12f2b474b74f","subreddit":"programming","timestamp":"2009-10-13T13:26:06+00:00","post_id":"9tkgq","question":"Can anyone point me to resources to learn to program for windows?\n\nI have basic experience in programming C, C++ and Intel assembly code. By basic I mean I understand the methodology of these language but I have never programmed anything that didnt run in a console. I study computer engineering in collage but this is geared mostly toward embedded systems. Im interested in learning to program for operating systems (especially windows) and creating GUI's but am having trouble finding resources online to learn how to do this. Ive googled but never found anywhere that explains windows architecture or methods. Can anyone help?","preferred_answer":"Well, I suggest you haven't googled hard enough. A search for \"Windows Programming\" brought in Charles Petzold's book which is one of the better all-round-great books about Windows. Microsoft.Net has changed things since the original publishing of that book, however I recommend learning something you can use on different platforms.\n\nBased on your stated experience, if that's what you want to continue using I recommend you look at QT or wxWindows as a platform independent way of developing applications. I personally prefer QT now that the library is LGPLed: http://qt.nokia.com/. QT is also used in embedded spaces.\n\nFinally, there are literally tons of free documentation available on MSDN online at Microsoft.","full_conversation":[{"role":"OP","user_id":"anon_63b8289d312454b8","comment_id":"9tkgq","kind":"post","text":"Can anyone point me to resources to learn to program for windows?\n\nI have basic experience in programming C, C++ and Intel assembly code. By basic I mean I understand the methodology of these language but I have never programmed anything that didnt run in a console. I study computer engineering in collage but this is geared mostly toward embedded systems. Im interested in learning to program for operating systems (especially windows) and creating GUI's but am having trouble finding resources online to learn how to do this. Ive googled but never found anywhere that explains windows architecture or methods. Can anyone help?","timestamp":"2009-10-13T13:26:06+00:00","score":0},{"role":"answerer","user_id":"anon_803c12f2b474b74f","comment_id":"c0edfj2","kind":"comment","text":"Well, I suggest you haven't googled hard enough. A search for \"Windows Programming\" brought in Charles Petzold's book which is one of the better all-round-great books about Windows. Microsoft.Net has changed things since the original publishing of that book, however I recommend learning something you can use on different platforms.\n\nBased on your stated experience, if that's what you want to continue using I recommend you look at QT or wxWindows as a platform independent way of developing applications. I personally prefer QT now that the library is LGPLed: http://qt.nokia.com/. QT is also used in embedded spaces.\n\nFinally, there are literally tons of free documentation available on MSDN online at Microsoft.","timestamp":"2009-10-13T13:35:09+00:00","score":2},{"role":"OP","user_id":"anon_63b8289d312454b8","comment_id":"c0edfwz","kind":"comment","text":"Thanks, but mostly my problem is that there's too much information on MSDN. I have no knowledge of how windows works and what I need is a tutorial, rather then the mass of information that is MSDN. Books are not an option considering the current state of my finances. Also my nearest library is 30 miles away and I dont own a car...","timestamp":"2009-10-13T13:45:31+00:00","score":2},{"role":"answerer","user_id":"anon_803c12f2b474b74f","comment_id":"c0edv7v","kind":"comment","text":"Then I suggest Google books then. There are a whole bunch of books available (not always in their entirety mindyou) that you can peruse.\n\nAlternatively, the book I mentionned might be available for free electronically somewhere.\n\nThe problem is that Windows as a whole is extremely complexe. Honestly, the best place to start would be with a framework that encapsulates the underlying windows subsystem. It sounds like QT might in fact be a good place for you, the tools are incidentally also free.","timestamp":"2009-10-13T18:41:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_63b8289d312454b8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_803c12f2b474b74f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0edfj2","thanks_reply_id":"c0edfwz","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a32dd6f8fbb42788","answerer_user_id":"anon_5732359882154894","subreddit":"programming","timestamp":"2009-10-14T06:02:19+00:00","post_id":"9tu5z","question":"Anybody know if this book is any good? \"Working Effectively with Legacy Code\" I do old code conversions and wondered about it's expertise level.","preferred_answer":"One thing I observed about these books (like shown in related items by Amazon) is extra emphasis on OOP. So they are less helpful in pure C kinda environments (which might be the old code you want to understand).","full_conversation":[{"role":"OP","user_id":"anon_a32dd6f8fbb42788","comment_id":"9tu5z","kind":"post","text":"Anybody know if this book is any good? \"Working Effectively with Legacy Code\" I do old code conversions and wondered about it's expertise level.","timestamp":"2009-10-14T06:02:19+00:00","score":8},{"role":"answerer","user_id":"anon_5732359882154894","comment_id":"c0eevg4","kind":"comment","text":"One thing I observed about these books (like shown in related items by Amazon) is extra emphasis on OOP. So they are less helpful in pure C kinda environments (which might be the old code you want to understand).","timestamp":"2009-10-14T06:36:44+00:00","score":6},{"role":"OP","user_id":"anon_a32dd6f8fbb42788","comment_id":"c0ei31l","kind":"comment","text":"\"(which might be the old code you want to understand).\"\nIt is thanks.","timestamp":"2009-10-16T01:07:26+00:00","score":1},{"role":"answerer","user_id":"anon_5732359882154894","comment_id":"c0eime3","kind":"comment","text":"same here, the only solution I found so far is to spend some time with the code.","timestamp":"2009-10-16T08:59:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a32dd6f8fbb42788","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5732359882154894","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0eevg4","thanks_reply_id":"c0ei31l","post_score":8,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_1a716b7e10d6df81","answerer_user_id":"anon_e4ec2edfa9d47d3e","subreddit":"programming","timestamp":"2009-10-15T03:53:53+00:00","post_id":"9u701","question":"Is it possible to serve a non-watermarked image to those viewing the image on your site and a watermarked image for those hotlinking?","preferred_answer":"Yes","full_conversation":[{"role":"OP","user_id":"anon_1a716b7e10d6df81","comment_id":"9u701","kind":"post","text":"Is it possible to serve a non-watermarked image to those viewing the image on your site and a watermarked image for those hotlinking?","timestamp":"2009-10-15T03:53:53+00:00","score":47},{"role":"answerer","user_id":"anon_e4ec2edfa9d47d3e","comment_id":"c0egipx","kind":"comment","text":"Yes","timestamp":"2009-10-15T04:15:10+00:00","score":135},{"role":"OP","user_id":"anon_1a716b7e10d6df81","comment_id":"c0egiyb","kind":"comment","text":"Thanks","timestamp":"2009-10-15T04:20:05+00:00","score":79},{"role":"answerer","user_id":"anon_e4ec2edfa9d47d3e","comment_id":"c0egjg3","kind":"comment","text":"You're welcome.","timestamp":"2009-10-15T04:31:14+00:00","score":73}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1a716b7e10d6df81","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e4ec2edfa9d47d3e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0egipx","thanks_reply_id":"c0egiyb","post_score":47,"answer_score":135,"preferred_answer_is_top_level":true}} {"user_id":"anon_9176c265300d6f99","answerer_user_id":"anon_dc4f4776a0722a12","subreddit":"programming","timestamp":"2009-10-17T10:27:10+00:00","post_id":"9uywd","question":"Can you beat my tic-tac-toe bot? This project was inspired by the /r/carlhprogramming sub-reddit. Code critiques welcome.","preferred_answer":"You must not be seeing the redundancies that are there in the code. Going back to my [earlier comment](http://www.reddit.com/r/programming/comments/9uywd/can_you_beat_my_tictactoe_bot_this_project_was/c0ekm52), look at my `Take()` function. The logic performed by this function appears at least 18 times in the original code: 14 times in the `TaccyBlockCorner()` function and 4 other times elsewhere. Similarly, the `OneCorner()` logic appears four times in the original code.\n\nAs another example, look at the `checkForWinner()` function in the original code. Do you see the block of code repeated three times?\n\nThis is the kind of redundancy you want to train yourself to find and refactor out. As [SnacksOnAPlane mentioned](http://www.reddit.com/r/programming/comments/9uywd/can_you_beat_my_tictactoe_bot_this_project_was/c0ekyah), it's probably the single most important thing you can take home from this exercise.","full_conversation":[{"role":"OP","user_id":"anon_9176c265300d6f99","comment_id":"9uywd","kind":"post","text":"Can you beat my tic-tac-toe bot? This project was inspired by the /r/carlhprogramming sub-reddit. Code critiques welcome.","timestamp":"2009-10-17T10:27:10+00:00","score":8},{"role":"answerer","user_id":"anon_dc4f4776a0722a12","comment_id":"c0elhng","kind":"comment","text":"You must not be seeing the redundancies that are there in the code. Going back to my [earlier comment](http://www.reddit.com/r/programming/comments/9uywd/can_you_beat_my_tictactoe_bot_this_project_was/c0ekm52), look at my `Take()` function. The logic performed by this function appears at least 18 times in the original code: 14 times in the `TaccyBlockCorner()` function and 4 other times elsewhere. Similarly, the `OneCorner()` logic appears four times in the original code.\n\nAs another example, look at the `checkForWinner()` function in the original code. Do you see the block of code repeated three times?\n\nThis is the kind of redundancy you want to train yourself to find and refactor out. As [SnacksOnAPlane mentioned](http://www.reddit.com/r/programming/comments/9uywd/can_you_beat_my_tictactoe_bot_this_project_was/c0ekyah), it's probably the single most important thing you can take home from this exercise.","timestamp":"2009-10-18T08:44:58+00:00","score":3},{"role":"OP","user_id":"anon_9176c265300d6f99","comment_id":"c0elnif","kind":"comment","text":"Duly noted. I'm going to work on this tonight and refactor these. Thank you to everybody in this thread. I think that I did know these were pretty poor ways to do it, or at least, very expanded forms of what they should be, but was too excited and focused about getting it functioning. I should have taken the time to condense the code before posting it.","timestamp":"2009-10-18T14:05:12+00:00","score":2},{"role":"answerer","user_id":"anon_dc4f4776a0722a12","comment_id":"c0emp4f","kind":"comment","text":"No need to apologize! You were brave enough to post unpolished code and ask for feedback. That earns you a lot of respect.","timestamp":"2009-10-19T04:35:37+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9176c265300d6f99","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dc4f4776a0722a12","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0elhng","thanks_reply_id":"c0elnif","post_score":8,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_5f3aeec842b44b27","answerer_user_id":"anon_6a5b5fb61b59d0d5","subreddit":"programming","timestamp":"2009-10-19T10:13:00+00:00","post_id":"9vglo","question":"DAE find programmers difficult to work with?","preferred_answer":"I'm a programmer, so I'm not neutral on this topic. I have found very few programmers who are guilty of the failings you describe. Most programmers I know are inquisitive, reasonably open-minded, and genuinely interested in improving their knowledge and skills. However, I don't know many young programmers, and most of the programmers I know are pretty confident. The traits you describe probably correspond pretty closely to poor self confidence.\n\nThere is another point that may explain your experiences and mine at the same time. Consider the following parable:\n\nA old man sat at a roadside on the outskirts of his hometown. A traveler approached and asked the man, \"What are people like in this town?\"\n\n\"What were the people like in the town you just left?\" asked the man.\n\n\"Oh, they were terrible,\" replied the traveler. \"They were rude, greedy, stupid and unhappy people\"\n\n\"You'll probably find people are basically the same here,\" responded the old man.\n\nLater in the day, another traveler approached the old man and asked the same question about the townspeople. The old man replied with the same question he asked the earlier traveler.\n\n\"Oh, they were great,\" said the second traveler. \"They were very nice and welcoming people. They worked hard and they all seemed pretty happy.\"\n\nAgain the old man replied, \"You'll probably find people are basically the same here.\"","full_conversation":[{"role":"OP","user_id":"anon_5f3aeec842b44b27","comment_id":"9vglo","kind":"post","text":"DAE find programmers difficult to work with?","timestamp":"2009-10-19T10:13:00+00:00","score":121},{"role":"answerer","user_id":"anon_6a5b5fb61b59d0d5","comment_id":"c0en6ad","kind":"comment","text":"I'm a programmer, so I'm not neutral on this topic. I have found very few programmers who are guilty of the failings you describe. Most programmers I know are inquisitive, reasonably open-minded, and genuinely interested in improving their knowledge and skills. However, I don't know many young programmers, and most of the programmers I know are pretty confident. The traits you describe probably correspond pretty closely to poor self confidence.\n\nThere is another point that may explain your experiences and mine at the same time. Consider the following parable:\n\nA old man sat at a roadside on the outskirts of his hometown. A traveler approached and asked the man, \"What are people like in this town?\"\n\n\"What were the people like in the town you just left?\" asked the man.\n\n\"Oh, they were terrible,\" replied the traveler. \"They were rude, greedy, stupid and unhappy people\"\n\n\"You'll probably find people are basically the same here,\" responded the old man.\n\nLater in the day, another traveler approached the old man and asked the same question about the townspeople. The old man replied with the same question he asked the earlier traveler.\n\n\"Oh, they were great,\" said the second traveler. \"They were very nice and welcoming people. They worked hard and they all seemed pretty happy.\"\n\nAgain the old man replied, \"You'll probably find people are basically the same here.\"","timestamp":"2009-10-19T14:19:31+00:00","score":8},{"role":"OP","user_id":"anon_5f3aeec842b44b27","comment_id":"c0en6g7","kind":"comment","text":"Thank you for illuminating my point with a timely example. You probably think you were being clever, but I found your post to be smug and arrogant. No offense.","timestamp":"2009-10-19T14:23:00+00:00","score":-2},{"role":"answerer","user_id":"anon_6a5b5fb61b59d0d5","comment_id":"c0en6jy","kind":"comment","text":"So we're both right!","timestamp":"2009-10-19T14:25:02+00:00","score":3},{"role":"OP","user_id":"anon_5f3aeec842b44b27","comment_id":"c0en79m","kind":"comment","text":"I will cautiously agree to buy that for now, hoping but not expecting that after I work through the logic I won't find myself on the short end of the argument. :-)","timestamp":"2009-10-19T14:39:42+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5f3aeec842b44b27","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6a5b5fb61b59d0d5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0en6ad","thanks_reply_id":"c0en6g7","post_score":121,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_b477753e11ef235b","answerer_user_id":"anon_9c12fcfd87d642e1","subreddit":"programming","timestamp":"2009-10-22T18:56:36+00:00","post_id":"9wram","question":"What would you like to see in a generic ToString function?\n\nLets say you have a generic function called \"SafeToString\". The purpose is to be able to pass anything in and always get back a sane response without any exceptions. How would you want it to respond to these inputs?\r\n\r\n* Null -> Null or String.Empty\r\n* DBNull.Value -> Null, String.Empty, or some text like \"\"\r\n* Nullable containing a null -> Null, String.Empty, or some text like \"\"\r\n* FSharpOption containing None -> Null, String.Empty, or \"None\"\r\n* FSharpOption containing Some(5)-> \"5\" or \"Some(5)\"","preferred_answer":"I am trying to make you understand that you cannot treat 'null' as an object. Null is not an object. It is not a value. It has no constant associated with it (unlike DBNull.Value). Null has no memory address associated with it. Null is null. It means something should be there but isn't. It is important to understand the difference.","full_conversation":[{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"9wram","kind":"post","text":"What would you like to see in a generic ToString function?\n\nLets say you have a generic function called \"SafeToString\". The purpose is to be able to pass anything in and always get back a sane response without any exceptions. How would you want it to respond to these inputs?\r\n\r\n* Null -> Null or String.Empty\r\n* DBNull.Value -> Null, String.Empty, or some text like \"\"\r\n* Nullable containing a null -> Null, String.Empty, or some text like \"\"\r\n* FSharpOption containing None -> Null, String.Empty, or \"None\"\r\n* FSharpOption containing Some(5)-> \"5\" or \"Some(5)\"","timestamp":"2009-10-22T18:56:36+00:00","score":0},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0eu3cs","kind":"comment","text":"I am trying to make you understand that you cannot treat 'null' as an object. Null is not an object. It is not a value. It has no constant associated with it (unlike DBNull.Value). Null has no memory address associated with it. Null is null. It means something should be there but isn't. It is important to understand the difference.","timestamp":"2009-10-23T13:07:37+00:00","score":0},{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"c0eu8xc","kind":"comment","text":"Wow, you are really stupid. Everything you said is textbook perfect, but you still have no idea what we are talking about. You are stuck in \"My First Programming Class, day 1\". To understand how write a function can convert a null to an empty string, you really need to attend \"My First Programming Class, day 2\".","timestamp":"2009-10-23T15:13:58+00:00","score":1},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0eub6w","kind":"comment","text":"So I am stupid because everything I said is correct but you do not agree with it?\n\nIt is really easy to write a function that can convert a null to an empty string. It is pretty hard to do that with a method that belongs to an object. I strongly wish to see you doing that to enlighten me.","timestamp":"2009-10-23T15:53:36+00:00","score":1},{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"c0eurj7","kind":"comment","text":"Again, this isn't about how to build it, it is about what string it should return.","timestamp":"2009-10-23T19:51:17+00:00","score":1},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0eutdo","kind":"comment","text":"I clearly stated that you cannot make a null.ToString function because there is no object in which such ToString function would belong to be called. You answered to that by saying that I should attend \"My First Programming Class, day 2\" to learn to code a function to convert null to a string. And you claimed I had no idea of what I was talking about.\n\nSo, after completely misquoting and failing to understand what I said, you insulted me. Twice. Then, when I called you on your mistake, it is no longer about how to build it? So, I was right? Again, I wanna see HOW you would make a code that allowed you to make a .ToString() since it is a very simple thing that you learned on your second day of programming.","timestamp":"2009-10-23T20:20:19+00:00","score":1},{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"c0euvvj","kind":"comment","text":"I had always intented for the function to be used like this:\r\n\r\n StringHelpers.ToStringSafe( myObject );\r\n \r\nYou only imagined that I wanted to write it as a member function on null.","timestamp":"2009-10-23T21:01:04+00:00","score":1},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0evlte","kind":"comment","text":"I eddited my original post and addressed your point there as well.","timestamp":"2009-10-24T11:53:22+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9c12fcfd87d642e1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0eu3cs","thanks_reply_id":"c0eu8xc","post_score":0,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_3a0b34d41ba851b4","answerer_user_id":"anon_7714e166518e5a8d","subreddit":"programming","timestamp":"2009-10-23T18:59:47+00:00","post_id":"9x4mr","question":"I'm looking for a low-priced full-featured hosting provider with Subversion support, and came across this one. Anyone have any experience with it?","preferred_answer":"I recently signed up with these guys. I would say they're optimized for developer types in terms of web hosting, which is exactly what I want but may not be for everyone. For example, they have a 1-click install of Trac and Rails and Django but not say, phpBB. They also have some pretty rare features like PostgreSQL databases, and static sites that will be served through nginx. You can even run things that sit there listening on an unprivileged port.\n\nHowever, their panel is relatively minimal outside of the fancy framework installer--basically email config, some dns stuff, account stuff... compared to your typical CPanel based host it has less, probably because they give you a shell and expect you to be able to do stuff yourself.\n\nThey also don't ridiculously oversell disk and bandwidth, so if you are looking for a place to park large collections of media you probably want something like dreamhost instead.\n\nOnly downsides so far for me is they don't host domains, so I have to keep my domains with godaddy(only because you can't transfer a .us to dreamhost) and dreamhost.","full_conversation":[{"role":"OP","user_id":"anon_3a0b34d41ba851b4","comment_id":"9x4mr","kind":"post","text":"I'm looking for a low-priced full-featured hosting provider with Subversion support, and came across this one. Anyone have any experience with it?","timestamp":"2009-10-23T18:59:47+00:00","score":0},{"role":"answerer","user_id":"anon_7714e166518e5a8d","comment_id":"c0eut2b","kind":"comment","text":"I recently signed up with these guys. I would say they're optimized for developer types in terms of web hosting, which is exactly what I want but may not be for everyone. For example, they have a 1-click install of Trac and Rails and Django but not say, phpBB. They also have some pretty rare features like PostgreSQL databases, and static sites that will be served through nginx. You can even run things that sit there listening on an unprivileged port.\n\nHowever, their panel is relatively minimal outside of the fancy framework installer--basically email config, some dns stuff, account stuff... compared to your typical CPanel based host it has less, probably because they give you a shell and expect you to be able to do stuff yourself.\n\nThey also don't ridiculously oversell disk and bandwidth, so if you are looking for a place to park large collections of media you probably want something like dreamhost instead.\n\nOnly downsides so far for me is they don't host domains, so I have to keep my domains with godaddy(only because you can't transfer a .us to dreamhost) and dreamhost.","timestamp":"2009-10-23T20:15:14+00:00","score":2},{"role":"OP","user_id":"anon_3a0b34d41ba851b4","comment_id":"c0evipu","kind":"comment","text":"Thanks for the info, every insightful.\nI had a hunch this was a no-frills, DIY kinda host. I do like that, but I'm also fond of a CPanel GUI :)\n\nWhat do you mean by they don't host domains? You cannot register a domain there, or they don't even have nameservers to point your domains to?","timestamp":"2009-10-24T08:16:06+00:00","score":1},{"role":"answerer","user_id":"anon_7714e166518e5a8d","comment_id":"c0ew2fg","kind":"comment","text":"I mean you can't transfer your domains to them for them to renew and maintain your whois records and so forth, because they aren't a registrar, most smaller webhosts are not(although you can basically just be a tucows reseller and write something into your control panel to facilitate that...but they don't to that either). \n\nThey do have nameservers that you can point your domains to, and you can edit the records within your control panel.","timestamp":"2009-10-24T21:10:13+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3a0b34d41ba851b4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7714e166518e5a8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0eut2b","thanks_reply_id":"c0evipu","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_3fbeb915161620cf","answerer_user_id":"anon_93dfd3ab946e6bab","subreddit":"programming","timestamp":"2009-10-27T01:39:44+00:00","post_id":"9y27t","question":"Java Certification: SCJA or the SCJP?\n\nI welcome any comments on some of the other Java certifications, such as the SCMAD. Thanks.\nhttp://uk.sun.com/training/certification/java/index.xml","preferred_answer":"SCJP. I'm not sure what the point of anything else would be. SCJP will serve as a good \"foot in the door\" at any place using Java. I would be interested in getting more, if I actually saw \"Minimum SCJD required\", which I haven't.","full_conversation":[{"role":"OP","user_id":"anon_3fbeb915161620cf","comment_id":"9y27t","kind":"post","text":"Java Certification: SCJA or the SCJP?\n\nI welcome any comments on some of the other Java certifications, such as the SCMAD. Thanks.\nhttp://uk.sun.com/training/certification/java/index.xml","timestamp":"2009-10-27T01:39:44+00:00","score":0},{"role":"answerer","user_id":"anon_93dfd3ab946e6bab","comment_id":"c0ezhnf","kind":"comment","text":"SCJP. I'm not sure what the point of anything else would be. SCJP will serve as a good \"foot in the door\" at any place using Java. I would be interested in getting more, if I actually saw \"Minimum SCJD required\", which I haven't.","timestamp":"2009-10-27T06:08:08+00:00","score":2},{"role":"OP","user_id":"anon_3fbeb915161620cf","comment_id":"c0ezy8r","kind":"comment","text":"Thanks so much for your response, I do appreciate it. I am going to take the exam, but I am going to be studying for it on my own. I have the exam preparation guide which I am going to work through. Do you have any other suggestions (I'm assuming that you have sat the SCJP)?","timestamp":"2009-10-27T15:56:09+00:00","score":1},{"role":"answerer","user_id":"anon_93dfd3ab946e6bab","comment_id":"c0f08xq","kind":"comment","text":"Unlike some other certification courses (Zend PHP is a glaring example), I thought the SCJP was fair and a good gauge of your java knowledge and experience. The SCJP prep guide WILL help you.","timestamp":"2009-10-27T19:07:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3fbeb915161620cf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_93dfd3ab946e6bab","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ezhnf","thanks_reply_id":"c0ezy8r","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6146b190788b28b6","answerer_user_id":"anon_692600a27d2ad062","subreddit":"programming","timestamp":"2009-10-27T06:51:51+00:00","post_id":"9y509","question":"What an unrealistic job po--oh, dude, great satire","preferred_answer":"Wow, I want to read your resume like I want a root canal. You need to doll that thing up, bro.","full_conversation":[{"role":"OP","user_id":"anon_6146b190788b28b6","comment_id":"9y509","kind":"post","text":"What an unrealistic job po--oh, dude, great satire","timestamp":"2009-10-27T06:51:51+00:00","score":88},{"role":"answerer","user_id":"anon_692600a27d2ad062","comment_id":"c0ezxjp","kind":"comment","text":"Wow, I want to read your resume like I want a root canal. You need to doll that thing up, bro.","timestamp":"2009-10-27T15:43:48+00:00","score":11},{"role":"OP","user_id":"anon_6146b190788b28b6","comment_id":"c0f045y","kind":"comment","text":"I'll see what I can do. Thanks for the feedback.","timestamp":"2009-10-27T17:42:37+00:00","score":3},{"role":"answerer","user_id":"anon_692600a27d2ad062","comment_id":"c0f053x","kind":"comment","text":"Sorry, I should've been more constructive. Here we go:\n\nIt's good that you have a cover letter in mind when you're looking to apply for a job, but it's even better to personalize your cover letter to the tone of the job description and make specific points in response to what they're looking for. It's that level of personalization that will separate you from everyone else. Grab them with a short snappy sentence, and shorten the letter itself so it doesn't look so daunting. Remember: you only need to go into topics that aren't covered by your job experience descriptions and skill set description.\n\nYour past work experience, in general, has quite a bit in it, and it varies widely in terms of what you've done in each company. These are good things, but it's almost daunting to read through, mostly because it's written in bulleted form. Perhaps it's different for CS types, but I've found that using a more conversational tone (not too informal, mind you), at least makes the reading much more approachable. One-line blurbs tend to just look like an endless stream of half-connected thoughts that end up feeling incoherent.\n\nIn your second description, you mention at the top of the description that you were laid off. I realize what kind of time it is now, but, nevertheless, this information shouldn't sit directly next to your position or time employed. It belongs toward the bottom of the list of items (if at all).\n\nI have to head to a meeting, but I can update this later. Hope it helps.\n\nEdit: [My resume](http://www.ddrewdesign.com/images/resume2009.pdf) is by no means a hallmark of fantastic resume-ing, but I think it well articulates the kind of information dissemination you should go for.","timestamp":"2009-10-27T18:00:23+00:00","score":11},{"role":"OP","user_id":"anon_6146b190788b28b6","comment_id":"c0f06l6","kind":"comment","text":"Thanks! Those are great tips.","timestamp":"2009-10-27T18:25:40+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6146b190788b28b6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_692600a27d2ad062","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ezxjp","thanks_reply_id":"c0f045y","post_score":88,"answer_score":11,"preferred_answer_is_top_level":false}} {"user_id":"anon_d6abda80239d39fa","answerer_user_id":"anon_437c9dfc6840e5bb","subreddit":"programming","timestamp":"2009-11-01T01:52:54+00:00","post_id":"9zsfo","question":"Capitalizing the first letter of every word in string in Java...\n\n**edit** Solved!! Thank you guys I can't believe I was so close to the answer... It was a matter of perspective. Thank you all for the helpful hints.\n\n\nThis is a bit embarrassing, but I am stumped on my intro to java assignment. I am to write a program that would capitalize the first letter of each word in a string... So far I have\n\t\n public class Homework5b\n\t{\n\t\tpublic static char toUpperCase(char ch)\n\t\t{\n\n\t\t\tif(ch >='a'&& ch <='z')\n\t\t\t{\n\t\t\t\treturn (char)(ch-32);\n\t\t\t}\n\t\t\treturn ch;\n\t\t}\n\t\tpublic static void main (String[] asd)\n\t\t{\n\t\t\tString s = \"My country tis of thee, Sweet land of liberty, Of thee I sing\";\n\t\t\tint len = s.length();\n\t\t\tfor(int j=0; j0 && ch==' ')\n\t\t\t\t\tSystem.out.print(\" \"+toUpperCase(s.charAt(j+1)));\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\nI am not to use arrays... just simple loops.\nCould anybody help?","preferred_answer":"Oh, let me amend my statement. I apologize, I was not too clear.\n\n1. The loop processes one character at a time, over each character of the string.\n2. But the j'th character is a space, you also process the (j+1)'th character.\n3. Think of a way so that you don't process the j+1 character again.\n\nThere are multiple ways of solving this. One way involves changing only two characters in your code. One way involves a boolean flag like thefightforgood suggested.\n\n(I'm deliberately trying not to give you the answer. =P)","full_conversation":[{"role":"OP","user_id":"anon_d6abda80239d39fa","comment_id":"9zsfo","kind":"post","text":"Capitalizing the first letter of every word in string in Java...\n\n**edit** Solved!! Thank you guys I can't believe I was so close to the answer... It was a matter of perspective. Thank you all for the helpful hints.\n\n\nThis is a bit embarrassing, but I am stumped on my intro to java assignment. I am to write a program that would capitalize the first letter of each word in a string... So far I have\n\t\n public class Homework5b\n\t{\n\t\tpublic static char toUpperCase(char ch)\n\t\t{\n\n\t\t\tif(ch >='a'&& ch <='z')\n\t\t\t{\n\t\t\t\treturn (char)(ch-32);\n\t\t\t}\n\t\t\treturn ch;\n\t\t}\n\t\tpublic static void main (String[] asd)\n\t\t{\n\t\t\tString s = \"My country tis of thee, Sweet land of liberty, Of thee I sing\";\n\t\t\tint len = s.length();\n\t\t\tfor(int j=0; j0 && ch==' ')\n\t\t\t\t\tSystem.out.print(\" \"+toUpperCase(s.charAt(j+1)));\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\nI am not to use arrays... just simple loops.\nCould anybody help?","timestamp":"2009-11-01T01:52:54+00:00","score":0},{"role":"answerer","user_id":"anon_437c9dfc6840e5bb","comment_id":"c0f6sdc","kind":"comment","text":"Oh, let me amend my statement. I apologize, I was not too clear.\n\n1. The loop processes one character at a time, over each character of the string.\n2. But the j'th character is a space, you also process the (j+1)'th character.\n3. Think of a way so that you don't process the j+1 character again.\n\nThere are multiple ways of solving this. One way involves changing only two characters in your code. One way involves a boolean flag like thefightforgood suggested.\n\n(I'm deliberately trying not to give you the answer. =P)","timestamp":"2009-11-01T02:19:09+00:00","score":1},{"role":"OP","user_id":"anon_d6abda80239d39fa","comment_id":"c0f6skm","kind":"comment","text":"I appreciate that you aren't giving me the answer. I will submit the program with the boolean flag if I cannot figure it out on my own. =)","timestamp":"2009-11-01T02:26:35+00:00","score":1},{"role":"answerer","user_id":"anon_437c9dfc6840e5bb","comment_id":"c0f6wq4","kind":"comment","text":"Well since you solved it, here's what I did. Turns out I needed two changes because of an unrelated bug in your program. Assuming public class Homework5b is line 1.\n\nchange line 21: else if (ch == ' ')\n\nchange line 22: System.out.print(\" \" + toUpperCase(s.charAt(++j)));\n\nThe change on line 21 is needed because otherwise the first character of the string gets printed twice. Because this else-if clause is now part of the if clause, we can remove the j>0 test since j is always greater than 0 if we reach this point.\n\nThe change on line 22 increments j and then passes the value to toUpperCase. Then when this statement finishes, and the rest of the for loop runs, j is incremented again, and it essentially skips over the uppercased character.","timestamp":"2009-11-01T04:53:54+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d6abda80239d39fa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_437c9dfc6840e5bb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0f6sdc","thanks_reply_id":"c0f6skm","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_2cf0320cd22322f6","answerer_user_id":"anon_db81191e4aa30dca","subreddit":"programming","timestamp":"2009-11-03T22:47:51+00:00","post_id":"a0nm8","question":"Ask proggit: What's a good tool that essentially generates and operates on a call-graph for C?\n\nBonus points if it works in cygwin, extra bonus points if it integrates with vim somehow (kind of like ctags on steroids). I used Java in Eclipse for a while in grad school and got pretty addicted to knowing instantly where a given method was being called. Now I'm working with a fucking massive C codebase and miss that ability horribly.","preferred_answer":"Cscope to the rescue ..","full_conversation":[{"role":"OP","user_id":"anon_2cf0320cd22322f6","comment_id":"a0nm8","kind":"post","text":"Ask proggit: What's a good tool that essentially generates and operates on a call-graph for C?\n\nBonus points if it works in cygwin, extra bonus points if it integrates with vim somehow (kind of like ctags on steroids). I used Java in Eclipse for a while in grad school and got pretty addicted to knowing instantly where a given method was being called. Now I'm working with a fucking massive C codebase and miss that ability horribly.","timestamp":"2009-11-03T22:47:51+00:00","score":0},{"role":"answerer","user_id":"anon_db81191e4aa30dca","comment_id":"c0favwb","kind":"comment","text":"Cscope to the rescue ..","timestamp":"2009-11-03T23:04:51+00:00","score":2},{"role":"OP","user_id":"anon_2cf0320cd22322f6","comment_id":"c0fawrb","kind":"comment","text":"Thanks! I'd heard of cscope before, but it seemed like a tremendous pain in the ass to get it working under cygwin. Turns out it's actually a cygwin package, but under \"mlcscope.\" Just in case anyone else has the same question.\n\nThanks again!","timestamp":"2009-11-03T23:18:59+00:00","score":2},{"role":"answerer","user_id":"anon_db81191e4aa30dca","comment_id":"c0fbmlh","kind":"comment","text":"Get it integrated into vim and get into the habit of generating cscope.out for all your projects, and set it up properly to include sources from everywhere your build system will be retrieving them, and you will never look back at the dark days without cscope again .. cscope is, basically, a C programmers best friend. \n\nvim+cscope+MakeRuleToBuild_cscope.out_Properly == FunFunFun!","timestamp":"2009-11-04T09:31:24+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2cf0320cd22322f6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_db81191e4aa30dca","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0favwb","thanks_reply_id":"c0fawrb","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2c829491681d05ed","answerer_user_id":"anon_2a577191de7b397d","subreddit":"programming","timestamp":"2009-11-04T23:43:35+00:00","post_id":"a11x0","question":"Dear Proggit: Does this software exist?\n\nI was wondering if you could help me out on a personal project. I'm not sure if this software actually exists or if I'm going to have to write this myself; I am looking for a piece of software that visually plot the relationships of one entity in a network against another. An example of what I'm looking for would be to use a network of friends for instance; I know John via Erinn, and Erinn introduced me to Alex etc etc - once I have plotted these relationships I would very quickly be able to see that in my network of friends, Erinn is the key connector and as such the Erinn name would be either 'bigger' or 'redder' or more bold depending on the number of links it has sprouting out of it.\n\nAnother implementation of this would be to plot the elements in the periodic table against the most commonly used chemicals - this would visually display the most useful or most commonly used elements.\n\nDoes anybody know of anything out there before I go out and reinvent the wheel?","preferred_answer":"Try the statnet package here: http://erzuli.ss.uci.edu/R.stuff/\n\nThis is really a quite simple question. If you have the dataset, just count the # of connections each member has. If you want to visualize it, try the R package I mentioned, or any of these: \nhttp://en.wikipedia.org/wiki/Social_network_analysis_software\n\nEDIT: if you know Matlab, then I'm sure it has many many similar packages.","full_conversation":[{"role":"OP","user_id":"anon_2c829491681d05ed","comment_id":"a11x0","kind":"post","text":"Dear Proggit: Does this software exist?\n\nI was wondering if you could help me out on a personal project. I'm not sure if this software actually exists or if I'm going to have to write this myself; I am looking for a piece of software that visually plot the relationships of one entity in a network against another. An example of what I'm looking for would be to use a network of friends for instance; I know John via Erinn, and Erinn introduced me to Alex etc etc - once I have plotted these relationships I would very quickly be able to see that in my network of friends, Erinn is the key connector and as such the Erinn name would be either 'bigger' or 'redder' or more bold depending on the number of links it has sprouting out of it.\n\nAnother implementation of this would be to plot the elements in the periodic table against the most commonly used chemicals - this would visually display the most useful or most commonly used elements.\n\nDoes anybody know of anything out there before I go out and reinvent the wheel?","timestamp":"2009-11-04T23:43:35+00:00","score":3},{"role":"answerer","user_id":"anon_2a577191de7b397d","comment_id":"c0fcqy3","kind":"comment","text":"Try the statnet package here: http://erzuli.ss.uci.edu/R.stuff/\n\nThis is really a quite simple question. If you have the dataset, just count the # of connections each member has. If you want to visualize it, try the R package I mentioned, or any of these: \nhttp://en.wikipedia.org/wiki/Social_network_analysis_software\n\nEDIT: if you know Matlab, then I'm sure it has many many similar packages.","timestamp":"2009-11-05T00:20:23+00:00","score":2},{"role":"OP","user_id":"anon_2c829491681d05ed","comment_id":"c0fcr8r","kind":"comment","text":"Thanks for the links. Ideally I would like to visually represent the # of connections each member had - and as such that member would be more prominent.","timestamp":"2009-11-05T00:26:45+00:00","score":1},{"role":"answerer","user_id":"anon_2a577191de7b397d","comment_id":"c0fcrba","kind":"comment","text":"Right, so any graph graphing package is going to let you do that.","timestamp":"2009-11-05T00:28:18+00:00","score":2},{"role":"OP","user_id":"anon_2c829491681d05ed","comment_id":"c0fcrsy","kind":"comment","text":"Just checked out Statnet - thats seriously way more hardcore than I envisaged! But thanks for the links - I think JIT might be the way forward for me.","timestamp":"2009-11-05T00:38:22+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2c829491681d05ed","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2a577191de7b397d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0fcqy3","thanks_reply_id":"c0fcr8r","post_score":3,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_cf5142061068d3fb","answerer_user_id":"anon_f94121218658d15f","subreddit":"programming","timestamp":"2009-11-05T02:13:11+00:00","post_id":"a133q","question":"What is a good, overall measure of benchmark time scores?\n\nI'm writing a little benchmark program that measures execution times of a few things in matlab and octave (e.g. matrix manipulations, image processing operations, plot generation, equation solving etc). At the end, apart from the times for each test, I would like to have one measure, calculated based on the individual time scores ,that shows the overall performance of the matlab/octave. \n\nThe mean value of individual time scores is the most obvious, but I think it is not very good. Maybe Root mean square (RMS) would be better, or maybe there are other measures more appropriate. \n\nThanks","preferred_answer":"> one measure\n\n\"For every complex problem there is an answer that is clear, simple, and wrong.\" :-)\n\nCheck out the [Boxplot Summary](http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=all&box=1#about) and check out the pdf article.\n\nCheck out the [Ranking](http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=all&d=data#about) and check out the pdf article.","full_conversation":[{"role":"OP","user_id":"anon_cf5142061068d3fb","comment_id":"a133q","kind":"post","text":"What is a good, overall measure of benchmark time scores?\n\nI'm writing a little benchmark program that measures execution times of a few things in matlab and octave (e.g. matrix manipulations, image processing operations, plot generation, equation solving etc). At the end, apart from the times for each test, I would like to have one measure, calculated based on the individual time scores ,that shows the overall performance of the matlab/octave. \n\nThe mean value of individual time scores is the most obvious, but I think it is not very good. Maybe Root mean square (RMS) would be better, or maybe there are other measures more appropriate. \n\nThanks","timestamp":"2009-11-05T02:13:11+00:00","score":0},{"role":"answerer","user_id":"anon_f94121218658d15f","comment_id":"c0fcyok","kind":"comment","text":"> one measure\n\n\"For every complex problem there is an answer that is clear, simple, and wrong.\" :-)\n\nCheck out the [Boxplot Summary](http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=all&box=1#about) and check out the pdf article.\n\nCheck out the [Ranking](http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=all&d=data#about) and check out the pdf article.","timestamp":"2009-11-05T03:01:54+00:00","score":1},{"role":"OP","user_id":"anon_cf5142061068d3fb","comment_id":"c0fczga","kind":"comment","text":"Thanks. \"How not to lie with statistics: the correct way to summarize benchmark results\" is interesting.","timestamp":"2009-11-05T03:17:38+00:00","score":1},{"role":"answerer","user_id":"anon_f94121218658d15f","comment_id":"c0fd1py","kind":"comment","text":"More interesting to use more than one number in your descriptive statistics! ;-)","timestamp":"2009-11-05T03:59:59+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cf5142061068d3fb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f94121218658d15f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0fcyok","thanks_reply_id":"c0fczga","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_6eb14bf04f02fde8","answerer_user_id":"anon_651c37c968913e9d","subreddit":"programming","timestamp":"2009-11-05T23:30:49+00:00","post_id":"a1fhi","question":"help! running a psychology study and am having java problems (repost from askreddit)\n\nedit: Phire fixed it. Thanks everyone.\n\n\nI posted this story in /r/askreddit initially, though it seems now that it may be better suited for /r/programming. Essentially, I'm running a psychology study that involves a Yahoo maze Java game, but the maze is obsolete or otherwise missing. Are there any programmers out there who would be able to reproduce this for me? I know it's a lot to ask but I'm desperate here; I can't find another one like it on the web.\n\nlink to original post explaining more what I'm doing:\n\nhttp://www.reddit.com/r/AskReddit/comments/a121o/help_running_a_psychology_study_and_am_having/\n\nDescription of what I need, taken from my post in the old topic:\n\n\"It needs to be a simple maze generator with a \"path verify\" button that players can use to check if they are going in the right direction. (The player navigates the maze with the arrow keys.) It should be moderately difficult, enough so as to drive some people to use the \"path verify\" cheat button. (Though it shouldn't say explicitly that the button is a cheat.) After the player completes one maze (by cheating or otherwise) it should randomly generate another maze. There are some screenshots of the Yahoo maze still up and a brief description of it here:\n\nhttp://uk.games.yahoo.com/online-games/puzzle/games_maze.html\n\nI don't think I want to have an \"auto solve\" button, though. Also, if there's a way to count how many times/how long the person used the \"path verify\" button that would be great. Maybe the count could be hidden until I come after the experiment and hit a certain button combination?\"\n\n\nI would really appreciate it if someone could help me here. I'm in dire need!","preferred_answer":"Well, I found the original jar file. But I can't work out how to launch it.\n\nhttp://games.yahoo.com/litsoft/general/mz.jar\n\nThe mime types are incorrect, you will need so save page as to download it.","full_conversation":[{"role":"OP","user_id":"anon_6eb14bf04f02fde8","comment_id":"a1fhi","kind":"post","text":"help! running a psychology study and am having java problems (repost from askreddit)\n\nedit: Phire fixed it. Thanks everyone.\n\n\nI posted this story in /r/askreddit initially, though it seems now that it may be better suited for /r/programming. Essentially, I'm running a psychology study that involves a Yahoo maze Java game, but the maze is obsolete or otherwise missing. Are there any programmers out there who would be able to reproduce this for me? I know it's a lot to ask but I'm desperate here; I can't find another one like it on the web.\n\nlink to original post explaining more what I'm doing:\n\nhttp://www.reddit.com/r/AskReddit/comments/a121o/help_running_a_psychology_study_and_am_having/\n\nDescription of what I need, taken from my post in the old topic:\n\n\"It needs to be a simple maze generator with a \"path verify\" button that players can use to check if they are going in the right direction. (The player navigates the maze with the arrow keys.) It should be moderately difficult, enough so as to drive some people to use the \"path verify\" cheat button. (Though it shouldn't say explicitly that the button is a cheat.) After the player completes one maze (by cheating or otherwise) it should randomly generate another maze. There are some screenshots of the Yahoo maze still up and a brief description of it here:\n\nhttp://uk.games.yahoo.com/online-games/puzzle/games_maze.html\n\nI don't think I want to have an \"auto solve\" button, though. Also, if there's a way to count how many times/how long the person used the \"path verify\" button that would be great. Maybe the count could be hidden until I come after the experiment and hit a certain button combination?\"\n\n\nI would really appreciate it if someone could help me here. I'm in dire need!","timestamp":"2009-11-05T23:30:49+00:00","score":3},{"role":"answerer","user_id":"anon_651c37c968913e9d","comment_id":"c0felv9","kind":"comment","text":"Well, I found the original jar file. But I can't work out how to launch it.\n\nhttp://games.yahoo.com/litsoft/general/mz.jar\n\nThe mime types are incorrect, you will need so save page as to download it.","timestamp":"2009-11-06T00:48:45+00:00","score":3},{"role":"OP","user_id":"anon_6eb14bf04f02fde8","comment_id":"c0fem7r","kind":"comment","text":"Thanks phire. Does anyone know how I would open a .jar file? It's a type of compression, isn't it?","timestamp":"2009-11-06T00:56:14+00:00","score":1},{"role":"answerer","user_id":"anon_651c37c968913e9d","comment_id":"c0fempe","kind":"comment","text":"Just rename it to .zip and it will open. However, thats not very useful.\n\nI created a file called maze.html in the same folder, put this inside it:\n\n \n \n \n \n\nAnd then opened that in my browser. It runs, but it brings up a message saying: \"Game not available on this page. Please report the problem to the webmaster.\" \nI'm guessing the developer added some anti-hotlinking protection, so it will only run on the original page.","timestamp":"2009-11-06T01:05:28+00:00","score":18}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6eb14bf04f02fde8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_651c37c968913e9d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0felv9","thanks_reply_id":"c0fem7r","post_score":3,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_44acfbc4dc899e6b","answerer_user_id":"anon_9c12fcfd87d642e1","subreddit":"programming","timestamp":"2009-11-06T18:37:39+00:00","post_id":"a1pye","question":"Proggit: I want to build a project, but am overwhelmed by the plethora of decisions I need to make up front\n\nI learned to program with PHP: gross. I ditched this quick, and have been working mostly in Python for the last 6 months. I want to build a project on a sturdy foundation, but am stuck in a state of ambivalence on what to use. If I were to use Python:\n\n- What OS/Distro do a I use? FreeBSD? Linux/CentOS? Linux/Debian?\n- What Filesystem should I use? Should I look into something like HadoopFS? ZFS?\n- What web server do I use? Or do I use more than one?\n- What Framework do I use?\n- Do I use SQL or a Hash Table? If SQL, do I use an ORM? Which one? I've always worked with MySQL as a default, is this the right choice?\n- I hear setuptools is the devil? How should modules be managed?\n- Threading? GIL?\n- What do I use for source control management?\n- What do I use for documentation?\n- What do I use for unit testing?\n- What do I use for monitoring?\n- Security?\n- Should I run this on the JVM? If so, should I get thoroughly intimate with it, as well as Jython? Or should I even be using Python in the first place?\n- JavaScript frameworks? Dear god\n- Should I host on something like Amazon Elastic servers?\n\nSeriously, these are only the things I can think of off the top of my head. I've been so confounded for the past year I haven't actually built anything. I've just been jumping from one technology to another technology, without actually getting intimate with any.\n\nShould I stick with Python? I understand it's a solid language, but is it a good language to use for a project that I may be maintaining 10 years from now? Does it have the capability to utilize the slew of new hardware features? Or should I start looking at something like Scala?\n\n *** Edit\n\nThe project I want to start is to become my full time business. It will be the crux of what I hope will become a decent sized corporation. \n\nA question that frames my thinking is:\n\nIf you were to rewrite Facebook from scratch, what technologies would you choose?","preferred_answer":"Most advice here is good but I will add one that no one said before. You are starting your project, and you seem to be inexperienced and to be working alone. You will fail. Do not let this make you give up your project.\n\nYour first version will be a spaghetti code filled with band-aid corrections and anti-patterns. Do not worry. Just hack away until it is impossible to keep going and then just restart it from scratch. Your first version will be your proof-of-concept. You will make it so you will know you can make it.\n\nWhen you are done with it, you will probably know enough about the project to know the answers to all your questions and then some. Restart it from scratch, do it right, come back and tell us the results. We are looking forward to it.","full_conversation":[{"role":"OP","user_id":"anon_44acfbc4dc899e6b","comment_id":"a1pye","kind":"post","text":"Proggit: I want to build a project, but am overwhelmed by the plethora of decisions I need to make up front\n\nI learned to program with PHP: gross. I ditched this quick, and have been working mostly in Python for the last 6 months. I want to build a project on a sturdy foundation, but am stuck in a state of ambivalence on what to use. If I were to use Python:\n\n- What OS/Distro do a I use? FreeBSD? Linux/CentOS? Linux/Debian?\n- What Filesystem should I use? Should I look into something like HadoopFS? ZFS?\n- What web server do I use? Or do I use more than one?\n- What Framework do I use?\n- Do I use SQL or a Hash Table? If SQL, do I use an ORM? Which one? I've always worked with MySQL as a default, is this the right choice?\n- I hear setuptools is the devil? How should modules be managed?\n- Threading? GIL?\n- What do I use for source control management?\n- What do I use for documentation?\n- What do I use for unit testing?\n- What do I use for monitoring?\n- Security?\n- Should I run this on the JVM? If so, should I get thoroughly intimate with it, as well as Jython? Or should I even be using Python in the first place?\n- JavaScript frameworks? Dear god\n- Should I host on something like Amazon Elastic servers?\n\nSeriously, these are only the things I can think of off the top of my head. I've been so confounded for the past year I haven't actually built anything. I've just been jumping from one technology to another technology, without actually getting intimate with any.\n\nShould I stick with Python? I understand it's a solid language, but is it a good language to use for a project that I may be maintaining 10 years from now? Does it have the capability to utilize the slew of new hardware features? Or should I start looking at something like Scala?\n\n *** Edit\n\nThe project I want to start is to become my full time business. It will be the crux of what I hope will become a decent sized corporation. \n\nA question that frames my thinking is:\n\nIf you were to rewrite Facebook from scratch, what technologies would you choose?","timestamp":"2009-11-06T18:37:39+00:00","score":0},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0ffpme","kind":"comment","text":"Most advice here is good but I will add one that no one said before. You are starting your project, and you seem to be inexperienced and to be working alone. You will fail. Do not let this make you give up your project.\n\nYour first version will be a spaghetti code filled with band-aid corrections and anti-patterns. Do not worry. Just hack away until it is impossible to keep going and then just restart it from scratch. Your first version will be your proof-of-concept. You will make it so you will know you can make it.\n\nWhen you are done with it, you will probably know enough about the project to know the answers to all your questions and then some. Restart it from scratch, do it right, come back and tell us the results. We are looking forward to it.","timestamp":"2009-11-06T19:10:32+00:00","score":1},{"role":"OP","user_id":"anon_44acfbc4dc899e6b","comment_id":"c0ffqdq","kind":"comment","text":"I appreciate the sentiment. I've actually already taken a run at this project once before. It was a total disaster. Not only was vision unclear, my programming abilities were poor. I've spent the last year and a half solidifying (relatively) my technical capacity. Now I want to take the next (first) step.","timestamp":"2009-11-06T19:24:34+00:00","score":1},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0ffr2r","kind":"comment","text":"> If you were to rewrite Facebook from scratch, what technologies would you choose?\n\nLearn from the past and do not try to reinvent the wheel. What did they use?","timestamp":"2009-11-06T19:35:37+00:00","score":1},{"role":"OP","user_id":"anon_44acfbc4dc899e6b","comment_id":"c0ffrs8","kind":"comment","text":"I watched a video about one of their head engineers lamenting about PHP. I'm not trying to rewrite Facebook, I'm just using it as example of a project that wasn't forward thinking enough and got locked in with technologies that leave much to be desired. If I had to work on a PHP project of that size I would shoot myself.","timestamp":"2009-11-06T19:47:19+00:00","score":1},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0ffs23","kind":"comment","text":"Let me rephrase myself, then. Find something similar to what you want to do that was done in the past. Find ALL similar projects you can think of and learn about what they did. Find out what the ones that failed did, and what the ones that succeeded did.","timestamp":"2009-11-06T19:51:38+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_44acfbc4dc899e6b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9c12fcfd87d642e1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ffpme","thanks_reply_id":"c0ffqdq","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_a0b6cfebe84af3de","answerer_user_id":"anon_28a28c450df5cfd3","subreddit":"programming","timestamp":"2009-11-09T19:03:14+00:00","post_id":"a2kp2","question":"Advice: C, C++, or C# for someone learning from scratch? Where to start?\n\nI am a network administrator type, and I am really looking into moving into some programming for side projects. I have narrowed my candidates to the three derivatives of C, but I would like your advice on which would best suite someone starting from scratch. I am decent with HTML, PHP, and SQL. I understand basic programming concepts such as variables, functions, OOP, etc. I have done minor work in VB.net and it was.. well.. VB.\n\nI would also note that I would like to create win32 apps with UIs, not just console/command line based applications.\n\nThoughts on what to go with and where to start, oh great minds of reddit?\n\nThanks!","preferred_answer":"For just learning the basics of programming, I would recommend starting with C console applications because it forces you to look behind the scenes as to how a computer actually works. It isn't easy, but once you can code well in C, you can code well in most other languages.\n\nHowever, if you *really* want to do GUI apps, C++ and/or C# are the best choice, but I would go with the the former.","full_conversation":[{"role":"OP","user_id":"anon_a0b6cfebe84af3de","comment_id":"a2kp2","kind":"post","text":"Advice: C, C++, or C# for someone learning from scratch? Where to start?\n\nI am a network administrator type, and I am really looking into moving into some programming for side projects. I have narrowed my candidates to the three derivatives of C, but I would like your advice on which would best suite someone starting from scratch. I am decent with HTML, PHP, and SQL. I understand basic programming concepts such as variables, functions, OOP, etc. I have done minor work in VB.net and it was.. well.. VB.\n\nI would also note that I would like to create win32 apps with UIs, not just console/command line based applications.\n\nThoughts on what to go with and where to start, oh great minds of reddit?\n\nThanks!","timestamp":"2009-11-09T19:03:14+00:00","score":0},{"role":"answerer","user_id":"anon_28a28c450df5cfd3","comment_id":"c0fk1yh","kind":"comment","text":"For just learning the basics of programming, I would recommend starting with C console applications because it forces you to look behind the scenes as to how a computer actually works. It isn't easy, but once you can code well in C, you can code well in most other languages.\n\nHowever, if you *really* want to do GUI apps, C++ and/or C# are the best choice, but I would go with the the former.","timestamp":"2009-11-09T20:37:53+00:00","score":1},{"role":"OP","user_id":"anon_a0b6cfebe84af3de","comment_id":"c0fk3x6","kind":"comment","text":"Thanks for the info as well. It seems you and petelyons are in-line with the fact I should work on C before moving on to either C++ or C#.\n\nDo you happen to have any good starter resources for C? Thanks again.","timestamp":"2009-11-09T21:08:44+00:00","score":1},{"role":"answerer","user_id":"anon_28a28c450df5cfd3","comment_id":"c0fk668","kind":"comment","text":"Actually, the [wikibooks](http://en.wikibooks.org/wiki/C_Programming) on C is pretty helpful when you know the basics of most programming languages. It is a good reference for the discrepancies between C and other languages.","timestamp":"2009-11-09T21:43:47+00:00","score":2},{"role":"OP","user_id":"anon_a0b6cfebe84af3de","comment_id":"c0fkrnq","kind":"comment","text":"I have no idea why I was unaware of such a site existing. Thank you good sir.","timestamp":"2009-11-10T04:30:58+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a0b6cfebe84af3de","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_28a28c450df5cfd3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0fk1yh","thanks_reply_id":"c0fk3x6","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_57b2e0863017d3a8","answerer_user_id":"anon_58344bb025bffbe2","subreddit":"programming","timestamp":"2009-11-11T05:11:10+00:00","post_id":"a34dr","question":"Dear Proggit: Nerd rage + new career path?\n\nAllow me to get this off my chest.\n\nI have a huge amount of nerd rage at my current job. The code base is a design-patterned-out-\"N-tier enterprise\"-spaghetti-cluster. The 3rd world slaves with no coding experience who have replaced the original development team to cut costs have no clue what they are doing. Progress has come to a complete standstill, and management have run out of artificial things to claim as progress. The pressure to perform miracles is absurd. While I am not a developer by title, I made the mistake of patching up some things outside of the core system, and now this is expected. I am now also being thrown in front of an obnoxious client so that my bosses can work from home for weeks at a time. In other words, the situation is *really* bad, I have become *really* cynical, and need to get out ASAP.\n\nGetting a new job is the biggest pain in the ass for me. No, I don't have a network (FUCK people, I have mild Aspergers and have a hard time connecting). No, I don't have 10 years .NET experience. No, I don't have pre-packaged answers to your stupid questions about my \"biggest challenges\" or \"greatest weakness\" (I have never *been* challenged, only assaulted with tedium). No, I don't want to work in your shitty corporate environment on your busted ass Windows machine reporting to your technology brain dead management.\n\nI am an incredibly talented programmer who has never been able to get a development job (I am currently an \"analyst\", which seems to be the dumping ground for people who thought they were cut out to be developers). The idea of finding a great job, or finding a not so great job (at a great company) and working my way up, is fading fast.\n\nI have never worked with anyone who impressed me. I surpassed the skill of my industry veteran coworkers within two months with no previous experience. I enjoy spending my *entire* weekend hacking on some code or learning complicated shit at all levels of abstraction. It's what I do. I love it. I will never stop, irrespective of whether someone is going to pay me to do it. If I won the lottery, I wouldn't find anything better to do with my time (after figuring out how to redistribute the money to good causes when I die).\n\nI am seriously considering looking for a mindless job like part time warehouse loading so that I can come home with a fresh mind to work on something meaningful to me. I have practically given up on pursuing a career in this field as my experience thus far has been terrible and my intuition is telling me that decent jobs are exceedingly rare. I would prefer low stress/salary to high stress/salary. What are your thoughts? \n\nedit +7hrs: thanks for the replies, just got up and need to head off to work in a moment.\n\nedit +19hrs: just got back from my wonderful job, wow that's a lot of responses.\n\nedit +20hrs: Thanks again. There are a plethora of good replies from different angles. I probably should have clarified a little better that I am really frustrated at the moment, but I don't think the world is out to get me. I am leaning towards quitting within the next week or so and picking up a mindless job while I figure out what I want to do long-term.","preferred_answer":"I have a low stress job in programming and it's the most amazing thing ever. I also work from home. \n\nThey're definitely out there. Suck it up and work on being a good interviewee. Yeah you have aspergers, just go in with confidence and try to sell yourself. Instead of being stubborn as most programmers are, admit you have a weakness and try to have someone help you with this because it's a valuable skill.\n\nAlso, don't feel the need to commit to a job for anyone's sake. I got a job that I hated once and just didn't show up on the 4th day. If you don't like what you're doing just stop asap. The worst that will happen probably isn't that bad.","full_conversation":[{"role":"OP","user_id":"anon_57b2e0863017d3a8","comment_id":"a34dr","kind":"post","text":"Dear Proggit: Nerd rage + new career path?\n\nAllow me to get this off my chest.\n\nI have a huge amount of nerd rage at my current job. The code base is a design-patterned-out-\"N-tier enterprise\"-spaghetti-cluster. The 3rd world slaves with no coding experience who have replaced the original development team to cut costs have no clue what they are doing. Progress has come to a complete standstill, and management have run out of artificial things to claim as progress. The pressure to perform miracles is absurd. While I am not a developer by title, I made the mistake of patching up some things outside of the core system, and now this is expected. I am now also being thrown in front of an obnoxious client so that my bosses can work from home for weeks at a time. In other words, the situation is *really* bad, I have become *really* cynical, and need to get out ASAP.\n\nGetting a new job is the biggest pain in the ass for me. No, I don't have a network (FUCK people, I have mild Aspergers and have a hard time connecting). No, I don't have 10 years .NET experience. No, I don't have pre-packaged answers to your stupid questions about my \"biggest challenges\" or \"greatest weakness\" (I have never *been* challenged, only assaulted with tedium). No, I don't want to work in your shitty corporate environment on your busted ass Windows machine reporting to your technology brain dead management.\n\nI am an incredibly talented programmer who has never been able to get a development job (I am currently an \"analyst\", which seems to be the dumping ground for people who thought they were cut out to be developers). The idea of finding a great job, or finding a not so great job (at a great company) and working my way up, is fading fast.\n\nI have never worked with anyone who impressed me. I surpassed the skill of my industry veteran coworkers within two months with no previous experience. I enjoy spending my *entire* weekend hacking on some code or learning complicated shit at all levels of abstraction. It's what I do. I love it. I will never stop, irrespective of whether someone is going to pay me to do it. If I won the lottery, I wouldn't find anything better to do with my time (after figuring out how to redistribute the money to good causes when I die).\n\nI am seriously considering looking for a mindless job like part time warehouse loading so that I can come home with a fresh mind to work on something meaningful to me. I have practically given up on pursuing a career in this field as my experience thus far has been terrible and my intuition is telling me that decent jobs are exceedingly rare. I would prefer low stress/salary to high stress/salary. What are your thoughts? \n\nedit +7hrs: thanks for the replies, just got up and need to head off to work in a moment.\n\nedit +19hrs: just got back from my wonderful job, wow that's a lot of responses.\n\nedit +20hrs: Thanks again. There are a plethora of good replies from different angles. I probably should have clarified a little better that I am really frustrated at the moment, but I don't think the world is out to get me. I am leaning towards quitting within the next week or so and picking up a mindless job while I figure out what I want to do long-term.","timestamp":"2009-11-11T05:11:10+00:00","score":12},{"role":"answerer","user_id":"anon_58344bb025bffbe2","comment_id":"c0fmm02","kind":"comment","text":"I have a low stress job in programming and it's the most amazing thing ever. I also work from home. \n\nThey're definitely out there. Suck it up and work on being a good interviewee. Yeah you have aspergers, just go in with confidence and try to sell yourself. Instead of being stubborn as most programmers are, admit you have a weakness and try to have someone help you with this because it's a valuable skill.\n\nAlso, don't feel the need to commit to a job for anyone's sake. I got a job that I hated once and just didn't show up on the 4th day. If you don't like what you're doing just stop asap. The worst that will happen probably isn't that bad.","timestamp":"2009-11-11T06:16:55+00:00","score":8},{"role":"OP","user_id":"anon_57b2e0863017d3a8","comment_id":"c0fo3nb","kind":"comment","text":"Thanks for the encouragement. I am at that edge where I am trying to figure out whether or not to put in my two week notice tomorrow and jump in to the unknown. It is scary, because finding a decent paying technology job is pretty hard for me, and I am not certain how I would adjust to a completely different type of job.","timestamp":"2009-11-12T01:16:47+00:00","score":1},{"role":"answerer","user_id":"anon_58344bb025bffbe2","comment_id":"c0folvy","kind":"comment","text":"If you live with your parents still and have at least 5,000$ I would definitely do it. \n\nI don't know what jobs are like in your area, but in mine employers are licking their chops to hire developers from 4 year schools with good social skills and motivation. \n\nAlso, many employers are glad to go home-grown these days. American employers will like this about you whether you know it or not. Some almost like it **too** much. You can really knock them out if they've been meeting with people who have indecipherable accents all day. It's just another asset to remember you have. Good luck.","timestamp":"2009-11-12T07:46:13+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_57b2e0863017d3a8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_58344bb025bffbe2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0fmm02","thanks_reply_id":"c0fo3nb","post_score":12,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_3a59e3813127e7e5","answerer_user_id":"anon_1d24b1047f16a635","subreddit":"programming","timestamp":"2009-11-13T19:09:06+00:00","post_id":"a44gi","question":"We are required to use DOJO at this job and it has \r\nbeen ruining all my designs. It has been inserting \r\ninline styles like '...top:0; right:auto;...'. The dev \r\nclaims that these are not editable values. Is there \r\nan alternative toolkit that is better for design, and/\r\nor is this dev lying to me?","preferred_answer":"The 'inline styles' being added are likely part of the BorderContainer widget. It uses position/top/left styles (by modifying node.style.left/etc) to accomplish the complex layouts supported. If you wish to recreate BorderContainers style in pure CSS, simply don't use the BorderContainer. Problem solved. (You will need to do something similar if you were to be using jQuery anyway, so the amount of work would be the same)\n\nAlso, Dojo is not the same as Dijit, which is likely what you are using. \"Dojo\" doesn't put any styles inline for any reason. (nor does Dijit really, if they are appearing in your inspection it must be something firebug is doing to indicate the styles are set via JavaScript?) \n\nThe \"not editable\" comment probably stems from JavaScript styles overriding CSS values. Though the BorderContainer only handles top/left/position styles for it's immediate children. Your styling should be just fine if done properly (eg: if something sets a node to position:absolute (js) the cascaded styles for children that are position:relative will be changed.) It is fairly simple to do with good CSS.","full_conversation":[{"role":"OP","user_id":"anon_3a59e3813127e7e5","comment_id":"a44gi","kind":"post","text":"We are required to use DOJO at this job and it has \r\nbeen ruining all my designs. It has been inserting \r\ninline styles like '...top:0; right:auto;...'. The dev \r\nclaims that these are not editable values. Is there \r\nan alternative toolkit that is better for design, and/\r\nor is this dev lying to me?","timestamp":"2009-11-13T19:09:06+00:00","score":1},{"role":"answerer","user_id":"anon_1d24b1047f16a635","comment_id":"c0frc6e","kind":"comment","text":"The 'inline styles' being added are likely part of the BorderContainer widget. It uses position/top/left styles (by modifying node.style.left/etc) to accomplish the complex layouts supported. If you wish to recreate BorderContainers style in pure CSS, simply don't use the BorderContainer. Problem solved. (You will need to do something similar if you were to be using jQuery anyway, so the amount of work would be the same)\n\nAlso, Dojo is not the same as Dijit, which is likely what you are using. \"Dojo\" doesn't put any styles inline for any reason. (nor does Dijit really, if they are appearing in your inspection it must be something firebug is doing to indicate the styles are set via JavaScript?) \n\nThe \"not editable\" comment probably stems from JavaScript styles overriding CSS values. Though the BorderContainer only handles top/left/position styles for it's immediate children. Your styling should be just fine if done properly (eg: if something sets a node to position:absolute (js) the cascaded styles for children that are position:relative will be changed.) It is fairly simple to do with good CSS.","timestamp":"2009-11-13T21:44:28+00:00","score":11},{"role":"OP","user_id":"anon_3a59e3813127e7e5","comment_id":"c0frdlt","kind":"comment","text":"thank you.","timestamp":"2009-11-13T22:11:03+00:00","score":2},{"role":"answerer","user_id":"anon_1d24b1047f16a635","comment_id":"c0frhwd","kind":"comment","text":"np. Also worth pointing out reddit isn't necessarily the best place to get good support for Dojo. Hugely friendly and active community on #dojo (freenode) or dojo-interest mailing list. Questions there get noticed, and typically not trolled.","timestamp":"2009-11-13T23:36:58+00:00","score":3},{"role":"OP","user_id":"anon_3a59e3813127e7e5","comment_id":"c0frlrz","kind":"comment","text":"wasn't really looking for support per se, more to find out if the dev was a liar.","timestamp":"2009-11-14T01:02:30+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3a59e3813127e7e5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1d24b1047f16a635","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0frc6e","thanks_reply_id":"c0frdlt","post_score":1,"answer_score":11,"preferred_answer_is_top_level":true}} {"user_id":"anon_a88cfd76ba9e54fd","answerer_user_id":"anon_8501526616911723","subreddit":"programming","timestamp":"2009-11-18T10:46:01+00:00","post_id":"a5lf7","question":"Ask Proggit: Has a masters degree in CS helped you in web development? How has it changed your career?\n\nI am considering to go for 2 year full time masters in CS and was wondering how it helps a person develop his skills. Are there any better courses that has CS subjects?","preferred_answer":"My undergrad is in Computer Information Systems and now I am pursuing a masters in Cognitive Engineering, I've had a few graduate classes in CS and have found them to be very theoretical.\n\nWhile it is fun to learn how machines learn and such knowledge can be useful for cutting edge applications, it not going to help you much with marketing your web design skills.\n\nI'd recommend you look into HCI, Human Factors, and Industrial Design. You probably know plenty about coding to make web pages but how much do you know about designing a usable interface?\n\nThe interface skills will make you stand out more in web design than coding will...","full_conversation":[{"role":"OP","user_id":"anon_a88cfd76ba9e54fd","comment_id":"a5lf7","kind":"post","text":"Ask Proggit: Has a masters degree in CS helped you in web development? How has it changed your career?\n\nI am considering to go for 2 year full time masters in CS and was wondering how it helps a person develop his skills. Are there any better courses that has CS subjects?","timestamp":"2009-11-18T10:46:01+00:00","score":0},{"role":"answerer","user_id":"anon_8501526616911723","comment_id":"c0fy983","kind":"comment","text":"My undergrad is in Computer Information Systems and now I am pursuing a masters in Cognitive Engineering, I've had a few graduate classes in CS and have found them to be very theoretical.\n\nWhile it is fun to learn how machines learn and such knowledge can be useful for cutting edge applications, it not going to help you much with marketing your web design skills.\n\nI'd recommend you look into HCI, Human Factors, and Industrial Design. You probably know plenty about coding to make web pages but how much do you know about designing a usable interface?\n\nThe interface skills will make you stand out more in web design than coding will...","timestamp":"2009-11-18T11:05:39+00:00","score":2},{"role":"OP","user_id":"anon_a88cfd76ba9e54fd","comment_id":"c0fy9iy","kind":"comment","text":"Thanks for your input! While usability and design is an integral part, I am more interested in the backend. Working on problems such as distributed computing, scaling, etc. While web development has its moments, I feel beyond a point it become just CRUD development.\n\nThe main reasoning behind me considering MS is that it can reboot my career and I could work on more interesting problems on a larger setup. \n\nThe point of view that is holding me back is all that is taught in best of colleges such as MIT is now online. One can learn from the same teachers at ones own pace.","timestamp":"2009-11-18T11:24:30+00:00","score":0},{"role":"answerer","user_id":"anon_8501526616911723","comment_id":"c0fypie","kind":"comment","text":"the online experience is no where near as enjoyable and effective as a graduate seminar - regardless good luck","timestamp":"2009-11-18T17:46:59+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a88cfd76ba9e54fd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8501526616911723","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0fy983","thanks_reply_id":"c0fy9iy","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_ff2985cc92fb0f10","answerer_user_id":"anon_9c12fcfd87d642e1","subreddit":"programming","timestamp":"2009-11-18T19:32:54+00:00","post_id":"a5rek","question":"Programming for dummies\n\nHey reddit. I'm bascially new to programming. I saw my computer teacher use it in class today and i'm very eager to learn it. Unfortunately, my teacher refuses to teach it to me. Any programmers can tell me what programming basically is and what do i do in order to get start?","preferred_answer":"Go to carlhprogramming subreddit. Do all lessons. Ask all doubts.","full_conversation":[{"role":"OP","user_id":"anon_ff2985cc92fb0f10","comment_id":"a5rek","kind":"post","text":"Programming for dummies\n\nHey reddit. I'm bascially new to programming. I saw my computer teacher use it in class today and i'm very eager to learn it. Unfortunately, my teacher refuses to teach it to me. Any programmers can tell me what programming basically is and what do i do in order to get start?","timestamp":"2009-11-18T19:32:54+00:00","score":0},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0fyx4y","kind":"comment","text":"Go to carlhprogramming subreddit. Do all lessons. Ask all doubts.","timestamp":"2009-11-18T19:37:55+00:00","score":2},{"role":"OP","user_id":"anon_ff2985cc92fb0f10","comment_id":"c0fyxbh","kind":"comment","text":"I see.\r\nThanks.","timestamp":"2009-11-18T19:40:55+00:00","score":-1},{"role":"answerer","user_id":"anon_9c12fcfd87d642e1","comment_id":"c0fyxmu","kind":"comment","text":"And I meant **ALL** doubts.","timestamp":"2009-11-18T19:45:31+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ff2985cc92fb0f10","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9c12fcfd87d642e1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0fyx4y","thanks_reply_id":"c0fyxbh","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_509eb835511b98b1","answerer_user_id":"anon_a58e58ae76a7d493","subreddit":"programming","timestamp":"2009-11-19T01:07:14+00:00","post_id":"a5usi","question":"Ask Proggit: Online Masters degrees (CS, IT, Management). Are they any good?\n\nI'm currently considering doing a Masters degree in CS or IT, but the local colleges that offer night classes in my area pretty much suck. I was wondering if any of you had any experience with online degrees. \n\nAre they any good (provided you dedicate them the appropriate time)?\n\nAny suggestions for good schools?\n\nWill a potential employer value a \"real\" (as in sitting in a classroom) degree more?\n\nI've looked on google, but all I seem to come up with are what look like referral sites, rather than any useful info.","preferred_answer":"I completed by MS in CS via distance ed back in 2008. No, I was not at a diploma mill, but a university. I went strictly for furthering my knowledge. \n\nWith that there are a lot of pros and cons in distance ed.\n\nThe biggest pro for me was having a flexible schedule. I work full time and travel a lot for work and play. I didn't have time to get down to a university and sit in a classroom.\n\nThe biggest con was asynchronous communication. Having to schedule a phone call during a prof's office hours or wait for an email response was painful especially when I would watch other students interact with the prof before and after each lecture. \n\nYou have to be HIGHLY self-motivated and disciplined to get your work completed and research on your own. Be prepared to struggle and concisely word your questions on web forms or emails. It's going to be tough. \n\nReputable distance education programs:\n\n* [Carnegie Mellon](http://www.cmu.edu/academics/distance-learning.shtml)\n* [DePaul University](http://www.cdm.depaul.edu/onlinelearning/Pages/OnlineLearning.aspx)\n* [Drexel University](http://www.drexel.com/)\n* [University of Maryland](http://www.umuc.edu/online_ed.shtml)\n* [Complete listing of online colleges](http://www.distance-education.org/Schools/)\n\nEdit: I want to add that the quality of the education (for me at least) was the EXACT same as physically sitting in the classroom. I had a multicast of the video/audio of the lecture, prof's computer screen, and white board. The downside is that you don't get to interact and ask questions, and you miss the group collaboration. If you are looking for this or don't do well working alone I would strongly discourage you from pursing an online degree. \n\nThat said, I did do some group projects. IM, video conferencing, version control, and email are your life lines.","full_conversation":[{"role":"OP","user_id":"anon_509eb835511b98b1","comment_id":"a5usi","kind":"post","text":"Ask Proggit: Online Masters degrees (CS, IT, Management). Are they any good?\n\nI'm currently considering doing a Masters degree in CS or IT, but the local colleges that offer night classes in my area pretty much suck. I was wondering if any of you had any experience with online degrees. \n\nAre they any good (provided you dedicate them the appropriate time)?\n\nAny suggestions for good schools?\n\nWill a potential employer value a \"real\" (as in sitting in a classroom) degree more?\n\nI've looked on google, but all I seem to come up with are what look like referral sites, rather than any useful info.","timestamp":"2009-11-19T01:07:14+00:00","score":7},{"role":"answerer","user_id":"anon_a58e58ae76a7d493","comment_id":"c0g0epl","kind":"comment","text":"I completed by MS in CS via distance ed back in 2008. No, I was not at a diploma mill, but a university. I went strictly for furthering my knowledge. \n\nWith that there are a lot of pros and cons in distance ed.\n\nThe biggest pro for me was having a flexible schedule. I work full time and travel a lot for work and play. I didn't have time to get down to a university and sit in a classroom.\n\nThe biggest con was asynchronous communication. Having to schedule a phone call during a prof's office hours or wait for an email response was painful especially when I would watch other students interact with the prof before and after each lecture. \n\nYou have to be HIGHLY self-motivated and disciplined to get your work completed and research on your own. Be prepared to struggle and concisely word your questions on web forms or emails. It's going to be tough. \n\nReputable distance education programs:\n\n* [Carnegie Mellon](http://www.cmu.edu/academics/distance-learning.shtml)\n* [DePaul University](http://www.cdm.depaul.edu/onlinelearning/Pages/OnlineLearning.aspx)\n* [Drexel University](http://www.drexel.com/)\n* [University of Maryland](http://www.umuc.edu/online_ed.shtml)\n* [Complete listing of online colleges](http://www.distance-education.org/Schools/)\n\nEdit: I want to add that the quality of the education (for me at least) was the EXACT same as physically sitting in the classroom. I had a multicast of the video/audio of the lecture, prof's computer screen, and white board. The downside is that you don't get to interact and ask questions, and you miss the group collaboration. If you are looking for this or don't do well working alone I would strongly discourage you from pursing an online degree. \n\nThat said, I did do some group projects. IM, video conferencing, version control, and email are your life lines.","timestamp":"2009-11-19T16:41:22+00:00","score":9},{"role":"OP","user_id":"anon_509eb835511b98b1","comment_id":"c0g1jzk","kind":"comment","text":"Hi,\n\nThanks for your answer! \n\nSome follow-up questions, if you dont mind: \n\nDo you feel the fact that it was online has put you at a disadvantage when looking for employment? \n\nDo employers, in your opinion, think less of an online degree? \n\nDo you tell them that it's online or do you simply have it on your resume as a normal masters?","timestamp":"2009-11-20T04:58:30+00:00","score":2},{"role":"answerer","user_id":"anon_a58e58ae76a7d493","comment_id":"c0g23wk","kind":"comment","text":"Online or not, it's the same educational requirements of those students that were physically located on-site at the university. As a result, I listed it as an MS in CS on my resume. Honestly, employers don't care whether or not its online - they DO care whether or not it came from a reputable institution. \n\nThere have been a few occasions when it's actually played to my advantage during job interviews. Specifically, when someone ask about project and time management. \n\nNot many folks can say they worked full-time and went to graduate school remotely while holding down a 3.5 gpa and progressing in their career (promotions). It says a lot about ones commitment, discipline, and dedication to setting goals and accomplishing them.\n\nGood luck with whatever decision you make.","timestamp":"2009-11-20T16:01:27+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_509eb835511b98b1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a58e58ae76a7d493","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0g0epl","thanks_reply_id":"c0g1jzk","post_score":7,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_ffca269a691d75ea","answerer_user_id":"anon_0d6f520a27945b8d","subreddit":"programming","timestamp":"2009-11-19T06:17:47+00:00","post_id":"a5xjl","question":"Dear Programmers: How do you even begin making your own Linux System?\n\nI've always been into programming. I am an undergraduate double major in physics and astronomy. My father owns a web programming company and I know plenty of languages. I work part-time programming in IDL, MATLAB, JAVA, and C for NASA. However, the majority of my work up to this point has been on windows or mac. I am just starting to get into Linux in my classes and I fucking LOVE it. I'm really interested in making my own Linux, but I feel like I'm not fluent enough with Linux to be able to create my own. Does anyone have a good book in which I can learn to make my own Linux? I am completely in the dark on this subject so any help is greatly appreciated. I feel like a dick not knowing Linux this point in my life. Thanks in advance.\n\ntl;dr - I need to learn how to write my own Linux system.","preferred_answer":"So are you asking how to write your own POSIX-compliant Operating system, or just how to put together your own Linux distribution?","full_conversation":[{"role":"OP","user_id":"anon_ffca269a691d75ea","comment_id":"a5xjl","kind":"post","text":"Dear Programmers: How do you even begin making your own Linux System?\n\nI've always been into programming. I am an undergraduate double major in physics and astronomy. My father owns a web programming company and I know plenty of languages. I work part-time programming in IDL, MATLAB, JAVA, and C for NASA. However, the majority of my work up to this point has been on windows or mac. I am just starting to get into Linux in my classes and I fucking LOVE it. I'm really interested in making my own Linux, but I feel like I'm not fluent enough with Linux to be able to create my own. Does anyone have a good book in which I can learn to make my own Linux? I am completely in the dark on this subject so any help is greatly appreciated. I feel like a dick not knowing Linux this point in my life. Thanks in advance.\n\ntl;dr - I need to learn how to write my own Linux system.","timestamp":"2009-11-19T06:17:47+00:00","score":0},{"role":"answerer","user_id":"anon_0d6f520a27945b8d","comment_id":"c0fzv5u","kind":"comment","text":"So are you asking how to write your own POSIX-compliant Operating system, or just how to put together your own Linux distribution?","timestamp":"2009-11-19T06:22:17+00:00","score":2},{"role":"OP","user_id":"anon_ffca269a691d75ea","comment_id":"c0fzvhj","kind":"comment","text":"I would say put together my own Linux distribution system. Thanks for the reply.","timestamp":"2009-11-19T06:33:06+00:00","score":1},{"role":"answerer","user_id":"anon_0d6f520a27945b8d","comment_id":"c0fzvq2","kind":"comment","text":"http://www.linuxfromscratch.org/\n\nor maybe some of these results may be of assistance: http://www.google.com.au/search?q=build+your+own+linux+distribution","timestamp":"2009-11-19T06:40:29+00:00","score":2},{"role":"OP","user_id":"anon_ffca269a691d75ea","comment_id":"c0fzvxt","kind":"comment","text":"Maybe I'm just being ignorant, but I feel like most of the \"build you own linux\" sites are tailored for really experienced Linux users. After working with it for a year I know my way fairly well around Linux, but I don't have Linux on my computer so it is hard to gauge how much I *really* understand.","timestamp":"2009-11-19T06:47:21+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ffca269a691d75ea","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0d6f520a27945b8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0fzv5u","thanks_reply_id":"c0fzvhj","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0ec7379c800689c2","answerer_user_id":"anon_98222e27afcb151d","subreddit":"programming","timestamp":"2009-11-21T19:47:46+00:00","post_id":"a6t9b","question":"New to Prolog\n\nI'm trying to evaluate a few problems using Prolog, and I've impressed myself with how far I've gotten in a day (^_^), but I am having trouble deleting an element from a list. I have googled the problem and found a lot of broken code which has given me some ideas, but no solutions.\n\nDoes anyone know how to delete an element from a list, preferably without going into an endless loop?","preferred_answer":"remove(A,[],[]).\n\nremove(A,[A|B],B).\n\nremove(A,[C|B],[C|D]) :-\n remove( A, B, D ).\n\nIf you want to remove all instances of an element, replace second line with:\n\nremove(A,[A|B],D) :-\n remove( A, B, D ).\n\nIf you want to remove a numbered element, do (counting elements from zero):\n\nremove(N,[],[]).\n\nremove(0,[A|B],B).\n\nremove(N,[A|B],[A|D]) :-\n M is N-1,\n remove( M, B, D ).\n\nYou really should do your own homework.","full_conversation":[{"role":"OP","user_id":"anon_0ec7379c800689c2","comment_id":"a6t9b","kind":"post","text":"New to Prolog\n\nI'm trying to evaluate a few problems using Prolog, and I've impressed myself with how far I've gotten in a day (^_^), but I am having trouble deleting an element from a list. I have googled the problem and found a lot of broken code which has given me some ideas, but no solutions.\n\nDoes anyone know how to delete an element from a list, preferably without going into an endless loop?","timestamp":"2009-11-21T19:47:46+00:00","score":1},{"role":"answerer","user_id":"anon_98222e27afcb151d","comment_id":"c0g3wt8","kind":"comment","text":"remove(A,[],[]).\n\nremove(A,[A|B],B).\n\nremove(A,[C|B],[C|D]) :-\n remove( A, B, D ).\n\nIf you want to remove all instances of an element, replace second line with:\n\nremove(A,[A|B],D) :-\n remove( A, B, D ).\n\nIf you want to remove a numbered element, do (counting elements from zero):\n\nremove(N,[],[]).\n\nremove(0,[A|B],B).\n\nremove(N,[A|B],[A|D]) :-\n M is N-1,\n remove( M, B, D ).\n\nYou really should do your own homework.","timestamp":"2009-11-21T20:12:17+00:00","score":11},{"role":"OP","user_id":"anon_0ec7379c800689c2","comment_id":"c0g3wzb","kind":"comment","text":"Thanks. I appreciate the help, not really the criticism. I'm sure you needed a little help with something at least once in your lifetime.","timestamp":"2009-11-21T20:16:43+00:00","score":0},{"role":"answerer","user_id":"anon_98222e27afcb151d","comment_id":"c0g3xfo","kind":"comment","text":"yeah, we all need help from time to time, which is why I gave it to you. I also know that help should not be too easy, or too painless, since then people don't try for themselves.\n\nHonestly, it would have been better if you had asked your TA, since he could have walked you through the thought process and helped you understand the answer in a way that you would remember. Prolog is not like any other programming language that I have encountered, and while you can argue its usefulness, learning it is really about grokking it. Just getting the answer will not help you much.\n\nThere is a great saying that goes something like: \"I hear, I forget; I see, I understand; I do, I remember.\"","timestamp":"2009-11-21T20:29:16+00:00","score":9},{"role":"OP","user_id":"anon_0ec7379c800689c2","comment_id":"c0g3ysv","kind":"comment","text":"Well in that case I do appreciate it :) Thank you and I'm sorry. But I'm teaching myself the majority of this as my lecturer hasn't covered that much or even gone over most of the basics, and I've never done any programming like this language before.\n\nI'm getting there, and have a rule of never implementing anything I can't explain :)\n\nAlso, that quote is amazing. Thanks","timestamp":"2009-11-21T21:07:06+00:00","score":6}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0ec7379c800689c2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_98222e27afcb151d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0g3wt8","thanks_reply_id":"c0g3wzb","post_score":1,"answer_score":11,"preferred_answer_is_top_level":true}} {"user_id":"anon_94bc9654f732df52","answerer_user_id":"anon_ffce1e0d86a41671","subreddit":"programming","timestamp":"2009-11-22T05:39:08+00:00","post_id":"a6wri","question":"Can you help me out, Proggit?\n\nHey all!\n\nI'm here to ask a question, and I think that you fine people here in proggit could help me. Basically, I want to begin programming games, and I have no idea where to start. I have experience with Java, but I hate it. Extremely bad. I know it's a good language to learn OOP, etc., but I can't stand it. I was wanting to know what languages/books/websites you all can recommend and point me at. I was looking at XNA, it seemed good, but again I'd like to know you're opinion.\n\nThanks a bundle everyone, I hope that I get a response or two.","preferred_answer":"XNA is pretty good, I've personally never read any physical books on game design but I have messed around with a fair share of engines. Unless you're planning to write the engine from scratch, learn one of the popular ones. The language itself...will usually be something like C++. You'll also want to check out some open-source games and what they do. You'll need to know a **lot** of math and a good share of physics as well.","full_conversation":[{"role":"OP","user_id":"anon_94bc9654f732df52","comment_id":"a6wri","kind":"post","text":"Can you help me out, Proggit?\n\nHey all!\n\nI'm here to ask a question, and I think that you fine people here in proggit could help me. Basically, I want to begin programming games, and I have no idea where to start. I have experience with Java, but I hate it. Extremely bad. I know it's a good language to learn OOP, etc., but I can't stand it. I was wanting to know what languages/books/websites you all can recommend and point me at. I was looking at XNA, it seemed good, but again I'd like to know you're opinion.\n\nThanks a bundle everyone, I hope that I get a response or two.","timestamp":"2009-11-22T05:39:08+00:00","score":0},{"role":"answerer","user_id":"anon_ffce1e0d86a41671","comment_id":"c0g4kqf","kind":"comment","text":"XNA is pretty good, I've personally never read any physical books on game design but I have messed around with a fair share of engines. Unless you're planning to write the engine from scratch, learn one of the popular ones. The language itself...will usually be something like C++. You'll also want to check out some open-source games and what they do. You'll need to know a **lot** of math and a good share of physics as well.","timestamp":"2009-11-22T06:16:33+00:00","score":2},{"role":"OP","user_id":"anon_94bc9654f732df52","comment_id":"c0g4kwi","kind":"comment","text":"Awesome, thanks for the response. I want to build off of the source engine, Havok, or another big engine. However, when I'm creating my game, will I have to import it, and just build *from* it, or edit it as I go?","timestamp":"2009-11-22T06:21:35+00:00","score":1},{"role":"answerer","user_id":"anon_ffce1e0d86a41671","comment_id":"c0g4lz7","kind":"comment","text":"You can choose to do it the way you want. But most commercial engines will make you build from their work. Take my word, do NOT use Source if you're still new to coding.","timestamp":"2009-11-22T06:51:45+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_94bc9654f732df52","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ffce1e0d86a41671","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0g4kqf","thanks_reply_id":"c0g4kwi","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_1b099fc40ba6f0ab","answerer_user_id":"anon_f5e74715352bd971","subreddit":"programming","timestamp":"2009-11-26T11:51:20+00:00","post_id":"a8dg5","question":"Ask Reddit: Would you go back to a low level C/C++ role after years in .NET/C# and Java?","preferred_answer":"This would actually be forward for me! I'm working in .Net at the moment but I do hope to end up writing c/c++","full_conversation":[{"role":"OP","user_id":"anon_1b099fc40ba6f0ab","comment_id":"a8dg5","kind":"post","text":"Ask Reddit: Would you go back to a low level C/C++ role after years in .NET/C# and Java?","timestamp":"2009-11-26T11:51:20+00:00","score":72},{"role":"answerer","user_id":"anon_f5e74715352bd971","comment_id":"c0gbicx","kind":"comment","text":"This would actually be forward for me! I'm working in .Net at the moment but I do hope to end up writing c/c++","timestamp":"2009-11-26T12:49:13+00:00","score":2},{"role":"OP","user_id":"anon_1b099fc40ba6f0ab","comment_id":"c0gbiud","kind":"comment","text":"that's an interesting point of view - thanks for pitching in","timestamp":"2009-11-26T13:12:09+00:00","score":1},{"role":"answerer","user_id":"anon_f5e74715352bd971","comment_id":"c0gbj0n","kind":"comment","text":"Ever since I decided I wanted to start programming (some 10 years ago or so) I wanted to learn C++, but one day at school I got the opportunity to get a couple of Microsoft .Net certificates (MCTS) and I grabbed it, because then atleast I'd know more then a tiny bit of VB.Net (which was all we were being taught at school).","timestamp":"2009-11-26T13:20:05+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1b099fc40ba6f0ab","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f5e74715352bd971","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gbicx","thanks_reply_id":"c0gbiud","post_score":72,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_013bb4e1d842f3e2","answerer_user_id":"anon_f96b845c1a33e6a4","subreddit":"programming","timestamp":"2009-11-27T23:15:27+00:00","post_id":"a8tfu","question":"Amazon Phone Interview for Software Developer \r\nPosition just got confirmed...any advice?\n\nHey people! Just landed myself a telephonic interview with Amazon for a Software Developer position (Description Follows). \r\n\r\nThis phone interview will be technical in nature and asks me to be prepared to do some coding. \r\n\r\nSoftware Development Engineer Job Description:\r\n\r\nHave a direct impact on the evolution of Amazon eCommerce platform and lead mission critical projects early in your career! At Amazon you will design, code, and contribute to solving some of the most complex technical challenges in the areas of Platform, Applications, Operations, Retail, Transaction Systems, and Merchants!\r\nSoftware Development Engineer: \r\n•\tStrong, object-oriented design and coding skills (C/C++ and/or Java preferably on a UNIX or Linux platform) \r\n•\tKnowledge of Perl or other scripting languages a plus\r\n•\tExperience with distributed (multi-tiered) systems, algorithms, and relational databases\r\n•\tExperience in optimization mathematics (linear programming, nonlinear optimization)\r\n•\tAbility to effectively articulate technical challenges and solutions\r\n•\tDeal well with ambiguous/undefined problems; ability to think abstractly\r\n•\tComputer Science/Computer Engineering degree (or related technical discipline)\r\n•\tPrevious technical internship preferred\r\n•\tGraduate degree a plus\r\n\r\nI am seeking advice on what questions to expect if anyone here might have been through this process before? Any other advice will also be appreciated.\r\n\r\nThanks!","preferred_answer":"The job description is generic. They post the same description at my University for undergraduate interns (yes, even the \"graduate degree a plus\" part). There are a lot of very different teams within Amazon, so you will not necessary touch on to every point listed.\n\nYou were told to be prepared to do some coding for this technical interview, and I suggest you follow this advice. Be prepared to talk code, and talk about your code.\n\nAs for the exact questions to expect -- one is supposed to sign an NDA against just that. I'm not sure how that works for a phone interview though... maybe they'll ask to email in a scan with a signature...","full_conversation":[{"role":"OP","user_id":"anon_013bb4e1d842f3e2","comment_id":"a8tfu","kind":"post","text":"Amazon Phone Interview for Software Developer \r\nPosition just got confirmed...any advice?\n\nHey people! Just landed myself a telephonic interview with Amazon for a Software Developer position (Description Follows). \r\n\r\nThis phone interview will be technical in nature and asks me to be prepared to do some coding. \r\n\r\nSoftware Development Engineer Job Description:\r\n\r\nHave a direct impact on the evolution of Amazon eCommerce platform and lead mission critical projects early in your career! At Amazon you will design, code, and contribute to solving some of the most complex technical challenges in the areas of Platform, Applications, Operations, Retail, Transaction Systems, and Merchants!\r\nSoftware Development Engineer: \r\n•\tStrong, object-oriented design and coding skills (C/C++ and/or Java preferably on a UNIX or Linux platform) \r\n•\tKnowledge of Perl or other scripting languages a plus\r\n•\tExperience with distributed (multi-tiered) systems, algorithms, and relational databases\r\n•\tExperience in optimization mathematics (linear programming, nonlinear optimization)\r\n•\tAbility to effectively articulate technical challenges and solutions\r\n•\tDeal well with ambiguous/undefined problems; ability to think abstractly\r\n•\tComputer Science/Computer Engineering degree (or related technical discipline)\r\n•\tPrevious technical internship preferred\r\n•\tGraduate degree a plus\r\n\r\nI am seeking advice on what questions to expect if anyone here might have been through this process before? Any other advice will also be appreciated.\r\n\r\nThanks!","timestamp":"2009-11-27T23:15:27+00:00","score":0},{"role":"answerer","user_id":"anon_f96b845c1a33e6a4","comment_id":"c0gdjlu","kind":"comment","text":"The job description is generic. They post the same description at my University for undergraduate interns (yes, even the \"graduate degree a plus\" part). There are a lot of very different teams within Amazon, so you will not necessary touch on to every point listed.\n\nYou were told to be prepared to do some coding for this technical interview, and I suggest you follow this advice. Be prepared to talk code, and talk about your code.\n\nAs for the exact questions to expect -- one is supposed to sign an NDA against just that. I'm not sure how that works for a phone interview though... maybe they'll ask to email in a scan with a signature...","timestamp":"2009-11-27T23:56:45+00:00","score":2},{"role":"OP","user_id":"anon_013bb4e1d842f3e2","comment_id":"c0gdkfl","kind":"comment","text":"Thanks...still looking out for any advice though...","timestamp":"2009-11-28T00:17:24+00:00","score":1},{"role":"answerer","user_id":"anon_f96b845c1a33e6a4","comment_id":"c0gdldl","kind":"comment","text":"You might find this useful -- http://maxnoy.com/interviews.html","timestamp":"2009-11-28T00:40:53+00:00","score":2},{"role":"OP","user_id":"anon_013bb4e1d842f3e2","comment_id":"c0gdqng","kind":"comment","text":"Thanks!","timestamp":"2009-11-28T03:02:53+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_013bb4e1d842f3e2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f96b845c1a33e6a4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gdjlu","thanks_reply_id":"c0gdkfl","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6c820ee3ed398e63","answerer_user_id":"anon_a0cfd5f1225854b3","subreddit":"programming","timestamp":"2009-11-27T23:20:46+00:00","post_id":"a8tgu","question":"I am trying to learn html/css by making an archaic table using html and my html book, but it's so archaic I can't find help on how to do it and the book doesnt show me. Can someone from reddit give me a hint?\n\nI am trying to make a calendar using tables in html. Yeah ok it's kind of retarded but I thought it would be fun to learn the basics. Anyway, The book says to: create a table body row group containing the days in the month of February. The row group should contain five rows and seven columns of table data cells. There are no spanning cells in any of the rows of columns.\" \"Each tale data cell should have the following content: The day of the month marked as an h3 heading\"","preferred_answer":"I think the key phrase is \"each table data cell\". Inside each TD, they want you to mark up the day of the month as an H3. Something like:\n\n \n

22

\n \n \n\nMake sense?","full_conversation":[{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"a8tgu","kind":"post","text":"I am trying to learn html/css by making an archaic table using html and my html book, but it's so archaic I can't find help on how to do it and the book doesnt show me. Can someone from reddit give me a hint?\n\nI am trying to make a calendar using tables in html. Yeah ok it's kind of retarded but I thought it would be fun to learn the basics. Anyway, The book says to: create a table body row group containing the days in the month of February. The row group should contain five rows and seven columns of table data cells. There are no spanning cells in any of the rows of columns.\" \"Each tale data cell should have the following content: The day of the month marked as an h3 heading\"","timestamp":"2009-11-27T23:20:46+00:00","score":0},{"role":"answerer","user_id":"anon_a0cfd5f1225854b3","comment_id":"c0gdizb","kind":"comment","text":"I think the key phrase is \"each table data cell\". Inside each TD, they want you to mark up the day of the month as an H3. Something like:\n\n \n

22

\n \n \n\nMake sense?","timestamp":"2009-11-27T23:41:20+00:00","score":2},{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"c0gdj6g","kind":"comment","text":"Yeah thanks, the next step they want me to put event information for each day, as a definition list
and the time/price of each event with a
. Do I really have to apply

to each day of the month if I have a stylesheet though? Or can't I apply it to the parent tag or something? That is what is irking me the most.","timestamp":"2009-11-27T23:46:42+00:00","score":1},{"role":"answerer","user_id":"anon_a0cfd5f1225854b3","comment_id":"c0gdjrz","kind":"comment","text":"HTML is for semantics (for example, *this* is a heading and *this* is a link and *this* is a definition), while stylesheets are for presentation (for example, if you want to make all of your heading bold and pink and 500 pixels high). So yah, you'll have to add the H3 to every table cell.\n\nIt's kind of a lame way to mark up a calendar, as you'll probably end up with a lot of empty days. But that's the exercise, so we do what we do.\n\nCopy and paste is your friend. Or choose a short month like February.","timestamp":"2009-11-28T00:00:42+00:00","score":2},{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"c0gdkfr","kind":"comment","text":"Thank you!","timestamp":"2009-11-28T00:17:29+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6c820ee3ed398e63","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a0cfd5f1225854b3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gdizb","thanks_reply_id":"c0gdj6g","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6c820ee3ed398e63","answerer_user_id":"anon_61d623068810cad5","subreddit":"programming","timestamp":"2009-11-28T21:45:24+00:00","post_id":"a91jm","question":"How do I set the height of all the table rows within the table header row group to 5%, using CSS? This is what I have.\n\n\n \n Sun\n\nthen in css:\n\ntable.calendar thead\n{\nheight=\"5%\";\n}\n\nbut I'm setting the height of the table header row group, I want to set the height of the actual table rows. How do I reference those in css? Thanks!","preferred_answer":"table.calendar thead th { height: 5%; }","full_conversation":[{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"a91jm","kind":"post","text":"How do I set the height of all the table rows within the table header row group to 5%, using CSS? This is what I have.\n\n\n \n Sun\n\nthen in css:\n\ntable.calendar thead\n{\nheight=\"5%\";\n}\n\nbut I'm setting the height of the table header row group, I want to set the height of the actual table rows. How do I reference those in css? Thanks!","timestamp":"2009-11-28T21:45:24+00:00","score":0},{"role":"answerer","user_id":"anon_61d623068810cad5","comment_id":"c0gep3c","kind":"comment","text":"table.calendar thead th { height: 5%; }","timestamp":"2009-11-28T21:58:36+00:00","score":1},{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"c0geq1d","kind":"comment","text":"Thanks. My instructions say to \"Set the heigfht of the table row within the table header row group of the table to 5%. Set the height of the tabble rows within the tabble body row group to 19% each.\"\n\nI have\n\ntable.calendar thead th\n{\nheight=\"5%\";\n}\n\ntable.calendar tbody th\n{\nheight=\"50%\"\n}\n\nbut tbody doesn't have any th elements --\n\n \n

26

\n

27

\n\n\n-so shouldnt it be thead tr and tbody tr? For some reason it doesn't format it well at all when I do that though.","timestamp":"2009-11-28T22:21:54+00:00","score":0},{"role":"answerer","user_id":"anon_61d623068810cad5","comment_id":"c0gerqj","kind":"comment","text":"TH and TD are essentially the same element; they behave same way in all respects, except that TH is meant as the 'header' of a row or column of TD data cells. THEAD will typically contain only TH elements (but doesn't have to) while TBODY and TFOOT might contain both TH and TD elements.\n\nYou have to apply your style to both TD and TH elements separately:\n\ntable.calendar tbody th, table.calendar tbody td { height: 19%; }","timestamp":"2009-11-28T23:01:02+00:00","score":1},{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"c0gflpe","kind":"comment","text":"thanks!!!","timestamp":"2009-11-29T15:28:57+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6c820ee3ed398e63","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_61d623068810cad5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gep3c","thanks_reply_id":"c0geq1d","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_cce49169fa4c4e3b","answerer_user_id":"anon_c7cef9ef13fb7f1d","subreddit":"programming","timestamp":"2009-11-29T03:43:46+00:00","post_id":"a93lu","question":"Researching FPGAs, I came across this Arduino-like platform. Anyone used it?","preferred_answer":"What do you mean when you say Arduino-like? The schematics for many boards are free on the internet along with examples, so I'm not sure what you consider more Arduino-like about the board compared to, say, Xilinx's ML50x set of boards.\n\nXilinx produces a set of schematics for break-out-style boards, and many 3rd party boards are just implementations. Digilent's OpenSparc evaluation board, for example, is the same board as the other Xilinx ML50x boards (the ML50x boards differ by which FPGA they use). Xilinx also posts the bill of materials and PCB's gerber files if you want to create the board yourself. Here they are for the ML507\n\nhttp://www.xilinx.com/products/boards/ml507/docs.htm\n\nI'm using the ML50x boards as examples, but this is true for every Xilinx break-out-style board I've seen.\n\nThere was a topic on which FPGA boards were best for a home brew project a few months back that went over a lot of similar boards:\n\nhttp://www.reddit.com/r/programming/comments/a11gi/i_want_to_buy_an_fpga_dev_board_to_help_prototype/","full_conversation":[{"role":"OP","user_id":"anon_cce49169fa4c4e3b","comment_id":"a93lu","kind":"post","text":"Researching FPGAs, I came across this Arduino-like platform. Anyone used it?","timestamp":"2009-11-29T03:43:46+00:00","score":27},{"role":"answerer","user_id":"anon_c7cef9ef13fb7f1d","comment_id":"c0gfhsj","kind":"comment","text":"What do you mean when you say Arduino-like? The schematics for many boards are free on the internet along with examples, so I'm not sure what you consider more Arduino-like about the board compared to, say, Xilinx's ML50x set of boards.\n\nXilinx produces a set of schematics for break-out-style boards, and many 3rd party boards are just implementations. Digilent's OpenSparc evaluation board, for example, is the same board as the other Xilinx ML50x boards (the ML50x boards differ by which FPGA they use). Xilinx also posts the bill of materials and PCB's gerber files if you want to create the board yourself. Here they are for the ML507\n\nhttp://www.xilinx.com/products/boards/ml507/docs.htm\n\nI'm using the ML50x boards as examples, but this is true for every Xilinx break-out-style board I've seen.\n\nThere was a topic on which FPGA boards were best for a home brew project a few months back that went over a lot of similar boards:\n\nhttp://www.reddit.com/r/programming/comments/a11gi/i_want_to_buy_an_fpga_dev_board_to_help_prototype/","timestamp":"2009-11-29T12:20:13+00:00","score":5},{"role":"OP","user_id":"anon_cce49169fa4c4e3b","comment_id":"c0gfoj2","kind":"comment","text":"Thanks, there sure do seem to be a lot of options out there. It's a bit daunting when you don't know exactly what your requirements will be. (For example, with a lack of experience, I have no idea how many gates I'll need to do what I want.. I'm planning for a DSP application.) I'm thinking the best course is to just buy a really cheap solution to start, and see how far that gets me..","timestamp":"2009-11-29T17:01:53+00:00","score":1},{"role":"answerer","user_id":"anon_c7cef9ef13fb7f1d","comment_id":"c0gfy0b","kind":"comment","text":"Yes, it can be quite daunting, especially if you don't have an application in mind and just want a general board. The one I would recommend is the spartan 3 board from Digilent\n\nhttp://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,799&Prod=S3BOARD\n\nThe bottom of the web-page has a lot of cores for using the connectors on the board, and the board is used by a lot of people, so it is easy to search for a solution to any problem.\n\nI'd ask yourself, \"What do I want to do?\" If you want to learn, I'd suggest the S3Board and curriculum from a university course on digital design, like 6.111 from MIT's ocw. The FPGA labs are a great intro to digital design. If you want something specific, like a real-time audio analyzer or want to create a soft-core processor, then you can trim down based on the offerings based on your needs and choose the cheapest board.\n\nAlso, if you are affiliated with a university or school, you can usually get boards donated for free. Just something to consider.\n\nhttp://www.xilinx.com/univ/","timestamp":"2009-11-29T20:45:13+00:00","score":1},{"role":"OP","user_id":"anon_cce49169fa4c4e3b","comment_id":"c0gg8sm","kind":"comment","text":"Wow, thanks for all that info. I certainly didn't know about the donation program, I'll make sure to mention it at school, maybe that's the best way to get started.","timestamp":"2009-11-30T00:30:24+00:00","score":1},{"role":"answerer","user_id":"anon_c7cef9ef13fb7f1d","comment_id":"c0gge4r","kind":"comment","text":"Xilinx has been very generous with their donations. We (my research group) have received both discrete FPGAs and development boards for research and classes at the university I'm at.\n\nFor a simple DSP application, the spartan-3 would probably suffice. A more complex design would probably require a Virtex-4 or a Virtex-5. The ML506 is the current-generation, example board from Xilinx for DSP applications, as it uses a Virtex-5 with more DSP-specific slices than on their other example boards. You could implement the DSP portion of your design in the general section of any FPGA, rather than the specific portions of the Virtex-5 -- it depends on want you want to learn and do.\n\nI've heard that Altera has the same type of donation program, but haven't worked with the Altera hardware or software.\n\nYou might want to consider a micro-controller that targets DSP applications. AD has the BlackFin and SHARC processors, and TI has a few processors that I'm not familiar with. AD and TI have university donation programs, too, so you could probably get example boards from them.","timestamp":"2009-11-30T02:23:06+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_cce49169fa4c4e3b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c7cef9ef13fb7f1d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gfhsj","thanks_reply_id":"c0gfoj2","post_score":27,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_e294854d153a2fbf","answerer_user_id":"anon_114fd0a51a202f4c","subreddit":"programming","timestamp":"2009-11-30T23:48:38+00:00","post_id":"a9nql","question":"Is learning VBA for excel etc. worthwhile for data analysis?\n\nHey Reddit, I need some advice. I'm about to graduate and head to grad school to get a PhD in computational toxicology. I've always had a passing interest in programming, took a couple java classes etc. and as I will be doing a good bit of data analysis/data mining I was wondering if learning VBA would be worthwhile or if there are other languages that would give me more bang for my buck? \n\nSide Note: Most of my work will probably be done in excel.","preferred_answer":"I worked in VB variants for years, and made a living as an Access developer for quite a while.\n\nYou are far better off learning a real language with an upward progression. If you're doing real math, [possibly R](http://www.r-project.org/). If you know Java, there are good-looking reporting tools available (Birt?). Note, I'm not saying these are right--I haven't used them (data analysis is practically non-existent in what I do) but there are good options available that don't lock you into VB*.\n\nOne of the troubles is that learning VB* will only really help you learn VB variants. It doesn't really translate to other languages--it's a dead end. If you learn something like Python, OTOH, you have something you can extend and use on any platform in much larger contexts (eg, Python is essentially the language of Google.) I'll leave it to people more familiar with data analysis to recommend a route--I'm just saying Excel isn't a good one.\n\nAnother is that Excel isn't really suited for serious data analysis; it's an Office program (yeah, yeah; people can do some clever things and make it handle big data sets . . . but they're *clever* things. Not by-design things.)","full_conversation":[{"role":"OP","user_id":"anon_e294854d153a2fbf","comment_id":"a9nql","kind":"post","text":"Is learning VBA for excel etc. worthwhile for data analysis?\n\nHey Reddit, I need some advice. I'm about to graduate and head to grad school to get a PhD in computational toxicology. I've always had a passing interest in programming, took a couple java classes etc. and as I will be doing a good bit of data analysis/data mining I was wondering if learning VBA would be worthwhile or if there are other languages that would give me more bang for my buck? \n\nSide Note: Most of my work will probably be done in excel.","timestamp":"2009-11-30T23:48:38+00:00","score":0},{"role":"answerer","user_id":"anon_114fd0a51a202f4c","comment_id":"c0ginih","kind":"comment","text":"I worked in VB variants for years, and made a living as an Access developer for quite a while.\n\nYou are far better off learning a real language with an upward progression. If you're doing real math, [possibly R](http://www.r-project.org/). If you know Java, there are good-looking reporting tools available (Birt?). Note, I'm not saying these are right--I haven't used them (data analysis is practically non-existent in what I do) but there are good options available that don't lock you into VB*.\n\nOne of the troubles is that learning VB* will only really help you learn VB variants. It doesn't really translate to other languages--it's a dead end. If you learn something like Python, OTOH, you have something you can extend and use on any platform in much larger contexts (eg, Python is essentially the language of Google.) I'll leave it to people more familiar with data analysis to recommend a route--I'm just saying Excel isn't a good one.\n\nAnother is that Excel isn't really suited for serious data analysis; it's an Office program (yeah, yeah; people can do some clever things and make it handle big data sets . . . but they're *clever* things. Not by-design things.)","timestamp":"2009-12-01T06:49:26+00:00","score":3},{"role":"OP","user_id":"anon_e294854d153a2fbf","comment_id":"c0gk3s8","kind":"comment","text":"thanks so much, I'll definitely be looking into R. And I know excel isn't suited for data analysis, however in the internship I worked at last semester, a lot of work was done in excel as pretty much everyone has it, so your boss, your coworker, anyone can grab what you're working on and do whatever with it. I figured while I will probably move away from excel, it never hurts to have that as a nice backup","timestamp":"2009-12-02T01:39:31+00:00","score":2},{"role":"answerer","user_id":"anon_114fd0a51a202f4c","comment_id":"c0gk92n","kind":"comment","text":"In theory it sounds good; in practice, the various Office object models let you down. One regular problem is that the frameworks change somewhat every version--and not always in a backward-compatible manner (I have had to modify code that ran fine for years, and choked the interpreter after an upgrade.) Unless you stick to the most basic commands, there's a fair chance that older versions won't run your code--plus a chance that newer ones won't.\n\nIf you want to be able to distribute code, your best bet is either a compileable application, or one that runs in an interpreter designed for portability (eg, Java.) VB* isn't even really compatible with other VB*s . .. and VB.NET? They never heard of it...\n\nI also expect (bolstered by the fact that you took Java) that you will eventually want to *do* something with the data. If you eventually decide to make an application (/viewer/modeler/...) you will have done yourself a favour if you've learned something like python (which is extremely numerically capable) or the like.\n\nI got good at VB*, years ago (starting with Access 1). It has been the single most crippling thing for me, as far as picking up serious programming.","timestamp":"2009-12-02T03:14:42+00:00","score":2},{"role":"OP","user_id":"anon_e294854d153a2fbf","comment_id":"c0gkhv8","kind":"comment","text":"once again, thanks so much for the great advice. I think I'll really look into Python/R/Java. You are right in that I probably will want to so something, as well as making applications to suit my needs. Would you suggest python or java, or another language, as my base to start going from. I'm not daunted by eventually \"dabbling\" in multiple languages, especially if they have similar syntax","timestamp":"2009-12-02T06:01:26+00:00","score":2},{"role":"answerer","user_id":"anon_114fd0a51a202f4c","comment_id":"c0gl1ko","kind":"comment","text":"I've done more Java (read: hardly any) than Python (read: practically none) or R (none), so my opinions on each wouldn't by useful.\n\nIf you're not daunted, then I would encourage you to dabble in each. Try to find out the relative strengths of each and use the best match for the specific code you're working on. If you can replace other peoples' holy wars with a 'best tool for the job' approach, you can have a long and fruitful, *happy* programming career.\n\nSome simple decision points are: do you want the app to run in a browser as an applet/do you want to compile it as a native app; dynamic typing can let you bang out code very fast/static-typing may be more helpful on a larger application. The trick is to find the languages domain (R's domain is math/analysis/reporting) and use the languages to their best advantage; the day you find yourself digging data out of old reports, write yourself some perl . . .","timestamp":"2009-12-02T16:00:16+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_e294854d153a2fbf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_114fd0a51a202f4c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ginih","thanks_reply_id":"c0gk3s8","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_cc245b81f2bf24ea","answerer_user_id":"anon_65669f867b9c55b4","subreddit":"programming","timestamp":"2009-12-01T19:47:37+00:00","post_id":"a9zj4","question":"AskProggit: Sorting complexity proofs?\n\nif you have a list of objects and a function that says true of false to check if two are equal it takes O(n^2) to simplify the list so that nothing is in there twice.. but if you (also) have an ordering (so the function says Less, GreaterOrEqual) you can make the complexity O(nlogn).\n\nIt makes some sense, the ordering gives you more information per comparison but can that argument about 'information-flow' actually be used to prove this and/or other things?","preferred_answer":"[next time try google](http://en.wikipedia.org/wiki/Sorting_algorithm)","full_conversation":[{"role":"OP","user_id":"anon_cc245b81f2bf24ea","comment_id":"a9zj4","kind":"post","text":"AskProggit: Sorting complexity proofs?\n\nif you have a list of objects and a function that says true of false to check if two are equal it takes O(n^2) to simplify the list so that nothing is in there twice.. but if you (also) have an ordering (so the function says Less, GreaterOrEqual) you can make the complexity O(nlogn).\n\nIt makes some sense, the ordering gives you more information per comparison but can that argument about 'information-flow' actually be used to prove this and/or other things?","timestamp":"2009-12-01T19:47:37+00:00","score":0},{"role":"answerer","user_id":"anon_65669f867b9c55b4","comment_id":"c0gjgt1","kind":"comment","text":"[next time try google](http://en.wikipedia.org/wiki/Sorting_algorithm)","timestamp":"2009-12-01T19:50:42+00:00","score":-4},{"role":"OP","user_id":"anon_cc245b81f2bf24ea","comment_id":"c0gjh70","kind":"comment","text":"> next time try google\n\nThanks that's really helpful I've never heard of google or sorting algorithms before.","timestamp":"2009-12-01T19:55:56+00:00","score":3},{"role":"answerer","user_id":"anon_65669f867b9c55b4","comment_id":"c0gjhbu","kind":"comment","text":"Well then stop asking us to do your hw and figure it out.","timestamp":"2009-12-01T19:57:56+00:00","score":-2},{"role":"OP","user_id":"anon_cc245b81f2bf24ea","comment_id":"c0gjhgi","kind":"comment","text":"> Well then stop asking us to do your hw and figure it out.\n\nIt's not my hw and I'm not asking you to \"figure it out\", there's not even a set problem here how can you possibly be serious. I think you must just be some kind of joker that repeats all the cliches (google it, rtfm, do your own homework, etc.). None of this improves any discussion.","timestamp":"2009-12-01T19:59:51+00:00","score":1},{"role":"answerer","user_id":"anon_65669f867b9c55b4","comment_id":"c0gji44","kind":"comment","text":"Hmm... probably not. Check my profile.","timestamp":"2009-12-01T20:09:27+00:00","score":-2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_cc245b81f2bf24ea","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_65669f867b9c55b4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gjgt1","thanks_reply_id":"c0gjh70","post_score":0,"answer_score":-4,"preferred_answer_is_top_level":true}} {"user_id":"anon_aa2752682f44a22e","answerer_user_id":"anon_3491a595680eff07","subreddit":"programming","timestamp":"2009-12-02T21:37:50+00:00","post_id":"aafbk","question":"Going to start programming a game in XNA -- any tips?\n\nA friend and I are going to create some community games. We have a C# book, some basic programming knowledge in Java and VB(I know, full of lawlz). \n \nWe are doing this as a learning experience, and for fun. \nDoes Proggit have some suggestions for us? \n \nEDIT: Any other languages to learn?","preferred_answer":"I've been playing in XNA on and off for a year or so now and can say that I have been very surprised at how approachable the API is.\n\nHere are a few thoughts (complete with asides): \nIf you plan to jump into 3D with XNA your first area of focus should probably be picking your 3D modeling platform and getting comfortable with the interface. I ended up sticking with Mod Tool Pro. I have an older version of 3DS Max at my disposal, and I was much more comfortable with Blender - but each of the other packages required too much hackery with export file formats to get the models into XNA. So Mod Tool it was.\n\nOnce I committed to Mod Tool I started with a series of tutorials:\nThis series did the job nicely:\n\nhttp://www.youtube.com/watch?v=1LBnMMqro0M&feature=related\n\n(BTW: I firmly believe that there is no such thing as a standardized interface in the 3D modeling world and it's totally frustrating. I always feel like I am are starting from scratch every time I pick up a new tool.)\n\nOnce your comfortable with modeling, skinning, rigging, and integrating with XNA, it's time to build your first 3D app!\n\nI ran through the tutorial that has you build out a fixed turret and shoot down flying saucers:\nhttp://creators.xna.com/en-US/education/gettingstarted/bg3d/chapter1\nIt's fantastic in that it covers all of the basics... initializing the screen, input, sounds, loading models, and dealing with all of your basic 3D concerns (translation, transforms, etc). And its very short - you can knock it out in a few hours.\n\nNext up for me was tackling skinning and animation: for that I turned to the Guitar Matey Tutorial:\n\nhttp://blogs.msdn.com/dawate/archive/2008/02/05/building-a-3d-game-in-xna-from-scratch-free-video-tutorial-series-now-available.aspx\n\nThat's as far as I have gotten. \n\nAside from that just know your target platform. There are rules around distributing games to the PC community under the Games for Windows banner that make XNA a bit of a drag, and if your looking to build an XBox 360 game you have some pretty draconian limitations around file size.\n\nGood luck!","full_conversation":[{"role":"OP","user_id":"anon_aa2752682f44a22e","comment_id":"aafbk","kind":"post","text":"Going to start programming a game in XNA -- any tips?\n\nA friend and I are going to create some community games. We have a C# book, some basic programming knowledge in Java and VB(I know, full of lawlz). \n \nWe are doing this as a learning experience, and for fun. \nDoes Proggit have some suggestions for us? \n \nEDIT: Any other languages to learn?","timestamp":"2009-12-02T21:37:50+00:00","score":8},{"role":"answerer","user_id":"anon_3491a595680eff07","comment_id":"c0gm2sg","kind":"comment","text":"I've been playing in XNA on and off for a year or so now and can say that I have been very surprised at how approachable the API is.\n\nHere are a few thoughts (complete with asides): \nIf you plan to jump into 3D with XNA your first area of focus should probably be picking your 3D modeling platform and getting comfortable with the interface. I ended up sticking with Mod Tool Pro. I have an older version of 3DS Max at my disposal, and I was much more comfortable with Blender - but each of the other packages required too much hackery with export file formats to get the models into XNA. So Mod Tool it was.\n\nOnce I committed to Mod Tool I started with a series of tutorials:\nThis series did the job nicely:\n\nhttp://www.youtube.com/watch?v=1LBnMMqro0M&feature=related\n\n(BTW: I firmly believe that there is no such thing as a standardized interface in the 3D modeling world and it's totally frustrating. I always feel like I am are starting from scratch every time I pick up a new tool.)\n\nOnce your comfortable with modeling, skinning, rigging, and integrating with XNA, it's time to build your first 3D app!\n\nI ran through the tutorial that has you build out a fixed turret and shoot down flying saucers:\nhttp://creators.xna.com/en-US/education/gettingstarted/bg3d/chapter1\nIt's fantastic in that it covers all of the basics... initializing the screen, input, sounds, loading models, and dealing with all of your basic 3D concerns (translation, transforms, etc). And its very short - you can knock it out in a few hours.\n\nNext up for me was tackling skinning and animation: for that I turned to the Guitar Matey Tutorial:\n\nhttp://blogs.msdn.com/dawate/archive/2008/02/05/building-a-3d-game-in-xna-from-scratch-free-video-tutorial-series-now-available.aspx\n\nThat's as far as I have gotten. \n\nAside from that just know your target platform. There are rules around distributing games to the PC community under the Games for Windows banner that make XNA a bit of a drag, and if your looking to build an XBox 360 game you have some pretty draconian limitations around file size.\n\nGood luck!","timestamp":"2009-12-03T01:21:27+00:00","score":10},{"role":"OP","user_id":"anon_aa2752682f44a22e","comment_id":"c0go391","kind":"comment","text":"Thank you so much! Saved and copied. I'll probably start with 2D but when I make the jump I will come back to this! Any experience with Blender?","timestamp":"2009-12-04T03:22:07+00:00","score":1},{"role":"answerer","user_id":"anon_3491a595680eff07","comment_id":"c0gs076","kind":"comment","text":"Blender was the first modeler I tried to integrate with XNA - I really wanted it to work, but the .x model formats still didn't export seamlessly from the beginning. Other people have taken a crack at writing .x exporters for Blender but the last time I looked they each still had issues.\nYou can take a peak at one of the open source exporters here:\nhttp://directpython.sourceforge.net/exportx.html\n\nGiven that your going to be learning so much about the workflow, and data types in the beginning I would suggest that you first start with Mod Tool (it will only cost you an email address with your basic creator's club membership). :) There are some benefit's to introducing yourself to the platform using Mod Tool:\nMany of the 3D XNA tutorials you find out there will assume that you are using Mod Tool and are written with that in mind. You also have a very active community on the Mod Tool site and XNA forums that you can turn to when you have questions. And because Mod Tool is so tightly linked to XNA - it's usually the first modeler to be updated when there is a change to the XNA platform.\n\nThat said, don't give up up on eventually using Blender as your primary modeler if that's what you are comfortable with. Just realize that you will probably have to do your initial work in Blender then export to an intermediate format (.3DS is always a good one to try first) and re-import into Mod Tool before publishing to your XNA project.","timestamp":"2009-12-06T13:49:12+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_aa2752682f44a22e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3491a595680eff07","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gm2sg","thanks_reply_id":"c0go391","post_score":8,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_5df1008403daaef6","answerer_user_id":"anon_d62d4c42674d30cc","subreddit":"programming","timestamp":"2009-12-05T19:34:13+00:00","post_id":"abh76","question":"What string type should I use for a C++ project?\n\nI'm toying with writing a cross-platform interpreter for a little scripting language in C++. I'd like to keep it as simple and lightweight as possible, and I want to keep the door open for using this on limited memory devices (think game consoles), so I want close control over heap usage.\n\nOne design decision that has to be made early is what it uses for strings. My options are:\n\n**1. Use C-style `char*`**\n\nPros:\n\n* Simple.\n* Everyone understands it.\n* stdlib is easy to use.\n* Apparent about what it's doing with memory.\n\nCons:\n\n* Tedious to use.\n* Have to check for overflow everywhere.\n\n**2. Use `std::string`**\n\nPros:\n\n* Works more like a native type than char* (==, +=, etc.)\n* Lots of features.\n* Well tested.\n\nCons:\n\n* Complex.\n* Basic stuff seems harder than it should be (formatting?).\n* Brings in more std than I may want to depend on.\n* Does magical stuff on the heap without my knowledge (unless I provide my own allocator).\n* Have to import `std` or fully-qualify it everywhere. (Fully-qualified names entirely defeat the point of namespaces to me. It may as well be std_string, std_cout, etc. at that point.)\n\n**3. Write my own string class**\n\nPros:\n\n* Get to control the semantics and memory usage.\n* Can make it work the way I want.\n\nCons:\n\n* Reinventing the wheel.\n* May make interoperability (getting strings in and out of my lib) harder.\n* Will take a while to get it right and flush the bugs out.\n\nGiven those, I'm curious if anyone has any other thoughts or ideas before I pick one. (Also, please don't tell me to use C instead of C++. For purposes of this discussion, let's presume Zeus himself told me he will strike me down with a bolt of lightning if I don't use C++.)\n\nThoughts?","preferred_answer":"// frequently_used_std.h\n using std::cout;\n using std::cin;\n using std::endl;\n ...\n\n\n // All other files\n #include \"frequently_used_std.h\"","full_conversation":[{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"abh76","kind":"post","text":"What string type should I use for a C++ project?\n\nI'm toying with writing a cross-platform interpreter for a little scripting language in C++. I'd like to keep it as simple and lightweight as possible, and I want to keep the door open for using this on limited memory devices (think game consoles), so I want close control over heap usage.\n\nOne design decision that has to be made early is what it uses for strings. My options are:\n\n**1. Use C-style `char*`**\n\nPros:\n\n* Simple.\n* Everyone understands it.\n* stdlib is easy to use.\n* Apparent about what it's doing with memory.\n\nCons:\n\n* Tedious to use.\n* Have to check for overflow everywhere.\n\n**2. Use `std::string`**\n\nPros:\n\n* Works more like a native type than char* (==, +=, etc.)\n* Lots of features.\n* Well tested.\n\nCons:\n\n* Complex.\n* Basic stuff seems harder than it should be (formatting?).\n* Brings in more std than I may want to depend on.\n* Does magical stuff on the heap without my knowledge (unless I provide my own allocator).\n* Have to import `std` or fully-qualify it everywhere. (Fully-qualified names entirely defeat the point of namespaces to me. It may as well be std_string, std_cout, etc. at that point.)\n\n**3. Write my own string class**\n\nPros:\n\n* Get to control the semantics and memory usage.\n* Can make it work the way I want.\n\nCons:\n\n* Reinventing the wheel.\n* May make interoperability (getting strings in and out of my lib) harder.\n* Will take a while to get it right and flush the bugs out.\n\nGiven those, I'm curious if anyone has any other thoughts or ideas before I pick one. (Also, please don't tell me to use C instead of C++. For purposes of this discussion, let's presume Zeus himself told me he will strike me down with a bolt of lightning if I don't use C++.)\n\nThoughts?","timestamp":"2009-12-05T19:34:13+00:00","score":4},{"role":"answerer","user_id":"anon_d62d4c42674d30cc","comment_id":"c0grrp8","kind":"comment","text":"// frequently_used_std.h\n using std::cout;\n using std::cin;\n using std::endl;\n ...\n\n\n // All other files\n #include \"frequently_used_std.h\"","timestamp":"2009-12-06T07:42:59+00:00","score":13},{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"c0gs1dc","kind":"comment","text":"You know, that's a simple solution and a really good idea. Thanks!","timestamp":"2009-12-06T14:35:44+00:00","score":4},{"role":"answerer","user_id":"anon_d62d4c42674d30cc","comment_id":"c0gs6hj","kind":"comment","text":"Really, having seen you argue about having to list std::xxx in many thread never realize to use #include or #define. And think too much about what string class to use when you can just do\r\n\r\n typedef mystring std::string;\r\n\r\nAnd use mystring in all places, and change class only if there turns out to be problem after that. All this makes me think you haven't used C++ enough to have to think about this performace problem yet. You have to learn to program first. Don't get stuck on planning to be enterprisey.","timestamp":"2009-12-06T17:14:02+00:00","score":3},{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"c0gspbr","kind":"comment","text":"> Really, having seen you argue about having to list std::xxx in many thread never realize to use #include or #define.\n\nAt work, we don't import entire namespaces, and most of the C++ coding standards I read explicitly forbit importing std in a header, and some even in a .cpp.\n\n> typedef mystring std::string;\n\nThat's what I'm doing right now.\n\n> You have to learn to program first.\n\nHave you ever done any C++ programming outside of a PC? After you ship a DS game, which has 4MB of memory total (including all of your art and sound), and must run without crashing for several days, memory fragmentation becomes a very real concern.\n\n> Don't get stuck on planning to be enterprisey.\n\nIf I was trying to be enterprisey, I'd be using a managed language. What I'm trying to do is write it in suck a way that I wouldn't shy away from using it on a game console.","timestamp":"2009-12-06T23:32:03+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5df1008403daaef6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d62d4c42674d30cc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0grrp8","thanks_reply_id":"c0gs1dc","post_score":4,"answer_score":13,"preferred_answer_is_top_level":false}} {"user_id":"anon_20e70ad6a6b27960","answerer_user_id":"anon_b83288917ee5d027","subreddit":"programming","timestamp":"2009-12-09T02:27:40+00:00","post_id":"aclsk","question":"Ask Proggit: Does anybody know of a language with semantics like this?\n\nI was reading through the first chapter of a programming book when I came to the part about assignment.\n\n x <- 4\n y <- 3*x\n\nAt this point, x is 4 and y is 12. Then on the next line, the value of x changes.\n\n x <- 5\n\nNow x is 5 and y is still 12. Is there any language that would see y as 15?","preferred_answer":"It's like a spreadsheet but without the visual grid layout. You can replace the value of any cell/variable, and when you do, the value of anything else which depends on it is updated automatically. (By updated, this could be eager or lazy)","full_conversation":[{"role":"OP","user_id":"anon_20e70ad6a6b27960","comment_id":"aclsk","kind":"post","text":"Ask Proggit: Does anybody know of a language with semantics like this?\n\nI was reading through the first chapter of a programming book when I came to the part about assignment.\n\n x <- 4\n y <- 3*x\n\nAt this point, x is 4 and y is 12. Then on the next line, the value of x changes.\n\n x <- 5\n\nNow x is 5 and y is still 12. Is there any language that would see y as 15?","timestamp":"2009-12-09T02:27:40+00:00","score":5},{"role":"answerer","user_id":"anon_b83288917ee5d027","comment_id":"c0gwz2i","kind":"comment","text":"It's like a spreadsheet but without the visual grid layout. You can replace the value of any cell/variable, and when you do, the value of anything else which depends on it is updated automatically. (By updated, this could be eager or lazy)","timestamp":"2009-12-09T02:33:25+00:00","score":5},{"role":"OP","user_id":"anon_20e70ad6a6b27960","comment_id":"c0gwz7p","kind":"comment","text":"Thank you! I would have never thought of that. Is there a word for the \"spreadsheet paradigm?\"\n\nAlso, is there such a thing as a gridless spreadsheet?","timestamp":"2009-12-09T02:35:53+00:00","score":3},{"role":"answerer","user_id":"anon_b83288917ee5d027","comment_id":"c0gwzwi","kind":"comment","text":"Most spreadsheets would be considered non-recursive reactive functional languages. I'm considering just the cell expressions here; not any scripting language that may accompany them. \n\nWhat you're thinking of might be found in [reactive programming](http://en.wikipedia.org/wiki/Reactive_programming)","timestamp":"2009-12-09T02:47:32+00:00","score":7}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_20e70ad6a6b27960","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b83288917ee5d027","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gwz2i","thanks_reply_id":"c0gwz7p","post_score":5,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_b451632613602122","answerer_user_id":"anon_849fefa3013da38e","subreddit":"programming","timestamp":"2009-12-10T01:38:34+00:00","post_id":"aczvm","question":"What should I learn with? Flex or haXe?\n\nI want to start making flash applications, including facebook applications using flash. I have no money for CS4 or flex builder.\n\nI've looked into my options somewhat and found both flex sdk+actionscript or haXe as options. Am I better off with flex/actionscript, or haXe? Or are there any other options I should consider?","preferred_answer":">Flex Builder is just a flavored Eclipse.\n\nOr you could also just use straight Eclipse with the Flex Builder plugin. Performance is way better IMO. I'm contracting for Adobe at the moment and everyone here prefers it to the Flex Builder IDE.","full_conversation":[{"role":"OP","user_id":"anon_b451632613602122","comment_id":"aczvm","kind":"post","text":"What should I learn with? Flex or haXe?\n\nI want to start making flash applications, including facebook applications using flash. I have no money for CS4 or flex builder.\n\nI've looked into my options somewhat and found both flex sdk+actionscript or haXe as options. Am I better off with flex/actionscript, or haXe? Or are there any other options I should consider?","timestamp":"2009-12-10T01:38:34+00:00","score":0},{"role":"answerer","user_id":"anon_849fefa3013da38e","comment_id":"c0gywve","kind":"comment","text":">Flex Builder is just a flavored Eclipse.\n\nOr you could also just use straight Eclipse with the Flex Builder plugin. Performance is way better IMO. I'm contracting for Adobe at the moment and everyone here prefers it to the Flex Builder IDE.","timestamp":"2009-12-10T02:31:22+00:00","score":4},{"role":"OP","user_id":"anon_b451632613602122","comment_id":"c0gz72e","kind":"comment","text":"I was planning on using FlashDevelop, but I will look into the Eclipse option, thanks.","timestamp":"2009-12-10T05:49:22+00:00","score":1},{"role":"answerer","user_id":"anon_849fefa3013da38e","comment_id":"c0gz7o4","kind":"comment","text":"If you have the latest version of Eclipse check out the [Flash Builder 4 Plugin](http://labs.adobe.com/wiki/index.php/Flash_Builder_4:Release_Notes#Installing_Flash_Builder_plug-in). Has a lot of great new features for Flex.","timestamp":"2009-12-10T06:03:41+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b451632613602122","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_849fefa3013da38e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0gywve","thanks_reply_id":"c0gz72e","post_score":0,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_6c820ee3ed398e63","answerer_user_id":"anon_40977600e8fac10c","subreddit":"programming","timestamp":"2009-12-11T02:21:32+00:00","post_id":"adeod","question":"Java question - Is there a better way to make this sentinel while loop exit after I put in the sentinel value, but still perform my conversion?\n\nimport java.util.Scanner;\n\n\npublic class TempConverter {\n\t/**\n\t * @param args \n\t */\n\tstatic Scanner console = new Scanner(System.in);\n\tstatic final double FTOC = 5.0 / 9.0;\n\tstatic final int OFFSET = 40;\n\tstatic final int SENTINEL = -40;\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tdouble degreesF, degreesC;\n\t\tSystem.out.println(\"Enter temperature in degrees Fahrenheit to convert to celsius (enter -40 to quit): \");\n\t\tdegreesF = console.nextDouble();\n\t\tdegreesC = ((degreesF + OFFSET) * FTOC) - OFFSET;\n\t\tSystem.out.printf(degreesF + \" degrees Fahrenheit is equal to %.2f %n\", degreesC);\n\t\twhile(degreesF != SENTINEL)\n\t\t{\n\t\t\tSystem.out.println(\"Enter next temperature to convert or enter -40 to quit: \");\n\t\t\tdegreesF = console.nextDouble();\n\t\t\tdegreesC = ((degreesF + OFFSET) * FTOC) - OFFSET;\n\t\t\tSystem.out.printf(degreesF + \" degrees Fahrenheit is equal to %.2f %n\", degreesC);\n\t\t}\n\t}\n }","preferred_answer":"well....for starters...initialize degreesF to zero. and delete the 4 lines outside the loop.","full_conversation":[{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"adeod","kind":"post","text":"Java question - Is there a better way to make this sentinel while loop exit after I put in the sentinel value, but still perform my conversion?\n\nimport java.util.Scanner;\n\n\npublic class TempConverter {\n\t/**\n\t * @param args \n\t */\n\tstatic Scanner console = new Scanner(System.in);\n\tstatic final double FTOC = 5.0 / 9.0;\n\tstatic final int OFFSET = 40;\n\tstatic final int SENTINEL = -40;\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tdouble degreesF, degreesC;\n\t\tSystem.out.println(\"Enter temperature in degrees Fahrenheit to convert to celsius (enter -40 to quit): \");\n\t\tdegreesF = console.nextDouble();\n\t\tdegreesC = ((degreesF + OFFSET) * FTOC) - OFFSET;\n\t\tSystem.out.printf(degreesF + \" degrees Fahrenheit is equal to %.2f %n\", degreesC);\n\t\twhile(degreesF != SENTINEL)\n\t\t{\n\t\t\tSystem.out.println(\"Enter next temperature to convert or enter -40 to quit: \");\n\t\t\tdegreesF = console.nextDouble();\n\t\t\tdegreesC = ((degreesF + OFFSET) * FTOC) - OFFSET;\n\t\t\tSystem.out.printf(degreesF + \" degrees Fahrenheit is equal to %.2f %n\", degreesC);\n\t\t}\n\t}\n }","timestamp":"2009-12-11T02:21:32+00:00","score":0},{"role":"answerer","user_id":"anon_40977600e8fac10c","comment_id":"c0h0top","kind":"comment","text":"well....for starters...initialize degreesF to zero. and delete the 4 lines outside the loop.","timestamp":"2009-12-11T02:43:06+00:00","score":2},{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"c0h0tv6","kind":"comment","text":"oh haha thank you. ok now how do I add \"degrees Celsius\" after degreesC in printf?\n\nnm this worked\n\n System.out.printf(degreesF + \" degrees Fahrenheit is equal to %.2f degrees Celsius. %n\", degreesC);","timestamp":"2009-12-11T02:45:50+00:00","score":1},{"role":"answerer","user_id":"anon_40977600e8fac10c","comment_id":"c0h0u62","kind":"comment","text":"printf...i can't actually remember a time where I actually used that...anywho try println\n\n System.out.println(\"text here\"+ variable here +\"more text\" + another variable);\n\nedit:gah brain not working so well after finishing my last project anywho, never a fan of the printf style of printing and preferred DecimalFormat.format(string)\n\n System.out.println((new DecimalFormat(\"###.##\")).format(22.2372));","timestamp":"2009-12-11T02:50:47+00:00","score":0},{"role":"OP","user_id":"anon_6c820ee3ed398e63","comment_id":"c0h0v69","kind":"comment","text":"why is that better? Do you just wrap the (new Dec....format..) in the text you want?","timestamp":"2009-12-11T03:07:36+00:00","score":1},{"role":"answerer","user_id":"anon_40977600e8fac10c","comment_id":"c0h157u","kind":"comment","text":"Not entirely sure using DecimalFormat is any better or worse then printf, I just consider it more readable. Also,what I did there is really only good for a single use, something like this would be a better for reuse.\n\n DecimalFormat d = new DecimalFormat(###.##); <- look up in the java api to get more formats\n System.out.prinln(d.format(decOne)+ \" \"+ d.format(decTwo));","timestamp":"2009-12-11T06:11:27+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_6c820ee3ed398e63","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_40977600e8fac10c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0h0top","thanks_reply_id":"c0h0tv6","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_d6b67355837ad44c","answerer_user_id":"anon_4951f195a1537a8d","subreddit":"programming","timestamp":"2009-12-11T04:36:31+00:00","post_id":"adfww","question":"Reddit, I have very little programming experience but I have a really fun and simple idea. Would you please help me?\n\nI have an image that has various expressions listed with blank boxes above them. I'd like a way to select the expression, take a picture with a webcam or upload a photo then place the photo in the box. Eventually the user would save the image.\n\nAny help would be greatly appreciated.","preferred_answer":"Your down votes make no sense. That is incredibly retarded. I think reddit needs to force justification of downvotes when posts are new.\n\nAnyhow... the way I would go about doing it.\nUse html5 canvas to just render whatever the user has entered in an input box.\n\nSo in javascript it would just something like $('something').onChange(function if(textExists){removeText} text.Draw(xPosition, yPosition, size))\nAnd you can do the same thing with any number of graphics.\n\nthen do http://www.nihilogic.dk/labs/canvas2image/ or similar to just turn it into an image\n\nif you already have the expression text for the below the box hardcoded i gues you would skip that thing about the input box. You could just have a user select a bunch of images, line them up with html5, and export the image from the canvas stage whenever your done","full_conversation":[{"role":"OP","user_id":"anon_d6b67355837ad44c","comment_id":"adfww","kind":"post","text":"Reddit, I have very little programming experience but I have a really fun and simple idea. Would you please help me?\n\nI have an image that has various expressions listed with blank boxes above them. I'd like a way to select the expression, take a picture with a webcam or upload a photo then place the photo in the box. Eventually the user would save the image.\n\nAny help would be greatly appreciated.","timestamp":"2009-12-11T04:36:31+00:00","score":0},{"role":"answerer","user_id":"anon_4951f195a1537a8d","comment_id":"c0h1qq7","kind":"comment","text":"Your down votes make no sense. That is incredibly retarded. I think reddit needs to force justification of downvotes when posts are new.\n\nAnyhow... the way I would go about doing it.\nUse html5 canvas to just render whatever the user has entered in an input box.\n\nSo in javascript it would just something like $('something').onChange(function if(textExists){removeText} text.Draw(xPosition, yPosition, size))\nAnd you can do the same thing with any number of graphics.\n\nthen do http://www.nihilogic.dk/labs/canvas2image/ or similar to just turn it into an image\n\nif you already have the expression text for the below the box hardcoded i gues you would skip that thing about the input box. You could just have a user select a bunch of images, line them up with html5, and export the image from the canvas stage whenever your done","timestamp":"2009-12-11T16:24:09+00:00","score":1},{"role":"OP","user_id":"anon_d6b67355837ad44c","comment_id":"c0h2512","kind":"comment","text":"Thanks for your input. I'm totally confused, but will look into this and see if over time I can put it to use. I appreciate it.","timestamp":"2009-12-11T19:52:56+00:00","score":1},{"role":"answerer","user_id":"anon_4951f195a1537a8d","comment_id":"c0h2ap9","kind":"comment","text":"* Add iecanvas.js so things work in IE\n* Add a Canvas element to your page as big as the picture you want\n* Add text to your canvas element in javascript by specifying the location it should sit at and using html5 canvas commands\n* draw any boxes or shapes you need with html5 canvas commands\n* have a file input field for people to upload their pics that drops it directly in the canvas. To be tricky you can make it default to the first available square. This part will have lots of options if im understanding you so it cant be simplified more\n* Then do the canvas to image thing that my previous link talks about, itll work in firefox, and in chrome at least people can copy the image and save it in irfanview or similar","timestamp":"2009-12-11T21:16:43+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d6b67355837ad44c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4951f195a1537a8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0h1qq7","thanks_reply_id":"c0h2512","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_8fd85cfc2c3bd024","answerer_user_id":"anon_0111e42141a3e66a","subreddit":"programming","timestamp":"2009-12-11T22:11:36+00:00","post_id":"adqqj","question":"JavaFX or Adobe Flash / Air?\n\nI'm looking to create my next application. I want it to work on multiple platforms and screen sizes. It appers to me that Adobe and JavaFX are pitching their platforms as multi OS and can/will run on mobile devices. Which do you think is the best bet?","preferred_answer":"I built a Media Player using JavaFX. I felt it was immature. Certain APIs don't work correctly, and display differently if you're running in as a plain application, as an applet, or as a JNLP. The node based architecture is pretty cool, and I enjoyed it to an extent, but there's an extent to which you don't understand what you're doing because it's a totally different programming style from what most are used to. Additionally, the lack of a mature layout manager really pissed me off and forced me to use a plethora of position bindings, which slowed down resizing of my application way too much.\n\n\n\nThe one thing I DID like about JavaFX is the fact that you can still use many Java classes with lesser degree of verbosity, which is unbelievably useful.\n\n\n\nFlash:\nFlash definitely has a greater marketshare, but Flash is not free, and neither is Flex unless you're unemployed or a student. I don't have much experience, but the ability to do animations in Flash easily is definitely a plus. \n\n\n\nI don't know much about Flash, but I know that it definitely takes less time for an embedded Flash object to load than a Java applet. I believe it also can be distributed as an executable if you're using AIR, as opposed to JavaFX which requires a command line argument like \"javafx -jar mediabox.jar\" (unless you use JNLP which has almost the same access rights as an applet).\n\n\n\nSilverlight might be something you'd like to look into. You have the base of a huge framework, with nice upcoming features. Unfortunately, you'd be relying on Mono for Linux support, which might deter you. XAML is a bit difficult to use for styling. Moreso than Flash. C# is really great, however, it's a complex language, and can be confusing if you're not used to it.\n\n\n\nGood luck!","full_conversation":[{"role":"OP","user_id":"anon_8fd85cfc2c3bd024","comment_id":"adqqj","kind":"post","text":"JavaFX or Adobe Flash / Air?\n\nI'm looking to create my next application. I want it to work on multiple platforms and screen sizes. It appers to me that Adobe and JavaFX are pitching their platforms as multi OS and can/will run on mobile devices. Which do you think is the best bet?","timestamp":"2009-12-11T22:11:36+00:00","score":1},{"role":"answerer","user_id":"anon_0111e42141a3e66a","comment_id":"c0h2t71","kind":"comment","text":"I built a Media Player using JavaFX. I felt it was immature. Certain APIs don't work correctly, and display differently if you're running in as a plain application, as an applet, or as a JNLP. The node based architecture is pretty cool, and I enjoyed it to an extent, but there's an extent to which you don't understand what you're doing because it's a totally different programming style from what most are used to. Additionally, the lack of a mature layout manager really pissed me off and forced me to use a plethora of position bindings, which slowed down resizing of my application way too much.\n\n\n\nThe one thing I DID like about JavaFX is the fact that you can still use many Java classes with lesser degree of verbosity, which is unbelievably useful.\n\n\n\nFlash:\nFlash definitely has a greater marketshare, but Flash is not free, and neither is Flex unless you're unemployed or a student. I don't have much experience, but the ability to do animations in Flash easily is definitely a plus. \n\n\n\nI don't know much about Flash, but I know that it definitely takes less time for an embedded Flash object to load than a Java applet. I believe it also can be distributed as an executable if you're using AIR, as opposed to JavaFX which requires a command line argument like \"javafx -jar mediabox.jar\" (unless you use JNLP which has almost the same access rights as an applet).\n\n\n\nSilverlight might be something you'd like to look into. You have the base of a huge framework, with nice upcoming features. Unfortunately, you'd be relying on Mono for Linux support, which might deter you. XAML is a bit difficult to use for styling. Moreso than Flash. C# is really great, however, it's a complex language, and can be confusing if you're not used to it.\n\n\n\nGood luck!","timestamp":"2009-12-12T03:08:24+00:00","score":2},{"role":"OP","user_id":"anon_8fd85cfc2c3bd024","comment_id":"c0h2tt5","kind":"comment","text":"I really appreciate the feed back. Adobe is opening up [flash/flex](http://www.openscreenproject.org/) for next year, so that won't be a problem.","timestamp":"2009-12-12T03:23:27+00:00","score":1},{"role":"answerer","user_id":"anon_0111e42141a3e66a","comment_id":"c0h2vma","kind":"comment","text":"Right, but just Flex. Not Flash CS5, of course. But still, you might not even need something like that.\n\nAnd no problemo!","timestamp":"2009-12-12T04:06:51+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8fd85cfc2c3bd024","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0111e42141a3e66a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0h2t71","thanks_reply_id":"c0h2tt5","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_96af86e17553ef2f","answerer_user_id":"anon_54b7cadf6ac43381","subreddit":"programming","timestamp":"2009-12-13T00:46:19+00:00","post_id":"ae1uo","question":"I'm looking for the name of a concept or algorithm that I'm trying to implement. Can anyone help?\n\nI'm trying to write a program that is identical in concept to a \"choose your own adventure\" story (but with a very different application). At any point in time, there will be a set of available decisions about what to do next. So, the 'story' has a tree structure to it.\n\nThe problem I have is that which choices you are presented with at any point should depend on which path you took to get to that point. Otherwise there will be logical problems with the 'storyline.' I could characterize each node in the tree by its content _and_ set of allowed decisions, but in this application that would lead to a large amount of redundant content.\n\nI'm having trouble figuring out myself a good way to do this, and I am even having a hard time searching for it-- Googling \"programming story tree\" etc. isn't much help. Is there a name for this sort of application, in particular ways to deal with the problem I specified? Any help is appreciated, thank you!","preferred_answer":"It's important to clearly phrase the question because that's a good deal of the answer, but yeah, you have the correct idea. I'll rephrase again:\n\n- you have a story which is your old school \"choose your own adventure\" style decision tree\n- you have a state map which is essentially a bag of bits\n- any action taken in your tree (i.e. node hop) can have a side effect of setting the value for one (or more) bit(s) in your state map\n- any node in your tree can be conditionally hidden from the player if one (or more) bit(s) is set in your state map.\n- playing the game is walking the tree in rule #1 given the rules #2, #3 and #4.","full_conversation":[{"role":"OP","user_id":"anon_96af86e17553ef2f","comment_id":"ae1uo","kind":"post","text":"I'm looking for the name of a concept or algorithm that I'm trying to implement. Can anyone help?\n\nI'm trying to write a program that is identical in concept to a \"choose your own adventure\" story (but with a very different application). At any point in time, there will be a set of available decisions about what to do next. So, the 'story' has a tree structure to it.\n\nThe problem I have is that which choices you are presented with at any point should depend on which path you took to get to that point. Otherwise there will be logical problems with the 'storyline.' I could characterize each node in the tree by its content _and_ set of allowed decisions, but in this application that would lead to a large amount of redundant content.\n\nI'm having trouble figuring out myself a good way to do this, and I am even having a hard time searching for it-- Googling \"programming story tree\" etc. isn't much help. Is there a name for this sort of application, in particular ways to deal with the problem I specified? Any help is appreciated, thank you!","timestamp":"2009-12-13T00:46:19+00:00","score":6},{"role":"answerer","user_id":"anon_54b7cadf6ac43381","comment_id":"c0h43ev","kind":"comment","text":"It's important to clearly phrase the question because that's a good deal of the answer, but yeah, you have the correct idea. I'll rephrase again:\n\n- you have a story which is your old school \"choose your own adventure\" style decision tree\n- you have a state map which is essentially a bag of bits\n- any action taken in your tree (i.e. node hop) can have a side effect of setting the value for one (or more) bit(s) in your state map\n- any node in your tree can be conditionally hidden from the player if one (or more) bit(s) is set in your state map.\n- playing the game is walking the tree in rule #1 given the rules #2, #3 and #4.","timestamp":"2009-12-13T01:54:59+00:00","score":9},{"role":"OP","user_id":"anon_96af86e17553ef2f","comment_id":"c0h43mi","kind":"comment","text":"Thank you!","timestamp":"2009-12-13T01:59:51+00:00","score":2},{"role":"answerer","user_id":"anon_54b7cadf6ac43381","comment_id":"c0h43tm","kind":"comment","text":"np","timestamp":"2009-12-13T02:05:08+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_96af86e17553ef2f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_54b7cadf6ac43381","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0h43ev","thanks_reply_id":"c0h43mi","post_score":6,"answer_score":9,"preferred_answer_is_top_level":false}} {"user_id":"anon_f6dcf8396a5418a5","answerer_user_id":"anon_5ab5d81fb38668be","subreddit":"programming","timestamp":"2009-12-17T04:41:03+00:00","post_id":"afl23","question":"Where can I learn \"professional\" programming habits/practices/skills?\n\nI've been a hobbyist coder for a long time. I've got a decent grasp of Comp Sci basics, practical experience with quite a few languages, and hundreds of thousands of lines of code under my belt.\n\nI want to make the jump to doing some freelance projects, some contracting, and hopefully maybe get a job (in coding) at some point.\n\nThe problem is, pretty much all of my experience comes from writing code for my own for pet projects, small applications, scripts, et cetera.\n\nI've got a decent grasp on all the \"technical\" aspects of being a programmer, and for any technical areas where I am deficient I can easily educate myself.\n\nThe problem is I can't find any sites that teach the \"other\" stuff.\n\nSource control, bug tracking, best practices, tons of other topics I'm not even aware of.....\n\n\nI recently switched from a very primitive/wacky/hacked together form of \"source control\" to using bazaar, which was like a revelation to me....\n\nI really want to get a solid grounding in all this stuff. I've been learning the basics of using bazaar from the docs, but more sites couldn't hurt and I also want to be at least passingly familiar with other systems as well.\n\n\n...and if anybody has a recommendation for simple/easy bug tracking for my personal projects...whether it be software or just the method you use...would be appreciated.\n\nSo yea, please point me to any websites, books, advice, et cetera on learning all this \"other\" stuff!\n\n\nnote:\nTo a lesser extent I'm also interested in sites about how to start/go about free-lancing/contracting et cetera...for the most part I can find info on these topics, but more couldn't hurt...so if anyone has recommendations please post them.\n\n\nAt any rate I think learning this stuff would help my work on my own even if I never jump to doing it as a professional.\n\n\nEdit: Thanks everyone for the helpful advice.\n\nSo far the number one response has been \"just join a project/use the tools\"....that's certainly good advice and by no means wrong...I plan on doing so.\n\nbut, Let me clarify more what I'm interested in now:\n\n1)What tools are *you* using? Why? etc\n\n2)More Stuff like this:\n\n[Visual Guide to Version Control](http://betterexplained.com/articles/a-visual-guide-to-version-control)\n\n\n[Version Control Introduction](http://www.bbassett.net/talks/version-control/)\n\n(On any of the topics we've discussed.)\n\nOh, and one thing I forgot to mention I'm also interested in: UI design...this is something I never worried about much. If anyone knows any good resources to learn about it, please share.\n\nI'm researching on my own, but I intended this post as a request for people who were looking for the same info I am at one point, and found it, and can now point me to it.","preferred_answer":"learn by doing\n\nto some degree, stackoverflow.com is helpful, but not as much as some people may claim.\n\nreview various tools, install them, and attempt to use them. that's what i suggest.","full_conversation":[{"role":"OP","user_id":"anon_f6dcf8396a5418a5","comment_id":"afl23","kind":"post","text":"Where can I learn \"professional\" programming habits/practices/skills?\n\nI've been a hobbyist coder for a long time. I've got a decent grasp of Comp Sci basics, practical experience with quite a few languages, and hundreds of thousands of lines of code under my belt.\n\nI want to make the jump to doing some freelance projects, some contracting, and hopefully maybe get a job (in coding) at some point.\n\nThe problem is, pretty much all of my experience comes from writing code for my own for pet projects, small applications, scripts, et cetera.\n\nI've got a decent grasp on all the \"technical\" aspects of being a programmer, and for any technical areas where I am deficient I can easily educate myself.\n\nThe problem is I can't find any sites that teach the \"other\" stuff.\n\nSource control, bug tracking, best practices, tons of other topics I'm not even aware of.....\n\n\nI recently switched from a very primitive/wacky/hacked together form of \"source control\" to using bazaar, which was like a revelation to me....\n\nI really want to get a solid grounding in all this stuff. I've been learning the basics of using bazaar from the docs, but more sites couldn't hurt and I also want to be at least passingly familiar with other systems as well.\n\n\n...and if anybody has a recommendation for simple/easy bug tracking for my personal projects...whether it be software or just the method you use...would be appreciated.\n\nSo yea, please point me to any websites, books, advice, et cetera on learning all this \"other\" stuff!\n\n\nnote:\nTo a lesser extent I'm also interested in sites about how to start/go about free-lancing/contracting et cetera...for the most part I can find info on these topics, but more couldn't hurt...so if anyone has recommendations please post them.\n\n\nAt any rate I think learning this stuff would help my work on my own even if I never jump to doing it as a professional.\n\n\nEdit: Thanks everyone for the helpful advice.\n\nSo far the number one response has been \"just join a project/use the tools\"....that's certainly good advice and by no means wrong...I plan on doing so.\n\nbut, Let me clarify more what I'm interested in now:\n\n1)What tools are *you* using? Why? etc\n\n2)More Stuff like this:\n\n[Visual Guide to Version Control](http://betterexplained.com/articles/a-visual-guide-to-version-control)\n\n\n[Version Control Introduction](http://www.bbassett.net/talks/version-control/)\n\n(On any of the topics we've discussed.)\n\nOh, and one thing I forgot to mention I'm also interested in: UI design...this is something I never worried about much. If anyone knows any good resources to learn about it, please share.\n\nI'm researching on my own, but I intended this post as a request for people who were looking for the same info I am at one point, and found it, and can now point me to it.","timestamp":"2009-12-17T04:41:03+00:00","score":28},{"role":"answerer","user_id":"anon_5ab5d81fb38668be","comment_id":"c0hbvxw","kind":"comment","text":"learn by doing\n\nto some degree, stackoverflow.com is helpful, but not as much as some people may claim.\n\nreview various tools, install them, and attempt to use them. that's what i suggest.","timestamp":"2009-12-17T04:48:50+00:00","score":5},{"role":"OP","user_id":"anon_f6dcf8396a5418a5","comment_id":"c0hbx8f","kind":"comment","text":"Thanks for the reply.\n\nCould you recommend some?\n\nThat's part of the problem, I don't even really know what \"tools\" are used...so it's hard to pick X tool and say I'll teach myself to use it.","timestamp":"2009-12-17T05:12:25+00:00","score":3},{"role":"answerer","user_id":"anon_5ab5d81fb38668be","comment_id":"c0hbxmw","kind":"comment","text":"really depends what language you use. i use .net, (java will be similar) so:\n\n- build servers: cruise control, hudson, others.\n- source control: svn (best, imho), git, mercrucial. \n- tools: nant, ant (scripting build tasks, etc)\n- deployment: (disclaimer: this is something i've written: http://www.mirios.com.au/dashy), there are other automatic deployment systems popping up though, and it's a nice thing to do\n- testing: unit testing: nunit, xunit, probably similar tools for java\n- OR/M mappers: undeniably useful, but pick a good one. we use LLBLGen Pro (costs money, totally worth it), but some free ones are around and okay, but for me, in .net, there is nothing better. in java \"hibernate\" is popular.\n- bug tracking: trac [free, great]. there are others\n\nthat's all i can think of from the top of my head. apologies for formatting.","timestamp":"2009-12-17T05:20:20+00:00","score":8},{"role":"OP","user_id":"anon_f6dcf8396a5418a5","comment_id":"c0hby3f","kind":"comment","text":"This is exactly the sort of reply I was hoping for, thank you.\n\nThe majority of this stuff are things that, ideally I probably should have used as a single developer on small projects, but I didn't \"have\" to...\n\nI mostly do javascript, perl, and python stuff right now, but I do some java and I plan on getting into it more because there are a LOT of java jobs in my area.\n\nThanks","timestamp":"2009-12-17T05:29:37+00:00","score":3},{"role":"answerer","user_id":"anon_5ab5d81fb38668be","comment_id":"c0hbyak","kind":"comment","text":"Yeah, Java is a huge area. Have a crack at j2ee, you can get yourself some appserver (tomcat, websphere) and just try and get something running on it :) From there you end up screwing around with JSPs and beans and all sorts of other crap; java has a lot of libs for that. You may also be interested in profilers (\"ants profiler\"), but I personally don't use them. Sometimes useful though. NAnt/Ant will be good to learn, because you really want to automate your builds (via cruise control or hudson [go for hudson, it's more respected and has more plugins]). Once that's done, you get excited about automating other things (i.e. deployments, like i've tried to do) and testing (unit testing, which you run and get reports on, and so on), as well as DB migrations (RedGate is what we use, and that costs money, but there are some free ones around).\n\nAnyway, glad I was marginally helpful :)","timestamp":"2009-12-17T05:33:35+00:00","score":2},{"role":"OP","user_id":"anon_f6dcf8396a5418a5","comment_id":"c0hc2a3","kind":"comment","text":"I'm glad you were helpful too :-)","timestamp":"2009-12-17T07:02:29+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_f6dcf8396a5418a5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5ab5d81fb38668be","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hbvxw","thanks_reply_id":"c0hbx8f","post_score":28,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_678a8189222718cf","answerer_user_id":"anon_72772b7224e99e35","subreddit":"programming","timestamp":"2009-12-17T06:37:45+00:00","post_id":"afm8x","question":"AskProggit: Is there a good place to learn Objective-C/Cocoa?\n\nIt's winter break and I finally have some free time and I'd like to learn how to develop for OS X and iPhone, so it seemed like a good time to learn.\n\nI have previous programming experience (know a bit of C++; C#, Java and Python quite well), so I would appreciate a guide that doesn't start off with \"what is a variable\" or something like that. \n\nThanks :D","preferred_answer":"Pick up a copy of Aaron Hilegass's book, *Cocoa Programming*. Then, join your local Cocoaheads group. (See cocoaheads.org)","full_conversation":[{"role":"OP","user_id":"anon_678a8189222718cf","comment_id":"afm8x","kind":"post","text":"AskProggit: Is there a good place to learn Objective-C/Cocoa?\n\nIt's winter break and I finally have some free time and I'd like to learn how to develop for OS X and iPhone, so it seemed like a good time to learn.\n\nI have previous programming experience (know a bit of C++; C#, Java and Python quite well), so I would appreciate a guide that doesn't start off with \"what is a variable\" or something like that. \n\nThanks :D","timestamp":"2009-12-17T06:37:45+00:00","score":0},{"role":"answerer","user_id":"anon_72772b7224e99e35","comment_id":"c0hc1db","kind":"comment","text":"Pick up a copy of Aaron Hilegass's book, *Cocoa Programming*. Then, join your local Cocoaheads group. (See cocoaheads.org)","timestamp":"2009-12-17T06:40:37+00:00","score":4},{"role":"OP","user_id":"anon_678a8189222718cf","comment_id":"c0hc1q8","kind":"comment","text":"Thanks for the suggestion. Should I be concerned with the fact that the revision of the book is from before Snow Leopard? Or should everything work more or less?","timestamp":"2009-12-17T06:49:09+00:00","score":1},{"role":"answerer","user_id":"anon_72772b7224e99e35","comment_id":"c0hc1sc","kind":"comment","text":"There have been additions to the API and the feature set of the language since the book came out, but it's still an excellent introduction.","timestamp":"2009-12-17T06:50:43+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_678a8189222718cf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_72772b7224e99e35","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hc1db","thanks_reply_id":"c0hc1q8","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_ec2d2ce12751c22d","answerer_user_id":"anon_c3a4fce3b1db9407","subreddit":"programming","timestamp":"2009-12-22T06:14:55+00:00","post_id":"ahcax","question":"Ask Proggit: Have any of you ever wanted to write a compiler or interpreter?\n\nHi everyone,\n\nI'm looking for feedback on a project I would like to start. Basically, I would like to start an educational project built around compiler and interpreter design.\n\nI remember wanting to learn how to write a compiler for the longest time. However, each time I'd approach the subject to learn more, I would run into some kind of hurdle and eventually get distracted by other projects. The hurdle usually came in the form of poor access to good educational information.\n\nThere are books available like the famous Dragon book. However, I feel that there needs to be an alternative entry vector into the field of compiler and interpreter design. The project I'm considering would consist of a simple yet fully functioning compiler (or interpreter) with a heavy amount of documentation. Beyond this trivial implementation, subjects like JIT, stack vs register, dispatching methods, and compiler frameworks could be explored.\n\nI have a small interpreter half written for a compiler design class I took at university. But I also plan on building a web site to hold all the documentation and educational material.\n\nWould any of you benefit from a project like this? I'm willing to go it alone for quite a while, but eventually I would need help from the open source community.\n\nThanks, Nick","preferred_answer":"Excellent idea. I started hacking on a personal dialect of SIOD about eight years ago, and have thought about ways to turn the work into something like what you're talking about for some time. Here are a couple thoughts/suggestions.\n\n* Start from scratch. It'll be easier for you audience to follow along when you start with a blank slate. Otherwise, you're continually explaning whatever code is already there.\n* Develop the code in a public repository, so people can see and review your progress.\n* Blog as you go... each blog post should refer into the source repo for context.\n* Forget about \"subjects like JIT, stack vs register, dispatching methods, and compiler frameworks\" until you have something basic working. Start with something that works end to end and then embellish.\n* Don't forget unit tests. More than many other kinds of development, unit tests pay off big when developing a language... it's just too easy for things to have subtle and unforseen interactions. (My own pet project has about 8,000 unit tests, and realistically needs about 20,000).\n* Don't be afraid to screw up. This is a big enough project that it's inevitable that you will... the key is to learn from it and move on. (I regularly throw away major pieces of work when it turns out they don't fit well. The reason I haven't jumped off a bridge out of frustration is that I've also kept a bunch of stuff around that has fit well.)\n\nAnyway... those are just my thoughts on the matter. If you do this, post it here, preferably multiple times.\n\n(One potential role model you might want to look at is Slava Pestov... he's done a pretty good job of documenting progress on Factor over the years. These days it's all about fairly advanced compiler optimizations, but the idea is the same.)","full_conversation":[{"role":"OP","user_id":"anon_ec2d2ce12751c22d","comment_id":"ahcax","kind":"post","text":"Ask Proggit: Have any of you ever wanted to write a compiler or interpreter?\n\nHi everyone,\n\nI'm looking for feedback on a project I would like to start. Basically, I would like to start an educational project built around compiler and interpreter design.\n\nI remember wanting to learn how to write a compiler for the longest time. However, each time I'd approach the subject to learn more, I would run into some kind of hurdle and eventually get distracted by other projects. The hurdle usually came in the form of poor access to good educational information.\n\nThere are books available like the famous Dragon book. However, I feel that there needs to be an alternative entry vector into the field of compiler and interpreter design. The project I'm considering would consist of a simple yet fully functioning compiler (or interpreter) with a heavy amount of documentation. Beyond this trivial implementation, subjects like JIT, stack vs register, dispatching methods, and compiler frameworks could be explored.\n\nI have a small interpreter half written for a compiler design class I took at university. But I also plan on building a web site to hold all the documentation and educational material.\n\nWould any of you benefit from a project like this? I'm willing to go it alone for quite a while, but eventually I would need help from the open source community.\n\nThanks, Nick","timestamp":"2009-12-22T06:14:55+00:00","score":25},{"role":"answerer","user_id":"anon_c3a4fce3b1db9407","comment_id":"c0hkx85","kind":"comment","text":"Excellent idea. I started hacking on a personal dialect of SIOD about eight years ago, and have thought about ways to turn the work into something like what you're talking about for some time. Here are a couple thoughts/suggestions.\n\n* Start from scratch. It'll be easier for you audience to follow along when you start with a blank slate. Otherwise, you're continually explaning whatever code is already there.\n* Develop the code in a public repository, so people can see and review your progress.\n* Blog as you go... each blog post should refer into the source repo for context.\n* Forget about \"subjects like JIT, stack vs register, dispatching methods, and compiler frameworks\" until you have something basic working. Start with something that works end to end and then embellish.\n* Don't forget unit tests. More than many other kinds of development, unit tests pay off big when developing a language... it's just too easy for things to have subtle and unforseen interactions. (My own pet project has about 8,000 unit tests, and realistically needs about 20,000).\n* Don't be afraid to screw up. This is a big enough project that it's inevitable that you will... the key is to learn from it and move on. (I regularly throw away major pieces of work when it turns out they don't fit well. The reason I haven't jumped off a bridge out of frustration is that I've also kept a bunch of stuff around that has fit well.)\n\nAnyway... those are just my thoughts on the matter. If you do this, post it here, preferably multiple times.\n\n(One potential role model you might want to look at is Slava Pestov... he's done a pretty good job of documenting progress on Factor over the years. These days it's all about fairly advanced compiler optimizations, but the idea is the same.)","timestamp":"2009-12-22T15:23:38+00:00","score":9},{"role":"OP","user_id":"anon_ec2d2ce12751c22d","comment_id":"c0hl4x5","kind":"comment","text":"Awesome. Thanks for the feedback. I've got my partially written interpreter up on github call [Juno](http://github.com/ncarlson/Juno/). Don't laugh :D.\n\nOne big question is whether or not I should target an intermediate code rather than just executing code directly from the AST. With Juno, I exposed some pretty simple stack machine functions. Here's a factorial program that runs on Juno - [Factorial.jas](http://github.com/ncarlson/Juno/blob/master/examples/jas/factorial.jas).","timestamp":"2009-12-22T17:35:39+00:00","score":1},{"role":"answerer","user_id":"anon_c3a4fce3b1db9407","comment_id":"c0hl5tp","kind":"comment","text":"> One big question is whether or not I should target an intermediate code rather than just executing code directly from the AST.\n\nDo both. :-)\n\nWhat I've done is started with SIOD's 'execute the AST' model and am progressively doing more and more work at compile time. Currently, I have Scheme compiling down into a dedicated binary AST type composed of rather primitive operations. The plan is to use this design to build up some key optimizations (inlining, lambda lifting, etc.) and eventually switch (maybe) to a linear bytecode representation. My plan is to measure the performance along the way to get a feel for how modern machines run this kind of code.\n\nPart of the thing that's killed me time-wise is that I've got the compiler running both ahead of time (batch style) and interactively. The build process has the compiler compiling itself, which I'm doing with a separate global environment for the host and target compilers. It's taken a while to get it working right, and taken even longer to fully understand how it's working. The ultimate goal here is Smalltalk like self-hosting. (I've also used this infrastructure to port a lot of the existing C parts of SIOD into Scheme, most notably the reader and the printer.)\n\nOne other piece of advice: I'd make an FFI the first 'big' language feature I implement. Too much of what you want to do is in the 'outside world' not to have a decent way to get there. I've just kept the standard SIOD mechanism for registering primitives, which is painful and repetitive to get right.","timestamp":"2009-12-22T17:48:35+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ec2d2ce12751c22d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c3a4fce3b1db9407","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hkx85","thanks_reply_id":"c0hl4x5","post_score":25,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_734355976dd321ba","answerer_user_id":"anon_bf4c388e9f2fb8f3","subreddit":"programming","timestamp":"2009-12-23T15:29:03+00:00","post_id":"ahvks","question":"Help! How to emulate up/down keys on Mac OS X!\n\nMy Macbook's up/down keys are not working, i suspect someone spilled some beer on it during a party yesterday!\n\nI have to write some code due to tomorrow, and as you may imagine, coding without those two keys in impossible...\n\nDoes anyone know a way to emulate the up/down keys? I'm using Apple Terminal and Mac Os X 10.5","preferred_answer":"Open the Keyboard Viewer and clicking on the images of the keys will deliver the keystrokes. You can turn on the Keyboard Viewer in System Preferences -> International -> Input Menu. You can make it small by clicking the green zoom button.","full_conversation":[{"role":"OP","user_id":"anon_734355976dd321ba","comment_id":"ahvks","kind":"post","text":"Help! How to emulate up/down keys on Mac OS X!\n\nMy Macbook's up/down keys are not working, i suspect someone spilled some beer on it during a party yesterday!\n\nI have to write some code due to tomorrow, and as you may imagine, coding without those two keys in impossible...\n\nDoes anyone know a way to emulate the up/down keys? I'm using Apple Terminal and Mac Os X 10.5","timestamp":"2009-12-23T15:29:03+00:00","score":0},{"role":"answerer","user_id":"anon_bf4c388e9f2fb8f3","comment_id":"c0hmurk","kind":"comment","text":"Open the Keyboard Viewer and clicking on the images of the keys will deliver the keystrokes. You can turn on the Keyboard Viewer in System Preferences -> International -> Input Menu. You can make it small by clicking the green zoom button.","timestamp":"2009-12-23T15:31:58+00:00","score":5},{"role":"OP","user_id":"anon_734355976dd321ba","comment_id":"c0hmv2y","kind":"comment","text":"Thank you! Makes coding a little less painful... However I was looking for a direct way to emulate the keys... Something like Alt+a=UP Alt+b=DOWN.","timestamp":"2009-12-23T15:36:56+00:00","score":2},{"role":"answerer","user_id":"anon_bf4c388e9f2fb8f3","comment_id":"c0hmvdg","kind":"comment","text":"I don't have a fix for that, sorry.","timestamp":"2009-12-23T15:42:09+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_734355976dd321ba","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bf4c388e9f2fb8f3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hmurk","thanks_reply_id":"c0hmv2y","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_62c36c8623376973","answerer_user_id":"anon_c74c63e96348479a","subreddit":"programming","timestamp":"2009-12-23T15:37:23+00:00","post_id":"ahvo1","question":"Ask progitt: What are the options for having a webpage respond to keystrokes for navigation?\n\nI loathe tiny navigational buttons on web pages. I hate trying to hit a 8x8 pixel target on a busy page. It seems like one option to remove this frustration, particularly for a paged site, would be to enable 'next page' and 'previous page' navigation by keystroke.\n\nI realize that there are some serious concerns with having web pages respond to keystrokes, but I am curious if it's possible. What technologies you are aware of that could be used to provide this kind of functionality?","preferred_answer":"It is absolutely possible. You're going to have to familiarize yourself with javascript quite a bit, as there are some higher level things you're going to be using. Quirksmode has a good write-up of it JS events, [here](http://www.quirksmode.org/js/introevents.html). What you're going to have to do is observe all events, pick out the keypress events and then detect which key is being pressed. There are several libraries that make this a bit easier (Prototype & jQuery). Also, google 'event handling' for more.\n\n[Edit] Whatever you do, don't take away the normal navigation, though. There are expected ways to use the web. If users have to re-learn how to interact, they're just going to give up and bounce.","full_conversation":[{"role":"OP","user_id":"anon_62c36c8623376973","comment_id":"ahvo1","kind":"post","text":"Ask progitt: What are the options for having a webpage respond to keystrokes for navigation?\n\nI loathe tiny navigational buttons on web pages. I hate trying to hit a 8x8 pixel target on a busy page. It seems like one option to remove this frustration, particularly for a paged site, would be to enable 'next page' and 'previous page' navigation by keystroke.\n\nI realize that there are some serious concerns with having web pages respond to keystrokes, but I am curious if it's possible. What technologies you are aware of that could be used to provide this kind of functionality?","timestamp":"2009-12-23T15:37:23+00:00","score":1},{"role":"answerer","user_id":"anon_c74c63e96348479a","comment_id":"c0hmynn","kind":"comment","text":"It is absolutely possible. You're going to have to familiarize yourself with javascript quite a bit, as there are some higher level things you're going to be using. Quirksmode has a good write-up of it JS events, [here](http://www.quirksmode.org/js/introevents.html). What you're going to have to do is observe all events, pick out the keypress events and then detect which key is being pressed. There are several libraries that make this a bit easier (Prototype & jQuery). Also, google 'event handling' for more.\n\n[Edit] Whatever you do, don't take away the normal navigation, though. There are expected ways to use the web. If users have to re-learn how to interact, they're just going to give up and bounce.","timestamp":"2009-12-23T16:36:14+00:00","score":2},{"role":"OP","user_id":"anon_62c36c8623376973","comment_id":"c0hmywv","kind":"comment","text":"Thanks for the thorough answer!","timestamp":"2009-12-23T16:40:11+00:00","score":2},{"role":"answerer","user_id":"anon_c74c63e96348479a","comment_id":"c0hmzg9","kind":"comment","text":"Sure. Here is something I wrote in like 5 seconds....I have no idea if it works, but it will be something along these lines:\n\n\n document.onkeydown = function(e){\n\tif (!e) var e = window.event\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\n\tif(code == 13){\n //Enter Key\n\t\twindow.location.href=\"/controller/action\";\n\t} \n\t//You'll need to figure out the exact keycodes\n\t//They differ from OS to OS, also.\n }\n\n\n[Edit] Wait, were you talking about from a user's perspective or a developer's?","timestamp":"2009-12-23T16:49:05+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_62c36c8623376973","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c74c63e96348479a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hmynn","thanks_reply_id":"c0hmywv","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_da35472ab373f3d9","answerer_user_id":"anon_ab797fd987410942","subreddit":"programming","timestamp":"2009-12-24T01:54:03+00:00","post_id":"ai1j8","question":"Need help choosing a data structure\n\nSo, I'm building a server that keeps meta data about a 2D map in a plane. Basically it will keep a bunch of records like\n\n* Feature A is at (x1, y1)\n* Feature B is at (x2, y2)\n\nThe only information clients can get from the server is the features located immediately north, south, east, and west of a given point.\n\nThere will be situations where the size of the map cannot be known or is infinite, so a simple 2D array will run into problems. I've been looking into sparse matrix data structures, but don't know enough about them to make a call.\n\nSo, my requirements for this data structure are:\n\n* It is able to support maps of any size\n* It has a fast(er) lookup time for adjacent positions\n\nI'm thinking I should keep it simple and just use a set data structure; O(n) isn't *too* bad. But I would like this server to scale up to several clients; if anyone knows of a good data structure for this, I'm all ears.","preferred_answer":"http://en.wikipedia.org/wiki/Kd-tree#Nearest_neighbor_search\n\nseemed like what you were looking for at first glance.\n\n> The only information clients can get from the server is the features located immediately north, south, east, and west of a given point.\n\nThis statement makes me question if you are looking for neighbors in only one dimension?","full_conversation":[{"role":"OP","user_id":"anon_da35472ab373f3d9","comment_id":"ai1j8","kind":"post","text":"Need help choosing a data structure\n\nSo, I'm building a server that keeps meta data about a 2D map in a plane. Basically it will keep a bunch of records like\n\n* Feature A is at (x1, y1)\n* Feature B is at (x2, y2)\n\nThe only information clients can get from the server is the features located immediately north, south, east, and west of a given point.\n\nThere will be situations where the size of the map cannot be known or is infinite, so a simple 2D array will run into problems. I've been looking into sparse matrix data structures, but don't know enough about them to make a call.\n\nSo, my requirements for this data structure are:\n\n* It is able to support maps of any size\n* It has a fast(er) lookup time for adjacent positions\n\nI'm thinking I should keep it simple and just use a set data structure; O(n) isn't *too* bad. But I would like this server to scale up to several clients; if anyone knows of a good data structure for this, I'm all ears.","timestamp":"2009-12-24T01:54:03+00:00","score":0},{"role":"answerer","user_id":"anon_ab797fd987410942","comment_id":"c0hnwug","kind":"comment","text":"http://en.wikipedia.org/wiki/Kd-tree#Nearest_neighbor_search\n\nseemed like what you were looking for at first glance.\n\n> The only information clients can get from the server is the features located immediately north, south, east, and west of a given point.\n\nThis statement makes me question if you are looking for neighbors in only one dimension?","timestamp":"2009-12-24T02:16:03+00:00","score":3},{"role":"OP","user_id":"anon_da35472ab373f3d9","comment_id":"c0hnxmm","kind":"comment","text":"This looks like exactly what I'm looking for, thanks!\n\n> This statement makes me question if you are looking for neighbors in only one dimension?\n\nI'm sorry, I don't understand. I'm looking for neighbors in two dimensions: (x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1). The \"given point\" I mentioned is the client's current position on the map.","timestamp":"2009-12-24T02:33:41+00:00","score":1},{"role":"answerer","user_id":"anon_ab797fd987410942","comment_id":"c0ho6iu","kind":"comment","text":"If you are only looking for 4 exact points in a set, then it seems you could just serialize the coordinates for a key and use any data structure that can represent an associative array? (hash, self balancing tree).\n\nExample:\n Assuming map points are (1,1), (4,5), (4,3), (3,4), (9999,9999)\n\n associative array could look like:\n 1,1 => A\n 4,5 => B\n 4,3 => C\n 3,4 => D\n 9999,9999 => E\n \n Client requests lookup for (3,5), so lookup keys:\n 3,4: matches D\n 3,6: miss\n 4,5: matches B\n 2,5: miss\n\nNot knowing your future requirements, but guessing that you might want to find the next nearest location if a 1 unit adjacent isn't found, the kd-tree seems like your best general purpose solution.","timestamp":"2009-12-24T05:49:16+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_da35472ab373f3d9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ab797fd987410942","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hnwug","thanks_reply_id":"c0hnxmm","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_1b11757d33424678","answerer_user_id":"anon_3cdd3c1d79ab397e","subreddit":"programming","timestamp":"2009-12-24T11:46:58+00:00","post_id":"ai6e3","question":"Q: How to emulate polymorphism in FP?\n\nIn FP, you have closures... in which a **specific** function gets tied to a **specific** set of data, allowing this 'piece' of code+data to be moved around and used more or less as an OO 'object'. \n\nBut, then, do FP programmers ever feel a need to override/extend the code/behavior part of this piece, just as OO programmers override/extend a method in the derived class and call it via a superclass reference all the time?\n\nIf yes, how is it done? If no, how is this need worked around? Would appreciate any links / info on this. Thanks...","preferred_answer":"> You said that you use Closures as objects. That's sorta curious. There's lots of reasons to use closures to keep state and things, but as de-facto objects: that's a new one to me.\n\n[Obligatory koan](http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg03277.html).","full_conversation":[{"role":"OP","user_id":"anon_1b11757d33424678","comment_id":"ai6e3","kind":"post","text":"Q: How to emulate polymorphism in FP?\n\nIn FP, you have closures... in which a **specific** function gets tied to a **specific** set of data, allowing this 'piece' of code+data to be moved around and used more or less as an OO 'object'. \n\nBut, then, do FP programmers ever feel a need to override/extend the code/behavior part of this piece, just as OO programmers override/extend a method in the derived class and call it via a superclass reference all the time?\n\nIf yes, how is it done? If no, how is this need worked around? Would appreciate any links / info on this. Thanks...","timestamp":"2009-12-24T11:46:58+00:00","score":0},{"role":"answerer","user_id":"anon_3cdd3c1d79ab397e","comment_id":"c0hohor","kind":"comment","text":"> You said that you use Closures as objects. That's sorta curious. There's lots of reasons to use closures to keep state and things, but as de-facto objects: that's a new one to me.\n\n[Obligatory koan](http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg03277.html).","timestamp":"2009-12-24T12:02:29+00:00","score":10},{"role":"OP","user_id":"anon_1b11757d33424678","comment_id":"c0hohyd","kind":"comment","text":"+1. Thanks ealf. Your link (and, the link inside that page) is, it seems, what I was looking for. I haven't read the whole thing yet but I KNOW what I'm looking for IS most likely in there :-) Thanks again, and Merry Christmas, btw!","timestamp":"2009-12-24T12:17:13+00:00","score":1},{"role":"answerer","user_id":"anon_3cdd3c1d79ab397e","comment_id":"c0hoi0s","kind":"comment","text":"Merry Christmas, all y'all! *goes back to wrapping packages*","timestamp":"2009-12-24T12:20:09+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1b11757d33424678","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3cdd3c1d79ab397e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hohor","thanks_reply_id":"c0hohyd","post_score":0,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_7b4c6477565a84d3","answerer_user_id":"anon_16a59ba4eb17fe1e","subreddit":"programming","timestamp":"2009-12-26T07:30:02+00:00","post_id":"aimlg","question":"AskProggit: How do I find the dominant color in an image? If I want to find images in a collection of images that best match a selected color, what is the best way to do it for a website? Is there a library that can do that?","preferred_answer":"I did this years ago by performing color quantization to a 32-color palette, and then take the most frequent pixel encountered. Slightly hacky, but it did the trick.","full_conversation":[{"role":"OP","user_id":"anon_7b4c6477565a84d3","comment_id":"aimlg","kind":"post","text":"AskProggit: How do I find the dominant color in an image? If I want to find images in a collection of images that best match a selected color, what is the best way to do it for a website? Is there a library that can do that?","timestamp":"2009-12-26T07:30:02+00:00","score":0},{"role":"answerer","user_id":"anon_16a59ba4eb17fe1e","comment_id":"c0hr71d","kind":"comment","text":"I did this years ago by performing color quantization to a 32-color palette, and then take the most frequent pixel encountered. Slightly hacky, but it did the trick.","timestamp":"2009-12-26T08:34:50+00:00","score":2},{"role":"OP","user_id":"anon_7b4c6477565a84d3","comment_id":"c0hrktk","kind":"comment","text":"Thanks, that's half the problem solved - the other half is to find the similarity between that pixel color and the color I'm looking for to determine if it's close enough.","timestamp":"2009-12-26T17:58:44+00:00","score":1},{"role":"answerer","user_id":"anon_16a59ba4eb17fe1e","comment_id":"c0ht3tn","kind":"comment","text":"That is pretty simple; calculate the distance from your color to the most frequent quantized color in 3D space (ie sqrt(r_delta^2+g_delta^2+b_delta^2) - since the human eye is more susceptible to green, you might want to perform color space conversion before calculating the distance (i.e. YCbCr).","timestamp":"2009-12-27T20:32:54+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7b4c6477565a84d3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_16a59ba4eb17fe1e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hr71d","thanks_reply_id":"c0hrktk","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_dd94c7205de9a2fd","answerer_user_id":"anon_5f7847ea89fdc898","subreddit":"programming","timestamp":"2009-12-28T23:09:46+00:00","post_id":"ajbx8","question":"What should I do with my working, playable 3d MOPRG?\n\nScreenshots at [evidyon.com](http://www.evidyon.com/gallery.html)\n\n\nI've spent a good number of years teaching myself to code and write games. Throughout college \"Evidyon\" has been my hobby project, and last summer a few friends (on the content side) and I finally got it to a playable state. This is an isometric-3d fast-paced multiplayer fantasy video game. It's client/server model, features real-time combat and has a persistent world. The game is more than 140 thousand lines (of my own code) and is written on top of DirectX 9/ENet/sqlite.\n\nIt has its own extensive game editor, server, client, auto-updating launcher, patching utility, and oodles of custom 3d content. There is a particle effects system, bone-based skinned mesh support, several kinds of monster AI, a complete GUI framework, sound effect integration and tons of code relating to gameplay (spells, races, classes, monsters, maps, dungeons, etc). Everything from spells, items and maps to game-events and bug-fixes can be pushed out with only a few clicks.\n\nThe game was played actively in the past with dozens of people online at any given time and there are more than a few thousand accounts on the active server.\n\n \n\nHere's the problem: It's unlikely I'll have a significant amount of time to commit to the project in the future.\n \n \nWhile this project was really fun to work on, one person can't turn it into a business that is able to compete with the giant, free MMOs out there today. With classes this semester, I already had essentially no time to work on the project. Updates were lacking and the player-base has all but vanished.\n\nWhile it has some issues--the graphics are entirely based on the extremely outdated fixed-function pipeline--it's an MORPG coded by 1 person that really works. I know firsthand how hard it is to learn to program games, and there is so much good code in this project that it would be a shame just to see it collect dust on my hard drive.\n\nOpen-sourcing is a possibility, but I don't want to just dump this thing on the internet and look the other way. I'm considering writing articles for GameDev.net on some of the various parts, and pulling out modules that showcase interesting or hard-to-find functionality (like the slick navigation algorithm the monsters use, or the way the game feels lag-free even under 400 ms of jittery packet delay).\n\n \nAny ideas?\n\n \n \n \n\n**tl;dr** I created an MORPG and people played it for a while, but I have no time to develop it further. What should I do?\n\n\n**edit** Thank you everyone who has responded! It seems that there are plenty of people interested in the source code of the game, and that it would be useful enough for me to devote a bit of time to getting it and some tutorials online. I'll start cleaning things up and preparing material, and hope to come back with a public release before school resumes in February. Thanks again!","preferred_answer":"Figured it out.\n\n[Network]\nServer1=evidyon.no-ip.org\n\nChange the config to have that at the bottom instead of what's there now. The game has potential. Installation was easy, movement was slick, and one of the guards came running over to defend.. that was cool.","full_conversation":[{"role":"OP","user_id":"anon_dd94c7205de9a2fd","comment_id":"ajbx8","kind":"post","text":"What should I do with my working, playable 3d MOPRG?\n\nScreenshots at [evidyon.com](http://www.evidyon.com/gallery.html)\n\n\nI've spent a good number of years teaching myself to code and write games. Throughout college \"Evidyon\" has been my hobby project, and last summer a few friends (on the content side) and I finally got it to a playable state. This is an isometric-3d fast-paced multiplayer fantasy video game. It's client/server model, features real-time combat and has a persistent world. The game is more than 140 thousand lines (of my own code) and is written on top of DirectX 9/ENet/sqlite.\n\nIt has its own extensive game editor, server, client, auto-updating launcher, patching utility, and oodles of custom 3d content. There is a particle effects system, bone-based skinned mesh support, several kinds of monster AI, a complete GUI framework, sound effect integration and tons of code relating to gameplay (spells, races, classes, monsters, maps, dungeons, etc). Everything from spells, items and maps to game-events and bug-fixes can be pushed out with only a few clicks.\n\nThe game was played actively in the past with dozens of people online at any given time and there are more than a few thousand accounts on the active server.\n\n \n\nHere's the problem: It's unlikely I'll have a significant amount of time to commit to the project in the future.\n \n \nWhile this project was really fun to work on, one person can't turn it into a business that is able to compete with the giant, free MMOs out there today. With classes this semester, I already had essentially no time to work on the project. Updates were lacking and the player-base has all but vanished.\n\nWhile it has some issues--the graphics are entirely based on the extremely outdated fixed-function pipeline--it's an MORPG coded by 1 person that really works. I know firsthand how hard it is to learn to program games, and there is so much good code in this project that it would be a shame just to see it collect dust on my hard drive.\n\nOpen-sourcing is a possibility, but I don't want to just dump this thing on the internet and look the other way. I'm considering writing articles for GameDev.net on some of the various parts, and pulling out modules that showcase interesting or hard-to-find functionality (like the slick navigation algorithm the monsters use, or the way the game feels lag-free even under 400 ms of jittery packet delay).\n\n \nAny ideas?\n\n \n \n \n\n**tl;dr** I created an MORPG and people played it for a while, but I have no time to develop it further. What should I do?\n\n\n**edit** Thank you everyone who has responded! It seems that there are plenty of people interested in the source code of the game, and that it would be useful enough for me to devote a bit of time to getting it and some tutorials online. I'll start cleaning things up and preparing material, and hope to come back with a public release before school resumes in February. Thanks again!","timestamp":"2009-12-28T23:09:46+00:00","score":101},{"role":"answerer","user_id":"anon_5f7847ea89fdc898","comment_id":"c0hvakt","kind":"comment","text":"Figured it out.\n\n[Network]\nServer1=evidyon.no-ip.org\n\nChange the config to have that at the bottom instead of what's there now. The game has potential. Installation was easy, movement was slick, and one of the guards came running over to defend.. that was cool.","timestamp":"2009-12-29T02:47:35+00:00","score":1},{"role":"OP","user_id":"anon_dd94c7205de9a2fd","comment_id":"c0hvcgl","kind":"comment","text":"Thanks for pointing that fix out, I forgot people might actually want to run it! Hah. Anyway, glad you liked it.","timestamp":"2009-12-29T03:24:04+00:00","score":3},{"role":"answerer","user_id":"anon_5f7847ea89fdc898","comment_id":"c0hve3p","kind":"comment","text":"Is this C++? What software did you use for the graphics and 3d models?","timestamp":"2009-12-29T03:56:13+00:00","score":1},{"role":"OP","user_id":"anon_dd94c7205de9a2fd","comment_id":"c0hve8h","kind":"comment","text":"Yes, this is written in pure C++. Photoshop for the textures, and the amazingly awesome [FragMotion](http://www.fragmosoft.com/) for the meshes.","timestamp":"2009-12-29T03:58:58+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_dd94c7205de9a2fd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5f7847ea89fdc898","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hvakt","thanks_reply_id":"c0hvcgl","post_score":101,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_136cc9e6862d57d6","answerer_user_id":"anon_81d4c5c1d200409a","subreddit":"programming","timestamp":"2009-12-30T05:51:56+00:00","post_id":"ajshr","question":"Regarding reddit's database model\n\nHi,\nI wanna know how Reddit stores the tree structure of its conversations in database? Does it use XML to store the tree structure and apply stylesheet to it? How does it achieve its spectacular n level hierarchy?","preferred_answer":">I am being honest,\n\nSorry. And you deserve an honest answer. \nBut we aren not totally clear what part of it you don't understand.\n\nLook at it like this: There is one \"array\" type in PHP. \nDo you think the internal representation thinks of it as a hierarchy?\nNope. It's just a dictionary (like a row in a database) that may happen to contain other dictionaries. \n\nHere is a piece of example PHP code (i normally don't write in PHP anymore but the languages I use mostly have frameworks that create models and everything, I have only done manual SQL in php). So this example is PHP, my apologies. In ruby for example, you can just install a plugin and turn on act_as_tree. But that wouldn't be very educational now would it.\n\n function q( $qry, $arg ){\n // some code that executes a query and replaces question marks \n // in the query with the _escaped_ arguments from $arg\n // it returns all the results as an array\n // this should have been part of PHP, but PHP sucks so it isn't.\n }\n\n function draw_node( node ){\n $row = q (\" SELECT * FROM comments WHERE parent=?\", array( node ));\n foreach ($row in $result) {\n print \"
\" + htmlescapechars( $row['comment'] ) \"
\"\n print \"
\"\n draw_node( $row['id'] )\n print \"
\"\n }\n }\n \nThe comment table is very simple here:\n\n- id: auto generated/incremented id\n- comment: the text of the comment\n- parent: the id of the parent comment; this is null for top level comments\n\nThe thing you seem to be confused about is that one would _not_ query the whole tree at once. I mean one query that just returns the whole tree. \n\nAlthough it is possible in SQL with a stored procedure. But you still have to rebuild the tree from the data returned. It is even possible upto a certain level if you use left joins. But that get's ugly really fast. (and the end result would be a lot of duplicated data for every row).\n\nIf the amount of queries create a performance problem, it's much wiser to cache the tree, or if it's constant, the whole html of the tree. I don't know if there are any smart caching libraries out there for PHP.\n\nBut it's not that hard to do yourself. Here is an example:\n\n function qtree( $table, $key, $node )\n {\n $result = q(\"SELECT * from `?` where `id`=? \", array( $table, $node )\n if (! length ($result) ) return null;\n $result = $result[0]\n $result['children'] = array ();\n $children = q(\"SELECT `id` from `?` where `?`=?\", array( $table, $key, $node )\n\n foreach ( $child in $children ){\n $result['children'][$child['id']] = qtree( $table, $key, $child['id'] )\n }\n return $result;\n }\n\n function cache_tree( $table, $key, $node, $age ){\n $r = q(\"SELECT * FROM `tree_cache` WHERE `table`='?' AND `key`=? AND `node`=? AND `updated_at` > ?\", array($table, $key, $node, $age)\n if( !length($r) ) then{\n q(\"DELETE FROM `tree_cache` WHERE `table`='?', `key`='?', `node`=?\", array($tree, $key, $node)\n q(\"INSERT INTO `tree_cache` SET `table`='?', `key`=?, `node`=?, `tree`='?' \", array( $table, $key, $node, json_encode( qtree( $table, $key, $node ) ) );\n return cache_tree( $table, $key, $node, $age );\n }\n return json_decode( $r['tree'], true )\n } \n\nNotice that you give the give the cache-tree function an _age_ argument.\nThis should be the minimum timestamp for the cache. Otherwise it will regenerate the cache.\n\nThis uses a tree_cache table which has the following columns:\n\n- table: char of the table name\n- node: the id within that table (could be null)\n- key: char of the key used to make the tree \n- tree: actual tree data stored as json for space reasons\n- updated_at: timestamp\n\nMake sure there is an index on (table, key, node) together.\n\nIf you don't want to bother with the _age_ and always want the data be real time, use something like this:\n\n function smart_cache_tree( $table, $key, $node ){\n $r = q(\"SELECT MAX(`updated_at`) as `age` FROM $table\")\n if (!length($r)) return null;\n $r = $r[0];\n return cache_tree( $table, $key, $node, $r['age'] )\n }\n \nHowever, make sure the target table has a `updated_at` column _and_ that there is an INDEX on that column.\n\nIt likely has bugs the above code. PHP is a long long time ago for me.\nBut the general idea should be clear.\n\nPS. I'm using json-encode and json-decode for serialisation. But if I'm rememberring correctly those functions have bugs. Perhaps you want to serialize differently.","full_conversation":[{"role":"OP","user_id":"anon_136cc9e6862d57d6","comment_id":"ajshr","kind":"post","text":"Regarding reddit's database model\n\nHi,\nI wanna know how Reddit stores the tree structure of its conversations in database? Does it use XML to store the tree structure and apply stylesheet to it? How does it achieve its spectacular n level hierarchy?","timestamp":"2009-12-30T05:51:56+00:00","score":0},{"role":"answerer","user_id":"anon_81d4c5c1d200409a","comment_id":"c0hxukv","kind":"comment","text":">I am being honest,\n\nSorry. And you deserve an honest answer. \nBut we aren not totally clear what part of it you don't understand.\n\nLook at it like this: There is one \"array\" type in PHP. \nDo you think the internal representation thinks of it as a hierarchy?\nNope. It's just a dictionary (like a row in a database) that may happen to contain other dictionaries. \n\nHere is a piece of example PHP code (i normally don't write in PHP anymore but the languages I use mostly have frameworks that create models and everything, I have only done manual SQL in php). So this example is PHP, my apologies. In ruby for example, you can just install a plugin and turn on act_as_tree. But that wouldn't be very educational now would it.\n\n function q( $qry, $arg ){\n // some code that executes a query and replaces question marks \n // in the query with the _escaped_ arguments from $arg\n // it returns all the results as an array\n // this should have been part of PHP, but PHP sucks so it isn't.\n }\n\n function draw_node( node ){\n $row = q (\" SELECT * FROM comments WHERE parent=?\", array( node ));\n foreach ($row in $result) {\n print \"
\" + htmlescapechars( $row['comment'] ) \"
\"\n print \"
\"\n draw_node( $row['id'] )\n print \"
\"\n }\n }\n \nThe comment table is very simple here:\n\n- id: auto generated/incremented id\n- comment: the text of the comment\n- parent: the id of the parent comment; this is null for top level comments\n\nThe thing you seem to be confused about is that one would _not_ query the whole tree at once. I mean one query that just returns the whole tree. \n\nAlthough it is possible in SQL with a stored procedure. But you still have to rebuild the tree from the data returned. It is even possible upto a certain level if you use left joins. But that get's ugly really fast. (and the end result would be a lot of duplicated data for every row).\n\nIf the amount of queries create a performance problem, it's much wiser to cache the tree, or if it's constant, the whole html of the tree. I don't know if there are any smart caching libraries out there for PHP.\n\nBut it's not that hard to do yourself. Here is an example:\n\n function qtree( $table, $key, $node )\n {\n $result = q(\"SELECT * from `?` where `id`=? \", array( $table, $node )\n if (! length ($result) ) return null;\n $result = $result[0]\n $result['children'] = array ();\n $children = q(\"SELECT `id` from `?` where `?`=?\", array( $table, $key, $node )\n\n foreach ( $child in $children ){\n $result['children'][$child['id']] = qtree( $table, $key, $child['id'] )\n }\n return $result;\n }\n\n function cache_tree( $table, $key, $node, $age ){\n $r = q(\"SELECT * FROM `tree_cache` WHERE `table`='?' AND `key`=? AND `node`=? AND `updated_at` > ?\", array($table, $key, $node, $age)\n if( !length($r) ) then{\n q(\"DELETE FROM `tree_cache` WHERE `table`='?', `key`='?', `node`=?\", array($tree, $key, $node)\n q(\"INSERT INTO `tree_cache` SET `table`='?', `key`=?, `node`=?, `tree`='?' \", array( $table, $key, $node, json_encode( qtree( $table, $key, $node ) ) );\n return cache_tree( $table, $key, $node, $age );\n }\n return json_decode( $r['tree'], true )\n } \n\nNotice that you give the give the cache-tree function an _age_ argument.\nThis should be the minimum timestamp for the cache. Otherwise it will regenerate the cache.\n\nThis uses a tree_cache table which has the following columns:\n\n- table: char of the table name\n- node: the id within that table (could be null)\n- key: char of the key used to make the tree \n- tree: actual tree data stored as json for space reasons\n- updated_at: timestamp\n\nMake sure there is an index on (table, key, node) together.\n\nIf you don't want to bother with the _age_ and always want the data be real time, use something like this:\n\n function smart_cache_tree( $table, $key, $node ){\n $r = q(\"SELECT MAX(`updated_at`) as `age` FROM $table\")\n if (!length($r)) return null;\n $r = $r[0];\n return cache_tree( $table, $key, $node, $r['age'] )\n }\n \nHowever, make sure the target table has a `updated_at` column _and_ that there is an INDEX on that column.\n\nIt likely has bugs the above code. PHP is a long long time ago for me.\nBut the general idea should be clear.\n\nPS. I'm using json-encode and json-decode for serialisation. But if I'm rememberring correctly those functions have bugs. Perhaps you want to serialize differently.","timestamp":"2009-12-30T09:12:39+00:00","score":3},{"role":"OP","user_id":"anon_136cc9e6862d57d6","comment_id":"c0hxusv","kind":"comment","text":"Thanks man, this is elaborate! \nMy actual question of database representation still remains though..","timestamp":"2009-12-30T09:21:23+00:00","score":0},{"role":"answerer","user_id":"anon_81d4c5c1d200409a","comment_id":"c0hxvti","kind":"comment","text":"Ehm, I thought I was quite clear about that.\n\nThe comment table is very simple here:\n\n- id: auto generated/incremented id\n- comment: the text of the comment\n- parent: the id of the parent comment; this is null for top level comments\n\nBut if that isn't clear enough, here is ACTUAL sql code to create the tree.\n\n CREATE TABLE `comments` (\n `id` INT NOT NULL COMMENT 'the primary key',\n `parent` INT NOT NULL COMMENT 'the id of the parent comment',\n `comment` TEXT NOT NULL COMMENT 'the actual comment',\n PRIMARY KEY ( `id` )\n ) \n\nSo this tree:\n\n \"PHP Sucks\"\n - \"I know\"\n - \"It's horrible\"\n - \"You are a troll, you know?\"\n - \"How do you do a tree in php?\"\n - \"You mean in sql, right?\"\n - \"It's not the language, it's the users and the design patterns that just are all wrong\" \n \nWould be something like:\n\n insert into `comments` (id, parent, comment) VALUES\n (0, NULL, \"PHP Sucks\"),\n (1, 0, \"I know\"),\n (2, 0, \"It's horrible\"),\n (3, 2, \"You are a troll, you know?\")\n (4, 0, \"How do you do a tree in php?\"),\n (5, 4, \"You mean in sql, right?\")\n (6, 0, \"It's not the language, it's the users and the design patterns that just ...\")","timestamp":"2009-12-30T10:00:52+00:00","score":2},{"role":"OP","user_id":"anon_136cc9e6862d57d6","comment_id":"c0hxvvm","kind":"comment","text":"It's clear this time. Embarrassed and grateful!","timestamp":"2009-12-30T10:03:07+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_136cc9e6862d57d6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_81d4c5c1d200409a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hxukv","thanks_reply_id":"c0hxusv","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_5f074b83b8ed6752","answerer_user_id":"anon_56c88f8a4fdd9a1d","subreddit":"programming","timestamp":"2009-12-31T01:41:29+00:00","post_id":"ak3ch","question":"What road should I take to develop on the iPhone?\n\nHave a Mac? Check. Have Xcode? Check. Have an iPhone? Check. Know Objective-C? Negative.\n\nMy question is, in order to learn Objective-C is it necessary to have a good understanding of C? My programming skills are in the Javascript, Ruby, and PHP spectrum. The goal here is the shortest path to take for iPhone development, so is it possible to learn Objective-C without learning C first? If so, does anyone recommend any good books/resources?","preferred_answer":"[iPhone Application Programming](http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.2024353965.02024353968) @ Standford University free via iTunes U ([course homepage](http://cs193p.stanford.edu/))\n\nThe lectures and assignments are illustrative and to the point, focusing mainly on the Cocoa way of doing things. They take you through a lot of the fundamentals of XCode and Cocoa development in screencast fashion, including browsing the Cocoa API through the built-in documentation. It's definitely worth your time, even if you don't follow through all the way to the end, at which point you'll have a functioning Twitter client that looks and feels like a proper iPhone app.\n\nJavascript, Ruby and PHP are different enough from each other that I don't think Objective-C will be a problem for you.","full_conversation":[{"role":"OP","user_id":"anon_5f074b83b8ed6752","comment_id":"ak3ch","kind":"post","text":"What road should I take to develop on the iPhone?\n\nHave a Mac? Check. Have Xcode? Check. Have an iPhone? Check. Know Objective-C? Negative.\n\nMy question is, in order to learn Objective-C is it necessary to have a good understanding of C? My programming skills are in the Javascript, Ruby, and PHP spectrum. The goal here is the shortest path to take for iPhone development, so is it possible to learn Objective-C without learning C first? If so, does anyone recommend any good books/resources?","timestamp":"2009-12-31T01:41:29+00:00","score":0},{"role":"answerer","user_id":"anon_56c88f8a4fdd9a1d","comment_id":"c0hz8yr","kind":"comment","text":"[iPhone Application Programming](http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.2024353965.02024353968) @ Standford University free via iTunes U ([course homepage](http://cs193p.stanford.edu/))\n\nThe lectures and assignments are illustrative and to the point, focusing mainly on the Cocoa way of doing things. They take you through a lot of the fundamentals of XCode and Cocoa development in screencast fashion, including browsing the Cocoa API through the built-in documentation. It's definitely worth your time, even if you don't follow through all the way to the end, at which point you'll have a functioning Twitter client that looks and feels like a proper iPhone app.\n\nJavascript, Ruby and PHP are different enough from each other that I don't think Objective-C will be a problem for you.","timestamp":"2009-12-31T01:57:31+00:00","score":2},{"role":"OP","user_id":"anon_5f074b83b8ed6752","comment_id":"c0hz91j","kind":"comment","text":"Thanks :-)\n\nBut should I pick up C before Objective-C? I'm sure learning it \"can't hurt\", at the very least, but is it something that's pretty much necessary?","timestamp":"2009-12-31T01:59:04+00:00","score":1},{"role":"answerer","user_id":"anon_56c88f8a4fdd9a1d","comment_id":"c0hz9xh","kind":"comment","text":"Just dive into Objective-C and don't sweat it. It wouldn't hurt, sure, but I would imagine that with Javascript, Ruby and PHP experience you're at or very near to a point where learning another language is just learning another language.\n\nIf you hit a roadblock that is truly due to the language (which I would expect is unlikely), then yes, maybe you'll want to take a look at another C-derived language for a while before you return to Objective-C.","timestamp":"2009-12-31T02:16:02+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5f074b83b8ed6752","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_56c88f8a4fdd9a1d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0hz8yr","thanks_reply_id":"c0hz91j","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_c050e0f80d0394a5","answerer_user_id":"anon_677c3e98a539c9b7","subreddit":"programming","timestamp":"2010-01-01T03:35:45+00:00","post_id":"akfaf","question":"Ask Proggit: What language is the online game Yahoo towers built on?\n\nJust curious.","preferred_answer":"It needed to load an applet, so Java.","full_conversation":[{"role":"OP","user_id":"anon_c050e0f80d0394a5","comment_id":"akfaf","kind":"post","text":"Ask Proggit: What language is the online game Yahoo towers built on?\n\nJust curious.","timestamp":"2010-01-01T03:35:45+00:00","score":0},{"role":"answerer","user_id":"anon_677c3e98a539c9b7","comment_id":"c0i1c9t","kind":"comment","text":"It needed to load an applet, so Java.","timestamp":"2010-01-01T04:03:24+00:00","score":2},{"role":"OP","user_id":"anon_c050e0f80d0394a5","comment_id":"c0i1dcu","kind":"comment","text":"Thank you. \n\nI also have another question. Is Java applet dead? Does anyone still use it?","timestamp":"2010-01-01T04:38:18+00:00","score":1},{"role":"answerer","user_id":"anon_677c3e98a539c9b7","comment_id":"c0i1dg5","kind":"comment","text":"What do you mean, \"is Java applet dead\" ?\n\nI didn't see many people in the game rooms so it looks pretty dead to me. But hey, it's New Years Eve, people probably have better things to do tonight than play a Java game. (Hopefully =p)","timestamp":"2010-01-01T04:41:18+00:00","score":1},{"role":"OP","user_id":"anon_c050e0f80d0394a5","comment_id":"c0i1drm","kind":"comment","text":"I don't mean the game itself. I wanted to know if people like programmers still use applets.","timestamp":"2010-01-01T04:50:47+00:00","score":1},{"role":"answerer","user_id":"anon_677c3e98a539c9b7","comment_id":"c0i1dvt","kind":"comment","text":"Java applets are still used whenever people want to embed Java applets on a webpage....","timestamp":"2010-01-01T04:54:33+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_c050e0f80d0394a5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_677c3e98a539c9b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0i1c9t","thanks_reply_id":"c0i1dcu","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_1ee3f2fa504fcc94","answerer_user_id":"anon_a422682ba3dff109","subreddit":"programming","timestamp":"2010-01-01T06:37:57+00:00","post_id":"akg8s","question":"Clojure - A passable Lisp?\n\nHi all,\n\nAfter reading the article [The Nature of Lisp](http://www.defmacro.org/ramblings/lisp.html) I've finally decided to give Lisp a try. Given that I'm a typical Java programmer, Clojure seemed to be a nice choice. But is Clojure a passable Lisp? Do Clojure programmers feel that they have achieved *teh* nirvana after getting down and dirty with Clojure? Does being tied to the JVM make Clojure an \"almost Lisp\" implementation? Would I be better off with some other Lisp implementation as a beginner?\n\nSuggestions much appreciated. TIA!","preferred_answer":"I suggest the path to nivana is spelled SICP.\n\n http://mitpress.mit.edu/sicp","full_conversation":[{"role":"OP","user_id":"anon_1ee3f2fa504fcc94","comment_id":"akg8s","kind":"post","text":"Clojure - A passable Lisp?\n\nHi all,\n\nAfter reading the article [The Nature of Lisp](http://www.defmacro.org/ramblings/lisp.html) I've finally decided to give Lisp a try. Given that I'm a typical Java programmer, Clojure seemed to be a nice choice. But is Clojure a passable Lisp? Do Clojure programmers feel that they have achieved *teh* nirvana after getting down and dirty with Clojure? Does being tied to the JVM make Clojure an \"almost Lisp\" implementation? Would I be better off with some other Lisp implementation as a beginner?\n\nSuggestions much appreciated. TIA!","timestamp":"2010-01-01T06:37:57+00:00","score":0},{"role":"answerer","user_id":"anon_a422682ba3dff109","comment_id":"c0i1h93","kind":"comment","text":"I suggest the path to nivana is spelled SICP.\n\n http://mitpress.mit.edu/sicp","timestamp":"2010-01-01T06:47:11+00:00","score":3},{"role":"OP","user_id":"anon_1ee3f2fa504fcc94","comment_id":"c0i1huy","kind":"comment","text":"That seems so..academic and old; but I'll still give it a try. Thanks.","timestamp":"2010-01-01T07:08:02+00:00","score":-2},{"role":"answerer","user_id":"anon_a422682ba3dff109","comment_id":"c0i1iu6","kind":"comment","text":"Hopefully you won't see it that way after just the first few pages. It is many peoples favorite programming text ever. It isn't a dry text. The footnotes are fun too.","timestamp":"2010-01-01T07:39:16+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1ee3f2fa504fcc94","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a422682ba3dff109","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0i1h93","thanks_reply_id":"c0i1huy","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_b477753e11ef235b","answerer_user_id":"anon_f53f7e35febc415c","subreddit":"programming","timestamp":"2010-01-02T04:05:41+00:00","post_id":"akode","question":"Looking for some ideas for a new programming language","preferred_answer":"Do what dylan does. Anything after the word \"end\" is ignored (treated like a comment).\n\nSo you can type \"end\" or you can type \"end something or another\" and it would be the same thing.\n\nWhile you are at it crib the \"alias\" command from ruby and alias \"}\" to \"end\".\n\nVoila you have now covered cases B,C, and D.\n\nif you really want to go nuts you can alias { to a no-op of some sort and you will have covered all your cases. \n\n\nPersonally I would save the braces for something else.","full_conversation":[{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"akode","kind":"post","text":"Looking for some ideas for a new programming language","timestamp":"2010-01-02T04:05:41+00:00","score":0},{"role":"answerer","user_id":"anon_f53f7e35febc415c","comment_id":"c0i2qx2","kind":"comment","text":"Do what dylan does. Anything after the word \"end\" is ignored (treated like a comment).\n\nSo you can type \"end\" or you can type \"end something or another\" and it would be the same thing.\n\nWhile you are at it crib the \"alias\" command from ruby and alias \"}\" to \"end\".\n\nVoila you have now covered cases B,C, and D.\n\nif you really want to go nuts you can alias { to a no-op of some sort and you will have covered all your cases. \n\n\nPersonally I would save the braces for something else.","timestamp":"2010-01-02T04:51:47+00:00","score":1},{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"c0i2ufu","kind":"comment","text":"Thank you, I really like your suggestion to copy dylan.\r\n\r\nAs for the brace, I'm thinking I need an entirely different symbol to translate to end. I tried \".\", that that's way too hard to pick out of an otherwise empty line..","timestamp":"2010-01-02T06:06:01+00:00","score":1},{"role":"answerer","user_id":"anon_f53f7e35febc415c","comment_id":"c0i2vuu","kind":"comment","text":"You could go the php way and make keywords like endif, endwhile etc.\n\nI don't know what other sigil makes sense though. Period may seem like a good choice because we use it in english but really ending a definition is more like ending a paragraph and not a sentence.\n\nYou could take the python approach and significant indents.\n\nOr M\\maybe take a hint from markup. Double carriage return marks an end. I mean if you can have significant horizontal whitespace you can have significant vertical whitespace right?\n\nOTOH I fucking hate significant whitespace.","timestamp":"2010-01-02T06:36:47+00:00","score":2},{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"c0i2wns","kind":"comment","text":"> You could go the php way and make keywords like endif, endwhile etc.\r\n\r\nI don't think I want that, though it would solve one question. Currently I'm debating two ways of handling what comes after end.\r\n\r\n1. Treat is like a comment as you suggested eariler.\r\n\r\n2. If there is \"end if\", make sure it is actually ending an if block. If there is just \"end\", assume the programmer knows what he is doing.\r\n\r\n> Double carriage return marks an end.\r\n\r\nTempting, really tempting. But expect that will start to suck as soon as you write a block that is more than a a few lines long.","timestamp":"2010-01-02T06:55:21+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f53f7e35febc415c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0i2qx2","thanks_reply_id":"c0i2ufu","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_ceb153b89e40941b","answerer_user_id":"anon_59e609d1ff198342","subreddit":"programming","timestamp":"2010-01-02T21:39:02+00:00","post_id":"akvx6","question":"Best Linux/UNIX way to step through and debug C program?\n\nDammit, Jim, I'm a sysadmin not a programmer! \n\nSo I've been tasked with debugging this abandoned C program on a server I admin. The last time I did any major screwing around in C, Borland's Turbo C/C++ IDE was fresh and kicked ass. Not only am I woefully rusty in my C, but I'm clueless as to getting a UNIX enviroment/IDE that comes close to the Tubo C IDE I so fondly remember.\n\nI need a way to trace and debug this puppy ASAP. I don't care if it's console mode (any good emacs tutorials out there for this?) or a huge bloated GUI will all the bells and whistles (does Eclipse have these kinds of features?).\n\nAny and all pointers would be appreciated.\n\nEDIT: Yes, I have the source file. The platform is FreeBSD 8.0. It's nothing so complicated as a memory leak or anything obscure. It's just a relatively simple program which has begun puking since the the rollover to 2010. The author(s) are long since gone. If I was an experienced C coder, I'd be able to fix this in my sleep. As I'm just an admin with *light* experience in C (CS101 twenty years ago), I need a visual crutch to help me track down and try to fix the bug.\n\nThus far, \"kdbg\" has been the most immediately helpful, as I can easily step along the code and watch all the variables as they change. Eclipse had problems and Netbeans is very slick, though both are sluggish and absolute beasts in terms of system resources (relatively speaking, anyway). What I should be doing is re-learning to code in C while learning one of these two nicer IDEs. Maybe when I have the time.\n\nFINAL EDIT: I've solved the problem. See [here](http://www.reddit.com/r/programming/comments/akvx6/best_linuxunix_way_to_step_through_and_debug_c/c0i4zqk) for my response to a post about the nature of the problem. In the end, I used emacs/gdb and kdbg, the latter being the most useful, while I'm determined to get more versed with the former for future debugging sessions. Thanks for all the suggestions.","preferred_answer":"> something a little more graphical\n\nThis is UNIX, there's [no way](http://en.wikipedia.org/wiki/Data_Display_Debugger) they would have something like that.","full_conversation":[{"role":"OP","user_id":"anon_ceb153b89e40941b","comment_id":"akvx6","kind":"post","text":"Best Linux/UNIX way to step through and debug C program?\n\nDammit, Jim, I'm a sysadmin not a programmer! \n\nSo I've been tasked with debugging this abandoned C program on a server I admin. The last time I did any major screwing around in C, Borland's Turbo C/C++ IDE was fresh and kicked ass. Not only am I woefully rusty in my C, but I'm clueless as to getting a UNIX enviroment/IDE that comes close to the Tubo C IDE I so fondly remember.\n\nI need a way to trace and debug this puppy ASAP. I don't care if it's console mode (any good emacs tutorials out there for this?) or a huge bloated GUI will all the bells and whistles (does Eclipse have these kinds of features?).\n\nAny and all pointers would be appreciated.\n\nEDIT: Yes, I have the source file. The platform is FreeBSD 8.0. It's nothing so complicated as a memory leak or anything obscure. It's just a relatively simple program which has begun puking since the the rollover to 2010. The author(s) are long since gone. If I was an experienced C coder, I'd be able to fix this in my sleep. As I'm just an admin with *light* experience in C (CS101 twenty years ago), I need a visual crutch to help me track down and try to fix the bug.\n\nThus far, \"kdbg\" has been the most immediately helpful, as I can easily step along the code and watch all the variables as they change. Eclipse had problems and Netbeans is very slick, though both are sluggish and absolute beasts in terms of system resources (relatively speaking, anyway). What I should be doing is re-learning to code in C while learning one of these two nicer IDEs. Maybe when I have the time.\n\nFINAL EDIT: I've solved the problem. See [here](http://www.reddit.com/r/programming/comments/akvx6/best_linuxunix_way_to_step_through_and_debug_c/c0i4zqk) for my response to a post about the nature of the problem. In the end, I used emacs/gdb and kdbg, the latter being the most useful, while I'm determined to get more versed with the former for future debugging sessions. Thanks for all the suggestions.","timestamp":"2010-01-02T21:39:02+00:00","score":22},{"role":"answerer","user_id":"anon_59e609d1ff198342","comment_id":"c0i3vd9","kind":"comment","text":"> something a little more graphical\n\nThis is UNIX, there's [no way](http://en.wikipedia.org/wiki/Data_Display_Debugger) they would have something like that.","timestamp":"2010-01-02T22:34:19+00:00","score":10},{"role":"OP","user_id":"anon_ceb153b89e40941b","comment_id":"c0i3vqz","kind":"comment","text":"Thanks! Snarkism aside, your suggestion is a good one. I totally forgot about DDD.","timestamp":"2010-01-02T22:42:47+00:00","score":6},{"role":"answerer","user_id":"anon_59e609d1ff198342","comment_id":"c0i40ix","kind":"comment","text":"I'm really waiting for gdb 7.0 to see wide-spread use, so I can get some decent visualization of STL containers. Once it hits Netbeans I'll be set!","timestamp":"2010-01-03T00:15:15+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ceb153b89e40941b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_59e609d1ff198342","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0i3vd9","thanks_reply_id":"c0i3vqz","post_score":22,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_e0fc7c1789328719","answerer_user_id":"anon_a8736eddc612e67b","subreddit":"programming","timestamp":"2010-01-04T17:17:26+00:00","post_id":"alg09","question":"Has anyone successfully used Redditjobs to find a job / place a candidate?\n\nIt's 300 bucks to post a job here, and I can't justify such an untested search method to my boss for that price. Anyone here experience or hear of any success?","preferred_answer":"Seems like this is a trend that Joel Spolsky popularized in some articles he wrote about his own job board - charge a high price to make the customers value the board more, basically. Here's [one such article](http://www.joelonsoftware.com/items/2006/09/05b.html), although I think the one I'm thinking of was a later analysis of the approach.","full_conversation":[{"role":"OP","user_id":"anon_e0fc7c1789328719","comment_id":"alg09","kind":"post","text":"Has anyone successfully used Redditjobs to find a job / place a candidate?\n\nIt's 300 bucks to post a job here, and I can't justify such an untested search method to my boss for that price. Anyone here experience or hear of any success?","timestamp":"2010-01-04T17:17:26+00:00","score":49},{"role":"answerer","user_id":"anon_a8736eddc612e67b","comment_id":"c0i73hq","kind":"comment","text":"Seems like this is a trend that Joel Spolsky popularized in some articles he wrote about his own job board - charge a high price to make the customers value the board more, basically. Here's [one such article](http://www.joelonsoftware.com/items/2006/09/05b.html), although I think the one I'm thinking of was a later analysis of the approach.","timestamp":"2010-01-04T17:54:02+00:00","score":4},{"role":"OP","user_id":"anon_e0fc7c1789328719","comment_id":"c0i79l9","kind":"comment","text":"Great link. Thanks!","timestamp":"2010-01-04T19:28:46+00:00","score":2},{"role":"answerer","user_id":"anon_a8736eddc612e67b","comment_id":"c0i9kbj","kind":"comment","text":"The actual article I was thinking of was [this one](http://www.inc.com/magazine/20090101/how-hard-could-it-be-thanks-or-no-thanks.html):\n\n> Little gears were turning in my head: $250 times 50 ads times 12 months -- that revenue would allow me to hire another programmer! So we added classified ads to the site. Noah wrote the first draft of the code in about two weeks, and I spent another two weeks polishing and debugging it. The total time to build the job listing service was roughly a month.\n\n> Instead of charging the going rate of $250, we decided to charge $350. Why not? I figured we could establish ourselves as having the premium product simply by charging a premium. In the absence of additional information, consumers often use prices to judge products, and I wanted our site to be the Lexus of job listings. A few months later, 37signals raised its price to $300.\n\n> By the time you read this, that little four-week project will have made Fog Creek Software $1 million -- nearly all of it profit.","timestamp":"2010-01-05T21:51:41+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e0fc7c1789328719","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a8736eddc612e67b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0i73hq","thanks_reply_id":"c0i79l9","post_score":49,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_35df3774761b5adf","answerer_user_id":"anon_72fe6b5a4b2a0958","subreddit":"programming","timestamp":"2010-01-04T18:18:57+00:00","post_id":"algs4","question":"Ask Proggit: does anyone else hate using the arrow keys in Google Chrome's Ominbox (address bar)?\n\nI like Google Chrome for a number of reasons, but I don't like using the arrow keys to complete URLs because I have to take my hand off of the home row. I much prefer Firefox's use of the Tab key for completion. Is there any Chrome extension (or setting I am missing) that fixes this? I am aware of other keyboard-centric browsers like Conkeror and Vimperator. I just wanted to be sure to give Google Chrome a fair chance because it is a larger player.","preferred_answer":"I don't know if this helps, but I use gtk Emacs keybinding. That means I can C-n C-p in the location bar. Of course you also get char/word movement which is nice.\n\n cat ~/.gtkrc-2.0 \n gtk-key-theme-name = \"Emacs\"\n\nI'm still waiting for some chrome extension like [firemacs](https://addons.mozilla.org/firefox/addon/4141) though.","full_conversation":[{"role":"OP","user_id":"anon_35df3774761b5adf","comment_id":"algs4","kind":"post","text":"Ask Proggit: does anyone else hate using the arrow keys in Google Chrome's Ominbox (address bar)?\n\nI like Google Chrome for a number of reasons, but I don't like using the arrow keys to complete URLs because I have to take my hand off of the home row. I much prefer Firefox's use of the Tab key for completion. Is there any Chrome extension (or setting I am missing) that fixes this? I am aware of other keyboard-centric browsers like Conkeror and Vimperator. I just wanted to be sure to give Google Chrome a fair chance because it is a larger player.","timestamp":"2010-01-04T18:18:57+00:00","score":0},{"role":"answerer","user_id":"anon_72fe6b5a4b2a0958","comment_id":"c0ic5ef","kind":"comment","text":"I don't know if this helps, but I use gtk Emacs keybinding. That means I can C-n C-p in the location bar. Of course you also get char/word movement which is nice.\n\n cat ~/.gtkrc-2.0 \n gtk-key-theme-name = \"Emacs\"\n\nI'm still waiting for some chrome extension like [firemacs](https://addons.mozilla.org/firefox/addon/4141) though.","timestamp":"2010-01-07T02:06:27+00:00","score":2},{"role":"OP","user_id":"anon_35df3774761b5adf","comment_id":"c0ich7r","kind":"comment","text":"Thank you, that does help. I had forgotten about this. I had set up my ~/.gtkrc-2.0 to use emacs keybindings for Firefox but, for some reason, it doesn't work with my Chrome setup. I will look into fixing this. It helps knowing that it works for you.","timestamp":"2010-01-07T05:22:14+00:00","score":1},{"role":"answerer","user_id":"anon_72fe6b5a4b2a0958","comment_id":"c0icu6u","kind":"comment","text":"IIRC there was a bug in earlier chromium versions where it didn't honor the gtk key themes. Maybe updating chromium fixes your problem.","timestamp":"2010-01-07T13:28:17+00:00","score":1},{"role":"OP","user_id":"anon_35df3774761b5adf","comment_id":"c0id7fd","kind":"comment","text":"My bad, it was actually working-- I just hadn't set up all the bindings correctly. Thanks!","timestamp":"2010-01-07T17:12:30+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_35df3774761b5adf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_72fe6b5a4b2a0958","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ic5ef","thanks_reply_id":"c0ich7r","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6298ae34dee4ac30","answerer_user_id":"anon_d029fff69c16da36","subreddit":"programming","timestamp":"2010-01-06T06:58:40+00:00","post_id":"am46a","question":"Accounting for Real People when doing Software Project Planning - How?\n\nHow do we account for the fact we have real people working on software projects when doing project planning?\n\nLet's say I know all the items in my project scope, who will do each of them and how long in pure ideal effort (person-days) each will take. I have made sure to include everyone in their own estimates.\n\nYet Real people are not Ideal people. So I need to introduce some multipliers of the ideal effort in days to account for things like:\n\n* natural capacity of the person for the task\n\n* people are going to get sick or go on vacation\n\n* people are going to have personal problems that affect them\n\n* we need time to test the project as well after the people think they are finished\n\n* the people will have to talk and discuss problems together creating unforeseen overhead\n\n* the production system will die and use up most of your resources for a few days\n\n\nI'm thinking of having a global 40% multiplier.\nBut that may lead to over-estimation.\n\nHow do all you project planners account for this?","preferred_answer":"You've asked a difficult question.\n\nFirst, I refer you to McConnell's *Software Estimation: Demystifying the Black Art* for a general overview of estimation.\n\nThe key is that you need historical data to be able to model the impact of individuals, rates of sick leave, time-to-test and like. Failing that you will need to rely on industry averages, such as those available from [ISBG](http://www.isbsg.org/) and others.\n\nWhat information are you storing now? Do you track time spent per-task, or just flat timesheets for the accounting department?\n\nIn this vein I refer you to Humphrey's *A Discipline for Software Engineering*. It proposes a \"Personal Software Process\" that requires buckets of paperwork, but from it you can extract the idea that each programmer should be tracking metrics on themselves. They themselves should be aware of their productivity, quality etc so that they can improve it and use that to moderate their estimates.\n\nBut really, your estimates will have poor confidence unless and until you have gathered a solid body of historical data to work with.","full_conversation":[{"role":"OP","user_id":"anon_6298ae34dee4ac30","comment_id":"am46a","kind":"post","text":"Accounting for Real People when doing Software Project Planning - How?\n\nHow do we account for the fact we have real people working on software projects when doing project planning?\n\nLet's say I know all the items in my project scope, who will do each of them and how long in pure ideal effort (person-days) each will take. I have made sure to include everyone in their own estimates.\n\nYet Real people are not Ideal people. So I need to introduce some multipliers of the ideal effort in days to account for things like:\n\n* natural capacity of the person for the task\n\n* people are going to get sick or go on vacation\n\n* people are going to have personal problems that affect them\n\n* we need time to test the project as well after the people think they are finished\n\n* the people will have to talk and discuss problems together creating unforeseen overhead\n\n* the production system will die and use up most of your resources for a few days\n\n\nI'm thinking of having a global 40% multiplier.\nBut that may lead to over-estimation.\n\nHow do all you project planners account for this?","timestamp":"2010-01-06T06:58:40+00:00","score":4},{"role":"answerer","user_id":"anon_d029fff69c16da36","comment_id":"c0iallg","kind":"comment","text":"You've asked a difficult question.\n\nFirst, I refer you to McConnell's *Software Estimation: Demystifying the Black Art* for a general overview of estimation.\n\nThe key is that you need historical data to be able to model the impact of individuals, rates of sick leave, time-to-test and like. Failing that you will need to rely on industry averages, such as those available from [ISBG](http://www.isbsg.org/) and others.\n\nWhat information are you storing now? Do you track time spent per-task, or just flat timesheets for the accounting department?\n\nIn this vein I refer you to Humphrey's *A Discipline for Software Engineering*. It proposes a \"Personal Software Process\" that requires buckets of paperwork, but from it you can extract the idea that each programmer should be tracking metrics on themselves. They themselves should be aware of their productivity, quality etc so that they can improve it and use that to moderate their estimates.\n\nBut really, your estimates will have poor confidence unless and until you have gathered a solid body of historical data to work with.","timestamp":"2010-01-06T09:22:01+00:00","score":2},{"role":"OP","user_id":"anon_6298ae34dee4ac30","comment_id":"c0iamto","kind":"comment","text":"Thanks for the help. Historical data is non existent here.\nBummer. I've gone witha 35% multiplier.","timestamp":"2010-01-06T10:04:52+00:00","score":2},{"role":"answerer","user_id":"anon_d029fff69c16da36","comment_id":"c0iaqbj","kind":"comment","text":"To improve your estimates, perform at least a PERT estimate and/or a Delphi Wideband estimate. Both of these rely on you integrating estimates given by your team members.\n\nThe Delphi method involves multiple rounds of estimation with the aim of converging on a consensus estimate. Delphi \"wideband\" means you're doing using the Delphi method to estimate best, likely and worst cases.\n\nPERT involves a single round of estimates which are integrated using simple statistics. Out of the method falls a best, most likely and worst case scenarios. It also supplies a \"95% confidence\" date; ie a schedule date where your project has a 19/20 chance of delivering before.","timestamp":"2010-01-06T12:29:58+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6298ae34dee4ac30","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d029fff69c16da36","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0iallg","thanks_reply_id":"c0iamto","post_score":4,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_56625a4d62d23464","answerer_user_id":"anon_6efaa115ba60d4e2","subreddit":"programming","timestamp":"2010-01-08T01:52:45+00:00","post_id":"amxzh","question":"Ask proggit: Looking for a good LCD for \r\nprogramming. Preferably under $200. What's your \r\nrecommendation, and do you prefer widescreen or \r\nnon-wide?","preferred_answer":"Read my post below about the Dell, read the reviews on it, then look at the price tag.","full_conversation":[{"role":"OP","user_id":"anon_56625a4d62d23464","comment_id":"amxzh","kind":"post","text":"Ask proggit: Looking for a good LCD for \r\nprogramming. Preferably under $200. What's your \r\nrecommendation, and do you prefer widescreen or \r\nnon-wide?","timestamp":"2010-01-08T01:52:45+00:00","score":12},{"role":"answerer","user_id":"anon_6efaa115ba60d4e2","comment_id":"c0if99g","kind":"comment","text":"Read my post below about the Dell, read the reviews on it, then look at the price tag.","timestamp":"2010-01-08T15:17:06+00:00","score":1},{"role":"OP","user_id":"anon_56625a4d62d23464","comment_id":"c0if9vg","kind":"comment","text":"Looks nice! Thanks for pointing it out.\r\n\r\nI was reading a review or two on Amazon that worried me, though. One person said that at the native res (1920 x 1080) \"makes text too small for comfortable reading.\" Would you say this is accurate? How's the size of text compared to your usual monitor res on other monitors?\r\n\r\nAnother person said \"this monitor has an absolutely terrible vertical viewing angle. Colors are displayed completely inaccurately if you're looking at the monitor at any angle other than directly head on.\" How's the vertical viewing angle in your opinion?","timestamp":"2010-01-08T15:26:55+00:00","score":1},{"role":"answerer","user_id":"anon_6efaa115ba60d4e2","comment_id":"c0igf7u","kind":"comment","text":"No, I can read text just fine on it. I really don't have any complaints about it.","timestamp":"2010-01-09T00:52:01+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_56625a4d62d23464","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6efaa115ba60d4e2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0if99g","thanks_reply_id":"c0if9vg","post_score":12,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_0101f9090d45368d","answerer_user_id":"anon_5568abb1c5cb7566","subreddit":"programming","timestamp":"2010-01-11T05:44:21+00:00","post_id":"ao1wq","question":"Hey Reddit Web Programmers! How do I open several links on one page?","preferred_answer":"[This is what you're looking for.](https://addons.mozilla.org/en-US/firefox/addon/4336)","full_conversation":[{"role":"OP","user_id":"anon_0101f9090d45368d","comment_id":"ao1wq","kind":"post","text":"Hey Reddit Web Programmers! How do I open several links on one page?","timestamp":"2010-01-11T05:44:21+00:00","score":0},{"role":"answerer","user_id":"anon_5568abb1c5cb7566","comment_id":"c0ikds2","kind":"comment","text":"[This is what you're looking for.](https://addons.mozilla.org/en-US/firefox/addon/4336)","timestamp":"2010-01-11T05:49:46+00:00","score":1},{"role":"OP","user_id":"anon_0101f9090d45368d","comment_id":"c0ikehn","kind":"comment","text":"It says the addon is for older versions of firefox but thanks, I didn't know something like that existed.","timestamp":"2010-01-11T06:03:54+00:00","score":1},{"role":"answerer","user_id":"anon_5568abb1c5cb7566","comment_id":"c0ikf00","kind":"comment","text":"[This](http://www.jamesvandyke.com/2008/01/23/turn-off-add-on-compatibility-check-in-firefox-3-beta/)","timestamp":"2010-01-11T06:14:35+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0101f9090d45368d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5568abb1c5cb7566","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ikds2","thanks_reply_id":"c0ikehn","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_244471fc15c763d1","answerer_user_id":"anon_bb98bd3b14d6894d","subreddit":"programming","timestamp":"2010-01-11T08:03:07+00:00","post_id":"ao3gp","question":"Best way to store and access over 100k small images in a windows environment?\n\nI've got 100s of thousands of images (about 25kb each). Currently they're in about 50 separate directories to ease the strain on Windows having to open them. \n\nWhat's a good way of storing these images such that I can access and display one of them at a time from within a C++ or Matlab gui?\n\n**Edit: Thanks for the input guys, I'd never have suspected zipping could help!!**","preferred_answer":"I wouldn't use Oracle. I'd go for something like [SQLite](http://www.sqlite.org/). Effectively SQLite is a free C library that gives you access to an SQL database. You create a DB either with the CLI tool that comes with it or via a C/C++ call. Then you can load your image files in as binary blobs (the datatype is literally called blob. A type that stores binary data exactly as you put it in).\n\nJust load the file into memory and dump it into a blob. To retrieve you load the blob back into memory as you would a file. That data can then be passed into whatever drawing function handles your images. If you have any meta-data (filenames or tags or whatever you feel like) you can create a record holding it and use that to search the DB. This will be simpler and potentially faster than searching a zip.\n\nI'm assuming Matlab can call C functions? If it can then it can integrate to SQLite directly.","full_conversation":[{"role":"OP","user_id":"anon_244471fc15c763d1","comment_id":"ao3gp","kind":"post","text":"Best way to store and access over 100k small images in a windows environment?\n\nI've got 100s of thousands of images (about 25kb each). Currently they're in about 50 separate directories to ease the strain on Windows having to open them. \n\nWhat's a good way of storing these images such that I can access and display one of them at a time from within a C++ or Matlab gui?\n\n**Edit: Thanks for the input guys, I'd never have suspected zipping could help!!**","timestamp":"2010-01-11T08:03:07+00:00","score":0},{"role":"answerer","user_id":"anon_bb98bd3b14d6894d","comment_id":"c0il1bn","kind":"comment","text":"I wouldn't use Oracle. I'd go for something like [SQLite](http://www.sqlite.org/). Effectively SQLite is a free C library that gives you access to an SQL database. You create a DB either with the CLI tool that comes with it or via a C/C++ call. Then you can load your image files in as binary blobs (the datatype is literally called blob. A type that stores binary data exactly as you put it in).\n\nJust load the file into memory and dump it into a blob. To retrieve you load the blob back into memory as you would a file. That data can then be passed into whatever drawing function handles your images. If you have any meta-data (filenames or tags or whatever you feel like) you can create a record holding it and use that to search the DB. This will be simpler and potentially faster than searching a zip.\n\nI'm assuming Matlab can call C functions? If it can then it can integrate to SQLite directly.","timestamp":"2010-01-11T16:33:29+00:00","score":2},{"role":"OP","user_id":"anon_244471fc15c763d1","comment_id":"c0il2b4","kind":"comment","text":"Awesome, I'll read up on some SQL then :) Thanks very much for the detailed reply, it gives me somewhere to start researching.","timestamp":"2010-01-11T16:49:43+00:00","score":1},{"role":"answerer","user_id":"anon_bb98bd3b14d6894d","comment_id":"c0il2nh","kind":"comment","text":"To get the most basic needs you effectively want to index on the path name of the file. This will give you fast look up for your images.","timestamp":"2010-01-11T16:55:05+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_244471fc15c763d1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bb98bd3b14d6894d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0il1bn","thanks_reply_id":"c0il2b4","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_5c19b1eeab66c98a","answerer_user_id":"anon_e84712238709398f","subreddit":"programming","timestamp":"2010-01-13T07:45:59+00:00","post_id":"ap033","question":"Dear Proggit, how do you handle SQL exceptions?\n\nI am working on a project and I want to know what a good approach would be to handle SQL exceptions. \n\nA simple example would be if you try to add a user to a database but that user already exists. Do you check if that user name exists before hand, or do you wait for an exception and handle it that way?\n\nSidenote: I am using the Kohana (php) framework. Maybe they have exception tools I'm not aware of.","preferred_answer":"There are a couple of ways to do handle your duplicate user example:\n\n1. You can accept the POST data, perform your query, and display an error message when the page renders if there is a duplicate user. It's generally a good idea to re-populate most of the fields with the POST'd data.\n\n2. You can use AJAX so that when the user blurs the username field (or clicks a \"Check availability\" button), a separate http request is launched that takes the username field and checks it against the database, returning wether or not the username exists.\n\n3. More generally (although PHP specific), you could register a [separate error handler](http://www.alexatnet.com/node/23), so that any SQL (and PHP) errors are automatically converted to exceptions. Then register a top-level exception handler with [set\\_exception\\_handler()](http://php.net/manual/en/function.set-exception-handler.php) and then have the site e-mail you with the details of the uncaught exception and render a nice error-page for the user.\n\nI haven't used kohana, so I can't help you there. In summary, the first two points address how to handle errors you are anticipating, while the third is a pretty solid way to handle any exceptions/errors that you are not.","full_conversation":[{"role":"OP","user_id":"anon_5c19b1eeab66c98a","comment_id":"ap033","kind":"post","text":"Dear Proggit, how do you handle SQL exceptions?\n\nI am working on a project and I want to know what a good approach would be to handle SQL exceptions. \n\nA simple example would be if you try to add a user to a database but that user already exists. Do you check if that user name exists before hand, or do you wait for an exception and handle it that way?\n\nSidenote: I am using the Kohana (php) framework. Maybe they have exception tools I'm not aware of.","timestamp":"2010-01-13T07:45:59+00:00","score":0},{"role":"answerer","user_id":"anon_e84712238709398f","comment_id":"c0iompq","kind":"comment","text":"There are a couple of ways to do handle your duplicate user example:\n\n1. You can accept the POST data, perform your query, and display an error message when the page renders if there is a duplicate user. It's generally a good idea to re-populate most of the fields with the POST'd data.\n\n2. You can use AJAX so that when the user blurs the username field (or clicks a \"Check availability\" button), a separate http request is launched that takes the username field and checks it against the database, returning wether or not the username exists.\n\n3. More generally (although PHP specific), you could register a [separate error handler](http://www.alexatnet.com/node/23), so that any SQL (and PHP) errors are automatically converted to exceptions. Then register a top-level exception handler with [set\\_exception\\_handler()](http://php.net/manual/en/function.set-exception-handler.php) and then have the site e-mail you with the details of the uncaught exception and render a nice error-page for the user.\n\nI haven't used kohana, so I can't help you there. In summary, the first two points address how to handle errors you are anticipating, while the third is a pretty solid way to handle any exceptions/errors that you are not.","timestamp":"2010-01-13T08:58:59+00:00","score":2},{"role":"OP","user_id":"anon_5c19b1eeab66c98a","comment_id":"c0ipv4i","kind":"comment","text":"Thank you for the advice","timestamp":"2010-01-13T23:07:21+00:00","score":2},{"role":"answerer","user_id":"anon_e84712238709398f","comment_id":"c0ipwql","kind":"comment","text":"No problem. FWIW, I don't know why this submission received the downvotes that it did. Perhaps proggit is just *that* anti-PHP.","timestamp":"2010-01-13T23:30:48+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5c19b1eeab66c98a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e84712238709398f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0iompq","thanks_reply_id":"c0ipv4i","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_80d1f194138ba209","answerer_user_id":"anon_3792ba89ca0cfa21","subreddit":"programming","timestamp":"2010-01-13T21:57:32+00:00","post_id":"apab4","question":"Can someone help me find a link to the javascript framework that had 3d graphs?\n\nSomething like 3-6 months ago there was a web site that had 3d wireframe graphs that you could drag to spin, graphs you could zoom in and out on, or drag around. It was on a blue background, and I remember the presentation talking about their choice to use Canvas rather than SVG.\n\nCan anyone help me find that framework again?","preferred_answer":"I think you might be thinking of http://www.ajax.org.","full_conversation":[{"role":"OP","user_id":"anon_80d1f194138ba209","comment_id":"apab4","kind":"post","text":"Can someone help me find a link to the javascript framework that had 3d graphs?\n\nSomething like 3-6 months ago there was a web site that had 3d wireframe graphs that you could drag to spin, graphs you could zoom in and out on, or drag around. It was on a blue background, and I remember the presentation talking about their choice to use Canvas rather than SVG.\n\nCan anyone help me find that framework again?","timestamp":"2010-01-13T21:57:32+00:00","score":0},{"role":"answerer","user_id":"anon_3792ba89ca0cfa21","comment_id":"c0iprqr","kind":"comment","text":"I think you might be thinking of http://www.ajax.org.","timestamp":"2010-01-13T22:24:43+00:00","score":2},{"role":"OP","user_id":"anon_80d1f194138ba209","comment_id":"c0iptjj","kind":"comment","text":"Wow, that is exactly what I was thinking of, thanks! They really need to work on their SEO as I spent about half an hour googling combinations of the keywords ajax, javascript, framework, 3d, chart, and canvas without finding this site.","timestamp":"2010-01-13T22:46:54+00:00","score":1},{"role":"answerer","user_id":"anon_3792ba89ca0cfa21","comment_id":"c0ipu8j","kind":"comment","text":"[Try this](http://www.google.com/search?hl=en&client=opera&rls=en&hs=2cC&q=javascript+3d+chart+site%3Areddit.com&aq=f&oq=&aqi=)","timestamp":"2010-01-13T22:55:20+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_80d1f194138ba209","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3792ba89ca0cfa21","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0iprqr","thanks_reply_id":"c0iptjj","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_61009d3b1e7790ce","answerer_user_id":"anon_2d3942044e8647a6","subreddit":"programming","timestamp":"2010-01-14T16:41:26+00:00","post_id":"apm5p","question":"What is the correct way to calculate the contrast between two colours?\n\nHere's the problem I'm trying to solve: Given an RGB triplet and an assumption that we're talking about the sRGB colour space, how can I calculate a shade of that colour that appears to be as dark compared to the original colour as, say, 90% white looks compared to 100% white? I don't need to solve for colours very close to black, so I can assume a minimum apparent brightness. I'm also assuming that if I can calculate the contrast between two colours, I can solve for the second colour using constraints on hue and saturation.\n\nI've tried converting to the HSL colour space, reducing L by a fixed number (or multiplying by a fixed factor), but I end up with inconsistent contrasts. In particular, I can't distinguish between HSL (60°, 100%, 60%) and HSL (60°, 100%, 50%), while HSL (60°, 100%, 50%) and HSL (60°, 100%, 40%) are clear as night and day. For most other hues and saturations, the contrast between 60 and 50 is just fine.\n\nI'm guessing I'm working in the wrong colour space, but I'm fairly naïve about perception of colour. Can anyone point me in the right direction?\n\n**EDIT:** [NotAbel](http://www.reddit.com/r/programming/comments/apm5p/what_is_the_correct_way_to_calculate_the_contrast/c0ir9ch) gave me the answer I was looking for, so here's my Javascript implementation of the colour space conversions for anyone looking to do the same. RGB is assumed to be sRGB normalized to the range \\[0,1\\]. Formulae for [sRGB to XYZ](http://en.wikipedia.org/wiki/SRGB#The_reverse_transformation) and [XYZ to L\\*a\\*b\\*](http://en.wikipedia.org/wiki/Lab_color_space#The_forward_transformation) were both sourced from Wikipedia. Also, here's an [image of the results](http://i.imgur.com/XZDDx.png) with darkened/lightened colour inside the background colour.\n\n function rgbToXYZ (rgb) {\n var r = rgb.r, g = rgb.g, b = rgb.b;\n function fXYZ (t) {\n return t <= 0.04045 ? t/12.92 : Math.pow((t+0.055)/1.055,2.4);\n }\n r = fXYZ(r);\n g = fXYZ(g);\n b = fXYZ(b);\n var x = 0.4124*r + 0.3576*g + 0.1805*b;\n var y = 0.2126*r + 0.7152*g + 0.0722*b;\n var z = 0.0193*r + 0.1192*g + 0.9505*b;\n \n return { x: x, y: y, z: z };\n }\n \n function xyzToRGB (xyz) {\n var x = xyz.x, y = xyz.y, z = xyz.z;\n var r = 3.2410*x - 1.5374*y - 0.4986*z;\n var g = -0.9692*x + 1.8760*y + 0.0416*z;\n var b = 0.0556*x - 0.2040*y + 1.0570*z;\n function fXYZ (t) {\n return t <= 0.0031308 ? 12.92*t : (1+0.055)*Math.pow(t,1/2.4) - 0.055;\n }\n r = fXYZ(r);\n g = fXYZ(g);\n b = fXYZ(b);\n r = r < 0 ? 0 : r > 1 ? 1 : r;\n g = g < 0 ? 0 : g > 1 ? 1 : g;\n b = b < 0 ? 0 : b > 1 ? 1 : b;\n return { r: r, g: g, b: b };\n }\n \n function xyzToLab (xyz) {\n var x = xyz.x, y = xyz.y, z = xyz.z;\n function fLab (t) {\n return t > 0.00886 ? Math.pow(t,1/3) : 7.787*t + 4/29;\n }\n var L = 116 * fLab(y) - 16;\n var a = 500 * (fLab(x) - fLab(y));\n var b = 200 * (fLab(y) - fLab(z));\n return { L: L, a: a, b: b };\n }\n \n function LabToXYZ (lab) {\n var L = lab.L, a = lab.a, b = lab.b;\n var y = (L + 16) / 116;\n var x = y + a / 500;\n var z = y - b / 200;\n function fLab (t) {\n return t > 0.2069 ? Math.pow(t,3) : (t - 16/116)*0.1284;\n }\n y = fLab(y);\n x = fLab(x);\n z = fLab(z);\n return { x: x, y: y, z: z };\n }","preferred_answer":"To expand a little, your flow is going to be kind of like this:\n\n> sRBG -> XYZ (This puts you in the device-independent tristimulus space. Don't worry too much about white points or the vagaries of chromatic adaptation.)\n\n> XYZ -> L\\*C\\*H\\* (This puts you in a device-independent luminance/chroma/hue space.)\n\n> Swizzle L\\* however you want.\n\n> XYZ -> L\\*C\\*H\\* -> sRGB (Gets you back to device-dependent rgb.)","full_conversation":[{"role":"OP","user_id":"anon_61009d3b1e7790ce","comment_id":"apm5p","kind":"post","text":"What is the correct way to calculate the contrast between two colours?\n\nHere's the problem I'm trying to solve: Given an RGB triplet and an assumption that we're talking about the sRGB colour space, how can I calculate a shade of that colour that appears to be as dark compared to the original colour as, say, 90% white looks compared to 100% white? I don't need to solve for colours very close to black, so I can assume a minimum apparent brightness. I'm also assuming that if I can calculate the contrast between two colours, I can solve for the second colour using constraints on hue and saturation.\n\nI've tried converting to the HSL colour space, reducing L by a fixed number (or multiplying by a fixed factor), but I end up with inconsistent contrasts. In particular, I can't distinguish between HSL (60°, 100%, 60%) and HSL (60°, 100%, 50%), while HSL (60°, 100%, 50%) and HSL (60°, 100%, 40%) are clear as night and day. For most other hues and saturations, the contrast between 60 and 50 is just fine.\n\nI'm guessing I'm working in the wrong colour space, but I'm fairly naïve about perception of colour. Can anyone point me in the right direction?\n\n**EDIT:** [NotAbel](http://www.reddit.com/r/programming/comments/apm5p/what_is_the_correct_way_to_calculate_the_contrast/c0ir9ch) gave me the answer I was looking for, so here's my Javascript implementation of the colour space conversions for anyone looking to do the same. RGB is assumed to be sRGB normalized to the range \\[0,1\\]. Formulae for [sRGB to XYZ](http://en.wikipedia.org/wiki/SRGB#The_reverse_transformation) and [XYZ to L\\*a\\*b\\*](http://en.wikipedia.org/wiki/Lab_color_space#The_forward_transformation) were both sourced from Wikipedia. Also, here's an [image of the results](http://i.imgur.com/XZDDx.png) with darkened/lightened colour inside the background colour.\n\n function rgbToXYZ (rgb) {\n var r = rgb.r, g = rgb.g, b = rgb.b;\n function fXYZ (t) {\n return t <= 0.04045 ? t/12.92 : Math.pow((t+0.055)/1.055,2.4);\n }\n r = fXYZ(r);\n g = fXYZ(g);\n b = fXYZ(b);\n var x = 0.4124*r + 0.3576*g + 0.1805*b;\n var y = 0.2126*r + 0.7152*g + 0.0722*b;\n var z = 0.0193*r + 0.1192*g + 0.9505*b;\n \n return { x: x, y: y, z: z };\n }\n \n function xyzToRGB (xyz) {\n var x = xyz.x, y = xyz.y, z = xyz.z;\n var r = 3.2410*x - 1.5374*y - 0.4986*z;\n var g = -0.9692*x + 1.8760*y + 0.0416*z;\n var b = 0.0556*x - 0.2040*y + 1.0570*z;\n function fXYZ (t) {\n return t <= 0.0031308 ? 12.92*t : (1+0.055)*Math.pow(t,1/2.4) - 0.055;\n }\n r = fXYZ(r);\n g = fXYZ(g);\n b = fXYZ(b);\n r = r < 0 ? 0 : r > 1 ? 1 : r;\n g = g < 0 ? 0 : g > 1 ? 1 : g;\n b = b < 0 ? 0 : b > 1 ? 1 : b;\n return { r: r, g: g, b: b };\n }\n \n function xyzToLab (xyz) {\n var x = xyz.x, y = xyz.y, z = xyz.z;\n function fLab (t) {\n return t > 0.00886 ? Math.pow(t,1/3) : 7.787*t + 4/29;\n }\n var L = 116 * fLab(y) - 16;\n var a = 500 * (fLab(x) - fLab(y));\n var b = 200 * (fLab(y) - fLab(z));\n return { L: L, a: a, b: b };\n }\n \n function LabToXYZ (lab) {\n var L = lab.L, a = lab.a, b = lab.b;\n var y = (L + 16) / 116;\n var x = y + a / 500;\n var z = y - b / 200;\n function fLab (t) {\n return t > 0.2069 ? Math.pow(t,3) : (t - 16/116)*0.1284;\n }\n y = fLab(y);\n x = fLab(x);\n z = fLab(z);\n return { x: x, y: y, z: z };\n }","timestamp":"2010-01-14T16:41:26+00:00","score":41},{"role":"answerer","user_id":"anon_2d3942044e8647a6","comment_id":"c0ir9np","kind":"comment","text":"To expand a little, your flow is going to be kind of like this:\n\n> sRBG -> XYZ (This puts you in the device-independent tristimulus space. Don't worry too much about white points or the vagaries of chromatic adaptation.)\n\n> XYZ -> L\\*C\\*H\\* (This puts you in a device-independent luminance/chroma/hue space.)\n\n> Swizzle L\\* however you want.\n\n> XYZ -> L\\*C\\*H\\* -> sRGB (Gets you back to device-dependent rgb.)","timestamp":"2010-01-14T17:07:07+00:00","score":14},{"role":"OP","user_id":"anon_61009d3b1e7790ce","comment_id":"c0irj9d","kind":"comment","text":"Thanks, this was exactly what I was looking for. I just finished implementing it and the results look great.","timestamp":"2010-01-14T19:13:44+00:00","score":5},{"role":"answerer","user_id":"anon_2d3942044e8647a6","comment_id":"c0irjlz","kind":"comment","text":"Glad to help :-)","timestamp":"2010-01-14T19:18:00+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_61009d3b1e7790ce","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2d3942044e8647a6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ir9np","thanks_reply_id":"c0irj9d","post_score":41,"answer_score":14,"preferred_answer_is_top_level":false}} {"user_id":"anon_72dca4a8c8dcf717","answerer_user_id":"anon_2116bc2ede454bff","subreddit":"programming","timestamp":"2010-01-18T00:57:44+00:00","post_id":"aqsxq","question":"Does anyone actually use GWT?\n\nJust curious, some of the Java gurus at work are raving about the awesomeness of GWT and how it gets rid of all your cross-browser incompatibilities. After taking a cursory glance, I can only conclude that this is only true if you stay within the GWT box, the second you need to create a non-standard widget, or write a javascript extension, you'll be dealing with cross-browser issues and have an extra layer of abstraction to deal with to boot. Am I wrong?","preferred_answer":"I work on the Wave team.\n\n1. We get static typing, which is a boost to reliability.\n2. We can write unit tests for client code without WebDriver, using GWT's dom simulation\n3. We can use the Java debugger with our code *running inside the browser* using the OOPHM plugin\n4. We can share vast amounts of model code between client and server\n\nThe list of GWT's advantages go on and on","full_conversation":[{"role":"OP","user_id":"anon_72dca4a8c8dcf717","comment_id":"aqsxq","kind":"post","text":"Does anyone actually use GWT?\n\nJust curious, some of the Java gurus at work are raving about the awesomeness of GWT and how it gets rid of all your cross-browser incompatibilities. After taking a cursory glance, I can only conclude that this is only true if you stay within the GWT box, the second you need to create a non-standard widget, or write a javascript extension, you'll be dealing with cross-browser issues and have an extra layer of abstraction to deal with to boot. Am I wrong?","timestamp":"2010-01-18T00:57:44+00:00","score":54},{"role":"answerer","user_id":"anon_2116bc2ede454bff","comment_id":"c0ixt2k","kind":"comment","text":"I work on the Wave team.\n\n1. We get static typing, which is a boost to reliability.\n2. We can write unit tests for client code without WebDriver, using GWT's dom simulation\n3. We can use the Java debugger with our code *running inside the browser* using the OOPHM plugin\n4. We can share vast amounts of model code between client and server\n\nThe list of GWT's advantages go on and on","timestamp":"2010-01-18T05:39:48+00:00","score":54},{"role":"OP","user_id":"anon_72dca4a8c8dcf717","comment_id":"c0ixtjl","kind":"comment","text":"Cool, thanks for replying. I'm very curious as to how or if GWT is embraced by both Google and non-Google companies. Is GWT used heavily internally, or only for a minority of projects? Do you really think it's the future, and why?","timestamp":"2010-01-18T05:48:35+00:00","score":6},{"role":"answerer","user_id":"anon_2116bc2ede454bff","comment_id":"c0iy3vl","kind":"comment","text":"It isn't used heavily internally, mostly used for Wave and wave-related products. The reasoning for this isn't based on its suitability, but because we have numerous older codebases that predate GWT. Wave has seen a significant productivity boost thanks to GWT, and so future projects may consider it as well for their own use.\n\nCertainly the Wave project has helped to make GWT far better.","timestamp":"2010-01-18T10:17:08+00:00","score":11}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_72dca4a8c8dcf717","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2116bc2ede454bff","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ixt2k","thanks_reply_id":"c0ixtjl","post_score":54,"answer_score":54,"preferred_answer_is_top_level":true}} {"user_id":"anon_9c035cbe2d3e5ce4","answerer_user_id":"anon_0fd75e5d4c162c55","subreddit":"programming","timestamp":"2010-01-19T00:28:44+00:00","post_id":"ar84i","question":"How do I convince someone with a technical background to co-found a start up with me?\n\nMy mind is business oriented. I created a business plan for a fashion oriented start up company complete with financial (with assumptions) statements. The idea is very similar to polyvore.com, but with some major differences that wouldn't put us in competition with them.\n\nAccording to my best estimates the website will generate ~$150,000 profit in ~16 months and take ~300 hours to build (estimate given by an industry veteran.) I have real revenue models other than online advertisements.\n\nI am a 22 year old community college student with $5,000. After I find a co-founder with a technical background I want to build a prototype and then present it in front of angel investors. \n\nMy ideal role: I would work on everything that wasnt directly related to the actual program of the website, so this includes paying bills, preparing investor presentations, marketing, taxes, legal matters, trade shows, meetings, attending events, signing clients, etc.\n\nMy question: What do you programmers want to hear? What do you need to know/I need to show you to successfully convince you to take the risk of co-founding a start up? I have met with 2 people but both did not have the time required to commit (kids, divorce, bankruptcy, other projects, custody hearings, etc)\n\n**I am not trying to find a web developer on reddit, I want to know how you guys think so I can improve my chances of convincing a local dev that thinks this project is something they want to work on**","preferred_answer":"I would want to hear a lot of what you said. That you have a plan (a plan I think would work), that you're going to work on all the non-fun stuff (to me), that you're going to be *working* and not sitting around waiting for me to build stuff, that we're going to put in equal amounts of time. \n\nAlso that we're gonna get supa rich and that they're equal partners.\n\nAdvice: got to balsamiq.com and lay out the website. I mean *all* of it. Every page, every link, everything should be defined. If the front page is a big image of one product, categories down the left, categories in images on the front, a login link and 6 links down the bottom (standard privacy, about, etc) - show what the product page looks like, the category page, write all the copy for the privacy/etc pages - create a complete design doc. The entire payment process, the entire registration, every single text box in balsamiq's super easy to use interface. If you get a cofounder it won't go to waste, and if you don't - heck you might be able to go to rent a coder for $5K and get a prototype going.","full_conversation":[{"role":"OP","user_id":"anon_9c035cbe2d3e5ce4","comment_id":"ar84i","kind":"post","text":"How do I convince someone with a technical background to co-found a start up with me?\n\nMy mind is business oriented. I created a business plan for a fashion oriented start up company complete with financial (with assumptions) statements. The idea is very similar to polyvore.com, but with some major differences that wouldn't put us in competition with them.\n\nAccording to my best estimates the website will generate ~$150,000 profit in ~16 months and take ~300 hours to build (estimate given by an industry veteran.) I have real revenue models other than online advertisements.\n\nI am a 22 year old community college student with $5,000. After I find a co-founder with a technical background I want to build a prototype and then present it in front of angel investors. \n\nMy ideal role: I would work on everything that wasnt directly related to the actual program of the website, so this includes paying bills, preparing investor presentations, marketing, taxes, legal matters, trade shows, meetings, attending events, signing clients, etc.\n\nMy question: What do you programmers want to hear? What do you need to know/I need to show you to successfully convince you to take the risk of co-founding a start up? I have met with 2 people but both did not have the time required to commit (kids, divorce, bankruptcy, other projects, custody hearings, etc)\n\n**I am not trying to find a web developer on reddit, I want to know how you guys think so I can improve my chances of convincing a local dev that thinks this project is something they want to work on**","timestamp":"2010-01-19T00:28:44+00:00","score":0},{"role":"answerer","user_id":"anon_0fd75e5d4c162c55","comment_id":"c0izfut","kind":"comment","text":"I would want to hear a lot of what you said. That you have a plan (a plan I think would work), that you're going to work on all the non-fun stuff (to me), that you're going to be *working* and not sitting around waiting for me to build stuff, that we're going to put in equal amounts of time. \n\nAlso that we're gonna get supa rich and that they're equal partners.\n\nAdvice: got to balsamiq.com and lay out the website. I mean *all* of it. Every page, every link, everything should be defined. If the front page is a big image of one product, categories down the left, categories in images on the front, a login link and 6 links down the bottom (standard privacy, about, etc) - show what the product page looks like, the category page, write all the copy for the privacy/etc pages - create a complete design doc. The entire payment process, the entire registration, every single text box in balsamiq's super easy to use interface. If you get a cofounder it won't go to waste, and if you don't - heck you might be able to go to rent a coder for $5K and get a prototype going.","timestamp":"2010-01-19T00:45:01+00:00","score":3},{"role":"OP","user_id":"anon_9c035cbe2d3e5ce4","comment_id":"c0izh0i","kind":"comment","text":"Thanks for the headsup. Just bought the software and will begin playing with it.\n\nDo you have any suggestions for a requirements list template that perhaps works well with the balsamiq software? (ex: linking requirements to specific parts of the mock up?)","timestamp":"2010-01-19T01:02:04+00:00","score":1},{"role":"answerer","user_id":"anon_0fd75e5d4c162c55","comment_id":"c0izi8a","kind":"comment","text":"Balsamiq has a free version with some nagging prompts X-( Ah well.\n\nIf you're got One-Note, you could drop the screens in there with arrows to text boxes, if not, you could use word, or open office. Or come up with a labeling system \"Sec 1. E. iii.\"\n\nOne more bit of advice - don't be married to the design, when you show someone and he questions it and goes \"what about this\", have a back and forth, ideally it'd go something like \n\n\"Why do you require people to have an account to buy stuff from us?\" \n\n\"Don't you need to do that?\" \n\n\"Not really. I mean it's optional, yea, but it doesn't have to be required.\"\n\n\"Oh, okay. But if it's not required, won't be be missing stuff like the ability to mail them promotions?\"\n\n\"Nah, you can still let people opt into the newsletter without an account.\"\n\n\"Oh, okay, then let's make it optional, how do we do that?\"","timestamp":"2010-01-19T01:21:24+00:00","score":2},{"role":"OP","user_id":"anon_9c035cbe2d3e5ce4","comment_id":"c0izjb9","kind":"comment","text":"Good point, and as I am not a tech guy I want to give as much creative control to the dev as possible.","timestamp":"2010-01-19T01:39:06+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_9c035cbe2d3e5ce4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0fd75e5d4c162c55","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0izfut","thanks_reply_id":"c0izh0i","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_3115924498807d65","answerer_user_id":"anon_b477753e11ef235b","subreddit":"programming","timestamp":"2010-01-19T21:03:03+00:00","post_id":"arm0t","question":"Why we abandoned the use of Microsoft's WCF on a recent project...\n\nWe had two major issues with WCF. The first issue had to do with performance. The prototype we built worked fine for most of the windows that we had constructed until we got to the window where the user is allowed to upload documents up into the SQL Server database. We essentially created a document warehouse for the users so that they could upload and attach any Microsoft Office documents, PDF files, Email Messages (.MSG files), or images. Just about any kind of file can be uploaded to the SQL Server. Unfortunately, in order to transmit the documents between the client computer and the WCF Application Server, it has to “Marshall” and “Unmarshall” the data. This marshalling and unmarshalling is very intensive and slow, and was causing the application to work slowly while working on the documents window. We abandoned using the default http: protocol, and tried using bare-bones TCP/IP communications, and it did help, but not enough. Furthermore, it takes a lot of custom entries and tweaking of the XML configuration files (on both the client and the WCF App Service) to get the system to be able to accept even medium sized document files (anything bigger than 15KB fails without custom configuration file entries. \r\n\r\nThe folks at Microsoft are proud of the fact that you can take a WCF service application and simply change configuration files to make it run in a completely different environment (hosted inside IIS, in a stand-alone app, or as a windows service), or use completely different protocols (http:, TCP/IP, etc.). However, this relies heavy on what is called “declarative computing” whereby a significant portion of your program’s behavior is coded into XML configuration files instead of executable statements in your actual source code. In my opinion, although it may be more flexible for different deployment scenarios, the introduction of the fragile and complex XML configuration files makes the application much harder to create and more importantly harder to maintain. \r\n\r\nThe second problem was the one that really killed us. WCF is a relatively new technology from Microsoft, and I don’t think they quite have all the kinks worked out. The problem is in the area of the triad of software interaction between Visual Studio 2008, WCF, and Visual SourceSafe, particularly when more than one developer is trying to share WCF project source code with each other using Visual Source Safe. In a typical scenario, Developer A adds a new WCF Service method to the middle-tier application. After recompiling and running the service locally on his/her machine, the developer pulls up the Client application and updates the WCF proxy object in Visual Studio. What this does behind the scenes is dynamically queries the WCF Service running locally using WSDL protocol, and once it gets a list of all the published methods of the service, it updates the bindings within the proxy object. \r\n\r\nUnfortunately, at the same time it also updates (corrupts in my opinion) the local app.config file with what it thinks should be there. What this was doing was blowing away all the custom entries that we had made to the app.config file in order to accommodate the large upload file sizes, and also the multiple endpoint bindings that we had defined for Test, Production, Local, etc. VERY AGGRIVATING!! We had to keep a constant backup of the app.config file and we would have to restore it back to the customized state each time. To add the cherry on the top of this whole cream pie, when developer A would check in both projects (client and WCF Service) into Visual Source Safe (VSS), and then Developer B would pull all the latest code from VSS and compile and run it, a gazillion errors would show up on the client app. Developer B would then have to check out the client project’s code and perform the update operation for the proxy object on their workstation, and then everything would compile once again (after, of course, developer B also manually restored the app.config file back to the customized version). WHAT A PAIN !!! \r\n\r\nAfter this cycle repeated itself 4 or 5 times, we just got mentally exhausted and I had to call a timeout and make the hard decision to abandon the usage of the WCF for the project. We are now the proud owners of a plain Client/Server application that has 3 \"logical\" code layers behind the scenes (UI, business objects, and database access), but has only two physical layers (no middle tier application server). It runs almost 3 times as fast as the WCF version of the same screens. Anyone else experience these same frustrations with WCF?","preferred_answer":"> In my opinion, although it may be more flexible for different deployment scenarios, the introduction of the fragile and complex XML configuration files makes the application much harder to create and more importantly harder to maintain.\r\n\r\nThen don't use it. I have long abandoned XML configuration for WCF in favor of doing it all in code.","full_conversation":[{"role":"OP","user_id":"anon_3115924498807d65","comment_id":"arm0t","kind":"post","text":"Why we abandoned the use of Microsoft's WCF on a recent project...\n\nWe had two major issues with WCF. The first issue had to do with performance. The prototype we built worked fine for most of the windows that we had constructed until we got to the window where the user is allowed to upload documents up into the SQL Server database. We essentially created a document warehouse for the users so that they could upload and attach any Microsoft Office documents, PDF files, Email Messages (.MSG files), or images. Just about any kind of file can be uploaded to the SQL Server. Unfortunately, in order to transmit the documents between the client computer and the WCF Application Server, it has to “Marshall” and “Unmarshall” the data. This marshalling and unmarshalling is very intensive and slow, and was causing the application to work slowly while working on the documents window. We abandoned using the default http: protocol, and tried using bare-bones TCP/IP communications, and it did help, but not enough. Furthermore, it takes a lot of custom entries and tweaking of the XML configuration files (on both the client and the WCF App Service) to get the system to be able to accept even medium sized document files (anything bigger than 15KB fails without custom configuration file entries. \r\n\r\nThe folks at Microsoft are proud of the fact that you can take a WCF service application and simply change configuration files to make it run in a completely different environment (hosted inside IIS, in a stand-alone app, or as a windows service), or use completely different protocols (http:, TCP/IP, etc.). However, this relies heavy on what is called “declarative computing” whereby a significant portion of your program’s behavior is coded into XML configuration files instead of executable statements in your actual source code. In my opinion, although it may be more flexible for different deployment scenarios, the introduction of the fragile and complex XML configuration files makes the application much harder to create and more importantly harder to maintain. \r\n\r\nThe second problem was the one that really killed us. WCF is a relatively new technology from Microsoft, and I don’t think they quite have all the kinks worked out. The problem is in the area of the triad of software interaction between Visual Studio 2008, WCF, and Visual SourceSafe, particularly when more than one developer is trying to share WCF project source code with each other using Visual Source Safe. In a typical scenario, Developer A adds a new WCF Service method to the middle-tier application. After recompiling and running the service locally on his/her machine, the developer pulls up the Client application and updates the WCF proxy object in Visual Studio. What this does behind the scenes is dynamically queries the WCF Service running locally using WSDL protocol, and once it gets a list of all the published methods of the service, it updates the bindings within the proxy object. \r\n\r\nUnfortunately, at the same time it also updates (corrupts in my opinion) the local app.config file with what it thinks should be there. What this was doing was blowing away all the custom entries that we had made to the app.config file in order to accommodate the large upload file sizes, and also the multiple endpoint bindings that we had defined for Test, Production, Local, etc. VERY AGGRIVATING!! We had to keep a constant backup of the app.config file and we would have to restore it back to the customized state each time. To add the cherry on the top of this whole cream pie, when developer A would check in both projects (client and WCF Service) into Visual Source Safe (VSS), and then Developer B would pull all the latest code from VSS and compile and run it, a gazillion errors would show up on the client app. Developer B would then have to check out the client project’s code and perform the update operation for the proxy object on their workstation, and then everything would compile once again (after, of course, developer B also manually restored the app.config file back to the customized version). WHAT A PAIN !!! \r\n\r\nAfter this cycle repeated itself 4 or 5 times, we just got mentally exhausted and I had to call a timeout and make the hard decision to abandon the usage of the WCF for the project. We are now the proud owners of a plain Client/Server application that has 3 \"logical\" code layers behind the scenes (UI, business objects, and database access), but has only two physical layers (no middle tier application server). It runs almost 3 times as fast as the WCF version of the same screens. Anyone else experience these same frustrations with WCF?","timestamp":"2010-01-19T21:03:03+00:00","score":0},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"c0j1s9z","kind":"comment","text":"> In my opinion, although it may be more flexible for different deployment scenarios, the introduction of the fragile and complex XML configuration files makes the application much harder to create and more importantly harder to maintain.\r\n\r\nThen don't use it. I have long abandoned XML configuration for WCF in favor of doing it all in code.","timestamp":"2010-01-20T02:15:09+00:00","score":6},{"role":"OP","user_id":"anon_3115924498807d65","comment_id":"c0j2kuk","kind":"comment","text":"Thanks. I think I'm heading there as well.","timestamp":"2010-01-20T13:19:39+00:00","score":2},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"c0j2tfp","kind":"comment","text":"If you need any help feel free to contact me. I'm no master, but I think I've worked through most of the major pain points.","timestamp":"2010-01-20T15:57:08+00:00","score":1},{"role":"OP","user_id":"anon_3115924498807d65","comment_id":"c0j2xng","kind":"comment","text":"Based on all the great tips and feedback, I'm going to...\r\n\r\n1. Trash VSS and get Subversion installed and working.\r\n\r\n2. Re-program my app to completely bypass the app.config file entries and do everything manually in code, so I re-gain control over the situation.\r\n\r\n3. For file uploading and downloading, implement an out-of-band U/D mechanism that doesn't try to shove the files through WCF channels.","timestamp":"2010-01-20T16:56:47+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3115924498807d65","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0j1s9z","thanks_reply_id":"c0j2kuk","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_7e62b0f2eb650785","answerer_user_id":"anon_42c3093bfb9755f3","subreddit":"programming","timestamp":"2010-01-21T03:29:01+00:00","post_id":"as759","question":"Hey Reddit: Out of these 4 programmers, who would you hire?\n\nI have my own opinion on this, which I will share if we get a good discussion going.\n\n\nTake a hypothetical situation where you interview 4 candidates. They claim to have a good grasp on CS fundamentals, as well as know C#.\n\n\nYou ask them to solve a simple problem:\n\n Create a function that reverses a string.\n\nYou get back 4 unique approaches. All of them work properly:\n\n\n // Candidate 1\n static string Reverse(string input)\n {\n Stack stack = new Stack(input.ToCharArray());\n\n StringBuilder sb = new StringBuilder();\n foreach (char c in stack)\n {\n sb.Append(c);\n }\n\n return sb.ToString();\n }\n\n\n // Candidate 2\n static String Reverse(string input)\n {\n char[] chars = input.ToCharArray();\n int length = chars.Length;\n for (int i = 0; i < length / 2; i++)\n {\n char t = chars[i];\n chars[i] = chars[length - 1 - i];\n chars[length - 1 - i] = t;\n }\n\n return new String(chars);\n }\n\n\n // Candidate 3\n static string Reverse(string input)\n {\n char[] chars = input.ToCharArray();\n Array.Reverse(chars);\n return new String(chars);\n }\n\n\n // Candidate 4\n static string Reverse(string input)\n {\n string result = String.Empty;\n if (input.Length == 1)\n {\n return input;\n }\n else\n {\n result += input.ToCharArray().Last() + Reverse(input.Substring(0, input.Length - 1));\n return result;\n }\n }\n\n\nAssuming you have to pick one of these 4 for the job, and can only pick one. Based on what you see in these answers, who would you pick? Why? (Hypothetically of course, nobody would interview with a single question)\n\n\nI have a fairly strong opinion, but I wanted to see what other professional developers would think.","preferred_answer":"I'm just a javascript newbie and I can understand (only) #3 at the first glance :)","full_conversation":[{"role":"OP","user_id":"anon_7e62b0f2eb650785","comment_id":"as759","kind":"post","text":"Hey Reddit: Out of these 4 programmers, who would you hire?\n\nI have my own opinion on this, which I will share if we get a good discussion going.\n\n\nTake a hypothetical situation where you interview 4 candidates. They claim to have a good grasp on CS fundamentals, as well as know C#.\n\n\nYou ask them to solve a simple problem:\n\n Create a function that reverses a string.\n\nYou get back 4 unique approaches. All of them work properly:\n\n\n // Candidate 1\n static string Reverse(string input)\n {\n Stack stack = new Stack(input.ToCharArray());\n\n StringBuilder sb = new StringBuilder();\n foreach (char c in stack)\n {\n sb.Append(c);\n }\n\n return sb.ToString();\n }\n\n\n // Candidate 2\n static String Reverse(string input)\n {\n char[] chars = input.ToCharArray();\n int length = chars.Length;\n for (int i = 0; i < length / 2; i++)\n {\n char t = chars[i];\n chars[i] = chars[length - 1 - i];\n chars[length - 1 - i] = t;\n }\n\n return new String(chars);\n }\n\n\n // Candidate 3\n static string Reverse(string input)\n {\n char[] chars = input.ToCharArray();\n Array.Reverse(chars);\n return new String(chars);\n }\n\n\n // Candidate 4\n static string Reverse(string input)\n {\n string result = String.Empty;\n if (input.Length == 1)\n {\n return input;\n }\n else\n {\n result += input.ToCharArray().Last() + Reverse(input.Substring(0, input.Length - 1));\n return result;\n }\n }\n\n\nAssuming you have to pick one of these 4 for the job, and can only pick one. Based on what you see in these answers, who would you pick? Why? (Hypothetically of course, nobody would interview with a single question)\n\n\nI have a fairly strong opinion, but I wanted to see what other professional developers would think.","timestamp":"2010-01-21T03:29:01+00:00","score":138},{"role":"answerer","user_id":"anon_42c3093bfb9755f3","comment_id":"c0j4h76","kind":"comment","text":"I'm just a javascript newbie and I can understand (only) #3 at the first glance :)","timestamp":"2010-01-21T04:53:04+00:00","score":1},{"role":"OP","user_id":"anon_7e62b0f2eb650785","comment_id":"c0j4hg5","kind":"comment","text":"Take a hard look at #2, when you get it, you'll really appreciate it.","timestamp":"2010-01-21T04:56:35+00:00","score":4},{"role":"answerer","user_id":"anon_42c3093bfb9755f3","comment_id":"c0j4jnw","kind":"comment","text":"Well, thanks. But I may try this:\n function reverseString ( input ) {\n return input.split('').reverse().join('');\n }","timestamp":"2010-01-21T05:28:50+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7e62b0f2eb650785","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_42c3093bfb9755f3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0j4h76","thanks_reply_id":"c0j4hg5","post_score":138,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_5a891afc0182240b","answerer_user_id":"anon_3c3346f240e6b08c","subreddit":"programming","timestamp":"2010-01-24T23:34:32+00:00","post_id":"ato7x","question":"Has any of you successfully transitioned from test to development?\n\nI was a test engineer for about a year before I went back to school for a Master's degree. I got the degree partly to explore if I wanted to work in academia and partly because I thought it'd help me land a good development job (in systems). However, when I graduated I got interview calls mainly for test/QA positions probably because of past experience. So, here I am back in a non-development position which involves testing,automation etc. Has anyone successfully transitioned to being a developer from such positions? Any tips on how I should go about reaching my goal, considering I have at least a couple of years in my current position? Its not like I hate testing, I like development better. And I'm afraid I'm being pigeonholed into testing by adding more and more testing experience on my resume.\n\ntl;dr : I am a test/automation engineer and I would really like to move into development. Any tips?","preferred_answer":"I was in your position at one point. I had a multi-faceted approach that I used to make the transition. The first step is to get into the code. Not much you can do unless you make an effort to understand why something works the way it does. Then, start submitting patches or descriptions of what needs to be done in the code for any trivial bugs that you report. As you get more comfortable, code up solutions to the harder things. Eventually, people's perception of you will change.\n\nAnother good way to show that you have coding chops is to take a problem or an upcoming project and implement some kind of solution in your spare time. Nothing speaks louder than working code. Do enough of these and you will have proven that you are a very valuable developer.\n\nWhile going about this, it helps if you have understanding superiors to whom you have communicated your hopes and intentions (when the time is right for such a conversation).\n\nAnd of course, as the standard disclaimer goes, \"your mileage may vary\"; however, by doing all of this, you should eventually transition into the position you want to be in. The worst thing you can do is get discouraged along the way--this will take some time (on the order of a year for me).","full_conversation":[{"role":"OP","user_id":"anon_5a891afc0182240b","comment_id":"ato7x","kind":"post","text":"Has any of you successfully transitioned from test to development?\n\nI was a test engineer for about a year before I went back to school for a Master's degree. I got the degree partly to explore if I wanted to work in academia and partly because I thought it'd help me land a good development job (in systems). However, when I graduated I got interview calls mainly for test/QA positions probably because of past experience. So, here I am back in a non-development position which involves testing,automation etc. Has anyone successfully transitioned to being a developer from such positions? Any tips on how I should go about reaching my goal, considering I have at least a couple of years in my current position? Its not like I hate testing, I like development better. And I'm afraid I'm being pigeonholed into testing by adding more and more testing experience on my resume.\n\ntl;dr : I am a test/automation engineer and I would really like to move into development. Any tips?","timestamp":"2010-01-24T23:34:32+00:00","score":0},{"role":"answerer","user_id":"anon_3c3346f240e6b08c","comment_id":"c0jcepl","kind":"comment","text":"I was in your position at one point. I had a multi-faceted approach that I used to make the transition. The first step is to get into the code. Not much you can do unless you make an effort to understand why something works the way it does. Then, start submitting patches or descriptions of what needs to be done in the code for any trivial bugs that you report. As you get more comfortable, code up solutions to the harder things. Eventually, people's perception of you will change.\n\nAnother good way to show that you have coding chops is to take a problem or an upcoming project and implement some kind of solution in your spare time. Nothing speaks louder than working code. Do enough of these and you will have proven that you are a very valuable developer.\n\nWhile going about this, it helps if you have understanding superiors to whom you have communicated your hopes and intentions (when the time is right for such a conversation).\n\nAnd of course, as the standard disclaimer goes, \"your mileage may vary\"; however, by doing all of this, you should eventually transition into the position you want to be in. The worst thing you can do is get discouraged along the way--this will take some time (on the order of a year for me).","timestamp":"2010-01-25T02:12:14+00:00","score":4},{"role":"OP","user_id":"anon_5a891afc0182240b","comment_id":"c0jcfqu","kind":"comment","text":"Thanks for the reply, you make some good points. I wonder how much management played a role in allowing you space to code up solutions to bugs? In my previous job, I was told to continue testing for more bugs and not waste valuable time in trying to find solutions. Did you convey your ambitions to your manager pretty much when you started in testing?","timestamp":"2010-01-25T02:28:48+00:00","score":1},{"role":"answerer","user_id":"anon_3c3346f240e6b08c","comment_id":"c0jci0c","kind":"comment","text":"When I first started out, management had no idea. It was at one of those performance reviews (the type where they ask you where you see yourself in 5 years) that I firmly said that I saw no reason that I wouldn't be developing even sooner than that, given how talented I was in that area. An ostentatious comment to be sure, but I intended to follow up on it.\n\nYou have to also understand the type of testing that I was doing, which leaned a lot more on the automation side of things, so it was natural for me to write code and not have too many questions asked about why I was typing in a text editor instead of clicking around in a drone-like fashion.\n\nSounds like management at your previous job was a bit clueless, since coming up with good solutions is probably the best use of time that anyone can come up with. It's basic management theory--business has problem--business needs solution to problem.\n\nIt will do a lot for you if it turns out that your \"superiors\" are understanding and if you do a good job conveying your intentions, both via working code itself as well as telling them directly when the occasion warrants it. I think that this is one of those areas where your personal time becomes very useful.\n\nA good way to get into the code, since you are focused on testing, is doing refactoring to make things more unit-testable and writing unit tests for them. Just another avenue to explore when you're trying to move from testing to development.","timestamp":"2010-01-25T03:04:01+00:00","score":2},{"role":"OP","user_id":"anon_5a891afc0182240b","comment_id":"c0jckbv","kind":"comment","text":"yeah, I do quite a bit of coding for automation too, so typing in a text editor won't raise any flags... I guess this is one of the situations in which the management jargon of 'being proactive' truly helps :)","timestamp":"2010-01-25T03:39:24+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5a891afc0182240b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3c3346f240e6b08c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jcepl","thanks_reply_id":"c0jcfqu","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_2cee8a5563d6b972","answerer_user_id":"anon_74d044df0693c70f","subreddit":"programming","timestamp":"2010-01-25T00:01:23+00:00","post_id":"atof3","question":"What are your thoughts on the growing number of young (pre-teen young) iPhone developers?\n\nMy stand? They piss me off. I'm not even legally an adult and I am infuriated by the copy-and-paste mentality taught by 12 year olds giving iPhone coding tutorials on YouTube. \n\nWhat do you think? Is the next generation of developers doomed by these \"noobs\" trying to fit in?\n\nThis is not a hate topic. I just want your opinions.","preferred_answer":"i think he is referring to the snobbyness that some of these kids have.\n\n\"i can mad hax, let me just download other people's sourcecode and click run\"","full_conversation":[{"role":"OP","user_id":"anon_2cee8a5563d6b972","comment_id":"atof3","kind":"post","text":"What are your thoughts on the growing number of young (pre-teen young) iPhone developers?\n\nMy stand? They piss me off. I'm not even legally an adult and I am infuriated by the copy-and-paste mentality taught by 12 year olds giving iPhone coding tutorials on YouTube. \n\nWhat do you think? Is the next generation of developers doomed by these \"noobs\" trying to fit in?\n\nThis is not a hate topic. I just want your opinions.","timestamp":"2010-01-25T00:01:23+00:00","score":0},{"role":"answerer","user_id":"anon_74d044df0693c70f","comment_id":"c0jccyo","kind":"comment","text":"i think he is referring to the snobbyness that some of these kids have.\n\n\"i can mad hax, let me just download other people's sourcecode and click run\"","timestamp":"2010-01-25T01:46:10+00:00","score":1},{"role":"OP","user_id":"anon_2cee8a5563d6b972","comment_id":"c0jcdew","kind":"comment","text":"thank you. finally. :P\n\nbut yeah I totally agree about the teaching thing. luckily, i have a really good comp sci teacher, i've even done research with him.","timestamp":"2010-01-25T01:53:06+00:00","score":0},{"role":"answerer","user_id":"anon_74d044df0693c70f","comment_id":"c0jcdpl","kind":"comment","text":"really? what's his name?","timestamp":"2010-01-25T01:57:21+00:00","score":1},{"role":"OP","user_id":"anon_2cee8a5563d6b972","comment_id":"c0jcdt7","kind":"comment","text":"charles babbage.","timestamp":"2010-01-25T01:58:50+00:00","score":0},{"role":"answerer","user_id":"anon_74d044df0693c70f","comment_id":"c0jcdy5","kind":"comment","text":"same here. small world","timestamp":"2010-01-25T02:01:03+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_2cee8a5563d6b972","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_74d044df0693c70f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jccyo","thanks_reply_id":"c0jcdew","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_056cdda4981be15f","answerer_user_id":"anon_bc55dce67c59ffc8","subreddit":"programming","timestamp":"2010-01-25T23:41:03+00:00","post_id":"au3rs","question":"Newbie LGPL compliance questions; any of you OSS license experts out there today?\n\nHey all—we are investigating the use of an open source product (call it FOO) licensed under the LGPL. There are a ton of other projects which use this product, either without modification or with modifications. \n\nIn most cases, those secondary projects are also released open-source and licensed under the LGPL. I've encountered a small handful of projects that:\n- Distribute FOO, including modifications, as source\n- Distribute themselves as static libraries, no source included (but sometimes the header files for the static library). They also usually include make files which allow the whole package (static library+FOO) to be built and used as one.\n\nQuestions:\n\n1.) Are those latter projects actually in compliance with the LGPL? I think so, as they appear to meet the terms of section 6.a:\n\n> Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable \"work that uses the Library\", **as object code** and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library.\n\nbut this part is hazy for me.\n\n2.) For projects that distribute their own product as a static library, is it legal for us to link our product to that static library and use functionality from it in our own projects, provided we also distribute our product with FOO's source in compliance with the LGPL, and the static library provided by the other vendor? \n\nThanks for your help. These licenses are often treacherous to navigate.\n\n**Edit:** Formatting, emphasis.","preferred_answer":"Your users must be able to change the code licensed under the LGPL and run your program with that changed code. There's a few ways to do this:\n\n * Distribute the source code to your program. It need not be under the LGPL, or GPL.\n * Distribute your program statically linked against the LGPL library. But also distribute all the object files for your program, along with the object files of the LGPL library.\n * Put the object files of the LGPL library into a dynamic library, and then link your program against that dynamic library.\n\nA \"static library\" is a synonym for \"object files\", in all cases.","full_conversation":[{"role":"OP","user_id":"anon_056cdda4981be15f","comment_id":"au3rs","kind":"post","text":"Newbie LGPL compliance questions; any of you OSS license experts out there today?\n\nHey all—we are investigating the use of an open source product (call it FOO) licensed under the LGPL. There are a ton of other projects which use this product, either without modification or with modifications. \n\nIn most cases, those secondary projects are also released open-source and licensed under the LGPL. I've encountered a small handful of projects that:\n- Distribute FOO, including modifications, as source\n- Distribute themselves as static libraries, no source included (but sometimes the header files for the static library). They also usually include make files which allow the whole package (static library+FOO) to be built and used as one.\n\nQuestions:\n\n1.) Are those latter projects actually in compliance with the LGPL? I think so, as they appear to meet the terms of section 6.a:\n\n> Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable \"work that uses the Library\", **as object code** and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library.\n\nbut this part is hazy for me.\n\n2.) For projects that distribute their own product as a static library, is it legal for us to link our product to that static library and use functionality from it in our own projects, provided we also distribute our product with FOO's source in compliance with the LGPL, and the static library provided by the other vendor? \n\nThanks for your help. These licenses are often treacherous to navigate.\n\n**Edit:** Formatting, emphasis.","timestamp":"2010-01-25T23:41:03+00:00","score":0},{"role":"answerer","user_id":"anon_bc55dce67c59ffc8","comment_id":"c0jehne","kind":"comment","text":"Your users must be able to change the code licensed under the LGPL and run your program with that changed code. There's a few ways to do this:\n\n * Distribute the source code to your program. It need not be under the LGPL, or GPL.\n * Distribute your program statically linked against the LGPL library. But also distribute all the object files for your program, along with the object files of the LGPL library.\n * Put the object files of the LGPL library into a dynamic library, and then link your program against that dynamic library.\n\nA \"static library\" is a synonym for \"object files\", in all cases.","timestamp":"2010-01-26T00:02:33+00:00","score":5},{"role":"OP","user_id":"anon_056cdda4981be15f","comment_id":"c0jeizr","kind":"comment","text":"Thanks for the info. Let's take your second bullet point. If another developer distributed their library exactly as you mentioned (as a static library linked to the LGPL library), can WE then use *that* third party's library, link to it, and use its functionality (provided either header files or some reverse-engineering)?","timestamp":"2010-01-26T00:21:30+00:00","score":2},{"role":"answerer","user_id":"anon_bc55dce67c59ffc8","comment_id":"c0jeu6o","kind":"comment","text":"If another developer distributed their library (\"steve\") statically linked against the LGPL library (\"laura\"), then they need to respect the license of \"laura\". This is independent of you respecting the license of laura.\n\nIf they did not distribute steve as per one of my three bullet points, then they're violating the license of \"laura\", in which case you would also do so if you were to link against steve (and thus, indirectly, laura).\n\nIf they distributed steve in the manner of my second bullet point, then you are enabled to distribute your package in such a way that laura can be modified. If both of these are the case, then you are not violating the license of laura. (But, independently, you must also not violate the license of steve.)\n\nIn short: yes, you can indirectly violate the license of an LGPL library.\n\nIn slightly longer: if you link (statically or dynamically) against library A, and A links against library B, you need to respect the license of A and B.\n\nTo be overly pedantic, and this in no way answers your question: If you dynamically link to, but do not distribute, a library, then you cannot violate the library's license. In practice, this is impossible because you still need to use its header files or whatnot.","timestamp":"2010-01-26T03:03:19+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_056cdda4981be15f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bc55dce67c59ffc8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jehne","thanks_reply_id":"c0jeizr","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_ca283a591ab23ba3","answerer_user_id":"anon_56068fc00a1452ed","subreddit":"programming","timestamp":"2010-01-28T05:32:08+00:00","post_id":"av2ye","question":"Did turning your passion of programming into a career after college kill the passion?\n\nTitle. I'm currently in college for computer science, and I'm worried after working it 9-5 if it will be the same anymore. Any tips/experiences?","preferred_answer":"The instant you get paid for something that you previously enjoyed doing for free, you lose some of the intrinsic joy / motivation you previously had. I don't remember the psychological term for it (Psych majors, we may actually have a use for you... I'm sorry for those mean things I said...) Having said that, it depends upon where you end up working. I enjoyed my work for a long time. Then the company I was working for changed considerably and life went from good to bad quite quickly. It's not easy to find a good company anymore. It seems that, more and more IT is seen as a commodity these days and we've gone from \"magical makers of code\" to \"pesky overhead\". Find a place where you aren't just going to be treated like overhead and life will be better.","full_conversation":[{"role":"OP","user_id":"anon_ca283a591ab23ba3","comment_id":"av2ye","kind":"post","text":"Did turning your passion of programming into a career after college kill the passion?\n\nTitle. I'm currently in college for computer science, and I'm worried after working it 9-5 if it will be the same anymore. Any tips/experiences?","timestamp":"2010-01-28T05:32:08+00:00","score":47},{"role":"answerer","user_id":"anon_56068fc00a1452ed","comment_id":"c0jjxdx","kind":"comment","text":"The instant you get paid for something that you previously enjoyed doing for free, you lose some of the intrinsic joy / motivation you previously had. I don't remember the psychological term for it (Psych majors, we may actually have a use for you... I'm sorry for those mean things I said...) Having said that, it depends upon where you end up working. I enjoyed my work for a long time. Then the company I was working for changed considerably and life went from good to bad quite quickly. It's not easy to find a good company anymore. It seems that, more and more IT is seen as a commodity these days and we've gone from \"magical makers of code\" to \"pesky overhead\". Find a place where you aren't just going to be treated like overhead and life will be better.","timestamp":"2010-01-28T08:09:43+00:00","score":2},{"role":"OP","user_id":"anon_ca283a591ab23ba3","comment_id":"c0jkbsz","kind":"comment","text":"Thanks man; good advice. So don't take shit and spend your time finding where you should be instead of taking it for a decade?","timestamp":"2010-01-28T15:15:03+00:00","score":1},{"role":"answerer","user_id":"anon_56068fc00a1452ed","comment_id":"c0jkmai","kind":"comment","text":"Yeah, JoelOnSoftware and others have dedicated pages to what to look for in a company. Unfortunately, there's only so much you can learn during the interview process. My current company looks great on paper but the reality is that it's not a good place to work. This isn't something you could figure out during an interview. It may take you 6 months to figure it out. Once you bump into it though... life sucks.","timestamp":"2010-01-28T17:35:12+00:00","score":1},{"role":"OP","user_id":"anon_ca283a591ab23ba3","comment_id":"c0jkn5f","kind":"comment","text":"Makes me want to move to glasgow, lol.","timestamp":"2010-01-28T17:44:57+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ca283a591ab23ba3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_56068fc00a1452ed","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jjxdx","thanks_reply_id":"c0jkbsz","post_score":47,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2c0667268d975832","answerer_user_id":"anon_2da86e604973a6b5","subreddit":"programming","timestamp":"2010-02-01T00:29:03+00:00","post_id":"awgru","question":"I need an app for facebook that allows people to link to their vendors and bridal party. How much should I be paying for this?","preferred_answer":"$5k","full_conversation":[{"role":"OP","user_id":"anon_2c0667268d975832","comment_id":"awgru","kind":"post","text":"I need an app for facebook that allows people to link to their vendors and bridal party. How much should I be paying for this?","timestamp":"2010-02-01T00:29:03+00:00","score":0},{"role":"answerer","user_id":"anon_2da86e604973a6b5","comment_id":"c0jr3zj","kind":"comment","text":"$5k","timestamp":"2010-02-01T00:38:59+00:00","score":1},{"role":"OP","user_id":"anon_2c0667268d975832","comment_id":"c0jr4yv","kind":"comment","text":"May be not then. Thanks.","timestamp":"2010-02-01T00:55:53+00:00","score":1},{"role":"answerer","user_id":"anon_2da86e604973a6b5","comment_id":"c0jt2af","kind":"comment","text":"It may not have to be that expensive. I write Facebook application and that is just the bottom line base price for a project. You have given a one line description of your idea. The main reason most people want to put stuff of Facebook is also to have the viral capability and that takes a lot of effort making it work nicely and fluidly with an app while nicely following Facebook's TOS. If you don't want an application in Facebook, then look to have it offsite. You can probably get it for much cheaper.","timestamp":"2010-02-01T21:39:49+00:00","score":1},{"role":"OP","user_id":"anon_2c0667268d975832","comment_id":"c0jt2mn","kind":"comment","text":"Basically all I want is a little box that will appear on the brides page. It would have a list of roles:groom, best man, maid of honour, photographer etc. If they are on facebook it would link to them if not it would link to their website.","timestamp":"2010-02-01T21:43:21+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2c0667268d975832","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2da86e604973a6b5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jr3zj","thanks_reply_id":"c0jr4yv","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_de7aefc05b3bfabc","answerer_user_id":"anon_32eced3e82c09164","subreddit":"programming","timestamp":"2010-02-02T03:16:24+00:00","post_id":"awxl9","question":"Help me out Proggit, I want to learn my first language!\n\nBut I don't know which I should learn. I'm not just being lazy, I've tried to do research, but I'd like to hear some advice, preferences, stories and warnings from Reddit!\n\nI know this is a broad question and open to preference and interpretation, but I'd like to get a wide analysis of programmers to see what I can do to make a good pick! I'll try to answer any questions, and my friends and I thank you in advance for your help!!","preferred_answer":"Good for you! Welcome to the club. You're officially a programmer now. :)\n\nPeople will give you a bunch of advice if you ask them for it\u0010. My feeling is: just pick one and run with it. Most mainstream languages are pretty similar, and your first one is always the hardest.\n\nFigure out something you want to do -- an interactive web page, maybe, or a simple interactive text game, or rendering a simple graphics image. _Then_ pick the language. People will be able to give you better advice when you've chosen something specific to implement.\n\nPick a problem domain that you'll love, one that will keep you plugging away even when things get confusing or discouraging, and you're much more likely to be successful and keep after it.\n\nIf you aren't getting it, try a different language! Just don't give up. There are a gazillion people willing to help out at all phases of the learning process.","full_conversation":[{"role":"OP","user_id":"anon_de7aefc05b3bfabc","comment_id":"awxl9","kind":"post","text":"Help me out Proggit, I want to learn my first language!\n\nBut I don't know which I should learn. I'm not just being lazy, I've tried to do research, but I'd like to hear some advice, preferences, stories and warnings from Reddit!\n\nI know this is a broad question and open to preference and interpretation, but I'd like to get a wide analysis of programmers to see what I can do to make a good pick! I'll try to answer any questions, and my friends and I thank you in advance for your help!!","timestamp":"2010-02-02T03:16:24+00:00","score":0},{"role":"answerer","user_id":"anon_32eced3e82c09164","comment_id":"c0jtrxj","kind":"comment","text":"Good for you! Welcome to the club. You're officially a programmer now. :)\n\nPeople will give you a bunch of advice if you ask them for it\u0010. My feeling is: just pick one and run with it. Most mainstream languages are pretty similar, and your first one is always the hardest.\n\nFigure out something you want to do -- an interactive web page, maybe, or a simple interactive text game, or rendering a simple graphics image. _Then_ pick the language. People will be able to give you better advice when you've chosen something specific to implement.\n\nPick a problem domain that you'll love, one that will keep you plugging away even when things get confusing or discouraging, and you're much more likely to be successful and keep after it.\n\nIf you aren't getting it, try a different language! Just don't give up. There are a gazillion people willing to help out at all phases of the learning process.","timestamp":"2010-02-02T03:28:41+00:00","score":2},{"role":"OP","user_id":"anon_de7aefc05b3bfabc","comment_id":"c0jtsy0","kind":"comment","text":"Thanks! So basically, whether it's C++ or Perl or Python, etc, it'll give me what I need to know to move on and find my own groove?","timestamp":"2010-02-02T03:43:02+00:00","score":1},{"role":"answerer","user_id":"anon_32eced3e82c09164","comment_id":"c0jtv06","kind":"comment","text":"I think so. YMMV. But keep in mind my last paragraph -- if you don't like your choice, pick another one. The \"not giving up\" is the important part. It's really not that hard; the problem is that nobody's very good at explaining it. :)","timestamp":"2010-02-02T04:12:32+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_de7aefc05b3bfabc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_32eced3e82c09164","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jtrxj","thanks_reply_id":"c0jtsy0","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_939ddfd713186a18","answerer_user_id":"anon_d7e36d5fab365c09","subreddit":"programming","timestamp":"2010-02-03T17:39:10+00:00","post_id":"axncy","question":"Is emacs a useful tool for a CS student to learn?\n\nI'm a CS major and currently enrolled in a C++ course. I've done plenty of Java programming in the past along with assembly, some C and Python, but this is my first swing at C++. I've heard about emacs before, but I'm not really too sure how its useful and if its a necessary tool to learn.\n\nSo I come to you proggit, is it worth it for me to learn emacs as I learn C++? If so, is there a good way to get jumpstarted on learning it? And should I use emacs..xemacs?\n\nFYI: I run Ubuntu and all of my assignments/projects will be compiled with g++ on debian machines","preferred_answer":"Absolutely! Take the time to learn basic emacs usage, and it will only benefit you. Emacs + GNU Make is all you need for projects like this.\n\nDon't ever touch XEmacs though. It was cool once, when it first came out, but now it's just horribly outdated and obsolete.","full_conversation":[{"role":"OP","user_id":"anon_939ddfd713186a18","comment_id":"axncy","kind":"post","text":"Is emacs a useful tool for a CS student to learn?\n\nI'm a CS major and currently enrolled in a C++ course. I've done plenty of Java programming in the past along with assembly, some C and Python, but this is my first swing at C++. I've heard about emacs before, but I'm not really too sure how its useful and if its a necessary tool to learn.\n\nSo I come to you proggit, is it worth it for me to learn emacs as I learn C++? If so, is there a good way to get jumpstarted on learning it? And should I use emacs..xemacs?\n\nFYI: I run Ubuntu and all of my assignments/projects will be compiled with g++ on debian machines","timestamp":"2010-02-03T17:39:10+00:00","score":10},{"role":"answerer","user_id":"anon_d7e36d5fab365c09","comment_id":"c0jx6xs","kind":"comment","text":"Absolutely! Take the time to learn basic emacs usage, and it will only benefit you. Emacs + GNU Make is all you need for projects like this.\n\nDon't ever touch XEmacs though. It was cool once, when it first came out, but now it's just horribly outdated and obsolete.","timestamp":"2010-02-03T17:54:25+00:00","score":7},{"role":"OP","user_id":"anon_939ddfd713186a18","comment_id":"c0jx98v","kind":"comment","text":"Thank you for that, my professor recommended xemacs over emacs and I wasn't really sure why.","timestamp":"2010-02-03T18:23:28+00:00","score":1},{"role":"answerer","user_id":"anon_d7e36d5fab365c09","comment_id":"c0jxaf8","kind":"comment","text":"XEmacs was a solid improvement over GNU Emacs back in like version 18 or thereabouts (whenever the fork happened). Innovation stopped dead after that, though, and GNU Emacs soared past it. Now it has stuff XEmacs can only dream about, so I'm not sure why he would recommend it. Maybe he's just a throwback.","timestamp":"2010-02-03T18:38:55+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_939ddfd713186a18","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d7e36d5fab365c09","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jx6xs","thanks_reply_id":"c0jx98v","post_score":10,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_c1c521ed9a3af56b","answerer_user_id":"anon_c3c4043f869493aa","subreddit":"programming","timestamp":"2010-02-03T20:24:24+00:00","post_id":"axplx","question":"What do you guys think of debuggers? Essential tool? Or crutch?\n\nMy boss just implied that he might force me to use a debugger one of these days. Apparently, I take too much time debugging (his convoluted) code. I'm against the idea; not because I dislike debuggers, but I hate the idea of not being able to debug without one. I am will to use one if ever the bug turns out to be complex, but if I didn't rack my brains first, I think it's more of a destructive habit than anything.\n\nDo note that I deal with PHP and javascript 90% of the time. Understanding the code and sprinkling a few print_r/var_dump works in 99% of cases, imho. If I was dealing with a language which isn't as easily introspectable, my use of the debugger would be much more prevalent, but I still think the previous logic applies.\n\nWhat do you guys think?\n\n\n-- EDIT --\nWell, I think we established that debuggers are *awesomely useful* to quote ssylvan. I guess the real question was, what's an appropriate threshold before you fire it up?","preferred_answer":"I think the OP's point was that using a debugger is less likely to bring you to that *gods among men* state. He's probably right to some extent, but not using the debugger is a luxury that should be done on your own time, not your company's.","full_conversation":[{"role":"OP","user_id":"anon_c1c521ed9a3af56b","comment_id":"axplx","kind":"post","text":"What do you guys think of debuggers? Essential tool? Or crutch?\n\nMy boss just implied that he might force me to use a debugger one of these days. Apparently, I take too much time debugging (his convoluted) code. I'm against the idea; not because I dislike debuggers, but I hate the idea of not being able to debug without one. I am will to use one if ever the bug turns out to be complex, but if I didn't rack my brains first, I think it's more of a destructive habit than anything.\n\nDo note that I deal with PHP and javascript 90% of the time. Understanding the code and sprinkling a few print_r/var_dump works in 99% of cases, imho. If I was dealing with a language which isn't as easily introspectable, my use of the debugger would be much more prevalent, but I still think the previous logic applies.\n\nWhat do you guys think?\n\n\n-- EDIT --\nWell, I think we established that debuggers are *awesomely useful* to quote ssylvan. I guess the real question was, what's an appropriate threshold before you fire it up?","timestamp":"2010-02-03T20:24:24+00:00","score":7},{"role":"answerer","user_id":"anon_c3c4043f869493aa","comment_id":"c0jxszw","kind":"comment","text":"I think the OP's point was that using a debugger is less likely to bring you to that *gods among men* state. He's probably right to some extent, but not using the debugger is a luxury that should be done on your own time, not your company's.","timestamp":"2010-02-03T22:19:19+00:00","score":2},{"role":"OP","user_id":"anon_c1c521ed9a3af56b","comment_id":"c0jy0mz","kind":"comment","text":"You understood. Thanks for an objective point of view, from both sides of the fence. I actually agree with you, even though I'd prefer if my employer paid me to not always be as productive as can be.\n\nEdit: So how else does one become *god among men*?\nEdit2: Apart from reading (code and books) and concentrating?","timestamp":"2010-02-03T23:58:58+00:00","score":0},{"role":"answerer","user_id":"anon_c3c4043f869493aa","comment_id":"c0jy42j","kind":"comment","text":"Well, you've really called me out on this one - I'm about as far from a *god among men* as you can get and have basically no experience at progamming. Nevertheless, I'll have a bash at answering this. \n\nI'd say that what defines the *gods among men* is their mindset to approaching problems. This doesn't just apply to programming. Most of the people I've met who are experts in their fields have a knack for breaking problems down into their simplest constituent parts. Coupled with an excellent understanding of the system containing the problem, this process makes their jobs so much easier. Think about Feynman Diagrams. These are awesome, because they show the quantum interaction of particles in simple terms and lose none of the important bits. \n\nSo strive for that mindset - always see things in the simplest terms possible. Concentrating hard on something may be wasted time and energy if you're overcomplicating a problem. Furthermore, lots of practice. Like TomorrowPlusX said, the *gods among men* tend to be older. They didn't just wake up at 40 and say \"oh right, that's what I've been doing wrong\". They spent those years writing lots and lots of code. \n\nSo yeah, do that.","timestamp":"2010-02-04T00:46:20+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c1c521ed9a3af56b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c3c4043f869493aa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0jxszw","thanks_reply_id":"c0jy0mz","post_score":7,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_fc74283f5165db62","answerer_user_id":"anon_c102ef74e97027dc","subreddit":"programming","timestamp":"2010-02-05T18:21:53+00:00","post_id":"ayjp0","question":"Help plz: cannot find visual c++ 2003 anywhere\n\nSo I bought this book about gamesprogramming and it's got a CD with sample projects, but they've been made in Visual C++ 2003 and conversions constantly fail when using 2005 or 2008 versions. \n\nNow I have intensely googled for the 2003 express version or any version at all, but I can simply not find a thing :( \n\nAny Help appreciated, \n\nLuxpsycho :)","preferred_answer":"Your English is fine, and since it's an E-Book, why not just go with one of the many available fine tutorials available online? (Most of these have solutions for visual studio 2008 or show you easily how to create your own).\n\n(DirectX 9) http://www.directxtutorial.com/Tutorial9/tutorials.aspx\n\n(SDL) http://www.sdltutorials.com/sdl-tutorial-basics/\n\nVisual Studio 2003 is no longer supported by Microsoft, so in order to get it, you either need a MSDN subscription of some sort, or pirate it, maybe there is a copy floating around on ebay, but i would strongly advocate against this. VS2k3 is **obsolete**","full_conversation":[{"role":"OP","user_id":"anon_fc74283f5165db62","comment_id":"ayjp0","kind":"post","text":"Help plz: cannot find visual c++ 2003 anywhere\n\nSo I bought this book about gamesprogramming and it's got a CD with sample projects, but they've been made in Visual C++ 2003 and conversions constantly fail when using 2005 or 2008 versions. \n\nNow I have intensely googled for the 2003 express version or any version at all, but I can simply not find a thing :( \n\nAny Help appreciated, \n\nLuxpsycho :)","timestamp":"2010-02-05T18:21:53+00:00","score":0},{"role":"answerer","user_id":"anon_c102ef74e97027dc","comment_id":"c0k1tai","kind":"comment","text":"Your English is fine, and since it's an E-Book, why not just go with one of the many available fine tutorials available online? (Most of these have solutions for visual studio 2008 or show you easily how to create your own).\n\n(DirectX 9) http://www.directxtutorial.com/Tutorial9/tutorials.aspx\n\n(SDL) http://www.sdltutorials.com/sdl-tutorial-basics/\n\nVisual Studio 2003 is no longer supported by Microsoft, so in order to get it, you either need a MSDN subscription of some sort, or pirate it, maybe there is a copy floating around on ebay, but i would strongly advocate against this. VS2k3 is **obsolete**","timestamp":"2010-02-05T19:28:33+00:00","score":2},{"role":"OP","user_id":"anon_fc74283f5165db62","comment_id":"c0k1u5z","kind":"comment","text":"Thanks \nVS '03 not being supported by microsoft explains it all^^ \nWell, thanks for your help and clarification then, \n\nLuxpsycho \n\n\nP.S. Why did I get so many downvotes for this post? Does it belong to askreddit.com? But it's strongly computing-related... hmm...","timestamp":"2010-02-05T19:39:55+00:00","score":1},{"role":"answerer","user_id":"anon_c102ef74e97027dc","comment_id":"c0k25ab","kind":"comment","text":"try posting LOL cats instead of an honest to goodness question.","timestamp":"2010-02-05T22:10:02+00:00","score":2},{"role":"OP","user_id":"anon_fc74283f5165db62","comment_id":"c0k2h5q","kind":"comment","text":"very helpful indeed...","timestamp":"2010-02-06T01:31:03+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_fc74283f5165db62","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c102ef74e97027dc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0k1tai","thanks_reply_id":"c0k1u5z","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_e561ba89cafd587c","answerer_user_id":"anon_a263951b5ef2426f","subreddit":"programming","timestamp":"2010-02-06T17:43:21+00:00","post_id":"ayvr6","question":"Need advice: Live video streaming\n\ni wanna set up a live video stream. I have a accounted hosted by webfaction currently up and running so i am wondering is their a way to upload a video from a webcam and distribute it through the webfaction account ? i want to do this because the place i am broadcasting is from have very limited upload bandwidth (adsl) and the webfaction servers have more than enough bandwidth to deal with the users i am expecting.","preferred_answer":"You won't be able to broadcast from your server unless it has specialized streaming software installed. But this is not a problem. Unless you need specific control, services like ustream.tv or justin.tv should work perfectly well. Just take the embed codes and put them on your web page and that's it.","full_conversation":[{"role":"OP","user_id":"anon_e561ba89cafd587c","comment_id":"ayvr6","kind":"post","text":"Need advice: Live video streaming\n\ni wanna set up a live video stream. I have a accounted hosted by webfaction currently up and running so i am wondering is their a way to upload a video from a webcam and distribute it through the webfaction account ? i want to do this because the place i am broadcasting is from have very limited upload bandwidth (adsl) and the webfaction servers have more than enough bandwidth to deal with the users i am expecting.","timestamp":"2010-02-06T17:43:21+00:00","score":0},{"role":"answerer","user_id":"anon_a263951b5ef2426f","comment_id":"c0k41a2","kind":"comment","text":"You won't be able to broadcast from your server unless it has specialized streaming software installed. But this is not a problem. Unless you need specific control, services like ustream.tv or justin.tv should work perfectly well. Just take the embed codes and put them on your web page and that's it.","timestamp":"2010-02-07T00:38:03+00:00","score":1},{"role":"OP","user_id":"anon_e561ba89cafd587c","comment_id":"c0k4xhy","kind":"comment","text":"hi thanks i used ustream and flash encoder to live cast it :)","timestamp":"2010-02-07T16:12:54+00:00","score":2},{"role":"answerer","user_id":"anon_a263951b5ef2426f","comment_id":"c0k5b5e","kind":"comment","text":"Awesome. Glad to be of help.","timestamp":"2010-02-07T20:06:28+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e561ba89cafd587c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a263951b5ef2426f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0k41a2","thanks_reply_id":"c0k4xhy","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_7d217629e483adbc","answerer_user_id":"anon_20a74e7714d975ee","subreddit":"programming","timestamp":"2010-02-09T20:10:53+00:00","post_id":"b024x","question":"Creating a simple soundboard app... never read a programming book and I don't have an Mac. Can you help if I have a question?\n\nI'm using online video tutorials for guidance... and I'm not sure if I can connect the dots at the end of my project. I would like to get this app done in a week, at most... does anybody have a little time this week and give me the permission to PM them?","preferred_answer":"Sure.","full_conversation":[{"role":"OP","user_id":"anon_7d217629e483adbc","comment_id":"b024x","kind":"post","text":"Creating a simple soundboard app... never read a programming book and I don't have an Mac. Can you help if I have a question?\n\nI'm using online video tutorials for guidance... and I'm not sure if I can connect the dots at the end of my project. I would like to get this app done in a week, at most... does anybody have a little time this week and give me the permission to PM them?","timestamp":"2010-02-09T20:10:53+00:00","score":0},{"role":"answerer","user_id":"anon_20a74e7714d975ee","comment_id":"c0ka95s","kind":"comment","text":"Sure.","timestamp":"2010-02-10T00:25:54+00:00","score":1},{"role":"OP","user_id":"anon_7d217629e483adbc","comment_id":"c0kacuy","kind":"comment","text":"thank you. I started writing the code in a text doc and will go to school tomorrow to work on a Mac... hopefully they have Xcode and Interface builder on the machine...\n\nI almost lost hope in /programming ...was about to delete and post into /favors lol","timestamp":"2010-02-10T01:20:30+00:00","score":1},{"role":"answerer","user_id":"anon_20a74e7714d975ee","comment_id":"c0kb9l7","kind":"comment","text":"There's an multi-platform, open source implementation of the OPENSTEP API called [GNUstep](http://www.gnustep.org/experience/Startup.html). That OPENSTEP spec consisted of mainly of three components: Foundation Kit, Application Kit and Display PostScript. Those first two should ring a bell.\n\nMac OS X is a continuation of OPENSTEP, and because of this, is source-compatible with GNUstep, as compatibility with OPENSTEP is the one of the goals of the GNUstep project.\n\n*You can write and run code in Windows or whatever that will build and link on a Mac.*\n\nOf course, there are some caveats. A couple of the top of my head:\n\nFirst, it isn't a complete implementation; the amount of the API that *is* implemented is amazing, however. Notably missing are newer technologies like Core Animation and things. From browsing the docs, there is more than enough there to learn Cocoa really well with.\n\nSecond, it's source compatible but dev tool-related stuff may not be. As far as nibs go, Apple's never released a spec for the format, and the xml-based format is relatively new. Since you can't take your UIs back and forth, designing your UIs in code may be a more attractive option than rushing through IB when you're at a Mac. GNUstep's IDE, Project Center, may not produce project files that are compatible with Xcode. This is easy to remedy, though.\n\nIt seems like it might be a bit of work to develop on both GNUstep and a Mac simultaneously - and while learning, but being able to get instant feedback from building on your own machine might be worth it. Here's a link to their [wiki](http://wiki.gnustep.org/index.php/Installation_on_Windows) on Windows installation.\n\nDisclaimer: I have never used GNUstep directly. I write apps in OPENSTEP for fun, and because OPENSTEP is so old, I frequently turn to GNUstep sources to try and implement things I need that didn't exist in its day - like XML.","timestamp":"2010-02-10T13:37:41+00:00","score":1},{"role":"OP","user_id":"anon_7d217629e483adbc","comment_id":"c0kba57","kind":"comment","text":"what great information! I will explore that wiki today and hopefully get a better idea of the similarities in both programs... If I don't start building the code today on my computer I have to wait until tomorrow because my school is having one of their few and far between snow days.\n\nOnce again, thank you..","timestamp":"2010-02-10T13:50:52+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7d217629e483adbc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_20a74e7714d975ee","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ka95s","thanks_reply_id":"c0kacuy","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_5a10c9b28312eed4","answerer_user_id":"anon_ec12adb182f90df9","subreddit":"programming","timestamp":"2010-02-10T16:22:32+00:00","post_id":"b0f7o","question":"HELP Needed diagnosing Google adwords landing page quality score\n\nWe recently hired a local firm to build a Google Adwords compatible landing page. They said, “No problem! We do them all the time!”\nA week behind schedule, the landing page was finally completed and live on our domain. Everything looked great and our Adwords manager turned on the campaigns. The quality score started out at 7/10, and one hour later – I’m assuming after google’s robots scanned the page – it dropped to 1/10 and removed all of our ads. I am relatively web tech savvy. I’ve built a few pages, know html and css, etc so I thought I would give it a shot. I researched possible reasons and fixes, presented them to our “programmer” and he said ok. This was a very faint ok, mind you.\n\nNeedless to say, they stumbled through the issues we addressed, represented what looked like a corrected landing page, and we went live again.\n\nIt happened again, just like the first time.\n\nWe are struggling as it is, and we can’t afford to be wasting this much time on this.\n\nI’m looking for a competent programmer, adwords expert that can take a look at what we have, diagnose and consult or repair the website.\n\n**I’m not asking for free help. I will gladly pay you for your time. I am looking for someone that can help immediately.**\n\nThank you Reddit, I’m confident I came to the right place.","preferred_answer":"Dont use Flash.\n\nMake sure the words in your text ad are mentioned on your website.\n\nMake sure the keywords you are bidding on are mentioned on your website.\n\nHave all the meta tags and all that.\n\nIf you log into the AdWords Campaign on the actual website not Ad Words editor, and mouseover that little speachbubble looking thing under status, it may give you a reason for the quality score.\n\nWhat is the service offered? Is it allowed?\n\nEdit: not a programmer, just familiar with AdWords.","full_conversation":[{"role":"OP","user_id":"anon_5a10c9b28312eed4","comment_id":"b0f7o","kind":"post","text":"HELP Needed diagnosing Google adwords landing page quality score\n\nWe recently hired a local firm to build a Google Adwords compatible landing page. They said, “No problem! We do them all the time!”\nA week behind schedule, the landing page was finally completed and live on our domain. Everything looked great and our Adwords manager turned on the campaigns. The quality score started out at 7/10, and one hour later – I’m assuming after google’s robots scanned the page – it dropped to 1/10 and removed all of our ads. I am relatively web tech savvy. I’ve built a few pages, know html and css, etc so I thought I would give it a shot. I researched possible reasons and fixes, presented them to our “programmer” and he said ok. This was a very faint ok, mind you.\n\nNeedless to say, they stumbled through the issues we addressed, represented what looked like a corrected landing page, and we went live again.\n\nIt happened again, just like the first time.\n\nWe are struggling as it is, and we can’t afford to be wasting this much time on this.\n\nI’m looking for a competent programmer, adwords expert that can take a look at what we have, diagnose and consult or repair the website.\n\n**I’m not asking for free help. I will gladly pay you for your time. I am looking for someone that can help immediately.**\n\nThank you Reddit, I’m confident I came to the right place.","timestamp":"2010-02-10T16:22:32+00:00","score":0},{"role":"answerer","user_id":"anon_ec12adb182f90df9","comment_id":"c0kbkgf","kind":"comment","text":"Dont use Flash.\n\nMake sure the words in your text ad are mentioned on your website.\n\nMake sure the keywords you are bidding on are mentioned on your website.\n\nHave all the meta tags and all that.\n\nIf you log into the AdWords Campaign on the actual website not Ad Words editor, and mouseover that little speachbubble looking thing under status, it may give you a reason for the quality score.\n\nWhat is the service offered? Is it allowed?\n\nEdit: not a programmer, just familiar with AdWords.","timestamp":"2010-02-10T16:34:42+00:00","score":2},{"role":"OP","user_id":"anon_5a10c9b28312eed4","comment_id":"c0kbl69","kind":"comment","text":"Hey, thanks for the info.\n\nI'm not following you on:\n\n>If you log into the AdWords Campaign on the actual website not Ad Words editor\n\nRight now, I'm in adwords.google.com","timestamp":"2010-02-10T16:43:48+00:00","score":1},{"role":"answerer","user_id":"anon_ec12adb182f90df9","comment_id":"c0kbmbp","kind":"comment","text":"Ok. Pull up the keywords tab, and under the status column, there is the little speechbubble thing that you can mouseover to see the Quality Scores. In that little window, it will have three sections:\n\n-Ad Relevancy: How relevant to keywords the text ad is.\n\n-Landing Page quality: How relevant to the keywords and ad the landing page is. Should have the same words on the landing page as the keywords and text ad. Also, quality of the page (no flash, no popups, etc.)\n\n-Landing page load time: self explanatory.\n\nIn that same little mouseover window there is a Displaying ads now?: yes/no. This will tell you what if anything is majorly wrong. This may only work if you are targeting Nationally, as opposed to zipcodes/cities/states/etc.\n\nIn this same mouseover window, there is the Ads diagnostic tool that can provide some other tips/tricks to get your ads online.\n\n\nNot much else I can do without seeing the site/adwords page.\n\nEdit: AdWords Editor is a desktop based program where you can modify AdWords campaigns and then post the changes to Google, rather than at adwords.google.com.","timestamp":"2010-02-10T16:58:40+00:00","score":2},{"role":"OP","user_id":"anon_5a10c9b28312eed4","comment_id":"c0kbnsu","kind":"comment","text":"I've PM'd you the results to the Diagnostic Tool.\n\nAs far as the status bubble is concerned, everything is labeled \"no problem\" except for Landing Page.\n\nWhen I go to the diagnostic tool, it mentions geo-location.\n\nWe are targeting certain states. Could that be an issue?","timestamp":"2010-02-10T17:17:52+00:00","score":1},{"role":"answerer","user_id":"anon_ec12adb182f90df9","comment_id":"c0kbo5x","kind":"comment","text":"An issue, no. It just means the tool wont work in this case.","timestamp":"2010-02-10T17:22:31+00:00","score":1},{"role":"OP","user_id":"anon_5a10c9b28312eed4","comment_id":"c0kbof4","kind":"comment","text":"So if I disable geo-location, will the tool work?","timestamp":"2010-02-10T17:25:45+00:00","score":1},{"role":"answerer","user_id":"anon_ec12adb182f90df9","comment_id":"c0kboxf","kind":"comment","text":"Yes, if you are prepared to target nationally. I would add cities that you work in (and are mentioned on the website) on the end of keywords in that case.","timestamp":"2010-02-10T17:32:17+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_5a10c9b28312eed4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ec12adb182f90df9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kbkgf","thanks_reply_id":"c0kbl69","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_c7e3be94ef2fa5bb","answerer_user_id":"anon_239c6305b9a881c1","subreddit":"programming","timestamp":"2010-02-11T02:24:43+00:00","post_id":"b0mo6","question":"I'm a PHP web developer who wants to learn objective C for iPhone - any tips?\n\nAs a freshly unemployed web developer I decided it's time to invest in my self-education again. I bought a few iPhone developer books but I'm having trouble staying motivated. I think what I need is a change in the way I think about it, if I could just understand the difference between the way applications are set up and how things work, I feel like I could move forward. Help me reddit!","preferred_answer":">I think what I need is a change in the way I think about it, if I could just understand the difference between the way applications are set up and how things work, I feel like I could move forward. \n\nThere are two important ways in which web programming with PHP is different from traditional GUI programming with Objective-C: the programming model and the execution model.\n\nThe programming model with PHP is pretty simple: you write a .php file, put it in a directory accessible to a webserver, and you browse to the .php file on that server. In the background the server software automatically runs the PHP interpreter which reads and executes the code in your .php file. If you make a change to your .php file, the next time you access it through the web server the new code will be executed.\n\nThe programming model with Objective-C is more complicated, due to being a compiled language. With Objective-C you put your code in .h and .m files (.h for \"interface\" files which describe the contents of a module and provide all the necessary information for using it while .m files actually provide the implementation of a module). The .m files (and the .h files which they include) are then compiled by a compiler (usually gcc) into .o files (binary \"object\" files). Once all the .m files have been compiled the compiler calls another program called the linker to combine all the .o and library files. They can be combined in to three different types of files: executables, static libraries (basically an archive containing all the .o files so they can be used by the linker in the future), and dynamic libraries (.dylib on OS X, like static libraries but are meant to be used by applications *directly* rather than the linker).\n\nOnly once you have completed all of these steps (which all modern IDEs completely automate in to one \"build\" or \"build & run\" command) can you actually use the code you're writing. Every time you update your code you *have* to recompile your application for the changes to take effect (although most of the time you only need to recompile one or a file files and this is also automated by modern IDEs) to try your new code. Understanding this whole process often trips up people who've only ever used interpreted languages but it is not too complicated and it is very important for working with compiled languages.\n\nThe execution model refers to the way your program runs. With PHP your application is actually lots of shorter-lived programs working together. Most PHP applications have several .php files which do different actions, like showthread.php and newreply.php. Although they are part of the same application, they are considered different programs by the interpreter (albeit ones which share lots of code and a backing database). PHP \"programs\" are also very short lived (on the order of milliseconds to seconds). They're basically started and given the information from the HTTP request, do stuff, then write a web page and exit. This (generally) means you don't need to worry too much about resources because each part of your application doesn't stick around long enough for those to become an issue.\n\nIn contrast, interactive compiled programs generally are very long-lived (on the order of minutes to hours). Each executable has to contain all the functions of the application. When the program starts it's given command-line arguments (although obviously there aren't any for the iPhone) and environment variables but then it's responsible for everything else regarding user interaction and it sticks around until the user exits. This also means that it has to manage resources carefully (garbage collection* helps tremendously but it isn't a panacea) because otherwise they'll stick around/build up until the program exits.\n\nWhile that difference is very important, there is also a very important similarity: both execution models are event-driven. This means that functions/subprograms are called/executed in response to events rather than in a pre-programmed/linear fashion. In the case of PHP, every time a user accesses a .php file it is an event, with the HTTP request data (POST/GET) representing the data associated with that event. I'm not familiar with iPhone development, but I assume it works like most GUI development frameworks where you can register event handlers (like functions or objects) with event generators (like GUI widgets).\n\nLets consider an example of a registration form. In PHP you'd write a .php file (or a static .html file) with the form and a submit button. Lets say the
's action attribute is processregistration.php. When the user clicks the submit button, the browser sends the form data to the server which executes processregistration.php. This PHP program does whatever you do for registration and writes an HTML page saying whether the registration was successful which the browser then displays.\n\nWith a traditional GUI application you would do this very similarly. You'd write code to display the registration form and register a click event handler on the \"submit\" button. When that handler is called it might close the form or make the form read-only/disabled, do whatever you need to process the registration, then it would display a message indicating whether the registration was successful or not. In both cases the applications take in data, respond to the user clicking \"submit,\" and then display a message. With web programming, the browser takes care of the displaying part and the browser and server together take care of the event handling part. With traditional GUI programming all of these steps are just more explicit. The tradeoff is that being more explicit allows you greater control and flexibility over what you do and how the user can interact with your program.\n\nI hope this clears a few things up for you. Have fun with iPhone development!\n\n*Garbage collection isn't (yet) available on the iPhone for Objective-C applications.","full_conversation":[{"role":"OP","user_id":"anon_c7e3be94ef2fa5bb","comment_id":"b0mo6","kind":"post","text":"I'm a PHP web developer who wants to learn objective C for iPhone - any tips?\n\nAs a freshly unemployed web developer I decided it's time to invest in my self-education again. I bought a few iPhone developer books but I'm having trouble staying motivated. I think what I need is a change in the way I think about it, if I could just understand the difference between the way applications are set up and how things work, I feel like I could move forward. Help me reddit!","timestamp":"2010-02-11T02:24:43+00:00","score":11},{"role":"answerer","user_id":"anon_239c6305b9a881c1","comment_id":"c0kcxju","kind":"comment","text":">I think what I need is a change in the way I think about it, if I could just understand the difference between the way applications are set up and how things work, I feel like I could move forward. \n\nThere are two important ways in which web programming with PHP is different from traditional GUI programming with Objective-C: the programming model and the execution model.\n\nThe programming model with PHP is pretty simple: you write a .php file, put it in a directory accessible to a webserver, and you browse to the .php file on that server. In the background the server software automatically runs the PHP interpreter which reads and executes the code in your .php file. If you make a change to your .php file, the next time you access it through the web server the new code will be executed.\n\nThe programming model with Objective-C is more complicated, due to being a compiled language. With Objective-C you put your code in .h and .m files (.h for \"interface\" files which describe the contents of a module and provide all the necessary information for using it while .m files actually provide the implementation of a module). The .m files (and the .h files which they include) are then compiled by a compiler (usually gcc) into .o files (binary \"object\" files). Once all the .m files have been compiled the compiler calls another program called the linker to combine all the .o and library files. They can be combined in to three different types of files: executables, static libraries (basically an archive containing all the .o files so they can be used by the linker in the future), and dynamic libraries (.dylib on OS X, like static libraries but are meant to be used by applications *directly* rather than the linker).\n\nOnly once you have completed all of these steps (which all modern IDEs completely automate in to one \"build\" or \"build & run\" command) can you actually use the code you're writing. Every time you update your code you *have* to recompile your application for the changes to take effect (although most of the time you only need to recompile one or a file files and this is also automated by modern IDEs) to try your new code. Understanding this whole process often trips up people who've only ever used interpreted languages but it is not too complicated and it is very important for working with compiled languages.\n\nThe execution model refers to the way your program runs. With PHP your application is actually lots of shorter-lived programs working together. Most PHP applications have several .php files which do different actions, like showthread.php and newreply.php. Although they are part of the same application, they are considered different programs by the interpreter (albeit ones which share lots of code and a backing database). PHP \"programs\" are also very short lived (on the order of milliseconds to seconds). They're basically started and given the information from the HTTP request, do stuff, then write a web page and exit. This (generally) means you don't need to worry too much about resources because each part of your application doesn't stick around long enough for those to become an issue.\n\nIn contrast, interactive compiled programs generally are very long-lived (on the order of minutes to hours). Each executable has to contain all the functions of the application. When the program starts it's given command-line arguments (although obviously there aren't any for the iPhone) and environment variables but then it's responsible for everything else regarding user interaction and it sticks around until the user exits. This also means that it has to manage resources carefully (garbage collection* helps tremendously but it isn't a panacea) because otherwise they'll stick around/build up until the program exits.\n\nWhile that difference is very important, there is also a very important similarity: both execution models are event-driven. This means that functions/subprograms are called/executed in response to events rather than in a pre-programmed/linear fashion. In the case of PHP, every time a user accesses a .php file it is an event, with the HTTP request data (POST/GET) representing the data associated with that event. I'm not familiar with iPhone development, but I assume it works like most GUI development frameworks where you can register event handlers (like functions or objects) with event generators (like GUI widgets).\n\nLets consider an example of a registration form. In PHP you'd write a .php file (or a static .html file) with the form and a submit button. Lets say the 's action attribute is processregistration.php. When the user clicks the submit button, the browser sends the form data to the server which executes processregistration.php. This PHP program does whatever you do for registration and writes an HTML page saying whether the registration was successful which the browser then displays.\n\nWith a traditional GUI application you would do this very similarly. You'd write code to display the registration form and register a click event handler on the \"submit\" button. When that handler is called it might close the form or make the form read-only/disabled, do whatever you need to process the registration, then it would display a message indicating whether the registration was successful or not. In both cases the applications take in data, respond to the user clicking \"submit,\" and then display a message. With web programming, the browser takes care of the displaying part and the browser and server together take care of the event handling part. With traditional GUI programming all of these steps are just more explicit. The tradeoff is that being more explicit allows you greater control and flexibility over what you do and how the user can interact with your program.\n\nI hope this clears a few things up for you. Have fun with iPhone development!\n\n*Garbage collection isn't (yet) available on the iPhone for Objective-C applications.","timestamp":"2010-02-11T03:28:13+00:00","score":39},{"role":"OP","user_id":"anon_c7e3be94ef2fa5bb","comment_id":"c0kd1p9","kind":"comment","text":"Thanks! I appreciate the detailed response. This is what I was hoping for.","timestamp":"2010-02-11T04:36:30+00:00","score":5},{"role":"answerer","user_id":"anon_239c6305b9a881c1","comment_id":"c0kd2m4","kind":"comment","text":"I'm glad I could help. If you have any questions I'll be awake for a few hours.","timestamp":"2010-02-11T04:51:17+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c7e3be94ef2fa5bb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_239c6305b9a881c1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kcxju","thanks_reply_id":"c0kd1p9","post_score":11,"answer_score":39,"preferred_answer_is_top_level":true}} {"user_id":"anon_1b5ba45d47a0e7e2","answerer_user_id":"anon_13b08a923540aacb","subreddit":"programming","timestamp":"2010-02-12T01:04:49+00:00","post_id":"b12ak","question":"Open Source Speech to Text\n\nI'd like something I can use to transcribe speech to text as part of a larger program. Google-ing open source speech to text I see [CMU Sphinx](http://cmusphinx.sourceforge.net/wordpress/) and [Open Mind Speech](http://freespeech.sourceforge.net/). Any other options I should be aware of? Which is the most accurate?","preferred_answer":"Hi, \n\nI'm a doctoral student studying speech recognition. Some of the most popular open source ASR engines are, including the Sphinx project which you mention,\n\n * [CMU Sphinx](http://cmusphinx.sourceforge.net/)\n * [HTK](http://htk.eng.cam.ac.uk/) Edit: as several people have pointed out, HTK more accurately described as 'source available'. The situation is a bit complicated so please refer to the website for details. My operational understanding is that you can modify HTK source and train up acoustic models with HTK for whatever purpose you like, but you cannot repackage and ship HTK source code.\n * [Julius](http://julius.sourceforge.jp/en_index.php)\n * [Juicer](http://juicer.amiproject.org/juicer/)\n\nThe Sphinx and HTK projects contain software appropriate for training Acoustic Models from audio data, as well as the decoders. The other two are just decoders, and require models trained with some other system (HTK).\n\nIn addition to acoustic models, if you are planning to train up your own system you will also need to build or obtain \n\n* A pronunciation dictionary which contains entries consisting of the words you wish to transcribe and their corresponding pronunciation(s)\n* A language model or expert grammar to constrain the input speech\n\nThere are open source tools for building language models as well, but they vary in terms of their licenses. Some of the most popular language modeling tools are,\n\n* [CMU SLM Toolkit](http://www.speech.cs.cmu.edu/SLM_info.html)\n* [MIT LM](http://code.google.com/p/mitlm/)\n* [SRILM](http://www.speech.sri.com/projects/srilm/)\n\nThere are also a variety of pre-trained open source acoustic models and language models available on the web,\n\n* [CMU Open Source AMs](http://www.speech.cs.cmu.edu/sphinx/models/)\n* [Keith Vertanen models](http://www.keithv.com/software/)\n* [VoxForge](http://voxforge.org/)\n\nIn terms of tutorial and help information the following are all good places to start,\n\n* [VoxForge](http://voxforge.org/)\n* [CMU Robust Group Tutorial](http://www.speech.cs.cmu.edu/sphinx/tutorial.html)\n* [HTK Book (requires registration)](http://htk.eng.cam.ac.uk/docs/docs.shtml)\n\nI've never heard of Open Mind Speech and it does not appear to be very well-maintained so I'm not sure I can recommend that.\n\nIf you are interested in understanding what is actually going on behind the scenes in most modern ASR systems I recommend the following papers,\n\n* [A tutorial on hidden markov models and selected applications in speech recognition (pdf)](http://www.cs.ubc.ca/~murphyk/Bayes/rabiner.pdf)\n* [Speech Recognition with Weighted Finite State Transducers (pdf)](http://www.cs.nyu.edu/~mohri/pub/hbka.pdf)\n\nIn general, even with the many open source tools currently available, training up a high quality large vocabulary continuous speech recognition system from scratch is a non-trivial (read pretty complicated) exercise. If you are determined to do it, my strongest recommendation is to try out the Sphinx tutorial as it should take you through from beginning to end on an open source toy corpus, and leave you with the ability to modify or alter that yourself afterwards. Also, Sphinx is well-supported, completely open source, and has 3 different decoders with various strengths and weaknesses, one written in Java and 2 in C.\n\nGood luck!\n\nEdit: If you are trying to include this in a VoIP application there are also Sphinx plugins for popular open source software PBXs like [Asterisk](http://www.asterisk.org/) and [FreeSwitch](http://www.freeswitch.org/), and even a maturing MRCP server, [UniMRCP](http://www.unimrcp.org/). And [Voxeo](http://www.voxeo.com/) provides VXML based solutions for this.","full_conversation":[{"role":"OP","user_id":"anon_1b5ba45d47a0e7e2","comment_id":"b12ak","kind":"post","text":"Open Source Speech to Text\n\nI'd like something I can use to transcribe speech to text as part of a larger program. Google-ing open source speech to text I see [CMU Sphinx](http://cmusphinx.sourceforge.net/wordpress/) and [Open Mind Speech](http://freespeech.sourceforge.net/). Any other options I should be aware of? Which is the most accurate?","timestamp":"2010-02-12T01:04:49+00:00","score":75},{"role":"answerer","user_id":"anon_13b08a923540aacb","comment_id":"c0kf2dq","kind":"comment","text":"Hi, \n\nI'm a doctoral student studying speech recognition. Some of the most popular open source ASR engines are, including the Sphinx project which you mention,\n\n * [CMU Sphinx](http://cmusphinx.sourceforge.net/)\n * [HTK](http://htk.eng.cam.ac.uk/) Edit: as several people have pointed out, HTK more accurately described as 'source available'. The situation is a bit complicated so please refer to the website for details. My operational understanding is that you can modify HTK source and train up acoustic models with HTK for whatever purpose you like, but you cannot repackage and ship HTK source code.\n * [Julius](http://julius.sourceforge.jp/en_index.php)\n * [Juicer](http://juicer.amiproject.org/juicer/)\n\nThe Sphinx and HTK projects contain software appropriate for training Acoustic Models from audio data, as well as the decoders. The other two are just decoders, and require models trained with some other system (HTK).\n\nIn addition to acoustic models, if you are planning to train up your own system you will also need to build or obtain \n\n* A pronunciation dictionary which contains entries consisting of the words you wish to transcribe and their corresponding pronunciation(s)\n* A language model or expert grammar to constrain the input speech\n\nThere are open source tools for building language models as well, but they vary in terms of their licenses. Some of the most popular language modeling tools are,\n\n* [CMU SLM Toolkit](http://www.speech.cs.cmu.edu/SLM_info.html)\n* [MIT LM](http://code.google.com/p/mitlm/)\n* [SRILM](http://www.speech.sri.com/projects/srilm/)\n\nThere are also a variety of pre-trained open source acoustic models and language models available on the web,\n\n* [CMU Open Source AMs](http://www.speech.cs.cmu.edu/sphinx/models/)\n* [Keith Vertanen models](http://www.keithv.com/software/)\n* [VoxForge](http://voxforge.org/)\n\nIn terms of tutorial and help information the following are all good places to start,\n\n* [VoxForge](http://voxforge.org/)\n* [CMU Robust Group Tutorial](http://www.speech.cs.cmu.edu/sphinx/tutorial.html)\n* [HTK Book (requires registration)](http://htk.eng.cam.ac.uk/docs/docs.shtml)\n\nI've never heard of Open Mind Speech and it does not appear to be very well-maintained so I'm not sure I can recommend that.\n\nIf you are interested in understanding what is actually going on behind the scenes in most modern ASR systems I recommend the following papers,\n\n* [A tutorial on hidden markov models and selected applications in speech recognition (pdf)](http://www.cs.ubc.ca/~murphyk/Bayes/rabiner.pdf)\n* [Speech Recognition with Weighted Finite State Transducers (pdf)](http://www.cs.nyu.edu/~mohri/pub/hbka.pdf)\n\nIn general, even with the many open source tools currently available, training up a high quality large vocabulary continuous speech recognition system from scratch is a non-trivial (read pretty complicated) exercise. If you are determined to do it, my strongest recommendation is to try out the Sphinx tutorial as it should take you through from beginning to end on an open source toy corpus, and leave you with the ability to modify or alter that yourself afterwards. Also, Sphinx is well-supported, completely open source, and has 3 different decoders with various strengths and weaknesses, one written in Java and 2 in C.\n\nGood luck!\n\nEdit: If you are trying to include this in a VoIP application there are also Sphinx plugins for popular open source software PBXs like [Asterisk](http://www.asterisk.org/) and [FreeSwitch](http://www.freeswitch.org/), and even a maturing MRCP server, [UniMRCP](http://www.unimrcp.org/). And [Voxeo](http://www.voxeo.com/) provides VXML based solutions for this.","timestamp":"2010-02-12T02:03:23+00:00","score":137},{"role":"OP","user_id":"anon_1b5ba45d47a0e7e2","comment_id":"c0kf6eb","kind":"comment","text":"This is amazing, thanks. I'll check out these guys and see if any work for me.","timestamp":"2010-02-12T03:13:22+00:00","score":7},{"role":"answerer","user_id":"anon_13b08a923540aacb","comment_id":"c0kfayl","kind":"comment","text":"One more thing, which involves much less low level work is the [WAMI Toolkit](http://wami.csail.mit.edu/) from MIT. I don't think you'll be able to use this for keyword spotting or LVCSR, but you might find it interesting for other applications if you continue down this route.","timestamp":"2010-02-12T04:25:49+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1b5ba45d47a0e7e2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_13b08a923540aacb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kf2dq","thanks_reply_id":"c0kf6eb","post_score":75,"answer_score":137,"preferred_answer_is_top_level":true}} {"user_id":"anon_f0192870150858df","answerer_user_id":"anon_d27cd2518599cf76","subreddit":"programming","timestamp":"2010-02-12T03:44:43+00:00","post_id":"b13rx","question":"[[New to C++ and seeking help/advice]]: Question about Abstract Data Types (ADT) - I can haz foods 4 meh thoughts plz?\n\nFirst, let me provide some brief background information. I just changed from Mechanical Engineering to Computer Engineering at MSU. I am currently in CSE 232 (which is essentially programming 2). From programming 1 to programming 2 we switch from Python to C++. I am currently working on the second project and I have found that my professor's style doesn't work well with my ADHD, he tends to overwhelm me with information (in an attempt to be helpful) and it starts to confuse me.\n\nFor project 1 we made a program that allowed you to enter a \"bounding box\" using the following format:\n\nXcoordinate Xspan Ycoordinate Yspan\n\nThe program was required to test the follow: is the bounding box valid, the area of the bounding box, and the perimeter of the bounding box. Additionally, given 2 bounding boxes it had to tell: whether or not the 1st one enclosed the 2nd, whether or not the 2nd one overlapped the 1st, and is the 2nd one (above, below, leftof or rightof) the 1st. Basically, the project was to make the functions that made these tests and that provided a driver that accepted the input and tested out functions.\n\nOk, so now we come to project 2. Part of the goal of this project is to get some exercise in reusing code. What they want our program to do is to accept bounding boxes that are intended to represent different buildings on campus. So there will be a name associated with a bounding box, and the program will hold all of this information about the different regions. The user should then be able to enter commands such as: whereis Xcoord Ycoord and have it return the nearest bounding box name, howtogo Xcoord Ycoord RegionName and have it return how to travel from the coordinates to the RegionName, whereisR RegionName and have it return the regions coordinates.\n\nThese operations should all be pretty simple. What I am having trouble with is deciding the best way to store a large amount of regions and their information while maintaining a significant amount of ease in accessing/manipulating said information.\n\nSome preliminary questions that were asked of us and got me thinking (and also somewhat confused) are as follows:\n\n5. What kind of ADT are you thinking of to model our GIS information and to support answering queries of the above types? Answer in English. (What data model and what operations do you need?)\n\n6. Sketch how each of the three query types above can be answered using the ADT you chose above. Describe the algorithm in English. Describe any support algorithms that you might share across the different types of query.\n\nIf someone would be willing to offer me a bit of direction/food for thought it would be greatly appreciated!\n\nThanks!","preferred_answer":"The classic GIS algorithm for this kind of thing is a [Quad Tree.](http://www.google.com/search?q=quad+tree)\n\nTo be honest with you, however... that's massive, massive overkill for what you're doing.\n\nGiven that the number of buildings on your campus is not likely to exceed 100, and given that this is your second semester CS class, just schlock it all into a big freakin' array of objects! A linear scan down an array of < 100 objects is going to be unbelievably fast, given a modern CPU's speed and the size of caches they have. \n\nLet's assume the most naive possible data structure, which is just an array of objects. Each object contains a boundingBox (location of building) and a string (name of building). Make your 100 or so boundingBox objects, throw them all in an array, then sort the array by the box's X coord. Or make two arrays, one sorted by X and one sorted by Y. (Or the same thing, but instead of storing whole objects, just store pointers to the corresponding bounding box.) Then you have sorted arrays that you can pull objects from using (efficient) binary search.\n\nYou can also get as fancy and baroque on the collections as you want. Instead of plain arrays, you could use heaps, treaps, red-black trees, B-trees, etc, etc, etc, ad naseum.\n\nThe \"how to travel\" algorithm is basically just a standard line/line intersection. You take the line from point A to point B and see if it intersects with the lines that form the bounding box of the building. If you want to make the search more efficient, you can pre-build a candidate list of bounding boxes to check against, so you don't have to check against every single building on campus. There are about 97 different ways to do that, I'll leave it to your imagination.\n\n\nIf you don't want to do this the simple or easy way, then there are a ton of other ways I can think of that are complicated, annoying, difficult to debug, and \"cool\".\n\nOne is the previously mentioned quad trees. Another would be Binary Space Partitioning trees (google \"BSP tree\"). Another variant on quad trees is R-trees. Lastly, some kind of [spatial hashing](http://www.gamedev.net/reference/snippets/features/spatialHash/) algorithm.","full_conversation":[{"role":"OP","user_id":"anon_f0192870150858df","comment_id":"b13rx","kind":"post","text":"[[New to C++ and seeking help/advice]]: Question about Abstract Data Types (ADT) - I can haz foods 4 meh thoughts plz?\n\nFirst, let me provide some brief background information. I just changed from Mechanical Engineering to Computer Engineering at MSU. I am currently in CSE 232 (which is essentially programming 2). From programming 1 to programming 2 we switch from Python to C++. I am currently working on the second project and I have found that my professor's style doesn't work well with my ADHD, he tends to overwhelm me with information (in an attempt to be helpful) and it starts to confuse me.\n\nFor project 1 we made a program that allowed you to enter a \"bounding box\" using the following format:\n\nXcoordinate Xspan Ycoordinate Yspan\n\nThe program was required to test the follow: is the bounding box valid, the area of the bounding box, and the perimeter of the bounding box. Additionally, given 2 bounding boxes it had to tell: whether or not the 1st one enclosed the 2nd, whether or not the 2nd one overlapped the 1st, and is the 2nd one (above, below, leftof or rightof) the 1st. Basically, the project was to make the functions that made these tests and that provided a driver that accepted the input and tested out functions.\n\nOk, so now we come to project 2. Part of the goal of this project is to get some exercise in reusing code. What they want our program to do is to accept bounding boxes that are intended to represent different buildings on campus. So there will be a name associated with a bounding box, and the program will hold all of this information about the different regions. The user should then be able to enter commands such as: whereis Xcoord Ycoord and have it return the nearest bounding box name, howtogo Xcoord Ycoord RegionName and have it return how to travel from the coordinates to the RegionName, whereisR RegionName and have it return the regions coordinates.\n\nThese operations should all be pretty simple. What I am having trouble with is deciding the best way to store a large amount of regions and their information while maintaining a significant amount of ease in accessing/manipulating said information.\n\nSome preliminary questions that were asked of us and got me thinking (and also somewhat confused) are as follows:\n\n5. What kind of ADT are you thinking of to model our GIS information and to support answering queries of the above types? Answer in English. (What data model and what operations do you need?)\n\n6. Sketch how each of the three query types above can be answered using the ADT you chose above. Describe the algorithm in English. Describe any support algorithms that you might share across the different types of query.\n\nIf someone would be willing to offer me a bit of direction/food for thought it would be greatly appreciated!\n\nThanks!","timestamp":"2010-02-12T03:44:43+00:00","score":0},{"role":"answerer","user_id":"anon_d27cd2518599cf76","comment_id":"c0kfaoo","kind":"comment","text":"The classic GIS algorithm for this kind of thing is a [Quad Tree.](http://www.google.com/search?q=quad+tree)\n\nTo be honest with you, however... that's massive, massive overkill for what you're doing.\n\nGiven that the number of buildings on your campus is not likely to exceed 100, and given that this is your second semester CS class, just schlock it all into a big freakin' array of objects! A linear scan down an array of < 100 objects is going to be unbelievably fast, given a modern CPU's speed and the size of caches they have. \n\nLet's assume the most naive possible data structure, which is just an array of objects. Each object contains a boundingBox (location of building) and a string (name of building). Make your 100 or so boundingBox objects, throw them all in an array, then sort the array by the box's X coord. Or make two arrays, one sorted by X and one sorted by Y. (Or the same thing, but instead of storing whole objects, just store pointers to the corresponding bounding box.) Then you have sorted arrays that you can pull objects from using (efficient) binary search.\n\nYou can also get as fancy and baroque on the collections as you want. Instead of plain arrays, you could use heaps, treaps, red-black trees, B-trees, etc, etc, etc, ad naseum.\n\nThe \"how to travel\" algorithm is basically just a standard line/line intersection. You take the line from point A to point B and see if it intersects with the lines that form the bounding box of the building. If you want to make the search more efficient, you can pre-build a candidate list of bounding boxes to check against, so you don't have to check against every single building on campus. There are about 97 different ways to do that, I'll leave it to your imagination.\n\n\nIf you don't want to do this the simple or easy way, then there are a ton of other ways I can think of that are complicated, annoying, difficult to debug, and \"cool\".\n\nOne is the previously mentioned quad trees. Another would be Binary Space Partitioning trees (google \"BSP tree\"). Another variant on quad trees is R-trees. Lastly, some kind of [spatial hashing](http://www.gamedev.net/reference/snippets/features/spatialHash/) algorithm.","timestamp":"2010-02-12T04:21:31+00:00","score":2},{"role":"OP","user_id":"anon_f0192870150858df","comment_id":"c0kfhrd","kind":"comment","text":"Thank you for your response. I believe I was making this harder on myself than necessary. You have reaffirmed what I was basically thinking and helped clarify my thoughts. Much appreciated. Thanks again!","timestamp":"2010-02-12T06:21:11+00:00","score":2},{"role":"answerer","user_id":"anon_d27cd2518599cf76","comment_id":"c0kflf8","kind":"comment","text":"An easy and quick way to determine a possible intersection of path and building would be to use the bounding circle of the building, and see if the path intersects it.\n\nhttp://mathworld.wolfram.com/Circle-LineIntersection.html\n\nCheck the \"discriminant\" further down the page for a relatively quick and easy test to see if the circle and line intersect.\n\nThough it's pretty trivial to compute, you'd probably still want to precompute the bounding circle for each bounding box, and store it in the object so it's right there when you need it.\n\nThe other quick check for possible intersection is the [\"perpendicular distance from point to line.\"](http://www.intmath.com/Plane-analytic-geometry/Perpendicular-distance-point-line.php) In this case, the line is your path line and the point is the center point of the building's bounding circle. If the perp. distance from the building center to your path is greater than the radius of the bounding circle, then the path can't possibly intersect the building.","timestamp":"2010-02-12T08:53:02+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f0192870150858df","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d27cd2518599cf76","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kfaoo","thanks_reply_id":"c0kfhrd","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2de183f967dec454","answerer_user_id":"anon_6f4b1fcbc292492f","subreddit":"programming","timestamp":"2010-02-14T00:57:39+00:00","post_id":"b1srn","question":"Any Augmented Reality Programmers on Reddit?\n\nI'm just a humble day to day VB/C#/ASP, etc. programmer but after having my mind blown lately by Augmented Reality I was wondering if any Redditers had experience in the technology.\n\nIt's something I'd love to get involved in during my free time. My question is without working for a company involved in AR is it accessible to us lay folk looking to take the plunge?","preferred_answer":"Yeah, I uh, built Yelp Monocle. One day I decided it would be a neat challenge, sat down, and did it (I didn't really have any iPhone/OpenGL experience beforehand). Ask me anything :)\n\nAlternatively. I gave a lecture for the Stanford iPhone class a couple weeks ago all about Monocle and the challenges involved in making it. You can watch it at http://bit.ly/9yBXMi","full_conversation":[{"role":"OP","user_id":"anon_2de183f967dec454","comment_id":"b1srn","kind":"post","text":"Any Augmented Reality Programmers on Reddit?\n\nI'm just a humble day to day VB/C#/ASP, etc. programmer but after having my mind blown lately by Augmented Reality I was wondering if any Redditers had experience in the technology.\n\nIt's something I'd love to get involved in during my free time. My question is without working for a company involved in AR is it accessible to us lay folk looking to take the plunge?","timestamp":"2010-02-14T00:57:39+00:00","score":13},{"role":"answerer","user_id":"anon_6f4b1fcbc292492f","comment_id":"c0kkq5b","kind":"comment","text":"Yeah, I uh, built Yelp Monocle. One day I decided it would be a neat challenge, sat down, and did it (I didn't really have any iPhone/OpenGL experience beforehand). Ask me anything :)\n\nAlternatively. I gave a lecture for the Stanford iPhone class a couple weeks ago all about Monocle and the challenges involved in making it. You can watch it at http://bit.ly/9yBXMi","timestamp":"2010-02-15T04:33:27+00:00","score":3},{"role":"OP","user_id":"anon_2de183f967dec454","comment_id":"c0koe9r","kind":"comment","text":"Wow that's great thanks, can I just be lazy and ask what the best resource you found to start off? Was there a specific book, website, or message board you'd recommend for a beginner?","timestamp":"2010-02-16T22:48:29+00:00","score":1},{"role":"answerer","user_id":"anon_6f4b1fcbc292492f","comment_id":"c0kp6ez","kind":"comment","text":"Apple docs. Seriously the only thing you need. My first prototype was cobbled together from the GLGravity example with the camera and compass API.","timestamp":"2010-02-17T05:51:11+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2de183f967dec454","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6f4b1fcbc292492f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kkq5b","thanks_reply_id":"c0koe9r","post_score":13,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_0ec7379c800689c2","answerer_user_id":"anon_b42f84d931c3a298","subreddit":"programming","timestamp":"2010-02-14T12:22:58+00:00","post_id":"b1wqt","question":"Can anyone help me out with this please?\n\nI'm trying to get the GWT working on 64bit Windows 7 with 64bit Eclipse. 32bit Eclipse won't run on a 64bit OS for some reason :s But anyways, I have tried to install it a few times now and half way through I get [this message](http://i.imgur.com/CcK9d.png). When I click \"OK\" it finishes pretty quickly and then doesn't work. It's almost like I didn't install it at all except for the new buttons.\n\nThe only solution I can think of it installing a 32bit operating system and using that for programming with the GWT. Has anyone got anymore solutions?\n\n**tl;dr:** trying to use the GWT eclipse plugin on 64bit windows 7 and failing miserably. Any tips?","preferred_answer":"1. get 32bit jdk\n1. etc etc\n\ngoogle first","full_conversation":[{"role":"OP","user_id":"anon_0ec7379c800689c2","comment_id":"b1wqt","kind":"post","text":"Can anyone help me out with this please?\n\nI'm trying to get the GWT working on 64bit Windows 7 with 64bit Eclipse. 32bit Eclipse won't run on a 64bit OS for some reason :s But anyways, I have tried to install it a few times now and half way through I get [this message](http://i.imgur.com/CcK9d.png). When I click \"OK\" it finishes pretty quickly and then doesn't work. It's almost like I didn't install it at all except for the new buttons.\n\nThe only solution I can think of it installing a 32bit operating system and using that for programming with the GWT. Has anyone got anymore solutions?\n\n**tl;dr:** trying to use the GWT eclipse plugin on 64bit windows 7 and failing miserably. Any tips?","timestamp":"2010-02-14T12:22:58+00:00","score":0},{"role":"answerer","user_id":"anon_b42f84d931c3a298","comment_id":"c0kjhom","kind":"comment","text":"1. get 32bit jdk\n1. etc etc\n\ngoogle first","timestamp":"2010-02-14T12:53:48+00:00","score":-1},{"role":"OP","user_id":"anon_0ec7379c800689c2","comment_id":"c0kjhzk","kind":"comment","text":"Went to Google. Had no answers that worked. Hence I made this post.\n\nI have both the 64bit and 32bit JDK installed (32bit first). Doesn't work either. Thanks though.","timestamp":"2010-02-14T13:07:01+00:00","score":1},{"role":"answerer","user_id":"anon_b42f84d931c3a298","comment_id":"c0kji09","kind":"comment","text":"sorry. my fail.","timestamp":"2010-02-14T13:07:58+00:00","score":2},{"role":"OP","user_id":"anon_0ec7379c800689c2","comment_id":"c0kjlr7","kind":"comment","text":"Np, happens to all of us :)\n\nAgain, thanks for trying :)","timestamp":"2010-02-14T15:22:50+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0ec7379c800689c2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b42f84d931c3a298","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kjhom","thanks_reply_id":"c0kjhzk","post_score":0,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_abbdfad65329ce9e","answerer_user_id":"anon_c9d812e170983bd7","subreddit":"programming","timestamp":"2010-02-17T12:36:43+00:00","post_id":"b33yh","question":"Help Reddit - I need your advice!\n\nRight, where to begin.\n**I'm a 17 year old developer.**\n\nHave been coding since I was 12 and it's my lifelong passion. Absolutely love the rush you get when you solve a problem, fix a bug, you know what I mean. I dropped out of college when I was 17 (having only completed a year - UK education system) so was relying on my freelancing experience to get me a job.\n\nNaturally, this extremely small company (3 employees) snapped me up. I explained what I wanted and they promised various things including a 6 month pay review (payrise), a £1500 ($2300) training grant per year (for books), and MCTS certification. The only catch was that the base salary was extremely low - £12,000 ($19,000). I had no problem with this as I was new to the industry, my skills weren't amazing at this point, and I was getting training and expertise out of the job at hand.\n\n7 months later things are different. \nPayrise they promised me? Didn't happen. Still on £12k. \nMCTS? Nope. \nTraining grant? Haven't seen a penny.\nHeck, they haven't even given me a contract - I could walk out of here and they couldn't do anything. In the same way, they could fire me today and I'd have to go by tomorrow.\n\nAs for me? I've changed a hell of a lot. I'm now developing with C#, .NET, using SQL, Silverlight, WPF, WCF and I'm doing a damn good job because for near enough every day of the past 7 months I've been working my ass off to get better and better at what I do. I recently visited a developer conference - and I'm now getting more involved with the community, speaking at different conferences and usergroups all over the UK. \n\nI no longer believe this job is for me. I recieve no respect here and am treated as the lowest-of-the-low in the company. My bosses do not understand the amount of work I'm putting in and nor do they care when I show them. This is not an ideal workplace. \n\n**Example: I have a cold. My boss shouted at me yesterday telling me to 'sniff quieter'. No respect whatsoever. Tiny example, but not very nice.**\n\nRight. Few questions then.\n\n**What do I do now? Am I right for looking for another job?**\n\nI've hounded at these guys about my concerns but they just don't seem to give a damn. The money isn't enough for me to live on anymore, I'm getting none of what was promised - and I only took the job because it was promised!\n\nI have applied for some jobs and have an interview via telephone later tonight. **Has anyone got any tips for interviews?** This will only be my second developer interview, so anything is helpful.","preferred_answer":"The biggest tip I can give for the interview/negotiation process is to keep quiet. \n\nInevitably, when there is silence in a conversation there is a tendency to fill it in. When you are nervous or unsure you are more likely to just keep talking to appease your interviewer. Don't do this. I have witnessed too many candidates talk themselves out of a job by rambling on about something the interviewer didn't even ask. They start talking about personal issues, etc.\n\nAnswer the interviewer's question succinctly and move on to the next topic.\n\nPrepare some questions for them ahead of time, it will show interest in the job.\n\nNo matter what, if they try to make you name a salary right away, **do not** do it. If they ask what you made at your previous job, tell them you don't think it is relevant to this job since they are so different and it was below market value...Try to turn the salary negotiations back on them. Tell them you would welcome any offer that is fair for the job and ask them what range they had in mind. In all likelyhood they *do* have a range they are working from. Do your research and try to figure this out. When you are pressed to name a figure, aim high. The point is for them to try to work you down, so go a bit higher then the number you have in mind. \n\nGood luck on the phone interview! And don't take the first offer just because it is the first one. You are obviously talented, don't sell yourself short.","full_conversation":[{"role":"OP","user_id":"anon_abbdfad65329ce9e","comment_id":"b33yh","kind":"post","text":"Help Reddit - I need your advice!\n\nRight, where to begin.\n**I'm a 17 year old developer.**\n\nHave been coding since I was 12 and it's my lifelong passion. Absolutely love the rush you get when you solve a problem, fix a bug, you know what I mean. I dropped out of college when I was 17 (having only completed a year - UK education system) so was relying on my freelancing experience to get me a job.\n\nNaturally, this extremely small company (3 employees) snapped me up. I explained what I wanted and they promised various things including a 6 month pay review (payrise), a £1500 ($2300) training grant per year (for books), and MCTS certification. The only catch was that the base salary was extremely low - £12,000 ($19,000). I had no problem with this as I was new to the industry, my skills weren't amazing at this point, and I was getting training and expertise out of the job at hand.\n\n7 months later things are different. \nPayrise they promised me? Didn't happen. Still on £12k. \nMCTS? Nope. \nTraining grant? Haven't seen a penny.\nHeck, they haven't even given me a contract - I could walk out of here and they couldn't do anything. In the same way, they could fire me today and I'd have to go by tomorrow.\n\nAs for me? I've changed a hell of a lot. I'm now developing with C#, .NET, using SQL, Silverlight, WPF, WCF and I'm doing a damn good job because for near enough every day of the past 7 months I've been working my ass off to get better and better at what I do. I recently visited a developer conference - and I'm now getting more involved with the community, speaking at different conferences and usergroups all over the UK. \n\nI no longer believe this job is for me. I recieve no respect here and am treated as the lowest-of-the-low in the company. My bosses do not understand the amount of work I'm putting in and nor do they care when I show them. This is not an ideal workplace. \n\n**Example: I have a cold. My boss shouted at me yesterday telling me to 'sniff quieter'. No respect whatsoever. Tiny example, but not very nice.**\n\nRight. Few questions then.\n\n**What do I do now? Am I right for looking for another job?**\n\nI've hounded at these guys about my concerns but they just don't seem to give a damn. The money isn't enough for me to live on anymore, I'm getting none of what was promised - and I only took the job because it was promised!\n\nI have applied for some jobs and have an interview via telephone later tonight. **Has anyone got any tips for interviews?** This will only be my second developer interview, so anything is helpful.","timestamp":"2010-02-17T12:36:43+00:00","score":0},{"role":"answerer","user_id":"anon_c9d812e170983bd7","comment_id":"c0kpmyh","kind":"comment","text":"The biggest tip I can give for the interview/negotiation process is to keep quiet. \n\nInevitably, when there is silence in a conversation there is a tendency to fill it in. When you are nervous or unsure you are more likely to just keep talking to appease your interviewer. Don't do this. I have witnessed too many candidates talk themselves out of a job by rambling on about something the interviewer didn't even ask. They start talking about personal issues, etc.\n\nAnswer the interviewer's question succinctly and move on to the next topic.\n\nPrepare some questions for them ahead of time, it will show interest in the job.\n\nNo matter what, if they try to make you name a salary right away, **do not** do it. If they ask what you made at your previous job, tell them you don't think it is relevant to this job since they are so different and it was below market value...Try to turn the salary negotiations back on them. Tell them you would welcome any offer that is fair for the job and ask them what range they had in mind. In all likelyhood they *do* have a range they are working from. Do your research and try to figure this out. When you are pressed to name a figure, aim high. The point is for them to try to work you down, so go a bit higher then the number you have in mind. \n\nGood luck on the phone interview! And don't take the first offer just because it is the first one. You are obviously talented, don't sell yourself short.","timestamp":"2010-02-17T13:37:28+00:00","score":1},{"role":"OP","user_id":"anon_abbdfad65329ce9e","comment_id":"c0kpp33","kind":"comment","text":"Thanks very much for the advice - you've helped loads.\n\nSalary to me isn't massively important, as portrayed in the original post. I'm more looking for a nice, balanced, stable place to work where I can enjoy what I do with like-minded people. The company that contacted me for the interview later tonight seem this way - very intertwined with MS, interesting, and passionate.","timestamp":"2010-02-17T14:26:09+00:00","score":2},{"role":"answerer","user_id":"anon_c9d812e170983bd7","comment_id":"c0kpq13","kind":"comment","text":"Make sure and write back, let us know how it goes!","timestamp":"2010-02-17T14:44:23+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_abbdfad65329ce9e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c9d812e170983bd7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kpmyh","thanks_reply_id":"c0kpp33","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_055d4ea844ed41f4","answerer_user_id":"anon_418b76eecd5e3d03","subreddit":"programming","timestamp":"2010-02-17T14:00:47+00:00","post_id":"b34vf","question":"How do you track your time?\n\nI work in a big business environment, and I need to do a better job of tracking my time spent working, and my time spent doing administration bullshit. Right now, I think I spend about 40% of my day just doing paperwork. I have a MS Project license, and I'm trying to chart my various daily tasks on it.\n\nFor example: \n\n* I spend about 1/2 hour every morning doing email.\n\n* I spend about 1/2 hour updating ticket statuses.\n\n* I spend about 1 hour in conference calls.\n\n* I spend about 1/2 hour after lunch doing email.\n\n* I spend about 1/2 hour before I leave updating ticket statuses.\n\n* I spend my last 1/2 hour doing email.\n\n* All told, that's 3.5 hours a day that I'm doing administrative work.\n\nSo, I don't get a lot of time to do my actual work, **programming**. But, if I put in an estimate that it will take me 1 day to do a task, they expect that I will get it done in that number of work days, not 8 hours of coding. So, I need a good solution to track my time, so I can then track my actual work time, and then give estimates which represent my real world time, and not \"coding time\".","preferred_answer":"Grindstone - Fairly easy to set up. Reports are useful.\r\nhttp://www.epiforge.com/Grindstone2/\r\n\r\nRachota - Easy to set up - haven't used long enough to see how useful the reports are. Set up as backup for Grindstone and for feature comparison.\r\nhttp://rachota.sourceforge.net/en/index.html\r\n\r\nBoth are free. Donation would be good if you find it works for you.\r\n\r\nI have also tried opentempus. Could not get it to dump reports in any format. May not be the software's fault since there may be some configuration required that I have not completed. Unfortunately it appears to be lightly used and under-documented. If you try it and get it to work shoot me a message as I like to have a backup and it is portable.\r\nhttp://opentempus.org/\r\n\r\nAs you see I have gone the free software route. There are some tools that will track you and store all in the cloud so that you or anyone you authorize can see how your time has been spent. Harvest is one of these. Haven't used it because I prefer to keep myself firmly on the ground. \r\nhttp://www.getharvest.com/\r\n\r\nChrometa comes to mind as another one of the pay options. No user intervention for this one. I may end up using it since I have found that I don't always click the correct task and end up having to adjust time with Grindstone.\r\nhttp://www.chrometa.com/\r\n\r\nGood luck. Hope this helps.","full_conversation":[{"role":"OP","user_id":"anon_055d4ea844ed41f4","comment_id":"b34vf","kind":"post","text":"How do you track your time?\n\nI work in a big business environment, and I need to do a better job of tracking my time spent working, and my time spent doing administration bullshit. Right now, I think I spend about 40% of my day just doing paperwork. I have a MS Project license, and I'm trying to chart my various daily tasks on it.\n\nFor example: \n\n* I spend about 1/2 hour every morning doing email.\n\n* I spend about 1/2 hour updating ticket statuses.\n\n* I spend about 1 hour in conference calls.\n\n* I spend about 1/2 hour after lunch doing email.\n\n* I spend about 1/2 hour before I leave updating ticket statuses.\n\n* I spend my last 1/2 hour doing email.\n\n* All told, that's 3.5 hours a day that I'm doing administrative work.\n\nSo, I don't get a lot of time to do my actual work, **programming**. But, if I put in an estimate that it will take me 1 day to do a task, they expect that I will get it done in that number of work days, not 8 hours of coding. So, I need a good solution to track my time, so I can then track my actual work time, and then give estimates which represent my real world time, and not \"coding time\".","timestamp":"2010-02-17T14:00:47+00:00","score":27},{"role":"answerer","user_id":"anon_418b76eecd5e3d03","comment_id":"c0kpox0","kind":"comment","text":"Grindstone - Fairly easy to set up. Reports are useful.\r\nhttp://www.epiforge.com/Grindstone2/\r\n\r\nRachota - Easy to set up - haven't used long enough to see how useful the reports are. Set up as backup for Grindstone and for feature comparison.\r\nhttp://rachota.sourceforge.net/en/index.html\r\n\r\nBoth are free. Donation would be good if you find it works for you.\r\n\r\nI have also tried opentempus. Could not get it to dump reports in any format. May not be the software's fault since there may be some configuration required that I have not completed. Unfortunately it appears to be lightly used and under-documented. If you try it and get it to work shoot me a message as I like to have a backup and it is portable.\r\nhttp://opentempus.org/\r\n\r\nAs you see I have gone the free software route. There are some tools that will track you and store all in the cloud so that you or anyone you authorize can see how your time has been spent. Harvest is one of these. Haven't used it because I prefer to keep myself firmly on the ground. \r\nhttp://www.getharvest.com/\r\n\r\nChrometa comes to mind as another one of the pay options. No user intervention for this one. I may end up using it since I have found that I don't always click the correct task and end up having to adjust time with Grindstone.\r\nhttp://www.chrometa.com/\r\n\r\nGood luck. Hope this helps.","timestamp":"2010-02-17T14:23:02+00:00","score":25},{"role":"OP","user_id":"anon_055d4ea844ed41f4","comment_id":"c0kpp8s","kind":"comment","text":"That's quite a lot of info. Thank you!","timestamp":"2010-02-17T14:29:09+00:00","score":5},{"role":"answerer","user_id":"anon_418b76eecd5e3d03","comment_id":"c0kqkdx","kind":"comment","text":"You're welcome!","timestamp":"2010-02-17T21:39:19+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_055d4ea844ed41f4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_418b76eecd5e3d03","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kpox0","thanks_reply_id":"c0kpp8s","post_score":27,"answer_score":25,"preferred_answer_is_top_level":true}} {"user_id":"anon_d5d22b415b2278db","answerer_user_id":"anon_3b0e3c42276163b7","subreddit":"programming","timestamp":"2010-02-18T08:08:21+00:00","post_id":"b3hrt","question":"How can I implement a two-way, web-based video chat?\n\nI am proficient in HTML/CSS, JavaScript/AJAX, PHP & Python. Unfortunately I have no experience with Flash, as it has always been something I have avoided as a web developer.\n\nHowever, I really would like to know how to offer two-way video chats/conferencing to my clients. I was recently reminded again after discovering chatroulette. I'm really not looking for anything very advanced, just the two-way video chat (your webcam + their webcam).\n\nCan anyone provide any insights to me as to how I can program this? I'm willing to learn a bit of flash if I really have to, but I would love to be able to just drop in a SWF or something (wishful thinking?)\n\nThanks in advance for any help you can offer.","preferred_answer":"There are many open source two-way video chat programs already available. Take one and modify it to suit your needs. Then publish the source as required by the [GPL](http://www.gnu.org/licenses/gpl-3.0.txt).\n\nGame, set, match.","full_conversation":[{"role":"OP","user_id":"anon_d5d22b415b2278db","comment_id":"b3hrt","kind":"post","text":"How can I implement a two-way, web-based video chat?\n\nI am proficient in HTML/CSS, JavaScript/AJAX, PHP & Python. Unfortunately I have no experience with Flash, as it has always been something I have avoided as a web developer.\n\nHowever, I really would like to know how to offer two-way video chats/conferencing to my clients. I was recently reminded again after discovering chatroulette. I'm really not looking for anything very advanced, just the two-way video chat (your webcam + their webcam).\n\nCan anyone provide any insights to me as to how I can program this? I'm willing to learn a bit of flash if I really have to, but I would love to be able to just drop in a SWF or something (wishful thinking?)\n\nThanks in advance for any help you can offer.","timestamp":"2010-02-18T08:08:21+00:00","score":12},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"c0ksizj","kind":"comment","text":"There are many open source two-way video chat programs already available. Take one and modify it to suit your needs. Then publish the source as required by the [GPL](http://www.gnu.org/licenses/gpl-3.0.txt).\n\nGame, set, match.","timestamp":"2010-02-18T19:15:32+00:00","score":1},{"role":"OP","user_id":"anon_d5d22b415b2278db","comment_id":"c0ksjsz","kind":"comment","text":"Thanks for the tip, but I'm not very interested in a desktop application. I'm looking for something that can be built into a web interface.","timestamp":"2010-02-18T19:25:25+00:00","score":1},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"c0ksk7p","kind":"comment","text":"It's not called \"open source\" for nothing. You take the parts of the source you want and wrap them in a Web interface. The alternative is to locate someting already written in the precise form you want. It comes down to what you mean by \"implement.\"","timestamp":"2010-02-18T19:30:22+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d5d22b415b2278db","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3b0e3c42276163b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ksizj","thanks_reply_id":"c0ksjsz","post_score":12,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_bfc34943bc147968","answerer_user_id":"anon_84ccd632a216f388","subreddit":"programming","timestamp":"2010-02-18T21:03:55+00:00","post_id":"b3rg8","question":"What's the easiest way to create self-contained double-clickable GUI applications to distribute to friends and family?\n\nI want an easy way to write fun little desktop GUI programs (including but not limited to games) for friends and family running Mac OS X and/or MS Windows, such that they can just download and double-click to run. What's the easiest way to accomplish that?\n\nRules:\n\n1. I don't want to use C, C++, Objective-C/C++, nor Java.\n2. It's ok if the user has to download and install some kind of language runtime as long as it's no more complex than \"save, double-click, click 'Ok'\".\n3. Must require free software only.\n\nThanks.\n\n**Edit:** My development platform is GNU/Linux.\n\n**Edit 2:** Thank you, but I'd rather go with a downloadable desktop GUI app rather than using HTML + JS. I think I can convince my users to download a runtime if necessary.\n\n**Edit 3:** Nothing against paying for software, but I'm looking for free-as-in-libre solutions here. Sorry if it was unclear above.","preferred_answer":"Adobe AIR","full_conversation":[{"role":"OP","user_id":"anon_bfc34943bc147968","comment_id":"b3rg8","kind":"post","text":"What's the easiest way to create self-contained double-clickable GUI applications to distribute to friends and family?\n\nI want an easy way to write fun little desktop GUI programs (including but not limited to games) for friends and family running Mac OS X and/or MS Windows, such that they can just download and double-click to run. What's the easiest way to accomplish that?\n\nRules:\n\n1. I don't want to use C, C++, Objective-C/C++, nor Java.\n2. It's ok if the user has to download and install some kind of language runtime as long as it's no more complex than \"save, double-click, click 'Ok'\".\n3. Must require free software only.\n\nThanks.\n\n**Edit:** My development platform is GNU/Linux.\n\n**Edit 2:** Thank you, but I'd rather go with a downloadable desktop GUI app rather than using HTML + JS. I think I can convince my users to download a runtime if necessary.\n\n**Edit 3:** Nothing against paying for software, but I'm looking for free-as-in-libre solutions here. Sorry if it was unclear above.","timestamp":"2010-02-18T21:03:55+00:00","score":8},{"role":"answerer","user_id":"anon_84ccd632a216f388","comment_id":"c0kssyj","kind":"comment","text":"Adobe AIR","timestamp":"2010-02-18T21:13:20+00:00","score":1},{"role":"OP","user_id":"anon_bfc34943bc147968","comment_id":"c0ksu3a","kind":"comment","text":"Thank you, but I'm looking to stick with free software.","timestamp":"2010-02-18T21:27:52+00:00","score":2},{"role":"answerer","user_id":"anon_84ccd632a216f388","comment_id":"c0ksvv4","kind":"comment","text":"Did you even look it up or did you assume that because it comes from a corporation that it's payware?","timestamp":"2010-02-18T21:49:59+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bfc34943bc147968","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_84ccd632a216f388","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kssyj","thanks_reply_id":"c0ksu3a","post_score":8,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_33ef5894fbc1eee9","answerer_user_id":"anon_2e1029158a754ceb","subreddit":"programming","timestamp":"2010-02-19T16:56:25+00:00","post_id":"b4217","question":"How do i go about teaching myself programming. I have NO background at all, but am very interested.\n\nI am interested in learning programming in the most general sense possible. I want to be able to eventually use this knowledge in financial engineering and basic website development. I am not looking to take classes until i have taught myself enough to have a very solid understanding of the programming concepts. I have received advice from a coworker in the IT department that C# is a good starting language and is easy to play around with using the microsoft visual c# express and web dev express programs. Microsoft provides a bunch of tutorials. Is this a good route to travel?","preferred_answer":"C# is a good language to get started with.\n\nI recommend buying a [book](http://www.amazon.com/Learning-C-3-0-Jesse-Liberty/dp/0596521065/ref=sr_1_1?ie=UTF8&s=books&qid=1266598763&sr=8-1) to get started, this will give your self-learning more structure.\n\nOther great languages to start with are: Ruby and Python.\n\nPHP is really easy to learn and get started with, but you're pretty much stuck doing only web applications then.","full_conversation":[{"role":"OP","user_id":"anon_33ef5894fbc1eee9","comment_id":"b4217","kind":"post","text":"How do i go about teaching myself programming. I have NO background at all, but am very interested.\n\nI am interested in learning programming in the most general sense possible. I want to be able to eventually use this knowledge in financial engineering and basic website development. I am not looking to take classes until i have taught myself enough to have a very solid understanding of the programming concepts. I have received advice from a coworker in the IT department that C# is a good starting language and is easy to play around with using the microsoft visual c# express and web dev express programs. Microsoft provides a bunch of tutorials. Is this a good route to travel?","timestamp":"2010-02-19T16:56:25+00:00","score":0},{"role":"answerer","user_id":"anon_2e1029158a754ceb","comment_id":"c0kudmm","kind":"comment","text":"C# is a good language to get started with.\n\nI recommend buying a [book](http://www.amazon.com/Learning-C-3-0-Jesse-Liberty/dp/0596521065/ref=sr_1_1?ie=UTF8&s=books&qid=1266598763&sr=8-1) to get started, this will give your self-learning more structure.\n\nOther great languages to start with are: Ruby and Python.\n\nPHP is really easy to learn and get started with, but you're pretty much stuck doing only web applications then.","timestamp":"2010-02-19T17:01:21+00:00","score":3},{"role":"OP","user_id":"anon_33ef5894fbc1eee9","comment_id":"c0kudty","kind":"comment","text":"Thanks. I think getting a good book would definitely be a good idea. So are you saying ruby and python would be BETTER to start with than C#?","timestamp":"2010-02-19T17:03:58+00:00","score":2},{"role":"answerer","user_id":"anon_2e1029158a754ceb","comment_id":"c0kuekj","kind":"comment","text":"ha, I specifically avoided saying that :P\n\nI use C# the most and I really enjoy it. I like the curly-brace structure and the fact that there are tons of neat little things you can do with the Windows OS. Also, with the introduction of Mono, you can go cross-platform with alot of your code.\n\nAlso, visual studio [express](http://microsoft.com/express) is a very functional (free) IDE that will allow you to easily make nice looking GUI applications.\n\nEither way, you can't go wrong with any language (I don't think anyone really sticks to a single language anyway) mentioned above, but my **personal** recommendation would be C#. Not because it is better, but because I have had success with it and I enjoy it.","timestamp":"2010-02-19T17:13:46+00:00","score":2},{"role":"OP","user_id":"anon_33ef5894fbc1eee9","comment_id":"c0kuezl","kind":"comment","text":"Right, I understand that there is no 'best' language to learn, just clarifying your use of \"good\" and \"great\" in the comment.","timestamp":"2010-02-19T17:19:05+00:00","score":1},{"role":"answerer","user_id":"anon_2e1029158a754ceb","comment_id":"c0kujyu","kind":"comment","text":"I gotcha. C#, Ruby, and Python are all great :)\nC# is my favorite of the three.","timestamp":"2010-02-19T18:25:25+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_33ef5894fbc1eee9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2e1029158a754ceb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kudmm","thanks_reply_id":"c0kudty","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_81c9d6128b5fcd7b","answerer_user_id":"anon_49fe583d852b0364","subreddit":"programming","timestamp":"2010-02-20T00:44:32+00:00","post_id":"b47bl","question":"Ask /r/programming: Why is it not possible to use the same partition for dual-boot and a VM?\n\nAs a primary Linux user who sometimes has to use Windows for various reasons, I am well aware of the pros and cons of dual-booting vs. using a Virtual Machine. But here is something I have always wondered: why isn't it possible to do both with the same partition?\n\nThat probably doesn't make sense, so let me explain: When you dual-boot between two OS's, you have two separate partitions on your drive; one for each OS. When you use a VM, you have a file inside your primary OS's partition that contains within it a virtual partition that contains the virtual OS. It seems to me that it should be possible to set up a dual-boot system, and then add a VM with a virtual partition that would then go out to the disk and *mount* the physical partition for the other OS and boot it.\n\nI think this would be the ideal solution. You would be able to choose between launching a VM into the secondary OS or booting it directly, but either way, it would be the *same filesystem*, so all of your settings and installed applications would be shared. You would only need to set it up once. Plus, if your secondary OS is one that doesn't like being run in a VM or being installed twice (like Windows), it would avoid that problem nicely.\n\nSo can someone tell me what is wrong with this idea? Is there some technical reason that it can't be implemented, or is it just that nobody has seen any reason to try?","preferred_answer":"yes, it is\n\nedit: here is my linux.vmdk file for virtualbox that runs on xp64, there should be an analog for doing this on linux\n\nwhat this does is actually boots the entire disk inside the VM. i just use grub as normal and select my specially rolled kernel\n\nedited for formatting\n\n # Disk DescriptorFile\n version=1\n CID=45e9c77d\n parentCID=ffffffff\n createType=\"fullDevice\"\n\n # Extent description \n RW 976773168 FLAT \"\\\\\\.\\PhysicalDrive0\" <-fucking escape chars \n\n # The disk Data Base \n #DDB\n\n ddb.virtualHWVersion = \"4\"\n ddb.adapterType=\"ide\"\n ddb.geometry.cylinders=\"16383\"\n ddb.geometry.heads=\"16\"\n ddb.geometry.sectors=\"63\"\n ddb.uuid.image=\"2d80b83f-6d0c-4074-b7a7-c927d13ebdf0\"\n ddb.uuid.parent=\"00000000-0000-0000-0000-000000000000\"\n ddb.uuid.modification=\"93208946-9694-49de-aa2b-15e054c4666d\"\n ddb.uuid.parentmodification=\"00000000-0000-0000-0000-000000000000\"\n ddb.geometry.biosCylinders=\"1024\"\n ddb.geometry.biosHeads=\"255\"\n ddb.geometry.biosSectors=\"63\"","full_conversation":[{"role":"OP","user_id":"anon_81c9d6128b5fcd7b","comment_id":"b47bl","kind":"post","text":"Ask /r/programming: Why is it not possible to use the same partition for dual-boot and a VM?\n\nAs a primary Linux user who sometimes has to use Windows for various reasons, I am well aware of the pros and cons of dual-booting vs. using a Virtual Machine. But here is something I have always wondered: why isn't it possible to do both with the same partition?\n\nThat probably doesn't make sense, so let me explain: When you dual-boot between two OS's, you have two separate partitions on your drive; one for each OS. When you use a VM, you have a file inside your primary OS's partition that contains within it a virtual partition that contains the virtual OS. It seems to me that it should be possible to set up a dual-boot system, and then add a VM with a virtual partition that would then go out to the disk and *mount* the physical partition for the other OS and boot it.\n\nI think this would be the ideal solution. You would be able to choose between launching a VM into the secondary OS or booting it directly, but either way, it would be the *same filesystem*, so all of your settings and installed applications would be shared. You would only need to set it up once. Plus, if your secondary OS is one that doesn't like being run in a VM or being installed twice (like Windows), it would avoid that problem nicely.\n\nSo can someone tell me what is wrong with this idea? Is there some technical reason that it can't be implemented, or is it just that nobody has seen any reason to try?","timestamp":"2010-02-20T00:44:32+00:00","score":4},{"role":"answerer","user_id":"anon_49fe583d852b0364","comment_id":"c0kvexb","kind":"comment","text":"yes, it is\n\nedit: here is my linux.vmdk file for virtualbox that runs on xp64, there should be an analog for doing this on linux\n\nwhat this does is actually boots the entire disk inside the VM. i just use grub as normal and select my specially rolled kernel\n\nedited for formatting\n\n # Disk DescriptorFile\n version=1\n CID=45e9c77d\n parentCID=ffffffff\n createType=\"fullDevice\"\n\n # Extent description \n RW 976773168 FLAT \"\\\\\\.\\PhysicalDrive0\" <-fucking escape chars \n\n # The disk Data Base \n #DDB\n\n ddb.virtualHWVersion = \"4\"\n ddb.adapterType=\"ide\"\n ddb.geometry.cylinders=\"16383\"\n ddb.geometry.heads=\"16\"\n ddb.geometry.sectors=\"63\"\n ddb.uuid.image=\"2d80b83f-6d0c-4074-b7a7-c927d13ebdf0\"\n ddb.uuid.parent=\"00000000-0000-0000-0000-000000000000\"\n ddb.uuid.modification=\"93208946-9694-49de-aa2b-15e054c4666d\"\n ddb.uuid.parentmodification=\"00000000-0000-0000-0000-000000000000\"\n ddb.geometry.biosCylinders=\"1024\"\n ddb.geometry.biosHeads=\"255\"\n ddb.geometry.biosSectors=\"63\"","timestamp":"2010-02-20T01:49:26+00:00","score":2},{"role":"OP","user_id":"anon_81c9d6128b5fcd7b","comment_id":"c0kvl2y","kind":"comment","text":"Cool! I'm getting a new laptop in a week or so; I'm going to give this a try.\n\nThank you very much.","timestamp":"2010-02-20T03:52:10+00:00","score":1},{"role":"answerer","user_id":"anon_49fe583d852b0364","comment_id":"c0l60cn","kind":"comment","text":"btw, you will need to adjust the fstab to reflect your vm's devices. usually you'll have your main disks on /dev/sdxx for the serial ata drives. this is fine except that internally vmware, virtualpc and most things like that use a virtual implementation of a regular ata bus, so linux will detect things differently than if it had access to the actual hardware","timestamp":"2010-02-25T05:55:07+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_81c9d6128b5fcd7b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_49fe583d852b0364","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kvexb","thanks_reply_id":"c0kvl2y","post_score":4,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_20f7c14e6a631a10","answerer_user_id":"anon_df3576e50d8384fd","subreddit":"programming","timestamp":"2010-02-21T17:07:06+00:00","post_id":"b4ove","question":"How to get started in web applications?\n\nI am an experienced programmer, and I have a few little ideas that I think would work really well as PHP based web applications. I have no problem with learning PHP, mySQL, etc, but I do have a problem with the design of a webpage in itself. \n\nI am used to interface design ala Interface Builder and Swing, where there are some clearly defined classes with clearly defined behaviors etc. To me, web design is the wild west where I have to write my entire user interface, complete with little effects and stuff, on my own. \n\nI'm not afraid of this by any means, I just need some advice on where to start. I've like to learn some proper HTML for starters, since everything I know how to do is static and ugly, and I'd like to learn Javascript to be able to make my pages more elegant as time goes by. \n\ntl;dr : How does a programmer begin web design? Any good books out there? \n\nEDIT: Cross-post to stackoverflow.","preferred_answer":"Forget everything you know about efficient design practices, and get ready to be mortified by the way web apps are truly written. As a web app developer, I've not ceased to be amazed by the sloppy orgy of technologies that I have to tie together.","full_conversation":[{"role":"OP","user_id":"anon_20f7c14e6a631a10","comment_id":"b4ove","kind":"post","text":"How to get started in web applications?\n\nI am an experienced programmer, and I have a few little ideas that I think would work really well as PHP based web applications. I have no problem with learning PHP, mySQL, etc, but I do have a problem with the design of a webpage in itself. \n\nI am used to interface design ala Interface Builder and Swing, where there are some clearly defined classes with clearly defined behaviors etc. To me, web design is the wild west where I have to write my entire user interface, complete with little effects and stuff, on my own. \n\nI'm not afraid of this by any means, I just need some advice on where to start. I've like to learn some proper HTML for starters, since everything I know how to do is static and ugly, and I'd like to learn Javascript to be able to make my pages more elegant as time goes by. \n\ntl;dr : How does a programmer begin web design? Any good books out there? \n\nEDIT: Cross-post to stackoverflow.","timestamp":"2010-02-21T17:07:06+00:00","score":2},{"role":"answerer","user_id":"anon_df3576e50d8384fd","comment_id":"c0kxzh9","kind":"comment","text":"Forget everything you know about efficient design practices, and get ready to be mortified by the way web apps are truly written. As a web app developer, I've not ceased to be amazed by the sloppy orgy of technologies that I have to tie together.","timestamp":"2010-02-21T17:36:23+00:00","score":19},{"role":"OP","user_id":"anon_20f7c14e6a631a10","comment_id":"c0ky2jd","kind":"comment","text":"Thanks, but cmon, you guys. This comment doesn't need to be number one.","timestamp":"2010-02-21T18:37:46+00:00","score":0},{"role":"answerer","user_id":"anon_df3576e50d8384fd","comment_id":"c0ky2lw","kind":"comment","text":"I gave a real reply later. Sorry for discouraging. ;-)","timestamp":"2010-02-21T18:39:09+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_20f7c14e6a631a10","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_df3576e50d8384fd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kxzh9","thanks_reply_id":"c0ky2jd","post_score":2,"answer_score":19,"preferred_answer_is_top_level":true}} {"user_id":"anon_5a6430e66ef63ef7","answerer_user_id":"anon_98874d85acb3108b","subreddit":"programming","timestamp":"2010-02-22T01:27:54+00:00","post_id":"b4t6i","question":"help needed - is there a quick way to put a logo on my screen above all running programs? Like a DOG\n\na bit like a tv Digital on-screen graphic.\n\nI am hoping to avoid programming a modal non-dialog window with thin border and no close, min and max buttons and that something already exists out there. All help gratefully received.\n\nthe reason being I would like the logo to appear on a kiosk presentation but am using a program that doesn't allow such a logo to be placed in it.","preferred_answer":"assuming windows...\n\nfullscreen, on-top, chromeless window with transparency-key.\n\nalso, there's some flag to make clicks pass through the window, so it's effectively untouchable.\n\ni made something like this a few years ago with D and DFL. the winapi beneath should be possible to figure out. if you want, i can dump the code.","full_conversation":[{"role":"OP","user_id":"anon_5a6430e66ef63ef7","comment_id":"b4t6i","kind":"post","text":"help needed - is there a quick way to put a logo on my screen above all running programs? Like a DOG\n\na bit like a tv Digital on-screen graphic.\n\nI am hoping to avoid programming a modal non-dialog window with thin border and no close, min and max buttons and that something already exists out there. All help gratefully received.\n\nthe reason being I would like the logo to appear on a kiosk presentation but am using a program that doesn't allow such a logo to be placed in it.","timestamp":"2010-02-22T01:27:54+00:00","score":0},{"role":"answerer","user_id":"anon_98874d85acb3108b","comment_id":"c0kyt1t","kind":"comment","text":"assuming windows...\n\nfullscreen, on-top, chromeless window with transparency-key.\n\nalso, there's some flag to make clicks pass through the window, so it's effectively untouchable.\n\ni made something like this a few years ago with D and DFL. the winapi beneath should be possible to figure out. if you want, i can dump the code.","timestamp":"2010-02-22T02:35:18+00:00","score":1},{"role":"OP","user_id":"anon_5a6430e66ef63ef7","comment_id":"c0kyuyi","kind":"comment","text":"Thanks, I am a lowly VB programmer. I do dabble with the winapi though so if it is not too much trouble and no ready-made solution appears in the next few days I would be grateful if you could share it.","timestamp":"2010-02-22T03:06:06+00:00","score":1},{"role":"answerer","user_id":"anon_98874d85acb3108b","comment_id":"c0kzxcu","kind":"comment","text":"there you go. http://codepad.org/3kO6I4bs\n\ni'm used to duck typing (and dynamic typing in general). i solved one problem with interfaces, which feel like a straitjacket to me.","timestamp":"2010-02-22T17:36:32+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5a6430e66ef63ef7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_98874d85acb3108b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0kyt1t","thanks_reply_id":"c0kyuyi","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_54bb4e9fdc09c5a3","answerer_user_id":"anon_b73932fc37200f8f","subreddit":"programming","timestamp":"2010-02-23T00:01:12+00:00","post_id":"b57yt","question":"How did you really learn to program?\n\nI graduated with a CS degree from a relatively good university, but I'm feeling like I really don't know very much. I can string together a program, but the design is pretty terrible. I don't feel like I really learned anything useful to programming in my coursework. Too late, it became apparent that there was more theory in the curriculum than I was really interested in.\n\nI'm thinking about starting over. I've read through some books to get a feel for what would work for me, but I'm having problems finding anything good.\n\nPart of my problem is that so many books teach by analogy. It's all well and good that you should think of an object, say a car, and the methods and data that would go into it. But analogies never map perfectly. When I'm trying to design something which is not analogous to a physical object, I have a hard time breaking it apart.\n\nSo what did you do? Anyone else have a formal CS education and feel like they came out of it with nothing?","preferred_answer":"Read \"Lions' Commentary on UNIX 6th Edition, with Source Code\".\nI can't recommend this book enough.\n\nReading good code is probably as important as writing lots of code. \n\nThe Wine source is quite good, but it's BIG: http://source.winehq.org/\nLinux code is full of good code, but it is HUGE: http://lxr.linux.no/linux\n\nBoth are a case of trace things through rather than try and digest the whole thing.\n\nIt's much easier to write good code in a small project, but generally that's not the real world.\n\nThe nice thing about big code bases is you will see how things try and keep contained as much as possible, and how when they can't be, how they use a standard mechanism that is used through out the whole.\n\nOh and I recommend C because:\n1) It's simple\n2) It's doesn't do anything for you, so you must learn to do it yourself\n3) It's the grandfather of most modern languages.\n\nNever quite sure if I prefer the expressiveness of C++ at the cost of complexity, or the simplicity of C, with cost of the lack of expressiveness....\n\nOnly after C would I say look at C++.\n\nUnless you're not interested in how things work, or writing things that are fast and slim. In which case, sure, use a high level language and never look below.","full_conversation":[{"role":"OP","user_id":"anon_54bb4e9fdc09c5a3","comment_id":"b57yt","kind":"post","text":"How did you really learn to program?\n\nI graduated with a CS degree from a relatively good university, but I'm feeling like I really don't know very much. I can string together a program, but the design is pretty terrible. I don't feel like I really learned anything useful to programming in my coursework. Too late, it became apparent that there was more theory in the curriculum than I was really interested in.\n\nI'm thinking about starting over. I've read through some books to get a feel for what would work for me, but I'm having problems finding anything good.\n\nPart of my problem is that so many books teach by analogy. It's all well and good that you should think of an object, say a car, and the methods and data that would go into it. But analogies never map perfectly. When I'm trying to design something which is not analogous to a physical object, I have a hard time breaking it apart.\n\nSo what did you do? Anyone else have a formal CS education and feel like they came out of it with nothing?","timestamp":"2010-02-23T00:01:12+00:00","score":65},{"role":"answerer","user_id":"anon_b73932fc37200f8f","comment_id":"c0l25z5","kind":"comment","text":"Read \"Lions' Commentary on UNIX 6th Edition, with Source Code\".\nI can't recommend this book enough.\n\nReading good code is probably as important as writing lots of code. \n\nThe Wine source is quite good, but it's BIG: http://source.winehq.org/\nLinux code is full of good code, but it is HUGE: http://lxr.linux.no/linux\n\nBoth are a case of trace things through rather than try and digest the whole thing.\n\nIt's much easier to write good code in a small project, but generally that's not the real world.\n\nThe nice thing about big code bases is you will see how things try and keep contained as much as possible, and how when they can't be, how they use a standard mechanism that is used through out the whole.\n\nOh and I recommend C because:\n1) It's simple\n2) It's doesn't do anything for you, so you must learn to do it yourself\n3) It's the grandfather of most modern languages.\n\nNever quite sure if I prefer the expressiveness of C++ at the cost of complexity, or the simplicity of C, with cost of the lack of expressiveness....\n\nOnly after C would I say look at C++.\n\nUnless you're not interested in how things work, or writing things that are fast and slim. In which case, sure, use a high level language and never look below.","timestamp":"2010-02-23T18:01:58+00:00","score":1},{"role":"OP","user_id":"anon_54bb4e9fdc09c5a3","comment_id":"c0l2bij","kind":"comment","text":"I'll check those out, thanks!","timestamp":"2010-02-23T19:06:28+00:00","score":1},{"role":"answerer","user_id":"anon_b73932fc37200f8f","comment_id":"c0l3ycz","kind":"comment","text":"Hope you enjoy \"Lions' Commentary on UNIX 6th Edition, with Source Code\" as much as I did! :-)\nNot only is it good code, but John Lion managed not to be too dry.\nOn top of that, it's a small enough code base to get your head round, but it is still a recognizable Unix. It's like a key to understanding Unix and OSs in general that bit better.\n\nP.S. You will need two book marks! One for the code, one for the commentary.","timestamp":"2010-02-24T09:49:31+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_54bb4e9fdc09c5a3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b73932fc37200f8f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0l25z5","thanks_reply_id":"c0l2bij","post_score":65,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_e079a0b7e4345221","answerer_user_id":"anon_7afeea5607a3e7cd","subreddit":"programming","timestamp":"2010-02-24T02:35:32+00:00","post_id":"b5ptk","question":"proggit, I'm making a photomosaic generator. Where can I download lots of related pictures at once?\n\nThey don't have to be high resolution. But are there any sites maybe that have giant collections of images? For example, 500 pictures of trees? I've been using Flickr or Google Image Search + DownThemAll on the search results page but it still takes some time and includes lots of unrelated pictures.","preferred_answer":"You will run into these \"unrelated pictures\" issues with most image searches. One of my favorite stock sources is the StockXchange (sxc.hu); however, it also returns some unrelated images (based off of what keywords the submitters use).","full_conversation":[{"role":"OP","user_id":"anon_e079a0b7e4345221","comment_id":"b5ptk","kind":"post","text":"proggit, I'm making a photomosaic generator. Where can I download lots of related pictures at once?\n\nThey don't have to be high resolution. But are there any sites maybe that have giant collections of images? For example, 500 pictures of trees? I've been using Flickr or Google Image Search + DownThemAll on the search results page but it still takes some time and includes lots of unrelated pictures.","timestamp":"2010-02-24T02:35:32+00:00","score":0},{"role":"answerer","user_id":"anon_7afeea5607a3e7cd","comment_id":"c0l3air","kind":"comment","text":"You will run into these \"unrelated pictures\" issues with most image searches. One of my favorite stock sources is the StockXchange (sxc.hu); however, it also returns some unrelated images (based off of what keywords the submitters use).","timestamp":"2010-02-24T02:41:15+00:00","score":1},{"role":"OP","user_id":"anon_e079a0b7e4345221","comment_id":"c0l3an8","kind":"comment","text":"That could be useful, thanks for the link.","timestamp":"2010-02-24T02:42:58+00:00","score":1},{"role":"answerer","user_id":"anon_7afeea5607a3e7cd","comment_id":"c0l3b1a","kind":"comment","text":"Not a problem. Finding public domain images is a rough task for anyone, let alone for what you're doing. Good luck with your project.","timestamp":"2010-02-24T02:48:05+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e079a0b7e4345221","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7afeea5607a3e7cd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0l3air","thanks_reply_id":"c0l3an8","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_cea010730eac5a37","answerer_user_id":"anon_39d06882f3d28dc8","subreddit":"programming","timestamp":"2010-02-25T17:51:12+00:00","post_id":"b6gtz","question":"Anyone know of a good place to take Web Design night classes in Chicago?\n\nI am looking to find a good school or program in Chicago that offers web design classes at night, since I work a full-time job. I don't necessarily mean a degree program, but some place that offers a program teaching web design. I have a degree in Marketing and am hoping to learn web design as well to help me in my Internet Marketing career. I've started teaching myself through reading and creating sample sites but I would prefer taking classes and being taught by an actual web designer. Has anyone completed or heard of a program in Chicago that they really liked? I'd love any suggestions. \n\nThanks for the help!","preferred_answer":"Try here http://www.digitalbootcamp.com/course_outline.cfm?course_id=1258121858 I took classes there several years ago and they were very good.","full_conversation":[{"role":"OP","user_id":"anon_cea010730eac5a37","comment_id":"b6gtz","kind":"post","text":"Anyone know of a good place to take Web Design night classes in Chicago?\n\nI am looking to find a good school or program in Chicago that offers web design classes at night, since I work a full-time job. I don't necessarily mean a degree program, but some place that offers a program teaching web design. I have a degree in Marketing and am hoping to learn web design as well to help me in my Internet Marketing career. I've started teaching myself through reading and creating sample sites but I would prefer taking classes and being taught by an actual web designer. Has anyone completed or heard of a program in Chicago that they really liked? I'd love any suggestions. \n\nThanks for the help!","timestamp":"2010-02-25T17:51:12+00:00","score":0},{"role":"answerer","user_id":"anon_39d06882f3d28dc8","comment_id":"c0l6v5j","kind":"comment","text":"Try here http://www.digitalbootcamp.com/course_outline.cfm?course_id=1258121858 I took classes there several years ago and they were very good.","timestamp":"2010-02-25T18:29:15+00:00","score":1},{"role":"OP","user_id":"anon_cea010730eac5a37","comment_id":"c0l709c","kind":"comment","text":"Thank you! Were they night classes?","timestamp":"2010-02-25T19:30:46+00:00","score":1},{"role":"answerer","user_id":"anon_39d06882f3d28dc8","comment_id":"c0lqshv","kind":"comment","text":"I think they have night and weekend classes","timestamp":"2010-03-07T11:22:51+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cea010730eac5a37","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_39d06882f3d28dc8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0l6v5j","thanks_reply_id":"c0l709c","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_b8f8ff70364ee1ec","answerer_user_id":"anon_541db57dbe46d108","subreddit":"programming","timestamp":"2010-02-25T18:23:19+00:00","post_id":"b6hap","question":"Suggestions for Tree-style Tabs for Chrome\n\nI'm pretty desperate at this point. I figured with the proper addition of extensions for Chrome someone out there would make a [tree-style tabs](https://addons.mozilla.org/en-US/firefox/addon/5890) clone for Chrome. It's the only thing stopping me from making the switch. You guys at /r/Programming are an intelligent bunch; why hasn't this been done yet? Am I the only one going absolutely crazy over this?","preferred_answer":"This is the first I've heard of tree-style tabs. I have written a Chrome extension ([Chrome Marking Menu](https://chrome.google.com/extensions/detail/dhbobbhcjchoconllpepbcanpfbmebgc)), and I don't know if the Chrome API allows the kind of deep changes you are looking for.\n\nChrome extensions are written in JavaScript. They allow you to either modify a loaded page in-place or add a dialog-balloon-style popup bookmark to the navigation bar. They don't really allow you to fully rewrite the UI.\n\nYou could write an extension that drew a tree in a left frame and loaded content in the right frame, but I don't think you can hide the native tabs. The tree would essentially be a series of links to load other tabs. If you had 10 tabs open, you'd have 10 tree-frames drawn. Because of the way Chrome is engineered, I don't think you can really share one tree across them all (remember, each tab is in its own sandbox). Perhaps you could pass around a DOM reference between tabs that would move the tree to the DOM of the active tab when you switch tabs?","full_conversation":[{"role":"OP","user_id":"anon_b8f8ff70364ee1ec","comment_id":"b6hap","kind":"post","text":"Suggestions for Tree-style Tabs for Chrome\n\nI'm pretty desperate at this point. I figured with the proper addition of extensions for Chrome someone out there would make a [tree-style tabs](https://addons.mozilla.org/en-US/firefox/addon/5890) clone for Chrome. It's the only thing stopping me from making the switch. You guys at /r/Programming are an intelligent bunch; why hasn't this been done yet? Am I the only one going absolutely crazy over this?","timestamp":"2010-02-25T18:23:19+00:00","score":5},{"role":"answerer","user_id":"anon_541db57dbe46d108","comment_id":"c0l6ygm","kind":"comment","text":"This is the first I've heard of tree-style tabs. I have written a Chrome extension ([Chrome Marking Menu](https://chrome.google.com/extensions/detail/dhbobbhcjchoconllpepbcanpfbmebgc)), and I don't know if the Chrome API allows the kind of deep changes you are looking for.\n\nChrome extensions are written in JavaScript. They allow you to either modify a loaded page in-place or add a dialog-balloon-style popup bookmark to the navigation bar. They don't really allow you to fully rewrite the UI.\n\nYou could write an extension that drew a tree in a left frame and loaded content in the right frame, but I don't think you can hide the native tabs. The tree would essentially be a series of links to load other tabs. If you had 10 tabs open, you'd have 10 tree-frames drawn. Because of the way Chrome is engineered, I don't think you can really share one tree across them all (remember, each tab is in its own sandbox). Perhaps you could pass around a DOM reference between tabs that would move the tree to the DOM of the active tab when you switch tabs?","timestamp":"2010-02-25T19:10:17+00:00","score":8},{"role":"OP","user_id":"anon_b8f8ff70364ee1ec","comment_id":"c0l7qos","kind":"comment","text":"Thanks for the extensive reply! It's a shame chrome doesn't allow you to alter the UI in this sense. Looks like I'm sticking with Firefox for a bit longer.","timestamp":"2010-02-26T01:27:44+00:00","score":2},{"role":"answerer","user_id":"anon_541db57dbe46d108","comment_id":"c0l7tm6","kind":"comment","text":"If you do switch, give Marking Menu a try… ;-)","timestamp":"2010-02-26T02:11:04+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b8f8ff70364ee1ec","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_541db57dbe46d108","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0l6ygm","thanks_reply_id":"c0l7qos","post_score":5,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_f668ed3ca2e65cb2","answerer_user_id":"anon_8fb75a6a6bf319af","subreddit":"programming","timestamp":"2010-02-26T11:52:50+00:00","post_id":"b6sda","question":"Where to get an IRL Hex/binary calculator?\n\nI appreciate your help and time guys and galls!\r\n\r\nI was looking for a desktop calculator that can do not only decimal- but hex and binary input and calculation.\r\nI work a lot with low level C and I use the windows calculator in scientific mode all the time. However, it would be really nice to have one on my desk, both for simplicity and style. Ideally it would look very much like the windows calculator, but you know, be a real piece of hardware.\r\n\r\n**Have any of you ever seen this?** I tried searching for it but I wasn't able to properly filter out all the *software* calculator results, and was unable to find one.\r\n\r\nI'm really looking to get one of these, and at the mention so is two or three of my colleagues.\r\n\r\nCheers!\r\n\r\n*edit*: Maybe I should have been a bit more precise: the Casio and Sharp suggest are fine calculators, but I was thinking a bit simpler (I already have a couple of TI-8x series). Pretty much only needs the standard / * - + ^ but also input for hex and binary. Like a [this](http://less4more.com.au/shop/images/CALC.jpg) simple, only with hex. I think there'd be a market for this, in engineering.","preferred_answer":"My boss has one: Casio CM-100.","full_conversation":[{"role":"OP","user_id":"anon_f668ed3ca2e65cb2","comment_id":"b6sda","kind":"post","text":"Where to get an IRL Hex/binary calculator?\n\nI appreciate your help and time guys and galls!\r\n\r\nI was looking for a desktop calculator that can do not only decimal- but hex and binary input and calculation.\r\nI work a lot with low level C and I use the windows calculator in scientific mode all the time. However, it would be really nice to have one on my desk, both for simplicity and style. Ideally it would look very much like the windows calculator, but you know, be a real piece of hardware.\r\n\r\n**Have any of you ever seen this?** I tried searching for it but I wasn't able to properly filter out all the *software* calculator results, and was unable to find one.\r\n\r\nI'm really looking to get one of these, and at the mention so is two or three of my colleagues.\r\n\r\nCheers!\r\n\r\n*edit*: Maybe I should have been a bit more precise: the Casio and Sharp suggest are fine calculators, but I was thinking a bit simpler (I already have a couple of TI-8x series). Pretty much only needs the standard / * - + ^ but also input for hex and binary. Like a [this](http://less4more.com.au/shop/images/CALC.jpg) simple, only with hex. I think there'd be a market for this, in engineering.","timestamp":"2010-02-26T11:52:50+00:00","score":4},{"role":"answerer","user_id":"anon_8fb75a6a6bf319af","comment_id":"c0l8yip","kind":"comment","text":"My boss has one: Casio CM-100.","timestamp":"2010-02-26T17:37:57+00:00","score":2},{"role":"OP","user_id":"anon_f668ed3ca2e65cb2","comment_id":"c0l8zwq","kind":"comment","text":"It's perfect. Thank you!","timestamp":"2010-02-26T17:57:03+00:00","score":1},{"role":"answerer","user_id":"anon_8fb75a6a6bf319af","comment_id":"c0l90qg","kind":"comment","text":"Good look finding one, I would like one myself :-)","timestamp":"2010-02-26T18:09:46+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f668ed3ca2e65cb2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8fb75a6a6bf319af","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0l8yip","thanks_reply_id":"c0l8zwq","post_score":4,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6865c3d3348c4d40","answerer_user_id":"anon_6f377ceb45aab216","subreddit":"programming","timestamp":"2010-03-01T23:28:48+00:00","post_id":"b7zas","question":"Dear Reddit: Do you know how much we webmasters get paid for the adverts that you view?\n\nSweet f*ck all. And I'm not lying. I've had days where I've had 1000s and 1000s of page views - only to get maybe 11 cent (USD) or so. No joke. You might have a misguided vision in your head of website owners smoking cigars and sipping champagne on large cruise ships, but that is not the case. For the most part, we are misguided failures forever trying to turn shit into gold.","preferred_answer":"Don't worry, I'm refreshing your pages and clicking as many ads as I can! Just send a little of that champagne my way when the check arrives!","full_conversation":[{"role":"OP","user_id":"anon_6865c3d3348c4d40","comment_id":"b7zas","kind":"post","text":"Dear Reddit: Do you know how much we webmasters get paid for the adverts that you view?\n\nSweet f*ck all. And I'm not lying. I've had days where I've had 1000s and 1000s of page views - only to get maybe 11 cent (USD) or so. No joke. You might have a misguided vision in your head of website owners smoking cigars and sipping champagne on large cruise ships, but that is not the case. For the most part, we are misguided failures forever trying to turn shit into gold.","timestamp":"2010-03-01T23:28:48+00:00","score":0},{"role":"answerer","user_id":"anon_6f377ceb45aab216","comment_id":"c0levcy","kind":"comment","text":"Don't worry, I'm refreshing your pages and clicking as many ads as I can! Just send a little of that champagne my way when the check arrives!","timestamp":"2010-03-01T23:51:22+00:00","score":2},{"role":"OP","user_id":"anon_6865c3d3348c4d40","comment_id":"c0levhx","kind":"comment","text":"Same bank acc as usual? Tell your wife I said thanks for the platinum gold rug she sent over.","timestamp":"2010-03-01T23:53:19+00:00","score":1},{"role":"answerer","user_id":"anon_6f377ceb45aab216","comment_id":"c0levrv","kind":"comment","text":"Platinum gold?","timestamp":"2010-03-01T23:57:13+00:00","score":1},{"role":"OP","user_id":"anon_6865c3d3348c4d40","comment_id":"c0lewvv","kind":"comment","text":"Plat. gold is basically white gold. Cmon, you guys have girlfriends right? Right?","timestamp":"2010-03-02T00:13:41+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6865c3d3348c4d40","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6f377ceb45aab216","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0levcy","thanks_reply_id":"c0levhx","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_f067f44a9bcfa6aa","answerer_user_id":"anon_a4ef84d67aea6b51","subreddit":"programming","timestamp":"2010-03-08T02:17:31+00:00","post_id":"bah24","question":"Need Help Picking Programming Project\n\nI'm a programmer/teacher who has an upcoming vacation and I need some help choosing a programming project.\nThere are two projects I have in mind and feel that either could be a benefit. My ultimate goal is to host the source of both programs online (Github) and create a companion website.\n\n**Project I - Lightweight First Person Shooter**\n\nCreate basic first person shooter similar to Unreal (not UT) using modern tools and techniques. Game will have low-polygon models and will focus on textures similar to that of Blizzard. All textures will be procedurally generated. Without the big budget for programming features, it will focus on story line and a no-nonsense approach to level development.\n\nThis game would be self-contained similar to programs made for the Demoscene.\n\nBecause this is a lightweight solution, it would focus on elegant, well documented code. Other developers anxious to learn about game development could use this as an example of how these applications are written.\n\n**Project II - XOrg Screensaver**\n\nSimilar to above. Just a colorful screensaver that could be extended by users with new scenes stored in an XML file and posted online for others to view.\n\n**Project III - Dashboard Viewer For Business**\n\nIn a prior life, I worked as a business programmer. Over years of watching failed projects go by, I noticed a business need for a software tool to display real-time data from common business systems. Such tools exist in the commercial world but are very expensive and have to be developed custom for each situation.\n\nThese tools give managers a real-time graphical view into the inner workings of the enterprise.\n\nThis would be similar to a stock trading platform such as Scott-trade Elite, but designed for general use by any business. The tool would read a configuration file that points to the location of real-time data for analysis. The data could come from two sources: 1. Flat files that almost any IT department can produce. 2. Database connection such as MySQL or Oracle.\n\nBasically, it would display bar charts, pie graphs, line graphs and lots more as time allows. Program would be compact, written in C and use OpenGL and GLUT to draw graphics.\n\nI know these descriptions are not complete, but I'm sure this is the right crowd to ask this sort of question.\n\n**Which would benefit the community more overall?**\n\n**Is there any other graphical software that might be more needed?**","preferred_answer":"I like project 3.","full_conversation":[{"role":"OP","user_id":"anon_f067f44a9bcfa6aa","comment_id":"bah24","kind":"post","text":"Need Help Picking Programming Project\n\nI'm a programmer/teacher who has an upcoming vacation and I need some help choosing a programming project.\nThere are two projects I have in mind and feel that either could be a benefit. My ultimate goal is to host the source of both programs online (Github) and create a companion website.\n\n**Project I - Lightweight First Person Shooter**\n\nCreate basic first person shooter similar to Unreal (not UT) using modern tools and techniques. Game will have low-polygon models and will focus on textures similar to that of Blizzard. All textures will be procedurally generated. Without the big budget for programming features, it will focus on story line and a no-nonsense approach to level development.\n\nThis game would be self-contained similar to programs made for the Demoscene.\n\nBecause this is a lightweight solution, it would focus on elegant, well documented code. Other developers anxious to learn about game development could use this as an example of how these applications are written.\n\n**Project II - XOrg Screensaver**\n\nSimilar to above. Just a colorful screensaver that could be extended by users with new scenes stored in an XML file and posted online for others to view.\n\n**Project III - Dashboard Viewer For Business**\n\nIn a prior life, I worked as a business programmer. Over years of watching failed projects go by, I noticed a business need for a software tool to display real-time data from common business systems. Such tools exist in the commercial world but are very expensive and have to be developed custom for each situation.\n\nThese tools give managers a real-time graphical view into the inner workings of the enterprise.\n\nThis would be similar to a stock trading platform such as Scott-trade Elite, but designed for general use by any business. The tool would read a configuration file that points to the location of real-time data for analysis. The data could come from two sources: 1. Flat files that almost any IT department can produce. 2. Database connection such as MySQL or Oracle.\n\nBasically, it would display bar charts, pie graphs, line graphs and lots more as time allows. Program would be compact, written in C and use OpenGL and GLUT to draw graphics.\n\nI know these descriptions are not complete, but I'm sure this is the right crowd to ask this sort of question.\n\n**Which would benefit the community more overall?**\n\n**Is there any other graphical software that might be more needed?**","timestamp":"2010-03-08T02:17:31+00:00","score":0},{"role":"answerer","user_id":"anon_a4ef84d67aea6b51","comment_id":"c0lsavk","kind":"comment","text":"I like project 3.","timestamp":"2010-03-08T04:48:38+00:00","score":3},{"role":"OP","user_id":"anon_f067f44a9bcfa6aa","comment_id":"c0lscsf","kind":"comment","text":"Any reason in particular?\n\nThanks for voting.","timestamp":"2010-03-08T05:18:36+00:00","score":1},{"role":"answerer","user_id":"anon_a4ef84d67aea6b51","comment_id":"c0lsd0b","kind":"comment","text":"Games are fun, and they are very cutting edge in terms of actual programming. But project 3 has a LOT of potential in business terms. If it was developed well, you could actually make some cash from it. No one makes cash from simple FPS's or screensaver apps. It's also probably a fair bit easier then project 2, but you might not learn as much. I just really like the idea","timestamp":"2010-03-08T05:22:12+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f067f44a9bcfa6aa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a4ef84d67aea6b51","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0lsavk","thanks_reply_id":"c0lscsf","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_b6c9aa25736a70a7","answerer_user_id":"anon_eea4cd62b180e1c6","subreddit":"programming","timestamp":"2010-03-08T17:57:05+00:00","post_id":"barcc","question":"How scalable is SCons?","preferred_answer":"> Can you explain what about my test build makes it pathological? I\n\nI wasn't talking about your build, I haven't looked at it tbh. I was talking about all the benchmarks I saw so far.\n\n> you haven't used it on a large enough project to see the problems.\n\nMaybe. The largest project I used it on is around 2 million lines of code, which I found reasonable enough of size. For these sizes, I don't mind waiting 7 seconds for a no-op build to complete, because the recursive make version is a lot worse (and the non-recursive make version would be unmaintainable, especially if you're working on a heterogenous codebase).","full_conversation":[{"role":"OP","user_id":"anon_b6c9aa25736a70a7","comment_id":"barcc","kind":"post","text":"How scalable is SCons?","timestamp":"2010-03-08T17:57:05+00:00","score":18},{"role":"answerer","user_id":"anon_eea4cd62b180e1c6","comment_id":"c0m2bvg","kind":"comment","text":"> Can you explain what about my test build makes it pathological? I\n\nI wasn't talking about your build, I haven't looked at it tbh. I was talking about all the benchmarks I saw so far.\n\n> you haven't used it on a large enough project to see the problems.\n\nMaybe. The largest project I used it on is around 2 million lines of code, which I found reasonable enough of size. For these sizes, I don't mind waiting 7 seconds for a no-op build to complete, because the recursive make version is a lot worse (and the non-recursive make version would be unmaintainable, especially if you're working on a heterogenous codebase).","timestamp":"2010-03-12T11:57:46+00:00","score":1},{"role":"OP","user_id":"anon_b6c9aa25736a70a7","comment_id":"c0m336o","kind":"comment","text":"Thanks for responding.\n\nIn this context, \"large\" must be measured in number of source files, not lines of code. Assuming 500-1000 lines of code per file that would make your project between 2,000 and 4,000 source files, which is not really big enough to see the pain that SCons causes, based on my tests.","timestamp":"2010-03-12T18:57:55+00:00","score":1},{"role":"answerer","user_id":"anon_eea4cd62b180e1c6","comment_id":"c0m85hc","kind":"comment","text":"It's more around 20k source files actually.","timestamp":"2010-03-15T09:13:45+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b6c9aa25736a70a7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_eea4cd62b180e1c6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m2bvg","thanks_reply_id":"c0m336o","post_score":18,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_fc5beac37ae709c3","answerer_user_id":"anon_d7ee95be32ab5aab","subreddit":"programming","timestamp":"2010-03-08T18:12:41+00:00","post_id":"barlw","question":"Hi, proggit! I work on an anonymous p2p project and we need Win7 and Web developers! Do you want to give us a hand?","preferred_answer":"I'm doing some translation work for you guys as my coding skills aren't really in line with the project. My language skills are fine though!","full_conversation":[{"role":"OP","user_id":"anon_fc5beac37ae709c3","comment_id":"barlw","kind":"post","text":"Hi, proggit! I work on an anonymous p2p project and we need Win7 and Web developers! Do you want to give us a hand?","timestamp":"2010-03-08T18:12:41+00:00","score":0},{"role":"answerer","user_id":"anon_d7ee95be32ab5aab","comment_id":"c0ltfyg","kind":"comment","text":"I'm doing some translation work for you guys as my coding skills aren't really in line with the project. My language skills are fine though!","timestamp":"2010-03-08T19:15:04+00:00","score":1},{"role":"OP","user_id":"anon_fc5beac37ae709c3","comment_id":"c0ltq00","kind":"comment","text":"Thank you very much!","timestamp":"2010-03-08T21:13:28+00:00","score":1},{"role":"answerer","user_id":"anon_d7ee95be32ab5aab","comment_id":"c0ltq41","kind":"comment","text":"I found quite a few projects needing translation. I plan on spending my breaks at work doings some translation. I just quit smoking and need something to do to keep me from the smoke-break area.","timestamp":"2010-03-08T21:14:46+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fc5beac37ae709c3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d7ee95be32ab5aab","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ltfyg","thanks_reply_id":"c0ltq00","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_c7aab67d76de40b1","answerer_user_id":"anon_b9aa9ff098f51639","subreddit":"programming","timestamp":"2010-03-09T09:51:37+00:00","post_id":"bb27t","question":"Why 20% time is awesome and how to make it work.","preferred_answer":"Change your font to something which is readable for a human being, and we might read it.","full_conversation":[{"role":"OP","user_id":"anon_c7aab67d76de40b1","comment_id":"bb27t","kind":"post","text":"Why 20% time is awesome and how to make it work.","timestamp":"2010-03-09T09:51:37+00:00","score":0},{"role":"answerer","user_id":"anon_b9aa9ff098f51639","comment_id":"c0lv0vq","kind":"comment","text":"Change your font to something which is readable for a human being, and we might read it.","timestamp":"2010-03-09T10:20:18+00:00","score":1},{"role":"OP","user_id":"anon_c7aab67d76de40b1","comment_id":"c0lxis3","kind":"comment","text":"Thanks for the feedback - changed.","timestamp":"2010-03-10T12:03:37+00:00","score":0},{"role":"answerer","user_id":"anon_b9aa9ff098f51639","comment_id":"c0lxj5f","kind":"comment","text":"Much better. Thanks mate.","timestamp":"2010-03-10T12:18:43+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c7aab67d76de40b1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b9aa9ff098f51639","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0lv0vq","thanks_reply_id":"c0lxis3","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_45c51bf41b8de9ed","answerer_user_id":"anon_34c4856c40da0435","subreddit":"programming","timestamp":"2010-03-11T16:37:57+00:00","post_id":"bc4ot","question":"Why I Am Giving Up Building a Business on the iPhone","preferred_answer":"There are multiple issues here that aren't really related.\n\n1. He is trying to build a business on shovelware. This may actually work on the iPhone but we here on reddit think that is stupid and we are right.\n\n2. He got in trouble for trademark infringement for at least the NBA keywords if not elsewhere in his apps.\n\n3. His RSS feed shovelware also was rejected, maybe it shouldn't have been, but that doesn't mean he's not trying to push crap.\n\n4. This is the main point of the article which is actually useful. You shouldn't base your business on the iPhone because due to the agreement and app review process, you are not in control of the destiny of your business. This applies to everyone who makes iPhone apps, good or bad.","full_conversation":[{"role":"OP","user_id":"anon_45c51bf41b8de9ed","comment_id":"bc4ot","kind":"post","text":"Why I Am Giving Up Building a Business on the iPhone","timestamp":"2010-03-11T16:37:57+00:00","score":66},{"role":"answerer","user_id":"anon_34c4856c40da0435","comment_id":"c0m0q5x","kind":"comment","text":"There are multiple issues here that aren't really related.\n\n1. He is trying to build a business on shovelware. This may actually work on the iPhone but we here on reddit think that is stupid and we are right.\n\n2. He got in trouble for trademark infringement for at least the NBA keywords if not elsewhere in his apps.\n\n3. His RSS feed shovelware also was rejected, maybe it shouldn't have been, but that doesn't mean he's not trying to push crap.\n\n4. This is the main point of the article which is actually useful. You shouldn't base your business on the iPhone because due to the agreement and app review process, you are not in control of the destiny of your business. This applies to everyone who makes iPhone apps, good or bad.","timestamp":"2010-03-11T19:35:22+00:00","score":30},{"role":"OP","user_id":"anon_45c51bf41b8de9ed","comment_id":"c0m19si","kind":"comment","text":"Thanks for your response.\n\n* 1) We would disagree here, but it's not worth the debate. I can just say we put a lot of hours in these apps.\n\n* 2) There was no trademark infringement. Imagine that you are building a fan site for the Dallas Cowboys. Let's assume that you don't use \"Dallas Cowboys\" or \"Cowboys\" anywhere on the site. You call the site: \"Pro Dallas Fan Site\" and then in your HTML, you put the Meta tag \"NFL.\" That's essentially what we did.\n\n* 3) Difference of opinion.\n\n* 4) Thank you for pointing this out. I couldn't have actually said it better.\n\nTake Care!","timestamp":"2010-03-11T23:29:55+00:00","score":4},{"role":"answerer","user_id":"anon_34c4856c40da0435","comment_id":"c0m1qx6","kind":"comment","text":"Yeah we can agree to disagree on 1. and 3. but I still don't agree on 2: I think it's perfectly valid for Apple to not allow apps to use meta tag of NFL or NBA when the app isn't sanctioned by those organizations. They are historically very protective of their trademarks and I think they have the right to control the use of the term \"NBA\" when it relates to basketball.","timestamp":"2010-03-12T03:44:10+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_45c51bf41b8de9ed","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_34c4856c40da0435","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m0q5x","thanks_reply_id":"c0m19si","post_score":66,"answer_score":30,"preferred_answer_is_top_level":true}} {"user_id":"anon_ae0470f0ef8211ef","answerer_user_id":"anon_2380c51b1cb3f30b","subreddit":"programming","timestamp":"2010-03-12T11:26:54+00:00","post_id":"bchmj","question":"Ask Proggit: What are good embedded scripting languages for a C++ program?","preferred_answer":"its a lot like Javascript, but more oriented towards being used as a scripting language, and its really good, and its used mostly for games, but it could probably do whatever. I like it.","full_conversation":[{"role":"OP","user_id":"anon_ae0470f0ef8211ef","comment_id":"bchmj","kind":"post","text":"Ask Proggit: What are good embedded scripting languages for a C++ program?","timestamp":"2010-03-12T11:26:54+00:00","score":18},{"role":"answerer","user_id":"anon_2380c51b1cb3f30b","comment_id":"c0m36f3","kind":"comment","text":"its a lot like Javascript, but more oriented towards being used as a scripting language, and its really good, and its used mostly for games, but it could probably do whatever. I like it.","timestamp":"2010-03-12T19:35:55+00:00","score":2},{"role":"OP","user_id":"anon_ae0470f0ef8211ef","comment_id":"c0m36jo","kind":"comment","text":"thanks, will play with it a bit and see how i like it :)","timestamp":"2010-03-12T19:37:27+00:00","score":2},{"role":"answerer","user_id":"anon_2380c51b1cb3f30b","comment_id":"c0m38sd","kind":"comment","text":"You're welcome, tell me how it works out!","timestamp":"2010-03-12T20:02:38+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ae0470f0ef8211ef","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2380c51b1cb3f30b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m36f3","thanks_reply_id":"c0m36jo","post_score":18,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_cce49169fa4c4e3b","answerer_user_id":"anon_81d4c5c1d200409a","subreddit":"programming","timestamp":"2010-03-14T13:06:03+00:00","post_id":"bd7v4","question":"jQuery for the command line?\n\nI'd like to have a jQuery-like language for the command line, allowing me to easily select groups of files and run commands on them. Shell script is great, but it's so much more succinct to express things in a selection-action jQuery style, perhaps with map/reduce in there as well.\n\nFor example, to rename files with the word `track` in their filename and ending in `.wav.mp3` to `.mp3`, instead of,\n\n find . -name \\*.wav.mp3 | grep track | while read i; do mv $i $(basename $i .wav.mp3).mp3; done\n\nI'd like to be able to write:\n\n find(*.wav.mp3).grep(track).mv($1|sed s/.wav.mp3$/.mp3/)\n\nI dunno, I just made that syntax up, but you get the idea. No more while-loop, just a selection of files managed as a group, filtered by grep, applied to a transformation and passed to `mv`. Here I'm thinking the filename could be represented as $1.\n\nActually now that I think about it, instead of `mv` taking an argument, there should be a transformation stage where each item in the group is expanded to two arguments for `mv`:\n\n find(*.wav.mp3).grep(track).[$1,sed(s/.wav.mp3$/.mp3/)].mv\n\nConsidering the somewhat stupid way we have to deal with environment variables when they represent lists, being careful to quote and all that, i.e.,\n\n VAR1=\"$VAR1 $1 $2\"\n\nIt would be nice to instead by able to simply assign environment variables to the output of one of these operations:\n\n VAR1=VAR1.add($1).add($2)\n\nOkay this isn't very well thought-out, I'm just making it up as I type this, but what do you think? It is a useful idea? Any better syntax propositions?\n\nI haven't really thought about implementation. It could be a little executable that runs such a one-liner script given as argument. Or it could be a compiler that takes this syntax and renders it down to normal shell script. Or generates Perl, Python, etc...","preferred_answer":"find(*.wav.mp3).grep(track).mv($1|sed s/.wav.mp3$/.mp3/)\n\nwould be:\n\n home['*.wav.mp3'].search(track).each { |f| f.rename( f.to_s.replace('.wav.mp3','.mp3') }\n\nJust a guess, haven't tried the command out myself .. there should be an easier sed replacement in ruby .. and i'm not sure what the type of f is .. (which is why I convert it to a string, just to be sure)\n\nAt the very least, it should be a brilliant starting point. \nI say take the code, and turn it into your jquery orgy ;-)\n\nWhat you want to do, is make every method work on, and return a list of entries. \nI actually think that would be a saner setup than what rush now does. (although it is now more idiomatic ruby)","full_conversation":[{"role":"OP","user_id":"anon_cce49169fa4c4e3b","comment_id":"bd7v4","kind":"post","text":"jQuery for the command line?\n\nI'd like to have a jQuery-like language for the command line, allowing me to easily select groups of files and run commands on them. Shell script is great, but it's so much more succinct to express things in a selection-action jQuery style, perhaps with map/reduce in there as well.\n\nFor example, to rename files with the word `track` in their filename and ending in `.wav.mp3` to `.mp3`, instead of,\n\n find . -name \\*.wav.mp3 | grep track | while read i; do mv $i $(basename $i .wav.mp3).mp3; done\n\nI'd like to be able to write:\n\n find(*.wav.mp3).grep(track).mv($1|sed s/.wav.mp3$/.mp3/)\n\nI dunno, I just made that syntax up, but you get the idea. No more while-loop, just a selection of files managed as a group, filtered by grep, applied to a transformation and passed to `mv`. Here I'm thinking the filename could be represented as $1.\n\nActually now that I think about it, instead of `mv` taking an argument, there should be a transformation stage where each item in the group is expanded to two arguments for `mv`:\n\n find(*.wav.mp3).grep(track).[$1,sed(s/.wav.mp3$/.mp3/)].mv\n\nConsidering the somewhat stupid way we have to deal with environment variables when they represent lists, being careful to quote and all that, i.e.,\n\n VAR1=\"$VAR1 $1 $2\"\n\nIt would be nice to instead by able to simply assign environment variables to the output of one of these operations:\n\n VAR1=VAR1.add($1).add($2)\n\nOkay this isn't very well thought-out, I'm just making it up as I type this, but what do you think? It is a useful idea? Any better syntax propositions?\n\nI haven't really thought about implementation. It could be a little executable that runs such a one-liner script given as argument. Or it could be a compiler that takes this syntax and renders it down to normal shell script. Or generates Perl, Python, etc...","timestamp":"2010-03-14T13:06:03+00:00","score":0},{"role":"answerer","user_id":"anon_81d4c5c1d200409a","comment_id":"c0m6h2d","kind":"comment","text":"find(*.wav.mp3).grep(track).mv($1|sed s/.wav.mp3$/.mp3/)\n\nwould be:\n\n home['*.wav.mp3'].search(track).each { |f| f.rename( f.to_s.replace('.wav.mp3','.mp3') }\n\nJust a guess, haven't tried the command out myself .. there should be an easier sed replacement in ruby .. and i'm not sure what the type of f is .. (which is why I convert it to a string, just to be sure)\n\nAt the very least, it should be a brilliant starting point. \nI say take the code, and turn it into your jquery orgy ;-)\n\nWhat you want to do, is make every method work on, and return a list of entries. \nI actually think that would be a saner setup than what rush now does. (although it is now more idiomatic ruby)","timestamp":"2010-03-14T15:43:51+00:00","score":2},{"role":"OP","user_id":"anon_cce49169fa4c4e3b","comment_id":"c0m6kx1","kind":"comment","text":"Interesting, thanks. I haven't used Ruby at all so I'm not familiar with its syntax but it definitely looks similar to what I was talking about. Although I was thinking along the lines of something more like a bash script that performs its operations by executing external processes instead of using language functionality, but maybe it comes to the same thing in the end.","timestamp":"2010-03-14T17:03:04+00:00","score":1},{"role":"answerer","user_id":"anon_81d4c5c1d200409a","comment_id":"c0m6r8s","kind":"comment","text":"Bash is just a scripting language.\n\nInstead of #!/bin/sh \nYou would have #!/bin/env ruby\n\nRuby intentionally has a lot of traits of perl for scripting. Like being able to use ordinary (bash) shell commands using backticks. For example:\n\n `ls *.gif` executes the command in bash and returns the string result","timestamp":"2010-03-14T18:51:24+00:00","score":2},{"role":"OP","user_id":"anon_cce49169fa4c4e3b","comment_id":"c0m6z8g","kind":"comment","text":"Ah, well I was thinking more in the context of making one-off commands easier to type. (Hence \"command line\" in my title.) Of course for scripting there are lots of possible solutions.","timestamp":"2010-03-14T20:55:40+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_cce49169fa4c4e3b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_81d4c5c1d200409a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m6h2d","thanks_reply_id":"c0m6kx1","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_ac6af2ac6c6c25c5","answerer_user_id":"anon_614455f24a2f4935","subreddit":"programming","timestamp":"2010-03-15T00:31:12+00:00","post_id":"bddte","question":"Looking for an algorithm for doing a choreography\n\nHello fellow redditors,\n\nI have a friend that wants to do a choreography where the ballerinas will perform their movements based on a set of rules.\n\nThe idea is that instead of the usual way of planing a performance where all the moves are studied from start to finish, there should be a reasonable number of rules that would make the ballerinas move and interact in interesting patterns, based on their initial random location and body pose (right leg lifted a left arm extended, for example).\n\nWe've thought about some rules that mimic the game of life, i.e: when there are three ballerinas together one of them must move away, but something like this doesn't seem lead to a complex enough patterns and maybe in half a minute all of them will be out of the stage :)\n\nIt should be something like: when A is in front of B, A must turn to the side that B points with her arm, preform a jump and lift the oposite leg. Then C should raise both arms making B turn around herself and turn her head to the right, and so on ...\n\nIt would be cool if the rules lead to complex poses and interactions, where all the body could be used (legs, hands, fingers, mouth, eyes, ...), but I don't see how could we build these rules without making the performers memorize hundreds of them neither I know if it will result in something dynamic and interesting or they will halt on stage without knowing what to do next :)\n\nWell, I don't know if it's something feasible, anyone has an idea of where to start?","preferred_answer":"I don't know anything about ballet, so this one might need some work.\n\nFirst, let's use the Boids algorithm for movement. Given random starting positions, give each ballerina the instructions:\n\n1. If two of these rules conflict, go by the latter one.\n2. Keep moving in a straight line.\n3. Average your speed and direction with the nearest ballerinas.\n4. Average your position with the nearest ballerinas.\n5. If you are too close (arm length?, twice arm length?) to another ballerina, steer away from her.\n6. If you're about to leave the stage, turn around.\n\nThat should get an interesting pattern of movement. Now you could use some actions. Pick three interesting poses, A, B, and C. Try starting them all with the same pose.\n\nEvery few seconds (some musical cue would be good here), the ballerinas stop moving and do their current pose, taking note of what's happening around them.\n\n1. If any nearby ballerinas (pick some specific distance for \"nearby\" in armlengths or the like) have the next pose (B is after A, C is after B, A is after C), switch to that pose next time.\n2. If there are at least N (you'll have to experiment, 4?) ballerinas within (that distance again) of you that have your pose, go to the next pose (A to B, B to C, C to A).\n\nSince your movement pattern causes shifting \"schools\" of ballerinas, this should be interesting. If you just had a non-moving ball of them, the ones in the center would end up switching one step, which would cause everyone surrounding them to switch next step, which means the step after that the center ones will shift again. This gets complicated if the \"center\" is big enough that some ballerinas in the center are immediately surrounded after the first shift. After adding in the movement rules, this should get quite complex.\n\nYou could try to adopt the ABC thing to different modes of movement instead of different poses, that might be more interesting. But I don't know how feasible that is, knowing nothing about ballet.","full_conversation":[{"role":"OP","user_id":"anon_ac6af2ac6c6c25c5","comment_id":"bddte","kind":"post","text":"Looking for an algorithm for doing a choreography\n\nHello fellow redditors,\n\nI have a friend that wants to do a choreography where the ballerinas will perform their movements based on a set of rules.\n\nThe idea is that instead of the usual way of planing a performance where all the moves are studied from start to finish, there should be a reasonable number of rules that would make the ballerinas move and interact in interesting patterns, based on their initial random location and body pose (right leg lifted a left arm extended, for example).\n\nWe've thought about some rules that mimic the game of life, i.e: when there are three ballerinas together one of them must move away, but something like this doesn't seem lead to a complex enough patterns and maybe in half a minute all of them will be out of the stage :)\n\nIt should be something like: when A is in front of B, A must turn to the side that B points with her arm, preform a jump and lift the oposite leg. Then C should raise both arms making B turn around herself and turn her head to the right, and so on ...\n\nIt would be cool if the rules lead to complex poses and interactions, where all the body could be used (legs, hands, fingers, mouth, eyes, ...), but I don't see how could we build these rules without making the performers memorize hundreds of them neither I know if it will result in something dynamic and interesting or they will halt on stage without knowing what to do next :)\n\nWell, I don't know if it's something feasible, anyone has an idea of where to start?","timestamp":"2010-03-15T00:31:12+00:00","score":14},{"role":"answerer","user_id":"anon_614455f24a2f4935","comment_id":"c0m82lq","kind":"comment","text":"I don't know anything about ballet, so this one might need some work.\n\nFirst, let's use the Boids algorithm for movement. Given random starting positions, give each ballerina the instructions:\n\n1. If two of these rules conflict, go by the latter one.\n2. Keep moving in a straight line.\n3. Average your speed and direction with the nearest ballerinas.\n4. Average your position with the nearest ballerinas.\n5. If you are too close (arm length?, twice arm length?) to another ballerina, steer away from her.\n6. If you're about to leave the stage, turn around.\n\nThat should get an interesting pattern of movement. Now you could use some actions. Pick three interesting poses, A, B, and C. Try starting them all with the same pose.\n\nEvery few seconds (some musical cue would be good here), the ballerinas stop moving and do their current pose, taking note of what's happening around them.\n\n1. If any nearby ballerinas (pick some specific distance for \"nearby\" in armlengths or the like) have the next pose (B is after A, C is after B, A is after C), switch to that pose next time.\n2. If there are at least N (you'll have to experiment, 4?) ballerinas within (that distance again) of you that have your pose, go to the next pose (A to B, B to C, C to A).\n\nSince your movement pattern causes shifting \"schools\" of ballerinas, this should be interesting. If you just had a non-moving ball of them, the ones in the center would end up switching one step, which would cause everyone surrounding them to switch next step, which means the step after that the center ones will shift again. This gets complicated if the \"center\" is big enough that some ballerinas in the center are immediately surrounded after the first shift. After adding in the movement rules, this should get quite complex.\n\nYou could try to adopt the ABC thing to different modes of movement instead of different poses, that might be more interesting. But I don't know how feasible that is, knowing nothing about ballet.","timestamp":"2010-03-15T07:45:24+00:00","score":3},{"role":"OP","user_id":"anon_ac6af2ac6c6c25c5","comment_id":"c0m85mw","kind":"comment","text":"This looks very interesting, thanks for the thought answer.\n\nWill study the pattern you suggest and see how it could work.","timestamp":"2010-03-15T09:18:41+00:00","score":1},{"role":"answerer","user_id":"anon_614455f24a2f4935","comment_id":"c0m9fp1","kind":"comment","text":"If you end up experimenting with this system, please tell me how it works.","timestamp":"2010-03-15T22:30:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ac6af2ac6c6c25c5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_614455f24a2f4935","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m82lq","thanks_reply_id":"c0m85mw","post_score":14,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_cfd112c507421724","answerer_user_id":"anon_ec46c70575c6c8c5","subreddit":"programming","timestamp":"2010-03-15T18:58:48+00:00","post_id":"bdq09","question":"Anyone hiring? We're losing a great junior web dev because he stood up to our crazy boss.\n\nLong story short, every day our boss (who is an old man with very little web experience) fires off e-mails with big bold red text to the whole team if someone did something he didn't like. Today it was w3 validation which he thinks is the hottest thing to hit the stage, and all of our sites must be valid at all times. Usually we just brush off the annoying e-mails, and deal with the errors in spare time.\n\nOur dev sent an e-mail back to the team listing off huge sites (Amazon, Microsoft, PayPal, CNN, Ebay) with huge numbers of W3 errors, to prove a point, and now today is his last day.\n\nSo, anyone in the Seattle area that wants to hire a good fast php dev? He's a good guy looking to get his career going.\n\n**EDIT:** The boss (who is the president of the company) is really, really hard to work with. Survival means being a yes-man and bending over while handing over your dignity. This dev had only been here a few weeks, and saw it wasn't going to work out, and decided to have some fun with it. We do take W3 validation serious for accessibility and robots, but at specific stages of a project only. Thank you to snark and nodule, who were the only two to answer my question. The discussions are great though :).\n\n**EDIT2:** I gotta get back to work, can't keep checking reddit. PM me if you have a lead on anything. Thanks to all!\n\n**EDIT3:** Thanks to all who upvoted and offered to help. I never expected this to hit the front page. He's got a number of people to e-mail tonight.\n\nI was also encouraged to do a shameless plug for myself while I have front page attention. I am also trying to get out of here, and into a project management role, so I guess there's that :) Hit me up if you want to know my background. Thanks reddit!","preferred_answer":"I am hiring. I am dying to find someone looking for a full time PHP/SQL/XHTML position. Pay is good, job is great. I'm in San Diego, and the candidate must be willing to work locally, (in my office).","full_conversation":[{"role":"OP","user_id":"anon_cfd112c507421724","comment_id":"bdq09","kind":"post","text":"Anyone hiring? We're losing a great junior web dev because he stood up to our crazy boss.\n\nLong story short, every day our boss (who is an old man with very little web experience) fires off e-mails with big bold red text to the whole team if someone did something he didn't like. Today it was w3 validation which he thinks is the hottest thing to hit the stage, and all of our sites must be valid at all times. Usually we just brush off the annoying e-mails, and deal with the errors in spare time.\n\nOur dev sent an e-mail back to the team listing off huge sites (Amazon, Microsoft, PayPal, CNN, Ebay) with huge numbers of W3 errors, to prove a point, and now today is his last day.\n\nSo, anyone in the Seattle area that wants to hire a good fast php dev? He's a good guy looking to get his career going.\n\n**EDIT:** The boss (who is the president of the company) is really, really hard to work with. Survival means being a yes-man and bending over while handing over your dignity. This dev had only been here a few weeks, and saw it wasn't going to work out, and decided to have some fun with it. We do take W3 validation serious for accessibility and robots, but at specific stages of a project only. Thank you to snark and nodule, who were the only two to answer my question. The discussions are great though :).\n\n**EDIT2:** I gotta get back to work, can't keep checking reddit. PM me if you have a lead on anything. Thanks to all!\n\n**EDIT3:** Thanks to all who upvoted and offered to help. I never expected this to hit the front page. He's got a number of people to e-mail tonight.\n\nI was also encouraged to do a shameless plug for myself while I have front page attention. I am also trying to get out of here, and into a project management role, so I guess there's that :) Hit me up if you want to know my background. Thanks reddit!","timestamp":"2010-03-15T18:58:48+00:00","score":538},{"role":"answerer","user_id":"anon_ec46c70575c6c8c5","comment_id":"c0m9wo2","kind":"comment","text":"I am hiring. I am dying to find someone looking for a full time PHP/SQL/XHTML position. Pay is good, job is great. I'm in San Diego, and the candidate must be willing to work locally, (in my office).","timestamp":"2010-03-16T02:27:50+00:00","score":1},{"role":"OP","user_id":"anon_cfd112c507421724","comment_id":"c0madin","kind":"comment","text":"Thanks for the interest, I'm not sure he would relocate, as he's still pretty entry level, but I forwarded it on nonetheless. Thanks!","timestamp":"2010-03-16T07:40:05+00:00","score":1},{"role":"answerer","user_id":"anon_ec46c70575c6c8c5","comment_id":"c0mc8yt","kind":"comment","text":"Thanks, I was really hoping someone on reddit would take the hint and email me. I'm going crazy trying to find someone who can write code. I actually took time out of my day today to interview a guy who could not write a for loop...","timestamp":"2010-03-17T01:06:34+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cfd112c507421724","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ec46c70575c6c8c5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m9wo2","thanks_reply_id":"c0madin","post_score":538,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_2b7c460452a49a8b","answerer_user_id":"anon_ee687ddce0cb7896","subreddit":"programming","timestamp":"2010-03-15T20:03:58+00:00","post_id":"bdqui","question":"How does Google News do to tell when two stories from different sites on its front page are the same?","preferred_answer":"It's awkwardly phrased. Replace \"How\" with \"What\" and it makes sense. Or leave \"How\" and drop the \"do to\"\n\nEx: How does a clock do to tell time?\n\nWhat does a clock do to tell time?\n\nHow does a clock tell time?\n\nAhh much better.","full_conversation":[{"role":"OP","user_id":"anon_2b7c460452a49a8b","comment_id":"bdqui","kind":"post","text":"How does Google News do to tell when two stories from different sites on its front page are the same?","timestamp":"2010-03-15T20:03:58+00:00","score":0},{"role":"answerer","user_id":"anon_ee687ddce0cb7896","comment_id":"c0m984n","kind":"comment","text":"It's awkwardly phrased. Replace \"How\" with \"What\" and it makes sense. Or leave \"How\" and drop the \"do to\"\n\nEx: How does a clock do to tell time?\n\nWhat does a clock do to tell time?\n\nHow does a clock tell time?\n\nAhh much better.","timestamp":"2010-03-15T20:54:24+00:00","score":1},{"role":"OP","user_id":"anon_2b7c460452a49a8b","comment_id":"c0m98gj","kind":"comment","text":"Thanks a lot. I'm not a native speaker, I see the difference now.","timestamp":"2010-03-15T20:57:51+00:00","score":1},{"role":"answerer","user_id":"anon_ee687ddce0cb7896","comment_id":"c0m99y7","kind":"comment","text":"No problem. That's what I figured.","timestamp":"2010-03-15T21:15:21+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2b7c460452a49a8b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ee687ddce0cb7896","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m984n","thanks_reply_id":"c0m98gj","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_1ad321bd42eb7199","answerer_user_id":"anon_6576462014878bec","subreddit":"programming","timestamp":"2010-03-15T21:51:29+00:00","post_id":"bds2y","question":"Can someone recommend some good literature on user-interface design?","preferred_answer":"> It seems like you're assuming a lot about what I'm trying to do.\n\nAh, vague, untestable accusations. How nice.\n\n> If you read the original post, you'll see I said I wasn't actually trying to create a paint brush. I don't know the name of the thing I'm trying to create, so I used an analogy. \n\nAnd when there is no such named thing you're trying to create, the analogy fails. I'm really not sure what's so complicated here.\n\n> I suppose if pressed to give a more accurate description of what I'm trying to make, it would be \"a modal mouse cursor whose mode defines an action when interacting with an arbitrary on-screen object, depending on a context inferred from the object\". Seems like a pretty common thing to me.\n\n... really? You think that's a legitimate description?\n\nI mean, you might as well just say \"mouse cursor\" and be done with it. You are ridiculously over-generalizing the original request to make the original request look general.\n\n> Almost every GUI I've ever used does this in some way.\n\nYeah, almost every GUI you've ever used makes paint brush cursors.\n\nOh wait, I forgot, you changed the topic.\n\n> Frankly, I don't care if you don't want to call it a design pattern, or a composition of patterns, or a snarf gobbling flicky flack.\n\nWell, it's none of the three, so have fun with that.\n\n> (Although reading through GoF I have already found some patterns to think about making use of.)\n\nUh huh. Which ones?\n\n> I don't know enough about software engineering to know whether the others in this thread are giving me crap advice or not, but they're definitely giving advice, which is quite different from what you are doing.\n\nNo, I'm giving you advice. I'm giving you good advice. You just don't like it.\n\nMy advice is this: \"stop trying to use design patterns to create things, and get back to just thinking about the problem.\" Several other people here are giving you the same advice.\n\nI'm sorry that you want a magic bullet so badly that you'll take advice from a large crowd that cannot agree with itself.\n\nThere is no magic bullet. Design patterns are not useful ways to construct designs. They are post-design descriptive labels. Nothing more.\n\n> What you appear to be doing is analysing peoples' statements and looking for every possible point of contention. \n\nI was actually trying to save you from bad advice given by novices, and to help you understand why to listen to me instead of them by explaining what was wrong with their advice.\n\nUnfortunately, you've decided to feel like a victim, so now you want me to be a bully.\n\nHave fun with digging through GoF looking for how to make pieces of a paint program. You'll do well.\n\n> Sure, you have some valid points, but they're orthogonal to the original topic.\n\nNo, they aren't. My point is \"the original topic has a fundamental thought structure flaw.\"\n\nIf you want to say \"but the flaw isn't part of the original topic,\" then feel free to learn the hard way. No skin off my teeth.\n\n> I just wanted some good books to read.\n\nGiven the way you find magic bullets in books that explicitly warn you not to use them that way, I might take a break from books for a while if I were you (especially books in list format), and try getting enough practical experience under your belt that every time you have a simple problem you don't go running to the library looking for universal generalized solutions.\n\nThe problem with never reinventing the wheel is that it prevents you from making things for which wheels are poorly suited.\n\nConceptual re-usability is nice, but if you follow it like a cult, you get cult code as a result.","full_conversation":[{"role":"OP","user_id":"anon_1ad321bd42eb7199","comment_id":"bds2y","kind":"post","text":"Can someone recommend some good literature on user-interface design?","timestamp":"2010-03-15T21:51:29+00:00","score":3},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0mc6qp","kind":"comment","text":"> It seems like you're assuming a lot about what I'm trying to do.\n\nAh, vague, untestable accusations. How nice.\n\n> If you read the original post, you'll see I said I wasn't actually trying to create a paint brush. I don't know the name of the thing I'm trying to create, so I used an analogy. \n\nAnd when there is no such named thing you're trying to create, the analogy fails. I'm really not sure what's so complicated here.\n\n> I suppose if pressed to give a more accurate description of what I'm trying to make, it would be \"a modal mouse cursor whose mode defines an action when interacting with an arbitrary on-screen object, depending on a context inferred from the object\". Seems like a pretty common thing to me.\n\n... really? You think that's a legitimate description?\n\nI mean, you might as well just say \"mouse cursor\" and be done with it. You are ridiculously over-generalizing the original request to make the original request look general.\n\n> Almost every GUI I've ever used does this in some way.\n\nYeah, almost every GUI you've ever used makes paint brush cursors.\n\nOh wait, I forgot, you changed the topic.\n\n> Frankly, I don't care if you don't want to call it a design pattern, or a composition of patterns, or a snarf gobbling flicky flack.\n\nWell, it's none of the three, so have fun with that.\n\n> (Although reading through GoF I have already found some patterns to think about making use of.)\n\nUh huh. Which ones?\n\n> I don't know enough about software engineering to know whether the others in this thread are giving me crap advice or not, but they're definitely giving advice, which is quite different from what you are doing.\n\nNo, I'm giving you advice. I'm giving you good advice. You just don't like it.\n\nMy advice is this: \"stop trying to use design patterns to create things, and get back to just thinking about the problem.\" Several other people here are giving you the same advice.\n\nI'm sorry that you want a magic bullet so badly that you'll take advice from a large crowd that cannot agree with itself.\n\nThere is no magic bullet. Design patterns are not useful ways to construct designs. They are post-design descriptive labels. Nothing more.\n\n> What you appear to be doing is analysing peoples' statements and looking for every possible point of contention. \n\nI was actually trying to save you from bad advice given by novices, and to help you understand why to listen to me instead of them by explaining what was wrong with their advice.\n\nUnfortunately, you've decided to feel like a victim, so now you want me to be a bully.\n\nHave fun with digging through GoF looking for how to make pieces of a paint program. You'll do well.\n\n> Sure, you have some valid points, but they're orthogonal to the original topic.\n\nNo, they aren't. My point is \"the original topic has a fundamental thought structure flaw.\"\n\nIf you want to say \"but the flaw isn't part of the original topic,\" then feel free to learn the hard way. No skin off my teeth.\n\n> I just wanted some good books to read.\n\nGiven the way you find magic bullets in books that explicitly warn you not to use them that way, I might take a break from books for a while if I were you (especially books in list format), and try getting enough practical experience under your belt that every time you have a simple problem you don't go running to the library looking for universal generalized solutions.\n\nThe problem with never reinventing the wheel is that it prevents you from making things for which wheels are poorly suited.\n\nConceptual re-usability is nice, but if you follow it like a cult, you get cult code as a result.","timestamp":"2010-03-17T00:37:53+00:00","score":0},{"role":"OP","user_id":"anon_1ad321bd42eb7199","comment_id":"c0mcfu7","kind":"comment","text":"I appreciate your advice, I just don't think it needs to be so unfriendly. To me, your tone comes across as sneering, and I don't think I'm playing the victim when I say that.\n\nI'm looking for some shoulders to stand on so I can get a better view, not looking for magic bullets.\n\nSo, what software have you designed? What books have you written? You clearly consider yourself an expert, so I'm curious.","timestamp":"2010-03-17T02:40:04+00:00","score":1},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0mcg21","kind":"comment","text":"> To me, your tone comes across as sneering\n\nWell, you're reading a lot into it that isn't there, and the specific complaints you made are things I didn't say. So if you want me to tell the things I didn't say are sneering, well, I'm not honestly all that interested.\n\nIf you appreciate my advice, thank me for it. Don't tell me how to shape it.\n\nOtherwise you won't get it at all.\n\n> and I don't think I'm playing the victim when I say that.\n\nOf course not: you're just thanking someone with the back of your hand while telling them that the things they never said are \"sneering\" and \"antagonistic.\"\n\n> I'm looking for some shoulders to stand on\n\nMaybe if you hadn't spent so much time telling me how awful I was, I might have offered you some.\n\n> So, what software have you designed? What books have you written?\n\nAfter the very ugly things you just said to me, do you honestly expect an answer to these?\n\n> You clearly consider yourself an expert\n\nNo, I don't.","timestamp":"2010-03-17T02:43:10+00:00","score":0},{"role":"OP","user_id":"anon_1ad321bd42eb7199","comment_id":"c0mf6m3","kind":"comment","text":"You're a troll. Get out of my thread.","timestamp":"2010-03-18T05:56:24+00:00","score":0},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0mfckf","kind":"comment","text":"Little confused about what that word means, are we?","timestamp":"2010-03-18T09:03:13+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_1ad321bd42eb7199","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6576462014878bec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0mc6qp","thanks_reply_id":"c0mcfu7","post_score":3,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_0afcfcaf22cc6808","answerer_user_id":"anon_e17f26e995f9f6e5","subreddit":"programming","timestamp":"2010-03-15T22:10:17+00:00","post_id":"bdsah","question":"Looking for direction on merging intersecting 3D \r\nshapes","preferred_answer":"You're applying marching cubes, but it seems like you're not applying any interpolation. i.e. all your vertices are still on the grid rather than sliding along the cube's edges. That's the reason you need absurdly high grid sizes to get an acceptable mesh. [This](http://graphics.stanford.edu/~mdfisher/Images/MarchingCubesSphere.png) is what a marching cubes mesh is supposed to look like.\n\nAfter you apply interpolation, you do end up with the problem that some of your triangles will be extremely small. This can be solved with the following regularization technique:\n\nhttp://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.49.5214&rep=rep1&type=pdf\n\nYou'll end up with very nice mesh, that you can apply mesh subdivision to to achieve a completely smooth surface.","full_conversation":[{"role":"OP","user_id":"anon_0afcfcaf22cc6808","comment_id":"bdsah","kind":"post","text":"Looking for direction on merging intersecting 3D \r\nshapes","timestamp":"2010-03-15T22:10:17+00:00","score":12},{"role":"answerer","user_id":"anon_e17f26e995f9f6e5","comment_id":"c0m9y1p","kind":"comment","text":"You're applying marching cubes, but it seems like you're not applying any interpolation. i.e. all your vertices are still on the grid rather than sliding along the cube's edges. That's the reason you need absurdly high grid sizes to get an acceptable mesh. [This](http://graphics.stanford.edu/~mdfisher/Images/MarchingCubesSphere.png) is what a marching cubes mesh is supposed to look like.\n\nAfter you apply interpolation, you do end up with the problem that some of your triangles will be extremely small. This can be solved with the following regularization technique:\n\nhttp://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.49.5214&rep=rep1&type=pdf\n\nYou'll end up with very nice mesh, that you can apply mesh subdivision to to achieve a completely smooth surface.","timestamp":"2010-03-16T02:47:55+00:00","score":7},{"role":"OP","user_id":"anon_0afcfcaf22cc6808","comment_id":"c0maej6","kind":"comment","text":"Thanks. I've though about laplacian smoothing, but the thing is, this surface will represent Van der Waals surface, and I think the smoothing can distort the sphere shapes, which are important. Do you know of any smoothing technique that can smooth the mesh by moving the grid points towards the building spheres?","timestamp":"2010-03-16T08:10:25+00:00","score":2},{"role":"answerer","user_id":"anon_e17f26e995f9f6e5","comment_id":"c0magi4","kind":"comment","text":"[Subdivision surfaces](http://en.wikipedia.org/wiki/Catmull–Clark_subdivision_surface) tend to retain shapes well, they're used in 3d modelling for this purpose. If you need more accuracy, I would imagine simply increasing the grid resolution is a better option than trying to correct the mesh after the fact (which you can do by differentiating the trivariate function to get the gradient and evaluating the function to get the sign/magnitude, then iterating this process).\n\nYou never specified what function you are using though.\n\nWikipedia tells me that Van der Waals surfaces are defined by the molecular radius, so I would imagine you could get the surface you want by defining your final surface as the [soft minimum](http://www.johndcook.com/blog/2010/01/13/soft-maximum/) of the functions describing the individual spheres (i.e. distance to center - radius = 0). By altering the base of the logarithm/exponential (i.e. scaling it) you can control the amount of blobbyness that occurs without affecting the overall shape.\n\nEDIT: Tried it in grapher.app, [works like a charm](http://imgur.com/GlgQZ).","timestamp":"2010-03-16T09:17:38+00:00","score":2},{"role":"OP","user_id":"anon_0afcfcaf22cc6808","comment_id":"c0md25g","kind":"comment","text":"It looks quite good and very simple to modify. But it does not make a noticeable difference due to constant grid points (i.e. no smoothing). \r\n\r\nSubdivision will also be somewhat problematic (I'll need a decent representation before subdivision, thus moderate to high polygon count. When coupled with subdivision: lots and lots of polygons, which will require poly count reduction...).\r\n\r\nI think I'll try using shifting the points along the cube vertices. But if you know any algorithm to draw surfaces for equalities elegantly (as in the sphere example you provided), without checking every point of a grid, I'm open to suggestions.\r\n\r\nThanks a lot by the way.","timestamp":"2010-03-17T11:17:52+00:00","score":1},{"role":"answerer","user_id":"anon_e17f26e995f9f6e5","comment_id":"c0md5s5","kind":"comment","text":"Well, you could optimize your marching cubes if you assume that your entire surface is connected (which it would be, for a VdW surface?). You only need to explore cubes that you know have a chance of intersecting the surface.\n\nYou could make a very good guess for the starting cube just by taking a random point on the original spheres. Then you recursively inspect neighbouring cubes that aren't empty. Would save you a significant amount of calculations, since the number of inspected cells would grow with O(n^2) instead of O(n^3) where n = grid size.\n\nThis is best implemented as a classical graph search algorithm, similar to A*.\n\n\nYou're welcome for the help, I love this stuff. Wrote a metaball renderer a couple years back, now working on [planets](http://acko.net/).","timestamp":"2010-03-17T12:59:15+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_0afcfcaf22cc6808","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e17f26e995f9f6e5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0m9y1p","thanks_reply_id":"c0maej6","post_score":12,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_daff731c7f49b6ca","answerer_user_id":"anon_27629b9d2b0d7e47","subreddit":"programming","timestamp":"2010-03-16T04:54:33+00:00","post_id":"bdwe6","question":"Dear Reddit Programmers: Can you please help a confused totally noob chick with her noob homework assignment?\n\nI was hoping someone could give me a complete example of a program using IF/THEN. I'm supposed to create a definition for face-south (for the robut to face-south no matter what it's original direction) but I'm slightly confused at the format...or something...anyways if this makes any sense please help, my homework is going to be two days late :o(","preferred_answer":"So you're in college and you need help with an IF/THEN construct? Sheesh =/ Go read a book x-(\n\nEdit: Also playing oh-i'm-just-a-helpless-chick-please-come-rescue-me on a site with primarily male audience is such a give away. Troll somewhere else =/","full_conversation":[{"role":"OP","user_id":"anon_daff731c7f49b6ca","comment_id":"bdwe6","kind":"post","text":"Dear Reddit Programmers: Can you please help a confused totally noob chick with her noob homework assignment?\n\nI was hoping someone could give me a complete example of a program using IF/THEN. I'm supposed to create a definition for face-south (for the robut to face-south no matter what it's original direction) but I'm slightly confused at the format...or something...anyways if this makes any sense please help, my homework is going to be two days late :o(","timestamp":"2010-03-16T04:54:33+00:00","score":0},{"role":"answerer","user_id":"anon_27629b9d2b0d7e47","comment_id":"c0mcd0v","kind":"comment","text":"So you're in college and you need help with an IF/THEN construct? Sheesh =/ Go read a book x-(\n\nEdit: Also playing oh-i'm-just-a-helpless-chick-please-come-rescue-me on a site with primarily male audience is such a give away. Troll somewhere else =/","timestamp":"2010-03-17T02:00:58+00:00","score":0},{"role":"OP","user_id":"anon_daff731c7f49b6ca","comment_id":"c0mcgyc","kind":"comment","text":"Thanks bitch i've been having a bad day and you just made me cry. Your the troll obviously since I was just looking for help, and yeah i am in college finally after years of not being able to go (but I won't go into the sordid details of that) I've just started this shit so OBVIOUSLY i'm not at smart as you are. FUCK OFF YOU STUPID CUNT WHORE. You just can't stand that some people just want to be nice. I hope I fed you enough you fat troll piece of shit.","timestamp":"2010-03-17T02:56:24+00:00","score":1},{"role":"answerer","user_id":"anon_27629b9d2b0d7e47","comment_id":"c0mexrp","kind":"comment","text":"Uh...hey sorry for hurting your feelings. I forgot, you're a human too. If you have genuine questions, I'd be more than happy to help.","timestamp":"2010-03-18T03:08:43+00:00","score":1},{"role":"OP","user_id":"anon_daff731c7f49b6ca","comment_id":"c0mexx1","kind":"comment","text":"Thank you. It's tough when your life seems to be falling apart and you can't concentrate on something that should be so simple. Peace.","timestamp":"2010-03-18T03:11:08+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_daff731c7f49b6ca","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_27629b9d2b0d7e47","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0mcd0v","thanks_reply_id":"c0mcgyc","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_c9c8ae66ecd026a6","answerer_user_id":"anon_cfadcbae3c04c462","subreddit":"programming","timestamp":"2010-03-18T15:32:02+00:00","post_id":"bf1wl","question":"Is it possible to get rid of project managers?\n\nWhat's the best practice for managing a small team of developers? are there any ways of doing it without a manager?\n\nAny good resources out there?\n\nHaving been a manager and a developer, I think that there is a lot of waste and de-motivation about being/having a manager and I wondered if there were any methodologies for doing small team development in a different way.\n\nEdit: Especially interested in methodologies that allow multiple developers to work on a project together where the developers are the originators of the ideas for the project and not any higher ups or clients, without having to make someone responsible for important aspects such as management of code checkin.","preferred_answer":"Of course. We start a new project by creating a set of features requested by the client. Each feature is then assigned to a dev who is then responsible for the whole feature. Then we break each feature into bit-sized implementation chunks, and for each chunk the responsible dev provides a time estimate. \n\nThese estimates are aggregated by the project manager who then communicates to the client what each feature costs and what the dependencies are (if any). The client then chooses a-la-cart what their willing to pay for (price determined based on dev estimates) and that becomes our frozen feature set. \n\nOnce we have sign off from the client on the feature set we redistribute features as necessary among the devs. When there are dependencies, we try to keep the same dev working on that feature sub-set. When we can't, we rely on good developer communication to work out when dependent features are ready for integration, and then the two (or more) devs work in tandem on the implementation of the affected features. \n\nUsually integration is the last step. Since everything has already been divided up, each dev can focus entirely on their particular responsibilities for the project until the integration phase and then the project manager steps in again to provide input (based on client feedback) on what the most important features are. This lets us set priorities, and the most important features get integrated first.\n\nThere are basically three phases of real development going on here. Setup, which is the common platform/database/framework/etc implementation we'll use, Feature development, which is described above, and integration. Setup and integration are where we overlap on projects the most. Setup is easy because we have an agreed upon design based on the client's needs and the strategy for implementing the design doesn't change much from project to project. If it's web, someone created a web project under source control we all contribute to, same for desktop apps, or server apps. Integration is more fluid and requires more dev-to-dev communication to make sure the process is smooth. Because each dev knows their responsibilities and dependencies ahead of time, and thanks to the PM's priority guidelines it's easy to see what needs to happen in each step of integration.\n\nWoah, wall of text. If I left anything out, please ask.","full_conversation":[{"role":"OP","user_id":"anon_c9c8ae66ecd026a6","comment_id":"bf1wl","kind":"post","text":"Is it possible to get rid of project managers?\n\nWhat's the best practice for managing a small team of developers? are there any ways of doing it without a manager?\n\nAny good resources out there?\n\nHaving been a manager and a developer, I think that there is a lot of waste and de-motivation about being/having a manager and I wondered if there were any methodologies for doing small team development in a different way.\n\nEdit: Especially interested in methodologies that allow multiple developers to work on a project together where the developers are the originators of the ideas for the project and not any higher ups or clients, without having to make someone responsible for important aspects such as management of code checkin.","timestamp":"2010-03-18T15:32:02+00:00","score":0},{"role":"answerer","user_id":"anon_cfadcbae3c04c462","comment_id":"c0mfydz","kind":"comment","text":"Of course. We start a new project by creating a set of features requested by the client. Each feature is then assigned to a dev who is then responsible for the whole feature. Then we break each feature into bit-sized implementation chunks, and for each chunk the responsible dev provides a time estimate. \n\nThese estimates are aggregated by the project manager who then communicates to the client what each feature costs and what the dependencies are (if any). The client then chooses a-la-cart what their willing to pay for (price determined based on dev estimates) and that becomes our frozen feature set. \n\nOnce we have sign off from the client on the feature set we redistribute features as necessary among the devs. When there are dependencies, we try to keep the same dev working on that feature sub-set. When we can't, we rely on good developer communication to work out when dependent features are ready for integration, and then the two (or more) devs work in tandem on the implementation of the affected features. \n\nUsually integration is the last step. Since everything has already been divided up, each dev can focus entirely on their particular responsibilities for the project until the integration phase and then the project manager steps in again to provide input (based on client feedback) on what the most important features are. This lets us set priorities, and the most important features get integrated first.\n\nThere are basically three phases of real development going on here. Setup, which is the common platform/database/framework/etc implementation we'll use, Feature development, which is described above, and integration. Setup and integration are where we overlap on projects the most. Setup is easy because we have an agreed upon design based on the client's needs and the strategy for implementing the design doesn't change much from project to project. If it's web, someone created a web project under source control we all contribute to, same for desktop apps, or server apps. Integration is more fluid and requires more dev-to-dev communication to make sure the process is smooth. Because each dev knows their responsibilities and dependencies ahead of time, and thanks to the PM's priority guidelines it's easy to see what needs to happen in each step of integration.\n\nWoah, wall of text. If I left anything out, please ask.","timestamp":"2010-03-18T16:45:37+00:00","score":1},{"role":"OP","user_id":"anon_c9c8ae66ecd026a6","comment_id":"c0mfz54","kind":"comment","text":"Thanks, that is very informative. The key parts that are different from my expereince are:\n\na) That development time is in the hands of the developers - they are responsible for estimating how long something will take, and they are given that time. What happens if they get this wrong and the deadline is crossed?\n\nb) That a single developer is responsible for a bit of code. What happens if a developer leaves the company and are temps ever brought in if the workload gets heavy?\n\nc) The project manager is not micro managed by even higher ups - resulting in micro management of the devs.","timestamp":"2010-03-18T16:55:00+00:00","score":1},{"role":"answerer","user_id":"anon_cfadcbae3c04c462","comment_id":"c0mg2fo","kind":"comment","text":"Sometimes deadlines push. It happens due to unforeseen problems like technical hurdles, or a dev getting into a debilitating car wreck. When a deadline pushes we can extend our working hours to compensate and still meet a client deadline, or in extreme cases the PM may need to negotiate with the client for more time. Getting more time from the client is usually not an issue and it's rare that we need to push a deadline like that. Our principal time constraint comes from the number of hours the client is paying for.\n\nThere's a built-in cushion in our pricing model that lets us fudge estimated hours a bit and remain profitable. The PM tracks those hours and can let us know if we're running up on our threshold. If we cross the profitability threshold (never a good thing) then we're still obligated to fulfill our contract with the client, but at that point we're operating at a loss for the project. The downside is that responsibility for that loss is squarely on the devs (in terms of finding where the problem with the process occurred). The upside though is that the responsibility is squarely on the devs. This means our estimates are extremely conservative so we very very very rarely go over. When the client is billed they only pay for the time we actually used. If there's more time in the estimate they may opt to add features that were cut, or just pay for what's delivered.\n\nSometimes devs get knocked out of a project for some reason. When it's in the implementation or setup stage it's not a huge deal, their workload gets redistributed to the remaining dev and the project moves forward. If we lose someone during the feature stage and we can't reasonably redistribute (the only case where we can't would be to meet a hard client due date) then yeah, we'll bring on contractors. The contractors will work on the minor or time consuming features leaving the core devs to work on the more complex features where a temp would need more ramp-up time. 90% of the time an outside contractor needs only a short orientation period to get used to our systems and processes because they only need a basic working knowledge of the whole project. The details they focus on are already locked in (each feature) so they can work in relative isolation until the integration phase. \n\nProject managers work in the background to support the devs. They make sure that we have the resources we need (tools, contractors, art, etc.) and when there's a contractor the PM will pay extra attention to them to make sure they integrate with the team. The PM will track the team's progress usually without interfering. When we fudge an estimate the PM will let us know, but pretty much lets the process run it's course and communicates any major setbacks or problems to the client in a way that manages the client's expectations.","timestamp":"2010-03-18T17:33:19+00:00","score":1},{"role":"OP","user_id":"anon_c9c8ae66ecd026a6","comment_id":"c0mgr52","kind":"comment","text":"That's great input. Thanks","timestamp":"2010-03-18T22:21:09+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c9c8ae66ecd026a6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cfadcbae3c04c462","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0mfydz","thanks_reply_id":"c0mfz54","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_d23c6c34a1c0d6c3","answerer_user_id":"anon_da9ac2122ec5cf0f","subreddit":"programming","timestamp":"2010-03-18T20:48:06+00:00","post_id":"bf6ge","question":"How does a developer with no background in statistics and advanced computing algorithms go about coming up to speed in \"data mining\" and machine learning concepts ?","preferred_answer":"Come hang out in /r/machinelearning and /r/statistics.","full_conversation":[{"role":"OP","user_id":"anon_d23c6c34a1c0d6c3","comment_id":"bf6ge","kind":"post","text":"How does a developer with no background in statistics and advanced computing algorithms go about coming up to speed in \"data mining\" and machine learning concepts ?","timestamp":"2010-03-18T20:48:06+00:00","score":110},{"role":"answerer","user_id":"anon_da9ac2122ec5cf0f","comment_id":"c0mh2qv","kind":"comment","text":"Come hang out in /r/machinelearning and /r/statistics.","timestamp":"2010-03-19T01:28:04+00:00","score":2},{"role":"OP","user_id":"anon_d23c6c34a1c0d6c3","comment_id":"c0mh727","kind":"comment","text":"Thanks, I did not realize that one existed.","timestamp":"2010-03-19T02:37:32+00:00","score":2},{"role":"answerer","user_id":"anon_da9ac2122ec5cf0f","comment_id":"c0mh79p","kind":"comment","text":"Also - what particularly do you want to know about DM, ML and stats?","timestamp":"2010-03-19T02:40:57+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d23c6c34a1c0d6c3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_da9ac2122ec5cf0f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0mh2qv","thanks_reply_id":"c0mh727","post_score":110,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_bab6edea0663f736","answerer_user_id":"anon_da69e74948d0e3e1","subreddit":"programming","timestamp":"2010-03-19T05:57:56+00:00","post_id":"bfc4s","question":"What programming books are on your shelf?","preferred_answer":"Indices, not indecies.","full_conversation":[{"role":"OP","user_id":"anon_bab6edea0663f736","comment_id":"bfc4s","kind":"post","text":"What programming books are on your shelf?","timestamp":"2010-03-19T05:57:56+00:00","score":4},{"role":"answerer","user_id":"anon_da69e74948d0e3e1","comment_id":"c0mietu","kind":"comment","text":"Indices, not indecies.","timestamp":"2010-03-19T17:45:32+00:00","score":1},{"role":"OP","user_id":"anon_bab6edea0663f736","comment_id":"c0mii45","kind":"comment","text":"Thank you from one grammar/spelling Nazi to another. It has been corrected.","timestamp":"2010-03-19T18:26:30+00:00","score":1},{"role":"answerer","user_id":"anon_da69e74948d0e3e1","comment_id":"c0mjc8r","kind":"comment","text":"It now says indicies. You are expelled from spelling nazism.","timestamp":"2010-03-20T01:26:58+00:00","score":1},{"role":"OP","user_id":"anon_bab6edea0663f736","comment_id":"c0mjeym","kind":"comment","text":"Well, I said thank you, and I corrected the original as well as putting in [edited] just to make it clear that I wasn't trying to pull a fast one on anyone.","timestamp":"2010-03-20T02:17:55+00:00","score":1},{"role":"answerer","user_id":"anon_da69e74948d0e3e1","comment_id":"c0mjf4e","kind":"comment","text":"It was a joke, but check your edit: It says Ind(ex|ic**i**es).","timestamp":"2010-03-20T02:20:50+00:00","score":1},{"role":"OP","user_id":"anon_bab6edea0663f736","comment_id":"c0mjnrr","kind":"comment","text":"Sorry, apparently I shouldn't have been allowed near any input devices this past day. Thanks for pointing out my screw up in the least painful manner. And no, I'm not correcting anything at this point as I'd most likely make a mess of that as well.","timestamp":"2010-03-20T04:55:37+00:00","score":2}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_bab6edea0663f736","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_da69e74948d0e3e1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0mietu","thanks_reply_id":"c0mii45","post_score":4,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_9c06ed0ba77be59b","answerer_user_id":"anon_b314c3dbb0e52f50","subreddit":"programming","timestamp":"2010-03-20T10:56:27+00:00","post_id":"bfuky","question":"Nodewall - add and reply to abstract, anonymous communication nodes - a small project I made today. Thoughts?","preferred_answer":"Add up/down votes. Limit spam through throughput, not arbitrary limits. Have IP's perhaps string themselves, so that multiple postings by the same IP will only have one chosen from a pool of that IP's postings, with an option to view further what has been posted by that IP","full_conversation":[{"role":"OP","user_id":"anon_9c06ed0ba77be59b","comment_id":"bfuky","kind":"post","text":"Nodewall - add and reply to abstract, anonymous communication nodes - a small project I made today. Thoughts?","timestamp":"2010-03-20T10:56:27+00:00","score":8},{"role":"answerer","user_id":"anon_b314c3dbb0e52f50","comment_id":"c0mk87n","kind":"comment","text":"Add up/down votes. Limit spam through throughput, not arbitrary limits. Have IP's perhaps string themselves, so that multiple postings by the same IP will only have one chosen from a pool of that IP's postings, with an option to view further what has been posted by that IP","timestamp":"2010-03-20T15:36:26+00:00","score":1},{"role":"OP","user_id":"anon_9c06ed0ba77be59b","comment_id":"c0mkslp","kind":"comment","text":"This is great advice, thank you very much for your constructive criticism. The throughput-based spam filtering is the hardest step of the process...","timestamp":"2010-03-20T21:25:27+00:00","score":2},{"role":"answerer","user_id":"anon_b314c3dbb0e52f50","comment_id":"c0ml0pd","kind":"comment","text":"When there's a long comment, have it trail off with ... and have it be spelt out full with mouse over. It'd be nice to be notified to replies","timestamp":"2010-03-20T23:49:44+00:00","score":1},{"role":"OP","user_id":"anon_9c06ed0ba77be59b","comment_id":"c0ml0ts","kind":"comment","text":"roger that, adding to the to-do tonight :)","timestamp":"2010-03-20T23:52:02+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_9c06ed0ba77be59b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b314c3dbb0e52f50","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0mk87n","thanks_reply_id":"c0mkslp","post_score":8,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_f6df97d43c91569b","answerer_user_id":"anon_6576462014878bec","subreddit":"programming","timestamp":"2010-03-21T04:26:24+00:00","post_id":"bg39x","question":"How much should I charge for a freelance (web) programming project?\n\nHey everyone, sorry to bother you all with such a mundane question but I'll be starting on my first paid freelance job soon and I am wondering how much is a fair price to charge.\n\nI am going to be designing (as in, how the system will work not the visual design) and implementing a website for a translation company that will allow them to manage projects, clients, outsourcing and accounting all through a web-based system. I have implemented a similar system in the past for myself when I thought of starting the same kind of company, but not quite to as much complexity so I am thinking the entire project may take anywhere between 3 and 4 months to complete from planning/design, implementation, testing and final deployment as I am the only coder on the project.\n\nI want to note that the company I'm working with is coming to me specifically and me only because they like some work I did for them in the past and they have no idea how much this type of thing usually costs and they don't really care. They have not specified any specific budget but I want to give them a fair price because I am planning on working more closely with them in the future as well and I am not in it to just make a quick buck off them (but I do want to get paid fairly for my work). Any input would be appreciated.\n\nThank you!\n\nEdit: Thanks for the replies, I just wanted to get an idea of what people charge because the only rates I could find were those from places in India and the like and of course they were ridiculously low. I think I am going to go with a $70-$80 per hour rate and pitch them an estimate from there. Thanks again!","preferred_answer":"This is several weeks too late. Still, maybe it'll be of use to you in your next project.\n\nMy method:\n\n1) Specify the job. Break every item down until it's four hours or less in estimate; if it's more, heirarchal nest sub-items into it and sum upwards. This gives a reasonably reliable estimate by forcing you to not handwave.\n\n2) Present the specification to the client. Get the specification agreed on. To that end, it's important that the specification has a detailed view of the functionality offered by the site. For a 3-4 month project, I'd expect a specification to be 70-80 pages (which is easier than it sounds.)\n\n3) Choose a preferred hourly rate. Match it to your hourly specification. Set that as a fixed price for the project. This encourages you to be careful about your specification, and allows the customer to feel safe from cost overruns. Provide the cost breakdown with the price, so that they know where the price comes from, and so that they know changes they request will cost actual money; that helps insulate you from bullshit later on down the line.\n\n4) Offer them a whole bunch of add-on ideas you had as individual prices at the end of the price list. Price them by estimating them and matching them to the same hourly rate. This helps give you and them a \"feel\" for how much changes will cost, gives them the opportunity to inflate their own bill to what they're really willing to pay, lets you plan those extensions in up front, and gives you a better sense of their pricing worldview; further it cements you as the reasonable choice for future extension work.\n\n5) The actual hourly rate is going to be extremely regional. Use salary.com to find the regional rate for your SE rank (up to 3 years' experience is SE I, up to 6 is SE II, up to 9 + BS is SE III, up to 12 and BS is SE IV, up to 15 + MS is SE V), double it, calculate that as an hourly, and that's your regional bell-weather; if you've got a good reputation or are very good for your experience level, you may tweak that upwards if you like. \n\nThe 70-80/hr you used is very likely quite low for the work, unless you're very young.","full_conversation":[{"role":"OP","user_id":"anon_f6df97d43c91569b","comment_id":"bg39x","kind":"post","text":"How much should I charge for a freelance (web) programming project?\n\nHey everyone, sorry to bother you all with such a mundane question but I'll be starting on my first paid freelance job soon and I am wondering how much is a fair price to charge.\n\nI am going to be designing (as in, how the system will work not the visual design) and implementing a website for a translation company that will allow them to manage projects, clients, outsourcing and accounting all through a web-based system. I have implemented a similar system in the past for myself when I thought of starting the same kind of company, but not quite to as much complexity so I am thinking the entire project may take anywhere between 3 and 4 months to complete from planning/design, implementation, testing and final deployment as I am the only coder on the project.\n\nI want to note that the company I'm working with is coming to me specifically and me only because they like some work I did for them in the past and they have no idea how much this type of thing usually costs and they don't really care. They have not specified any specific budget but I want to give them a fair price because I am planning on working more closely with them in the future as well and I am not in it to just make a quick buck off them (but I do want to get paid fairly for my work). Any input would be appreciated.\n\nThank you!\n\nEdit: Thanks for the replies, I just wanted to get an idea of what people charge because the only rates I could find were those from places in India and the like and of course they were ridiculously low. I think I am going to go with a $70-$80 per hour rate and pitch them an estimate from there. Thanks again!","timestamp":"2010-03-21T04:26:24+00:00","score":1},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0o7vuc","kind":"comment","text":"This is several weeks too late. Still, maybe it'll be of use to you in your next project.\n\nMy method:\n\n1) Specify the job. Break every item down until it's four hours or less in estimate; if it's more, heirarchal nest sub-items into it and sum upwards. This gives a reasonably reliable estimate by forcing you to not handwave.\n\n2) Present the specification to the client. Get the specification agreed on. To that end, it's important that the specification has a detailed view of the functionality offered by the site. For a 3-4 month project, I'd expect a specification to be 70-80 pages (which is easier than it sounds.)\n\n3) Choose a preferred hourly rate. Match it to your hourly specification. Set that as a fixed price for the project. This encourages you to be careful about your specification, and allows the customer to feel safe from cost overruns. Provide the cost breakdown with the price, so that they know where the price comes from, and so that they know changes they request will cost actual money; that helps insulate you from bullshit later on down the line.\n\n4) Offer them a whole bunch of add-on ideas you had as individual prices at the end of the price list. Price them by estimating them and matching them to the same hourly rate. This helps give you and them a \"feel\" for how much changes will cost, gives them the opportunity to inflate their own bill to what they're really willing to pay, lets you plan those extensions in up front, and gives you a better sense of their pricing worldview; further it cements you as the reasonable choice for future extension work.\n\n5) The actual hourly rate is going to be extremely regional. Use salary.com to find the regional rate for your SE rank (up to 3 years' experience is SE I, up to 6 is SE II, up to 9 + BS is SE III, up to 12 and BS is SE IV, up to 15 + MS is SE V), double it, calculate that as an hourly, and that's your regional bell-weather; if you've got a good reputation or are very good for your experience level, you may tweak that upwards if you like. \n\nThe 70-80/hr you used is very likely quite low for the work, unless you're very young.","timestamp":"2010-04-16T00:05:33+00:00","score":2},{"role":"OP","user_id":"anon_f6df97d43c91569b","comment_id":"c0oavku","kind":"comment","text":"Thanks for the insight. The project is actually still in the planning stages but I think we have come to a deal on the pricing for now. It wasn't quite as much as I would have liked (seems they do actually have a somewhat limited budget) but I think we are going to end up doing it in a modular fashion so that they can pay for add-ons later as you have suggested. Good information though, thanks a lot!","timestamp":"2010-04-17T06:59:01+00:00","score":1},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0obi4n","kind":"comment","text":"Any time.","timestamp":"2010-04-17T17:45:35+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f6df97d43c91569b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6576462014878bec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0o7vuc","thanks_reply_id":"c0oavku","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_1d3a7ceda6236156","answerer_user_id":"anon_11a6235279054bf7","subreddit":"programming","timestamp":"2010-03-23T12:25:25+00:00","post_id":"bh2je","question":"Is there a way to export your comment history into a text file? There used to be a stats site which could do this. Sure would be handy if you've been posting for awhile.","preferred_answer":"I wrote a script to do this a while ago, but can't seem to find it now, so rewrote it for you. :-) \n\nhttp://gist.github.com/341172\n\nIt's not the smartest beast in the world: It just dumps json output that's the concatenation of the user/comments json API. One should be able to e.g. recreate links to the comments from this, but I've not bothered to do that.","full_conversation":[{"role":"OP","user_id":"anon_1d3a7ceda6236156","comment_id":"bh2je","kind":"post","text":"Is there a way to export your comment history into a text file? There used to be a stats site which could do this. Sure would be handy if you've been posting for awhile.","timestamp":"2010-03-23T12:25:25+00:00","score":0},{"role":"answerer","user_id":"anon_11a6235279054bf7","comment_id":"c0mqer3","kind":"comment","text":"I wrote a script to do this a while ago, but can't seem to find it now, so rewrote it for you. :-) \n\nhttp://gist.github.com/341172\n\nIt's not the smartest beast in the world: It just dumps json output that's the concatenation of the user/comments json API. One should be able to e.g. recreate links to the comments from this, but I've not bothered to do that.","timestamp":"2010-03-23T13:38:49+00:00","score":1},{"role":"OP","user_id":"anon_1d3a7ceda6236156","comment_id":"c0mquf1","kind":"comment","text":"Holy cow. Thank you!","timestamp":"2010-03-23T17:07:45+00:00","score":1},{"role":"answerer","user_id":"anon_11a6235279054bf7","comment_id":"c0mqw5g","kind":"comment","text":"No worries. It took all of ten minutes to write and debug. :-)","timestamp":"2010-03-23T17:27:09+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1d3a7ceda6236156","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_11a6235279054bf7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0mqer3","thanks_reply_id":"c0mquf1","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_7d8351bef856d4b6","answerer_user_id":"anon_efdc6523818a2993","subreddit":"programming","timestamp":"2010-03-23T15:50:25+00:00","post_id":"bh5n4","question":"Linux users: Reddit destroying your sleep schedule?\n\nI created a cron job that I thought might be worth sharing with y'all:\n\n**Script:**\n\n #Redirects reddit.com to localhost anytime between midnight and 8am.\n 0-45/15 0-2 * * * root grep '127.0.0.1 reddit.com' < /etc/hosts &>- || echo '127.0.0.1 reddit.com' >> /etc/hosts\n 0-45/15 8-10 * * * root sed -i '/^127\\\\.0\\\\.0\\\\.1 reddit\\\\.com$/d' /etc/hosts\n\nEdit:\n> For some reason backslash-escaped dots get mangled by the code formatting here. The regex is supposed to be '/^127\\\\.0\\\\.0\\\\.1 reddit\\\\.com$/d'.\n\n**Explanation:**\n\nIn both lines:\n\n* 0-45/15 means \"every 15 minutes\"\n* 0-2 means \"from midnight to 2am\" and 8-10 means \"from 8am to 10am\"\n* the three stars mean \"day of month, month, and day of week are all arbitrary\"\n* root means \"as root user\"\n* in summary: every 15 minutes between midnight and 2:45, the top script will be executed by the root user, while every 15 minutes between 8:00am and 10:45am, the bottom script will be executed by the root user\n\nTop script:\n\n* grep '127.0.0.1 reddit.com' < /etc/hosts means \"find the line '127.0.0.1 reddit.com' in the file /etc/hosts. if it doesn't find the line in the file, it will have an exit status of 1.\n* &>- means \"don't print any output\", but it's probably redundant because we're dealing with a background process\n* || in this case is a conditional. it means \"if the thing on the left has a nonzero (error, not found, etc.) exit status, do the thing on the right\". an analogous programming shortcut is available in most languages\n* echo '127.0.0.1 reddit.com' >> /etc/hosts means \"append the line '127.0.0.1 reddit.com' to the file /etc/hosts\"\n* in summary: this line adds the line '127.0.0.1 reddit.com' to your hosts file, effectively barring you from accessing Reddit (redirecting you to your localhost instead)\n\nBottom script:\n\n* sed -i '/^127\\\\.0\\\\.0\\\\.1 reddit\\\\.com$/d' /etc/hosts means \"modify the file /etc/hosts in place as follows: delete all lines of the form '127.0.0.1 reddit.com'\"\n* in summary: this line removes the line '127.0.0.1 reddit.com' from your hosts file, effectively re-enabling Reddit\n\nThe cron job file is to be saved as a file in the directory /etc/cron.d/. Cron does not have to be restarted.\n\n**Fun Extras:**\n\nA fun thing to do if you host an Apache HTTP server is to create the following virtual host:\n\n \n \tDocumentRoot /var/www/reddit\n \t\n \t\tOptions FollowSymLinks \n \t\tAllowOverride None\n \t\tOrder allow,deny\n \t\tallow from 127.0.0.1\n \t\n \n\nThen, have this HTML under /var/www/reddit/index.html:\n\n \n \n \n \n Don't do it.\n \n \n \n \n

No. Sleep is important.

\n \n \n\nYou will be greeted by that friendly page anytime you try to access reddit past your bedtime.\n\n\n**Caveats:**\n\n* Firefox has a DNS cache that lasts 1440 seconds. You can modify this timeout by going to about:config and creating and setting network.dnsCacheExpiration to some other number of seconds\n* Ubuntu and other Linux distros might have system DNS cache that is used when Firefox's DNS cache is off. The daemons responsible for this might be \"networking\" \"dnsmasq\" or \"nscd\". You'll have to restart them in your script.\n* The cron job will not execute if your computer is off at the scheduled time. That's why I created the time windows with 15 minute intervals; my laptop is always on **some** time around then.\n\nEnjoy getting enough sleep!","preferred_answer":"> &>- means \"don't print any output\", but it's probably redundant because we're dealing with a background process.\n\nIt's not useless in this case: by default any output from a cron job will be mailed to sent to the user by email.\n\nA better way of going about it in this particular case is probably:\n\n grep -q '127.0.0.1 reddit.com' /etc/hosts\n\nI also think you'd be better off preserving the contents of your real /etc/hosts separately and having your script juggle a symlink rather than actually editing your file. I.e., something like\n\n mv /etc/hosts{,.real}\n ln -s /etc/hosts.real /etc/hosts\n\nThen create a script that looks something like this:\n #!/bin/sh\n cp /etc/hosts.real /etc/hosts.redditblocker\n cat <>/etc/hosts.redditblocker\n # This file was generated by $0; any manual changes will be lost!\n # Edits should go in /etc/hosts.real instead.\n # block access to reddit.com\n reddit.com 127.0.0.1\n EOF\n ln -nsf /etc/hosts.redditblocker /etc/hosts\n\nand have your cron job just run that script at night, and ln -nsf /etc/hosts.real /etc/hosts in the morning (and maybe also @reboot, or even just every 15 minutes all day except when you want reddit to be blocked -- overwriting a single symlink isn't exactly expensive after all).","full_conversation":[{"role":"OP","user_id":"anon_7d8351bef856d4b6","comment_id":"bh5n4","kind":"post","text":"Linux users: Reddit destroying your sleep schedule?\n\nI created a cron job that I thought might be worth sharing with y'all:\n\n**Script:**\n\n #Redirects reddit.com to localhost anytime between midnight and 8am.\n 0-45/15 0-2 * * * root grep '127.0.0.1 reddit.com' < /etc/hosts &>- || echo '127.0.0.1 reddit.com' >> /etc/hosts\n 0-45/15 8-10 * * * root sed -i '/^127\\\\.0\\\\.0\\\\.1 reddit\\\\.com$/d' /etc/hosts\n\nEdit:\n> For some reason backslash-escaped dots get mangled by the code formatting here. The regex is supposed to be '/^127\\\\.0\\\\.0\\\\.1 reddit\\\\.com$/d'.\n\n**Explanation:**\n\nIn both lines:\n\n* 0-45/15 means \"every 15 minutes\"\n* 0-2 means \"from midnight to 2am\" and 8-10 means \"from 8am to 10am\"\n* the three stars mean \"day of month, month, and day of week are all arbitrary\"\n* root means \"as root user\"\n* in summary: every 15 minutes between midnight and 2:45, the top script will be executed by the root user, while every 15 minutes between 8:00am and 10:45am, the bottom script will be executed by the root user\n\nTop script:\n\n* grep '127.0.0.1 reddit.com' < /etc/hosts means \"find the line '127.0.0.1 reddit.com' in the file /etc/hosts. if it doesn't find the line in the file, it will have an exit status of 1.\n* &>- means \"don't print any output\", but it's probably redundant because we're dealing with a background process\n* || in this case is a conditional. it means \"if the thing on the left has a nonzero (error, not found, etc.) exit status, do the thing on the right\". an analogous programming shortcut is available in most languages\n* echo '127.0.0.1 reddit.com' >> /etc/hosts means \"append the line '127.0.0.1 reddit.com' to the file /etc/hosts\"\n* in summary: this line adds the line '127.0.0.1 reddit.com' to your hosts file, effectively barring you from accessing Reddit (redirecting you to your localhost instead)\n\nBottom script:\n\n* sed -i '/^127\\\\.0\\\\.0\\\\.1 reddit\\\\.com$/d' /etc/hosts means \"modify the file /etc/hosts in place as follows: delete all lines of the form '127.0.0.1 reddit.com'\"\n* in summary: this line removes the line '127.0.0.1 reddit.com' from your hosts file, effectively re-enabling Reddit\n\nThe cron job file is to be saved as a file in the directory /etc/cron.d/. Cron does not have to be restarted.\n\n**Fun Extras:**\n\nA fun thing to do if you host an Apache HTTP server is to create the following virtual host:\n\n \n \tDocumentRoot /var/www/reddit\n \t\n \t\tOptions FollowSymLinks \n \t\tAllowOverride None\n \t\tOrder allow,deny\n \t\tallow from 127.0.0.1\n \t\n \n\nThen, have this HTML under /var/www/reddit/index.html:\n\n \n \n \n \n Don't do it.\n \n \n \n \n

No. Sleep is important.

\n \n \n\nYou will be greeted by that friendly page anytime you try to access reddit past your bedtime.\n\n\n**Caveats:**\n\n* Firefox has a DNS cache that lasts 1440 seconds. You can modify this timeout by going to about:config and creating and setting network.dnsCacheExpiration to some other number of seconds\n* Ubuntu and other Linux distros might have system DNS cache that is used when Firefox's DNS cache is off. The daemons responsible for this might be \"networking\" \"dnsmasq\" or \"nscd\". You'll have to restart them in your script.\n* The cron job will not execute if your computer is off at the scheduled time. That's why I created the time windows with 15 minute intervals; my laptop is always on **some** time around then.\n\nEnjoy getting enough sleep!","timestamp":"2010-03-23T15:50:25+00:00","score":19},{"role":"answerer","user_id":"anon_efdc6523818a2993","comment_id":"c0msepv","kind":"comment","text":"> &>- means \"don't print any output\", but it's probably redundant because we're dealing with a background process.\n\nIt's not useless in this case: by default any output from a cron job will be mailed to sent to the user by email.\n\nA better way of going about it in this particular case is probably:\n\n grep -q '127.0.0.1 reddit.com' /etc/hosts\n\nI also think you'd be better off preserving the contents of your real /etc/hosts separately and having your script juggle a symlink rather than actually editing your file. I.e., something like\n\n mv /etc/hosts{,.real}\n ln -s /etc/hosts.real /etc/hosts\n\nThen create a script that looks something like this:\n #!/bin/sh\n cp /etc/hosts.real /etc/hosts.redditblocker\n cat <>/etc/hosts.redditblocker\n # This file was generated by $0; any manual changes will be lost!\n # Edits should go in /etc/hosts.real instead.\n # block access to reddit.com\n reddit.com 127.0.0.1\n EOF\n ln -nsf /etc/hosts.redditblocker /etc/hosts\n\nand have your cron job just run that script at night, and ln -nsf /etc/hosts.real /etc/hosts in the morning (and maybe also @reboot, or even just every 15 minutes all day except when you want reddit to be blocked -- overwriting a single symlink isn't exactly expensive after all).","timestamp":"2010-03-24T04:46:59+00:00","score":3},{"role":"OP","user_id":"anon_7d8351bef856d4b6","comment_id":"c0mte24","kind":"comment","text":"I love proggit. So much programming insight. I didn't know about grep -q, thanks! While the symlink idea is definitely more efficient, it poses some difficulties if I frequently modify my hosts file; I will now have to make changes to both of them. However, by creating scripts for modifying my hosts file instead of modifying it directly, or with a bit of diffing and patching, this process can be fairly automatic.","timestamp":"2010-03-24T18:17:00+00:00","score":1},{"role":"answerer","user_id":"anon_efdc6523818a2993","comment_id":"c0mukht","kind":"comment","text":"Actually my suggestion was to have the script copy /etc/hosts.real to /etc/hosts.redditblocker and then append (notice the `>>`) the extra stuff. So as long as you make all your edits to /etc/hosts.real (which means that during the day, you can just edit /etc/hosts), you'll be fine; you don't have to maintain 2 separate copies.","timestamp":"2010-03-25T03:36:59+00:00","score":1},{"role":"OP","user_id":"anon_7d8351bef856d4b6","comment_id":"c0mxgwg","kind":"comment","text":"Didn't catch that; my bad. I like that idea.","timestamp":"2010-03-26T07:26:06+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7d8351bef856d4b6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_efdc6523818a2993","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0msepv","thanks_reply_id":"c0mte24","post_score":19,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_affab9e2e7822348","answerer_user_id":"anon_f7bb1f068cd261bc","subreddit":"programming","timestamp":"2010-04-04T23:25:17+00:00","post_id":"bmf38","question":"Has someone integrated reddit comments with their own blog?\n\nI would like to integrate reddit comments into my blogger blog. I.e. comments posted on reddit are cross posted onto my blog's comments and vice versa. Has someone managed to do this via the API?","preferred_answer":"posting back from the blog to reddit would require them to give you login credentials. The api has no form of oauth or any other authentication that would allow this.\n\nbut yes its possible. you could have your accnt post anonymous (comments without reddit logins) but then your venturing into spamming reddit. \n\nbut yes its possible. to get comments on from a reddit post you can parse the html (lame) or just attach .json or .xml to the end of a url and there you go. just loop through and render what you want.\n\nthe json comment log for this post is\n\nhttp://www.reddit.com/r/programming/comments/bmf38/has_someone_integrated_reddit_comments_with_their/.json","full_conversation":[{"role":"OP","user_id":"anon_affab9e2e7822348","comment_id":"bmf38","kind":"post","text":"Has someone integrated reddit comments with their own blog?\n\nI would like to integrate reddit comments into my blogger blog. I.e. comments posted on reddit are cross posted onto my blog's comments and vice versa. Has someone managed to do this via the API?","timestamp":"2010-04-04T23:25:17+00:00","score":0},{"role":"answerer","user_id":"anon_f7bb1f068cd261bc","comment_id":"c0nhm28","kind":"comment","text":"posting back from the blog to reddit would require them to give you login credentials. The api has no form of oauth or any other authentication that would allow this.\n\nbut yes its possible. you could have your accnt post anonymous (comments without reddit logins) but then your venturing into spamming reddit. \n\nbut yes its possible. to get comments on from a reddit post you can parse the html (lame) or just attach .json or .xml to the end of a url and there you go. just loop through and render what you want.\n\nthe json comment log for this post is\n\nhttp://www.reddit.com/r/programming/comments/bmf38/has_someone_integrated_reddit_comments_with_their/.json","timestamp":"2010-04-05T00:27:50+00:00","score":2},{"role":"OP","user_id":"anon_affab9e2e7822348","comment_id":"c0nhs5m","kind":"comment","text":"Thanks 4 the info. I've coded a js snippet that gets all the comments (though they are truncated at around 140 chars). \n\nAccording to the Reddit API source, it seems there is a function for creating a user account:\n\n def POST_register(self, form, jquery, name, email,password, dest, rem, reason):\n #http://code.reddit.com/browser/r2/r2/controllers/api.py\n\nHas anyone tried creating an account through the API?","timestamp":"2010-04-05T02:05:50+00:00","score":1},{"role":"answerer","user_id":"anon_f7bb1f068cd261bc","comment_id":"c0nip5g","kind":"comment","text":"would you want to create an acct for each post?","timestamp":"2010-04-05T15:18:49+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_affab9e2e7822348","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f7bb1f068cd261bc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0nhm28","thanks_reply_id":"c0nhs5m","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_36ce48d59dd1c4e7","answerer_user_id":"anon_d59e2ed5088b05d2","subreddit":"programming","timestamp":"2010-04-08T18:26:21+00:00","post_id":"bo9y3","question":"Any ideas for a VRML-based virtual world, reddit?\n\nSomehow I'm supposed to create a virtual, autonomous world for next week (school assignment). However, it has to be based on the very obsolete VRML, which is now long dead, so no community, no online ressources. On the plus side, VRML is scripted with javascript. Any ideas for a reasonably interesting virtual world which would not involve complex animations?\n\nEDIT: I found the assignment paper under my bed. Turns out it's much more detailed than I remembered it, there must be:\n\n* a common theme\n* several autonomous characters, possibly non-human\n* several buildings\n* day/night cycle\n* user interactions (move objects)\n\nSo, if you know of any good 3D VRML models (cars, characters, buildings, everyday life objects) or have some tips, please tell me!","preferred_answer":"Make a moonbase filled with zombies where your day/night cycle is given by slow rotations around a Saturn-like gas giant. \n\nPotential benefits: \n\n- Most things will be shaped simply, since it's the interior of a building.\n- Can scale up the complexity of the world easily by adding more modules to the base, just as a real base would grow over time, if you have extra time to devote to it once the core is built.\n- Trivial explanation for why you cannot go outside...\n- You can build puzzles out of broken access computers, repairs, etc. for some added spice or to flesh out your user interactions.\n- You can keep the lab flat, and it won't be too jarring to the player. This could simplify movement calculation greatly.","full_conversation":[{"role":"OP","user_id":"anon_36ce48d59dd1c4e7","comment_id":"bo9y3","kind":"post","text":"Any ideas for a VRML-based virtual world, reddit?\n\nSomehow I'm supposed to create a virtual, autonomous world for next week (school assignment). However, it has to be based on the very obsolete VRML, which is now long dead, so no community, no online ressources. On the plus side, VRML is scripted with javascript. Any ideas for a reasonably interesting virtual world which would not involve complex animations?\n\nEDIT: I found the assignment paper under my bed. Turns out it's much more detailed than I remembered it, there must be:\n\n* a common theme\n* several autonomous characters, possibly non-human\n* several buildings\n* day/night cycle\n* user interactions (move objects)\n\nSo, if you know of any good 3D VRML models (cars, characters, buildings, everyday life objects) or have some tips, please tell me!","timestamp":"2010-04-08T18:26:21+00:00","score":3},{"role":"answerer","user_id":"anon_d59e2ed5088b05d2","comment_id":"c0nqylh","kind":"comment","text":"Make a moonbase filled with zombies where your day/night cycle is given by slow rotations around a Saturn-like gas giant. \n\nPotential benefits: \n\n- Most things will be shaped simply, since it's the interior of a building.\n- Can scale up the complexity of the world easily by adding more modules to the base, just as a real base would grow over time, if you have extra time to devote to it once the core is built.\n- Trivial explanation for why you cannot go outside...\n- You can build puzzles out of broken access computers, repairs, etc. for some added spice or to flesh out your user interactions.\n- You can keep the lab flat, and it won't be too jarring to the player. This could simplify movement calculation greatly.","timestamp":"2010-04-08T21:04:43+00:00","score":5},{"role":"OP","user_id":"anon_36ce48d59dd1c4e7","comment_id":"c0nr123","kind":"comment","text":"Great ideas, thank you very much! I'll keep you updated with my progress on this :)","timestamp":"2010-04-08T21:32:01+00:00","score":1},{"role":"answerer","user_id":"anon_d59e2ed5088b05d2","comment_id":"c0ombf9","kind":"comment","text":"So... what happened to it?","timestamp":"2010-04-22T10:52:18+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_36ce48d59dd1c4e7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d59e2ed5088b05d2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0nqylh","thanks_reply_id":"c0nr123","post_score":3,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_8356d403df3b2e02","answerer_user_id":"anon_5df1008403daaef6","subreddit":"programming","timestamp":"2010-04-09T20:26:37+00:00","post_id":"both0","question":"Is polymorphism always the answer? Sometimes it might be better just to write a single function with a big switch statement","preferred_answer":"> Will someone please tell me what obvious idea I am missing?\n\nThe [visitor pattern](http://en.wikipedia.org/wiki/Visitor_pattern). Implement the visitor pattern on your node types:\n\n class Node {\n public abstract T Accept(INodeVisitor visitor);\n }\n\n class AndNode {\n public override T Accept(INodeVisitor visitor) {\n visitor.Visit(this);\n }\n }\n\n class OrNode {\n public override T Accept(INodeVisitor visitor) {\n visitor.Visit(this);\n }\n }\n\n class TermNode {\n public override T Accept(INodeVisitor visitor) {\n visitor.Visit(this);\n }\n }\n\n interface INodeVisitor {\n T Visit(AndNode node);\n T Visit(OrNode node);\n T Visit(TermNode node);\n }\n\nNow your conversions can be a visitor:\n\n class PqfConverter : INodeVisitor {\n public string Visit(AndNode node) {\n return \"@and \" + node.Left.Accept(this) + \" \" + node.Right.Accept(this);\n }\n \n public string Visit(OrNode node) {\n return \"@or \" + node.Left.Accept(this) + \" \" + node.Right.Accept(this);\n }\n \n public string Visit(TermNode node) {\n return node.ToString();\n }\n }\n\n**Pros:**\n\n* The core node classes are decoupled from your conversions. They become pure data model.\n* You can add new visitor types without touching the node classes. In effect, you can add new abstract methods to Node.\n* Adding a new Node subclass will cause a compile error in your visitors, so you can't forget to support the new node type like you could with a switch.\n* All of the code for a given operation (i.e. converting to PQF) is kept together.\n\n**Cons:**\n\n* Adding a new Node subclass requires touching every visitor class.\n* Kind of complex and weird if you aren't used to it.\n\nThe first con is the heart of the [expression problem](http://en.wikipedia.org/wiki/Expression_Problem) which most languages as far as I know don't have a clean solution for. OOP languages make it easy to add new cases (subclasses) without touching existing code. Functional languages make it easy to add new operations on the existing cases. Neither handles the opposite well.\n\nYou can visualize it as your cases as rows in a table and the operations as columns:\n\n ToPQF ToCQL\n AndNode code code\n OrNode code code\n TermNode code code\n \nFunctional languages and the visitor pattern in OOP languages keep all of the code for a column together. This makes adding a column easy. Virtual methods keep the code for a row together, which makes adding a row easy. No language makes adding *either* easy because it raises the question of who owns the *corner* piece:\n\n ToPQF ToCQL ToFoo\n AndNode code code ||||\n OrNode code code ||||\n TermNode code code ||||\n BarNode ---- ---- ????\n \nWhere does ToFoo for BarNode go? Unless it can go all by its lonesome, you're going to have to touch some existing code: either the code that handles other operations or the code that handles other nodes.\n\nIf you're curious, you can see a bigger example of the visitor pattern in use [here](http://bitbucket.org/munificent/magpie/src/b5afc606b510/csharp/Magpie.Compilation/Compiler/FunctionBinder.cs). It's pretty much essential if you're implementing an interpreter or compiler in an OOP language.","full_conversation":[{"role":"OP","user_id":"anon_8356d403df3b2e02","comment_id":"both0","kind":"post","text":"Is polymorphism always the answer? Sometimes it might be better just to write a single function with a big switch statement","timestamp":"2010-04-09T20:26:37+00:00","score":29},{"role":"answerer","user_id":"anon_5df1008403daaef6","comment_id":"c0ntnl6","kind":"comment","text":"> Will someone please tell me what obvious idea I am missing?\n\nThe [visitor pattern](http://en.wikipedia.org/wiki/Visitor_pattern). Implement the visitor pattern on your node types:\n\n class Node {\n public abstract T Accept(INodeVisitor visitor);\n }\n\n class AndNode {\n public override T Accept(INodeVisitor visitor) {\n visitor.Visit(this);\n }\n }\n\n class OrNode {\n public override T Accept(INodeVisitor visitor) {\n visitor.Visit(this);\n }\n }\n\n class TermNode {\n public override T Accept(INodeVisitor visitor) {\n visitor.Visit(this);\n }\n }\n\n interface INodeVisitor {\n T Visit(AndNode node);\n T Visit(OrNode node);\n T Visit(TermNode node);\n }\n\nNow your conversions can be a visitor:\n\n class PqfConverter : INodeVisitor {\n public string Visit(AndNode node) {\n return \"@and \" + node.Left.Accept(this) + \" \" + node.Right.Accept(this);\n }\n \n public string Visit(OrNode node) {\n return \"@or \" + node.Left.Accept(this) + \" \" + node.Right.Accept(this);\n }\n \n public string Visit(TermNode node) {\n return node.ToString();\n }\n }\n\n**Pros:**\n\n* The core node classes are decoupled from your conversions. They become pure data model.\n* You can add new visitor types without touching the node classes. In effect, you can add new abstract methods to Node.\n* Adding a new Node subclass will cause a compile error in your visitors, so you can't forget to support the new node type like you could with a switch.\n* All of the code for a given operation (i.e. converting to PQF) is kept together.\n\n**Cons:**\n\n* Adding a new Node subclass requires touching every visitor class.\n* Kind of complex and weird if you aren't used to it.\n\nThe first con is the heart of the [expression problem](http://en.wikipedia.org/wiki/Expression_Problem) which most languages as far as I know don't have a clean solution for. OOP languages make it easy to add new cases (subclasses) without touching existing code. Functional languages make it easy to add new operations on the existing cases. Neither handles the opposite well.\n\nYou can visualize it as your cases as rows in a table and the operations as columns:\n\n ToPQF ToCQL\n AndNode code code\n OrNode code code\n TermNode code code\n \nFunctional languages and the visitor pattern in OOP languages keep all of the code for a column together. This makes adding a column easy. Virtual methods keep the code for a row together, which makes adding a row easy. No language makes adding *either* easy because it raises the question of who owns the *corner* piece:\n\n ToPQF ToCQL ToFoo\n AndNode code code ||||\n OrNode code code ||||\n TermNode code code ||||\n BarNode ---- ---- ????\n \nWhere does ToFoo for BarNode go? Unless it can go all by its lonesome, you're going to have to touch some existing code: either the code that handles other operations or the code that handles other nodes.\n\nIf you're curious, you can see a bigger example of the visitor pattern in use [here](http://bitbucket.org/munificent/magpie/src/b5afc606b510/csharp/Magpie.Compilation/Compiler/FunctionBinder.cs). It's pretty much essential if you're implementing an interpreter or compiler in an OOP language.","timestamp":"2010-04-09T21:15:51+00:00","score":34},{"role":"OP","user_id":"anon_8356d403df3b2e02","comment_id":"c0ntq1x","kind":"comment","text":"Thanks, munificent, for your very clear exposition of Visitor, and also for the little matrix diagrams at the end that I am now kicking myself for not having included in the original article.\n\nI've updated that article to include a link to your comment.","timestamp":"2010-04-09T21:44:47+00:00","score":7},{"role":"answerer","user_id":"anon_5df1008403daaef6","comment_id":"c0nu80k","kind":"comment","text":"Thanks!","timestamp":"2010-04-10T02:14:58+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8356d403df3b2e02","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5df1008403daaef6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ntnl6","thanks_reply_id":"c0ntq1x","post_score":29,"answer_score":34,"preferred_answer_is_top_level":true}} {"user_id":"anon_5f88bb765f6d037c","answerer_user_id":"anon_6c2a91ea557989e5","subreddit":"programming","timestamp":"2010-04-15T13:52:22+00:00","post_id":"braqu","question":"what do you guys think about Erlang ?","preferred_answer":"I tried erlang for a software project in medical field approximately two years ago and had to abandon it for reasons that were not immediately obvious for me when the project was started: weird immutable variables, mnesia worked great until db was corrupted for some reason and then woah: 40 minutes offline recovery had to be done, also mnesia db's were limited in size to (if i remeber right) 1gb or something like that, odbc bridge functionality was severely limited not allowing streaming of the resultsets, web servers/fameworks lacked essential functionality and decent templating system and so on. maybe erlang has been imrpoved since then (there was very active community). my point is: beware of the downside and search for blog posts tagged \"erlang sucks\", \"what i hate about erlang\" and similiar before you decide to invest significant amount of time in learning the language and toolset. if i did that back then i probably would have discovered most of the problems before spending that much time writing my application. just my 2c and sorry for bad english (europe, not my primary language)","full_conversation":[{"role":"OP","user_id":"anon_5f88bb765f6d037c","comment_id":"braqu","kind":"post","text":"what do you guys think about Erlang ?","timestamp":"2010-04-15T13:52:22+00:00","score":17},{"role":"answerer","user_id":"anon_6c2a91ea557989e5","comment_id":"c0o6rbv","kind":"comment","text":"I tried erlang for a software project in medical field approximately two years ago and had to abandon it for reasons that were not immediately obvious for me when the project was started: weird immutable variables, mnesia worked great until db was corrupted for some reason and then woah: 40 minutes offline recovery had to be done, also mnesia db's were limited in size to (if i remeber right) 1gb or something like that, odbc bridge functionality was severely limited not allowing streaming of the resultsets, web servers/fameworks lacked essential functionality and decent templating system and so on. maybe erlang has been imrpoved since then (there was very active community). my point is: beware of the downside and search for blog posts tagged \"erlang sucks\", \"what i hate about erlang\" and similiar before you decide to invest significant amount of time in learning the language and toolset. if i did that back then i probably would have discovered most of the problems before spending that much time writing my application. just my 2c and sorry for bad english (europe, not my primary language)","timestamp":"2010-04-15T15:37:36+00:00","score":1},{"role":"OP","user_id":"anon_5f88bb765f6d037c","comment_id":"c0o6u3q","kind":"comment","text":"Thats some help ful advice.\nThanks.","timestamp":"2010-04-15T16:08:54+00:00","score":1},{"role":"answerer","user_id":"anon_6c2a91ea557989e5","comment_id":"c0o6wmm","kind":"comment","text":"just did a quick search to review how the language and libraries evolved over the last 2 years. personally, i will not recomment erlang unless your project will masively benefit from erlang's built-in parallelism. i understand that my opinion is contrary to opinions of most redditors - but then again, erlang is relatively old language and there are very few real world applications written in it (outside of telecom field). there is probably a reason for that ...","timestamp":"2010-04-15T16:37:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5f88bb765f6d037c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6c2a91ea557989e5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0o6rbv","thanks_reply_id":"c0o6u3q","post_score":17,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_5533f7381acaa51d","answerer_user_id":"anon_f94c00ed2754ee88","subreddit":"programming","timestamp":"2010-04-16T13:22:22+00:00","post_id":"brt1w","question":"Is it because windows is most popular and used by many users, you find these crazy people deploying all kinds of malware/viruser/trojans to that os? or is the os just vulnerable?\n\nRegarding the recent [rootkit!](http://news.bbc.co.uk/2/hi/technology/8624560.stm) malware and about how windows cannot complete installation with its security update for pc's infected by this malware, I was wondering if these kind's of things happen with windows?\n\nI never see any mainstream news about any machine running linux or mac getting infected?\n\nMay be all these people work on hacking pc's not other os's?\n\nInsight please....","preferred_answer":"Person uses a virus to take control of 1 million machines. They can e.g.\n\n- use the machines to send spam to make money\n\n- set up a fake bank websites on some machines, use the other machines to spam other machines telling them to \"log in and check your account!\" then collect bank login details\n\n- threaten betting websites for money using denial of service attacks \n\nLoads of things.","full_conversation":[{"role":"OP","user_id":"anon_5533f7381acaa51d","comment_id":"brt1w","kind":"post","text":"Is it because windows is most popular and used by many users, you find these crazy people deploying all kinds of malware/viruser/trojans to that os? or is the os just vulnerable?\n\nRegarding the recent [rootkit!](http://news.bbc.co.uk/2/hi/technology/8624560.stm) malware and about how windows cannot complete installation with its security update for pc's infected by this malware, I was wondering if these kind's of things happen with windows?\n\nI never see any mainstream news about any machine running linux or mac getting infected?\n\nMay be all these people work on hacking pc's not other os's?\n\nInsight please....","timestamp":"2010-04-16T13:22:22+00:00","score":0},{"role":"answerer","user_id":"anon_f94c00ed2754ee88","comment_id":"c0o8z5u","kind":"comment","text":"Person uses a virus to take control of 1 million machines. They can e.g.\n\n- use the machines to send spam to make money\n\n- set up a fake bank websites on some machines, use the other machines to spam other machines telling them to \"log in and check your account!\" then collect bank login details\n\n- threaten betting websites for money using denial of service attacks \n\nLoads of things.","timestamp":"2010-04-16T13:48:44+00:00","score":2},{"role":"OP","user_id":"anon_5533f7381acaa51d","comment_id":"c0o90hr","kind":"comment","text":"thank you...damn lot of tech geeks here.....makes me look illiterate :) lot to learn ::)","timestamp":"2010-04-16T14:10:04+00:00","score":1},{"role":"answerer","user_id":"anon_f94c00ed2754ee88","comment_id":"c0o90vx","kind":"comment","text":"The main deal with virus infected machines is you can use their processing power to do things for you to make you money and they also give you a launch point for illegal activity where it's hard to trace it back to you. I don't like virus writers, but some of the stuff they come up with to make money is pretty ingenious.\n\nOne member of my family told me ages ago he bought a copy of MS Office online and I told him MS don't offer that anywhere. Turns out crackers installed a fake shop on an infected computer and spammed ads for people to visit the shop. It actually worked as a shop though, you entered your credit card number and got to download the program so the person never even knew they just bought illegal software.","timestamp":"2010-04-16T14:16:13+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5533f7381acaa51d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f94c00ed2754ee88","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0o8z5u","thanks_reply_id":"c0o90hr","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_524ee4693b6a4982","answerer_user_id":"anon_c24481f49831a810","subreddit":"programming","timestamp":"2010-04-17T16:24:06+00:00","post_id":"bsc0v","question":"iPad devs: Can you make applications that are \"private\" or not for distribution on iTunes?","preferred_answer":"Sort of, but not really. Officially, you have three choices:\n\n1. Personal developer submitting apps to the app store. ($99/year)\n2. Corporation submitting apps to the app store. ($99/year)\n3. Corporation developing apps for internal use. ($299/year)\n\nThe way app distribution works is that you have to sign each app with a key that allows an individual phone to run it. Submitting to the app store takes care of this, but if you want to bypass the store, you're stuck doing it on your own. You can get the UDID number from someone's phone, generate a signing key that includes that device, and build a version that runs on that phone. But, you're limited to 100 devices for that key. Theoretically, you could do it, but it would be extremely manual, and these keys expire regularly.\n\nOption #3 does what you'd want, (basically gives you signing keys that allow apps to run on any device) but it's extremely locked down. You have to have more than 500 employees in your company, and you have to submit proof of that (Dunn & Bradstreet number, I think).\n\nThe short version is, \"Sort of\" if you're planning on giving it to a couple of dozen people. \"No\" otherwise.\n\nEdit: I've simplified the descriptions a bit to avoid the confusion of talking about things in Apple's terminology (certificates vs. appids vs. provisioning profiles), but the basic idea is correct.","full_conversation":[{"role":"OP","user_id":"anon_524ee4693b6a4982","comment_id":"bsc0v","kind":"post","text":"iPad devs: Can you make applications that are \"private\" or not for distribution on iTunes?","timestamp":"2010-04-17T16:24:06+00:00","score":9},{"role":"answerer","user_id":"anon_c24481f49831a810","comment_id":"c0obeb1","kind":"comment","text":"Sort of, but not really. Officially, you have three choices:\n\n1. Personal developer submitting apps to the app store. ($99/year)\n2. Corporation submitting apps to the app store. ($99/year)\n3. Corporation developing apps for internal use. ($299/year)\n\nThe way app distribution works is that you have to sign each app with a key that allows an individual phone to run it. Submitting to the app store takes care of this, but if you want to bypass the store, you're stuck doing it on your own. You can get the UDID number from someone's phone, generate a signing key that includes that device, and build a version that runs on that phone. But, you're limited to 100 devices for that key. Theoretically, you could do it, but it would be extremely manual, and these keys expire regularly.\n\nOption #3 does what you'd want, (basically gives you signing keys that allow apps to run on any device) but it's extremely locked down. You have to have more than 500 employees in your company, and you have to submit proof of that (Dunn & Bradstreet number, I think).\n\nThe short version is, \"Sort of\" if you're planning on giving it to a couple of dozen people. \"No\" otherwise.\n\nEdit: I've simplified the descriptions a bit to avoid the confusion of talking about things in Apple's terminology (certificates vs. appids vs. provisioning profiles), but the basic idea is correct.","timestamp":"2010-04-17T16:39:57+00:00","score":7},{"role":"OP","user_id":"anon_524ee4693b6a4982","comment_id":"c0obeme","kind":"comment","text":"Gotcha, and thank you.\n\nI'm looking to hire a developer to create an iPad application that does simple graphics manipulation (like MS Visio lite, lite, lite). Basically need to create basic room shapes and manipulate a set of 15 to 20 \"blocks\" around the screen.\n\nI would only want to distribute it to 'one' person (me) but it might have a small need for others in the same industry (1200 or so ppl).\n\nAs a follow up, from my description, where do you think that I should look / post to hire such an individual?","timestamp":"2010-04-17T16:46:01+00:00","score":1},{"role":"answerer","user_id":"anon_c24481f49831a810","comment_id":"c0obo4d","kind":"comment","text":"It doesn't sound like you need to restrict access, as I don't think there's any proprietary data involved. You could just put it on the app store. If you do need to restrict users, you can do what swiddie suggested and make it require a user account on launch. You can then control who gets an account.\n\n> As a follow up, from my description, where do you think that I should look / post to hire such an individual?\n\nDepends on how much you're willing to spend. From your description, it sounds more like a personal itch than something you're planning to make money with, which I'm guessing means that you aren't going to want to pay professional prices. If you are, there are probably lots of options. There's a company called Spotlight Mobile that I'm familiar with from the excellent Barnes & Noble app they did. Googling for \"iphone development companies\" gets lots of hits.\n\nMy guess is just about any decent company is going to put you well into the thousands of dollars. It's hard to say without knowing all the details, but assuming it's a week of work for a developer making $50/hour, that's $2000, and my estimates of both time and wages are almost certainly low for reputable companies. You could contact one and get a quote, but it doesn't sound like it's a realistic option for you.\n\nThere are cheaper options, but I'm guessing there's a bit of a gold rush around the app store, and it's probably brought out a lot of people who are not very qualified to advertise themselves as iphone developers for hire. It's certainly possible to get a good one, but if you don't have someone knowledgeable about programming to interview them, I'd be nervous.\n\nAnother option is to find the nearest decent university. Quality certainly isn't guaranteed, but students often need internships or side jobs. Faculty members can often help to serve as that \"interviewer\" role by recommending students they know to be good. In the absence of tons of money to throw at the problem, it's at least worth a look.","timestamp":"2010-04-17T19:30:58+00:00","score":3},{"role":"OP","user_id":"anon_524ee4693b6a4982","comment_id":"c0obwkx","kind":"comment","text":"I don't mind dropping a couple of grand into it and as such will take a look at the professional companies. That being said, if there are any freelance devs that are interested, please sand me a PM and I will respond with more details. \n\nThanks to all for the thoughtful, informative replies!","timestamp":"2010-04-17T22:02:19+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_524ee4693b6a4982","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c24481f49831a810","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0obeb1","thanks_reply_id":"c0obeme","post_score":9,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_8b7d76da56cbfc7e","answerer_user_id":"anon_6576462014878bec","subreddit":"programming","timestamp":"2010-04-23T15:51:55+00:00","post_id":"bv6eo","question":"What programming language do you think would be best to control equipment?\n\nI work in a lab and increasingly find it would be useful to be able to remotely control the equipment I work with (like lasers, oscilloscopes, stages, amplifiers, etc.), and create programs that tell it what to do. Normally this kind of thing is done in labview, but I'd like to create my own programs. I have experience programming, but not a ton and I don't know a lot about dealing with drivers. \n\n(tl;dr)\nSo the question is, what is the best language to deal with drivers and equipment like this?","preferred_answer":"This is explicitly what Tool Command Language is for, you know.\n\n----\nEdit: fixed typo.","full_conversation":[{"role":"OP","user_id":"anon_8b7d76da56cbfc7e","comment_id":"bv6eo","kind":"post","text":"What programming language do you think would be best to control equipment?\n\nI work in a lab and increasingly find it would be useful to be able to remotely control the equipment I work with (like lasers, oscilloscopes, stages, amplifiers, etc.), and create programs that tell it what to do. Normally this kind of thing is done in labview, but I'd like to create my own programs. I have experience programming, but not a ton and I don't know a lot about dealing with drivers. \n\n(tl;dr)\nSo the question is, what is the best language to deal with drivers and equipment like this?","timestamp":"2010-04-23T15:51:55+00:00","score":0},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0oxhnb","kind":"comment","text":"This is explicitly what Tool Command Language is for, you know.\n\n----\nEdit: fixed typo.","timestamp":"2010-04-27T06:13:26+00:00","score":2},{"role":"OP","user_id":"anon_8b7d76da56cbfc7e","comment_id":"c0p3wix","kind":"comment","text":"Never heard of it... I'll look it up though, thanks.","timestamp":"2010-04-29T18:21:39+00:00","score":1},{"role":"answerer","user_id":"anon_6576462014878bec","comment_id":"c0p4x71","kind":"comment","text":"Many people think it's called TCL/TK. TK is to TCL what the STL is to C++, or what OTP is to Erlang, or etc.","timestamp":"2010-04-30T01:03:35+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8b7d76da56cbfc7e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6576462014878bec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0oxhnb","thanks_reply_id":"c0p3wix","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_b0b7dd1c264a3270","answerer_user_id":"anon_67bc484430fe87ba","subreddit":"programming","timestamp":"2010-04-25T22:56:20+00:00","post_id":"bvz9w","question":"Does anyone know how to convert a map image to KML data to import to Google Maps?\n\nthe image I'm aiming to do is here: [Early Localization of Native Americans in USA](http://upload.wikimedia.org/wikipedia/commons/a/aa/Early_Localization_Native_Americans_USA.jpg)\n\nAnd to be more clear, in case I'm not, here is what I want:\n\n* A google map\n* zones which are sectioned \n* to tell me what tribes lived near my destination of choice\n\nI appreciate tutorial links too if you know anyone who has done this, though I was curious if any redditors have.\n\nThanks!","preferred_answer":"There are a bunch of options.\n\nFirst, as fiskfisk says, you could align the image. That's not going to be that great unless you first warp the image (technically it is called a rubbersheet) to fit the projection used in Google Maps. Even then it has the disadvantage of being an opaque, distorted layer.\n\nSecond, you can load it into a GIS, assign coordinates to the image, rubbersheet it, then vectorize it. The simplest way to do it with this kind of level-of-detail would be to just do it heads-up, on screen. Probably take an hour and a half or so. In ArcGIS, for example, this is a simple but rather boring task. Unfortunately, while there are free GIS tools, none of them are that easy to use or nearly as powerful as Arc is. Of course, Arc costs as much as a car if you get the full package.\n\nThere are also autotracers (in a lot of GIS tools) that will trace some of the lines. Personally I find these not worth the trouble for small jobs as they tend to get 'confused' by overlaid lettering etc. \n\nIf you have no other options let me know and I'll see about getting this done. But not if you are in a rush, it is silly season for profs right now and marking is consuming all my time.","full_conversation":[{"role":"OP","user_id":"anon_b0b7dd1c264a3270","comment_id":"bvz9w","kind":"post","text":"Does anyone know how to convert a map image to KML data to import to Google Maps?\n\nthe image I'm aiming to do is here: [Early Localization of Native Americans in USA](http://upload.wikimedia.org/wikipedia/commons/a/aa/Early_Localization_Native_Americans_USA.jpg)\n\nAnd to be more clear, in case I'm not, here is what I want:\n\n* A google map\n* zones which are sectioned \n* to tell me what tribes lived near my destination of choice\n\nI appreciate tutorial links too if you know anyone who has done this, though I was curious if any redditors have.\n\nThanks!","timestamp":"2010-04-25T22:56:20+00:00","score":1},{"role":"answerer","user_id":"anon_67bc484430fe87ba","comment_id":"c0oueqp","kind":"comment","text":"There are a bunch of options.\n\nFirst, as fiskfisk says, you could align the image. That's not going to be that great unless you first warp the image (technically it is called a rubbersheet) to fit the projection used in Google Maps. Even then it has the disadvantage of being an opaque, distorted layer.\n\nSecond, you can load it into a GIS, assign coordinates to the image, rubbersheet it, then vectorize it. The simplest way to do it with this kind of level-of-detail would be to just do it heads-up, on screen. Probably take an hour and a half or so. In ArcGIS, for example, this is a simple but rather boring task. Unfortunately, while there are free GIS tools, none of them are that easy to use or nearly as powerful as Arc is. Of course, Arc costs as much as a car if you get the full package.\n\nThere are also autotracers (in a lot of GIS tools) that will trace some of the lines. Personally I find these not worth the trouble for small jobs as they tend to get 'confused' by overlaid lettering etc. \n\nIf you have no other options let me know and I'll see about getting this done. But not if you are in a rush, it is silly season for profs right now and marking is consuming all my time.","timestamp":"2010-04-26T00:01:33+00:00","score":3},{"role":"OP","user_id":"anon_b0b7dd1c264a3270","comment_id":"c0ouv5j","kind":"comment","text":"thanks for this, it gives me some good google search/jargony words. I'll see if I can find any autotracers or GIS programs which I get lucky in and let you know.","timestamp":"2010-04-26T04:20:53+00:00","score":1},{"role":"answerer","user_id":"anon_67bc484430fe87ba","comment_id":"c0ove9d","kind":"comment","text":"Years ago there was a free one from the United Nations that ran on Windows (may have been pre XP) that was pretty good. \n\nHere are the steps, (though there are always different ways to do things).\n\n1) import image\n\n2) give image coordinates (usually by assigning specific pixels real world coordinates, and you will need a lot... 20-30 is best, well distributed)\n\n3) use coordinates to warp image to the desired coordinate system\n\n4) load resulting geometrically-suitable image into a package that supports digitizing / autotracing\n\n5) digitize / autotrace outlines and/or polys (if you do outlines, you put a point in each with desired attributes for the eventual polygon. if you do polygons, you just attribute the polygon).\n\n6) check for errors\n\n7) transform to KML\n\nYou can also do this in Google Earth by getting the image aligned (not easy in GE) and drawing polys in GE. It works, as fiskfisk says, but it is a pain because GE doesn't have solid tools for image rubersheeting.\n\nNote that you can also digitize on the uncorrected image and then warp the lines/polys. I find it easier to warp the image, and it tends to make errors very obvious, which is a win.\n\nArcGIS will do all of the above. I suspect you can do it all in Grass too (which is free, but hard to use imho).","timestamp":"2010-04-26T13:00:23+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b0b7dd1c264a3270","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_67bc484430fe87ba","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0oueqp","thanks_reply_id":"c0ouv5j","post_score":1,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_9531abf57cd0bf23","answerer_user_id":"anon_14ce7672aaca7a68","subreddit":"programming","timestamp":"2010-05-04T18:29:41+00:00","post_id":"c01sl","question":"Ask Progit: I need help with an IF statement in Excel.\n\nI have a max quantity column, a quantity on hand column, and a reorder quantity column. I want to subtract the quantity on hand from the max quantity, thus giving me the amount to reorder.\n\nThe problem is that, occasionally, (for various reasons), the quantity on hand is higher than the max quantity, resulting in a negative reorder quantity.\n\nI want to only show a value in the reorder quantity cells only if the value is greater than 0.\n\nAny ideas?","preferred_answer":"How about\n\n = MAX ( MQ - QOH , 0 )\n\nAlso if you really want to hide the 0, you can do...\n\n = IF ( QOH >= MQ , \"\" , MQ - QOH )","full_conversation":[{"role":"OP","user_id":"anon_9531abf57cd0bf23","comment_id":"c01sl","kind":"post","text":"Ask Progit: I need help with an IF statement in Excel.\n\nI have a max quantity column, a quantity on hand column, and a reorder quantity column. I want to subtract the quantity on hand from the max quantity, thus giving me the amount to reorder.\n\nThe problem is that, occasionally, (for various reasons), the quantity on hand is higher than the max quantity, resulting in a negative reorder quantity.\n\nI want to only show a value in the reorder quantity cells only if the value is greater than 0.\n\nAny ideas?","timestamp":"2010-05-04T18:29:41+00:00","score":0},{"role":"answerer","user_id":"anon_14ce7672aaca7a68","comment_id":"c0pfaav","kind":"comment","text":"How about\n\n = MAX ( MQ - QOH , 0 )\n\nAlso if you really want to hide the 0, you can do...\n\n = IF ( QOH >= MQ , \"\" , MQ - QOH )","timestamp":"2010-05-04T18:45:30+00:00","score":1},{"role":"OP","user_id":"anon_9531abf57cd0bf23","comment_id":"c0pfauc","kind":"comment","text":"This worked. Thanks!\n\nCan you please explain how it works? What does MAX do, precisely?","timestamp":"2010-05-04T18:51:37+00:00","score":1},{"role":"answerer","user_id":"anon_14ce7672aaca7a68","comment_id":"c0pfb2m","kind":"comment","text":"MAX returns the maximum of the numbers passed as arguments. When QOH > MQ, the subtraction in -ve, so 0 is returned as it is greater. When MQ > QOH, the subtraction is +ve, so +ve is returned as it is greater.","timestamp":"2010-05-04T18:54:19+00:00","score":1},{"role":"OP","user_id":"anon_9531abf57cd0bf23","comment_id":"c0pfbgv","kind":"comment","text":"I see. Thanks again. Would you happen to know how to \"freeze\" values? I want to delete the cells that are referenced in the formula, but this obviously ruins the value.","timestamp":"2010-05-04T18:58:33+00:00","score":1},{"role":"answerer","user_id":"anon_14ce7672aaca7a68","comment_id":"c0pfbu1","kind":"comment","text":"Select the result set, copy, move over to the next column, then Edit|Paste Special... Select Values > OK. Now the copied over data are the values and not the formulas. So you can delete the other columns including the original result column from which you copied.","timestamp":"2010-05-04T19:03:27+00:00","score":1},{"role":"OP","user_id":"anon_9531abf57cd0bf23","comment_id":"c0pfddz","kind":"comment","text":"Thanks.","timestamp":"2010-05-04T19:22:13+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_9531abf57cd0bf23","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_14ce7672aaca7a68","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0pfaav","thanks_reply_id":"c0pfauc","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_7a9b5d674999af57","answerer_user_id":"anon_a0a6bfdd63aaa47c","subreddit":"programming","timestamp":"2010-05-06T13:36:27+00:00","post_id":"c0l2a","question":"Help with deploying a Java application\n\nHi,\n\nHere's the story, I graduated in December and am at my first full time programming position. I've created a java application to act as a server and middle man between PHP pages and a telecomm bridge. It was designed using eclipse and works just fine when running from my local machine in eclipse. It's now been completed and we are looking into deploying it for production. I work at a small company so it's only me and my supervisor who work as developers.\n\nSo far we've looked into running either Tomcat or Geronimo on our Linux box and having that host the application, but as it is not a web application that is proving difficult. I was just wondering if anyone here has some advice about how I could get the application from Eclipse on our local machine onto our server, or to use Tomcat to host it. In other words add it as a Tomcat service with a new port number. If you need more information just ask and I will supply as much as possible.\n\nThanks in advance.\n\nEdit - Problem solved, thanks to JeffBeard and heartsjava","preferred_answer":"I think you are misunderstanding the point of tomcat. Tomcat holds specially constructed web applications that conform to the servlet specification. It sounds like what you have made is a standalone java application, this will not work. Post your code or PM me and I can take a quick look and tell you how to proceed, but the path you are headed down is ultimately going to be fruitless. Sorry for the bad news.","full_conversation":[{"role":"OP","user_id":"anon_7a9b5d674999af57","comment_id":"c0l2a","kind":"post","text":"Help with deploying a Java application\n\nHi,\n\nHere's the story, I graduated in December and am at my first full time programming position. I've created a java application to act as a server and middle man between PHP pages and a telecomm bridge. It was designed using eclipse and works just fine when running from my local machine in eclipse. It's now been completed and we are looking into deploying it for production. I work at a small company so it's only me and my supervisor who work as developers.\n\nSo far we've looked into running either Tomcat or Geronimo on our Linux box and having that host the application, but as it is not a web application that is proving difficult. I was just wondering if anyone here has some advice about how I could get the application from Eclipse on our local machine onto our server, or to use Tomcat to host it. In other words add it as a Tomcat service with a new port number. If you need more information just ask and I will supply as much as possible.\n\nThanks in advance.\n\nEdit - Problem solved, thanks to JeffBeard and heartsjava","timestamp":"2010-05-06T13:36:27+00:00","score":0},{"role":"answerer","user_id":"anon_a0a6bfdd63aaa47c","comment_id":"c0phrvz","kind":"comment","text":"I think you are misunderstanding the point of tomcat. Tomcat holds specially constructed web applications that conform to the servlet specification. It sounds like what you have made is a standalone java application, this will not work. Post your code or PM me and I can take a quick look and tell you how to proceed, but the path you are headed down is ultimately going to be fruitless. Sorry for the bad news.","timestamp":"2010-05-06T15:46:41+00:00","score":1},{"role":"OP","user_id":"anon_7a9b5d674999af57","comment_id":"c0phsju","kind":"comment","text":"Thanks for the heads up, it is a stand alone application essentially. I've got it running as a .jar for the time being. I'm not entirely sure what the best option is from here. Should we just load the .jar onto our server and run it directly from the console there? (ie create a startup script for the application and just have it constantly running in the background)","timestamp":"2010-05-06T15:56:39+00:00","score":1},{"role":"answerer","user_id":"anon_a0a6bfdd63aaa47c","comment_id":"c0phtlx","kind":"comment","text":"Is it multi-threaded on its own ?","timestamp":"2010-05-06T16:11:31+00:00","score":1},{"role":"OP","user_id":"anon_7a9b5d674999af57","comment_id":"c0phtth","kind":"comment","text":"Yes it is","timestamp":"2010-05-06T16:14:21+00:00","score":1},{"role":"answerer","user_id":"anon_a0a6bfdd63aaa47c","comment_id":"c0phu0h","kind":"comment","text":"Then you can probably run it on its own. If it is mucking around with the HTTP request at all, you might want to think about running it as a servlet to save yourself a bit of effort.","timestamp":"2010-05-06T16:17:16+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_7a9b5d674999af57","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a0a6bfdd63aaa47c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0phrvz","thanks_reply_id":"c0phsju","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_e7c63eff84496838","answerer_user_id":"anon_fa7e20a26a1405da","subreddit":"programming","timestamp":"2010-05-06T15:55:53+00:00","post_id":"c0n44","question":"How to handle the droning 9-5?","preferred_answer":"I felt the same exact way after college. However, things do get better. I made some friends at work, I started doing fun things outside of work and having money to do what I wanted was awesome. Fast track to 8 years later, and I work for satisfaction and to support two people. But nothing beats putting in a good day's work, coming home and enjoying the fruits of my labor.\n\nHang in there, you're in an envious position of having a job w/flexible hours. Use them to the max...","full_conversation":[{"role":"OP","user_id":"anon_e7c63eff84496838","comment_id":"c0n44","kind":"post","text":"How to handle the droning 9-5?","timestamp":"2010-05-06T15:55:53+00:00","score":1},{"role":"answerer","user_id":"anon_fa7e20a26a1405da","comment_id":"c0pi4i8","kind":"comment","text":"I felt the same exact way after college. However, things do get better. I made some friends at work, I started doing fun things outside of work and having money to do what I wanted was awesome. Fast track to 8 years later, and I work for satisfaction and to support two people. But nothing beats putting in a good day's work, coming home and enjoying the fruits of my labor.\n\nHang in there, you're in an envious position of having a job w/flexible hours. Use them to the max...","timestamp":"2010-05-06T19:02:01+00:00","score":1},{"role":"OP","user_id":"anon_e7c63eff84496838","comment_id":"c0pi4zl","kind":"comment","text":"I think this is the advice I am taking most to heart. Thank you.","timestamp":"2010-05-06T19:09:11+00:00","score":1},{"role":"answerer","user_id":"anon_fa7e20a26a1405da","comment_id":"c0piam7","kind":"comment","text":"thanks, let us know how you're doing after a few months... most of us have been there, don't worry","timestamp":"2010-05-06T20:34:18+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e7c63eff84496838","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fa7e20a26a1405da","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0pi4i8","thanks_reply_id":"c0pi4zl","post_score":1,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_7fdd9ab5df8e6fad","answerer_user_id":"anon_a4444f228cf4e113","subreddit":"programming","timestamp":"2010-05-08T14:24:13+00:00","post_id":"c1gnv","question":"Any software available to help create a personal code library?\n\nI am currently saving all my code snippets in text files. This works well, but i would rather have some sort of software that would make navigating my file easier and more efficient. I tried to Google for some answers but I didn't have any luck. I probably searched on the wrong key words, cause surely not everyone stores their personal library in .txt files. I'm a .net programmer so all my snippets are c#, xml(usally just used for commenting the web.config file) or javascript code. I have some personal css, and html stuff, but I am not so concerned about referencing that.\n\nThanks, and i apologize if this has been asked 1000's of times, but I have been passively looking the last couple weeks.","preferred_answer":"A wiki. Confluence is good, and has syntax highlighting in {code} blocks -- if you're into that kinda stuff.","full_conversation":[{"role":"OP","user_id":"anon_7fdd9ab5df8e6fad","comment_id":"c1gnv","kind":"post","text":"Any software available to help create a personal code library?\n\nI am currently saving all my code snippets in text files. This works well, but i would rather have some sort of software that would make navigating my file easier and more efficient. I tried to Google for some answers but I didn't have any luck. I probably searched on the wrong key words, cause surely not everyone stores their personal library in .txt files. I'm a .net programmer so all my snippets are c#, xml(usally just used for commenting the web.config file) or javascript code. I have some personal css, and html stuff, but I am not so concerned about referencing that.\n\nThanks, and i apologize if this has been asked 1000's of times, but I have been passively looking the last couple weeks.","timestamp":"2010-05-08T14:24:13+00:00","score":0},{"role":"answerer","user_id":"anon_a4444f228cf4e113","comment_id":"c0plwdz","kind":"comment","text":"A wiki. Confluence is good, and has syntax highlighting in {code} blocks -- if you're into that kinda stuff.","timestamp":"2010-05-08T14:28:56+00:00","score":2},{"role":"OP","user_id":"anon_7fdd9ab5df8e6fad","comment_id":"c0plx3m","kind":"comment","text":"I was actually thinking wiki, but i was wanting something that helped index code better. I like the Confluence, might look into that for work.","timestamp":"2010-05-08T14:46:08+00:00","score":1},{"role":"answerer","user_id":"anon_a4444f228cf4e113","comment_id":"c0plyg5","kind":"comment","text":"We use it at work. At home I have an ancient install of TWiki. I like the \"Throw everything in a wiki and you get whatever organization you care for\" aspect of it -- with fulltext search behind it to CYA.","timestamp":"2010-05-08T15:15:53+00:00","score":2},{"role":"OP","user_id":"anon_7fdd9ab5df8e6fad","comment_id":"c0plypt","kind":"comment","text":"Yeah we used to use one at my last workplace and it was useful, but organizing it was difficult for us. Often times i would find myself looking for a snippet of code i had put in it months ago, but now i couldn't find it. The keyword search just wouldn't see it for some reason. Ended up having to prowl through all my submissions till i found the right one.","timestamp":"2010-05-08T15:22:07+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7fdd9ab5df8e6fad","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a4444f228cf4e113","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0plwdz","thanks_reply_id":"c0plx3m","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_4bc022ac4043e899","answerer_user_id":"anon_a476108dd38c6858","subreddit":"programming","timestamp":"2010-05-13T16:15:07+00:00","post_id":"c3no6","question":"What Would You Ask the IE9 Team if you had the Chance?","preferred_answer":"CSS compliance. When we code a website that works in Safari, FF, Opera, and Chrome but it doesn't work in IE, it makes me hate IE. It makes me recommend any browser but IE to friends. That is priority number 1 for me.","full_conversation":[{"role":"OP","user_id":"anon_4bc022ac4043e899","comment_id":"c3no6","kind":"post","text":"What Would You Ask the IE9 Team if you had the Chance?","timestamp":"2010-05-13T16:15:07+00:00","score":0},{"role":"answerer","user_id":"anon_a476108dd38c6858","comment_id":"c0pxxil","kind":"comment","text":"CSS compliance. When we code a website that works in Safari, FF, Opera, and Chrome but it doesn't work in IE, it makes me hate IE. It makes me recommend any browser but IE to friends. That is priority number 1 for me.","timestamp":"2010-05-13T17:34:46+00:00","score":4},{"role":"OP","user_id":"anon_4bc022ac4043e899","comment_id":"c0py2th","kind":"comment","text":"Thanks. Now CSS compliance is a broad statement especially with the big push for CSS3. I know other browsers don't implement CSS 100% to spec so what things, which you've seen uniformly implemented across other browsers, would you also like to see in IE9.\n\nThanks for your patience on my questions. This is a tough topic and it's important to drill down into specifics.","timestamp":"2010-05-13T18:28:45+00:00","score":2},{"role":"answerer","user_id":"anon_a476108dd38c6858","comment_id":"c0py3qk","kind":"comment","text":"Let's even stick to the basics. The ways padding, margin, width and height are fundamentally different in the older IE browsers than in every other browser. Those 4 things alone would solve the majority of head aches.","timestamp":"2010-05-13T18:37:49+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4bc022ac4043e899","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a476108dd38c6858","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0pxxil","thanks_reply_id":"c0py2th","post_score":0,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_33cef67315015430","answerer_user_id":"anon_6ffd3d1079cdf741","subreddit":"programming","timestamp":"2010-05-14T16:57:11+00:00","post_id":"c458j","question":"Would like to research reddit and have modest programming experience: where oh where could I read up on the expertise needed to do the data collection?\n\nHi, I work in network physics and would **love** to get a paper published using reddit data quantifying how users interact with each other. I can do simple things in C and python (and the old physicist's love: fortran). Help, please?","preferred_answer":"http://www.reddit.com/message/compose?to=%23reddit.com will get a message to the admins.","full_conversation":[{"role":"OP","user_id":"anon_33cef67315015430","comment_id":"c458j","kind":"post","text":"Would like to research reddit and have modest programming experience: where oh where could I read up on the expertise needed to do the data collection?\n\nHi, I work in network physics and would **love** to get a paper published using reddit data quantifying how users interact with each other. I can do simple things in C and python (and the old physicist's love: fortran). Help, please?","timestamp":"2010-05-14T16:57:11+00:00","score":0},{"role":"answerer","user_id":"anon_6ffd3d1079cdf741","comment_id":"c0q0hl2","kind":"comment","text":"http://www.reddit.com/message/compose?to=%23reddit.com will get a message to the admins.","timestamp":"2010-05-14T17:24:31+00:00","score":1},{"role":"OP","user_id":"anon_33cef67315015430","comment_id":"c0q0i6z","kind":"comment","text":"Done, thanks. As for the specifics you raise, if I can just figure out how to parse information from a reddit page and pages it's linked to, the rest I could manage.","timestamp":"2010-05-14T17:31:03+00:00","score":1},{"role":"answerer","user_id":"anon_6ffd3d1079cdf741","comment_id":"c0q0j3s","kind":"comment","text":"You'll do better with javascript and ajax. Reddit's markup is very clean and well classed. DOM selectors will let you quickly find authors and parent/child relationships. Ajax it back to the server for storage. You'll need to write a bookmarklet to inject JS into a redit page, from there the JS can create iframes and just parse away.\n\nThe advantage to using JS is your script can trigger the ajax expansions for when reddit has collapsed or hidden a portion of the comments when a thread grows very large. \n\nG'luck with your project.","timestamp":"2010-05-14T17:40:47+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_33cef67315015430","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6ffd3d1079cdf741","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0q0hl2","thanks_reply_id":"c0q0i6z","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_e1f1048311f095fe","answerer_user_id":"anon_0d6f520a27945b8d","subreddit":"programming","timestamp":"2010-05-18T10:59:52+00:00","post_id":"c5hzp","question":"Greetings, proggiters. I'd like some help/advice with a personal programming project (Windows). Apologies if this isn't the right place.\n\nSorry for the vague title, but there's so many ways I could do this that it's got to be. This might be a bit long-winded.\n\nRight, the project: I want to create a simple interface for selecting and playing backing tracks (and possibly metronome) for my (real) drums, running on Windows XP. I want to use my (PS2) Rock Band drum pads as the navigation tool.\n\nI've been a bit out of the programming game for a while - I mainly do web programming now. I am proficient (but rusty) in C and C++, with a passable knowledge of x86 assembly. Not sure I should mention this for fear of booers, but I also extensively used VB6, back in the day, complete with embedded ASM and all that jazz. Recently, I've also toyed with haXe [flash] and Löve 2D.\n\nSo, back to the project. I've used Löve to make a cheap-and-dirty electronic drumkit, using the Rock Band pads, so that's fine. In fact I was amazed at how east it was. So I _could_ do the whole thing with Löve, except... I want variable-speed playback, which Löve doesn't offer :(\n\nI've got variable-speed playback in Winamp, which is easy to control programatically via windows messaging. Except for the variable-speed playback, which is a plugin and may not respond - I haven't tried yet. And I can't use Löve to send windows messages, unless I invoke `os.execute()` to run a program which does.\n\nOn the other hand, using C++ I could call winamp easily, or use a sound library with variable-speed playback (BASS looks promising). But last time I tried accessing the Drum Pads using `joyGetPosEx` or `joySetCapture`, it didn't work.\n\nI've heard tales of PyGame (or was it Pyglet?) that might make this easy. But I'm not sure it has the audio functionality I need, and I don't speak Parseltongue - although I can pick up enough to get by fast enough, I'm sure.\n\nSo from my point of view, it looks like I either need a cobbled-together hodge podge of trigger apps and launcher apps, or to get down and dirty with a full-blown C++ project using libs I've never used before. But maybe there's a simpler solution lurking out there?","preferred_answer":"Can you do this via API calls alone, or do you need low-level hardware access? Given your past familiarity with VB, maybe a VB.Net app might do the trick. Provided that API calls are all that is needed.\n\nCheck out the express versions of the .Net languages. (I don't have any installed on this PC, so can't look at the libraries/assemblies provided). Or look at [this](http://msdn.microsoft.com/en-us/library/ms229335.aspx) (particularly the System and Microsoft.Win32 namespaces).","full_conversation":[{"role":"OP","user_id":"anon_e1f1048311f095fe","comment_id":"c5hzp","kind":"post","text":"Greetings, proggiters. I'd like some help/advice with a personal programming project (Windows). Apologies if this isn't the right place.\n\nSorry for the vague title, but there's so many ways I could do this that it's got to be. This might be a bit long-winded.\n\nRight, the project: I want to create a simple interface for selecting and playing backing tracks (and possibly metronome) for my (real) drums, running on Windows XP. I want to use my (PS2) Rock Band drum pads as the navigation tool.\n\nI've been a bit out of the programming game for a while - I mainly do web programming now. I am proficient (but rusty) in C and C++, with a passable knowledge of x86 assembly. Not sure I should mention this for fear of booers, but I also extensively used VB6, back in the day, complete with embedded ASM and all that jazz. Recently, I've also toyed with haXe [flash] and Löve 2D.\n\nSo, back to the project. I've used Löve to make a cheap-and-dirty electronic drumkit, using the Rock Band pads, so that's fine. In fact I was amazed at how east it was. So I _could_ do the whole thing with Löve, except... I want variable-speed playback, which Löve doesn't offer :(\n\nI've got variable-speed playback in Winamp, which is easy to control programatically via windows messaging. Except for the variable-speed playback, which is a plugin and may not respond - I haven't tried yet. And I can't use Löve to send windows messages, unless I invoke `os.execute()` to run a program which does.\n\nOn the other hand, using C++ I could call winamp easily, or use a sound library with variable-speed playback (BASS looks promising). But last time I tried accessing the Drum Pads using `joyGetPosEx` or `joySetCapture`, it didn't work.\n\nI've heard tales of PyGame (or was it Pyglet?) that might make this easy. But I'm not sure it has the audio functionality I need, and I don't speak Parseltongue - although I can pick up enough to get by fast enough, I'm sure.\n\nSo from my point of view, it looks like I either need a cobbled-together hodge podge of trigger apps and launcher apps, or to get down and dirty with a full-blown C++ project using libs I've never used before. But maybe there's a simpler solution lurking out there?","timestamp":"2010-05-18T10:59:52+00:00","score":0},{"role":"answerer","user_id":"anon_0d6f520a27945b8d","comment_id":"c0q8mn9","kind":"comment","text":"Can you do this via API calls alone, or do you need low-level hardware access? Given your past familiarity with VB, maybe a VB.Net app might do the trick. Provided that API calls are all that is needed.\n\nCheck out the express versions of the .Net languages. (I don't have any installed on this PC, so can't look at the libraries/assemblies provided). Or look at [this](http://msdn.microsoft.com/en-us/library/ms229335.aspx) (particularly the System and Microsoft.Win32 namespaces).","timestamp":"2010-05-18T11:09:01+00:00","score":2},{"role":"OP","user_id":"anon_e1f1048311f095fe","comment_id":"c0q8n2c","kind":"comment","text":"Thanks for that, I will check it out.\n\nI'm not really sure why, but I've got an inherant dislike to .NET - I tried it when it first came out, and quickly developed an aversion. It's probably got much better since, though - maybe I should give it a go.\n\nI can't see anything on joystick access there - which is essential for the pads. Maybe I missed it, I will go over it again.\n\nCheers for the input!","timestamp":"2010-05-18T11:22:02+00:00","score":1},{"role":"answerer","user_id":"anon_0d6f520a27945b8d","comment_id":"c0q8ncf","kind":"comment","text":"this looks to be a 3rd party (open source - not sure of licensing) Joystick library. Maybe that will fill the gaps...\n\nEDIT: examples are in C#, but provided the assembly is good, you would be able to call that from VB\n\nEDIT2: http://cs-sdl.sourceforge.net/index.php/Joystick (Link!)","timestamp":"2010-05-18T11:30:26+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e1f1048311f095fe","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0d6f520a27945b8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0q8mn9","thanks_reply_id":"c0q8n2c","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_49b30878eeb865cc","answerer_user_id":"anon_5bfa2a389b0da33f","subreddit":"programming","timestamp":"2010-05-18T23:20:51+00:00","post_id":"c5pth","question":"Advice on design of a music player\n\nI am thinking of starting a new personal project but I need advice on what technologies would work best. Also some advice on how to manage songs and other design details to get me started. Any resources would be greatly appreciated. I would also like any ideas on how to warp a songs timing such as one would do with Ableton Live, but not in depth editing like that so any resources on sound editing would be also appreciated. \n\ncheers!","preferred_answer":"There are much more rewarding things to program than a music player unless you really like that kind of stuff. I know because I'm now about 8 months or so into development (with a lot of reused code from a former scrapped project; I'm doing audio programming in my spare time for a couple of years now).\r\n\r\nYou have no idea what you're getting into; on the surface it seems like a fun little project and it's not that hard to actually get an mp3 playing (using a decoder library like ffmpeg can get you started in a couple of weeks). But there are so many things attached that you don't think of right know.\r\n\r\nThe thing is that it's demanding on so many levels. The programming is demanding, because you'll have multiple threads to synchronize, you'll be working on a very low level and you'll need to figure out a couple of tricks because it's realtime and you need to process a lot of data very fast. That means, for example, having a really good strategy at managing memory or your CPU fan will be louder than your audio output. And the math and physics side is demanding too, since you really need to understand how waves work, how calculus works and a little bit of trigonometry won't hurt either. Yes, theoretically you can just use different parts of libraries for that. But if you don't actually understand why, for example, you may need a highpass filter when you resample audio signals then you're screwed. Finally, you'll be working with audio files, which are stored in formats defined by human beings; this means: prepare for some epic facepalms and rages along the way.\r\n\r\nIf you don't yet know how Ableton Live does warping then I strongly suggest you do something else. Or you take a couple of months/years to read up on signal processing before you decide if it's really worth the effort for you. It can be something very rewarding. I personally have never learned as much as with this project, but you really, really need to like it.","full_conversation":[{"role":"OP","user_id":"anon_49b30878eeb865cc","comment_id":"c5pth","kind":"post","text":"Advice on design of a music player\n\nI am thinking of starting a new personal project but I need advice on what technologies would work best. Also some advice on how to manage songs and other design details to get me started. Any resources would be greatly appreciated. I would also like any ideas on how to warp a songs timing such as one would do with Ableton Live, but not in depth editing like that so any resources on sound editing would be also appreciated. \n\ncheers!","timestamp":"2010-05-18T23:20:51+00:00","score":0},{"role":"answerer","user_id":"anon_5bfa2a389b0da33f","comment_id":"c0qadvj","kind":"comment","text":"There are much more rewarding things to program than a music player unless you really like that kind of stuff. I know because I'm now about 8 months or so into development (with a lot of reused code from a former scrapped project; I'm doing audio programming in my spare time for a couple of years now).\r\n\r\nYou have no idea what you're getting into; on the surface it seems like a fun little project and it's not that hard to actually get an mp3 playing (using a decoder library like ffmpeg can get you started in a couple of weeks). But there are so many things attached that you don't think of right know.\r\n\r\nThe thing is that it's demanding on so many levels. The programming is demanding, because you'll have multiple threads to synchronize, you'll be working on a very low level and you'll need to figure out a couple of tricks because it's realtime and you need to process a lot of data very fast. That means, for example, having a really good strategy at managing memory or your CPU fan will be louder than your audio output. And the math and physics side is demanding too, since you really need to understand how waves work, how calculus works and a little bit of trigonometry won't hurt either. Yes, theoretically you can just use different parts of libraries for that. But if you don't actually understand why, for example, you may need a highpass filter when you resample audio signals then you're screwed. Finally, you'll be working with audio files, which are stored in formats defined by human beings; this means: prepare for some epic facepalms and rages along the way.\r\n\r\nIf you don't yet know how Ableton Live does warping then I strongly suggest you do something else. Or you take a couple of months/years to read up on signal processing before you decide if it's really worth the effort for you. It can be something very rewarding. I personally have never learned as much as with this project, but you really, really need to like it.","timestamp":"2010-05-19T00:36:52+00:00","score":2},{"role":"OP","user_id":"anon_49b30878eeb865cc","comment_id":"c0qaowy","kind":"comment","text":"this is the kind of sobering new that I needed thanks","timestamp":"2010-05-19T03:10:53+00:00","score":1},{"role":"answerer","user_id":"anon_5bfa2a389b0da33f","comment_id":"c0qb6sm","kind":"comment","text":"You're welcome :)\r\n\r\nAnyway, I suggest you try this: http://dranger.com/ffmpeg/\r\n\r\nIt's a tutorial about writing a video player (with audio) using ffmpeg and SDL. You can try that and see how it goes.","timestamp":"2010-05-19T08:47:48+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_49b30878eeb865cc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5bfa2a389b0da33f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0qadvj","thanks_reply_id":"c0qaowy","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_1e6dd6685170596f","answerer_user_id":"anon_8cd835a2cf1652c8","subreddit":"programming","timestamp":"2010-05-21T12:27:26+00:00","post_id":"c6nxa","question":"Why don't ordinary files and arrays support insertion/removal operations?","preferred_answer":"One reallocation is potentially way less expensive than just a single insertion in this \"AVL array\", since there is minimum one allocation per insertion here. This isn't just a higher constant multiplied on to O(log n), it's also causing memory fragmentation and all the fun that entails.","full_conversation":[{"role":"OP","user_id":"anon_1e6dd6685170596f","comment_id":"c6nxa","kind":"post","text":"Why don't ordinary files and arrays support insertion/removal operations?","timestamp":"2010-05-21T12:27:26+00:00","score":0},{"role":"answerer","user_id":"anon_8cd835a2cf1652c8","comment_id":"c0qj19h","kind":"comment","text":"One reallocation is potentially way less expensive than just a single insertion in this \"AVL array\", since there is minimum one allocation per insertion here. This isn't just a higher constant multiplied on to O(log n), it's also causing memory fragmentation and all the fun that entails.","timestamp":"2010-05-22T11:09:01+00:00","score":2},{"role":"OP","user_id":"anon_1e6dd6685170596f","comment_id":"c0qj3z3","kind":"comment","text":"This can be solved by using a dedicated slab allocator.","timestamp":"2010-05-22T12:50:34+00:00","score":1},{"role":"answerer","user_id":"anon_8cd835a2cf1652c8","comment_id":"c0qjbun","kind":"comment","text":"Indeed. The problem with that approach (which is a general problem with STL, not your code), is that people tend not to, and tend to assume that the default implementation is \"good enough\", when it rarely is.","timestamp":"2010-05-22T15:52:19+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1e6dd6685170596f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8cd835a2cf1652c8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0qj19h","thanks_reply_id":"c0qj3z3","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_5196e4296020f20c","answerer_user_id":"anon_acde7325b2f2f319","subreddit":"programming","timestamp":"2010-05-25T16:34:06+00:00","post_id":"c7yrz","question":"My boss decided to be awesome and sponsor a web app for K-8 teachers. Help us with some hard problems?","preferred_answer":"I think you should definitely crowd source the questions, and allow for moderation. Make status and recognition a part of it. This is a natural part of society.\n\nLet teachers sign up with a minimum of fuss, but enough detail to make them have some kind of social profile: name, subject, grades taught, school (or district). Make pictures optional. Put in something on their profile like the following:\n\n* Number of questions submitted\n* Number of questions moderated\n\nDon't embarrass them with an exact tally of up-votes versus down-votes they've received on their profile. Just recognize those in the top 20% percentile -- however you define that.\n\nLet them submit a question and categorize it. Then, let other registered teachers up-vote the question. (You may want to have only up-votes, no down-votes.) Display the up-vote tally. Let other teachers tag the questions to enable better searching and sorting. (Only the more savvy teachers will have any idea of how to do this, so don't make it mandatory, and don't put it where it will scare off the other teachers.)\n\nMake all the questions able to be shared without licensing restrictions, etc. On the site, *always* have the teacher's name and profile associated with the question, along with a gold star (if they're in the 20% percentile) or whatever. Of course, when a test is printed out, the questions will not have the byline. \n\nEnable the questions to be exported in open, programmer-friendly formats, along with whatever \"convenient\" (or teacher-friendly) formats you desire. You never know what someone may build upon this.","full_conversation":[{"role":"OP","user_id":"anon_5196e4296020f20c","comment_id":"c7yrz","kind":"post","text":"My boss decided to be awesome and sponsor a web app for K-8 teachers. Help us with some hard problems?","timestamp":"2010-05-25T16:34:06+00:00","score":6},{"role":"answerer","user_id":"anon_acde7325b2f2f319","comment_id":"c0qqgyj","kind":"comment","text":"I think you should definitely crowd source the questions, and allow for moderation. Make status and recognition a part of it. This is a natural part of society.\n\nLet teachers sign up with a minimum of fuss, but enough detail to make them have some kind of social profile: name, subject, grades taught, school (or district). Make pictures optional. Put in something on their profile like the following:\n\n* Number of questions submitted\n* Number of questions moderated\n\nDon't embarrass them with an exact tally of up-votes versus down-votes they've received on their profile. Just recognize those in the top 20% percentile -- however you define that.\n\nLet them submit a question and categorize it. Then, let other registered teachers up-vote the question. (You may want to have only up-votes, no down-votes.) Display the up-vote tally. Let other teachers tag the questions to enable better searching and sorting. (Only the more savvy teachers will have any idea of how to do this, so don't make it mandatory, and don't put it where it will scare off the other teachers.)\n\nMake all the questions able to be shared without licensing restrictions, etc. On the site, *always* have the teacher's name and profile associated with the question, along with a gold star (if they're in the 20% percentile) or whatever. Of course, when a test is printed out, the questions will not have the byline. \n\nEnable the questions to be exported in open, programmer-friendly formats, along with whatever \"convenient\" (or teacher-friendly) formats you desire. You never know what someone may build upon this.","timestamp":"2010-05-25T17:21:12+00:00","score":2},{"role":"OP","user_id":"anon_5196e4296020f20c","comment_id":"c0qqjsu","kind":"comment","text":"Thanks so much for the detailed analysis... Ideally this is exactly how we'd have it play out, but I'm not sure if teachers would want to spend that amount of time - even making one question - just for bragging rights. The feeling I got from our interviews was that they would want something more, which I think is totally fair... we can offer them a lot more, but not until we have questions... chicken and egg sort of deal.","timestamp":"2010-05-25T17:51:44+00:00","score":1},{"role":"answerer","user_id":"anon_acde7325b2f2f319","comment_id":"c0qqrc7","kind":"comment","text":"I was in education, and I'm not surprised by this. There is a much higher number of teachers who would like to make use of \"free stuff\" than there are teachers who would like to create and share. This may just be human nature.\n\nThere is, however, a glut of education graduates out of work. I don't know how you go getting a hold of them, but some might be talented enough to write exam questions, and may do so simply to have a resume-builder to distinguish them from the competition. Perhaps if the teachers using the questions had to divulge the school and grade, say when tests were generated, you might be able to build a report where the question authors would be able to say, \"This many of my questions have been used by teachers in the following schools.\" \n\nThis alone may be enough to get some talented people to contribute. When I was in grad school we did spend some time learning about how to write exam questions. There are howto materials available -- your state's education department may even have some to give your operation.","timestamp":"2010-05-25T19:11:45+00:00","score":6},{"role":"OP","user_id":"anon_5196e4296020f20c","comment_id":"c0qsxzn","kind":"comment","text":"That is a fantastic perspective! And yes, we've also noticed the tendency to just download-and-deploy material rather than to organize a re-usable repository, even on a personal level.\nThanks for the ideas!","timestamp":"2010-05-26T16:35:08+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5196e4296020f20c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_acde7325b2f2f319","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0qqgyj","thanks_reply_id":"c0qqjsu","post_score":6,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_ed21b6ee1bbd6d5b","answerer_user_id":"anon_48664102bec43bcd","subreddit":"programming","timestamp":"2010-05-26T16:38:42+00:00","post_id":"c8c9m","question":"PHP Unserialize Debugger?\n\nLong story short, I ended up with a truncated serialized string that represents a solid three days of data. Is there any type of PHP unserialize tool I can use to fix or debug my malformed string? (it's tens of thousands of characters long and dizzingly complex to resolve by hand, though I'm trying. . .)","preferred_answer":"The PHP serialize format isn't that complicated. I recommend just writing a quick parser -- split the incoming string using preg_split() into an array of tokens and then scan along calling functions recursively to decode strings, arrays, and objects. \n\nHere's a JavaScript version that might be helpful for reference:\nhttp://www.phpguru.org/static/PHP_Unserialize.html","full_conversation":[{"role":"OP","user_id":"anon_ed21b6ee1bbd6d5b","comment_id":"c8c9m","kind":"post","text":"PHP Unserialize Debugger?\n\nLong story short, I ended up with a truncated serialized string that represents a solid three days of data. Is there any type of PHP unserialize tool I can use to fix or debug my malformed string? (it's tens of thousands of characters long and dizzingly complex to resolve by hand, though I'm trying. . .)","timestamp":"2010-05-26T16:38:42+00:00","score":0},{"role":"answerer","user_id":"anon_48664102bec43bcd","comment_id":"c0qt093","kind":"comment","text":"The PHP serialize format isn't that complicated. I recommend just writing a quick parser -- split the incoming string using preg_split() into an array of tokens and then scan along calling functions recursively to decode strings, arrays, and objects. \n\nHere's a JavaScript version that might be helpful for reference:\nhttp://www.phpguru.org/static/PHP_Unserialize.html","timestamp":"2010-05-26T16:59:06+00:00","score":2},{"role":"OP","user_id":"anon_ed21b6ee1bbd6d5b","comment_id":"c0qta7k","kind":"comment","text":"Thanks for the input. I eventually hacked it enough to validate.\n\nHowever, I still think something as finicky as serialize should have some sort of debugger, right?","timestamp":"2010-05-26T18:42:14+00:00","score":1},{"role":"answerer","user_id":"anon_48664102bec43bcd","comment_id":"c0qtdtv","kind":"comment","text":"It's not really finicky -- you're just expected to pass exactly what you get from unserialize to serialize. These functions are designed for performance (since they're used frequently) and therefore don't provide any graceful fallback.\n\nI'm sort of curious how you have 3 days of unrecoverable data in a PHP serialized string!","timestamp":"2010-05-26T19:16:44+00:00","score":2},{"role":"OP","user_id":"anon_ed21b6ee1bbd6d5b","comment_id":"c0qth4q","kind":"comment","text":"Well, I got the data fixed, so it's not unrecoverable now, but long story short is that the DB field ended up truncating the string (32k characters ran out quick). It's a temp schema that will probably change on a daily basis for the new few weeks, so we've just been dumping it into a serialized array until we finally decide how the format is going to work.","timestamp":"2010-05-26T19:50:56+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ed21b6ee1bbd6d5b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_48664102bec43bcd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0qt093","thanks_reply_id":"c0qta7k","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_c13a1d4e3caddd43","answerer_user_id":"anon_752b4b7d39b35d0b","subreddit":"programming","timestamp":"2010-05-27T20:57:47+00:00","post_id":"c8tc1","question":"Good UML Class Diagram Tutorial With Code Examples?\n\nI'm having a bit of trouble understanding UML and how you design classes with it. I was wondering if there were any good UML class diagram tutorials with code examples. E.g. something that shows what a composition looks like in a diagram and in code.","preferred_answer":"[This one](http://www.builderau.com.au/strategy/designprinciples/soa/Creating-class-diagrams-with-UML/0,339028846,339170202,00.htm) is short and sweet. It gets the basics across using UML and Java.\n\nFor future reference, questions like this should go in /r/learnprogramming.","full_conversation":[{"role":"OP","user_id":"anon_c13a1d4e3caddd43","comment_id":"c8tc1","kind":"post","text":"Good UML Class Diagram Tutorial With Code Examples?\n\nI'm having a bit of trouble understanding UML and how you design classes with it. I was wondering if there were any good UML class diagram tutorials with code examples. E.g. something that shows what a composition looks like in a diagram and in code.","timestamp":"2010-05-27T20:57:47+00:00","score":0},{"role":"answerer","user_id":"anon_752b4b7d39b35d0b","comment_id":"c0qwigo","kind":"comment","text":"[This one](http://www.builderau.com.au/strategy/designprinciples/soa/Creating-class-diagrams-with-UML/0,339028846,339170202,00.htm) is short and sweet. It gets the basics across using UML and Java.\n\nFor future reference, questions like this should go in /r/learnprogramming.","timestamp":"2010-05-27T22:24:07+00:00","score":2},{"role":"OP","user_id":"anon_c13a1d4e3caddd43","comment_id":"c0qxxsq","kind":"comment","text":"Thanks. That's almost what I want. The only thing I'm not seeing is how arrays are handled. Of course, I may be running into a bit of Visio stupidity.\n\nAnd sorry about posting in the wrong spot. Frustration got the better of me.","timestamp":"2010-05-28T13:04:38+00:00","score":1},{"role":"answerer","user_id":"anon_752b4b7d39b35d0b","comment_id":"c0qyrqo","kind":"comment","text":"Arrays are handled, typically, one of two ways [depicted here](http://www.csci.csusb.edu/dick/cs201/uml.period.gif). The first is to specify the member variable name with its type being a class array of some length.\n\nThe second, and more powerful in my opinion, is with composition and multiplicities. This was not adequately shown in the first link I gave you. The creator of the image has multiplicity 0..* when illustrating containment, which implies a data structure, but this is not what appears in the code and is an oversight.\n\nRemember, UML is a depiction of a subset of the design; just because it's not in the UML doesn't mean it's not there. Thus, you can specify composition without specifying variable names or data structures, leaving it up to the programmer to decide what's best. That allows the programmer freedom to use hash tables, trees, lists, or whatever is appropriate, including arrays, instead of forcing array, ArrayList, or some other container. Basically, only define the details when necessary. Does it matter that one class contains another? Probably. Does it matter how the first contains the second? Probably not.\n\nRule of thumb: If you know the multiplicity is one, or you need to guarantee a data structure or name, make it a member variable. If you don't need the guarantee, and you probably don't, use containment. You'll end up with cleaner diagrams that require less maintenance.","timestamp":"2010-05-28T19:17:55+00:00","score":2},{"role":"OP","user_id":"anon_c13a1d4e3caddd43","comment_id":"c0r0b5j","kind":"comment","text":"Cool! I guess I stumbled upon doing it correctly as I was doing it the second way for the most part. I'm just very glad you confirmed it because I tried to generate some code to verify my assumption and it didn't turn out very well.","timestamp":"2010-05-29T13:30:36+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c13a1d4e3caddd43","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_752b4b7d39b35d0b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0qwigo","thanks_reply_id":"c0qxxsq","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_b8c02a6912937f83","answerer_user_id":"anon_56511e81d53668e9","subreddit":"programming","timestamp":"2010-05-28T19:35:58+00:00","post_id":"c95so","question":"Why Functional Programming Will Not Take Over The World - A Square Peg In A Round Hole","preferred_answer":"I think he was shouting at me. :) In my previous reply to you, I said I didn't think functional programming was necessarily less natural, just that people generally didn't go down that path and needed to learn a new mindset for programming. Effort which many people are reluctant to invest. \n\nI personally don't think \"naturalness\" is really that important. If I have a better tool with a somewhat higher learning curve, I would rather invest time (even if it's more) to learn the better tool than use a small amount of time and plateau my skill/productivity/whateverPositiveMetric quickly.\n\nMy experience is mainly based on Haskell. There are quite a few reasons why a pure functional, statically typed language can be advantageous for development. \n\nI will include a few links for you: [1](http://scienceblogs.com/goodmath/2006/11/why_haskell.php) | [2](http://www.haskell.org/haskellwiki/Why_Haskell_just_works) | [3](http://book.realworldhaskell.org/read/why-functional-programming-why-haskell.html) | [On a more generic note - Why Functional Programming Matters](http://weblog.raganwald.com/2007/03/why-why-functional-programming-matters.html)\n\nThe short version is:\n\n* Pure - Makes it easy to reason about side effects. Also makes testing easy. Functions can be proven mathematically correct.\n\n* Static typing - You can learn a lot about the program from the types. Most of the time when I write some code, if it type checks, it works.\n\n* Functional - I find it a better way to break down problems. Most of the links I included do this topic far better justice.\n\n* Lazy - Many computations can be treated as streams. Dealing with infinite lists is simple. Recursive algorithms can be implemented in very elegant ways sometimes. (Only downside is that it sometimes takes advanced knowledge to reason about time/space usage during computation.)","full_conversation":[{"role":"OP","user_id":"anon_b8c02a6912937f83","comment_id":"c95so","kind":"post","text":"Why Functional Programming Will Not Take Over The World - A Square Peg In A Round Hole","timestamp":"2010-05-28T19:35:58+00:00","score":0},{"role":"answerer","user_id":"anon_56511e81d53668e9","comment_id":"c0qz59u","kind":"comment","text":"I think he was shouting at me. :) In my previous reply to you, I said I didn't think functional programming was necessarily less natural, just that people generally didn't go down that path and needed to learn a new mindset for programming. Effort which many people are reluctant to invest. \n\nI personally don't think \"naturalness\" is really that important. If I have a better tool with a somewhat higher learning curve, I would rather invest time (even if it's more) to learn the better tool than use a small amount of time and plateau my skill/productivity/whateverPositiveMetric quickly.\n\nMy experience is mainly based on Haskell. There are quite a few reasons why a pure functional, statically typed language can be advantageous for development. \n\nI will include a few links for you: [1](http://scienceblogs.com/goodmath/2006/11/why_haskell.php) | [2](http://www.haskell.org/haskellwiki/Why_Haskell_just_works) | [3](http://book.realworldhaskell.org/read/why-functional-programming-why-haskell.html) | [On a more generic note - Why Functional Programming Matters](http://weblog.raganwald.com/2007/03/why-why-functional-programming-matters.html)\n\nThe short version is:\n\n* Pure - Makes it easy to reason about side effects. Also makes testing easy. Functions can be proven mathematically correct.\n\n* Static typing - You can learn a lot about the program from the types. Most of the time when I write some code, if it type checks, it works.\n\n* Functional - I find it a better way to break down problems. Most of the links I included do this topic far better justice.\n\n* Lazy - Many computations can be treated as streams. Dealing with infinite lists is simple. Recursive algorithms can be implemented in very elegant ways sometimes. (Only downside is that it sometimes takes advanced knowledge to reason about time/space usage during computation.)","timestamp":"2010-05-28T22:02:27+00:00","score":1},{"role":"OP","user_id":"anon_b8c02a6912937f83","comment_id":"c0qz6a7","kind":"comment","text":"Brilliant thanks.\n\nNot all FP is lazy though. If (big if) you consider F# functional - that is no lazy.","timestamp":"2010-05-28T22:17:26+00:00","score":1},{"role":"answerer","user_id":"anon_56511e81d53668e9","comment_id":"c0qz6iz","kind":"comment","text":"That's true, and why I prefaced my list by saying I was mainly familiar with Haskell. :) There are quite a few functional programming languages (Haskell, OCaml, F#, Erlang, Clean just to name a few), and in fact you can use functional programming methodology in normal imperative languages.\n\nBefore I switched to Haskell, I was mostly a C and Python programmer. I haven't done a lot of programming with those recently, but I think my Haskell knowledge has helped me write better programs in those languages. You definitely learn to split your functions into very modular parts. So I think it's worth learning Haskell (or some other functional language) even if you can't use it in your day job.","timestamp":"2010-05-28T22:20:55+00:00","score":3},{"role":"OP","user_id":"anon_b8c02a6912937f83","comment_id":"c0r05pw","kind":"comment","text":"I totally agree. I found learning to program in F# really helpful in working with Managed COBOL compilers because it taught me a lot about type inference which I would not have understood at such a fundamental level otherwise. Similarly, scheme taught me a about the notion of lambda's much more than any book I read.\n\nTake care - AJ","timestamp":"2010-05-29T10:08:34+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b8c02a6912937f83","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_56511e81d53668e9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0qz59u","thanks_reply_id":"c0qz6a7","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_1f3a2e9b2a7568d9","answerer_user_id":"anon_8ee210deef98479a","subreddit":"programming","timestamp":"2010-06-08T19:54:00+00:00","post_id":"ccuy0","question":"A little help in regards to Internet Explorer?","preferred_answer":"Depending on how they are setup, you could always try a USB stick with Firefox Portable?","full_conversation":[{"role":"OP","user_id":"anon_1f3a2e9b2a7568d9","comment_id":"ccuy0","kind":"post","text":"A little help in regards to Internet Explorer?","timestamp":"2010-06-08T19:54:00+00:00","score":0},{"role":"answerer","user_id":"anon_8ee210deef98479a","comment_id":"c0rojd4","kind":"comment","text":"Depending on how they are setup, you could always try a USB stick with Firefox Portable?","timestamp":"2010-06-08T20:00:21+00:00","score":3},{"role":"OP","user_id":"anon_1f3a2e9b2a7568d9","comment_id":"c0romwu","kind":"comment","text":"Firefox Portable? Never heard of it. I'll look it up. Thanks!","timestamp":"2010-06-08T20:41:27+00:00","score":1},{"role":"answerer","user_id":"anon_8ee210deef98479a","comment_id":"c0rowkw","kind":"comment","text":"Oh yea. There's lots of \"Portable\" apps. \n\nhttp://portableapps.com/\n\nAs long as you can use a USB thumbdrive (I know, some places even block that) and can run an application from it, you have a whole new world. \n\nIt's not the perfect solution you need with simply making Firefox the default browser, but it might get you what you need.","timestamp":"2010-06-08T22:35:07+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1f3a2e9b2a7568d9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8ee210deef98479a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0rojd4","thanks_reply_id":"c0romwu","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_d32a45663e3aa373","answerer_user_id":"anon_6485f59ed7881548","subreddit":"programming","timestamp":"2010-06-29T17:26:50+00:00","post_id":"ck80z","question":"When you get an answer before you ask for it: Study Functional Programming or Be Ignorant","preferred_answer":"Amen, brother. It's amazing that so many people have fallen for the pure FP myths.\n\nHere is another one: that by looking at the types of a function in Haskell, you can tell everything about the function's behavior. \n\nSo here are two haskell functions with the same type and different behavior:\n\n l n = if n == 1 then (l n - 1) else (l n + 1)\n x a b = seq (l 1) a\n y a b = a\n\nthe type of functions x and y is the same (a -> b -> a), but x does not return. So much for type safety and robustness.","full_conversation":[{"role":"OP","user_id":"anon_d32a45663e3aa373","comment_id":"ck80z","kind":"post","text":"When you get an answer before you ask for it: Study Functional Programming or Be Ignorant","timestamp":"2010-06-29T17:26:50+00:00","score":34},{"role":"answerer","user_id":"anon_6485f59ed7881548","comment_id":"c0t7ity","kind":"comment","text":"Amen, brother. It's amazing that so many people have fallen for the pure FP myths.\n\nHere is another one: that by looking at the types of a function in Haskell, you can tell everything about the function's behavior. \n\nSo here are two haskell functions with the same type and different behavior:\n\n l n = if n == 1 then (l n - 1) else (l n + 1)\n x a b = seq (l 1) a\n y a b = a\n\nthe type of functions x and y is the same (a -> b -> a), but x does not return. So much for type safety and robustness.","timestamp":"2010-06-30T11:50:23+00:00","score":-1},{"role":"OP","user_id":"anon_d32a45663e3aa373","comment_id":"c0t7k02","kind":"comment","text":"[ ] You solved the halting problem but the margin was too narrow to fit it\n\nThat nonwithstanding, of course, there's types where more than one function makes sense. That doesn't mean that in many cases, you can infer from more specific types that what you have there what a function does. Take, eg, \n\n foo :: Handle -> String -> IO ()\n\nWhile there's a version that puts a newline after the string and one that doesn't and in principle such a function _could_ call launchMissiles, the sanity conjecture implies that a function of such a type outputs a String to a Handle, in some way or the other.","timestamp":"2010-06-30T12:19:00+00:00","score":6},{"role":"answerer","user_id":"anon_6485f59ed7881548","comment_id":"c0t82i4","kind":"comment","text":"Which is false security, isn't it? many pure FP supporters claim just that, that by looking at the type of the function you have all the required information, due to referential transparency.","timestamp":"2010-06-30T16:22:42+00:00","score":1},{"role":"OP","user_id":"anon_d32a45663e3aa373","comment_id":"c0t8j91","kind":"comment","text":"You'd have to at least go dependently typed to get that, and even there there's a rift between practicality and security: Too fine-grained types clutter more than they tell. At some point, one just has to suspend disbelief and get stuff done.","timestamp":"2010-06-30T19:01:59+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d32a45663e3aa373","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6485f59ed7881548","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0t7ity","thanks_reply_id":"c0t7k02","post_score":34,"answer_score":-1,"preferred_answer_is_top_level":false}} {"user_id":"anon_bb649988a4538165","answerer_user_id":"anon_e390cd9eda753af5","subreddit":"programming","timestamp":"2010-07-07T20:13:51+00:00","post_id":"cn0fz","question":"Do you ever pay for PowerShell Modules?\n\nHey Reddit - PowerShell seems to be invading the Microsoft world, but I'm wondering if anyone ever buys PowerShell Modules and if so, how much did it cost? I know there are a lot of modules that are free, but a lot of times with free you get what you pay for. Are people willing to pay for useful additions?","preferred_answer":"I do a lot of powershell scripting, but the builtin commands have been enough for everything I need except for the Quest AD tools: http://www.quest.com/activeroles-server/arms.aspx\n\nSince the QAD tools are free, I've never paid for any modules.","full_conversation":[{"role":"OP","user_id":"anon_bb649988a4538165","comment_id":"cn0fz","kind":"post","text":"Do you ever pay for PowerShell Modules?\n\nHey Reddit - PowerShell seems to be invading the Microsoft world, but I'm wondering if anyone ever buys PowerShell Modules and if so, how much did it cost? I know there are a lot of modules that are free, but a lot of times with free you get what you pay for. Are people willing to pay for useful additions?","timestamp":"2010-07-07T20:13:51+00:00","score":0},{"role":"answerer","user_id":"anon_e390cd9eda753af5","comment_id":"c0tqppp","kind":"comment","text":"I do a lot of powershell scripting, but the builtin commands have been enough for everything I need except for the Quest AD tools: http://www.quest.com/activeroles-server/arms.aspx\n\nSince the QAD tools are free, I've never paid for any modules.","timestamp":"2010-07-07T21:47:23+00:00","score":1},{"role":"OP","user_id":"anon_bb649988a4538165","comment_id":"c0tt6fh","kind":"comment","text":"Thanks for the feedback. I know it makes sense for vendors like VMware to give free tools, but I haven't quite figured out the motivation for companies like Quest to offer free PowerShell modules. I know /nsoft has modules for sale, but I don't know if anyone is actually buying them.","timestamp":"2010-07-08T19:14:05+00:00","score":1},{"role":"answerer","user_id":"anon_e390cd9eda753af5","comment_id":"c0tth9q","kind":"comment","text":"I think Quest mostly gets good PR so they can sell more of their other products. And the quality seems to be really good. I have no idea if anyone is paying money for the other modules.","timestamp":"2010-07-08T20:51:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bb649988a4538165","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e390cd9eda753af5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0tqppp","thanks_reply_id":"c0tt6fh","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_4d1ca4257a61994c","answerer_user_id":"anon_b622a1a14163a44b","subreddit":"programming","timestamp":"2010-07-08T20:44:05+00:00","post_id":"cnfrc","question":"What are some interesting Open source projects I can try to help/tinker with?","preferred_answer":"It's in the damn FAQ. lrn2searchbetter\n\nhttp://www.reddit.com/help/faqs/programming#WhatsanopensourceprojectIcancontributeto","full_conversation":[{"role":"OP","user_id":"anon_4d1ca4257a61994c","comment_id":"cnfrc","kind":"post","text":"What are some interesting Open source projects I can try to help/tinker with?","timestamp":"2010-07-08T20:44:05+00:00","score":0},{"role":"answerer","user_id":"anon_b622a1a14163a44b","comment_id":"c0ttkge","kind":"comment","text":"It's in the damn FAQ. lrn2searchbetter\n\nhttp://www.reddit.com/help/faqs/programming#WhatsanopensourceprojectIcancontributeto","timestamp":"2010-07-08T21:21:53+00:00","score":1},{"role":"OP","user_id":"anon_4d1ca4257a61994c","comment_id":"c0ttkuy","kind":"comment","text":"well thank you damnit. I hadn't seen that even though I now feel slightly blind....\n\nEDIT: A large portion of those posts are useless as people are simply commenting on how unlikely it is that someone can contribute well by just wanting to contribute...","timestamp":"2010-07-08T21:25:48+00:00","score":1},{"role":"answerer","user_id":"anon_b622a1a14163a44b","comment_id":"c0ttx33","kind":"comment","text":"nevermind the negative ones, but the theme of those responses is still, and always will be, valid: if you're asking for suggestions for projects to work on, you're going about it the wrong way. find an existing project that you already use, and figure out how to make it better.\n\nat least to start off; once you understand how foss contributions and projects work, you can \"guide\" yourself into a project that you want to contribute to.","timestamp":"2010-07-08T23:45:21+00:00","score":1},{"role":"OP","user_id":"anon_4d1ca4257a61994c","comment_id":"c0tv677","kind":"comment","text":"I guess I see what you mean, thanks for pointing it out non-the-less, I like having multiple places to go and look for ideas like that.","timestamp":"2010-07-09T12:55:39+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_4d1ca4257a61994c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b622a1a14163a44b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ttkge","thanks_reply_id":"c0ttkuy","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_433a863949121a77","answerer_user_id":"anon_5df1008403daaef6","subreddit":"programming","timestamp":"2010-07-11T17:20:14+00:00","post_id":"cocqx","question":"How quickly can a C++/Java programmer learn C#.Net?","preferred_answer":"> I'm a long time C++ programmer and have done some Java programming in a J2EE environment. \n\nYou'll be perfectly fine. The syntax will be familiar. The paradigm (OOP) is the same. Most of the semantics are the same. You'll likely enjoy C# a bit more than Java since it's generics are a bit closer to C++ templates.\n\n> Where would be good place to start?\n\n1. Download Visual Studio Express. It's free and pretty close to the full IDE.\n2. Start writing some code.\n\nThe built in Intellisense will put enough documentation at your fingertips for you to learn pretty much everything. MSDN online is also good.\n\nWarning: after a while, it will make you hate Java.","full_conversation":[{"role":"OP","user_id":"anon_433a863949121a77","comment_id":"cocqx","kind":"post","text":"How quickly can a C++/Java programmer learn C#.Net?","timestamp":"2010-07-11T17:20:14+00:00","score":0},{"role":"answerer","user_id":"anon_5df1008403daaef6","comment_id":"c0u0ve4","kind":"comment","text":"> I'm a long time C++ programmer and have done some Java programming in a J2EE environment. \n\nYou'll be perfectly fine. The syntax will be familiar. The paradigm (OOP) is the same. Most of the semantics are the same. You'll likely enjoy C# a bit more than Java since it's generics are a bit closer to C++ templates.\n\n> Where would be good place to start?\n\n1. Download Visual Studio Express. It's free and pretty close to the full IDE.\n2. Start writing some code.\n\nThe built in Intellisense will put enough documentation at your fingertips for you to learn pretty much everything. MSDN online is also good.\n\nWarning: after a while, it will make you hate Java.","timestamp":"2010-07-11T17:43:08+00:00","score":4},{"role":"OP","user_id":"anon_433a863949121a77","comment_id":"c0u0wyr","kind":"comment","text":"Thanks. I already have the full version of Visual Studio.\n\nI looked over the MSDN tutorials. It looks more like Java than C++ to me.\n\nAre there any open-source projects using C#.Net?","timestamp":"2010-07-11T18:05:32+00:00","score":1},{"role":"answerer","user_id":"anon_5df1008403daaef6","comment_id":"c0u2ief","kind":"comment","text":"I have some [here](http://bitbucket.org/munificent/). Amaranth, Bramble, Magpie, Malison, and PatternMatching are all C#.","timestamp":"2010-07-12T06:54:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_433a863949121a77","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5df1008403daaef6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0u0ve4","thanks_reply_id":"c0u0wyr","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_cf4a47fc36751e3b","answerer_user_id":"anon_91e26e1bbe5de6fa","subreddit":"programming","timestamp":"2010-07-15T07:40:45+00:00","post_id":"cpsj8","question":"Do the arguments against software patents apply to all patents?\n\nTo clearly state my question, I'm not talking about the really crappy implementation of software patents where very obvious, vague and non-novel patents are granted, nor the millions of other really unfair exploits and abuses of patents that unscrupulous people undertake.\n\nNo, I mean given a really complex, original, brilliant idea and a scrupulous individual seeking modest profit from it - should that individual be able to patent their invention only if their invention is *not* software? What makes the arguments against patents valid for software, but not valid in opposing physical inventions? Or do you think they do apply and patents should not exist?","preferred_answer":"I think John Carmack said it well: http://slashdot.org/comments.pl?sid=151312&cid=12701745\n\nAnd to answer your original question: yes, they do apply.","full_conversation":[{"role":"OP","user_id":"anon_cf4a47fc36751e3b","comment_id":"cpsj8","kind":"post","text":"Do the arguments against software patents apply to all patents?\n\nTo clearly state my question, I'm not talking about the really crappy implementation of software patents where very obvious, vague and non-novel patents are granted, nor the millions of other really unfair exploits and abuses of patents that unscrupulous people undertake.\n\nNo, I mean given a really complex, original, brilliant idea and a scrupulous individual seeking modest profit from it - should that individual be able to patent their invention only if their invention is *not* software? What makes the arguments against patents valid for software, but not valid in opposing physical inventions? Or do you think they do apply and patents should not exist?","timestamp":"2010-07-15T07:40:45+00:00","score":26},{"role":"answerer","user_id":"anon_91e26e1bbe5de6fa","comment_id":"c0ubeyb","kind":"comment","text":"I think John Carmack said it well: http://slashdot.org/comments.pl?sid=151312&cid=12701745\n\nAnd to answer your original question: yes, they do apply.","timestamp":"2010-07-15T07:58:04+00:00","score":27},{"role":"OP","user_id":"anon_cf4a47fc36751e3b","comment_id":"c0udbjp","kind":"comment","text":"Thanks, I've read his answer, I think I understand where he's coming from and it's a reasonable argument. But where I disconnect is when I try to apply that reasoning to *some kinds* of non-software patents, like say the results of drug research. His examples don't seem to fit those sorts of cases, rare though they may be, do they?","timestamp":"2010-07-15T22:08:36+00:00","score":3},{"role":"answerer","user_id":"anon_91e26e1bbe5de6fa","comment_id":"c0uehac","kind":"comment","text":"How many people have invented the light bulb independently at the same time?\nWhy did Edison deserve the patent more than Joseph Swan?","timestamp":"2010-07-16T07:00:51+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cf4a47fc36751e3b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_91e26e1bbe5de6fa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0ubeyb","thanks_reply_id":"c0udbjp","post_score":26,"answer_score":27,"preferred_answer_is_top_level":true}} {"user_id":"anon_c0323f9574903d1b","answerer_user_id":"anon_3298d6ae1b0b882c","subreddit":"programming","timestamp":"2010-08-25T19:05:02+00:00","post_id":"d5e4p","question":"What do you think about learning web2py as a first programming language / framework","preferred_answer":"Ok so I have been reading this all these days, and decided to give web2py a real go. I have been working with frameworks like pylons,turbogears and even a bit of Django. For a newcomer I would definitely suggest him to focus on learning python and the good practices that come along with it , and which makes the language so unique. But when it comes to web development , for someone who is totally new to programming and terminology as such, there is definitely no beating web2py. I would ask the OP, how much does he know of web services, what does he know of REST and stuff, how much does he know AJAX. web2py does definitely make things such as these much easier for him. OK how easy it is to integrate repoze.what for a beginner into pylons or understanding the intricacies of repoze in turbogears. Well learning python should be the main goal and there is definitely no alternative to it.But as a framework web2py does a beautiful job , with excellent documentation. I would also suggest you to have a look at the pylons book (version 0.9.7) as it teaches you about web app development also apart from using pylons. Pylons is definitely beautiful but there are definitely some drawbacks as you would spend a lot of time assembling components to be used which of course was not your idea when you decided to use a framework. A framework as such should do its job of providing you with the best tools available and you have the job of using it properly to build what you want. and web2py just does that, It gives you all that you need to build a web app as you want.\nThanks Massimo.. just started using web2py and hope to continue it .. well as long as I dont get stuck, which I hope I wont! :-)","full_conversation":[{"role":"OP","user_id":"anon_c0323f9574903d1b","comment_id":"d5e4p","kind":"post","text":"What do you think about learning web2py as a first programming language / framework","timestamp":"2010-08-25T19:05:02+00:00","score":2},{"role":"answerer","user_id":"anon_3298d6ae1b0b882c","comment_id":"c0yc4tr","kind":"comment","text":"Ok so I have been reading this all these days, and decided to give web2py a real go. I have been working with frameworks like pylons,turbogears and even a bit of Django. For a newcomer I would definitely suggest him to focus on learning python and the good practices that come along with it , and which makes the language so unique. But when it comes to web development , for someone who is totally new to programming and terminology as such, there is definitely no beating web2py. I would ask the OP, how much does he know of web services, what does he know of REST and stuff, how much does he know AJAX. web2py does definitely make things such as these much easier for him. OK how easy it is to integrate repoze.what for a beginner into pylons or understanding the intricacies of repoze in turbogears. Well learning python should be the main goal and there is definitely no alternative to it.But as a framework web2py does a beautiful job , with excellent documentation. I would also suggest you to have a look at the pylons book (version 0.9.7) as it teaches you about web app development also apart from using pylons. Pylons is definitely beautiful but there are definitely some drawbacks as you would spend a lot of time assembling components to be used which of course was not your idea when you decided to use a framework. A framework as such should do its job of providing you with the best tools available and you have the job of using it properly to build what you want. and web2py just does that, It gives you all that you need to build a web app as you want.\nThanks Massimo.. just started using web2py and hope to continue it .. well as long as I dont get stuck, which I hope I wont! :-)","timestamp":"2010-09-02T03:34:39+00:00","score":1},{"role":"OP","user_id":"anon_c0323f9574903d1b","comment_id":"c0yl7ru","kind":"comment","text":"thanks for the reply, you seem like an experienced programmer and i have been also wondering about this:\n\ndifferent types of web applications seem to be written in certain types of languages most often - for example there are many social networks built with Ruby these days and many classified ads sites written in ASP, many web based business software applications written in Java , so:\n\nwhat would you say - what type of web applications is web2py most suitable for, or may be - wha type of web applications would you choose some other language/framework may be ...","timestamp":"2010-09-05T04:43:37+00:00","score":1},{"role":"answerer","user_id":"anon_3298d6ae1b0b882c","comment_id":"c0ymgzr","kind":"comment","text":"Well virb .. It depends! I guess you should just park those thoughts about the best framework for the best job etc aside... and just do one thing..learn the basic python language .. there are some real cool books written on the language and available free online...I guess web2py would do almost all the things you need. The best part is that you can deploy it on appspot without any change in code and can view your app online ...I suggest make a small blog and try doing everything on it.. facebook, twitter integration, rss feeds etc(will teach you about web services).. use different authentication techniques( will let you learn about ways of authentication).. try doing some e commerce on it.... try working with css, jquery stuff .. make RESTful URLs , have fun!.. use the various plugins provided and ask lots of questions in the mailing lists.. there is a lot to learn !","timestamp":"2010-09-05T18:44:32+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c0323f9574903d1b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3298d6ae1b0b882c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0yc4tr","thanks_reply_id":"c0yl7ru","post_score":2,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_ff3c1fd96a19765e","answerer_user_id":"anon_6168adea2ee9e00b","subreddit":"programming","timestamp":"2010-08-26T19:06:09+00:00","post_id":"d5u1f","question":"How do you communicate in real-time with your team? Chat room, twitter, etc?","preferred_answer":"I'm currently working on a really small 4 person team and we actually use Wave. Although I never really understood wave, or for that matter liked it very much, it works very well in this situation especially because we all telecommute. We keep a separate wave for each topic in our development process (e.g. Server stuff, client stuff, etc.) and stick to communicating about those topics in their waves. The best part of it is that when we make technical decisions etc in the wave and we later stumble across something in the code and ask ourselves \"Hey, why's that there?\" we can go into the wave for that topic and the history is all there including all the discussion up to that point. So I really do think Wave is a great way to communicate across development teams, and it really seems like this is what google should have marketed it for. On top of that we also use [scrumy](http://scrumy.com) to keep track of our to-do's so we can all have a good idea of what everyone else is working on.","full_conversation":[{"role":"OP","user_id":"anon_ff3c1fd96a19765e","comment_id":"d5u1f","kind":"post","text":"How do you communicate in real-time with your team? Chat room, twitter, etc?","timestamp":"2010-08-26T19:06:09+00:00","score":3},{"role":"answerer","user_id":"anon_6168adea2ee9e00b","comment_id":"c0xrzxh","kind":"comment","text":"I'm currently working on a really small 4 person team and we actually use Wave. Although I never really understood wave, or for that matter liked it very much, it works very well in this situation especially because we all telecommute. We keep a separate wave for each topic in our development process (e.g. Server stuff, client stuff, etc.) and stick to communicating about those topics in their waves. The best part of it is that when we make technical decisions etc in the wave and we later stumble across something in the code and ask ourselves \"Hey, why's that there?\" we can go into the wave for that topic and the history is all there including all the discussion up to that point. So I really do think Wave is a great way to communicate across development teams, and it really seems like this is what google should have marketed it for. On top of that we also use [scrumy](http://scrumy.com) to keep track of our to-do's so we can all have a good idea of what everyone else is working on.","timestamp":"2010-08-26T19:27:46+00:00","score":3},{"role":"OP","user_id":"anon_ff3c1fd96a19765e","comment_id":"c0xs0by","kind":"comment","text":"Thanks for providing a real answer. :)","timestamp":"2010-08-26T19:31:27+00:00","score":2},{"role":"answerer","user_id":"anon_6168adea2ee9e00b","comment_id":"c0xs11c","kind":"comment","text":"No problem, I've noticed in this subreddit not a lot of people are really here to answer questions. For that matter I don't really see a nice place on reddit for programmers to ask questions like this or to get help from other programmers.","timestamp":"2010-08-26T19:38:06+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ff3c1fd96a19765e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6168adea2ee9e00b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0xrzxh","thanks_reply_id":"c0xs0by","post_score":3,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_ab8f7702038f3762","answerer_user_id":"anon_442a0853ff824d03","subreddit":"programming","timestamp":"2010-08-30T08:00:24+00:00","post_id":"d74si","question":"Problems in artificial intelligence research?","preferred_answer":"From the SO post, it seems that you are an undergrad - are you trying to find something to do in your spare time, or something to do for your university career?\n\nIf it's the latter, I would recommend that you get in touch with each of the relevant professors at your university, and discuss with them. Typically they have several topics ready to be thrown at young students, usually in areas where they have some expertise. You could then think about what you want to do, and choose. The upside is that they will be able to help you, and may even have some grant money available. You are still young (I am guessing), and it's probably a good idea to have a decent amount of supervision at that point. Reasearch is not too simple, and you can save a lot of time and heartache this way. The rule of thumb is generally that late undergrad courses introduce you to research, masters-level degrees try to prove that you are capable of doing quality research with less supervision, and PhDs try to prove that you are able to contribute something new to science. There is a reason why this is spread out, and I sort of agree with it, having progressed some way down this scale. I would definitely have had a different opinion 10 years ago.\n\nIf you want to do this as a hobby, then I don't really have too much advice. What you need to figure out is what really interests you, but also preferably to find an area which has interesting new problems. Solving problems that have been solved before can be fun, but ultimately don't really get you anything, academically at least.","full_conversation":[{"role":"OP","user_id":"anon_ab8f7702038f3762","comment_id":"d74si","kind":"post","text":"Problems in artificial intelligence research?","timestamp":"2010-08-30T08:00:24+00:00","score":33},{"role":"answerer","user_id":"anon_442a0853ff824d03","comment_id":"c0y28no","kind":"comment","text":"From the SO post, it seems that you are an undergrad - are you trying to find something to do in your spare time, or something to do for your university career?\n\nIf it's the latter, I would recommend that you get in touch with each of the relevant professors at your university, and discuss with them. Typically they have several topics ready to be thrown at young students, usually in areas where they have some expertise. You could then think about what you want to do, and choose. The upside is that they will be able to help you, and may even have some grant money available. You are still young (I am guessing), and it's probably a good idea to have a decent amount of supervision at that point. Reasearch is not too simple, and you can save a lot of time and heartache this way. The rule of thumb is generally that late undergrad courses introduce you to research, masters-level degrees try to prove that you are capable of doing quality research with less supervision, and PhDs try to prove that you are able to contribute something new to science. There is a reason why this is spread out, and I sort of agree with it, having progressed some way down this scale. I would definitely have had a different opinion 10 years ago.\n\nIf you want to do this as a hobby, then I don't really have too much advice. What you need to figure out is what really interests you, but also preferably to find an area which has interesting new problems. Solving problems that have been solved before can be fun, but ultimately don't really get you anything, academically at least.","timestamp":"2010-08-30T11:34:42+00:00","score":2},{"role":"OP","user_id":"anon_ab8f7702038f3762","comment_id":"c0y2a6z","kind":"comment","text":"Thank you very much! This helps a ton.\n\nFor the record, I'm trying to find something to do both in my spare time to become acquainted with AI on a research level, AND, to find something to do for my university career. I am young (20 on September 22) with only one REU in nanotech, as I've mentioned in my post on SO.\n\nThanks a lot for your response. I will definitely take your advice. :)","timestamp":"2010-08-30T12:10:14+00:00","score":1},{"role":"answerer","user_id":"anon_442a0853ff824d03","comment_id":"c0y2bae","kind":"comment","text":"Glad I could help, and enjoy :)","timestamp":"2010-08-30T12:33:27+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ab8f7702038f3762","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_442a0853ff824d03","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0y28no","thanks_reply_id":"c0y2a6z","post_score":33,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_451ab2b0b5d9a846","answerer_user_id":"anon_cf12287852a62cb6","subreddit":"programming","timestamp":"2010-09-12T17:56:27+00:00","post_id":"dcv9w","question":"Is Antirez approach still valid today ? 3 years ago discussion, still interesting","preferred_answer":"I used this same image. Here is the code: http://pastebin.com/Q4SzQjPf \n\nI ran it locally, maybe that's why here it worked.","full_conversation":[{"role":"OP","user_id":"anon_451ab2b0b5d9a846","comment_id":"dcv9w","kind":"post","text":"Is Antirez approach still valid today ? 3 years ago discussion, still interesting","timestamp":"2010-09-12T17:56:27+00:00","score":8},{"role":"answerer","user_id":"anon_cf12287852a62cb6","comment_id":"c0z9r8k","kind":"comment","text":"I used this same image. Here is the code: http://pastebin.com/Q4SzQjPf \n\nI ran it locally, maybe that's why here it worked.","timestamp":"2010-09-12T21:27:39+00:00","score":1},{"role":"OP","user_id":"anon_451ab2b0b5d9a846","comment_id":"c0z9rqs","kind":"comment","text":"Yes thanks, it works even on a webserver anyway. It is not related to running it locally. Do you think there is any way to make it work in Chrome too ? Google has been evil even in introducing this change without noticing to anybody, anywhere. And they do almost control the web. I feel this is not fair at all.","timestamp":"2010-09-12T21:32:35+00:00","score":1},{"role":"answerer","user_id":"anon_cf12287852a62cb6","comment_id":"c0z9rzn","kind":"comment","text":"I don't think that this is some change from Google, as I tested it on Safari and it didn't work either. \n\nNow I'm curious to know if this works on IE7/8/9.","timestamp":"2010-09-12T21:34:53+00:00","score":1},{"role":"OP","user_id":"anon_451ab2b0b5d9a846","comment_id":"c0z9ts7","kind":"comment","text":"I confirm it does not work in safari on Windows, nor in IE 8, but it works on Opera 9.8. If you have a chance try it also on Chrome 5, too see if it is related to the latest changes introduced in chrome 6 and 7, but i am sure it is more likely related to different inner workings on that specific part of code, of the WebKit engine that both Safari and Chrome share.","timestamp":"2010-09-12T21:52:26+00:00","score":1},{"role":"answerer","user_id":"anon_cf12287852a62cb6","comment_id":"c0z9u3x","kind":"comment","text":"I only have the last build of Chrome, sorry. \n\nIt's a shame it doesn't work on IE8 too.","timestamp":"2010-09-12T21:55:45+00:00","score":1},{"role":"OP","user_id":"anon_451ab2b0b5d9a846","comment_id":"c0z9vq7","kind":"comment","text":"I have just tested in on Chrome 5 and it does not work. So it is highly probable that it is related to how Webkit treats cached images. IE, you know how they work.. no comment is needed.","timestamp":"2010-09-12T22:11:54+00:00","score":2},{"role":"answerer","user_id":"anon_cf12287852a62cb6","comment_id":"c0za481","kind":"comment","text":"Thanks for the follow up!","timestamp":"2010-09-12T23:39:57+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_451ab2b0b5d9a846","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cf12287852a62cb6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c0z9r8k","thanks_reply_id":"c0z9rqs","post_score":8,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_9308b4c4c759296a","answerer_user_id":"anon_31a238f418d7e549","subreddit":"programming","timestamp":"2010-09-22T20:11:34+00:00","post_id":"dhi8x","question":"Does anyone know what technology they use to make this page so fast? I'm impressed.","preferred_answer":"It seems like everything is loaded in one shot and then just switched between using javascript, no not even ajax to fetch the new text.\n\nWith firbug netpanel open i just get 2-5 requests to some analytics when switching between the pages.\n\nI didnt dig much deeper but that's also the most logical explanation. Nothing can be that fast that has to travel over the internet.","full_conversation":[{"role":"OP","user_id":"anon_9308b4c4c759296a","comment_id":"dhi8x","kind":"post","text":"Does anyone know what technology they use to make this page so fast? I'm impressed.","timestamp":"2010-09-22T20:11:34+00:00","score":0},{"role":"answerer","user_id":"anon_31a238f418d7e549","comment_id":"c108odj","kind":"comment","text":"It seems like everything is loaded in one shot and then just switched between using javascript, no not even ajax to fetch the new text.\n\nWith firbug netpanel open i just get 2-5 requests to some analytics when switching between the pages.\n\nI didnt dig much deeper but that's also the most logical explanation. Nothing can be that fast that has to travel over the internet.","timestamp":"2010-09-22T21:04:10+00:00","score":8},{"role":"OP","user_id":"anon_9308b4c4c759296a","comment_id":"c108p45","kind":"comment","text":"Thank you. Do you have any idea why this isn't the standard way of doing things?","timestamp":"2010-09-22T21:10:54+00:00","score":2},{"role":"answerer","user_id":"anon_31a238f418d7e549","comment_id":"c108rvy","kind":"comment","text":"Not every page is suited for this as you have to predict what users want to read otherwhise you will transfer alot of data that's never used. Imagine preloading the comments for every reddit submission from the frontpage. Here they even do the opposite (load more comments button at the end of the page).\n\nIt also requires javascript and linking/bookmarking becomes harder.\n\nIt might also have something to do with banner impressions.\n\nBut yes, why isn't this the standard way of doing things?! There's way too many slow pages out there.","timestamp":"2010-09-22T21:35:13+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9308b4c4c759296a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_31a238f418d7e549","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c108odj","thanks_reply_id":"c108p45","post_score":0,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_37114dd466d8c1c7","answerer_user_id":"anon_b79720b297410db7","subreddit":"programming","timestamp":"2010-10-01T16:02:22+00:00","post_id":"dljmp","question":"Hey reddit, how do you like my HTML 5 techno/trance music site? What can I improve?","preferred_answer":"You could solve that with CSS media queries. For example:\r\n\r\n #those_links {\r\n display: none;\r\n }\r\n @media all and (min-width: 1000px) {\r\n #those_links {\r\n display: block;\r\n }\r\n }\r\n\r\nOr, skip the initial display none and use a max-width with a display: none inside the block.\r\n\r\nOr, skip that and adjust the css etc. so the bars are shown with < 1024 x 768.","full_conversation":[{"role":"OP","user_id":"anon_37114dd466d8c1c7","comment_id":"dljmp","kind":"post","text":"Hey reddit, how do you like my HTML 5 techno/trance music site? What can I improve?","timestamp":"2010-10-01T16:02:22+00:00","score":110},{"role":"answerer","user_id":"anon_b79720b297410db7","comment_id":"c113yhi","kind":"comment","text":"You could solve that with CSS media queries. For example:\r\n\r\n #those_links {\r\n display: none;\r\n }\r\n @media all and (min-width: 1000px) {\r\n #those_links {\r\n display: block;\r\n }\r\n }\r\n\r\nOr, skip the initial display none and use a max-width with a display: none inside the block.\r\n\r\nOr, skip that and adjust the css etc. so the bars are shown with < 1024 x 768.","timestamp":"2010-10-01T19:55:53+00:00","score":1},{"role":"OP","user_id":"anon_37114dd466d8c1c7","comment_id":"c113zex","kind":"comment","text":"Ah thanks for the tip. I don't think I've ever use logic in CSS like that before, does it only work with CSS 3? 0_o\n\nAnyhow, I added that in, would you mind trying it at your resolution and seeing if it hides those links? Thanks!","timestamp":"2010-10-01T20:02:40+00:00","score":1},{"role":"answerer","user_id":"anon_b79720b297410db7","comment_id":"c1140ct","kind":"comment","text":"> it only work with CSS 3\r\n\r\nYeh. And, I think it might work best with Opera as Opera dynamically updates based on the queries. It used to only do it on page load. Not sure about other browsers.\r\n\r\n> Anyhow, I added that in, would you mind trying it at your resolution and seeing if it hides those links? Thanks!\r\n\r\nAt 800x600 I don't see the links. At 1024 x 768 I do, which is cool.\r\n\r\nNote that the 1000px I suggested may have to be tweaked. I didn't test the exact cut-off for when the bars on the side don't show.","timestamp":"2010-10-01T20:10:09+00:00","score":1},{"role":"OP","user_id":"anon_37114dd466d8c1c7","comment_id":"c1141u7","kind":"comment","text":">At 800x600 I don't see the links. At 1024 x 768 I do, which is cool.\nNote that the 1000px I suggested may have to be tweaked. I didn't test the exact cut-off for when the bars on the side don't show.\n\nThat is indeed cool. :)\n\nChecked the dimensions, and 1k px actually is pretty good. It shows a decent part of the background graphic, so I'd say your original estimate was pretty good.","timestamp":"2010-10-01T20:23:11+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_37114dd466d8c1c7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b79720b297410db7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c113yhi","thanks_reply_id":"c113zex","post_score":110,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_d4e078c28ed1088d","answerer_user_id":"anon_0309d091f1de2f22","subreddit":"programming","timestamp":"2010-10-01T17:16:42+00:00","post_id":"dlkt7","question":"Which web dev language/framework/tutorials do you suggest for an experienced non-web developer?","preferred_answer":"Lets just make one distinction here... do you want to build web *sites*, or web *applications*?","full_conversation":[{"role":"OP","user_id":"anon_d4e078c28ed1088d","comment_id":"dlkt7","kind":"post","text":"Which web dev language/framework/tutorials do you suggest for an experienced non-web developer?","timestamp":"2010-10-01T17:16:42+00:00","score":14},{"role":"answerer","user_id":"anon_0309d091f1de2f22","comment_id":"c113i2g","kind":"comment","text":"Lets just make one distinction here... do you want to build web *sites*, or web *applications*?","timestamp":"2010-10-01T17:51:47+00:00","score":7},{"role":"OP","user_id":"anon_d4e078c28ed1088d","comment_id":"c113iib","kind":"comment","text":"Thanks, I guess I have been imprecise the whole time. I want to build web apps. While graphic design and layout are fun and dandy, they are not for me.","timestamp":"2010-10-01T17:54:59+00:00","score":3},{"role":"answerer","user_id":"anon_0309d091f1de2f22","comment_id":"c113jw3","kind":"comment","text":"Okay... in that case, I would start looking at some popular web application frameworks (RoR, CakePHP, etc)... learning how to use them, and getting started. \n\nIf you're not familiar with the MVC (Model-View-Controller) pattern, I would suggest learning that first. Most of what you do on the web will be MVC-based.\n\nIf you were a web designer (building web sites)... you'd be more concerned with fancy layouts, graphics design, and a little bit of scripting. In *that* case, I'd have recommended installing Wordpress, Joomla, or some other kind of CMS software.","timestamp":"2010-10-01T18:05:28+00:00","score":3},{"role":"OP","user_id":"anon_d4e078c28ed1088d","comment_id":"c113l5n","kind":"comment","text":">If you're not familiar with the MVC (Model-View-Controller) pattern, I would suggest learning that first. Most of what you do on the web will be MVC-based.\n\nGlad to hear it, I generally prefer this pattern for my offline apps.","timestamp":"2010-10-01T18:15:39+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d4e078c28ed1088d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0309d091f1de2f22","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c113i2g","thanks_reply_id":"c113iib","post_score":14,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_ae5bbfefc0b54483","answerer_user_id":"anon_e3349c7fa94d212f","subreddit":"programming","timestamp":"2010-10-09T18:41:08+00:00","post_id":"dp235","question":"Proggit, I can't wrap my head around Generics, specifically for Java. Can you link me to a good, clear explanation/tutorial/movie?","preferred_answer":"Before generics:\n\nArrayList arr = new ArrayList();\n\narr.add(instanceOfRectangle);\n\nRectangle first = (Rectangle) arr.get(0);\n\n\nAfter generics:\n\nArrayList arr = new ArrayList();\n\narr.add(instanceOfRectangle);\n\nRectangle first = arr.get(0);\n\nThere's not much to it. Instead of storing everything as Object and casting things later, you can specify which type of element you'd like to store.\n\nIf you want to see a working example of how to implement generics for your class, just look at the source of ArrayList or similar in 1.5 and higher.","full_conversation":[{"role":"OP","user_id":"anon_ae5bbfefc0b54483","comment_id":"dp235","kind":"post","text":"Proggit, I can't wrap my head around Generics, specifically for Java. Can you link me to a good, clear explanation/tutorial/movie?","timestamp":"2010-10-09T18:41:08+00:00","score":0},{"role":"answerer","user_id":"anon_e3349c7fa94d212f","comment_id":"c11unuq","kind":"comment","text":"Before generics:\n\nArrayList arr = new ArrayList();\n\narr.add(instanceOfRectangle);\n\nRectangle first = (Rectangle) arr.get(0);\n\n\nAfter generics:\n\nArrayList arr = new ArrayList();\n\narr.add(instanceOfRectangle);\n\nRectangle first = arr.get(0);\n\nThere's not much to it. Instead of storing everything as Object and casting things later, you can specify which type of element you'd like to store.\n\nIf you want to see a working example of how to implement generics for your class, just look at the source of ArrayList or similar in 1.5 and higher.","timestamp":"2010-10-09T20:26:55+00:00","score":2},{"role":"OP","user_id":"anon_ae5bbfefc0b54483","comment_id":"c11ure9","kind":"comment","text":"Thanks gimpwiz. I know how to use generics in arrays and other data structures more or less, I just can't get my head around writing a class that is itself generic. \n\nThis is likely a stupid question, but where would I find the source for ArrayList? Is it in the JDK somewhere?","timestamp":"2010-10-09T21:05:28+00:00","score":1},{"role":"answerer","user_id":"anon_e3349c7fa94d212f","comment_id":"c1229yl","kind":"comment","text":"I like to use docjar.com. While occasionally dated, you can always select source instead of javadoc from the top.\n\nExample: http://www.docjar.com/docs/api/java/util/ArrayList.html","timestamp":"2010-10-12T03:46:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ae5bbfefc0b54483","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e3349c7fa94d212f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c11unuq","thanks_reply_id":"c11ure9","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_cb5a8fcd0c42ec92","answerer_user_id":"anon_e427f0cb5c033c4b","subreddit":"programming","timestamp":"2010-10-14T13:56:15+00:00","post_id":"dr5rk","question":"Hey Reddit, what do you think of my site that lets you slide through old Reddit frontpages?","preferred_answer":"very cool indeed.\n\nI think i might even bookmark it.","full_conversation":[{"role":"OP","user_id":"anon_cb5a8fcd0c42ec92","comment_id":"dr5rk","kind":"post","text":"Hey Reddit, what do you think of my site that lets you slide through old Reddit frontpages?","timestamp":"2010-10-14T13:56:15+00:00","score":1965},{"role":"answerer","user_id":"anon_e427f0cb5c033c4b","comment_id":"c12a2aw","kind":"comment","text":"very cool indeed.\n\nI think i might even bookmark it.","timestamp":"2010-10-14T14:06:04+00:00","score":198},{"role":"OP","user_id":"anon_cb5a8fcd0c42ec92","comment_id":"c12a33m","kind":"comment","text":"Thank you! It makes me feel warm and fuzzy.\n\nEDIT: In a totally nonsexual and silly way.","timestamp":"2010-10-14T14:14:05+00:00","score":119},{"role":"answerer","user_id":"anon_e427f0cb5c033c4b","comment_id":"c12bf7y","kind":"comment","text":"no thank you, you made my day","timestamp":"2010-10-14T21:41:47+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cb5a8fcd0c42ec92","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e427f0cb5c033c4b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c12a2aw","thanks_reply_id":"c12a33m","post_score":1965,"answer_score":198,"preferred_answer_is_top_level":true}} {"user_id":"anon_52356717a51aa60d","answerer_user_id":"anon_696c3bc5c752ce41","subreddit":"programming","timestamp":"2010-10-18T02:13:20+00:00","post_id":"dslh7","question":"My course's online quizzes do this thing where they cut off their own navigation buttons. I can't use anything but Internet Explorer. Is there anything I can do?","preferred_answer":"Sometimes zooming the page out, or zooming out only the text, can reveal hidden details.","full_conversation":[{"role":"OP","user_id":"anon_52356717a51aa60d","comment_id":"dslh7","kind":"post","text":"My course's online quizzes do this thing where they cut off their own navigation buttons. I can't use anything but Internet Explorer. Is there anything I can do?","timestamp":"2010-10-18T02:13:20+00:00","score":0},{"role":"answerer","user_id":"anon_696c3bc5c752ce41","comment_id":"c12lje4","kind":"comment","text":"Sometimes zooming the page out, or zooming out only the text, can reveal hidden details.","timestamp":"2010-10-18T02:22:38+00:00","score":3},{"role":"OP","user_id":"anon_52356717a51aa60d","comment_id":"c12ljrk","kind":"comment","text":"That seems plausible... I could very well be an idiot. Thanks!","timestamp":"2010-10-18T02:26:12+00:00","score":1},{"role":"answerer","user_id":"anon_696c3bc5c752ce41","comment_id":"c12m1lr","kind":"comment","text":"Everyone's got a little idiot in them ;)","timestamp":"2010-10-18T05:16:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_52356717a51aa60d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_696c3bc5c752ce41","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c12lje4","thanks_reply_id":"c12ljrk","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_1dff09a74b19cb30","answerer_user_id":"anon_b5be4e4bbc86fd9f","subreddit":"programming","timestamp":"2010-10-27T02:24:51+00:00","post_id":"dwy0r","question":"Seeing as purchasing VPN access isn't plausible for all financially, how does a college student go about defending themselves from Firesheep attacks without cutting all access to open networks?","preferred_answer":"My university offered a free VPN service. You should see if yours does the same.","full_conversation":[{"role":"OP","user_id":"anon_1dff09a74b19cb30","comment_id":"dwy0r","kind":"post","text":"Seeing as purchasing VPN access isn't plausible for all financially, how does a college student go about defending themselves from Firesheep attacks without cutting all access to open networks?","timestamp":"2010-10-27T02:24:51+00:00","score":0},{"role":"answerer","user_id":"anon_b5be4e4bbc86fd9f","comment_id":"c13jmo9","kind":"comment","text":"My university offered a free VPN service. You should see if yours does the same.","timestamp":"2010-10-27T02:29:59+00:00","score":1},{"role":"OP","user_id":"anon_1dff09a74b19cb30","comment_id":"c13jngg","kind":"comment","text":"Thanks, I'll be sure to check on that tomorrow. I know they have a VPN client but I think it's used to download from a specific server they have. Also, any information on how I could then use the VPN service to access the public student network? (Permitting they have such a service for me to utilize)","timestamp":"2010-10-27T02:35:47+00:00","score":1},{"role":"answerer","user_id":"anon_b5be4e4bbc86fd9f","comment_id":"c13jnos","kind":"comment","text":"Just set up your network to route all Internet traffic over the VPN. How to do that depends on your OS.","timestamp":"2010-10-27T02:37:25+00:00","score":1},{"role":"OP","user_id":"anon_1dff09a74b19cb30","comment_id":"c13joxi","kind":"comment","text":"I'm sure I can figure it out. However, any ideas besides completely censoring a great deal of my website usage if I don't have access to a VPN?","timestamp":"2010-10-27T02:46:46+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_1dff09a74b19cb30","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b5be4e4bbc86fd9f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c13jmo9","thanks_reply_id":"c13jngg","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_0f68e5998c5c37b3","answerer_user_id":"anon_c30f5956386327f9","subreddit":"programming","timestamp":"2010-11-19T19:59:12+00:00","post_id":"e8t30","question":"Reddit: Can you help me out with Rainmeter, please?","preferred_answer":"That looks like the time config and not the sunset/sunrise config.\n\nEDIT: Just noticed you also had a problem with that. Increase the width under [MeterTime] to let's say 650.","full_conversation":[{"role":"OP","user_id":"anon_0f68e5998c5c37b3","comment_id":"e8t30","kind":"post","text":"Reddit: Can you help me out with Rainmeter, please?","timestamp":"2010-11-19T19:59:12+00:00","score":1},{"role":"answerer","user_id":"anon_c30f5956386327f9","comment_id":"c167qq5","kind":"comment","text":"That looks like the time config and not the sunset/sunrise config.\n\nEDIT: Just noticed you also had a problem with that. Increase the width under [MeterTime] to let's say 650.","timestamp":"2010-11-19T20:12:03+00:00","score":3},{"role":"OP","user_id":"anon_0f68e5998c5c37b3","comment_id":"c167rqc","kind":"comment","text":"Wicked... Thanks, that one fixed. But I'm still missing half the \"T\" at the start of the sun will rise. I've increased the W= enough to get the last bit of it, but I can't seem to get that first bit. Any ideas?","timestamp":"2010-11-19T20:19:00+00:00","score":1},{"role":"answerer","user_id":"anon_c30f5956386327f9","comment_id":"c167soz","kind":"comment","text":"Try changing the X value to 110 under [MeterRise], [MeterGreeting] and [MeterSet].\n\nBtw the skin is designed to be used with the font that came with it, that's why this is happening. ;)","timestamp":"2010-11-19T20:26:02+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0f68e5998c5c37b3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c30f5956386327f9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c167qq5","thanks_reply_id":"c167rqc","post_score":1,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_c77ad4370ae18f68","answerer_user_id":"anon_ed5d965743c531bb","subreddit":"programming","timestamp":"2010-12-08T00:57:24+00:00","post_id":"ehzi6","question":"Hate to ask, but is Assange's encrypted poison pill \"hackable\"?","preferred_answer":"Absolutely. Any form of encryption that is reversible is crackable.\n\nHowever, if someone were to start brute-forcing the password today, it would take trillions of years to crack. You would be better off waiting for a breakthrough in encryption technology or until the speed of computers increases over the next thousand years or so.","full_conversation":[{"role":"OP","user_id":"anon_c77ad4370ae18f68","comment_id":"ehzi6","kind":"post","text":"Hate to ask, but is Assange's encrypted poison pill \"hackable\"?","timestamp":"2010-12-08T00:57:24+00:00","score":0},{"role":"answerer","user_id":"anon_ed5d965743c531bb","comment_id":"c188aq4","kind":"comment","text":"Absolutely. Any form of encryption that is reversible is crackable.\n\nHowever, if someone were to start brute-forcing the password today, it would take trillions of years to crack. You would be better off waiting for a breakthrough in encryption technology or until the speed of computers increases over the next thousand years or so.","timestamp":"2010-12-08T01:18:26+00:00","score":2},{"role":"OP","user_id":"anon_c77ad4370ae18f68","comment_id":"c188gk8","kind":"comment","text":"thanks. I know a teenie weenie bit about cryptography (RSA rules! is pretty much the extent of my knowledge) but was just curious if a determined decoder could get the job done. Would make for a hell of a press scoop.","timestamp":"2010-12-08T01:57:30+00:00","score":2},{"role":"answerer","user_id":"anon_ed5d965743c531bb","comment_id":"c188hb8","kind":"comment","text":"It will not be broken in our lifetime without Julian giving us the key.\n\nThe only way I could see it happening would be if the key was somehow stolen. I assume it's recorded somewhere. It would just be a matter of getting a hold of it.","timestamp":"2010-12-08T02:02:42+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c77ad4370ae18f68","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ed5d965743c531bb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c188aq4","thanks_reply_id":"c188gk8","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_601317e3dc36f7d2","answerer_user_id":"anon_42a09b6ca72eb3ce","subreddit":"programming","timestamp":"2010-12-26T01:17:31+00:00","post_id":"ergnq","question":"Could someone please make a comprehensive list like this for a person trying to get into programming without attending classes?","preferred_answer":"The thing is, we can't really break down a list of things for programming. Computer science, yes. Programming, no.\n\nWe can tell you that:\n\n* You need to start with at least one programming language.\n* That if you aren't comfortable with basic algebra and basic trigonometry, you should learn. A number of programs involve some basic calculations at that level.\n* You need to work on projects of increasing complexity to learn.\n* You should expose yourself to new programming languages and concepts if you want to grow as a programmer.\n\nBut there isn't a list per se. You ask me how to play piano, I tell you to play piano. You need to practice increasingly complex pieces. You want to be a good programmer? Write programs...","full_conversation":[{"role":"OP","user_id":"anon_601317e3dc36f7d2","comment_id":"ergnq","kind":"post","text":"Could someone please make a comprehensive list like this for a person trying to get into programming without attending classes?","timestamp":"2010-12-26T01:17:31+00:00","score":3},{"role":"answerer","user_id":"anon_42a09b6ca72eb3ce","comment_id":"c1abyie","kind":"comment","text":"The thing is, we can't really break down a list of things for programming. Computer science, yes. Programming, no.\n\nWe can tell you that:\n\n* You need to start with at least one programming language.\n* That if you aren't comfortable with basic algebra and basic trigonometry, you should learn. A number of programs involve some basic calculations at that level.\n* You need to work on projects of increasing complexity to learn.\n* You should expose yourself to new programming languages and concepts if you want to grow as a programmer.\n\nBut there isn't a list per se. You ask me how to play piano, I tell you to play piano. You need to practice increasingly complex pieces. You want to be a good programmer? Write programs...","timestamp":"2010-12-26T01:51:58+00:00","score":3},{"role":"OP","user_id":"anon_601317e3dc36f7d2","comment_id":"c1ac23z","kind":"comment","text":"I appreciate that response, \"how to draw an owl\" as it may be. I mean I have literally no experience on the topic--any guidance for a language to start on? Where do I click on my computer to start creating a very first \"hello world?\" Any concrete steps for me? (Consider me the guy like one step away from deleting system 32 at your suggestion--I could use a FIRST step here if you have one to offer)\n\nI have the trig and the determination.\n\nAre you willing to do computer science in that style if that is more doable?","timestamp":"2010-12-26T02:29:52+00:00","score":1},{"role":"answerer","user_id":"anon_42a09b6ca72eb3ce","comment_id":"c1ac4c1","kind":"comment","text":"> any guidance for a language to start on?\n\nI almost always tell beginners to start with Python. I also think C# and Ruby make good starting points for beginners. Feel free to choose something else if you feel compelled to, but I think Python and C# tend to be most valuable for beginners.\n\n> Where do I click on my computer to start creating a very first \"hello world?\"\n\nYou'll need a plain text editor to type in code. Basically, a file containing nothing but text (written in your chosen language). You can do this with Notepad, although no one uses Notepad except in an extreme case. If you get an IDE, this type of program will contain an editor for you to type in text.\n\nAn editor isn't very useful without a set of tools to work with the code. It's some kind of language implementation. For example, in Python, it's typically the CPython implementation, the official one you get from the website. With C++, on the other hand, there is no canonical implementation, but the most common ones are gcc and Visual C++. What you do with the implementation depends. You'll have instructions to follow.\n\nIDEs and perhaps editors tend to support different languages, so clearly the first thing you should do is choose a language. The websites for the language or language implementations will probably give you getting started directions. If you're having trouble figuring out how to start with a language, ask away, but pick one first.\n\n> Are you willing to do computer science in that style if that is more doable?\n\nYes, but CS isn't programming, and I think you want to know how to get started with programming, rather than a discussion of what theory people learn. The base starting point for CS is elementary data structures and algorithms. If you're interested, Skiena's The Algorithm Design Manual can show you what it's like (assuming you can program first).","timestamp":"2010-12-26T02:52:34+00:00","score":5},{"role":"OP","user_id":"anon_601317e3dc36f7d2","comment_id":"c1ac4ut","kind":"comment","text":"I wish I could upvote you twice. This was exactly what I was seeking. Thank you.\n\nAnyone mind helping me evaluate which language would be most appropriate to start on? I'm leaning toward Python because I was a Jake the Snake fan when I was like eight years old, but I fear that isn't the best reason to choose a language.","timestamp":"2010-12-26T02:57:56+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_601317e3dc36f7d2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_42a09b6ca72eb3ce","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1abyie","thanks_reply_id":"c1ac23z","post_score":3,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_e6d99e705674356f","answerer_user_id":"anon_dc011a2a55d4a667","subreddit":"programming","timestamp":"2011-01-01T10:03:42+00:00","post_id":"eui2x","question":"Why are scripting languages (e.g. Perl, Python, Ruby) not suitable as shell languages? - Stack Overflow","preferred_answer":"Forgive me, but you're building up a false dichotomy here. The *only* thing a shell language does need is custom syntax for spawning processes, interacting with their input and output, and eventually for exploring the filesystem.\n\nThe resultant \"frankenlanguage\" as you say it, exists, it's called PowerShell. It's a shame that the only modern shell language is proprietary, but it does in itself totally evaporates the dichotomy you built, and you can totally write serious programs in it. \n\nTo be more general, just because you have the ability built in the language to make commands convenient for shell one liners, does not mean you're gonna use it to build serious programs. To push the metaphor, it would be like saying lambda functions makes you write less clear code. That would be ridiculous, because every programmers using a language with lambdas does know when to use it, and when not to.\n\nSame thing for the ternary operator, and for almost any type saving feature ever invented for any language.","full_conversation":[{"role":"OP","user_id":"anon_e6d99e705674356f","comment_id":"eui2x","kind":"post","text":"Why are scripting languages (e.g. Perl, Python, Ruby) not suitable as shell languages? - Stack Overflow","timestamp":"2011-01-01T10:03:42+00:00","score":193},{"role":"answerer","user_id":"anon_dc011a2a55d4a667","comment_id":"c1b2pw9","kind":"comment","text":"Forgive me, but you're building up a false dichotomy here. The *only* thing a shell language does need is custom syntax for spawning processes, interacting with their input and output, and eventually for exploring the filesystem.\n\nThe resultant \"frankenlanguage\" as you say it, exists, it's called PowerShell. It's a shame that the only modern shell language is proprietary, but it does in itself totally evaporates the dichotomy you built, and you can totally write serious programs in it. \n\nTo be more general, just because you have the ability built in the language to make commands convenient for shell one liners, does not mean you're gonna use it to build serious programs. To push the metaphor, it would be like saying lambda functions makes you write less clear code. That would be ridiculous, because every programmers using a language with lambdas does know when to use it, and when not to.\n\nSame thing for the ternary operator, and for almost any type saving feature ever invented for any language.","timestamp":"2011-01-01T21:35:29+00:00","score":5},{"role":"OP","user_id":"anon_e6d99e705674356f","comment_id":"c1b3541","kind":"comment","text":"Thanks for summing up my understanding of this issue so accurately.","timestamp":"2011-01-01T23:53:29+00:00","score":2},{"role":"answerer","user_id":"anon_dc011a2a55d4a667","comment_id":"c1b54re","kind":"comment","text":"You are welcome, but i think it is one of theses issues where conservative thinking will win until you have an actual (open source and not windows centric) language to show to demonstrate your point, and for sound reasons.\n\nThe proof is on the believer as they say :)","timestamp":"2011-01-02T11:49:06+00:00","score":1},{"role":"OP","user_id":"anon_e6d99e705674356f","comment_id":"c1b59kv","kind":"comment","text":"True. In fact, I asked the question as a prelude to designing a programming language myself so I needed some insights on what to look for. It has been very helpful but I was busy finishing up my phd at the time. I guess now is the time to put up or shut up :)","timestamp":"2011-01-02T13:34:52+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_e6d99e705674356f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dc011a2a55d4a667","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1b2pw9","thanks_reply_id":"c1b3541","post_score":193,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_98358be9e7a043bf","answerer_user_id":"anon_fb2da6a008dc4428","subreddit":"programming","timestamp":"2011-01-18T10:02:00+00:00","post_id":"f4crk","question":"I've created a tiny app in 3 different languages, in the spirit of uTorrent. It weighs only 80kb and it installs software to many computers. What do you think?","preferred_answer":"Your UI does need some work. When something goes wrong, it is not clear what to do to correct the mistake. You might consider getting rid of the tabs, they logically don't make any sense. Its also not logical that you're supposed to enter the password into the frame on the left side.\n\nThe selection of computers should be scrollable in vertical direction and not in horizontal. It should be searchable. Consider removing the checkboxes and instead have two separate menus, one to select the computers to deploy, and one to hold the computers to which the software is deployed.\n\n500$ is too much, for a piece of software that does not look very polished. Consider adding more deployable programs into the demo, or let the demo deploy all freeware programs and charge for the deployment of commercial programs. If you want to sell your program you need to create buzz, and people will only talk about it when they use it. Nobody will use your current version.\n\nOther than that: there's clearly a market for a software like that. But you need to invest much more work.","full_conversation":[{"role":"OP","user_id":"anon_98358be9e7a043bf","comment_id":"f4crk","kind":"post","text":"I've created a tiny app in 3 different languages, in the spirit of uTorrent. It weighs only 80kb and it installs software to many computers. What do you think?","timestamp":"2011-01-18T10:02:00+00:00","score":0},{"role":"answerer","user_id":"anon_fb2da6a008dc4428","comment_id":"c1d78dq","kind":"comment","text":"Your UI does need some work. When something goes wrong, it is not clear what to do to correct the mistake. You might consider getting rid of the tabs, they logically don't make any sense. Its also not logical that you're supposed to enter the password into the frame on the left side.\n\nThe selection of computers should be scrollable in vertical direction and not in horizontal. It should be searchable. Consider removing the checkboxes and instead have two separate menus, one to select the computers to deploy, and one to hold the computers to which the software is deployed.\n\n500$ is too much, for a piece of software that does not look very polished. Consider adding more deployable programs into the demo, or let the demo deploy all freeware programs and charge for the deployment of commercial programs. If you want to sell your program you need to create buzz, and people will only talk about it when they use it. Nobody will use your current version.\n\nOther than that: there's clearly a market for a software like that. But you need to invest much more work.","timestamp":"2011-01-18T12:27:39+00:00","score":4},{"role":"OP","user_id":"anon_98358be9e7a043bf","comment_id":"c1d82tg","kind":"comment","text":"Thanks for the notices. I do agree that it needs major polishing and I just need enough buzz/money to continue polishing it. For now it works, so if I can get some companies to use it, that will drive me to make it nicer.","timestamp":"2011-01-18T17:05:33+00:00","score":1},{"role":"answerer","user_id":"anon_fb2da6a008dc4428","comment_id":"c1d9ml2","kind":"comment","text":"Btw. how do you execute commands on the computers in the network? I assume that there is no special server-component running there, right? Under UNIX one could ssh in and simply fire shell-commands, but under Windows?\n\nA few other things: it should be possible to show which programs (and which versions) are already installed on which computer and it should be possible to uninstall programs. Ideally it should also be possible to deploy updates. It should be possible to decide for each computer whether the installer is downloaded from the Internet or from a server on the local network.","timestamp":"2011-01-18T23:13:23+00:00","score":2},{"role":"OP","user_id":"anon_98358be9e7a043bf","comment_id":"c1dbmda","kind":"comment","text":"No there's no server component. \n\nWindows API doesn't let you transfer actual .exe files and run them on remote computers, but it lets you remotely run Windows Services - these are basically processes that run in the background sort of like daemons for unix. The ability to send and run these Services to remote computers is quite powerful - I send my own service to the remote computer I want to deploy software to, and this service becomes my buddy, I can talk to it through pipes and it let's me do whatever I wish on the remote computer.\n\nOf course running Services on remote computers requires permissions, but it's perfect for deploying things and this is what uDeployer does. This is also what PsExec does.","timestamp":"2011-01-19T08:40:40+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_98358be9e7a043bf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fb2da6a008dc4428","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1d78dq","thanks_reply_id":"c1d82tg","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_141b98ad13a05fc2","answerer_user_id":"anon_2bf1495e8de33660","subreddit":"programming","timestamp":"2011-01-19T20:19:01+00:00","post_id":"f5blo","question":"How to Reset/restore MySQL's root password","preferred_answer":"Stop submitting your own shitty \"tutorials\".","full_conversation":[{"role":"OP","user_id":"anon_141b98ad13a05fc2","comment_id":"f5blo","kind":"post","text":"How to Reset/restore MySQL's root password","timestamp":"2011-01-19T20:19:01+00:00","score":0},{"role":"answerer","user_id":"anon_2bf1495e8de33660","comment_id":"c1dhfsj","kind":"comment","text":"Stop submitting your own shitty \"tutorials\".","timestamp":"2011-01-20T13:10:14+00:00","score":0},{"role":"OP","user_id":"anon_141b98ad13a05fc2","comment_id":"c1dx994","kind":"comment","text":"Thanks for the advice I will take seriously, so could you tell me what's \"shitty\" about it? really thanks for your kind words.","timestamp":"2011-01-24T00:18:26+00:00","score":1},{"role":"answerer","user_id":"anon_2bf1495e8de33660","comment_id":"c1dxn94","kind":"comment","text":"Like vansmith said, it's clearly in the MySQL documentation.","timestamp":"2011-01-24T02:03:25+00:00","score":0},{"role":"OP","user_id":"anon_141b98ad13a05fc2","comment_id":"c1dzark","kind":"comment","text":"Thank you, I am new here and I will make sure not to add anything unless there are no efficient informations about it.","timestamp":"2011-01-24T12:20:55+00:00","score":1},{"role":"answerer","user_id":"anon_2bf1495e8de33660","comment_id":"c1dzcmr","kind":"comment","text":"Thank you.","timestamp":"2011-01-24T12:54:10+00:00","score":0}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_141b98ad13a05fc2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2bf1495e8de33660","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1dhfsj","thanks_reply_id":"c1dx994","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_cd3b4ee6cdeb0f48","answerer_user_id":"anon_e36ca6bb333aba17","subreddit":"programming","timestamp":"2011-01-25T15:35:43+00:00","post_id":"f8q6g","question":"Because there are effective computations that cannot be performed by Turing Machines – What is Computation?","preferred_answer":"See Landin's and Strachey's formalization of Algol's store using lambda calculus.","full_conversation":[{"role":"OP","user_id":"anon_cd3b4ee6cdeb0f48","comment_id":"f8q6g","kind":"post","text":"Because there are effective computations that cannot be performed by Turing Machines – What is Computation?","timestamp":"2011-01-25T15:35:43+00:00","score":23},{"role":"answerer","user_id":"anon_e36ca6bb333aba17","comment_id":"c1e6w51","kind":"comment","text":"See Landin's and Strachey's formalization of Algol's store using lambda calculus.","timestamp":"2011-01-25T23:25:10+00:00","score":2},{"role":"OP","user_id":"anon_cd3b4ee6cdeb0f48","comment_id":"c1e6xgh","kind":"comment","text":"Thanks, I'll check it out, but I'm curious how exactly that relates to my post above.","timestamp":"2011-01-25T23:33:24+00:00","score":1},{"role":"answerer","user_id":"anon_e36ca6bb333aba17","comment_id":"c1e7pgo","kind":"comment","text":"Your conclusion that the actor model is more general than lambda calculus is not warranted, as lambda calculus can encode store effects as Landin and Strachey have pointed out fifty years ago. (Note that I've written \"more general\" and not \"more expressive\". The encoding is very tedious, and basically amounts to environment passing.)","timestamp":"2011-01-26T02:37:04+00:00","score":2},{"role":"OP","user_id":"anon_cd3b4ee6cdeb0f48","comment_id":"c1e99p9","kind":"comment","text":"That's a very good point, but it wasnt my conclusion, just my poor choice of words.","timestamp":"2011-01-26T11:59:19+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_cd3b4ee6cdeb0f48","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e36ca6bb333aba17","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1e6w51","thanks_reply_id":"c1e6xgh","post_score":23,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_fbec7eb415b0fefd","answerer_user_id":"anon_4d1a84380b85e0ec","subreddit":"programming","timestamp":"2011-01-25T20:27:57+00:00","post_id":"f8wsj","question":"The Case Against Structural Subtyping ... ?","preferred_answer":"There is now efforts to make this kind of stuff work in even less structured contexts (especially multi-threaded programs) for even less structured languages like C. The \"typing\" approach is kind of hidden behind a layer of Hoare logic-like formalism, but all in all, it's all the same thing.\n\nYou can also take a look at a paper published at ICFP last year: \"Semantic subtyping with an SMT solver\" (Bierman, Gordon, Hritcu and Langworthy), that does it for a basic dependently-typed record-based functional language.\n\nAnd as always, it may look \"easy\" to make it work on sequential programs (where you can usually know the type at compile-time), but everything goes to shit when you try to adapt it to concurrent programs, so if you have any plans for that in Whiley's future, you should definitely start thinking about it now...","full_conversation":[{"role":"OP","user_id":"anon_fbec7eb415b0fefd","comment_id":"f8wsj","kind":"post","text":"The Case Against Structural Subtyping ... ?","timestamp":"2011-01-25T20:27:57+00:00","score":17},{"role":"answerer","user_id":"anon_4d1a84380b85e0ec","comment_id":"c1e938j","kind":"comment","text":"There is now efforts to make this kind of stuff work in even less structured contexts (especially multi-threaded programs) for even less structured languages like C. The \"typing\" approach is kind of hidden behind a layer of Hoare logic-like formalism, but all in all, it's all the same thing.\n\nYou can also take a look at a paper published at ICFP last year: \"Semantic subtyping with an SMT solver\" (Bierman, Gordon, Hritcu and Langworthy), that does it for a basic dependently-typed record-based functional language.\n\nAnd as always, it may look \"easy\" to make it work on sequential programs (where you can usually know the type at compile-time), but everything goes to shit when you try to adapt it to concurrent programs, so if you have any plans for that in Whiley's future, you should definitely start thinking about it now...","timestamp":"2011-01-26T09:51:54+00:00","score":2},{"role":"OP","user_id":"anon_fbec7eb415b0fefd","comment_id":"c1eazp6","kind":"comment","text":"Hey, thanks for the paper suggestion ... I'll take a look.\n\nAnd, yes I have plans for concurrency. The trick is to use a strict actor model with non-reentrant methods (aka messages). So, that means executing a method is atomic and can never be interrupted (although it can block when sending messages to other actors). Furthermore, Whiley distinguishes methods from pure functions, so you basically off-load as much work as possible to the pure functions, and focus only on concurrency and very high level architecture with the actors.\n\nAt least, that's my thoughts on the topic ...","timestamp":"2011-01-26T19:39:10+00:00","score":1},{"role":"answerer","user_id":"anon_4d1a84380b85e0ec","comment_id":"c1ejl3o","kind":"comment","text":"That works for me :)\n\nI'll take a longer look at Whiley when I have a bit more time: any project whose goal is to verify the programs that rule our daily life sounds like a really good thing to me.","timestamp":"2011-01-28T15:07:56+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fbec7eb415b0fefd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4d1a84380b85e0ec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1e938j","thanks_reply_id":"c1eazp6","post_score":17,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_e1200bb2f23131da","answerer_user_id":"anon_054af387ba857db7","subreddit":"programming","timestamp":"2011-02-04T20:13:49+00:00","post_id":"ffedp","question":"How To Redis","preferred_answer":"Downvoted. This article is from October 2009. Redis has seen a world of changes since the time of this article was written. Almost every suggestion in here is a bad idea.","full_conversation":[{"role":"OP","user_id":"anon_e1200bb2f23131da","comment_id":"ffedp","kind":"post","text":"How To Redis","timestamp":"2011-02-04T20:13:49+00:00","score":0},{"role":"answerer","user_id":"anon_054af387ba857db7","comment_id":"c1ficpq","kind":"comment","text":"Downvoted. This article is from October 2009. Redis has seen a world of changes since the time of this article was written. Almost every suggestion in here is a bad idea.","timestamp":"2011-02-04T20:37:39+00:00","score":6},{"role":"OP","user_id":"anon_e1200bb2f23131da","comment_id":"c1fidiv","kind":"comment","text":"I appreciate it if you can share an article with up to date articles, that try to solve the save problem, of dealing with Objects in Redis","timestamp":"2011-02-04T20:41:59+00:00","score":1},{"role":"answerer","user_id":"anon_054af387ba857db7","comment_id":"c1fiej8","kind":"comment","text":"http://redis.io/commands#hash\n\nHashes are perfect for holding objects. The software your article mentions, Ohm, switched to using Hashes in redis almost a year ago.","timestamp":"2011-02-04T20:47:35+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e1200bb2f23131da","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_054af387ba857db7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1ficpq","thanks_reply_id":"c1fidiv","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_fcd6d25ce55b7ea7","answerer_user_id":"anon_4393b42e341f4c32","subreddit":"programming","timestamp":"2011-02-21T15:22:14+00:00","post_id":"fpl3f","question":"Does it scale ?","preferred_answer":"That was the first thing I noticed, pretty confusing. He got called out for it by like 5 people in the comments and he (paradigmatic, the subby) said he's on it. The colors are switched in the second image.","full_conversation":[{"role":"OP","user_id":"anon_fcd6d25ce55b7ea7","comment_id":"fpl3f","kind":"post","text":"Does it scale ?","timestamp":"2011-02-21T15:22:14+00:00","score":31},{"role":"answerer","user_id":"anon_4393b42e341f4c32","comment_id":"c1hp66o","kind":"comment","text":"That was the first thing I noticed, pretty confusing. He got called out for it by like 5 people in the comments and he (paradigmatic, the subby) said he's on it. The colors are switched in the second image.","timestamp":"2011-02-21T18:07:05+00:00","score":3},{"role":"OP","user_id":"anon_fcd6d25ce55b7ea7","comment_id":"c1hp76t","kind":"comment","text":"Fixed. Thanks I got this image wrong by correcting another problem elsewhere. I am really sorry because the purpose of the post was clarification...","timestamp":"2011-02-21T18:12:54+00:00","score":3},{"role":"answerer","user_id":"anon_4393b42e341f4c32","comment_id":"c1hp7qe","kind":"comment","text":"Once I understood the colors were switched there, it was a great article – don't let it get you down!","timestamp":"2011-02-21T18:15:47+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fcd6d25ce55b7ea7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4393b42e341f4c32","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1hp66o","thanks_reply_id":"c1hp76t","post_score":31,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_784f12c89621dd84","answerer_user_id":"anon_ea252c0cc588e581","subreddit":"programming","timestamp":"2011-02-22T12:22:46+00:00","post_id":"fq8c2","question":"Apart from reddit, Can I ask you what social sharing and bookmarking services do you use?","preferred_answer":"Yes, yes you may ask.","full_conversation":[{"role":"OP","user_id":"anon_784f12c89621dd84","comment_id":"fq8c2","kind":"post","text":"Apart from reddit, Can I ask you what social sharing and bookmarking services do you use?","timestamp":"2011-02-22T12:22:46+00:00","score":0},{"role":"answerer","user_id":"anon_ea252c0cc588e581","comment_id":"c1htjny","kind":"comment","text":"Yes, yes you may ask.","timestamp":"2011-02-22T12:57:43+00:00","score":2},{"role":"OP","user_id":"anon_784f12c89621dd84","comment_id":"c1htkhg","kind":"comment","text":"Thanks for confirming this :-) Let me clarify that you can also answer!","timestamp":"2011-02-22T13:09:02+00:00","score":1},{"role":"answerer","user_id":"anon_ea252c0cc588e581","comment_id":"c1htkl3","kind":"comment","text":"I don't actually use any. :-)","timestamp":"2011-02-22T13:10:21+00:00","score":2},{"role":"OP","user_id":"anon_784f12c89621dd84","comment_id":"c1htnjr","kind":"comment","text":"A different issues is also whether having them has a long-term effect on the visitors. It has, but small: http://modeling-languages.com/blog/content/comparing-effect-dzone-stumbleupon-digg-reddit-and-delicious-portal","timestamp":"2011-02-22T13:45:30+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_784f12c89621dd84","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ea252c0cc588e581","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1htjny","thanks_reply_id":"c1htkhg","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_766da84f2bcd80d6","answerer_user_id":"anon_e40dce04d502d6bb","subreddit":"programming","timestamp":"2011-03-21T18:16:38+00:00","post_id":"g8cmr","question":"Do you worry about giving your email address to websites? So did my brother and I, so we created this free service (repost from r/technology)","preferred_answer":"The problem about doing things that way is that if your password-generation algorithm is somewhat obvious (which your example in the article is), if someone figures it out, they've suddenly got *all* of your passwords.\n\nIt works for protecting you from \"general\" attacks, like where someone downloads the whole gawker user database and decides to try the same username/password combinations on lots of sites. But if someone's specifically targeting you for some reason, it can make things worse.\n\nUsing a password manager like LastPass, KeePass, etc. is probably a better solution.","full_conversation":[{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"g8cmr","kind":"post","text":"Do you worry about giving your email address to websites? So did my brother and I, so we created this free service (repost from r/technology)","timestamp":"2011-03-21T18:16:38+00:00","score":401},{"role":"answerer","user_id":"anon_e40dce04d502d6bb","comment_id":"c1lolen","kind":"comment","text":"The problem about doing things that way is that if your password-generation algorithm is somewhat obvious (which your example in the article is), if someone figures it out, they've suddenly got *all* of your passwords.\n\nIt works for protecting you from \"general\" attacks, like where someone downloads the whole gawker user database and decides to try the same username/password combinations on lots of sites. But if someone's specifically targeting you for some reason, it can make things worse.\n\nUsing a password manager like LastPass, KeePass, etc. is probably a better solution.","timestamp":"2011-03-21T19:08:32+00:00","score":3},{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"c1lomfr","kind":"comment","text":"Its not perfect, but you think most spammers have the time to sit around trying to reverse-engineer how you come up with your passwords?\n\nRemember, most people use 1 or 2 passwords for every website, that is what we're comparing this to.","timestamp":"2011-03-21T19:13:13+00:00","score":3},{"role":"answerer","user_id":"anon_e40dce04d502d6bb","comment_id":"c1lowdh","kind":"comment","text":"No, I specifically said that it would protect you from general attacks.\n\nOf course it's better than using the same password everywhere, but it's still worse than using a password manager.","timestamp":"2011-03-21T20:01:52+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_766da84f2bcd80d6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e40dce04d502d6bb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1lolen","thanks_reply_id":"c1lomfr","post_score":401,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_7124d080fd29bd5c","answerer_user_id":"anon_15f0f5a556132020","subreddit":"programming","timestamp":"2011-03-23T11:07:19+00:00","post_id":"g9mft","question":"I made a file upload website that tries to embed the file rather than making the user download it. Feedback? Bugs?","preferred_answer":"Very useful to view .ps (postscript) files on Windows without dealing with GSView/Ghostscript to read papers.\n\nGood work.","full_conversation":[{"role":"OP","user_id":"anon_7124d080fd29bd5c","comment_id":"g9mft","kind":"post","text":"I made a file upload website that tries to embed the file rather than making the user download it. Feedback? Bugs?","timestamp":"2011-03-23T11:07:19+00:00","score":195},{"role":"answerer","user_id":"anon_15f0f5a556132020","comment_id":"c1lxxlq","kind":"comment","text":"Very useful to view .ps (postscript) files on Windows without dealing with GSView/Ghostscript to read papers.\n\nGood work.","timestamp":"2011-03-23T12:48:35+00:00","score":20},{"role":"OP","user_id":"anon_7124d080fd29bd5c","comment_id":"c1lxxzx","kind":"comment","text":"Thanks! Glad someone besides me is finding it useful :) ...if you can think of any formats you'd like to see added that aren't yet, let me know.","timestamp":"2011-03-23T12:52:30+00:00","score":7},{"role":"answerer","user_id":"anon_15f0f5a556132020","comment_id":"c1ly2e4","kind":"comment","text":"Not really useful to me (in fact I didn't test if those already work) but .lit, .djvu (both ebooks) and .cbr (comics) could be nice additions.","timestamp":"2011-03-23T13:31:43+00:00","score":6},{"role":"OP","user_id":"anon_7124d080fd29bd5c","comment_id":"c1ly2h5","kind":"comment","text":"All good suggestions. Thanks, I'll try and work them in.","timestamp":"2011-03-23T13:32:22+00:00","score":4}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7124d080fd29bd5c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_15f0f5a556132020","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1lxxlq","thanks_reply_id":"c1lxxzx","post_score":195,"answer_score":20,"preferred_answer_is_top_level":true}} {"user_id":"anon_a4955d188f3be215","answerer_user_id":"anon_4d9dc4b25232bfe0","subreddit":"programming","timestamp":"2011-05-16T23:11:28+00:00","post_id":"hcx9s","question":"Java, Exception error. I pasted the error at the bottom of the code. Can anyone explain why it's doing this?","preferred_answer":"The JVM, the \"interpreter\" (for lack of a better word) that your java programs are run by, has a few different implementations. The canonical implementation is by Oracle (Sun, before being bought by Oracle). The GNU guys have been writing their own implementation of a JVM, called GCJ for a while now, but it's always been behind in terms of stability and correctness.\n\nMany Linux distributions install GCJ by default as it is \"more free\" than other implementations.\n\nIf you want to learn Java first, deal with platform/install issues later, I seriously suggest you use a different JVM, openjdk being the ideal candidate for Linux.\n\nIf you're using Ubuntu:\n sudo apt-get install openjdk-6-jdk\nIf you're on Arch:\n su; pacman -S jdk\nIf you're on something else:\n *shrug* it'll be in a package somewhere.\n\n\nEDIT: Why println *might* help:\n\nYes, you're std.in *will* be on a new line.\n\nI am unsure how much you know about computers, so apologies if this is patronising.\n\nEach program run on your machine receives three \"streams\", or magical files that they can write/read to/from.\nThe first stream is \"stdout\", or the standard out. This is where normal program output for a console program should be written to. The second stream is \"stderr\", or standard error. Your program should print unual behaviour to this stream. The third stream is \"stdin\", or standard input. Your program should read from this stream to receive data from the shell in which it has been run (simplification).\n\nIt's important to know that the stdout of any process on Linux, by default, is line-buffered. This means that when you write data to stdout, the OS is under no obligation to actually print it. Printing each character one by one could be pretty slow after all! However, when a newline is written to stdout, this indicates to the OS that the stream must now be \"flushed\", all data that the OS has received thus far should be printed to the correct output.\n\nSo what your program *might* be doing is this:\n\n System.out.print(\"What is your name? \");\n * Printing to stdout with no newline.\n * The OS receives the data and does *not* print out the data.\n\n * You press enter, because you think the program hasn't properly started yet.\n\n String name = in.nextLine();\n * Your program reads this first input line (you pressed enter, that's a line!) as the name.\n * The shell is in \"echo\" mode, so anything you enter will be printed as well.\n * You entered 'enter', which is a newline, this flushes the stdout, printing \"What is your name? \"\n\n System.out.print(\"How old are you? \");\n * Your program sends this data to the OS, which doesn't get printed, since it isn't flushed.\n\n int age = in.nextInt();\n * You type \"Todd\", since the last line displayed on the screen was a question asking your name.\n * You pressed enter, which displays the next question as it flushes the stream.\n * Java reads \"Todd\" and attempts to parse it as an integer.\n * \"Todd\" is not parseabl as an integer (at least, not in base 10).\n * Boom.\n\nThis is all conjecture.\n \nEDIT EDIT: Stderr is fun.\n\nOne of the major differences between stderr and stdout, at least on Linux, is that stderr is *unbuffered*, so it does *not* require a new line for the OS to flush.\n\nImagine if you were writing a program and attempting to debug what was happening. You insert some System.out.print statements into the code, the program crashes, and nothing is printed! If you didn't output a newline, the program can crash without printing any of your helpful debug messages... enter stderr! Print to stderr and the OS will always attempt to write the data out when you ask it to, so now even if the program crashes before writing a newline (simplification), you will still get the debug messages.","full_conversation":[{"role":"OP","user_id":"anon_a4955d188f3be215","comment_id":"hcx9s","kind":"post","text":"Java, Exception error. I pasted the error at the bottom of the code. Can anyone explain why it's doing this?","timestamp":"2011-05-16T23:11:28+00:00","score":0},{"role":"answerer","user_id":"anon_4d9dc4b25232bfe0","comment_id":"c1uifyq","kind":"comment","text":"The JVM, the \"interpreter\" (for lack of a better word) that your java programs are run by, has a few different implementations. The canonical implementation is by Oracle (Sun, before being bought by Oracle). The GNU guys have been writing their own implementation of a JVM, called GCJ for a while now, but it's always been behind in terms of stability and correctness.\n\nMany Linux distributions install GCJ by default as it is \"more free\" than other implementations.\n\nIf you want to learn Java first, deal with platform/install issues later, I seriously suggest you use a different JVM, openjdk being the ideal candidate for Linux.\n\nIf you're using Ubuntu:\n sudo apt-get install openjdk-6-jdk\nIf you're on Arch:\n su; pacman -S jdk\nIf you're on something else:\n *shrug* it'll be in a package somewhere.\n\n\nEDIT: Why println *might* help:\n\nYes, you're std.in *will* be on a new line.\n\nI am unsure how much you know about computers, so apologies if this is patronising.\n\nEach program run on your machine receives three \"streams\", or magical files that they can write/read to/from.\nThe first stream is \"stdout\", or the standard out. This is where normal program output for a console program should be written to. The second stream is \"stderr\", or standard error. Your program should print unual behaviour to this stream. The third stream is \"stdin\", or standard input. Your program should read from this stream to receive data from the shell in which it has been run (simplification).\n\nIt's important to know that the stdout of any process on Linux, by default, is line-buffered. This means that when you write data to stdout, the OS is under no obligation to actually print it. Printing each character one by one could be pretty slow after all! However, when a newline is written to stdout, this indicates to the OS that the stream must now be \"flushed\", all data that the OS has received thus far should be printed to the correct output.\n\nSo what your program *might* be doing is this:\n\n System.out.print(\"What is your name? \");\n * Printing to stdout with no newline.\n * The OS receives the data and does *not* print out the data.\n\n * You press enter, because you think the program hasn't properly started yet.\n\n String name = in.nextLine();\n * Your program reads this first input line (you pressed enter, that's a line!) as the name.\n * The shell is in \"echo\" mode, so anything you enter will be printed as well.\n * You entered 'enter', which is a newline, this flushes the stdout, printing \"What is your name? \"\n\n System.out.print(\"How old are you? \");\n * Your program sends this data to the OS, which doesn't get printed, since it isn't flushed.\n\n int age = in.nextInt();\n * You type \"Todd\", since the last line displayed on the screen was a question asking your name.\n * You pressed enter, which displays the next question as it flushes the stream.\n * Java reads \"Todd\" and attempts to parse it as an integer.\n * \"Todd\" is not parseabl as an integer (at least, not in base 10).\n * Boom.\n\nThis is all conjecture.\n \nEDIT EDIT: Stderr is fun.\n\nOne of the major differences between stderr and stdout, at least on Linux, is that stderr is *unbuffered*, so it does *not* require a new line for the OS to flush.\n\nImagine if you were writing a program and attempting to debug what was happening. You insert some System.out.print statements into the code, the program crashes, and nothing is printed! If you didn't output a newline, the program can crash without printing any of your helpful debug messages... enter stderr! Print to stderr and the OS will always attempt to write the data out when you ask it to, so now even if the program crashes before writing a newline (simplification), you will still get the debug messages.","timestamp":"2011-05-17T13:17:05+00:00","score":2},{"role":"OP","user_id":"anon_a4955d188f3be215","comment_id":"c1ukhzk","kind":"comment","text":"That was very enlightening. Thank you, and now it makes a whole lot more sense. Also I am running Debian so openjdk-6-jdk should work. You've been very helpful, and I do greatly appreciate it.","timestamp":"2011-05-17T19:17:41+00:00","score":1},{"role":"answerer","user_id":"anon_4d9dc4b25232bfe0","comment_id":"c1ukmim","kind":"comment","text":"No problem. ^^ Everyone starts somewhere; good luck with it all.","timestamp":"2011-05-17T19:36:35+00:00","score":1},{"role":"OP","user_id":"anon_a4955d188f3be215","comment_id":"c1ukoo2","kind":"comment","text":"openjdk worked like a charm as well =D","timestamp":"2011-05-17T19:45:06+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a4955d188f3be215","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4d9dc4b25232bfe0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1uifyq","thanks_reply_id":"c1ukhzk","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_8905647deaccb144","answerer_user_id":"anon_31581221d2da032b","subreddit":"programming","timestamp":"2011-05-19T22:47:02+00:00","post_id":"hff94","question":"So you want to register to CTP, eh?","preferred_answer":"what does that got to do with anything? If you want something similar, go with crypto-js.\nhttp://code.google.com/p/crypto-js/","full_conversation":[{"role":"OP","user_id":"anon_8905647deaccb144","comment_id":"hff94","kind":"post","text":"So you want to register to CTP, eh?","timestamp":"2011-05-19T22:47:02+00:00","score":0},{"role":"answerer","user_id":"anon_31581221d2da032b","comment_id":"c1uzoxs","kind":"comment","text":"what does that got to do with anything? If you want something similar, go with crypto-js.\nhttp://code.google.com/p/crypto-js/","timestamp":"2011-05-19T23:20:12+00:00","score":2},{"role":"OP","user_id":"anon_8905647deaccb144","comment_id":"c1uzrxk","kind":"comment","text":"Thanks I'll take a look. So was I on the wrong track looking at that code snippet?","timestamp":"2011-05-19T23:36:03+00:00","score":1},{"role":"answerer","user_id":"anon_31581221d2da032b","comment_id":"c1v4mp2","kind":"comment","text":"No, but as Cullspups pointed out, the security string is 3c4bd09357c6db10f880c2efce8511c6\nif(document.pleazfc4me.securitystring.value != hexMD5(\"\\x74\\x72\\x79\\x68\\x61\\x72\\x64\\x65\\x72\"+srvstr)) {\n alert(\"Registration Authorization String not accepted! Try Harder! \");\nOf course, svrstr is now different (mine says srvstr='Friday 20th of May 2011') so you'd have to recompute the md5.","timestamp":"2011-05-20T18:25:58+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8905647deaccb144","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_31581221d2da032b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1uzoxs","thanks_reply_id":"c1uzrxk","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_158af51705cbc272","answerer_user_id":"anon_dc5e67d66a6539c8","subreddit":"programming","timestamp":"2011-05-23T20:31:22+00:00","post_id":"hibg9","question":"What Html5 needs to take over on devices","preferred_answer":"That was an incredibly poorly written article.","full_conversation":[{"role":"OP","user_id":"anon_158af51705cbc272","comment_id":"hibg9","kind":"post","text":"What Html5 needs to take over on devices","timestamp":"2011-05-23T20:31:22+00:00","score":0},{"role":"answerer","user_id":"anon_dc5e67d66a6539c8","comment_id":"c1vmmsp","kind":"comment","text":"That was an incredibly poorly written article.","timestamp":"2011-05-23T22:34:20+00:00","score":3},{"role":"OP","user_id":"anon_158af51705cbc272","comment_id":"c1vn2ah","kind":"comment","text":"I will try to do better next time... \nthanks for the feedback anyway","timestamp":"2011-05-23T23:51:30+00:00","score":1},{"role":"answerer","user_id":"anon_dc5e67d66a6539c8","comment_id":"c1vn3qc","kind":"comment","text":"Sorry, I should have elaborated. It wasn't so much the content as the very poorly written sentences, for example:\n\n>Well, we can't do much about it, and it is true, native apps are faster gives a better interaction.\n\nI *think* I know what you're trying to say there, but reading it is rather jarring, and really breaks the flow of the article.","timestamp":"2011-05-23T23:58:46+00:00","score":2},{"role":"OP","user_id":"anon_158af51705cbc272","comment_id":"c1vpbsb","kind":"comment","text":"sure... I'm not a writer, I'm trying to learn to write better english. Sorry about that, and thanks for the constructive comment","timestamp":"2011-05-24T07:12:10+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_158af51705cbc272","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dc5e67d66a6539c8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1vmmsp","thanks_reply_id":"c1vn2ah","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_9da8fd775468a79c","answerer_user_id":"anon_18925ab44e54be38","subreddit":"programming","timestamp":"2011-06-08T23:21:14+00:00","post_id":"hv1r2","question":"WTF, is that really the canonical way to do this in java with maven?","preferred_answer":"You can use Spring for that, if you want to. There is no single way.\n\nFor example, to use a test Spring config file for your unit tests, you could have a Maven module that has it in its test resources. Then, you could have that module generate a test-jar with the maven-jar-plugin. Then add that as a dependency to any modules containing unit tests that need it, with\n test-jar test\n\nYou could do the same thing with property files instead of Spring config files, if you wanted to.","full_conversation":[{"role":"OP","user_id":"anon_9da8fd775468a79c","comment_id":"hv1r2","kind":"post","text":"WTF, is that really the canonical way to do this in java with maven?","timestamp":"2011-06-08T23:21:14+00:00","score":0},{"role":"answerer","user_id":"anon_18925ab44e54be38","comment_id":"c1ylzk4","kind":"comment","text":"You can use Spring for that, if you want to. There is no single way.\n\nFor example, to use a test Spring config file for your unit tests, you could have a Maven module that has it in its test resources. Then, you could have that module generate a test-jar with the maven-jar-plugin. Then add that as a dependency to any modules containing unit tests that need it, with\n test-jar test\n\nYou could do the same thing with property files instead of Spring config files, if you wanted to.","timestamp":"2011-06-09T00:37:32+00:00","score":3},{"role":"OP","user_id":"anon_9da8fd775468a79c","comment_id":"c1yma22","kind":"comment","text":"thanks, I accepted your answer on SO. This is exactly what I was looking for with the environment variable for dev vs prod.","timestamp":"2011-06-09T01:29:13+00:00","score":1},{"role":"answerer","user_id":"anon_18925ab44e54be38","comment_id":"c1yqfg0","kind":"comment","text":"Thanks, happy to help :)","timestamp":"2011-06-09T17:12:31+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9da8fd775468a79c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_18925ab44e54be38","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c1ylzk4","thanks_reply_id":"c1yma22","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_89d079ea3462f640","answerer_user_id":"anon_82b6d6537a1d0ab5","subreddit":"programming","timestamp":"2011-06-16T20:15:29+00:00","post_id":"i1ilf","question":"How to (fucking) hire developers.","preferred_answer":"Yes. But now I guess I'll never be able to use it on a redditor. :-)\n\nYou have an infinite line,unbounded in both directions. Two robots parachute down to random locations on the line. They drop their parachutes where they land. \n\nThey both run code in lock-step, both running the same code. The instruction set is this:\n\n Take one step left\n Take one step right\n Go to instruction number X\n Skip the next instruction if you're standing on a parachute\n\nThe goal is to get the robots to collide.","full_conversation":[{"role":"OP","user_id":"anon_89d079ea3462f640","comment_id":"i1ilf","kind":"post","text":"How to (fucking) hire developers.","timestamp":"2011-06-16T20:15:29+00:00","score":682},{"role":"answerer","user_id":"anon_82b6d6537a1d0ab5","comment_id":"c2072iu","kind":"comment","text":"Yes. But now I guess I'll never be able to use it on a redditor. :-)\n\nYou have an infinite line,unbounded in both directions. Two robots parachute down to random locations on the line. They drop their parachutes where they land. \n\nThey both run code in lock-step, both running the same code. The instruction set is this:\n\n Take one step left\n Take one step right\n Go to instruction number X\n Skip the next instruction if you're standing on a parachute\n\nThe goal is to get the robots to collide.","timestamp":"2011-06-17T03:43:39+00:00","score":1},{"role":"OP","user_id":"anon_89d079ea3462f640","comment_id":"c209mt6","kind":"comment","text":"This is AWESOME. Thanks :)","timestamp":"2011-06-17T15:05:18+00:00","score":1},{"role":"answerer","user_id":"anon_82b6d6537a1d0ab5","comment_id":"c20cbdx","kind":"comment","text":"The coolest thing about it is it took me like 10 or 15 minutes, and I could actually solve it by following logical ideas of planning out how to solve the problem, etc. It is, by far, the most awesome interview question I've ever been asked.","timestamp":"2011-06-17T21:23:50+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_89d079ea3462f640","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_82b6d6537a1d0ab5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2072iu","thanks_reply_id":"c209mt6","post_score":682,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_1b84d014488cad20","answerer_user_id":"anon_2009b4f5350c9eed","subreddit":"programming","timestamp":"2011-07-23T15:36:37+00:00","post_id":"ixows","question":"Door Lock Hackery of Buffoonery?","preferred_answer":"its","full_conversation":[{"role":"OP","user_id":"anon_1b84d014488cad20","comment_id":"ixows","kind":"post","text":"Door Lock Hackery of Buffoonery?","timestamp":"2011-07-23T15:36:37+00:00","score":244},{"role":"answerer","user_id":"anon_2009b4f5350c9eed","comment_id":"c27idce","kind":"comment","text":"its","timestamp":"2011-07-23T20:20:35+00:00","score":2},{"role":"OP","user_id":"anon_1b84d014488cad20","comment_id":"c27jp43","kind":"comment","text":"thank's for that. --- imagine all the people who showed up with something substantive, and you have that... i bet you're a hit at parties.","timestamp":"2011-07-24T00:27:27+00:00","score":2},{"role":"answerer","user_id":"anon_2009b4f5350c9eed","comment_id":"c27kc0p","kind":"comment","text":"It's a pet peeve, you really go for the throat though. The only way this could work is if you allowed arbitrary commands to be read from the lock mechanism. That's a decision that provides far more complexity than necessary, thus stupid and expensive enough to guarantee no one made it.","timestamp":"2011-07-24T02:32:50+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1b84d014488cad20","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2009b4f5350c9eed","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c27idce","thanks_reply_id":"c27jp43","post_score":244,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_9fac2b7261b1442f","answerer_user_id":"anon_290db0e897d35139","subreddit":"programming","timestamp":"2011-08-23T04:02:22+00:00","post_id":"jrc2w","question":"Made a simple \"Text fighting\" game on C#, to understand the first few basic C# things. Am I hopeless?","preferred_answer":"You're not hopeless at all, everybody has to start somewhere, and they almost always start with silly command line programs. The program actually looks pretty good, but you could improve it by refactoring to make it more object oriented.\n\nFor example, the Enemy class could have have a TakeDamage(int hitPoints, enum bodyPart) method. See [here](http://msdn.microsoft.com/en-us/library/sbbt4032.aspx) to learn about enumerations. Strings could still work too. The TakeDamage method could check an array of integers representing the health for each body part, corresponding to the bodyPart enumeration. Similarly if enemy is dead, the TakeDamage method can use the enum as an index to read from an array of strings representing the death messages for each body part.\n\nThere are a couple ways you could deal with having that method know how much HP the player has. You could make PlayerHealth a static member of Enemy, or make a full on static Player class that Enemy can reference.\n\nIf any of this is over your head, don't be shy to ask for clarification.\n\nOn a completely unrelated note, it is standard for redditors to upload pictures to imgur.com, and use png files for screenshots. Some browsers, such as Chrome, won't show bmp files. Png's also load faster. Redditors are also more likely to click links to imgur, as it is quite popular and reputable. Keep up all the contributions!","full_conversation":[{"role":"OP","user_id":"anon_9fac2b7261b1442f","comment_id":"jrc2w","kind":"post","text":"Made a simple \"Text fighting\" game on C#, to understand the first few basic C# things. Am I hopeless?","timestamp":"2011-08-23T04:02:22+00:00","score":0},{"role":"answerer","user_id":"anon_290db0e897d35139","comment_id":"c2ei2hv","kind":"comment","text":"You're not hopeless at all, everybody has to start somewhere, and they almost always start with silly command line programs. The program actually looks pretty good, but you could improve it by refactoring to make it more object oriented.\n\nFor example, the Enemy class could have have a TakeDamage(int hitPoints, enum bodyPart) method. See [here](http://msdn.microsoft.com/en-us/library/sbbt4032.aspx) to learn about enumerations. Strings could still work too. The TakeDamage method could check an array of integers representing the health for each body part, corresponding to the bodyPart enumeration. Similarly if enemy is dead, the TakeDamage method can use the enum as an index to read from an array of strings representing the death messages for each body part.\n\nThere are a couple ways you could deal with having that method know how much HP the player has. You could make PlayerHealth a static member of Enemy, or make a full on static Player class that Enemy can reference.\n\nIf any of this is over your head, don't be shy to ask for clarification.\n\nOn a completely unrelated note, it is standard for redditors to upload pictures to imgur.com, and use png files for screenshots. Some browsers, such as Chrome, won't show bmp files. Png's also load faster. Redditors are also more likely to click links to imgur, as it is quite popular and reputable. Keep up all the contributions!","timestamp":"2011-08-23T04:31:53+00:00","score":8},{"role":"OP","user_id":"anon_9fac2b7261b1442f","comment_id":"c2eiiqk","kind":"comment","text":"I actually knew about Enums, but didn't think about using them.\nThanks","timestamp":"2011-08-23T05:43:14+00:00","score":3},{"role":"answerer","user_id":"anon_290db0e897d35139","comment_id":"c2elrdy","kind":"comment","text":"No problem. Keep up the coding and show us when you have a new project.","timestamp":"2011-08-23T16:34:56+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9fac2b7261b1442f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_290db0e897d35139","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2ei2hv","thanks_reply_id":"c2eiiqk","post_score":0,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_788de49d53be268e","answerer_user_id":"anon_ffdb27ba1b3e8241","subreddit":"programming","timestamp":"2011-09-09T15:11:29+00:00","post_id":"ka3gd","question":"Is it possible to convert this image to vector? Sorry if wrong subreddit, but it's the most related I could find.","preferred_answer":"http://vectormagic.com/home","full_conversation":[{"role":"OP","user_id":"anon_788de49d53be268e","comment_id":"ka3gd","kind":"post","text":"Is it possible to convert this image to vector? Sorry if wrong subreddit, but it's the most related I could find.","timestamp":"2011-09-09T15:11:29+00:00","score":0},{"role":"answerer","user_id":"anon_ffdb27ba1b3e8241","comment_id":"c2imsgo","kind":"comment","text":"http://vectormagic.com/home","timestamp":"2011-09-09T15:59:27+00:00","score":3},{"role":"OP","user_id":"anon_788de49d53be268e","comment_id":"c2imv40","kind":"comment","text":"It works and is great, thanks :)","timestamp":"2011-09-09T16:08:31+00:00","score":1},{"role":"answerer","user_id":"anon_ffdb27ba1b3e8241","comment_id":"c2imwlb","kind":"comment","text":"Can you link to a vector copy somewhere? It crashed when I tried to do it and I'd like to see the results.","timestamp":"2011-09-09T16:13:35+00:00","score":2},{"role":"OP","user_id":"anon_788de49d53be268e","comment_id":"c2inbnx","kind":"comment","text":"I think this should work: https://skydrive.live.com/redir.aspx?cid=823c5d0a18f6319a&resid=823C5D0A18F6319A!108","timestamp":"2011-09-09T17:03:02+00:00","score":1},{"role":"answerer","user_id":"anon_ffdb27ba1b3e8241","comment_id":"c2ioq82","kind":"comment","text":"Hmm. I opened the PDF in inkscape and it made some interesting choices of objects boundaries. Some pieces it did perfectly but other had tiny imperfections that joined odd pieces together. After playing with it, I would go back and tweak the PNG and re-vectorize.\nThanks for posting.","timestamp":"2011-09-09T19:41:59+00:00","score":2},{"role":"OP","user_id":"anon_788de49d53be268e","comment_id":"c2ip8r6","kind":"comment","text":"Yep, and though you are right, I got just what I needed from this version. Thanks again man :)","timestamp":"2011-09-09T20:41:12+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_788de49d53be268e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ffdb27ba1b3e8241","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2imsgo","thanks_reply_id":"c2imv40","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_fc5beac37ae709c3","answerer_user_id":"anon_091c367b7dbc99c4","subreddit":"programming","timestamp":"2011-09-13T22:34:33+00:00","post_id":"kepcp","question":"What I Learned From Watching Notch Code","preferred_answer":"moved from the blog comments section:\n\nWoah, man. Woah.\n\nI think you're missing the primary benefit here, which is that he avoids regressions. By the time you are adding feature 256, you have 255 features which are going to possibly be affected by the code changes you introduce. This is a huge part of software engineering, and one that has gotten lots of attention over the years.\n\nThe process you describe for your development sounds extremely tedious, but probably won't break down until month 2 of development on a team of one. Once you reach a level of complexity beyond this, that's where automated testing proves it's salt.\n\nThe style of testing you're describing is commonly referred to as integration testing or acceptance testing, because it is designed to test the full stack in harmony. There are a number of great frameworks out there to help you do this. Cucumber is the one that's gotten the most love in the circles I am familiar with. You can write your steps in python or javascript, so don't worry that it's written in Ruby.\n\nThe typical thing to do once you've started doing automated testing is to actually *write your tests first*, watch them fail, then write the code to make the test pass. This forces you to ensure you have good test coverage (every feature is tested) and has been shown to result in better designed systems.\n\nYou have tons of reading to do if you want to learn more about this, but hit me up if you want a basic rundown.","full_conversation":[{"role":"OP","user_id":"anon_fc5beac37ae709c3","comment_id":"kepcp","kind":"post","text":"What I Learned From Watching Notch Code","timestamp":"2011-09-13T22:34:33+00:00","score":111},{"role":"answerer","user_id":"anon_091c367b7dbc99c4","comment_id":"c2jo6sv","kind":"comment","text":"moved from the blog comments section:\n\nWoah, man. Woah.\n\nI think you're missing the primary benefit here, which is that he avoids regressions. By the time you are adding feature 256, you have 255 features which are going to possibly be affected by the code changes you introduce. This is a huge part of software engineering, and one that has gotten lots of attention over the years.\n\nThe process you describe for your development sounds extremely tedious, but probably won't break down until month 2 of development on a team of one. Once you reach a level of complexity beyond this, that's where automated testing proves it's salt.\n\nThe style of testing you're describing is commonly referred to as integration testing or acceptance testing, because it is designed to test the full stack in harmony. There are a number of great frameworks out there to help you do this. Cucumber is the one that's gotten the most love in the circles I am familiar with. You can write your steps in python or javascript, so don't worry that it's written in Ruby.\n\nThe typical thing to do once you've started doing automated testing is to actually *write your tests first*, watch them fail, then write the code to make the test pass. This forces you to ensure you have good test coverage (every feature is tested) and has been shown to result in better designed systems.\n\nYou have tons of reading to do if you want to learn more about this, but hit me up if you want a basic rundown.","timestamp":"2011-09-13T22:58:09+00:00","score":31},{"role":"OP","user_id":"anon_fc5beac37ae709c3","comment_id":"c2jobkv","kind":"comment","text":"Thank you for your insightful comment :)\n\nBut how can programmatic testing help with user experience? Humans aren't robots (yet), so I don't see how that can help with real world testing. It can make sure that the inputs and outputs are right, but, and this is going to sound painfully wishy-washy, it can't ever capture the _feel_ of the thing. (Not that it's a bad idea at all, just saying there is a benefit to human-testing that I don't think can be recreated by machine.)\n\nAlso, regressions? Me? I don't think so. :P","timestamp":"2011-09-13T23:16:06+00:00","score":2},{"role":"answerer","user_id":"anon_091c367b7dbc99c4","comment_id":"c2joe3y","kind":"comment","text":"Check out Cucumber. Just do it.","timestamp":"2011-09-13T23:25:36+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fc5beac37ae709c3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_091c367b7dbc99c4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2jo6sv","thanks_reply_id":"c2jobkv","post_score":111,"answer_score":31,"preferred_answer_is_top_level":true}} {"user_id":"anon_8a0313c0c3ed68f8","answerer_user_id":"anon_b477753e11ef235b","subreddit":"programming","timestamp":"2011-09-18T10:05:24+00:00","post_id":"kjf91","question":"Retro: what were the big issues surrounding Java in 1998?","preferred_answer":"J++ had support for COM so they must have done something for properties. Exactly what that was I'm not sure of.","full_conversation":[{"role":"OP","user_id":"anon_8a0313c0c3ed68f8","comment_id":"kjf91","kind":"post","text":"Retro: what were the big issues surrounding Java in 1998?","timestamp":"2011-09-18T10:05:24+00:00","score":28},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"c2ktq13","kind":"comment","text":"J++ had support for COM so they must have done something for properties. Exactly what that was I'm not sure of.","timestamp":"2011-09-18T21:11:17+00:00","score":5},{"role":"OP","user_id":"anon_8a0313c0c3ed68f8","comment_id":"c2ktvyt","kind":"comment","text":"Wow, thanks for reminding me about that :) VS6 was as far as I remember actually one of the best Java IDEs at the time and Microsofts JVM actually the fastest one around.\n\nWhat a difference a decade makes, unimaginable today... *(not that MS is bad, or VS is bad, but that Microsoft was one of the top Java players)*","timestamp":"2011-09-18T21:35:21+00:00","score":4},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"c2ktzev","kind":"comment","text":"I still remember building J++ plug ins so that I could use it to develop Java 1.2 apps. The plug-in would FTP the source files to another computer and then use telnet to compile it there.","timestamp":"2011-09-18T21:49:14+00:00","score":2},{"role":"OP","user_id":"anon_8a0313c0c3ed68f8","comment_id":"c2ku1s6","kind":"comment","text":"Wow, cool :)","timestamp":"2011-09-18T21:58:20+00:00","score":1},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"c2kucgc","kind":"comment","text":"Yea, I am still quite proud of that. \n\nAs a follow-up I wrote a simple code editor for my C++ class. I found that building it out from scratch and dealing with TCP communication was easier than trying to learn vi.","timestamp":"2011-09-18T22:42:08+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_8a0313c0c3ed68f8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2ktq13","thanks_reply_id":"c2ktvyt","post_score":28,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_fa5cc49e3063a00d","answerer_user_id":"anon_e6d1f146c22d05d7","subreddit":"programming","timestamp":"2011-10-31T12:56:39+00:00","post_id":"lv3re","question":"Why do we still use numeric formats rather than mathematical notation?","preferred_answer":"Computer algebra systems can't always decide such comparisons. Also, even in the cases they can they are extremely slow.\n\nIterative algorithms are a problem:\n\n while(...){ x = sqrt(x); }\n\nNow you'll end up with *huge* expressions.\n\nThat said, there are some alternative (non-symbolic) to represent exact real numbers. For example http://www.resource-aware.org/twiki/pub/Internal/AngelaYZNotes/Corky_Real.pdf","full_conversation":[{"role":"OP","user_id":"anon_fa5cc49e3063a00d","comment_id":"lv3re","kind":"post","text":"Why do we still use numeric formats rather than mathematical notation?","timestamp":"2011-10-31T12:56:39+00:00","score":0},{"role":"answerer","user_id":"anon_e6d1f146c22d05d7","comment_id":"c2vuh4o","kind":"comment","text":"Computer algebra systems can't always decide such comparisons. Also, even in the cases they can they are extremely slow.\n\nIterative algorithms are a problem:\n\n while(...){ x = sqrt(x); }\n\nNow you'll end up with *huge* expressions.\n\nThat said, there are some alternative (non-symbolic) to represent exact real numbers. For example http://www.resource-aware.org/twiki/pub/Internal/AngelaYZNotes/Corky_Real.pdf","timestamp":"2011-10-31T13:57:40+00:00","score":2},{"role":"OP","user_id":"anon_fa5cc49e3063a00d","comment_id":"c2vuj0g","kind":"comment","text":"Thank you for link! Is there anything similar to this? How can I google for it?","timestamp":"2011-10-31T14:06:40+00:00","score":1},{"role":"answerer","user_id":"anon_e6d1f146c22d05d7","comment_id":"c2vutpn","kind":"comment","text":"Google for: exact real arithmetic.","timestamp":"2011-10-31T14:52:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fa5cc49e3063a00d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e6d1f146c22d05d7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2vuh4o","thanks_reply_id":"c2vuj0g","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_da171c751162c016","answerer_user_id":"anon_b2fb1d25c1b26de5","subreddit":"programming","timestamp":"2011-11-03T21:34:40+00:00","post_id":"lzh3q","question":"Hi Reddit, I've rewritten my blog from Silverlight to ASP.Net MVC in HTML5 and gave it a Windows 8 Metro inspired look. Open source link inside. What do you think?","preferred_answer":"It looks really good, but if you'd like some design advice on how to make it \"more like\" the Win8 UX, I'd be happy to provide some (hopefully helpful) criticisms.\n\nI don't want to trash your work, especially for work that is open source. But I think there are certain aspects of your UI that are \"not smooth\" and could be cleaned up. And the layout I think could be adjusted, as I think you made some of the wrong (ish?) trade-offs in designing a start page like experience.\n\nIf you'd like more comment, please let me know. Again, not to bash, it looks fantastic.","full_conversation":[{"role":"OP","user_id":"anon_da171c751162c016","comment_id":"lzh3q","kind":"post","text":"Hi Reddit, I've rewritten my blog from Silverlight to ASP.Net MVC in HTML5 and gave it a Windows 8 Metro inspired look. Open source link inside. What do you think?","timestamp":"2011-11-03T21:34:40+00:00","score":0},{"role":"answerer","user_id":"anon_b2fb1d25c1b26de5","comment_id":"c2wuen7","kind":"comment","text":"It looks really good, but if you'd like some design advice on how to make it \"more like\" the Win8 UX, I'd be happy to provide some (hopefully helpful) criticisms.\n\nI don't want to trash your work, especially for work that is open source. But I think there are certain aspects of your UI that are \"not smooth\" and could be cleaned up. And the layout I think could be adjusted, as I think you made some of the wrong (ish?) trade-offs in designing a start page like experience.\n\nIf you'd like more comment, please let me know. Again, not to bash, it looks fantastic.","timestamp":"2011-11-03T22:08:16+00:00","score":-1},{"role":"OP","user_id":"anon_da171c751162c016","comment_id":"c2wuhmg","kind":"comment","text":"Go for it! The more feedback the better. Thanks!","timestamp":"2011-11-03T22:17:14+00:00","score":1},{"role":"answerer","user_id":"anon_b2fb1d25c1b26de5","comment_id":"c2wwhkm","kind":"comment","text":"Alright, well my first complaint is that the charms don't have a uniform appearance and action, and aren't \"smooth\". Actually, clicking any of the links seems to result in a rather rigid, dare I say jarring experience. Cleaning that up with fancy jquery-ness may be difficult though.\n\nBut to elaborate on the start page a bit, I think a lot of the benefit of the start page and group setup with Windows 8 is the uniformity of it. You can learn where your favorite apps are. But this highly dynamic interface where each link goes to something different, or even changes as it's on screen, makes it harder to acquire any meaningful connection between \"top left button\" and \"thing it does\". Especially if accessing your #1 story is something I'll only do once or twice, then I might come back, say, and now it's #2.\n\nSo I would recommend perhaps making your interface a _little_ less dynamic, and having better, more meaningful arrangement of tiles, and perhaps splitting elements out into groups a la the new start page.\n\nYou could for example have a group \"Latest Stories\" that would have just say, four wide tiles with your biggest stories. And a group \"Top Stories\" with 2 wide tiles say 8 small tiles (making it 3 wide, 4 tall) and, this could differ based on resolution or something. The top stories would be based on an algorithm that only infrequently changes them. \n\nFurther, to aide finding these items and aid recognition of changes in the page, one might assign each story a specific, static color that didn't change over the lifetime of the site. The color, or image, could be based on content in the page.\n\nI don't like the flipping tiles, it's very distracting and makes it hard to read the story title, and there's no UI response to hovering over the tile, such as preventing it from flipping while I'm reading. If you're going to flip the tile—something I might not recommend, at least in its current incarnation, it's rather jarring—perhaps do it when the users hovers?\n\nFinally, for things like social media, twitter, or categories, it might be worthwhile to construct a single \"Tweets\" tile, \"Google+\" title, or \"Windows 8 News\" that remains statically positioned and, again, retain a particular color or imagery despite what their underlying content might be. That tile could display some text or small iconography to indicate new contents. And again, to reduce how jarring the experience can be, a metro app themed page could come up that would display that content, even if it was a tweet or somesuch, before launching the user to a third party page.\n\nIt's pretty, mind you. The interface is off to a very strong start and it's beyond admirable that you've open sourced it. But if I could describe interaction with it in one word, it would be \"jarring\". It lacks the buttery smoothness of modern interfaces a la the Windows 8, iOS, etc experience.","timestamp":"2011-11-04T01:44:01+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_da171c751162c016","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b2fb1d25c1b26de5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2wuen7","thanks_reply_id":"c2wuhmg","post_score":0,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_3152a173cfd3efe7","answerer_user_id":"anon_80f5d5e517ff8943","subreddit":"programming","timestamp":"2011-11-11T14:12:57+00:00","post_id":"m8oiq","question":"Any developer who thinks this app can be done and wants to work with me on it?","preferred_answer":"This will be annoying because you're moving something around that's also the same thing that you're supposed to be seeing the changes on.\n\nI like the idea, I just don't think in reality it will turn out so well.\n\nI'm sure though, a cool microcontroller+accelerometer device would be nice for a desktop.","full_conversation":[{"role":"OP","user_id":"anon_3152a173cfd3efe7","comment_id":"m8oiq","kind":"post","text":"Any developer who thinks this app can be done and wants to work with me on it?","timestamp":"2011-11-11T14:12:57+00:00","score":0},{"role":"answerer","user_id":"anon_80f5d5e517ff8943","comment_id":"c2yz8un","kind":"comment","text":"This will be annoying because you're moving something around that's also the same thing that you're supposed to be seeing the changes on.\n\nI like the idea, I just don't think in reality it will turn out so well.\n\nI'm sure though, a cool microcontroller+accelerometer device would be nice for a desktop.","timestamp":"2011-11-11T14:22:56+00:00","score":6},{"role":"OP","user_id":"anon_3152a173cfd3efe7","comment_id":"c2yza44","kind":"comment","text":"Thanks for the feedback! One use case I was thinking of was actually tracing the contours of an object in front of you, say, a chair. In this case, you would indeed \"see\" the object (and of course, check the preview every now and then).\n\nAs mentioned elsewhere here, I also contemplated an optional iPad connect for previews.","timestamp":"2011-11-11T14:28:52+00:00","score":2},{"role":"answerer","user_id":"anon_80f5d5e517ff8943","comment_id":"c2yzcal","kind":"comment","text":"I see what you mean, but wouldn't the shape be really distorted due to the angle of being traced? It wouldn't be 3D without setting up a locked x,y,z position of it and being able to 'walk' around it with the device.\n\nI'd say start walking the separate device path interfacing with some app. There *might* already be something out there like this done with an Arduino.\n\nI'm thinking for a basic tech demo: \n\n Shape done with points\n Device has a pointer in the window\n Grab point \n Wave your device around\n\nSomething like that would be cool for a start.\n\nThe Arduino has really simple USB Serial communications and there are readily available libraries for interfacing with accellerometers, would be cool. Maybe would require two at right angles to each other.","timestamp":"2011-11-11T14:38:49+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3152a173cfd3efe7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_80f5d5e517ff8943","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c2yz8un","thanks_reply_id":"c2yza44","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_a3a6c493bf5e5273","answerer_user_id":"anon_2647c679f496c9d9","subreddit":"programming","timestamp":"2011-11-15T11:01:25+00:00","post_id":"mcyw8","question":"How to teach \"Modern\" Perl?","preferred_answer":"The downvotes are how I know the Perl fanboys are butthurt. I wouldn't have it any other way. \n\nSeriously, it's irresponsible to evangelize a dead-end language like Perl. I mean, I can understand if you use it because you're stuck with a huge pile of legacy crap nobody wants to touch, but starting a new project with it -- really??! That's ridiculous. And trying to recruit new Perl programmers is just mean. Clean up your own messes!","full_conversation":[{"role":"OP","user_id":"anon_a3a6c493bf5e5273","comment_id":"mcyw8","kind":"post","text":"How to teach \"Modern\" Perl?","timestamp":"2011-11-15T11:01:25+00:00","score":9},{"role":"answerer","user_id":"anon_2647c679f496c9d9","comment_id":"c300m18","kind":"comment","text":"The downvotes are how I know the Perl fanboys are butthurt. I wouldn't have it any other way. \n\nSeriously, it's irresponsible to evangelize a dead-end language like Perl. I mean, I can understand if you use it because you're stuck with a huge pile of legacy crap nobody wants to touch, but starting a new project with it -- really??! That's ridiculous. And trying to recruit new Perl programmers is just mean. Clean up your own messes!","timestamp":"2011-11-15T19:40:39+00:00","score":-7},{"role":"OP","user_id":"anon_a3a6c493bf5e5273","comment_id":"c300oqu","kind":"comment","text":"You know, i appreciate a good trolling. I really do. But all you bring to the table is so incredibly crude. :(","timestamp":"2011-11-15T19:48:44+00:00","score":2},{"role":"answerer","user_id":"anon_2647c679f496c9d9","comment_id":"c300qxf","kind":"comment","text":"Ok, then here's something well thought out, cultured and refined for you:\n\n>Perl is another example of filling a tiny, short-term need, and then being a real problem in the longer term. Basically, a lot of the problems that computing has had in the last 25 years comes from systems where the designers were trying to fix some short-term thing and didn’t think about whether the idea would scale if it were adopted. There should be a half-life on software so old software just melts away over 10 or 15 years.\" -ACM Queue A Conversation with Alan Kay Vol. 2, No. 9 - Dec/Jan 2004-2005\n\nAnd if it doesn't melt away, then it needs to be burned away.","timestamp":"2011-11-15T19:55:20+00:00","score":-1},{"role":"OP","user_id":"anon_a3a6c493bf5e5273","comment_id":"c300snk","kind":"comment","text":"That quotation has little value since it opens with two statements it provides zero support for.\n\n> Perl is another example of filling a tiny, short-term need\n\nWhat tiny need?\n\n> and then being a real problem in the longer term.\n\nHow was it a real problem?\n\nAnd again, you demonstrate all the elegance of an infuriated denizen of 4chan's /b/. :)","timestamp":"2011-11-15T20:00:19+00:00","score":1},{"role":"answerer","user_id":"anon_2647c679f496c9d9","comment_id":"c3016as","kind":"comment","text":"Smalltalk inspired a whole host of excellent languages. Perl inspired ... PHP.","timestamp":"2011-11-15T20:39:49+00:00","score":-1},{"role":"OP","user_id":"anon_a3a6c493bf5e5273","comment_id":"c301jbr","kind":"comment","text":"Man, you're just so boring and uninspired. I can't even be arsed to downvote.","timestamp":"2011-11-15T21:16:25+00:00","score":3}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_a3a6c493bf5e5273","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2647c679f496c9d9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c300m18","thanks_reply_id":"c300oqu","post_score":9,"answer_score":-7,"preferred_answer_is_top_level":false}} {"user_id":"anon_33a2b4cfade87c30","answerer_user_id":"anon_fd2cd45e4161309a","subreddit":"programming","timestamp":"2011-11-23T23:41:40+00:00","post_id":"mnaqo","question":"What's In A GIF?","preferred_answer":"Nice article! One nit I found:\n\n> The disposal method specifies what happens to the current image data when you move onto the next. A value of 2 would have meant that the canvas should be restored to the background color (as indicated by the logical screen descriptor).\n\nThis will only restore the current frame's bounds to the background color. For example if a GIF is 100x100 and the current frame is positioned at 25,25 with dimensions of 50x50, then with disposal method 2 you'll get a square in the middle of the GIF painted to the background color.","full_conversation":[{"role":"OP","user_id":"anon_33a2b4cfade87c30","comment_id":"mnaqo","kind":"post","text":"What's In A GIF?","timestamp":"2011-11-23T23:41:40+00:00","score":717},{"role":"answerer","user_id":"anon_fd2cd45e4161309a","comment_id":"c32c3kq","kind":"comment","text":"Nice article! One nit I found:\n\n> The disposal method specifies what happens to the current image data when you move onto the next. A value of 2 would have meant that the canvas should be restored to the background color (as indicated by the logical screen descriptor).\n\nThis will only restore the current frame's bounds to the background color. For example if a GIF is 100x100 and the current frame is positioned at 25,25 with dimensions of 50x50, then with disposal method 2 you'll get a square in the middle of the GIF painted to the background color.","timestamp":"2011-11-24T04:03:00+00:00","score":6},{"role":"OP","user_id":"anon_33a2b4cfade87c30","comment_id":"c32c6pg","kind":"comment","text":"Thanks. I'll see if i can create an example and add that.","timestamp":"2011-11-24T04:14:49+00:00","score":2},{"role":"answerer","user_id":"anon_fd2cd45e4161309a","comment_id":"c32lz6d","kind":"comment","text":"I think I have an example of this somewhere...if I remember to find it I'll link it here.","timestamp":"2011-11-25T09:03:46+00:00","score":1},{"role":"OP","user_id":"anon_33a2b4cfade87c30","comment_id":"c32n1np","kind":"comment","text":"Thanks. That would be helpful.","timestamp":"2011-11-25T14:31:39+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_33a2b4cfade87c30","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fd2cd45e4161309a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c32c3kq","thanks_reply_id":"c32c6pg","post_score":717,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_05956f2fd5bfd916","answerer_user_id":"anon_73e0f2b2015ff667","subreddit":"programming","timestamp":"2011-12-28T11:08:28+00:00","post_id":"nthnl","question":"Why Haskell Needs Monads","preferred_answer":"This is what monad tutorials should be like.\n\nA request: could someone please produce a similarly short, clean, demonstration of using IO and State? Perhaps something along the lines of a program to provide on demand the sum of the previous n values of the microseconds part of the system clock, for n < some k. I'm guessing that one would use State for this, but maybe not. Hence the request.","full_conversation":[{"role":"OP","user_id":"anon_05956f2fd5bfd916","comment_id":"nthnl","kind":"post","text":"Why Haskell Needs Monads","timestamp":"2011-12-28T11:08:28+00:00","score":0},{"role":"answerer","user_id":"anon_73e0f2b2015ff667","comment_id":"c3bsuqf","kind":"comment","text":"This is what monad tutorials should be like.\n\nA request: could someone please produce a similarly short, clean, demonstration of using IO and State? Perhaps something along the lines of a program to provide on demand the sum of the previous n values of the microseconds part of the system clock, for n < some k. I'm guessing that one would use State for this, but maybe not. Hence the request.","timestamp":"2011-12-28T11:36:29+00:00","score":1},{"role":"OP","user_id":"anon_05956f2fd5bfd916","comment_id":"c3bv7yl","kind":"comment","text":"Thanks for the support.\n\nUnfortunately, it doesn't look like other people share your view.","timestamp":"2011-12-28T17:59:01+00:00","score":1},{"role":"answerer","user_id":"anon_73e0f2b2015ff667","comment_id":"c3bvbea","kind":"comment","text":"Reddit is fickle.","timestamp":"2011-12-28T18:08:04+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_05956f2fd5bfd916","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_73e0f2b2015ff667","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c3bsuqf","thanks_reply_id":"c3bv7yl","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_8fbd8741aa0329f8","answerer_user_id":"anon_28d09bb226a9019e","subreddit":"programming","timestamp":"2012-01-04T17:24:02+00:00","post_id":"o2owj","question":"Freeglut 2.8.0. Thoughts? Opinions? Alternatives? What's your favorite graphics environment?","preferred_answer":"I think GLUT had a very specific and limited purpose. I admire that FreeGlut has come about to maintain that purpose. I'd also give a shout out to GLUT|ES, an OpenGL ES variant for mobile-like devices:\nhttp://glutes.sourceforge.net/\n\nAnd, plug here, if you're doing OpenGL (regular or ES) you should check out OpenSceneGraph. THAT is my favorite graphis environment. You can use as much or as little of it as you need, and if you use it, it can greatly multiply your OpenGL development productivity and enjoyment.","full_conversation":[{"role":"OP","user_id":"anon_8fbd8741aa0329f8","comment_id":"o2owj","kind":"post","text":"Freeglut 2.8.0. Thoughts? Opinions? Alternatives? What's your favorite graphics environment?","timestamp":"2012-01-04T17:24:02+00:00","score":28},{"role":"answerer","user_id":"anon_28d09bb226a9019e","comment_id":"c3dvi34","kind":"comment","text":"I think GLUT had a very specific and limited purpose. I admire that FreeGlut has come about to maintain that purpose. I'd also give a shout out to GLUT|ES, an OpenGL ES variant for mobile-like devices:\nhttp://glutes.sourceforge.net/\n\nAnd, plug here, if you're doing OpenGL (regular or ES) you should check out OpenSceneGraph. THAT is my favorite graphis environment. You can use as much or as little of it as you need, and if you use it, it can greatly multiply your OpenGL development productivity and enjoyment.","timestamp":"2012-01-04T17:37:39+00:00","score":11},{"role":"OP","user_id":"anon_8fbd8741aa0329f8","comment_id":"c3dvirp","kind":"comment","text":"Thanks for the input! I'm working on a volume rendering project right now and Freeglut+glew+GC has been pretty great! I'm always looking for new, fun graphics environments though. I'll check out OpenSceneGraph!","timestamp":"2012-01-04T17:39:25+00:00","score":1},{"role":"answerer","user_id":"anon_28d09bb226a9019e","comment_id":"c3dvkcl","kind":"comment","text":"Check out the osgVolume sub-project especially.","timestamp":"2012-01-04T17:43:21+00:00","score":2},{"role":"OP","user_id":"anon_8fbd8741aa0329f8","comment_id":"c3dvojj","kind":"comment","text":"I will! Thanks! Unfortunately their project page isn't loading for me right now, but I'll try again later.","timestamp":"2012-01-04T17:54:26+00:00","score":1},{"role":"answerer","user_id":"anon_28d09bb226a9019e","comment_id":"c3e87pk","kind":"comment","text":"It's up now. Their host (University of Valencia) is flaky and they're moving to a new host soon.","timestamp":"2012-01-05T18:31:28+00:00","score":1},{"role":"OP","user_id":"anon_8fbd8741aa0329f8","comment_id":"c3e898o","kind":"comment","text":"Thanks!","timestamp":"2012-01-05T18:35:13+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_8fbd8741aa0329f8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_28d09bb226a9019e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c3dvi34","thanks_reply_id":"c3dvirp","post_score":28,"answer_score":11,"preferred_answer_is_top_level":true}} {"user_id":"anon_37efbf355196813c","answerer_user_id":"anon_4b13a427f30d957d","subreddit":"programming","timestamp":"2012-01-31T13:56:03+00:00","post_id":"p4izu","question":"Why Lua","preferred_answer":"> it doesn't feel as \"nice\" as Python.\n\nI like (parts of) Python syntax so much that I should attempt to write a language translator into Lua (kind of what Objective Lua and lolcode-to-lua do), even if only to gain more experience with Lua itself[*]. :-D\n\n[*] I used Lua for a while, 10 years ago, but I dropped it too soon (same with Python... I was in \"we-don't-need-no-stinking-scripting-languages\" mode back then, sigh...).\n\nNinja edit: Nice article, btw. Thanks!","full_conversation":[{"role":"OP","user_id":"anon_37efbf355196813c","comment_id":"p4izu","kind":"post","text":"Why Lua","timestamp":"2012-01-31T13:56:03+00:00","score":243},{"role":"answerer","user_id":"anon_4b13a427f30d957d","comment_id":"c3mjuz1","kind":"comment","text":"> it doesn't feel as \"nice\" as Python.\n\nI like (parts of) Python syntax so much that I should attempt to write a language translator into Lua (kind of what Objective Lua and lolcode-to-lua do), even if only to gain more experience with Lua itself[*]. :-D\n\n[*] I used Lua for a while, 10 years ago, but I dropped it too soon (same with Python... I was in \"we-don't-need-no-stinking-scripting-languages\" mode back then, sigh...).\n\nNinja edit: Nice article, btw. Thanks!","timestamp":"2012-01-31T20:18:44+00:00","score":2},{"role":"OP","user_id":"anon_37efbf355196813c","comment_id":"c3mohv2","kind":"comment","text":"Thanks! Yes, I've thought about doing something similar - Lua is a lovely language to \"compile to\" (I've done it in our product and found it quite enjoyable). Good luck and let me know if you end up doing it!","timestamp":"2012-02-01T02:52:12+00:00","score":1},{"role":"answerer","user_id":"anon_4b13a427f30d957d","comment_id":"c3s7ayd","kind":"comment","text":"Just to let you know...\n\n> let me know if you end up doing it!\n\nI haven't yet, but found this: [MoonScript](http://moonscript.org/). It \"provides a clean syntax using significant whitespace that avoids all the keyword noise typically seen in a Lua script.\".\n\nDefinitively, I'll be reading it's implementation. Either to use MoonScript as-is, or to use it as a base for my own hacking (far closer to what I want than the other LanguageX-to-Lua compilers).","timestamp":"2012-02-17T15:34:37+00:00","score":1},{"role":"OP","user_id":"anon_37efbf355196813c","comment_id":"c3s7zk1","kind":"comment","text":"Very cool ... the creator of that language seems very nice too. I \"ran into him\" either on here or on HN, so I'm sure if you needed any help with MoonScript, he'd be happy to help there as well. Good luck :)","timestamp":"2012-02-17T16:39:59+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_37efbf355196813c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4b13a427f30d957d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c3mjuz1","thanks_reply_id":"c3mohv2","post_score":243,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_7d09476a8306ecf9","answerer_user_id":"anon_787685900277475f","subreddit":"programming","timestamp":"2012-03-16T15:03:54+00:00","post_id":"qzfqx","question":"A simple Reddit image viewer I built with Bootstrap. What do you think?","preferred_answer":"As the proggit patrol will alert you anytime now, this isn't a programming post per say, so it probably doesn't belong here (reason: see sidebar).\n\nThat said, such a nice clean design. Good job!\n\nAlso, here's a small [suggestion](http://i.imgur.com/4jvGL.png).","full_conversation":[{"role":"OP","user_id":"anon_7d09476a8306ecf9","comment_id":"qzfqx","kind":"post","text":"A simple Reddit image viewer I built with Bootstrap. What do you think?","timestamp":"2012-03-16T15:03:54+00:00","score":57},{"role":"answerer","user_id":"anon_787685900277475f","comment_id":"c41or8s","kind":"comment","text":"As the proggit patrol will alert you anytime now, this isn't a programming post per say, so it probably doesn't belong here (reason: see sidebar).\n\nThat said, such a nice clean design. Good job!\n\nAlso, here's a small [suggestion](http://i.imgur.com/4jvGL.png).","timestamp":"2012-03-16T16:03:25+00:00","score":4},{"role":"OP","user_id":"anon_7d09476a8306ecf9","comment_id":"c41otal","kind":"comment","text":"Thanks, that's a nice suggestion.\nAny idea where would be a better place to post this?","timestamp":"2012-03-16T16:08:36+00:00","score":1},{"role":"answerer","user_id":"anon_787685900277475f","comment_id":"c41oug3","kind":"comment","text":"I have no idea. I was just warning you. :)","timestamp":"2012-03-16T16:11:21+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7d09476a8306ecf9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_787685900277475f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c41or8s","thanks_reply_id":"c41otal","post_score":57,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_82ad0792cc3752cf","answerer_user_id":"anon_3624e53a67f59df8","subreddit":"programming","timestamp":"2012-05-15T19:15:12+00:00","post_id":"ton5l","question":"Why I am Creating a Programming Language","preferred_answer":"\"Before the iPhone launched (and keep in mind that was only five years ago), a whole industry had a very clear picture of what were and what were not the needs of their customers. Needless to say, they were pretty much wrong. Today’s marketshare leader (Android) didn’t even exist then;\"\n\nIncorrect. The Android operating system was created in 2003, purchased by Google in 2005, and released to the public in 2007, the same year as the iPhone.","full_conversation":[{"role":"OP","user_id":"anon_82ad0792cc3752cf","comment_id":"ton5l","kind":"post","text":"Why I am Creating a Programming Language","timestamp":"2012-05-15T19:15:12+00:00","score":229},{"role":"answerer","user_id":"anon_3624e53a67f59df8","comment_id":"c4omaq2","kind":"comment","text":"\"Before the iPhone launched (and keep in mind that was only five years ago), a whole industry had a very clear picture of what were and what were not the needs of their customers. Needless to say, they were pretty much wrong. Today’s marketshare leader (Android) didn’t even exist then;\"\n\nIncorrect. The Android operating system was created in 2003, purchased by Google in 2005, and released to the public in 2007, the same year as the iPhone.","timestamp":"2012-05-16T05:41:34+00:00","score":2},{"role":"OP","user_id":"anon_82ad0792cc3752cf","comment_id":"c4omrn8","kind":"comment","text":"Oops. I stand corrected. It's fixed on the post now. Thanks!","timestamp":"2012-05-16T06:30:19+00:00","score":2},{"role":"answerer","user_id":"anon_3624e53a67f59df8","comment_id":"c4omsl6","kind":"comment","text":"Thanks. Nicely done. :)","timestamp":"2012-05-16T06:33:27+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_82ad0792cc3752cf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3624e53a67f59df8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c4omaq2","thanks_reply_id":"c4omrn8","post_score":229,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_784fe8b2ca7783a9","answerer_user_id":"anon_0ecbf28dd062c303","subreddit":"programming","timestamp":"2012-07-08T06:39:41+00:00","post_id":"w7oze","question":"BUYING features from open source projects?","preferred_answer":"You really don't think like a CEO, it probably makes you a good person though.","full_conversation":[{"role":"OP","user_id":"anon_784fe8b2ca7783a9","comment_id":"w7oze","kind":"post","text":"BUYING features from open source projects?","timestamp":"2012-07-08T06:39:41+00:00","score":13},{"role":"answerer","user_id":"anon_0ecbf28dd062c303","comment_id":"c5b9hu6","kind":"comment","text":"You really don't think like a CEO, it probably makes you a good person though.","timestamp":"2012-07-09T00:44:02+00:00","score":3},{"role":"OP","user_id":"anon_784fe8b2ca7783a9","comment_id":"c5d2jk4","kind":"comment","text":"Thanks, I guess.\nI never thought of myself as one until you said so :-)","timestamp":"2012-07-12T18:18:02+00:00","score":0},{"role":"answerer","user_id":"anon_0ecbf28dd062c303","comment_id":"c5d6k8m","kind":"comment","text":"Notice you don't share cbrandolino's username though :)","timestamp":"2012-07-12T22:19:26+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_784fe8b2ca7783a9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0ecbf28dd062c303","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c5b9hu6","thanks_reply_id":"c5d2jk4","post_score":13,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_74f4d1537f7927f6","answerer_user_id":"anon_6eb32a54069f7f22","subreddit":"programming","timestamp":"2012-08-21T16:47:37+00:00","post_id":"yl5tx","question":"Should I write my next web project in Clojure / Noir?","preferred_answer":"Downvoted because this sub isn't really targeted towards asking specific questions about personal projects, plus you've already asked it on YC. Try /r/programmingprojects or /r/webdev instead.","full_conversation":[{"role":"OP","user_id":"anon_74f4d1537f7927f6","comment_id":"yl5tx","kind":"post","text":"Should I write my next web project in Clojure / Noir?","timestamp":"2012-08-21T16:47:37+00:00","score":0},{"role":"answerer","user_id":"anon_6eb32a54069f7f22","comment_id":"c5wk52j","kind":"comment","text":"Downvoted because this sub isn't really targeted towards asking specific questions about personal projects, plus you've already asked it on YC. Try /r/programmingprojects or /r/webdev instead.","timestamp":"2012-08-21T16:56:30+00:00","score":2},{"role":"OP","user_id":"anon_74f4d1537f7927f6","comment_id":"c5wk6hz","kind":"comment","text":"Thanks... I'm learning...\n +1 for commenting why the downvote, this is how new guys learn the rules of the house :)","timestamp":"2012-08-21T16:58:53+00:00","score":1},{"role":"answerer","user_id":"anon_6eb32a54069f7f22","comment_id":"c5wk9za","kind":"comment","text":"No problem. Also, how about just downloading Clojure/Noir, trying it out, and then deciding if it's right for your project? Opinions on languages/frameworks/toolsets etc. vary wildly, and almost none of it is objective. It's a good idea to see what other people think of the tools you're considering using, but you shouldn't base your decision solely on their responses.","timestamp":"2012-08-21T17:04:35+00:00","score":2},{"role":"OP","user_id":"anon_74f4d1537f7927f6","comment_id":"c5wkgfn","kind":"comment","text":"Thanks, \nStarted out with Clojure a little, but hearing from the community (especially one highly in favor of Clojure) if it's a good idea to do a real world project, is something that might save me a lot of time...","timestamp":"2012-08-21T17:15:01+00:00","score":1},{"role":"answerer","user_id":"anon_6eb32a54069f7f22","comment_id":"c5wkk5e","kind":"comment","text":"The phrase \"real world project\" doesn't mean a lot; if the code runs, then it's good for a real world project (some would argue this is the only reason PHP is popular). Scalability may eventually become an issue, but it's not something I'd worry about when first starting out. Use good practices to reduce the potential work needed to scale in the future, but having a web project that's so popular that you need to refactor some code in order to scale properly is a great problem to have.","timestamp":"2012-08-21T17:20:51+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_74f4d1537f7927f6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6eb32a54069f7f22","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c5wk52j","thanks_reply_id":"c5wk6hz","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_57701f72c15b5d32","answerer_user_id":"anon_a4e497637b317d64","subreddit":"programming","timestamp":"2012-09-15T20:00:08+00:00","post_id":"zxtjp","question":"Looking for some feedback, suggestions, etc... on my link shortener. Directed here by an r/AskReddit mod.","preferred_answer":"Site looks good. Works well [NSFW - http://shortn.us/3W](http://shortn.us/3W)","full_conversation":[{"role":"OP","user_id":"anon_57701f72c15b5d32","comment_id":"zxtjp","kind":"post","text":"Looking for some feedback, suggestions, etc... on my link shortener. Directed here by an r/AskReddit mod.","timestamp":"2012-09-15T20:00:08+00:00","score":21},{"role":"answerer","user_id":"anon_a4e497637b317d64","comment_id":"c68yo4k","kind":"comment","text":"Site looks good. Works well [NSFW - http://shortn.us/3W](http://shortn.us/3W)","timestamp":"2012-09-16T16:12:52+00:00","score":2},{"role":"OP","user_id":"anon_57701f72c15b5d32","comment_id":"c68yqu9","kind":"comment","text":"Thanks... I'm going to be adding NSFW tags just like the current misc tags.","timestamp":"2012-09-16T16:18:47+00:00","score":2},{"role":"answerer","user_id":"anon_a4e497637b317d64","comment_id":"c68yrk2","kind":"comment","text":"NP","timestamp":"2012-09-16T16:20:22+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_57701f72c15b5d32","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a4e497637b317d64","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c68yo4k","thanks_reply_id":"c68yqu9","post_score":21,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_60ae5bc0e7a1726c","answerer_user_id":"anon_eaffbc5973918ecd","subreddit":"programming","timestamp":"2012-10-17T16:16:13+00:00","post_id":"11mwb3","question":"I'm getting ready to launch my first API - Print and mail documents with one API - try{Paper}, feedback anyone?","preferred_answer":"Very, very cool. Any kind of interface to the physical world is a great thing. I will definitely be making use of it.\n\nIs there any chance at all of adding a check to the mailing? Or is that difficult for legal reasons I'm unaware of? Disclosure: I'm asking that part for personal reasons (it's difficult to make certain payments when traveling and this would really be convenient).","full_conversation":[{"role":"OP","user_id":"anon_60ae5bc0e7a1726c","comment_id":"11mwb3","kind":"post","text":"I'm getting ready to launch my first API - Print and mail documents with one API - try{Paper}, feedback anyone?","timestamp":"2012-10-17T16:16:13+00:00","score":73},{"role":"answerer","user_id":"anon_eaffbc5973918ecd","comment_id":"c6o0sbi","kind":"comment","text":"Very, very cool. Any kind of interface to the physical world is a great thing. I will definitely be making use of it.\n\nIs there any chance at all of adding a check to the mailing? Or is that difficult for legal reasons I'm unaware of? Disclosure: I'm asking that part for personal reasons (it's difficult to make certain payments when traveling and this would really be convenient).","timestamp":"2012-10-17T22:52:22+00:00","score":2},{"role":"OP","user_id":"anon_60ae5bc0e7a1726c","comment_id":"c6o0vik","kind":"comment","text":"oh, and thanks, we hope it'll be a great thing too :)","timestamp":"2012-10-17T22:58:07+00:00","score":1},{"role":"answerer","user_id":"anon_eaffbc5973918ecd","comment_id":"c6o850j","kind":"comment","text":"It's definitely got that potential. It's like Twilio for mail. I've waited for this for a long time.\n\nSo ... want me to write some API stuff for ya?","timestamp":"2012-10-18T08:54:13+00:00","score":1},{"role":"OP","user_id":"anon_60ae5bc0e7a1726c","comment_id":"c6odhmo","kind":"comment","text":"we'd LOVE to be as good as the team at Twilio! (and they're a model for our API - quick and easy). as to writing code, at the moment we're good, but shoot me a message and maybe we can talk?","timestamp":"2012-10-18T17:17:29+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_60ae5bc0e7a1726c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_eaffbc5973918ecd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c6o0sbi","thanks_reply_id":"c6o0vik","post_score":73,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_e2c7596188950205","answerer_user_id":"anon_493885f610fafc7f","subreddit":"programming","timestamp":"2012-11-02T00:51:11+00:00","post_id":"12hmmf","question":"Is there a way to redirect the output from a console app in Visual C++ to the output window like in Xcode? LINKED:[Video of a console app in Xcode]","preferred_answer":"Check out the output window in VS\n\nhttp://msdn.microsoft.com/en-us/library/3hk6fby3.aspx","full_conversation":[{"role":"OP","user_id":"anon_e2c7596188950205","comment_id":"12hmmf","kind":"post","text":"Is there a way to redirect the output from a console app in Visual C++ to the output window like in Xcode? LINKED:[Video of a console app in Xcode]","timestamp":"2012-11-02T00:51:11+00:00","score":0},{"role":"answerer","user_id":"anon_493885f610fafc7f","comment_id":"c6v4dkr","kind":"comment","text":"Check out the output window in VS\n\nhttp://msdn.microsoft.com/en-us/library/3hk6fby3.aspx","timestamp":"2012-11-02T01:53:06+00:00","score":0},{"role":"OP","user_id":"anon_e2c7596188950205","comment_id":"c6v50z3","kind":"comment","text":"Thanks but they only talk about letting your write on the output window using System.Diagnostics.\n\nI would just like all the stdout there without a hanging cmd window.\n\nYou know just get the output of printf in the output window.","timestamp":"2012-11-02T02:36:34+00:00","score":0},{"role":"answerer","user_id":"anon_493885f610fafc7f","comment_id":"c6vaf69","kind":"comment","text":"I think if you select debug from the drop down combo box you will see the output of the program.","timestamp":"2012-11-02T13:06:17+00:00","score":1},{"role":"OP","user_id":"anon_e2c7596188950205","comment_id":"c6vav3b","kind":"comment","text":"Nope, moreover there are many articles on the web about this problem and people trying to do what I want, so I guess it is not that simple.","timestamp":"2012-11-02T13:45:46+00:00","score":0}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_e2c7596188950205","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_493885f610fafc7f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c6v4dkr","thanks_reply_id":"c6v50z3","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_a8b482a8bcadc2f3","answerer_user_id":"anon_3f8c4d3a813f0cb5","subreddit":"programming","timestamp":"2012-11-08T21:22:21+00:00","post_id":"12vlik","question":"Why I Hate Apps, or, How Apple Has Taken The Dignity From Programming","preferred_answer":"Programming as a profession? App store apps aren't necessarily done by professionals... Might as well call Farmville Hardcore gaming, and call me a Carpenter because I built a foot stool back in high school.\n\nBesides... as time progresses, and the lines get blurred, it will be easier for \"non\" programmers to do things. Get over yourself.\n\nLastly, and my favorite, is a \"Professional Web Programmer\" screaming at the top of his lungs about how crappy programmers are... While he doesn't have the ability to go the extra mile to remove \"BottomMenu1\" and \"BottomMenu2\" from his personal website.\n\nClassy.","full_conversation":[{"role":"OP","user_id":"anon_a8b482a8bcadc2f3","comment_id":"12vlik","kind":"post","text":"Why I Hate Apps, or, How Apple Has Taken The Dignity From Programming","timestamp":"2012-11-08T21:22:21+00:00","score":0},{"role":"answerer","user_id":"anon_3f8c4d3a813f0cb5","comment_id":"c6yhj2k","kind":"comment","text":"Programming as a profession? App store apps aren't necessarily done by professionals... Might as well call Farmville Hardcore gaming, and call me a Carpenter because I built a foot stool back in high school.\n\nBesides... as time progresses, and the lines get blurred, it will be easier for \"non\" programmers to do things. Get over yourself.\n\nLastly, and my favorite, is a \"Professional Web Programmer\" screaming at the top of his lungs about how crappy programmers are... While he doesn't have the ability to go the extra mile to remove \"BottomMenu1\" and \"BottomMenu2\" from his personal website.\n\nClassy.","timestamp":"2012-11-08T21:46:44+00:00","score":2},{"role":"OP","user_id":"anon_a8b482a8bcadc2f3","comment_id":"c6yj21s","kind":"comment","text":"I appreciate you taking the time to respond and the candor of your response. I think you're right about the trend to be everything moving towards easier for non-technical people to build technical things, at least partially because programmers are constantly inventing things to make tasks easier for themselves. Which, as you said, in turn makes it easier and easier for non-technical people to write code.\n\nThanks also for pointing out the bottommenu1 and bottommenu2. I've neglected this site a lot and now realize that it shows through rather plainly.","timestamp":"2012-11-08T23:24:17+00:00","score":2},{"role":"answerer","user_id":"anon_3f8c4d3a813f0cb5","comment_id":"c6ym478","kind":"comment","text":"My comment was a little more terse than I intended to be (mid-day stress), but fairly spot on I think.\n\nI hate Apple as much as the next person, but you can't blame just them for the changing English language (App vs Program). Google didn't exist as a word 10 years ago. Do you get mad when someone says to \"Go google it\"? instead of \"Go look it up\"?\n\nAlso can't blame them for giving people the ability to make money (with Apple getting a cut off the top). They may have made it \"popular\" with their run-away success, but Palm, BB, WindowsCE, etc before Apple all had the ability to make Programs. Do you get angry at the Chrome app store? Steam?","timestamp":"2012-11-09T02:50:42+00:00","score":2},{"role":"OP","user_id":"anon_a8b482a8bcadc2f3","comment_id":"c6yog7w","kind":"comment","text":"No worries, my rant was pretty provocative and angry as well. The App store is a pretty good business model but it does raise some pretty serious issues about freedom. It used to be that you purchased software and you got to keep it, but Apple keeps the ability to make your apps obsolete with any updates or remove them from the app store. I also don't like the way they censor apps and remove anything that they don't like, although I suppose if you have a monopoly like they do it makes good business sense to screen what you put in the stores.\n\nAnd I was originally angry at Steam when it first came out but I grew to love and accept it. I haven't used the chrome app store yet, but it sounds worth checking out.\n\nCheers!","timestamp":"2012-11-09T05:35:09+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a8b482a8bcadc2f3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3f8c4d3a813f0cb5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c6yhj2k","thanks_reply_id":"c6yj21s","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_77664d467d343ddd","answerer_user_id":"anon_2ca079b24a100765","subreddit":"programming","timestamp":"2012-12-04T07:23:06+00:00","post_id":"14930f","question":"When null is not enough: an option type for C#","preferred_answer":"Sorry, I forgot that the return type of Select must be Option since both branches must unify. I wasn't entirely happy with this, but it's the best I could come up with at the time.\n\nI'm not sure collapsing the null levels is really that problematic though. The whole intention of Option was to create a foundation whereby the CLR's reference types did not have a pervasive, universal bottom type in null, so the \"one-level of maybe-ness for the result of f being a nullable string\" doesn't apply, since strings ought not be nullable at all by default; nullability comes only from wrapping in Option. This is part of a larger program I have in mind for future work.\n\nThanks for the feedback!","full_conversation":[{"role":"OP","user_id":"anon_77664d467d343ddd","comment_id":"14930f","kind":"post","text":"When null is not enough: an option type for C#","timestamp":"2012-12-04T07:23:06+00:00","score":28},{"role":"answerer","user_id":"anon_2ca079b24a100765","comment_id":"cc5xaqj","kind":"comment","text":"Sorry, I forgot that the return type of Select must be Option since both branches must unify. I wasn't entirely happy with this, but it's the best I could come up with at the time.\n\nI'm not sure collapsing the null levels is really that problematic though. The whole intention of Option was to create a foundation whereby the CLR's reference types did not have a pervasive, universal bottom type in null, so the \"one-level of maybe-ness for the result of f being a nullable string\" doesn't apply, since strings ought not be nullable at all by default; nullability comes only from wrapping in Option. This is part of a larger program I have in mind for future work.\n\nThanks for the feedback!","timestamp":"2013-09-11T02:26:47+00:00","score":1},{"role":"OP","user_id":"anon_77664d467d343ddd","comment_id":"cc6bcbx","kind":"comment","text":"Thanks for the consideration of feedback.","timestamp":"2013-09-11T18:12:12+00:00","score":1},{"role":"answerer","user_id":"anon_2ca079b24a100765","comment_id":"cc6d0rt","kind":"comment","text":"By the way, if you can think of a way to make equality symmetric on Option please let me know. The current semantics are the best approximation to Nullable semantics that I could achieve.","timestamp":"2013-09-11T19:24:43+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_77664d467d343ddd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2ca079b24a100765","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cc5xaqj","thanks_reply_id":"cc6bcbx","post_score":28,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_36b4ce823c4546c8","answerer_user_id":"anon_3a5c921a4fa96854","subreddit":"programming","timestamp":"2013-01-01T19:06:40+00:00","post_id":"15s4sv","question":"Finally released an update to my regular expression site, what do you guys think?","preferred_answer":"The quizzes are AWESOME. Quickly, I'm not sure if it's my browser (Chrome 24), but [this](http://i.imgur.com/EzaKy.png) happens every time I fail.\n\nAlso, I could've swore Y was a vowel! The more you know.\n\nOh and, a more extensive cheat sheet would be very helpful.","full_conversation":[{"role":"OP","user_id":"anon_36b4ce823c4546c8","comment_id":"15s4sv","kind":"post","text":"Finally released an update to my regular expression site, what do you guys think?","timestamp":"2013-01-01T19:06:40+00:00","score":1185},{"role":"answerer","user_id":"anon_3a5c921a4fa96854","comment_id":"c7pd6z7","kind":"comment","text":"The quizzes are AWESOME. Quickly, I'm not sure if it's my browser (Chrome 24), but [this](http://i.imgur.com/EzaKy.png) happens every time I fail.\n\nAlso, I could've swore Y was a vowel! The more you know.\n\nOh and, a more extensive cheat sheet would be very helpful.","timestamp":"2013-01-01T21:49:53+00:00","score":3},{"role":"OP","user_id":"anon_36b4ce823c4546c8","comment_id":"c7pdc64","kind":"comment","text":"Thank you!\n\nThat should not happen. I will look into it shortly.\n\nY is... both? I had a discussion about it with a friend when I was developing the quiz. Decided we'll run with it being a consonant haha.\n\nCheck it out here: http://en.wikipedia.org/wiki/Y\n\nI'll look into a more extensive cheat sheet!","timestamp":"2013-01-01T21:58:41+00:00","score":6},{"role":"answerer","user_id":"anon_3a5c921a4fa96854","comment_id":"c7pdj02","kind":"comment","text":"Awesome. You do have a point. Mentioning that you consider it as a consonant in the box would probably clear any confusion.\n\nSpeaking of which, substitution on the main page would be pretty useful too.","timestamp":"2013-01-01T22:10:25+00:00","score":3},{"role":"OP","user_id":"anon_36b4ce823c4546c8","comment_id":"c7pdpk6","kind":"comment","text":"Yeah, I've had that request before. Would require a lot of work. I'll look into it!","timestamp":"2013-01-01T22:21:23+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_36b4ce823c4546c8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3a5c921a4fa96854","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c7pd6z7","thanks_reply_id":"c7pdc64","post_score":1185,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_6ee87a5905768d08","answerer_user_id":"anon_65712bcd385de14c","subreddit":"programming","timestamp":"2013-01-09T18:27:44+00:00","post_id":"169er2","question":"Hey Reddit, we're traveling around the world as programmers. Any tips on where to go and who to meet?","preferred_answer":"This might be a start\n[...comprehensive, user-maintained list of all active hackerspaces throughout the world.](http://hackerspaces.org/wiki/List_of_Hacker_Spaces)","full_conversation":[{"role":"OP","user_id":"anon_6ee87a5905768d08","comment_id":"169er2","kind":"post","text":"Hey Reddit, we're traveling around the world as programmers. Any tips on where to go and who to meet?","timestamp":"2013-01-09T18:27:44+00:00","score":8},{"role":"answerer","user_id":"anon_65712bcd385de14c","comment_id":"c7tzno2","kind":"comment","text":"This might be a start\n[...comprehensive, user-maintained list of all active hackerspaces throughout the world.](http://hackerspaces.org/wiki/List_of_Hacker_Spaces)","timestamp":"2013-01-09T20:21:18+00:00","score":3},{"role":"OP","user_id":"anon_6ee87a5905768d08","comment_id":"c7u19et","kind":"comment","text":"omg, best tip ever - THANK YOU","timestamp":"2013-01-09T21:34:27+00:00","score":1},{"role":"answerer","user_id":"anon_65712bcd385de14c","comment_id":"c7u6ufw","kind":"comment","text":"No problem. If you're ever in Houston, TX, drop by Tx/Rx labs -- it's fucking amazing. BTW, you should probably try to make contact with these places before just showing up. Some of these hackerspaces can be pretty small operations and it'd be a shame to show up and there's nobody there.","timestamp":"2013-01-10T02:25:45+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6ee87a5905768d08","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_65712bcd385de14c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c7tzno2","thanks_reply_id":"c7u19et","post_score":8,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_36a5efb49c308961","answerer_user_id":"anon_d7624b9dd54f3415","subreddit":"programming","timestamp":"2013-02-02T16:47:50+00:00","post_id":"17rbah","question":"What to do about GNU? Three ideas for GNU and the FSF","preferred_answer":">I was most pleasantly surprised by the amicable reactions from fellow GNU hackers and from Stallman itself.\n\nIs Stallman a force of nature now?","full_conversation":[{"role":"OP","user_id":"anon_36a5efb49c308961","comment_id":"17rbah","kind":"post","text":"What to do about GNU? Three ideas for GNU and the FSF","timestamp":"2013-02-02T16:47:50+00:00","score":268},{"role":"answerer","user_id":"anon_d7624b9dd54f3415","comment_id":"c888dbt","kind":"comment","text":">I was most pleasantly surprised by the amicable reactions from fellow GNU hackers and from Stallman itself.\n\nIs Stallman a force of nature now?","timestamp":"2013-02-02T21:14:45+00:00","score":12},{"role":"OP","user_id":"anon_36a5efb49c308961","comment_id":"c88cd77","kind":"comment","text":"lol! :) Thanks, fixing it.","timestamp":"2013-02-03T01:35:13+00:00","score":4},{"role":"answerer","user_id":"anon_d7624b9dd54f3415","comment_id":"c88chm9","kind":"comment","text":"np :)","timestamp":"2013-02-03T01:43:30+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_36a5efb49c308961","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d7624b9dd54f3415","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c888dbt","thanks_reply_id":"c88cd77","post_score":268,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_514f728307a0a158","answerer_user_id":"anon_3c991a21afd7ab44","subreddit":"programming","timestamp":"2013-03-10T16:40:38+00:00","post_id":"1a11jf","question":"What do you think of this portable chatroom client I made in Node.js? Do you have any suggestions?","preferred_answer":"Suggestions? Escape your inputs.","full_conversation":[{"role":"OP","user_id":"anon_514f728307a0a158","comment_id":"1a11jf","kind":"post","text":"What do you think of this portable chatroom client I made in Node.js? Do you have any suggestions?","timestamp":"2013-03-10T16:40:38+00:00","score":0},{"role":"answerer","user_id":"anon_3c991a21afd7ab44","comment_id":"c8t4wuq","kind":"comment","text":"Suggestions? Escape your inputs.","timestamp":"2013-03-10T17:37:20+00:00","score":2},{"role":"OP","user_id":"anon_514f728307a0a158","comment_id":"c8t4y9v","kind":"comment","text":"thx lol","timestamp":"2013-03-10T17:39:42+00:00","score":1},{"role":"answerer","user_id":"anon_3c991a21afd7ab44","comment_id":"c8t57v1","kind":"comment","text":"Yeah, that can allow some asshole to make life very uncomfortable for everyone else in the chat room. There are a couple of other concerns, like not checking that the user's name is unique in the chat room, and that can screw up things a bit - since I think you're using the username as a key in some dictionary or other.","timestamp":"2013-03-10T17:55:00+00:00","score":1},{"role":"OP","user_id":"anon_514f728307a0a158","comment_id":"c8t5e2b","kind":"comment","text":"I will definitely escape the inputs asap. I'm using the socket connection id as the key to a user object, so there isn't anything wrong with 2 users with the same name.","timestamp":"2013-03-10T18:04:57+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_514f728307a0a158","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3c991a21afd7ab44","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c8t4wuq","thanks_reply_id":"c8t4y9v","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_871709ce125c9af3","answerer_user_id":"anon_cfad490737dbfa7e","subreddit":"programming","timestamp":"2013-03-18T15:27:04+00:00","post_id":"1aj0ne","question":"A demo uses a Jabber/XMPP server running without OS - sysadmin skills soon obsolete?","preferred_answer":"Please explain to me what is an \"OS-less VM\" (I know what a VM is). So it just has a BIOS or what? You're writing to the bare metal to open a file? I don't get.","full_conversation":[{"role":"OP","user_id":"anon_871709ce125c9af3","comment_id":"1aj0ne","kind":"post","text":"A demo uses a Jabber/XMPP server running without OS - sysadmin skills soon obsolete?","timestamp":"2013-03-18T15:27:04+00:00","score":0},{"role":"answerer","user_id":"anon_cfad490737dbfa7e","comment_id":"c8xueie","kind":"comment","text":"Please explain to me what is an \"OS-less VM\" (I know what a VM is). So it just has a BIOS or what? You're writing to the bare metal to open a file? I don't get.","timestamp":"2013-03-18T15:48:03+00:00","score":1},{"role":"OP","user_id":"anon_871709ce125c9af3","comment_id":"c8xujsw","kind":"comment","text":"Thanks for the cue. Our Erlang VM runs on top of hypervisor (Xen). Xen exposes an architecture very similar to bare x86. When writing to a file (or rather block) device you are using a virtual interface. The corresponding driver is similar (a bit simpler) when dealing with real hardware (PCI bus, SATA, etc). The benefit of Xen is that it hides the peculiarities of various network interface. You need a driver for one type of network card, one type of block device, etc.","timestamp":"2013-03-18T15:56:29+00:00","score":1},{"role":"answerer","user_id":"anon_cfad490737dbfa7e","comment_id":"c8xuod3","kind":"comment","text":"So your VM implements what is in effect a HAL, and you're writing direct to the HAL? (Edit: linux hal, not microsoft hal)","timestamp":"2013-03-18T16:03:45+00:00","score":1},{"role":"OP","user_id":"anon_871709ce125c9af3","comment_id":"c8xuxoj","kind":"comment","text":"To my best, you can put it this way. Yes.","timestamp":"2013-03-18T16:18:20+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_871709ce125c9af3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cfad490737dbfa7e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c8xueie","thanks_reply_id":"c8xujsw","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_d977154719c89892","answerer_user_id":"anon_7940685b1dca07d0","subreddit":"programming","timestamp":"2013-05-05T19:31:17+00:00","post_id":"1dqv76","question":"Ways to define variables & functions in JavaScript ?","preferred_answer":"Well, there's always \n\n window['myvar'] = \n\nand \n\n var str = 'myvar'\n window[str] = \n\nAnd of course global instead of window for node. Then there's the with keyword. But its probably best just to ignore that entirely.\n\nThen if you're inside of a function, what about its arguments?\n\n function(a, b) {\n return a * b;\n }\n\nYou'd probably want to be able to jump to the argument definitions. Also, how do you intend to deal with the implied global scope? E.g.\n\n function func1() {\n a = 1;\n }\n\n function func2() {\n if(a) { /* do things */}\n }\n\n'a' is never declared with a var, and its never assigned inside the scope of func2 or any of its parent scopes, but it has been implicitly set on the global scope. Usually this will be programmer error, but its still something to think about.","full_conversation":[{"role":"OP","user_id":"anon_d977154719c89892","comment_id":"1dqv76","kind":"post","text":"Ways to define variables & functions in JavaScript ?","timestamp":"2013-05-05T19:31:17+00:00","score":0},{"role":"answerer","user_id":"anon_7940685b1dca07d0","comment_id":"c9syx3y","kind":"comment","text":"Well, there's always \n\n window['myvar'] = \n\nand \n\n var str = 'myvar'\n window[str] = \n\nAnd of course global instead of window for node. Then there's the with keyword. But its probably best just to ignore that entirely.\n\nThen if you're inside of a function, what about its arguments?\n\n function(a, b) {\n return a * b;\n }\n\nYou'd probably want to be able to jump to the argument definitions. Also, how do you intend to deal with the implied global scope? E.g.\n\n function func1() {\n a = 1;\n }\n\n function func2() {\n if(a) { /* do things */}\n }\n\n'a' is never declared with a var, and its never assigned inside the scope of func2 or any of its parent scopes, but it has been implicitly set on the global scope. Usually this will be programmer error, but its still something to think about.","timestamp":"2013-05-05T19:55:39+00:00","score":2},{"role":"OP","user_id":"anon_d977154719c89892","comment_id":"c9sz8h4","kind":"comment","text":"Thanks for thoughts and also answering the bigger question of jump to definitions. To start with I'm looking to cover what's seen as best practise var & function initialisation at global level. But next up will need to consider objects scoped inside a function or leaking out of one.","timestamp":"2013-05-05T20:11:16+00:00","score":1},{"role":"answerer","user_id":"anon_7940685b1dca07d0","comment_id":"c9szce4","kind":"comment","text":"Just for completeness sake, I just thought of this case:\n\n function func1() {\n this['myvar'] = 1;\n }\n\n func1();\n\nThis certainly falls under the category of 'not best practices', but this too will assign to the global scope ('this' is implicitly the global object if the function is not called on a particular object).\n\nJavascript is practically designed to defeat all attempts at static analysis.","timestamp":"2013-05-05T20:16:50+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d977154719c89892","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7940685b1dca07d0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"c9syx3y","thanks_reply_id":"c9sz8h4","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a80c8225cab0f01b","answerer_user_id":"anon_a034799674429029","subreddit":"programming","timestamp":"2013-05-20T15:41:32+00:00","post_id":"1ep63a","question":"What No One Told You About Z-Index","preferred_answer":"While you're here taking feedback, I thought it was odd that the reason why opacity creates a new stacking context was never explained. That said, thanks for posting this, the opacity situation makes sense but was also news to me.\n\nFor the curious\n\n> Since an element with opacity less than 1 is composited from a single offscreen image, content outside of it cannot be layered in z-order between pieces of content inside of it. For the same reason, implementations must create a new stacking context for any element with opacity less than 1.\n\n[W3 on the 'opacity' property](http://www.w3.org/TR/css3-color/#transparency)","full_conversation":[{"role":"OP","user_id":"anon_a80c8225cab0f01b","comment_id":"1ep63a","kind":"post","text":"What No One Told You About Z-Index","timestamp":"2013-05-20T15:41:32+00:00","score":649},{"role":"answerer","user_id":"anon_a034799674429029","comment_id":"ca2kmo9","kind":"comment","text":"While you're here taking feedback, I thought it was odd that the reason why opacity creates a new stacking context was never explained. That said, thanks for posting this, the opacity situation makes sense but was also news to me.\n\nFor the curious\n\n> Since an element with opacity less than 1 is composited from a single offscreen image, content outside of it cannot be layered in z-order between pieces of content inside of it. For the same reason, implementations must create a new stacking context for any element with opacity less than 1.\n\n[W3 on the 'opacity' property](http://www.w3.org/TR/css3-color/#transparency)","timestamp":"2013-05-20T21:01:24+00:00","score":36},{"role":"OP","user_id":"anon_a80c8225cab0f01b","comment_id":"ca2kve6","kind":"comment","text":"Thanks. Yeah, when I wrote the article I didn't include a reason because I couldn't find a credible source. I guess I missed that one.","timestamp":"2013-05-20T21:12:29+00:00","score":18},{"role":"answerer","user_id":"anon_a034799674429029","comment_id":"ca2ky0v","kind":"comment","text":"Hey, no problem. The article still led me to go look it up, so ... mission still accomplished!","timestamp":"2013-05-20T21:15:50+00:00","score":12}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a80c8225cab0f01b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a034799674429029","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ca2kmo9","thanks_reply_id":"ca2kve6","post_score":649,"answer_score":36,"preferred_answer_is_top_level":false}} {"user_id":"anon_788cf9299f4bca54","answerer_user_id":"anon_aed49278cc9ca03a","subreddit":"programming","timestamp":"2013-05-21T20:11:37+00:00","post_id":"1esajf","question":"How tcmalloc Works","preferred_answer":"Is the bug in tcmalloc fixed where if many threads cause a lot of memory on the heap, the allocator performance crashes to a crawl?","full_conversation":[{"role":"OP","user_id":"anon_788cf9299f4bca54","comment_id":"1esajf","kind":"post","text":"How tcmalloc Works","timestamp":"2013-05-21T20:11:37+00:00","score":177},{"role":"answerer","user_id":"anon_aed49278cc9ca03a","comment_id":"ca3cjwu","kind":"comment","text":"Is the bug in tcmalloc fixed where if many threads cause a lot of memory on the heap, the allocator performance crashes to a crawl?","timestamp":"2013-05-21T23:01:13+00:00","score":4},{"role":"OP","user_id":"anon_788cf9299f4bca54","comment_id":"ca3dddx","kind":"comment","text":"https://code.google.com/p/gperftools/issues/detail?id=532&thanks=532&ts=1369179481","timestamp":"2013-05-21T23:40:53+00:00","score":10},{"role":"answerer","user_id":"anon_aed49278cc9ca03a","comment_id":"ca401qt","kind":"comment","text":"Great because this really was the blocking issue that prevents us from using tcmalloc. jemalloc appears to have a similar problem. So we are still using glibc's malloc.","timestamp":"2013-05-22T21:06:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_788cf9299f4bca54","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_aed49278cc9ca03a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ca3cjwu","thanks_reply_id":"ca3dddx","post_score":177,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_8cd835a2cf1652c8","answerer_user_id":"anon_08f9b905261f4f4a","subreddit":"programming","timestamp":"2013-06-04T17:21:10+00:00","post_id":"1fnva0","question":"How MMX/SSE math stalled my event loop on OS X","preferred_answer":"This is the exact problem. Compilers don't generate `emms` if you use MMX intrinsics, and it leaves the x87 state corrupt, so later parts of your program will break.\n\nIn fact compiler engineers are terrified of `emms`, which is why no autovectorizer will generate MMX code - Clang won't generate it for `__m64 + __m64` either, just the `_mm` functions - and x86-64 developers like to pretend it's deprecated. Sometimes you just want some 64-bit SIMD!","full_conversation":[{"role":"OP","user_id":"anon_8cd835a2cf1652c8","comment_id":"1fnva0","kind":"post","text":"How MMX/SSE math stalled my event loop on OS X","timestamp":"2013-06-04T17:21:10+00:00","score":31},{"role":"answerer","user_id":"anon_08f9b905261f4f4a","comment_id":"caci2q5","kind":"comment","text":"This is the exact problem. Compilers don't generate `emms` if you use MMX intrinsics, and it leaves the x87 state corrupt, so later parts of your program will break.\n\nIn fact compiler engineers are terrified of `emms`, which is why no autovectorizer will generate MMX code - Clang won't generate it for `__m64 + __m64` either, just the `_mm` functions - and x86-64 developers like to pretend it's deprecated. Sometimes you just want some 64-bit SIMD!","timestamp":"2013-06-05T06:37:00+00:00","score":25},{"role":"OP","user_id":"anon_8cd835a2cf1652c8","comment_id":"cacjjq6","kind":"comment","text":"I had absolutely no idea that that was something you had to do! Thank you for this insight — do you have any idea what document I should have read to inform myself about this?\n\nBut yes, for now I'm opting to use 128-bit SIMD in all places except storage, which feels a bit wasteful, but then again a call to `_mm_set_ps` may well be \"good enough\" (i.e. equivalent to an unaligned load or slightly slower).","timestamp":"2013-06-05T09:14:19+00:00","score":10},{"role":"answerer","user_id":"anon_08f9b905261f4f4a","comment_id":"cacqorb","kind":"comment","text":"Well, if you want to know how your code behaves, read the assembly and follow along with Agner's manuals (http://agner.org/optimize/ #2 and #4).\n\nYou might find the assembly easier to read than intrinsics, even. It helps that the x86 function names are unusually ugly.","timestamp":"2013-06-05T17:13:49+00:00","score":4},{"role":"OP","user_id":"anon_8cd835a2cf1652c8","comment_id":"cad2ti9","kind":"comment","text":"That is a great resource, thank you for that!","timestamp":"2013-06-06T02:27:04+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_8cd835a2cf1652c8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_08f9b905261f4f4a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"caci2q5","thanks_reply_id":"cacjjq6","post_score":31,"answer_score":25,"preferred_answer_is_top_level":false}} {"user_id":"anon_dc41eb51b2dde6ad","answerer_user_id":"anon_37cde1d8cf197aa9","subreddit":"programming","timestamp":"2013-06-06T20:23:14+00:00","post_id":"1ftc92","question":"Learning how to program?","preferred_answer":"If you really want to, and if you're willing to be persistent, it's not too late. I got a degree in CS in the early 1990s and spent one year in grad school, when I decided I was completely burnt out on computer programming. So I left school and went into a completely different field for ten years.\n\nEventually I realized I could work more efficiently by automating some of my work. So I started writing a few little scripts to take care of repetitive tasks. From there I built up to bigger and better things; four years later I got a full-time programming job, and I'm still programming.\n\nNow in those ten years I had forgotten most of what I learned in school, and most of what I remembered was irrelevant--the main programming language I learned in school was Pascal. I ended up teaching myself Perl at age 33 to write those automated scripts, and I've had to keep learning new techniques and new languages ever since, but it's been worth it.","full_conversation":[{"role":"OP","user_id":"anon_dc41eb51b2dde6ad","comment_id":"1ftc92","kind":"post","text":"Learning how to program?","timestamp":"2013-06-06T20:23:14+00:00","score":2},{"role":"answerer","user_id":"anon_37cde1d8cf197aa9","comment_id":"cadlxf2","kind":"comment","text":"If you really want to, and if you're willing to be persistent, it's not too late. I got a degree in CS in the early 1990s and spent one year in grad school, when I decided I was completely burnt out on computer programming. So I left school and went into a completely different field for ten years.\n\nEventually I realized I could work more efficiently by automating some of my work. So I started writing a few little scripts to take care of repetitive tasks. From there I built up to bigger and better things; four years later I got a full-time programming job, and I'm still programming.\n\nNow in those ten years I had forgotten most of what I learned in school, and most of what I remembered was irrelevant--the main programming language I learned in school was Pascal. I ended up teaching myself Perl at age 33 to write those automated scripts, and I've had to keep learning new techniques and new languages ever since, but it's been worth it.","timestamp":"2013-06-06T21:08:27+00:00","score":1},{"role":"OP","user_id":"anon_dc41eb51b2dde6ad","comment_id":"cadmiv8","kind":"comment","text":"Thanks for that. Would you recommend a specific language to learn? I was looking at C#.","timestamp":"2013-06-06T21:33:22+00:00","score":1},{"role":"answerer","user_id":"anon_37cde1d8cf197aa9","comment_id":"cadn5uh","kind":"comment","text":"I would recommend *not* focusing on a specific language. I mean, go ahead and learn C#, but after you've got a decent understanding of it, learn something else. Not Java--it's too similar to C#. Try something like Python or JavaScript. Then learn Scheme or Haskell. Comparing the ways different languages accomplish the same thing will help you become a better programmer. You'll also look better to potential employers if you know multiple languages.","timestamp":"2013-06-06T22:00:13+00:00","score":1},{"role":"OP","user_id":"anon_dc41eb51b2dde6ad","comment_id":"cadndwp","kind":"comment","text":"Thank you. I was actually looking into Python as well. I am not familiar with the last 2 you mentioned.","timestamp":"2013-06-06T22:09:59+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_dc41eb51b2dde6ad","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_37cde1d8cf197aa9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cadlxf2","thanks_reply_id":"cadmiv8","post_score":2,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_7ae60a60dcc6df9b","answerer_user_id":"anon_75fe085bdc373ad2","subreddit":"programming","timestamp":"2013-07-27T10:28:45+00:00","post_id":"1j5kv5","question":"Adding completely useless x86-64 assembly instructions to an algorithm increases performance. Why?","preferred_answer":"Most of that it explained in Intels docs on optimizing performance. There's interactions between the branching behavior and the instruction cache, along with the decoder that mean sometimes padding out the code to a particular size can push other instructions over the cache line boundary.\n\nhttp://www.intel.com/content/dam/doc/manual/64-ia-32-architectures-optimization-manual.pdf is a very interesting read if you've got some time. Chapter 3.5 is particularly interesting, and I think this particular question is mostly in 2.1.","full_conversation":[{"role":"OP","user_id":"anon_7ae60a60dcc6df9b","comment_id":"1j5kv5","kind":"post","text":"Adding completely useless x86-64 assembly instructions to an algorithm increases performance. Why?","timestamp":"2013-07-27T10:28:45+00:00","score":165},{"role":"answerer","user_id":"anon_75fe085bdc373ad2","comment_id":"cbbi040","kind":"comment","text":"Most of that it explained in Intels docs on optimizing performance. There's interactions between the branching behavior and the instruction cache, along with the decoder that mean sometimes padding out the code to a particular size can push other instructions over the cache line boundary.\n\nhttp://www.intel.com/content/dam/doc/manual/64-ia-32-architectures-optimization-manual.pdf is a very interesting read if you've got some time. Chapter 3.5 is particularly interesting, and I think this particular question is mostly in 2.1.","timestamp":"2013-07-27T18:39:03+00:00","score":32},{"role":"OP","user_id":"anon_7ae60a60dcc6df9b","comment_id":"cbbir12","kind":"comment","text":"Thank you very much for pointing this out! :)","timestamp":"2013-07-27T19:18:23+00:00","score":5},{"role":"answerer","user_id":"anon_75fe085bdc373ad2","comment_id":"cbbj2wi","kind":"comment","text":"Not a problem. I think the thing that struck me the first time I came across it was \"wait... there's basically 9 ways to write NOP depending on how much you need to pad things for the alignment to work out?\" There's also multiple ways to zero a register, some of which break dependencies allowing instruction reordering, while others don't.","timestamp":"2013-07-27T19:34:38+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7ae60a60dcc6df9b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_75fe085bdc373ad2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cbbi040","thanks_reply_id":"cbbir12","post_score":165,"answer_score":32,"preferred_answer_is_top_level":true}} {"user_id":"anon_c0556cda15497eda","answerer_user_id":"anon_449c5a8e573336ef","subreddit":"programming","timestamp":"2013-08-06T21:26:17+00:00","post_id":"1ju7hn","question":"Estonian e-voting software is available for public review on the government website. Can you guys find any security issues?","preferred_answer":"> To my knowledge there have been no reports of fraudulent online votes\n\nThe basic problem with electronic voting is that fraud is innately hidden. \n\nThe standard paper ballot system (with pens, ballot boxes, and hand counting) has evolved over more than a century to resist fraud by procedurally making it fraud obvious. You can't stuff a ballot box because it starts empty and observers watch it. You can't exclude someone's vote because they put it in the ballot box themselves and then you can't tell it from any other ballot.\n\nAn electronic voting system can't be observed, even by an expert. Every step is hidden, happening in a black box that the voters and observers can't see into. Trying to make this work is a waste of time - the concept itself is nonsense.\n\nShowing us the source code doesn't help. How do we know that this code gets used in the election? We have to trust the people who posted the code, and if that was good enough then there was no reason to post it to begin with.","full_conversation":[{"role":"OP","user_id":"anon_c0556cda15497eda","comment_id":"1ju7hn","kind":"post","text":"Estonian e-voting software is available for public review on the government website. Can you guys find any security issues?","timestamp":"2013-08-06T21:26:17+00:00","score":12},{"role":"answerer","user_id":"anon_449c5a8e573336ef","comment_id":"cbihr4s","kind":"comment","text":"> To my knowledge there have been no reports of fraudulent online votes\n\nThe basic problem with electronic voting is that fraud is innately hidden. \n\nThe standard paper ballot system (with pens, ballot boxes, and hand counting) has evolved over more than a century to resist fraud by procedurally making it fraud obvious. You can't stuff a ballot box because it starts empty and observers watch it. You can't exclude someone's vote because they put it in the ballot box themselves and then you can't tell it from any other ballot.\n\nAn electronic voting system can't be observed, even by an expert. Every step is hidden, happening in a black box that the voters and observers can't see into. Trying to make this work is a waste of time - the concept itself is nonsense.\n\nShowing us the source code doesn't help. How do we know that this code gets used in the election? We have to trust the people who posted the code, and if that was good enough then there was no reason to post it to begin with.","timestamp":"2013-08-07T02:09:24+00:00","score":19},{"role":"OP","user_id":"anon_c0556cda15497eda","comment_id":"cbisr1r","kind":"comment","text":"Thanks for the reply--I see your point. I was more curious how the code itself was written, rather than issues with someone swapping it before voting starts. Trusting the people who posted the code is essentially the same as trusting the people who actually count the votes, at least to my mind, so I'm not sure how specific of a problem that is with online voting, though it certainly can be a problem with voting in general.","timestamp":"2013-08-07T15:09:23+00:00","score":0},{"role":"answerer","user_id":"anon_449c5a8e573336ef","comment_id":"cbiurfb","kind":"comment","text":"> Trusting the people who posted the code is essentially the same as trusting the people who actually count the votes\n\nNo. It absolutely isn't.\n\nA representative of each candidate *watches* the people who actually count the votes, or the election is fraudulent. Optimally, you can sign up as a volunteer observer and watch the whole process yourself. All you need to trust is that there are people in the other polling precincts that also care enough about democracy to make sure that the process works - and if that's not true democracy can't work anyway.\n\nWith an electronic system, there's nothing to watch. Nobody can know if it worked or didn't. You have to trust *everyone* involved in administering the system.","timestamp":"2013-08-07T16:36:05+00:00","score":3},{"role":"OP","user_id":"anon_c0556cda15497eda","comment_id":"cbiwiwk","kind":"comment","text":"You, personally, can only watch the counting in one precinct at a time. You are trusting everyone involved in the other precincts, both the counters and the observers.\n\nAs of 2006 there were [207,643,594 registered voters](http://wiki.answers.com/Q/How_many_eligible_voters_are_registered_to_vote_in_the_United_States) in the US. The average precinct size in 2004 was estimated to be [1,100](http://web.archive.org/web/20061214025307/http://www.eac.gov/election_survey_2004/chapter_table/Chapter13_Polling_Places.htm). That's about 188,766 polling precincts per total registered voters. Even if there is a single counting station per 100 precincts, you are effectively trusting 99.95% of the counters and observers who are working in the remaining 1,887 counting stations. That's very close to trusting everyone involved in administering the system.\n\nI don't deny that the traditional voting method is more transparent than online voting, but it is only transparent to an extent--you cannot check whether all the votes have been counted (correctly). My point is merely that both methods require a significant amount of trust, hence trust shouldn't be treated as a problem only when it comes to online voting.","timestamp":"2013-08-07T17:48:54+00:00","score":0},{"role":"answerer","user_id":"anon_449c5a8e573336ef","comment_id":"cbix6l5","kind":"comment","text":"The key difference is *who* you're trusting.\n\nWhen trusting election observers, you're trusting participants in the democratic system like yourself. This is similar to trusting the other voters - which is the whole point of democracy.\n\nWhen you trust the administrators of an e-voting system, you're trusting a small handful of bureaucrats and consultants. From a security standpoint, these are basically the primary attackers that the system needs to defend against. It's the fox guarding the hen house.","timestamp":"2013-08-07T18:15:10+00:00","score":3},{"role":"OP","user_id":"anon_c0556cda15497eda","comment_id":"cbixeye","kind":"comment","text":"A fair point! Thanks for the discussion.","timestamp":"2013-08-07T18:24:32+00:00","score":0}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_c0556cda15497eda","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_449c5a8e573336ef","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cbihr4s","thanks_reply_id":"cbisr1r","post_score":12,"answer_score":19,"preferred_answer_is_top_level":false}} {"user_id":"anon_5df1008403daaef6","answerer_user_id":"anon_77664d467d343ddd","subreddit":"programming","timestamp":"2013-09-12T14:16:09+00:00","post_id":"1m8wq5","question":"How to optimize code using dirty bits","preferred_answer":"I wish I could write this well.","full_conversation":[{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"1m8wq5","kind":"post","text":"How to optimize code using dirty bits","timestamp":"2013-09-12T14:16:09+00:00","score":148},{"role":"answerer","user_id":"anon_77664d467d343ddd","comment_id":"cc727a5","kind":"comment","text":"I wish I could write this well.","timestamp":"2013-09-12T19:36:54+00:00","score":10},{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"cc72cdm","kind":"comment","text":"Thank you!\n\nPractice practice practice! Not counting copious reddit comments and email, I've written around 50k words on [my blog](http://journal.stuffwithstuff.com/), and another 50k on the book so far. Each chapter in the book goes through three drafts before it gets online. The first draft is uniformly awful!","timestamp":"2013-09-12T19:45:22+00:00","score":11},{"role":"answerer","user_id":"anon_77664d467d343ddd","comment_id":"cc72yg0","kind":"comment","text":"Hmm, I'm also in the 50k-100k range from blogging >~ 1K words per week for about a year.","timestamp":"2013-09-12T20:11:49+00:00","score":9},{"role":"OP","user_id":"anon_5df1008403daaef6","comment_id":"cc73cds","kind":"comment","text":"Wait a minute. You're the Twisted Oak Studios blogger? I love love love your posts! They are some of the best stuff to appear on /r/programming in the past few months!","timestamp":"2013-09-12T20:27:59+00:00","score":9},{"role":"answerer","user_id":"anon_77664d467d343ddd","comment_id":"cc79sxl","kind":"comment","text":"Thanks, that means a lot.","timestamp":"2013-09-13T01:27:10+00:00","score":9}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_5df1008403daaef6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_77664d467d343ddd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cc727a5","thanks_reply_id":"cc72cdm","post_score":148,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_daa6c016b174218f","answerer_user_id":"anon_802695b26527a550","subreddit":"programming","timestamp":"2013-11-25T14:00:48+00:00","post_id":"1rf0kk","question":"How do I promote my awesome new programming language","preferred_answer":"Well, you will need a community around that language, so having a web site and some forum would be a nice start.\n\nYou are right, that an interesting project would be the best way to show what your language can do. Which project would maybe depend on the audience you think could profit most from your language. Writing a game would limit it very much to game developers.\n\nWhile having an IDE can be a nice thing, it's not exactly important and not that good to demonstrate the language.\n\nA web framework (like Ruby on Rails, Django or CodeIgniter) would target a professional audience. A rather large project, but would show a lot. Maybe start with a simple web server. Database support would be interesting.\n\nMaybe a simple start would be to implement a few of the 'classical' programming problems. Variations of sort algorithms, Conway's Game of Life, Towers of Hanoi. Those are all easy to write and 'perfect' solutions exist for many languages, so it would be easy to compare.","full_conversation":[{"role":"OP","user_id":"anon_daa6c016b174218f","comment_id":"1rf0kk","kind":"post","text":"How do I promote my awesome new programming language","timestamp":"2013-11-25T14:00:48+00:00","score":0},{"role":"answerer","user_id":"anon_802695b26527a550","comment_id":"cdmlak8","kind":"comment","text":"Well, you will need a community around that language, so having a web site and some forum would be a nice start.\n\nYou are right, that an interesting project would be the best way to show what your language can do. Which project would maybe depend on the audience you think could profit most from your language. Writing a game would limit it very much to game developers.\n\nWhile having an IDE can be a nice thing, it's not exactly important and not that good to demonstrate the language.\n\nA web framework (like Ruby on Rails, Django or CodeIgniter) would target a professional audience. A rather large project, but would show a lot. Maybe start with a simple web server. Database support would be interesting.\n\nMaybe a simple start would be to implement a few of the 'classical' programming problems. Variations of sort algorithms, Conway's Game of Life, Towers of Hanoi. Those are all easy to write and 'perfect' solutions exist for many languages, so it would be easy to compare.","timestamp":"2013-11-25T14:38:07+00:00","score":1},{"role":"OP","user_id":"anon_daa6c016b174218f","comment_id":"cdmmhxf","kind":"comment","text":"Showing by classical programming problem examples is a good idea. Thanks /u/PilotPirx!","timestamp":"2013-11-25T15:42:19+00:00","score":1},{"role":"answerer","user_id":"anon_802695b26527a550","comment_id":"cdmmkou","kind":"comment","text":"You will find lots of them on [Rosetta Code](http://rosettacode.org/wiki/Rosetta_Code). Another interesting place could be [Project Euler](http://projecteuler.net/)","timestamp":"2013-11-25T15:45:52+00:00","score":1},{"role":"OP","user_id":"anon_daa6c016b174218f","comment_id":"cdmn1cj","kind":"comment","text":"I also thinking a bit on your advice to choose web development community as a target professional audience. It seems reasonable as the Web is rising dramatically these days, but the competition in this field is also extremely high. And there are big players who can spend a lot of money to promote their languages for Web Development. So I'm not sure would it be worse to build another one MVC framework in the language that no one know? I'm afraid it will just lost in a stream of events around this topic.","timestamp":"2013-11-25T16:07:08+00:00","score":1},{"role":"answerer","user_id":"anon_802695b26527a550","comment_id":"cdmnx4g","kind":"comment","text":"Yes, there are lots and lots of frameworks and languages. On the other side it was the Rails framework that made Ruby popular (only one example). Web projects come in any sizes, from tiny to enterprise and a lot of small startups work there which are very ready to jump on any new technology that would promise some reasonable advantage. Compared this to enterprise software where the big business guys are far less likely to move away from tools they know.\n\nAt the same time a framework, even a simple one, with a web stack can show a very wide area of problems that are interesting to many professionals. How do you handle data structures, string processing, database & network connections etc. One reason why Ruby was successful here was that it can handle those things very well. (I'm a Rails developer, so that's maybe one reason I focus a bit on this. There are many other projects that would be good enough too.)\n\nMaybe mobile would be another interesting area, since people there would go for new things easy enough, too.","timestamp":"2013-11-25T16:45:10+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_daa6c016b174218f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_802695b26527a550","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cdmlak8","thanks_reply_id":"cdmmhxf","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_965ce479ec9f7b6c","answerer_user_id":"anon_679a02315e01a341","subreddit":"programming","timestamp":"2013-12-04T15:07:56+00:00","post_id":"1s2xru","question":"AgileDevTest latest blog post -> Agile, Agile, Agile. What is so different about Agile for Developers and Testers?","preferred_answer":"Looks like any one of a hundred different articles on agile so... grats?","full_conversation":[{"role":"OP","user_id":"anon_965ce479ec9f7b6c","comment_id":"1s2xru","kind":"post","text":"AgileDevTest latest blog post -> Agile, Agile, Agile. What is so different about Agile for Developers and Testers?","timestamp":"2013-12-04T15:07:56+00:00","score":0},{"role":"answerer","user_id":"anon_679a02315e01a341","comment_id":"cdtjlh3","kind":"comment","text":"Looks like any one of a hundred different articles on agile so... grats?","timestamp":"2013-12-04T19:31:26+00:00","score":1},{"role":"OP","user_id":"anon_965ce479ec9f7b6c","comment_id":"cdtw3n1","kind":"comment","text":"Hi Jdonavan. Thanks for your comments. May I please know what \"grats\" mean? I didn't get the meaning of it.","timestamp":"2013-12-05T03:08:03+00:00","score":1},{"role":"answerer","user_id":"anon_679a02315e01a341","comment_id":"cdu5ja2","kind":"comment","text":"Grats is short for congratulations.","timestamp":"2013-12-05T13:51:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_965ce479ec9f7b6c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_679a02315e01a341","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cdtjlh3","thanks_reply_id":"cdtw3n1","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_7a1e5a45e5055213","answerer_user_id":"anon_34ac669e2aa76b7b","subreddit":"programming","timestamp":"2014-01-08T18:13:18+00:00","post_id":"1uq5wu","question":"I built Crowdspell - Let visitors fix typos by selecting your text. What do you think?","preferred_answer":"Nifty idea. One minor tidbit I'd do differently. Tell me specifically what my email will be used for. The \"I will keep it safe\" part seems odd. I think you're trying to say you're collecting it confirm I'm real and will never use it for any other purpose but I'm not sure.","full_conversation":[{"role":"OP","user_id":"anon_7a1e5a45e5055213","comment_id":"1uq5wu","kind":"post","text":"I built Crowdspell - Let visitors fix typos by selecting your text. What do you think?","timestamp":"2014-01-08T18:13:18+00:00","score":9},{"role":"answerer","user_id":"anon_34ac669e2aa76b7b","comment_id":"cekksh7","kind":"comment","text":"Nifty idea. One minor tidbit I'd do differently. Tell me specifically what my email will be used for. The \"I will keep it safe\" part seems odd. I think you're trying to say you're collecting it confirm I'm real and will never use it for any other purpose but I'm not sure.","timestamp":"2014-01-08T18:18:06+00:00","score":3},{"role":"OP","user_id":"anon_7a1e5a45e5055213","comment_id":"cekl1qp","kind":"comment","text":"Thanks Hyperimus. Well, yeah, your right. But in the same time, the sentence above says \"I just want to confirm that the email that will be notified really belongs to you so that you're not doing any shenanigans.\" but perhaps I should make that sentence clearer. Thanks!","timestamp":"2014-01-08T18:27:21+00:00","score":1},{"role":"answerer","user_id":"anon_34ac669e2aa76b7b","comment_id":"cekl6rp","kind":"comment","text":"I'm with you. I was nitpicking because when people say \"I will keep it safe\", I assume they're trying to put in wiggle room. I kept it safe, I only gave it to all of the pro-NRA mailing lists so you could have freedom! :-D\n\nLet us know how the adoption rate goes. I'd love to see how it pans out for sites that use it.","timestamp":"2014-01-08T18:32:28+00:00","score":2},{"role":"OP","user_id":"anon_7a1e5a45e5055213","comment_id":"cekrdp3","kind":"comment","text":"Just updated the text. Better, right? :)","timestamp":"2014-01-08T22:03:09+00:00","score":1},{"role":"answerer","user_id":"anon_34ac669e2aa76b7b","comment_id":"ceks3qs","kind":"comment","text":"Much better and my paranoid tingler is no longer tingling.","timestamp":"2014-01-08T22:27:11+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_7a1e5a45e5055213","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_34ac669e2aa76b7b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cekksh7","thanks_reply_id":"cekl1qp","post_score":9,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_08b40a17c3e872aa","answerer_user_id":"anon_e9351b8f2e318ae7","subreddit":"programming","timestamp":"2014-01-13T19:07:30+00:00","post_id":"1v4jqa","question":"Robust and Resilient, Do They Lead to Antifragile Software?","preferred_answer":"The article is just like Taleb's book: a lot of words, not a single specific point.","full_conversation":[{"role":"OP","user_id":"anon_08b40a17c3e872aa","comment_id":"1v4jqa","kind":"post","text":"Robust and Resilient, Do They Lead to Antifragile Software?","timestamp":"2014-01-13T19:07:30+00:00","score":3},{"role":"answerer","user_id":"anon_e9351b8f2e318ae7","comment_id":"ceorczv","kind":"comment","text":"The article is just like Taleb's book: a lot of words, not a single specific point.","timestamp":"2014-01-13T22:02:07+00:00","score":6},{"role":"OP","user_id":"anon_08b40a17c3e872aa","comment_id":"ceottcy","kind":"comment","text":"Thanks for the criticism, I've been doing software dev for a while but never bothered to improve my writing skills. This post, and posts to follow are to help me get better. Any technical authors you are particularly fond of?","timestamp":"2014-01-13T23:31:34+00:00","score":3},{"role":"answerer","user_id":"anon_e9351b8f2e318ae7","comment_id":"ceows2p","kind":"comment","text":"Write about stuff you did, how it influences your views and how it relates to more general concept. Don't spend several paragraphs reminding people what resilient or robust is. It's boring and obvious.","timestamp":"2014-01-14T01:26:01+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_08b40a17c3e872aa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e9351b8f2e318ae7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ceorczv","thanks_reply_id":"ceottcy","post_score":3,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_1250f41ade8483c6","answerer_user_id":"anon_0130b1d0f9373a5c","subreddit":"programming","timestamp":"2014-01-22T01:47:59+00:00","post_id":"1vtbvk","question":"Need help with Xcode and C++. Errors with basic program.","preferred_answer":"You need to add something at the end to prevent the console from terminating. Try system(\"PAUSE\"); or getchar();","full_conversation":[{"role":"OP","user_id":"anon_1250f41ade8483c6","comment_id":"1vtbvk","kind":"post","text":"Need help with Xcode and C++. Errors with basic program.","timestamp":"2014-01-22T01:47:59+00:00","score":0},{"role":"answerer","user_id":"anon_0130b1d0f9373a5c","comment_id":"cevm2va","kind":"comment","text":"You need to add something at the end to prevent the console from terminating. Try system(\"PAUSE\"); or getchar();","timestamp":"2014-01-22T02:24:55+00:00","score":2},{"role":"OP","user_id":"anon_1250f41ade8483c6","comment_id":"cevm5xw","kind":"comment","text":"Thank you, I solved the problem. I have a wired keyboard connected to my macbook and using the built in keyboard fixed the problem.","timestamp":"2014-01-22T02:27:56+00:00","score":1},{"role":"answerer","user_id":"anon_0130b1d0f9373a5c","comment_id":"cevmbhp","kind":"comment","text":"Sweet. I'm actually in a C++ class this semester so I'm glad I could attempt to help out a bit. Interesting that it was a keyboard issue.\n\nEdit: added a couple words","timestamp":"2014-01-22T02:33:31+00:00","score":2},{"role":"OP","user_id":"anon_1250f41ade8483c6","comment_id":"cevmt8c","kind":"comment","text":"Yeah this is my first c++ class and programming in general.","timestamp":"2014-01-22T02:51:12+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_1250f41ade8483c6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0130b1d0f9373a5c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cevm2va","thanks_reply_id":"cevm5xw","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_87dbd6060cdbca42","answerer_user_id":"anon_428a3c774c65571e","subreddit":"programming","timestamp":"2014-01-28T13:41:38+00:00","post_id":"1wdaol","question":"What's so special about LINQ?","preferred_answer":"Nice catch. I haven't done any Python for ages, so didn't spot it was that. I knew if wasn't LISP though. Not enough parentheses :-)\n\nTo my mind the whole article seems to go nowhere and say very little.","full_conversation":[{"role":"OP","user_id":"anon_87dbd6060cdbca42","comment_id":"1wdaol","kind":"post","text":"What's so special about LINQ?","timestamp":"2014-01-28T13:41:38+00:00","score":0},{"role":"answerer","user_id":"anon_428a3c774c65571e","comment_id":"cf0z4ns","kind":"comment","text":"Nice catch. I haven't done any Python for ages, so didn't spot it was that. I knew if wasn't LISP though. Not enough parentheses :-)\n\nTo my mind the whole article seems to go nowhere and say very little.","timestamp":"2014-01-28T16:10:09+00:00","score":1},{"role":"OP","user_id":"anon_87dbd6060cdbca42","comment_id":"cf10dwt","kind":"comment","text":"Thanks, that's not the first time I've heard that about my posts.\n\nI had hoped to show LINQ as a combination of smaller features, rather than one big one, and I wanted to compare that with similar functionality in other languages.\n\nI guess I could have improved the post by stating this up front, in conclusion, and based the rest around this thesis. Kinda like every writing class tells you to, over and over again. :P\n\nThanks for the feedback!","timestamp":"2014-01-28T16:56:50+00:00","score":1},{"role":"answerer","user_id":"anon_428a3c774c65571e","comment_id":"cf1pxvu","kind":"comment","text":"> Thanks for the feedback.\n\nYou're welcome. As you say, you could have done with stating the purpose of the article up front. It did not 'feel' like it achieved the aim of explaining the purpose declared in the title. There were some informative parts, but it did feel a bit meandering. Take some cues from Allen Underwood's writing, which feels a lot more focused and to the point.\n\nFinally, keep at it. You can only improve by practising, and you seem to have useful information to impart.","timestamp":"2014-01-29T10:50:46+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_87dbd6060cdbca42","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_428a3c774c65571e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cf0z4ns","thanks_reply_id":"cf10dwt","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_1d7134716f9fe1da","answerer_user_id":"anon_7fbb9b5a0a8e9628","subreddit":"programming","timestamp":"2014-02-01T10:15:50+00:00","post_id":"1wpxbk","question":"Quick question - Does anyone know what this binary quotation is? Or do you have some optical recognition software that can quick transfer it to proper text on the screen so that I can then translate it?","preferred_answer":"First attempt:\n\n01001111 01101110 0100000 01101000 01101111 01110000 01100101 0111010 0100000 01101000 01101111 01110000 01100101 0100000 01101001 01110011 0100000 01101110 01101111 01110100 0100000 01100001 0100000 01101101 01101111 01101111 01100100 0100000 01110100 01101000 01100001 01110100 0100000 01111001 01101111 01110101 0100000 01110000 01100001 01110011 01110011 01101001 01110110 01100101.01101100 01111001 0100000 01110111 01101001 01110011 01101000 0100000 01100110 01101111 01110010 0101110 0100000 0100000 01001001 01110100 0100000 01101001 01110011 0100000 01100001 0100000 01110011 01110100 01100001 01110100 01100101 0100000 01101111 01100110 0100CDO 01101101 01101001 01101110 01100100 0100000 01110100 01101000 01100001 01110100 0100000 01111001 01101111 01110101 0100000 01101101 01110101 01110011 01110100 0100000 01100101 01100001 01110010 01101110 0101110 0100000 0100000 01011001 01101111 01110101 0100000 01100100 01101111 01101110 01011100 0100111 01110100 0100000 01100111 01100101 01110100 0100000 01110010 01100101 01100001 01101100 0100000 01101000 01101111 01110000 01100101 0100000 01101010 01110101 01110011 01110100 0100000 01100010 01111001 0100000 01101000 01100101 01100001 0111001001l01001 011011l001100111 0100000 01100001 0100000 01110010 01101111 01110101 01110011 01101001 01101110 01100111 0100000 01110011 01110000 01100101 01100101 01100011 01 101000 0100000 01101111 01110010 0100000 01110010 01100101 01100001 01100100 01101001 01101110 01100111 0100000 01100001 0100000 01100111 01110010 01100101 01100001 01110100 0100000 01100010 01101111 01101111 01101011 01011l00100000 01010100 01101000 01100001 01110100 0100000 01101011 01101001 01101110 01100100 0100000 01101111 01100110 0100000 011100010 010000000 010011100 01101000 01101111 01110000 01100101 011100010 010000000 010011101 0100000 01101001 01110011 0100000 01101001 01101100 01101100 01110101 01110011 01101111 01110010 01111001 0100000 01100001 01101110 01100100 0100000 01100110 01101100 01100101 01100101 01110100 01101001 01101110 01100111 0101110 0100000 0100000 01010010 01100101 01100001 01101100 0100000 01101000 01101111 01110000 01100101 0101100 0100000 01110100 01101000 01100101 0100000 01101011 01101001 01101110 01100100 0100000 01110100 01101000 01100001 01110100 0100000 01110011 01110101 01110011 01110100 01100001 01101001 01101110 01110011 0100000 01111001 01101111 01110101 0101100 0100000 01100011 01100001 01101110 0100000 01101111 01101110 01101100 01111001 0100000 01100010 01100101 0100000 01101111 01100010 01110100 01100001 01101001 01101110 01100101 01100100 0100000 01110100 01101000 01110010 01101111 01110101 01100111 01101000 0100000 01100110 01100101 01100001 01110010 01101100 01100101 01110011 01110011 0100000 01101000 01100001 01110010 01100100 0100000 01110111 01101111 01110010 01101011 0100000 01100001 01101110 01100100 0100000 011029,11.4:41Pri 111,01101110 01110011 01101001 ottictoi iwoo _ Oiicalco *co l000li 011110016161-116 \n-01001100 01000001 01000110 01001101 \n•*-4•-•■••••wr • • 1.4,2(5011-1,40;#• *-404-0A-vrt.144'.%.*: ;NY:1--\"•*....••:..-c-:44ctrit--- \n-::4-1!..0\".4\":\"•444.k4Siltr....4%* •••.• 2.+,;1 .r - \n• -- . . • • • •.... 4.• . . . . • . - .•. . . . ,....r --;:at • a • ''• .. • - • - - • ' • • ... •\"• : : ve 4.**.• • 4 ar .. 4 ....•,., 4.• •.• •. ' :. . ' : • • • • • .•. • . •1/211Ire4. \n.••:r.e.ier•Vellikedry-Arrs. . . \n. • • • • , ■ • .• •. 17 ;IP::12 r,s•-•jet.4 • I.. • 114/ 4',•4ria•-• •- • •••rigtillt • .. : • !: • . • WWW. LI FE AO V ICE FROMMAC 4-1 IN ES COM","full_conversation":[{"role":"OP","user_id":"anon_1d7134716f9fe1da","comment_id":"1wpxbk","kind":"post","text":"Quick question - Does anyone know what this binary quotation is? Or do you have some optical recognition software that can quick transfer it to proper text on the screen so that I can then translate it?","timestamp":"2014-02-01T10:15:50+00:00","score":0},{"role":"answerer","user_id":"anon_7fbb9b5a0a8e9628","comment_id":"cf4baah","kind":"comment","text":"First attempt:\n\n01001111 01101110 0100000 01101000 01101111 01110000 01100101 0111010 0100000 01101000 01101111 01110000 01100101 0100000 01101001 01110011 0100000 01101110 01101111 01110100 0100000 01100001 0100000 01101101 01101111 01101111 01100100 0100000 01110100 01101000 01100001 01110100 0100000 01111001 01101111 01110101 0100000 01110000 01100001 01110011 01110011 01101001 01110110 01100101.01101100 01111001 0100000 01110111 01101001 01110011 01101000 0100000 01100110 01101111 01110010 0101110 0100000 0100000 01001001 01110100 0100000 01101001 01110011 0100000 01100001 0100000 01110011 01110100 01100001 01110100 01100101 0100000 01101111 01100110 0100CDO 01101101 01101001 01101110 01100100 0100000 01110100 01101000 01100001 01110100 0100000 01111001 01101111 01110101 0100000 01101101 01110101 01110011 01110100 0100000 01100101 01100001 01110010 01101110 0101110 0100000 0100000 01011001 01101111 01110101 0100000 01100100 01101111 01101110 01011100 0100111 01110100 0100000 01100111 01100101 01110100 0100000 01110010 01100101 01100001 01101100 0100000 01101000 01101111 01110000 01100101 0100000 01101010 01110101 01110011 01110100 0100000 01100010 01111001 0100000 01101000 01100101 01100001 0111001001l01001 011011l001100111 0100000 01100001 0100000 01110010 01101111 01110101 01110011 01101001 01101110 01100111 0100000 01110011 01110000 01100101 01100101 01100011 01 101000 0100000 01101111 01110010 0100000 01110010 01100101 01100001 01100100 01101001 01101110 01100111 0100000 01100001 0100000 01100111 01110010 01100101 01100001 01110100 0100000 01100010 01101111 01101111 01101011 01011l00100000 01010100 01101000 01100001 01110100 0100000 01101011 01101001 01101110 01100100 0100000 01101111 01100110 0100000 011100010 010000000 010011100 01101000 01101111 01110000 01100101 011100010 010000000 010011101 0100000 01101001 01110011 0100000 01101001 01101100 01101100 01110101 01110011 01101111 01110010 01111001 0100000 01100001 01101110 01100100 0100000 01100110 01101100 01100101 01100101 01110100 01101001 01101110 01100111 0101110 0100000 0100000 01010010 01100101 01100001 01101100 0100000 01101000 01101111 01110000 01100101 0101100 0100000 01110100 01101000 01100101 0100000 01101011 01101001 01101110 01100100 0100000 01110100 01101000 01100001 01110100 0100000 01110011 01110101 01110011 01110100 01100001 01101001 01101110 01110011 0100000 01111001 01101111 01110101 0101100 0100000 01100011 01100001 01101110 0100000 01101111 01101110 01101100 01111001 0100000 01100010 01100101 0100000 01101111 01100010 01110100 01100001 01101001 01101110 01100101 01100100 0100000 01110100 01101000 01110010 01101111 01110101 01100111 01101000 0100000 01100110 01100101 01100001 01110010 01101100 01100101 01110011 01110011 0100000 01101000 01100001 01110010 01100100 0100000 01110111 01101111 01110010 01101011 0100000 01100001 01101110 01100100 0100000 011029,11.4:41Pri 111,01101110 01110011 01101001 ottictoi iwoo _ Oiicalco *co l000li 011110016161-116 \n-01001100 01000001 01000110 01001101 \n•*-4•-•■••••wr • • 1.4,2(5011-1,40;#• *-404-0A-vrt.144'.%.*: ;NY:1--\"•*....••:..-c-:44ctrit--- \n-::4-1!..0\".4\":\"•444.k4Siltr....4%* •••.• 2.+,;1 .r - \n• -- . . • • • •.... 4.• . . . . • . - .•. . . . ,....r --;:at • a • ''• .. • - • - - • ' • • ... •\"• : : ve 4.**.• • 4 ar .. 4 ....•,., 4.• •.• •. ' :. . ' : • • • • • .•. • . •1/211Ire4. \n.••:r.e.ier•Vellikedry-Arrs. . . \n. • • • • , ■ • .• •. 17 ;IP::12 r,s•-•jet.4 • I.. • 114/ 4',•4ria•-• •- • •••rigtillt • .. : • !: • . • WWW. LI FE AO V ICE FROMMAC 4-1 IN ES COM","timestamp":"2014-02-01T10:42:16+00:00","score":3},{"role":"OP","user_id":"anon_1d7134716f9fe1da","comment_id":"cf4bbjp","kind":"comment","text":"Thank you. What did you use to get that into proper text form? (And is command-line-words-on-a-screen called \"proper text\"? What's the right phrase?)","timestamp":"2014-02-01T10:46:45+00:00","score":1},{"role":"answerer","user_id":"anon_7fbb9b5a0a8e9628","comment_id":"cf4bdo9","kind":"comment","text":"That's just the output of inverting it, playing with the levels ever so slightly and running it through a simple OCR program.\n\nWith a little error correction, converting this to binary (with dots where the OCR didn't give binary) gives:\n\n>On hope: hope is not a mood that you passiv.y wish for. It is a state ofDmind that you must earn. You don\\'t get real hope just by hea物湧 a rousing speec\u0001( or reading a great bookᜠThat kind of “hope” is illusory and fleeting. Real hope, the kind that sustains you, can only be obtained through fearless hard work and ..siu....#.LAFM\n\nEdit: made it a little better","timestamp":"2014-02-01T10:54:23+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1d7134716f9fe1da","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7fbb9b5a0a8e9628","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cf4baah","thanks_reply_id":"cf4bbjp","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_0ed4294d0d1a7bd7","answerer_user_id":"anon_f81d849a2f732c05","subreddit":"programming","timestamp":"2014-02-03T14:39:10+00:00","post_id":"1ww7m7","question":"I put together a software developer's reading list. What do you think?","preferred_answer":"I like the idea of your list, and think it's pretty comprehensive in terms of basic developer skills. Seems very heavily focused on the Agile design methodology, which I'm not sure everyone uses/applies. My experience is having worked as a programmer, then moved into design, and then management over time. Two consistent problems I've encountered for entry level programmers is that (1) they don't really understand the business problem that's trying to be solved through the software they're developing, and (2) they don't understand the requirements gathering process for really leading and nailing down users to get accurate descriptions of what they're looking for. I'm not sure if your titles really provide that (I see one requirements book), but to me, if you were going to ask a new programmer to read 10 books, about half of them should be on leading requirements and understanding business problem solving.. :)","full_conversation":[{"role":"OP","user_id":"anon_0ed4294d0d1a7bd7","comment_id":"1ww7m7","kind":"post","text":"I put together a software developer's reading list. What do you think?","timestamp":"2014-02-03T14:39:10+00:00","score":7},{"role":"answerer","user_id":"anon_f81d849a2f732c05","comment_id":"cf5zp9s","kind":"comment","text":"I like the idea of your list, and think it's pretty comprehensive in terms of basic developer skills. Seems very heavily focused on the Agile design methodology, which I'm not sure everyone uses/applies. My experience is having worked as a programmer, then moved into design, and then management over time. Two consistent problems I've encountered for entry level programmers is that (1) they don't really understand the business problem that's trying to be solved through the software they're developing, and (2) they don't understand the requirements gathering process for really leading and nailing down users to get accurate descriptions of what they're looking for. I'm not sure if your titles really provide that (I see one requirements book), but to me, if you were going to ask a new programmer to read 10 books, about half of them should be on leading requirements and understanding business problem solving.. :)","timestamp":"2014-02-03T16:51:01+00:00","score":1},{"role":"OP","user_id":"anon_0ed4294d0d1a7bd7","comment_id":"cf602yn","kind":"comment","text":"Thanks for the feedback. Do you have any favorite books about requirements?\n\nRegarding Agile processes, I agree that they may not be applicable to everyone. I include Agile/Scrum as a concrete example of iterative and incremental product development, which I do think is pretty broadly applicable. Perhaps I should add a note emphasizing that Agile isn't the only perspective.","timestamp":"2014-02-03T17:05:52+00:00","score":1},{"role":"answerer","user_id":"anon_f81d849a2f732c05","comment_id":"cf64v5a","kind":"comment","text":"On requirements, a liked \"Software Requirements\" by Karl Wiegers. The reason I was talking about requirements being so important is because even developers that are just receiving requirements and programming them (ie: not the people developing requirements with customers) often don't try to understand the underlying problem or question the detail of requirements as written - and it leads to just producing something the doesn't make sense.\n\nAt your site, you make a distinction between Programing and Software Development - and I think I see where you're going with this in terms of fully understanding the various aspects of software design and development. I think the next question here is what other ancillary skills that business analysts / developers / managers need to do their day to day jobs?\n\nWhen I've hired entry level people in the past, I usually tell them that there are basically 3 different skill sets required for being successful in pretty much any job. First, is deep knowledge in the area that you're being hired for. With your list, for example, you're providing the deep knowledge for working in the software development process. The second area is project management skills - developing software, for instance, is a process that needs to be led and navigated not just by PM's, but the participants themselves. Experts in 'software development' should be experts in leading the software development project/process, so I would focus on the type of skill set acquired through something like PMI certification. The third skill set are business accumen / interpersonal / relationship management skills. Entry level people or those who work mostly alone (like many programmers) often don't recognize how important these skills are, or necessary for advancement, or just getting things done. These are the skills that allow you to fully understand what's driving the business problem, or to lead users through the process of developing / negotiating requirements.\n\nAnother area I like, just because I'm interested in it, is process improvement. I see you have Lean Software development there - that's a good idea. I think IT departments, in particular, often have a tough time implementing lean and six sigma. I think it's helpful, as a general skill, to just have some familiarity with basic six sigma tools that can help you measure problems and propose solutions.","timestamp":"2014-02-03T19:56:10+00:00","score":1},{"role":"OP","user_id":"anon_0ed4294d0d1a7bd7","comment_id":"cf66lpd","kind":"comment","text":"I agree that all the areas you mentioned are important. I think if someone reads the books on Lean Systems, Agile Teams, User Stories, and Customer Development, they'll have had a decent introduction to the challenges of figuring out what to build (requirements) and processes for organizing teams. These books introduce the concepts from an agile/lean viewpoint, which I think is valuable but by no means comprehensive. (Perhaps I should explicitly note this.)\n\nI link to the Software Requirements book under \"further reading\", but I haven't been able read it yet. It is certainly highly regarded on Amazon. Perhaps requirements are insufficiently emphasized on my list, considering how important that process it.\n\nRegarding business, interpersonal, and relationship management skills, those are essential but fall outside of the scope of this particular reading list. I've certainly done reading in these areas, but I definitely don't feel qualified to be making book recommendations.","timestamp":"2014-02-03T20:54:22+00:00","score":1},{"role":"answerer","user_id":"anon_f81d849a2f732c05","comment_id":"cf6b1sf","kind":"comment","text":"Yeah, the business/interpersonal skills is a pretty wide area. I don't have a good recommendation, but some instruction for people leading groups through things like requirements development would be really useful.","timestamp":"2014-02-03T23:27:17+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_0ed4294d0d1a7bd7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f81d849a2f732c05","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cf5zp9s","thanks_reply_id":"cf602yn","post_score":7,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_593ea39766c315c7","answerer_user_id":"anon_b83923796cecd9d4","subreddit":"programming","timestamp":"2014-02-12T15:01:25+00:00","post_id":"1xpm5n","question":"What can I do to get initial commercial experience?","preferred_answer":"This is probably more appropriate for /r/cscareerquestions.\n\nThat said, assuming you're at a decent University, make use of your CS department's resources. \n\nWhile I was lucky enough to get hired in high-school for an entry-level position, I got my second job via an internship offering through the department.","full_conversation":[{"role":"OP","user_id":"anon_593ea39766c315c7","comment_id":"1xpm5n","kind":"post","text":"What can I do to get initial commercial experience?","timestamp":"2014-02-12T15:01:25+00:00","score":0},{"role":"answerer","user_id":"anon_b83923796cecd9d4","comment_id":"cfdg9wr","kind":"comment","text":"This is probably more appropriate for /r/cscareerquestions.\n\nThat said, assuming you're at a decent University, make use of your CS department's resources. \n\nWhile I was lucky enough to get hired in high-school for an entry-level position, I got my second job via an internship offering through the department.","timestamp":"2014-02-12T15:06:08+00:00","score":4},{"role":"OP","user_id":"anon_593ea39766c315c7","comment_id":"cfdgln0","kind":"comment","text":"Thanks for the commenting so quickly!\n\nUnfortunately it seems most of the companies my CS department are recommending only want 2nd/3rd/4th year students. They are making exceptions though - for those who've done projects for small companies in their home towns, their parents' workplace and the like.\n\nI was wondering if there was any internet based resource for projects I can get started in. I've looked at eLance but that seems to require a lot of experience and a portfolio, returning me to square one.","timestamp":"2014-02-12T15:20:37+00:00","score":1},{"role":"answerer","user_id":"anon_b83923796cecd9d4","comment_id":"cfdhufx","kind":"comment","text":"A lot of places consider contributing to open-source (and having a GitHub that shows that off) a pretty good portfolio. You might have some luck just doing some work for a library you like/use.\n\nAlternatively, there are volunteer coding efforts like those [here](http://www.socialcoding4good.org/social-coding).","timestamp":"2014-02-12T16:10:33+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_593ea39766c315c7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b83923796cecd9d4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cfdg9wr","thanks_reply_id":"cfdgln0","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_0ed4294d0d1a7bd7","answerer_user_id":"anon_20f87455a1878c22","subreddit":"programming","timestamp":"2014-02-17T17:58:38+00:00","post_id":"1y5tmu","question":"Why & How I Write Java","preferred_answer":"Since we're doing language recommendations, I've been doing F# for two years and have run into zero problems. The job market's good (more jobs than applicants), the language is great, the tooling is top notch, and it's cross-platform to the max - it even runs on GPUs.","full_conversation":[{"role":"OP","user_id":"anon_0ed4294d0d1a7bd7","comment_id":"1y5tmu","kind":"post","text":"Why & How I Write Java","timestamp":"2014-02-17T17:58:38+00:00","score":224},{"role":"answerer","user_id":"anon_20f87455a1878c22","comment_id":"cfhqnl5","kind":"comment","text":"Since we're doing language recommendations, I've been doing F# for two years and have run into zero problems. The job market's good (more jobs than applicants), the language is great, the tooling is top notch, and it's cross-platform to the max - it even runs on GPUs.","timestamp":"2014-02-17T21:14:44+00:00","score":10},{"role":"OP","user_id":"anon_0ed4294d0d1a7bd7","comment_id":"cfhqsh3","kind":"comment","text":"Thanks. I added F# and Groovy to the list, and say I don't know much about them in practice.","timestamp":"2014-02-17T21:19:24+00:00","score":3},{"role":"answerer","user_id":"anon_20f87455a1878c22","comment_id":"cfhquya","kind":"comment","text":"How's the Groovy job market? I think I've only ever seen one job offer for it o.O","timestamp":"2014-02-17T21:21:49+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0ed4294d0d1a7bd7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_20f87455a1878c22","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cfhqnl5","thanks_reply_id":"cfhqsh3","post_score":224,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_d62ef0205bad88dd","answerer_user_id":"anon_b1c20ae06d1faf49","subreddit":"programming","timestamp":"2014-03-21T02:27:49+00:00","post_id":"20ynr7","question":"What is this subreddit about? It is all in code and I have no idea what it means.","preferred_answer":"> 201403202159\n\nThat's a time stamp:\n\n2014 03 20 - Today's date\n\n2159 - 21 hours, 59 minutes (9:59pm)\n\nAs for what it all means? I have no idea.","full_conversation":[{"role":"OP","user_id":"anon_d62ef0205bad88dd","comment_id":"20ynr7","kind":"post","text":"What is this subreddit about? It is all in code and I have no idea what it means.","timestamp":"2014-03-21T02:27:49+00:00","score":0},{"role":"answerer","user_id":"anon_b1c20ae06d1faf49","comment_id":"cg7yy2i","kind":"comment","text":"> 201403202159\n\nThat's a time stamp:\n\n2014 03 20 - Today's date\n\n2159 - 21 hours, 59 minutes (9:59pm)\n\nAs for what it all means? I have no idea.","timestamp":"2014-03-21T02:47:24+00:00","score":1},{"role":"OP","user_id":"anon_d62ef0205bad88dd","comment_id":"cg7zm43","kind":"comment","text":"Weird. I knew it would be something boring. Oh well. Thanks anyway!","timestamp":"2014-03-21T03:13:16+00:00","score":1},{"role":"answerer","user_id":"anon_b1c20ae06d1faf49","comment_id":"cg87v2v","kind":"comment","text":"I did some more digging after I wrote this last night...\n\nThe content of all of the posts appears to be base64 encoded binary data. Some of it could be images or word documents. You can mess with it yourself... just base 64 decode the strings and then try a bunch of file formats to see what opens.","timestamp":"2014-03-21T13:03:07+00:00","score":1},{"role":"OP","user_id":"anon_d62ef0205bad88dd","comment_id":"cg8awep","kind":"comment","text":"Ok...I'll try that. Thanks:) I was just clicking \"Random\" and that subreddit popped up.","timestamp":"2014-03-21T15:20:25+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d62ef0205bad88dd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b1c20ae06d1faf49","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cg7yy2i","thanks_reply_id":"cg7zm43","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_72ba63650f4fbeee","answerer_user_id":"anon_3e6448287de2f83f","subreddit":"programming","timestamp":"2014-04-08T02:35:24+00:00","post_id":"22hf4c","question":"When is MongoDB the Right Tool for the Job?","preferred_answer":"mongodb has good marketing. and for good marketing, they put a lot of effort in making it easy to get started. \n\nthe result is that it's really easy to get started with mongodb. \n\nthen hell breaks. \n\nthere's literally no reason to use mongodb.","full_conversation":[{"role":"OP","user_id":"anon_72ba63650f4fbeee","comment_id":"22hf4c","kind":"post","text":"When is MongoDB the Right Tool for the Job?","timestamp":"2014-04-08T02:35:24+00:00","score":16},{"role":"answerer","user_id":"anon_3e6448287de2f83f","comment_id":"cgmv4bg","kind":"comment","text":"mongodb has good marketing. and for good marketing, they put a lot of effort in making it easy to get started. \n\nthe result is that it's really easy to get started with mongodb. \n\nthen hell breaks. \n\nthere's literally no reason to use mongodb.","timestamp":"2014-04-08T03:05:26+00:00","score":9},{"role":"OP","user_id":"anon_72ba63650f4fbeee","comment_id":"cgmw2wm","kind":"comment","text":"I appreciate the response, but even if this does end up being the case, I really want to hear from the other side of this argument for a change.\n\nIt's really hard to get any impartial views on this, because everyone seems to have been burnt in the past.\n\nI'm just trying to get informed, basically.","timestamp":"2014-04-08T03:40:48+00:00","score":-1},{"role":"answerer","user_id":"anon_3e6448287de2f83f","comment_id":"cgn33f5","kind":"comment","text":"I gave you a good case to use mongodb: to get started on a project. When you prototype. When your data is small, unstructured, uncertain, not important, and when you're shooting tracing bullets for your project, you can use whatever, including mongodb.","timestamp":"2014-04-08T12:10:44+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_72ba63650f4fbeee","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3e6448287de2f83f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cgmv4bg","thanks_reply_id":"cgmw2wm","post_score":16,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_26c6a2a3ce3e1011","answerer_user_id":"anon_710aecf18f9bc3b4","subreddit":"programming","timestamp":"2014-04-08T10:42:40+00:00","post_id":"22i8pq","question":"How to fix the SSL vulnerability on your AWS EC2 or other Ubuntu/Debian based webserver","preferred_answer":"Will this really work? I did not know that Ubuntu had /usr/local/lib on the library path.","full_conversation":[{"role":"OP","user_id":"anon_26c6a2a3ce3e1011","comment_id":"22i8pq","kind":"post","text":"How to fix the SSL vulnerability on your AWS EC2 or other Ubuntu/Debian based webserver","timestamp":"2014-04-08T10:42:40+00:00","score":0},{"role":"answerer","user_id":"anon_710aecf18f9bc3b4","comment_id":"cgn2e68","kind":"comment","text":"Will this really work? I did not know that Ubuntu had /usr/local/lib on the library path.","timestamp":"2014-04-08T11:15:26+00:00","score":0},{"role":"OP","user_id":"anon_26c6a2a3ce3e1011","comment_id":"cgn2ot7","kind":"comment","text":"Yeah this is exactly what we did on our EC2 instances, let me know if you run into any issues!","timestamp":"2014-04-08T11:40:22+00:00","score":0},{"role":"answerer","user_id":"anon_710aecf18f9bc3b4","comment_id":"cgnh4vu","kind":"comment","text":"Cool. This is preferable to doing an apt-get upgrade because Amazon probably hasn't released updates to their mirrors of the repos, right?","timestamp":"2014-04-08T20:41:22+00:00","score":0},{"role":"OP","user_id":"anon_26c6a2a3ce3e1011","comment_id":"cgnh69j","kind":"comment","text":"Seems like they have, you should apt-get upgrade","timestamp":"2014-04-08T20:42:29+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_26c6a2a3ce3e1011","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_710aecf18f9bc3b4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cgn2e68","thanks_reply_id":"cgn2ot7","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_c979727443ebee35","answerer_user_id":"anon_53d006329c787fa5","subreddit":"programming","timestamp":"2014-04-22T23:02:50+00:00","post_id":"23pyii","question":"Is this sort of thing done in professional programming, or am I just wasting my time?","preferred_answer":"You're just wasting time.","full_conversation":[{"role":"OP","user_id":"anon_c979727443ebee35","comment_id":"23pyii","kind":"post","text":"Is this sort of thing done in professional programming, or am I just wasting my time?","timestamp":"2014-04-22T23:02:50+00:00","score":1},{"role":"answerer","user_id":"anon_53d006329c787fa5","comment_id":"cgzexb6","kind":"comment","text":"You're just wasting time.","timestamp":"2014-04-22T23:03:40+00:00","score":2},{"role":"OP","user_id":"anon_c979727443ebee35","comment_id":"cgzezld","kind":"comment","text":"Thank you for reinforcing the fact that my time is being wasted in this damn class. I love programming, but I hate every waking minute of this class.","timestamp":"2014-04-22T23:06:05+00:00","score":1},{"role":"answerer","user_id":"anon_53d006329c787fa5","comment_id":"cgzf7a1","kind":"comment","text":"This kind of stuff is a good starting point to get the idea behind programming in the first 2-4 lessons if you never programmed before. After that, there is no substitute for the real thing. Battling with the compiler, and trying to figure out what the fuck you did wrong or trying to hunt that nasty bug that's messing up your results once in a while.","timestamp":"2014-04-22T23:13:41+00:00","score":3},{"role":"OP","user_id":"anon_c979727443ebee35","comment_id":"cgzfbmw","kind":"comment","text":"Yes, I do find it rewarding, however, to say I beat the computer and it now does my bidding. Very satisfying, one of the reasons I'm so into programming in the first place.","timestamp":"2014-04-22T23:18:02+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c979727443ebee35","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_53d006329c787fa5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cgzexb6","thanks_reply_id":"cgzezld","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_19a089fb17666e74","answerer_user_id":"anon_5caf0458bd4635c1","subreddit":"programming","timestamp":"2014-05-02T19:13:43+00:00","post_id":"24kc68","question":"Twenty C# Questions answered - which ones would you find useful?","preferred_answer":"There are some in there I would love to look at, however I am not sitting through a video or a power point when a simple code snippit would work.","full_conversation":[{"role":"OP","user_id":"anon_19a089fb17666e74","comment_id":"24kc68","kind":"post","text":"Twenty C# Questions answered - which ones would you find useful?","timestamp":"2014-05-02T19:13:43+00:00","score":0},{"role":"answerer","user_id":"anon_5caf0458bd4635c1","comment_id":"ch7ynid","kind":"comment","text":"There are some in there I would love to look at, however I am not sitting through a video or a power point when a simple code snippit would work.","timestamp":"2014-05-02T19:21:08+00:00","score":5},{"role":"OP","user_id":"anon_19a089fb17666e74","comment_id":"ch7zbg8","kind":"comment","text":"Thanks. I wonder if it came with the text explanation and code snippet as well, would that be better? So, for experienced devs who just want to see the solution, they can, and for the lesser experienced, watching someone walk through it and explain why it works in a particular way, could be helpful?","timestamp":"2014-05-02T19:44:49+00:00","score":2},{"role":"answerer","user_id":"anon_5caf0458bd4635c1","comment_id":"ch8450y","kind":"comment","text":"I find that 90% of the time I need to show someone how code works that a snippit is the easiest way. I will admit back about 17 years ago, wrapping my mind around threading, I did need to have someone talk me through the concept.\n\nPersonally I think the video and code snippit option is the best ways... but that is one persons opinion!","timestamp":"2014-05-02T22:49:36+00:00","score":1},{"role":"OP","user_id":"anon_19a089fb17666e74","comment_id":"ch8728j","kind":"comment","text":"Thanks! I'm looking at ways we can make this stuff more useful. Some of us were saying devs like text over video for things like this, but I was wondering if we did a combo like this.","timestamp":"2014-05-03T00:58:57+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_19a089fb17666e74","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5caf0458bd4635c1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ch7ynid","thanks_reply_id":"ch7zbg8","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_0cf3647b6c3f35e8","answerer_user_id":"anon_7fbd5ca24d3a5dfc","subreddit":"programming","timestamp":"2014-05-12T13:15:35+00:00","post_id":"25cu8j","question":"For solving which problem would you pay?","preferred_answer":"I already pay for good tools. The real problem is in the creation of those tools, not finding which one would be the best.","full_conversation":[{"role":"OP","user_id":"anon_0cf3647b6c3f35e8","comment_id":"25cu8j","kind":"post","text":"For solving which problem would you pay?","timestamp":"2014-05-12T13:15:35+00:00","score":0},{"role":"answerer","user_id":"anon_7fbd5ca24d3a5dfc","comment_id":"chfwwg2","kind":"comment","text":"I already pay for good tools. The real problem is in the creation of those tools, not finding which one would be the best.","timestamp":"2014-05-12T13:29:45+00:00","score":1},{"role":"OP","user_id":"anon_0cf3647b6c3f35e8","comment_id":"chfx13b","kind":"comment","text":"I meant tools that don't exist yet, problems that aren't yet solved.","timestamp":"2014-05-12T13:36:10+00:00","score":1},{"role":"answerer","user_id":"anon_7fbd5ca24d3a5dfc","comment_id":"chfxp7o","kind":"comment","text":"The question is too vague. I am ready for good tools and a lot of professional programmers do the same.\n\nThere are no tools that don't exist yet, only tools too clunky to use or unfinished. As for the problems that don't exist yet, it's in the realm of mathematics and computer science, not tools that you would sell.\n\nSome examples from you would be better because I don't understand what you really want to achieve.","timestamp":"2014-05-12T14:07:16+00:00","score":1},{"role":"OP","user_id":"anon_0cf3647b6c3f35e8","comment_id":"chfy4ts","kind":"comment","text":"Examples - any desktop tools, command-line tools, or web services - anything from non-existing programming languages, machine learning libraries, static code analysis, specialized code editors, installation, configuration tools, web frameworks to communication, advertisement, payments, sales. The key part of the question is the word \"pay\". What is a pain big enough to pay for a solution?","timestamp":"2014-05-12T14:25:46+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0cf3647b6c3f35e8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7fbd5ca24d3a5dfc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"chfwwg2","thanks_reply_id":"chfx13b","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_182d722b3f3af5bc","answerer_user_id":"anon_2d5ef7ec17046feb","subreddit":"programming","timestamp":"2014-05-22T09:11:34+00:00","post_id":"26721w","question":"Can anyone help with chunk of C# for my game? (More info in comments)","preferred_answer":"I think you are approaching this all wrong. There are way to many if-statements and this will cause allot of confusion and bugs. What i would do is figure out the delta between the player with Pythagoras theorem. So something like:\n\n int delta = Sqrt(Pow(playerX - treasureX, 2) + Pow(playerY - treasureY, 2));\n\nand then just set a threshold of what is hot, cold hotter, colder, hottest and freezing\n\n if(delta <= hottestThreshold)\n WarmerColder = \"Hottest\";\n else if(delta <= hotThreshold)\n WarmerColder = \"Hot\";\n ...\n\nand so on.","full_conversation":[{"role":"OP","user_id":"anon_182d722b3f3af5bc","comment_id":"26721w","kind":"post","text":"Can anyone help with chunk of C# for my game? (More info in comments)","timestamp":"2014-05-22T09:11:34+00:00","score":0},{"role":"answerer","user_id":"anon_2d5ef7ec17046feb","comment_id":"choa2oi","kind":"comment","text":"I think you are approaching this all wrong. There are way to many if-statements and this will cause allot of confusion and bugs. What i would do is figure out the delta between the player with Pythagoras theorem. So something like:\n\n int delta = Sqrt(Pow(playerX - treasureX, 2) + Pow(playerY - treasureY, 2));\n\nand then just set a threshold of what is hot, cold hotter, colder, hottest and freezing\n\n if(delta <= hottestThreshold)\n WarmerColder = \"Hottest\";\n else if(delta <= hotThreshold)\n WarmerColder = \"Hot\";\n ...\n\nand so on.","timestamp":"2014-05-22T10:11:24+00:00","score":4},{"role":"OP","user_id":"anon_182d722b3f3af5bc","comment_id":"chob5di","kind":"comment","text":"Thank you so much! Works like a charm!","timestamp":"2014-05-22T11:46:20+00:00","score":2},{"role":"answerer","user_id":"anon_2d5ef7ec17046feb","comment_id":"chobz5y","kind":"comment","text":"Im glad i could help. And save you quite a few lines of code.;)","timestamp":"2014-05-22T12:41:48+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_182d722b3f3af5bc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2d5ef7ec17046feb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"choa2oi","thanks_reply_id":"chob5di","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_84308632425deacf","answerer_user_id":"anon_3794f70a8246aaaf","subreddit":"programming","timestamp":"2014-05-31T15:08:27+00:00","post_id":"26yl0z","question":"Are there any small challenges you can complete online, like in the link, to get better in programming?","preferred_answer":"Don't know why you got downvoted. Some math is necessary for programming, but not the kind that PE requires most of the time.\n\nTry http://rosalind.info It's about bioinformatics, and I found it much more rewarding than PE. Not only it teaches you some background in bioinformatics, it gives you all background info necessary to solve the given problem. Unlike with PE, you're not dependent on knowing some random fact upfront in order to be able to solve the problem.","full_conversation":[{"role":"OP","user_id":"anon_84308632425deacf","comment_id":"26yl0z","kind":"post","text":"Are there any small challenges you can complete online, like in the link, to get better in programming?","timestamp":"2014-05-31T15:08:27+00:00","score":77},{"role":"answerer","user_id":"anon_3794f70a8246aaaf","comment_id":"chvrqru","kind":"comment","text":"Don't know why you got downvoted. Some math is necessary for programming, but not the kind that PE requires most of the time.\n\nTry http://rosalind.info It's about bioinformatics, and I found it much more rewarding than PE. Not only it teaches you some background in bioinformatics, it gives you all background info necessary to solve the given problem. Unlike with PE, you're not dependent on knowing some random fact upfront in order to be able to solve the problem.","timestamp":"2014-05-31T17:29:11+00:00","score":9},{"role":"OP","user_id":"anon_84308632425deacf","comment_id":"chvtt76","kind":"comment","text":"Will definitely give it a look. Thanks!\n\nIt does however, require to have a background in Python. \n\nA lot of places, in fact, seem to require it. What is so special about python?","timestamp":"2014-05-31T18:58:26+00:00","score":1},{"role":"answerer","user_id":"anon_3794f70a8246aaaf","comment_id":"chw8lod","kind":"comment","text":"> It does however, require to have a background in Python.\n\nIt doesn't really. It's been a while since I've been solving problems there, but the setup was like in PE: download a data file, write the solution in a language of your choice and submit the answer.","timestamp":"2014-06-01T06:52:52+00:00","score":2},{"role":"OP","user_id":"anon_84308632425deacf","comment_id":"chwjudd","kind":"comment","text":"Yeah, but it assumes you have a basic knowledge of a language:)","timestamp":"2014-06-01T19:04:32+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_84308632425deacf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3794f70a8246aaaf","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"chvrqru","thanks_reply_id":"chvtt76","post_score":77,"answer_score":9,"preferred_answer_is_top_level":false}} {"user_id":"anon_8911ae75e3703725","answerer_user_id":"anon_dddfcbfb161ede31","subreddit":"programming","timestamp":"2014-06-25T05:35:46+00:00","post_id":"29194k","question":"26m, one year experience, How do you deal with colleagues that offhandedly criticize you every work every chance they got?","preferred_answer":"Don't thank them unless they are actually being helpful (e.g. showing solution, or better approach). Nerds like us are often bad at people because most people cannot handle the bluntness of a compile error where we can. That is what you are getting, a human generated compiler error. If they don't bother to tell you exactly where and what is wrong, it isn't very helpful feedback.","full_conversation":[{"role":"OP","user_id":"anon_8911ae75e3703725","comment_id":"29194k","kind":"post","text":"26m, one year experience, How do you deal with colleagues that offhandedly criticize you every work every chance they got?","timestamp":"2014-06-25T05:35:46+00:00","score":0},{"role":"answerer","user_id":"anon_dddfcbfb161ede31","comment_id":"cigi7zf","kind":"comment","text":"Don't thank them unless they are actually being helpful (e.g. showing solution, or better approach). Nerds like us are often bad at people because most people cannot handle the bluntness of a compile error where we can. That is what you are getting, a human generated compiler error. If they don't bother to tell you exactly where and what is wrong, it isn't very helpful feedback.","timestamp":"2014-06-25T06:52:15+00:00","score":-1},{"role":"OP","user_id":"anon_8911ae75e3703725","comment_id":"cigijfl","kind":"comment","text":"thanks for the interesting perspective. I do make it a point not to thank them unless they at least make an effort to help me.","timestamp":"2014-06-25T07:14:29+00:00","score":2},{"role":"answerer","user_id":"anon_dddfcbfb161ede31","comment_id":"cigiwgv","kind":"comment","text":"It really is incumbent on them to help you grow, and upon you to be receptive to their (valid) inputs. After all, they might have to maintain your code someday, and you theirs.","timestamp":"2014-06-25T07:42:32+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8911ae75e3703725","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dddfcbfb161ede31","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cigi7zf","thanks_reply_id":"cigijfl","post_score":0,"answer_score":-1,"preferred_answer_is_top_level":false}} {"user_id":"anon_385eb559ef11f445","answerer_user_id":"anon_8b6bda0e1286b872","subreddit":"programming","timestamp":"2014-07-04T06:29:13+00:00","post_id":"29t3zy","question":"Why Go is Great (for servers)","preferred_answer":"For the vector-sorting question in Racket, here's an example that may help.\n\n #lang racket\n (require rnrs/sorting-6)\n (define v (vector 3 1 4 1 5 9 2 6))\n (vector-sort! < v)\n (displayln v)\n\nThe search for \"vector sort\" in the Racket documentation: http://docs.racket-lang.org/search/index.html?q=vector%20sort\n\nWith respect to the question about making a raw vector without initializing, the make-cvector function in the unsafe ffi library might do the trick. http://docs.racket-lang.org/foreign/foreign_cvector.html#%28def._%28%28lib._ffi%2Funsafe%2Fcvector..rkt%29._make-cvector%29%29. That being said, might be slightly unsafe. :P","full_conversation":[{"role":"OP","user_id":"anon_385eb559ef11f445","comment_id":"29t3zy","kind":"post","text":"Why Go is Great (for servers)","timestamp":"2014-07-04T06:29:13+00:00","score":0},{"role":"answerer","user_id":"anon_8b6bda0e1286b872","comment_id":"cioa1xs","kind":"comment","text":"For the vector-sorting question in Racket, here's an example that may help.\n\n #lang racket\n (require rnrs/sorting-6)\n (define v (vector 3 1 4 1 5 9 2 6))\n (vector-sort! < v)\n (displayln v)\n\nThe search for \"vector sort\" in the Racket documentation: http://docs.racket-lang.org/search/index.html?q=vector%20sort\n\nWith respect to the question about making a raw vector without initializing, the make-cvector function in the unsafe ffi library might do the trick. http://docs.racket-lang.org/foreign/foreign_cvector.html#%28def._%28%28lib._ffi%2Funsafe%2Fcvector..rkt%29._make-cvector%29%29. That being said, might be slightly unsafe. :P","timestamp":"2014-07-04T08:18:02+00:00","score":3},{"role":"OP","user_id":"anon_385eb559ef11f445","comment_id":"cioa3qx","kind":"comment","text":"Thank you! Unfortunately, I checked [the source](https://github.com/plt/racket/blob/master/pkgs/r6rs-pkgs/r6rs-lib/rnrs/sorting-6.rkt) and under the covers it's just:\n\n (define (vector-sort < v)\n (list->vector (sort (vector->list v) <)))\n\n (define (vector-sort! < v)\n (let ([v2 (vector-sort < v)])\n (vector-copy! v 0 v2)))\n\nChicken Scheme's [sort! implementation](http://wiki.call-cc.org/man/4/Unit%20data-structures#sort) works on vectors, but I'm not sure how its implemented.","timestamp":"2014-07-04T08:22:07+00:00","score":3},{"role":"answerer","user_id":"anon_8b6bda0e1286b872","comment_id":"cioa64t","kind":"comment","text":"Oh, that's unfortunate. :( I had hoped it would be done more directly. Apologies.","timestamp":"2014-07-04T08:27:48+00:00","score":2},{"role":"OP","user_id":"anon_385eb559ef11f445","comment_id":"cioa7t9","kind":"comment","text":"No need for apologies. Considering it's open source I should probably be spending my time trying to write and submit a faster vector-sort myself rather than complaining, haha.","timestamp":"2014-07-04T08:31:48+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_385eb559ef11f445","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8b6bda0e1286b872","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cioa1xs","thanks_reply_id":"cioa3qx","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_06d89de23d2b8ae8","answerer_user_id":"anon_2aa656ddedea1dcd","subreddit":"programming","timestamp":"2014-08-04T20:24:33+00:00","post_id":"2cmd3a","question":"Could someone please compile this for me?","preferred_answer":"1. Download and install the free edition of Visual Studio.\n2. Download the source from Github.\n2. Double-click the .sln (solution) file which will open it in Visual Studio.\n3. Press F5 (debug → run) which will compile and run the program.","full_conversation":[{"role":"OP","user_id":"anon_06d89de23d2b8ae8","comment_id":"2cmd3a","kind":"post","text":"Could someone please compile this for me?","timestamp":"2014-08-04T20:24:33+00:00","score":0},{"role":"answerer","user_id":"anon_2aa656ddedea1dcd","comment_id":"cjgvl4q","kind":"comment","text":"1. Download and install the free edition of Visual Studio.\n2. Download the source from Github.\n2. Double-click the .sln (solution) file which will open it in Visual Studio.\n3. Press F5 (debug → run) which will compile and run the program.","timestamp":"2014-08-04T20:39:55+00:00","score":3},{"role":"OP","user_id":"anon_06d89de23d2b8ae8","comment_id":"cjgwoo5","kind":"comment","text":"Thank you.\nI get this message if I do it like you said:\n\n\"Unable to start programm\n'C:\\Users\\...\\SimpleROHook-master\\Debug-jRO\\Injection.dll'.\"","timestamp":"2014-08-04T21:12:44+00:00","score":1},{"role":"answerer","user_id":"anon_2aa656ddedea1dcd","comment_id":"cjhdfp2","kind":"comment","text":"Ah, it seems it produces a 'dynamic link library' rather than a runnable program: these are used to provide functionality to other programs. I'm not sure how you're supposed to use the resultant DLL however, as I can't understand what it's purpose is but you'll basically need to use it with another program.\n\nNow you've compiled it (F5 does that) that DLL is the resultant binary, basically the thing you originally asked for.","timestamp":"2014-08-05T08:06:26+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_06d89de23d2b8ae8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2aa656ddedea1dcd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cjgvl4q","thanks_reply_id":"cjgwoo5","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_b332f6c7dcdd2fd3","answerer_user_id":"anon_d7051439ea9d9ff3","subreddit":"programming","timestamp":"2014-08-15T16:53:19+00:00","post_id":"2dnbu9","question":"Need help beta-testing a Bitcoin crowdfunding site. Help much appreciated.","preferred_answer":"You won't get any takers here. Try the bitcoin subs","full_conversation":[{"role":"OP","user_id":"anon_b332f6c7dcdd2fd3","comment_id":"2dnbu9","kind":"post","text":"Need help beta-testing a Bitcoin crowdfunding site. Help much appreciated.","timestamp":"2014-08-15T16:53:19+00:00","score":0},{"role":"answerer","user_id":"anon_d7051439ea9d9ff3","comment_id":"cjr7q3y","kind":"comment","text":"You won't get any takers here. Try the bitcoin subs","timestamp":"2014-08-15T18:23:51+00:00","score":1},{"role":"OP","user_id":"anon_b332f6c7dcdd2fd3","comment_id":"cjr86sg","kind":"comment","text":"Thanks. On there too, and some /r/beta testing ones. Anywhere else I should post?","timestamp":"2014-08-15T18:37:26+00:00","score":0},{"role":"answerer","user_id":"anon_d7051439ea9d9ff3","comment_id":"cjr9rcn","kind":"comment","text":"I don't really know, I just know the bitcoin sub is usually pretty cheerful so you may get some there","timestamp":"2014-08-15T19:23:40+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b332f6c7dcdd2fd3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d7051439ea9d9ff3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cjr7q3y","thanks_reply_id":"cjr86sg","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_3085490eb3e9d423","answerer_user_id":"anon_55591700b38bdac9","subreddit":"programming","timestamp":"2014-10-22T12:17:39+00:00","post_id":"2jzibr","question":"Yet another data-structure-based idea for open source library. Will people use it?","preferred_answer":"Instead of using a random priority for each entry, you take the hash of each entry and use that as a priority. That way you get deterministic priorities and a single unique treap for a set of elements. \n\nSee also \"Confluently Persistent Sets and Maps\" : http://arxiv.org/pdf/1301.3388.pdf","full_conversation":[{"role":"OP","user_id":"anon_3085490eb3e9d423","comment_id":"2jzibr","kind":"post","text":"Yet another data-structure-based idea for open source library. Will people use it?","timestamp":"2014-10-22T12:17:39+00:00","score":1},{"role":"answerer","user_id":"anon_55591700b38bdac9","comment_id":"clgv2gx","kind":"comment","text":"Instead of using a random priority for each entry, you take the hash of each entry and use that as a priority. That way you get deterministic priorities and a single unique treap for a set of elements. \n\nSee also \"Confluently Persistent Sets and Maps\" : http://arxiv.org/pdf/1301.3388.pdf","timestamp":"2014-10-22T20:00:11+00:00","score":2},{"role":"OP","user_id":"anon_3085490eb3e9d423","comment_id":"clgw4ac","kind":"comment","text":"Thank you. But it may be dangerous to use such approach in production, isn't it? Because [even though it probably will be very hard in practice] we give a chance to attacker completely disbalance our treap inserting \"right\" data.","timestamp":"2014-10-22T20:29:45+00:00","score":1},{"role":"answerer","user_id":"anon_55591700b38bdac9","comment_id":"clgwy85","kind":"comment","text":"Good point. Cryptographic hashes may be used to counter such attacks.\n\nI've developed another solution that doesn't require cryptographic hashes. \nIf you want we can discuss the details over email.","timestamp":"2014-10-22T20:52:38+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3085490eb3e9d423","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_55591700b38bdac9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"clgv2gx","thanks_reply_id":"clgw4ac","post_score":1,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_e0c54bf575384ff2","answerer_user_id":"anon_8e4024fbe6cb75ec","subreddit":"programming","timestamp":"2014-10-30T10:25:17+00:00","post_id":"2krpdv","question":"How to search for an object in a Javascript array, and fast!","preferred_answer":"This is a good post and it deals directly with a very important concept largely lost on the JS programming community. However, your post simply did not go far enough to really hammer home the actual value of creating data structures that are optimized for your actual access patterns. I would encourage you to edit the post to try to make this more apparent. \n\nTypically, you are going to want to maintain additional indices when you have access patterns that search very often for certain values. \n\nSome of the posts in this thread are confused about WHY you would simply not use a hash map in this case. You could have addressed this inevitable complaint by pointing out that many objects will have the SAME value for a given property. The hashmap is thusly useless as it depends on key-uniqueness. \n\nThis could all be illustrated by providing a hypothetical application-specific need and then the associated data transform(s) that would aid in improving its performance.\n\nMany times, posts like these are well-intentioned but suffer from the author not refining their idea into a consumable enough piece of information that their target audience actually hears their message. \n\nI hope this is helpful and that you will post an edit with some modifications to the original article. I do know exactly what point you are trying to make and it's absolutely a point worth making.","full_conversation":[{"role":"OP","user_id":"anon_e0c54bf575384ff2","comment_id":"2krpdv","kind":"post","text":"How to search for an object in a Javascript array, and fast!","timestamp":"2014-10-30T10:25:17+00:00","score":0},{"role":"answerer","user_id":"anon_8e4024fbe6cb75ec","comment_id":"clohgar","kind":"comment","text":"This is a good post and it deals directly with a very important concept largely lost on the JS programming community. However, your post simply did not go far enough to really hammer home the actual value of creating data structures that are optimized for your actual access patterns. I would encourage you to edit the post to try to make this more apparent. \n\nTypically, you are going to want to maintain additional indices when you have access patterns that search very often for certain values. \n\nSome of the posts in this thread are confused about WHY you would simply not use a hash map in this case. You could have addressed this inevitable complaint by pointing out that many objects will have the SAME value for a given property. The hashmap is thusly useless as it depends on key-uniqueness. \n\nThis could all be illustrated by providing a hypothetical application-specific need and then the associated data transform(s) that would aid in improving its performance.\n\nMany times, posts like these are well-intentioned but suffer from the author not refining their idea into a consumable enough piece of information that their target audience actually hears their message. \n\nI hope this is helpful and that you will post an edit with some modifications to the original article. I do know exactly what point you are trying to make and it's absolutely a point worth making.","timestamp":"2014-10-30T19:55:50+00:00","score":1},{"role":"OP","user_id":"anon_e0c54bf575384ff2","comment_id":"clp0kez","kind":"comment","text":"Thanks for the feedback. I appreciate it. Always good to get some constructive criticism. I'll work on making the fundamental issue(s), and the problems being solved clearer.","timestamp":"2014-10-31T08:41:34+00:00","score":1},{"role":"answerer","user_id":"anon_8e4024fbe6cb75ec","comment_id":"clpclak","kind":"comment","text":"Also I strongly suggest creating a JSperf example demonstrating the actual performance improvements one can achieve. This is pretty simple to do and it'll help you make a more convincing point in the post.","timestamp":"2014-10-31T17:59:56+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e0c54bf575384ff2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8e4024fbe6cb75ec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"clohgar","thanks_reply_id":"clp0kez","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_c37b1805180c3229","answerer_user_id":"anon_db4c30f46b853d34","subreddit":"programming","timestamp":"2014-11-18T17:26:07+00:00","post_id":"2mojat","question":"I've made a spaceship to explore npm. What do you think?","preferred_answer":"That is seriously fucking cool. It could use some coloring for packages based on the amount of dependencies they have for neat visual effect.\n\nAlso, if you can get it to work, it would be cool to see only the dependencies and dependants when clicking a specific package (maybe by tying it into the search?)\n\nCan you do one for composer too?","full_conversation":[{"role":"OP","user_id":"anon_c37b1805180c3229","comment_id":"2mojat","kind":"post","text":"I've made a spaceship to explore npm. What do you think?","timestamp":"2014-11-18T17:26:07+00:00","score":73},{"role":"answerer","user_id":"anon_db4c30f46b853d34","comment_id":"cm68q4g","kind":"comment","text":"That is seriously fucking cool. It could use some coloring for packages based on the amount of dependencies they have for neat visual effect.\n\nAlso, if you can get it to work, it would be cool to see only the dependencies and dependants when clicking a specific package (maybe by tying it into the search?)\n\nCan you do one for composer too?","timestamp":"2014-11-18T19:50:09+00:00","score":5},{"role":"OP","user_id":"anon_c37b1805180c3229","comment_id":"cm6su0w","kind":"comment","text":"Thank you!\n\n> Also, if you can get it to work, it would be cool to see only the dependencies and dependants when clicking a specific package\n\nYou can click on a number on the bottom left (dependents/dependencies) to show only those subgraphs. Or did you mean something different?\n\n> Can you do one for composer too?\n\nI never heard of composer. Do they have API to fetch all packages and their dependencies?","timestamp":"2014-11-19T07:29:43+00:00","score":1},{"role":"answerer","user_id":"anon_db4c30f46b853d34","comment_id":"cm6te5c","kind":"comment","text":"You can click on a number on the bottom left (dependents/dependencies) to show only those subgraphs. Or did you mean something different? >\nNo, more visually, when you're interacting with the graph (like a doubleclick or something). Would be cool if the rest just faded out.\n\n> I never heard of composer. Do they have API to fetch all packages and their dependencies?\n\nComposer is PHP's NPM.\nNot certain if there's a one-fetch-for-all call, but you can grab package lists from [here](https://packagist.org/explore/) and there's an api indeed","timestamp":"2014-11-19T08:09:06+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c37b1805180c3229","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_db4c30f46b853d34","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cm68q4g","thanks_reply_id":"cm6su0w","post_score":73,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_85b5ed9526ca2cb8","answerer_user_id":"anon_ab38ab6b40a3c1f9","subreddit":"programming","timestamp":"2014-12-16T23:24:52+00:00","post_id":"2pipz5","question":"Scroll down to the video at the bottom of the page. How did they do this black bar below the video?","preferred_answer":"Are you using Google Chrome? If you right click on the bar and click \"Inspect Element\", you can view the HTML code.\n\nIt looks to me like it's a
that's filled-in. It's added to the page by some JavaScript.\n\nI hope this helps!","full_conversation":[{"role":"OP","user_id":"anon_85b5ed9526ca2cb8","comment_id":"2pipz5","kind":"post","text":"Scroll down to the video at the bottom of the page. How did they do this black bar below the video?","timestamp":"2014-12-16T23:24:52+00:00","score":0},{"role":"answerer","user_id":"anon_ab38ab6b40a3c1f9","comment_id":"cmx1yb6","kind":"comment","text":"Are you using Google Chrome? If you right click on the bar and click \"Inspect Element\", you can view the HTML code.\n\nIt looks to me like it's a
that's filled-in. It's added to the page by some JavaScript.\n\nI hope this helps!","timestamp":"2014-12-16T23:32:59+00:00","score":2},{"role":"OP","user_id":"anon_85b5ed9526ca2cb8","comment_id":"cmx28lk","kind":"comment","text":"Thank you! But do you have any ideia how they are able to show the closed captions there AND synced?","timestamp":"2014-12-16T23:42:15+00:00","score":1},{"role":"answerer","user_id":"anon_ab38ab6b40a3c1f9","comment_id":"cmx2rib","kind":"comment","text":"It looks like it's code by [3PlayMedia](http://www.3playmedia.com/). They have tags for each word in the caption. I would assume that their code uses YouTube's API to determine the current time in the video, and then loads the words in the caption from that time.\n\n[This](http://p3.3playmedia.com/p3.js) looks like it might be the bulk of the code. I'm not sure if reverse engineering it would violate the terms in the top comments.","timestamp":"2014-12-16T23:59:15+00:00","score":1},{"role":"OP","user_id":"anon_85b5ed9526ca2cb8","comment_id":"cmx4z6y","kind":"comment","text":"Got it, thanks! Well, I think it would be awesome if there was something like this open source. Would be a giant step for including us deaf and hard of hearing.","timestamp":"2014-12-17T01:12:58+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_85b5ed9526ca2cb8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ab38ab6b40a3c1f9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cmx1yb6","thanks_reply_id":"cmx28lk","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_ddff7ab23e0deeb7","answerer_user_id":"anon_ca7112ad789fcdf8","subreddit":"programming","timestamp":"2014-12-31T01:53:53+00:00","post_id":"2qvk1h","question":"I'm the developer behind Lily, a statically-typed alternative to PHP. Can I get some feedback, please?","preferred_answer":"> The ideal purpose is that it can be used in places where PHP is. That is, you define a single file with a .ly extension, and the server reads that file and serves out content.\n\nI sincerely hope you are not copying PHP's number one security flaw, which is that it will happily execute a .php file that does not have execute permissions set.","full_conversation":[{"role":"OP","user_id":"anon_ddff7ab23e0deeb7","comment_id":"2qvk1h","kind":"post","text":"I'm the developer behind Lily, a statically-typed alternative to PHP. Can I get some feedback, please?","timestamp":"2014-12-31T01:53:53+00:00","score":76},{"role":"answerer","user_id":"anon_ca7112ad789fcdf8","comment_id":"cnab0on","kind":"comment","text":"> The ideal purpose is that it can be used in places where PHP is. That is, you define a single file with a .ly extension, and the server reads that file and serves out content.\n\nI sincerely hope you are not copying PHP's number one security flaw, which is that it will happily execute a .php file that does not have execute permissions set.","timestamp":"2014-12-31T14:07:14+00:00","score":3},{"role":"OP","user_id":"anon_ddff7ab23e0deeb7","comment_id":"cnazqor","kind":"comment","text":"Currently, yes. I've entered in a bug so I'll remember to fix that later. Thanks.","timestamp":"2015-01-01T05:32:01+00:00","score":1},{"role":"answerer","user_id":"anon_ca7112ad789fcdf8","comment_id":"cnb3k8m","kind":"comment","text":"Just to see what the problem is, if you make a script that allows you to upload files and stores them somewhere close to where the script lives, somebody may start uploading .ly files. Or whatever else the developer has configured it to execute, which in the case of PHP is apparently quite a scarily huge list by default, making blacklisting extensions quite ineffective.","timestamp":"2015-01-01T09:51:08+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ddff7ab23e0deeb7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ca7112ad789fcdf8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cnab0on","thanks_reply_id":"cnazqor","post_score":76,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_9f264cc03f45b00a","answerer_user_id":"anon_885750f165bac35a","subreddit":"programming","timestamp":"2015-01-07T04:14:14+00:00","post_id":"2rlef7","question":"How big a deal is Rust, really?","preferred_answer":"Rust core team member here.\n\n> What makes Rust special?\n\nThe core thing that makes Rust special is memory safety without garbage collection. It accomplishes this through \"ownership.\" Since you do C++, you're probably already aware of the idea, but Rust actually understands ownership at the language level. The simple example I like to use is\n\n #include\n #include\n #include\n\n int main() {\n std::vector v;\n\n v.push_back(\"Hello\");\n\n std::string& x = v[0];\n\n v.push_back(\"world\");\n\n std::cout << x;\n }\n\nIf you've [read the documentation for `push_back`](http://en.cppreference.com/w/cpp/container/vector/push_back), you know that\n\n> If the new size() is greater than capacity() then all iterators and references (including the past-the-end iterator) are invalidated.\n\nSo even though this code compiles cleanly with `-Wall -Werror`, we get a segfault. Probably! At least, on my machine. Undefined behavior and all that.\n\nHere's the same program in Rust:\n\n fn main() {\n let mut v = vec![];\n\n v.push(\"Hello\");\n\n let x = &v[0];\n\n v.push(\"world\");\n\n println!(\"{}\", x);\n }\n\nWhen you compile this, you get an error:\n\n main.rs:8:6: 8:7 error: cannot borrow `v` as mutable because it is also borrowed as immutable\n main.rs:8 v.push(\"world\");\n ^\n main.rs:6:15: 6:16 note: previous borrow of `v` occurs here; the immutable borrow prevents subsequent moves or mutable borrows of `v` until the borrow ends\n main.rs:6 let x = &v[0];\n ^\n main.rs:11:3: 11:3 note: previous borrow ends here\n main.rs:1 fn main() {\n ...\n main.rs:11 }\n ^\n error: aborting due to previous error\n\nRust understands that the reference `x` into the vector would become invalidated, and so doesn't let your code compile. Win!\n\nSo, as a semi-TL;DR, Rust is just as low-level as C++, but eliminates a large class of errors upfront. No iterator invalidation, no segfaults, no data races. This comment is already pretty long, but there's a ton of other neat stuff, like move semantics by default, data races caught at compile time, and Cargo, our build / dependency management tooling.\n\n> I'd like to know if we should investigate it further.\n\nWe're about to release a 1.0.0-alpha on Friday, with a real 1.0 release coming in the next 12-18 weeks afterward. So, you may want to wait until then. Or maybe not. Depends!\n\nI'd be happy to answer any more specific questions you have.","full_conversation":[{"role":"OP","user_id":"anon_9f264cc03f45b00a","comment_id":"2rlef7","kind":"post","text":"How big a deal is Rust, really?","timestamp":"2015-01-07T04:14:14+00:00","score":8},{"role":"answerer","user_id":"anon_885750f165bac35a","comment_id":"cngzjwk","kind":"comment","text":"Rust core team member here.\n\n> What makes Rust special?\n\nThe core thing that makes Rust special is memory safety without garbage collection. It accomplishes this through \"ownership.\" Since you do C++, you're probably already aware of the idea, but Rust actually understands ownership at the language level. The simple example I like to use is\n\n #include\n #include\n #include\n\n int main() {\n std::vector v;\n\n v.push_back(\"Hello\");\n\n std::string& x = v[0];\n\n v.push_back(\"world\");\n\n std::cout << x;\n }\n\nIf you've [read the documentation for `push_back`](http://en.cppreference.com/w/cpp/container/vector/push_back), you know that\n\n> If the new size() is greater than capacity() then all iterators and references (including the past-the-end iterator) are invalidated.\n\nSo even though this code compiles cleanly with `-Wall -Werror`, we get a segfault. Probably! At least, on my machine. Undefined behavior and all that.\n\nHere's the same program in Rust:\n\n fn main() {\n let mut v = vec![];\n\n v.push(\"Hello\");\n\n let x = &v[0];\n\n v.push(\"world\");\n\n println!(\"{}\", x);\n }\n\nWhen you compile this, you get an error:\n\n main.rs:8:6: 8:7 error: cannot borrow `v` as mutable because it is also borrowed as immutable\n main.rs:8 v.push(\"world\");\n ^\n main.rs:6:15: 6:16 note: previous borrow of `v` occurs here; the immutable borrow prevents subsequent moves or mutable borrows of `v` until the borrow ends\n main.rs:6 let x = &v[0];\n ^\n main.rs:11:3: 11:3 note: previous borrow ends here\n main.rs:1 fn main() {\n ...\n main.rs:11 }\n ^\n error: aborting due to previous error\n\nRust understands that the reference `x` into the vector would become invalidated, and so doesn't let your code compile. Win!\n\nSo, as a semi-TL;DR, Rust is just as low-level as C++, but eliminates a large class of errors upfront. No iterator invalidation, no segfaults, no data races. This comment is already pretty long, but there's a ton of other neat stuff, like move semantics by default, data races caught at compile time, and Cargo, our build / dependency management tooling.\n\n> I'd like to know if we should investigate it further.\n\nWe're about to release a 1.0.0-alpha on Friday, with a real 1.0 release coming in the next 12-18 weeks afterward. So, you may want to wait until then. Or maybe not. Depends!\n\nI'd be happy to answer any more specific questions you have.","timestamp":"2015-01-07T05:03:18+00:00","score":104},{"role":"OP","user_id":"anon_9f264cc03f45b00a","comment_id":"cnh0jav","kind":"comment","text":"Eh... I'll wait for someone more knowledgeable to chime in :P Thanks!","timestamp":"2015-01-07T05:41:14+00:00","score":32},{"role":"answerer","user_id":"anon_885750f165bac35a","comment_id":"cnh0z6e","kind":"comment","text":"Any time. :)","timestamp":"2015-01-07T05:59:29+00:00","score":23}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9f264cc03f45b00a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_885750f165bac35a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cngzjwk","thanks_reply_id":"cnh0jav","post_score":8,"answer_score":104,"preferred_answer_is_top_level":false}} {"user_id":"anon_f08f8d3dd38daea2","answerer_user_id":"anon_a4289c4d8107d63c","subreddit":"programming","timestamp":"2015-01-20T18:14:59+00:00","post_id":"2t2nqk","question":"I made a little game in C# using Visual Studio called Ivo the Mage. I'm just a beginner, what are your opinions? Also, if anyone else here creates 2D games... What have you created and what did you use to make it?","preferred_answer":"The game looks extremely cute and i really like the voice of the mentor.\n\nSeems like the logic is similiar to space invaders but you added the diferent type of magic.\n\nWhat is the differences on the magic is it resistance based on the color of the dragon ??\n\nAlso you might want to post this to gamedev sat screenshot thread.","full_conversation":[{"role":"OP","user_id":"anon_f08f8d3dd38daea2","comment_id":"2t2nqk","kind":"post","text":"I made a little game in C# using Visual Studio called Ivo the Mage. I'm just a beginner, what are your opinions? Also, if anyone else here creates 2D games... What have you created and what did you use to make it?","timestamp":"2015-01-20T18:14:59+00:00","score":83},{"role":"answerer","user_id":"anon_a4289c4d8107d63c","comment_id":"cnv4t0v","kind":"comment","text":"The game looks extremely cute and i really like the voice of the mentor.\n\nSeems like the logic is similiar to space invaders but you added the diferent type of magic.\n\nWhat is the differences on the magic is it resistance based on the color of the dragon ??\n\nAlso you might want to post this to gamedev sat screenshot thread.","timestamp":"2015-01-20T18:23:31+00:00","score":7},{"role":"OP","user_id":"anon_f08f8d3dd38daea2","comment_id":"cnv4xvw","kind":"comment","text":"Thank you :). Yes it was based around the Space Invaders mechanics. I was going to add more elements to the game but I was time restricted in this version as I had to submit it as College work. It works like Rock - Paper - Scissors. Ice freezes Water, Water Extinguishes Fire, Fire Melts Ice. I know it's not the most creative idea but I had a lot of fun :).","timestamp":"2015-01-20T18:27:06+00:00","score":18},{"role":"answerer","user_id":"anon_a4289c4d8107d63c","comment_id":"cnv60oq","kind":"comment","text":"Don't discredit yourself finishing a game like yours is not an easy thing to do and having the courage to post it and get critiqued is also not and easy thing.","timestamp":"2015-01-20T18:55:55+00:00","score":20}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f08f8d3dd38daea2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a4289c4d8107d63c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cnv4t0v","thanks_reply_id":"cnv4xvw","post_score":83,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_79f0cc32969dbb6a","answerer_user_id":"anon_f17a4dd005ef5a2f","subreddit":"programming","timestamp":"2015-01-24T19:35:30+00:00","post_id":"2tjfiy","question":"Why I write horrible code. (And so can you!)","preferred_answer":">> No need to track bugs in a database, because there are no bugs.\n\nNice article, but I think this is unrealistic for pretty much any big project. The best software companies with brilliant minds make software with bugs galore. ... Maybe in some future utopia in which we all switch to Haskell.","full_conversation":[{"role":"OP","user_id":"anon_79f0cc32969dbb6a","comment_id":"2tjfiy","kind":"post","text":"Why I write horrible code. (And so can you!)","timestamp":"2015-01-24T19:35:30+00:00","score":134},{"role":"answerer","user_id":"anon_f17a4dd005ef5a2f","comment_id":"cnzvfsc","kind":"comment","text":">> No need to track bugs in a database, because there are no bugs.\n\nNice article, but I think this is unrealistic for pretty much any big project. The best software companies with brilliant minds make software with bugs galore. ... Maybe in some future utopia in which we all switch to Haskell.","timestamp":"2015-01-25T02:08:27+00:00","score":6},{"role":"OP","user_id":"anon_79f0cc32969dbb6a","comment_id":"co03m2h","kind":"comment","text":"Thanks.\n\nYes, it is possible to write software with so few bugs that you don't need a database for them. How to do it is well understood. It is repeatable. It is normal. You can do it, too. Utopia not required.","timestamp":"2015-01-25T08:00:58+00:00","score":1},{"role":"answerer","user_id":"anon_f17a4dd005ef5a2f","comment_id":"co08nxp","kind":"comment","text":"Well, I seriously hope that you're working on such projects. As far as I can tell, if what you were saying is true, we would no longer need to have debates on, e.g., whether unit tests are worthwhile, or whether we should be using an interface or inheritance for a given scenario.\n\nBut the real proof that you're wrong is that the A1 software companies make stuff that needs to be updated ALL THE TIME to fix bugs. How come my windows has bugs? My OS X? My iTunes? \n\nMaybe you've just never worked on a big project? What I would agree with is that you make bug fixing MUCH easier by having a nice codebase.","timestamp":"2015-01-25T14:30:10+00:00","score":3},{"role":"OP","user_id":"anon_79f0cc32969dbb6a","comment_id":"co0f4q1","kind":"comment","text":"The big companies change really slowly. Their past success makes them resistant to change, because it might risk their winning formula.\n\nStill, in each of the huge software companies, there are pockets of this sort of thing.","timestamp":"2015-01-25T18:36:53+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_79f0cc32969dbb6a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f17a4dd005ef5a2f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cnzvfsc","thanks_reply_id":"co03m2h","post_score":134,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_5a1794bdc9facf8a","answerer_user_id":"anon_895e84c91a2f025a","subreddit":"programming","timestamp":"2015-01-28T23:21:30+00:00","post_id":"2u0pew","question":"What do you experienced programmers (w/ degrees/non degrees/self taught) think about these hack schools and programming bootcamps? Do you believe its worth it for an aspiring programmer with a degree in Front end/web-design to go down this road, to learn programming?","preferred_answer":"Usually the cost is ok if you turn out to be good . More then anything they tend to be good contacts for finding work . If you turn out to be not good then it's a money sink . I found that if you wanted to learn to program they are bad . If you wanted to be a trained monkey for a programmer they are good . Generally they teach you bare basics then flood you with training on their tool set . Again good for money and bad for skill . If your a designer though this might not be a bad choice its a good way to have a subclass skill . If you want to be a real programmer though the best thing in the entire universe is to take a job working with a good programmer doing CSS and templates . You will get paid to learn and you have all the benefits of trial by fire . Some of the best programmers I have seen are designers who got flung into programming work ( usually unwillingly ) . \n\nI would suggest before going down this road checking out local Python meetup groups . Python groups tend to be the most technically sound . Even if you don't want to know Python they will get you set up with some good compscience books .","full_conversation":[{"role":"OP","user_id":"anon_5a1794bdc9facf8a","comment_id":"2u0pew","kind":"post","text":"What do you experienced programmers (w/ degrees/non degrees/self taught) think about these hack schools and programming bootcamps? Do you believe its worth it for an aspiring programmer with a degree in Front end/web-design to go down this road, to learn programming?","timestamp":"2015-01-28T23:21:30+00:00","score":5},{"role":"answerer","user_id":"anon_895e84c91a2f025a","comment_id":"co425gf","kind":"comment","text":"Usually the cost is ok if you turn out to be good . More then anything they tend to be good contacts for finding work . If you turn out to be not good then it's a money sink . I found that if you wanted to learn to program they are bad . If you wanted to be a trained monkey for a programmer they are good . Generally they teach you bare basics then flood you with training on their tool set . Again good for money and bad for skill . If your a designer though this might not be a bad choice its a good way to have a subclass skill . If you want to be a real programmer though the best thing in the entire universe is to take a job working with a good programmer doing CSS and templates . You will get paid to learn and you have all the benefits of trial by fire . Some of the best programmers I have seen are designers who got flung into programming work ( usually unwillingly ) . \n\nI would suggest before going down this road checking out local Python meetup groups . Python groups tend to be the most technically sound . Even if you don't want to know Python they will get you set up with some good compscience books .","timestamp":"2015-01-28T23:34:03+00:00","score":3},{"role":"OP","user_id":"anon_5a1794bdc9facf8a","comment_id":"co42n57","kind":"comment","text":"Thanks for this! Is there a website that posts about local python meet up groups?","timestamp":"2015-01-28T23:48:05+00:00","score":1},{"role":"answerer","user_id":"anon_895e84c91a2f025a","comment_id":"co45msu","kind":"comment","text":"meetup is a good place to check usually . What state area are you in ?","timestamp":"2015-01-29T01:15:25+00:00","score":1},{"role":"OP","user_id":"anon_5a1794bdc9facf8a","comment_id":"co46e99","kind":"comment","text":"Im in NJ.","timestamp":"2015-01-29T01:38:35+00:00","score":1},{"role":"answerer","user_id":"anon_895e84c91a2f025a","comment_id":"co4cu6w","kind":"comment","text":"Check out http://lispnyc.org and http://www.alleynyc.com for events \n\nhttps://www.hackerschool.com Highly recommended \nAnd https://www.creativecircle.com when you learn some CSS\n ; )","timestamp":"2015-01-29T04:59:00+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_5a1794bdc9facf8a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_895e84c91a2f025a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"co425gf","thanks_reply_id":"co42n57","post_score":5,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_4e401c48c2f2716a","answerer_user_id":"anon_c9216835a61abc1b","subreddit":"programming","timestamp":"2015-02-03T02:14:27+00:00","post_id":"2ul8xk","question":"How to reduce time complexity?","preferred_answer":"You might have a larger audience here, but a much higher percentage of people would be willing to help with these kind of problems over at /r/algorithms \n \nThat said:\n \n String searchString = \"Hello this is a test to see if this works\";\n String key = \"key string\";\n\t\t\n Set keySet = new HashSet<>();\n for (char c : key.toCharArray())\n keySet.add(c);\n\t\t\n for (int i = 0; i < searchString.length(); i++) { // linear\n char c = searchString.charAt(i);\n if (keySet.contains(c)) // constant\n System.out.println(\"Occurance of \" + c + \" at \" + i);\n } \n \nAh, ninja'd a bit.","full_conversation":[{"role":"OP","user_id":"anon_4e401c48c2f2716a","comment_id":"2ul8xk","kind":"post","text":"How to reduce time complexity?","timestamp":"2015-02-03T02:14:27+00:00","score":1},{"role":"answerer","user_id":"anon_c9216835a61abc1b","comment_id":"co9eqz4","kind":"comment","text":"You might have a larger audience here, but a much higher percentage of people would be willing to help with these kind of problems over at /r/algorithms \n \nThat said:\n \n String searchString = \"Hello this is a test to see if this works\";\n String key = \"key string\";\n\t\t\n Set keySet = new HashSet<>();\n for (char c : key.toCharArray())\n keySet.add(c);\n\t\t\n for (int i = 0; i < searchString.length(); i++) { // linear\n char c = searchString.charAt(i);\n if (keySet.contains(c)) // constant\n System.out.println(\"Occurance of \" + c + \" at \" + i);\n } \n \nAh, ninja'd a bit.","timestamp":"2015-02-03T02:43:05+00:00","score":2},{"role":"OP","user_id":"anon_4e401c48c2f2716a","comment_id":"co9ffoe","kind":"comment","text":"yo wtf lol. I'm pretty sure this is exactly what I needed I think. Although I'm afraid that perhaps keySet.contains(c) might be similar to a binarySearch and that is a log function.","timestamp":"2015-02-03T03:03:47+00:00","score":1},{"role":"answerer","user_id":"anon_c9216835a61abc1b","comment_id":"co9fonr","kind":"comment","text":"[Nope:] (http://docs.oracle.com/javase/7/docs/api/java/util/HashSet.html) \n \n>This class offers constant time performance for the basic operations (add, remove, contains and size) \n \nAnd really, if the strings are limited to ASCII the set could be a boolean[128] or such, indexed (\"hashed\") by the char integer value. If it needs speed, that's what I would do. Chances are it's premature optimization though.","timestamp":"2015-02-03T03:11:08+00:00","score":3},{"role":"OP","user_id":"anon_4e401c48c2f2716a","comment_id":"co9g8qh","kind":"comment","text":"So for the code you posted is big O, O(searchString.length + key.length()) or O(256 + searchString.length() + key.length())?","timestamp":"2015-02-03T03:27:17+00:00","score":1},{"role":"answerer","user_id":"anon_c9216835a61abc1b","comment_id":"co9gihg","kind":"comment","text":"If I'm not mistaken, it's O(kn) where n is the length of the searched string, and k is the constant representing the HashSet lookup, charAt, etc. This then reduces to O(n) because the constant coefficient doesn't matter to big oh. \n \nEDIT: technically the code as a whole is indeed O(n + m) if you count the construction of the keySet.","timestamp":"2015-02-03T03:35:13+00:00","score":1},{"role":"OP","user_id":"anon_4e401c48c2f2716a","comment_id":"co9grw0","kind":"comment","text":"Apparently someone below agrees with you that a constant does not count. I am not a CS major, I am definitely going to read up on Big Oh, it sounds like a really interesting topic.","timestamp":"2015-02-03T03:43:04+00:00","score":1},{"role":"answerer","user_id":"anon_c9216835a61abc1b","comment_id":"co9gxnt","kind":"comment","text":"http://en.wikipedia.org/wiki/Big_O_notation \n \nAlthough big oh is what you hear about most, the actual topic it is a part of is what you should google: [Time Complexity](http://en.wikipedia.org/wiki/Time_complexity) \nVery related are other complexities, such as space. (memory usage)","timestamp":"2015-02-03T03:47:39+00:00","score":1},{"role":"OP","user_id":"anon_4e401c48c2f2716a","comment_id":"cob40dz","kind":"comment","text":"Yes I see that. Thank you for all your help, I have learned a lot from what you have said and doing research.","timestamp":"2015-02-04T18:17:12+00:00","score":1}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_4e401c48c2f2716a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c9216835a61abc1b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"co9eqz4","thanks_reply_id":"co9ffoe","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_562269c3a69f9717","answerer_user_id":"anon_d6b32aeb7fa465e8","subreddit":"programming","timestamp":"2015-02-12T23:43:10+00:00","post_id":"2vphgn","question":"What Technology Should My Startup Use?","preferred_answer":"I would say it's very much out of date. Today, there's a standard [Ring](https://github.com/ring-clojure)/[Compojure](https://github.com/weavejester/compojure) stack that's very actively developed and maintiained.\n\nI maintain [Luminus](http://www.luminusweb.net/) micro-framework that's similar to Flask/Sinatra. There are a couple of web development books out now and lots of other resources on the topic.\n\nClojureScript has been rapidly growing in popularity recently. [A number of companies](https://github.com/clojure/clojurescript/wiki/Companies-Using-ClojureScript) started it last year. I've switched entirely to ClojureScript for my front-end development now.\n\nMany Clojure libraries, such as [validation](https://github.com/leonardoborges/bouncer) and [markdown parsing](https://clojars.org/markdown-clj)cross-compile to ClojureScript, so you can use the same language on the client and the server as well as share code between them.\n\n[Om](https://github.com/omcljs/om) and [Reagent](http://reagent-project.github.io/) are two notable ClojureScript libraries based on React and offer many features not found in React itself.\n\n[Figwheel](https://github.com/bhauman/lein-figwheel) allows live code reloading in the browser. Clojure community is very much web centric nowadays and provides a very smooth experience for developing web apps.","full_conversation":[{"role":"OP","user_id":"anon_562269c3a69f9717","comment_id":"2vphgn","kind":"post","text":"What Technology Should My Startup Use?","timestamp":"2015-02-12T23:43:10+00:00","score":11},{"role":"answerer","user_id":"anon_d6b32aeb7fa465e8","comment_id":"col89s7","kind":"comment","text":"I would say it's very much out of date. Today, there's a standard [Ring](https://github.com/ring-clojure)/[Compojure](https://github.com/weavejester/compojure) stack that's very actively developed and maintiained.\n\nI maintain [Luminus](http://www.luminusweb.net/) micro-framework that's similar to Flask/Sinatra. There are a couple of web development books out now and lots of other resources on the topic.\n\nClojureScript has been rapidly growing in popularity recently. [A number of companies](https://github.com/clojure/clojurescript/wiki/Companies-Using-ClojureScript) started it last year. I've switched entirely to ClojureScript for my front-end development now.\n\nMany Clojure libraries, such as [validation](https://github.com/leonardoborges/bouncer) and [markdown parsing](https://clojars.org/markdown-clj)cross-compile to ClojureScript, so you can use the same language on the client and the server as well as share code between them.\n\n[Om](https://github.com/omcljs/om) and [Reagent](http://reagent-project.github.io/) are two notable ClojureScript libraries based on React and offer many features not found in React itself.\n\n[Figwheel](https://github.com/bhauman/lein-figwheel) allows live code reloading in the browser. Clojure community is very much web centric nowadays and provides a very smooth experience for developing web apps.","timestamp":"2015-02-14T13:44:40+00:00","score":3},{"role":"OP","user_id":"anon_562269c3a69f9717","comment_id":"colaugk","kind":"comment","text":"Thank you, that was very instructive. I had no idea Clojure was moving in this direction.\n\nIf you don't mind me asking: what is the advantage in building a web application in Clojure(Script) rather than, say, PHP or NodeJS?","timestamp":"2015-02-14T15:57:21+00:00","score":1},{"role":"answerer","user_id":"anon_d6b32aeb7fa465e8","comment_id":"colde51","kind":"comment","text":"I think there are a number of advantages. The most obvious one in my opinion is the JVM. It's a very mature platform that has excellent performance, as well as a lot of tooling and libraries available for it. It's extremely unlikely that you'll run into something that hasn't been adequately solved already.\n\nClojure has a wide variety of development environments, you can use Emacs, Eclipse, IntelliJ, Vim, and Light Table. Clojure IDEs provide a lot of advanced features for refactoring and tracing code. For example, with Clojure you can use an actual debugger in the IDE. I also find that manipulating Clojure code is a lot easier than most languages with [structural editing](https://cursiveclojure.com/userguide/paredit.html).\n\nClojure also offers REPL driven development. The typical way to develop an application is to start it up in the REPL and connect the editor to it. Any changes I make in the source are reflected in the running application. This makes the feedback loop much tighter as you get immediate feedback when you do things. You don't have to restart the application to see the changes.\n\nClojure provides much better tooling and library management in my experience. [Leiningen](http://leiningen.org/) is a one stop shop for the entire project lifecycle needs. It manages dependencies and handles packaging. With its plugins you can use it to manage database migrations, deployment, and so on.\n\nFinally, I find that Clojure is a much better designed language than either PHP or JavaScript. It's very consistent and has very few gotchas. You have to learn a small number of simple concepts to become productive in it. The syntax is very simple and typically it's very easy to tell what the code is doing. Immutability is another big aspect of that, where it ensures that changes are inherently localized allowing you to safely reason about parts of the application in isolation.\n\nI wrote about why I find Clojure to be especially productive in detail [here](http://yogthos.net/posts/2013-08-18-Why-I-m-Productive-in-Clojure.html), and I wrote a primer to illustrate some key concepts and benefits [here](http://yogthos.github.io/ClojureDistilled.html).","timestamp":"2015-02-14T17:34:24+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_562269c3a69f9717","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d6b32aeb7fa465e8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"col89s7","thanks_reply_id":"colaugk","post_score":11,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_f269614afd466a92","answerer_user_id":"anon_acd0357d817e5eba","subreddit":"programming","timestamp":"2015-03-06T09:09:57+00:00","post_id":"2y4doh","question":"A magic online tool to one-button create App, really?","preferred_answer":"My sincere opinion: I fail to see how this *creates* an application.","full_conversation":[{"role":"OP","user_id":"anon_f269614afd466a92","comment_id":"2y4doh","kind":"post","text":"A magic online tool to one-button create App, really?","timestamp":"2015-03-06T09:09:57+00:00","score":0},{"role":"answerer","user_id":"anon_acd0357d817e5eba","comment_id":"cp64hvx","kind":"comment","text":"My sincere opinion: I fail to see how this *creates* an application.","timestamp":"2015-03-06T09:46:22+00:00","score":3},{"role":"OP","user_id":"anon_f269614afd466a92","comment_id":"cpdgfvl","kind":"comment","text":"thx for your opinion. It just needs u to upload two icons and one url, and type our app description, click the 'confirm' button, then this tool will generate a complete app for you:)","timestamp":"2015-03-13T07:04:40+00:00","score":1},{"role":"answerer","user_id":"anon_acd0357d817e5eba","comment_id":"cpdh6cg","kind":"comment","text":"You... do realize that the application *is at that URL*, and *has to be developed* there, right?","timestamp":"2015-03-13T07:57:01+00:00","score":1},{"role":"OP","user_id":"anon_f269614afd466a92","comment_id":"cpg7kua","kind":"comment","text":"Yeah, you're right, we do need to 'create' our app at 8miao.com, but after u created your app, you can download it by clicking the download link or scan the QR code.","timestamp":"2015-03-16T02:47:32+00:00","score":1},{"role":"answerer","user_id":"anon_acd0357d817e5eba","comment_id":"cpgg8z3","kind":"comment","text":"This is impressive. Let me put it another way.\n\nI have an awesome idea for a new Solitaire game. Does 8miao.com create it? Really? I just describe my idea for a Solitaire game and poof! I now have an application?\n\nOr do I, you know, *actually write it as a web application first*, and your magical gizmo packages it ;-)?","timestamp":"2015-03-16T10:59:58+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_f269614afd466a92","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_acd0357d817e5eba","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cp64hvx","thanks_reply_id":"cpdgfvl","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_1efe2957d9f279df","answerer_user_id":"anon_e02ede4ae22ae199","subreddit":"programming","timestamp":"2015-03-25T15:25:09+00:00","post_id":"309e0l","question":"Help Us with correction grammar on Landing Page","preferred_answer":"We are developing a Mobile application to help ensure fashionistas do not overpay while shopping by providing them a fashion goods sales catalog with discounts of more then 50%","full_conversation":[{"role":"OP","user_id":"anon_1efe2957d9f279df","comment_id":"309e0l","kind":"post","text":"Help Us with correction grammar on Landing Page","timestamp":"2015-03-25T15:25:09+00:00","score":0},{"role":"answerer","user_id":"anon_e02ede4ae22ae199","comment_id":"cpqanux","kind":"comment","text":"We are developing a Mobile application to help ensure fashionistas do not overpay while shopping by providing them a fashion goods sales catalog with discounts of more then 50%","timestamp":"2015-03-25T15:38:38+00:00","score":2},{"role":"OP","user_id":"anon_1efe2957d9f279df","comment_id":"cpqastf","kind":"comment","text":"Thank you.","timestamp":"2015-03-25T15:42:13+00:00","score":1},{"role":"answerer","user_id":"anon_e02ede4ae22ae199","comment_id":"cpqbvw0","kind":"comment","text":"Maybe not perfect grammar but the English is at least readable.","timestamp":"2015-03-25T16:09:49+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1efe2957d9f279df","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e02ede4ae22ae199","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cpqanux","thanks_reply_id":"cpqastf","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_140dd126ac35f79e","answerer_user_id":"anon_e29749300118ce0a","subreddit":"programming","timestamp":"2015-03-26T13:28:58+00:00","post_id":"30dc1m","question":"Is anyone interested in a ready-to-use offline StackOverflow/StackExchange copy? I'll set up a torrent if yes. If not, here's a link to the source data, (it takes 30 hours and 9 GB of RAM to import though).","preferred_answer":"I can seed it with my seedbox if you'd like.","full_conversation":[{"role":"OP","user_id":"anon_140dd126ac35f79e","comment_id":"30dc1m","kind":"post","text":"Is anyone interested in a ready-to-use offline StackOverflow/StackExchange copy? I'll set up a torrent if yes. If not, here's a link to the source data, (it takes 30 hours and 9 GB of RAM to import though).","timestamp":"2015-03-26T13:28:58+00:00","score":120},{"role":"answerer","user_id":"anon_e29749300118ce0a","comment_id":"cprpd3r","kind":"comment","text":"I can seed it with my seedbox if you'd like.","timestamp":"2015-03-26T19:29:28+00:00","score":2},{"role":"OP","user_id":"anon_140dd126ac35f79e","comment_id":"cprr3dv","kind":"comment","text":"Thank you! I think that's a great idea, since my upload (750 kB/s) and availability online are limited. I'll try to start an upload either with you or /u/LightShadow. I have to go offline very soon, but would I be able to start an upload to you in about 11ish hours?","timestamp":"2015-03-26T20:13:38+00:00","score":1},{"role":"answerer","user_id":"anon_e29749300118ce0a","comment_id":"cps8gv6","kind":"comment","text":"It's probably best to create a torrent and leave it up until a few people hit 100%.","timestamp":"2015-03-27T04:41:54+00:00","score":2},{"role":"OP","user_id":"anon_140dd126ac35f79e","comment_id":"cpsd2py","kind":"comment","text":"You're right, I'll PM you a link shortly.","timestamp":"2015-03-27T09:31:47+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_140dd126ac35f79e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e29749300118ce0a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cprpd3r","thanks_reply_id":"cprr3dv","post_score":120,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_fa40cb97f0098bbd","answerer_user_id":"anon_1a2056d0857c8adc","subreddit":"programming","timestamp":"2015-03-27T04:00:50+00:00","post_id":"30ggsp","question":"Could use some help with java code. Link is to project source zip.","preferred_answer":"You need to create the \"temp\" object within the loop, not outside.","full_conversation":[{"role":"OP","user_id":"anon_fa40cb97f0098bbd","comment_id":"30ggsp","kind":"post","text":"Could use some help with java code. Link is to project source zip.","timestamp":"2015-03-27T04:00:50+00:00","score":0},{"role":"answerer","user_id":"anon_1a2056d0857c8adc","comment_id":"cps7rk4","kind":"comment","text":"You need to create the \"temp\" object within the loop, not outside.","timestamp":"2015-03-27T04:14:18+00:00","score":1},{"role":"OP","user_id":"anon_fa40cb97f0098bbd","comment_id":"cps85qo","kind":"comment","text":"Holy mother of... I see exactly what the problem was thanks to what you suggested.\n\nThank you so much, that was plaguing me for literally hours on end. If I wasn't a broke college student, I'd gift you gold.\n\nEDIT: F*k it, food is overrated. You're getting Gold.","timestamp":"2015-03-27T04:29:21+00:00","score":0},{"role":"answerer","user_id":"anon_1a2056d0857c8adc","comment_id":"cps8jvp","kind":"comment","text":"Thanks for the gold!","timestamp":"2015-03-27T04:45:19+00:00","score":1},{"role":"OP","user_id":"anon_fa40cb97f0098bbd","comment_id":"cps9r5s","kind":"comment","text":"Thank you for saving me another few hours of madness.","timestamp":"2015-03-27T05:40:36+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_fa40cb97f0098bbd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1a2056d0857c8adc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cps7rk4","thanks_reply_id":"cps85qo","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_c4d72ed94003c6dc","answerer_user_id":"anon_3242f07e40603bb9","subreddit":"programming","timestamp":"2015-03-28T12:21:20+00:00","post_id":"30ldkq","question":"Three.js - Does anybody know how to check if object is behind a sphere (not visible)?","preferred_answer":"It's a complicated problem to solve efficiently.\n\nOne simple but inefficient way you can do it is by rendering your geometry to an offscreen buffer, with your occluders being one solid color and the object you are seeking being a different one, and then looking at the resulting bitmap to see if the object is occluded. \n\n\nEDIT: after reading this specific case on your stackoverflow post..\n\nFor this specific case it sounds a lot simpler, since a globe is a convex shape. Simply calculate the dot product of the triangle the pin resides on and the vector between the camera and the triangle's position. If it's less than zero, then the triangle is on the hidden side of the sphere. If it's greater than zero, then the triangle is on the visible side of the sphere. You're basically doing manual backface culling at this point\n\ndo note that the latter will only work in the case that the sphere is not occluded by anything, as in if a star flys past or something it'll show up in front of the star still.\n\nanother approach is to render the DOM element to a texture and draw it as a billboard in 3d space.. but then you cant click it and shit without some additional logic.\n\npizza\n\nalso ive never used three.js, only webgl and ogl\n\nso I dunno what crap they have built in to make it simpler","full_conversation":[{"role":"OP","user_id":"anon_c4d72ed94003c6dc","comment_id":"30ldkq","kind":"post","text":"Three.js - Does anybody know how to check if object is behind a sphere (not visible)?","timestamp":"2015-03-28T12:21:20+00:00","score":0},{"role":"answerer","user_id":"anon_3242f07e40603bb9","comment_id":"cpthuu3","kind":"comment","text":"It's a complicated problem to solve efficiently.\n\nOne simple but inefficient way you can do it is by rendering your geometry to an offscreen buffer, with your occluders being one solid color and the object you are seeking being a different one, and then looking at the resulting bitmap to see if the object is occluded. \n\n\nEDIT: after reading this specific case on your stackoverflow post..\n\nFor this specific case it sounds a lot simpler, since a globe is a convex shape. Simply calculate the dot product of the triangle the pin resides on and the vector between the camera and the triangle's position. If it's less than zero, then the triangle is on the hidden side of the sphere. If it's greater than zero, then the triangle is on the visible side of the sphere. You're basically doing manual backface culling at this point\n\ndo note that the latter will only work in the case that the sphere is not occluded by anything, as in if a star flys past or something it'll show up in front of the star still.\n\nanother approach is to render the DOM element to a texture and draw it as a billboard in 3d space.. but then you cant click it and shit without some additional logic.\n\npizza\n\nalso ive never used three.js, only webgl and ogl\n\nso I dunno what crap they have built in to make it simpler","timestamp":"2015-03-28T13:03:25+00:00","score":0},{"role":"OP","user_id":"anon_c4d72ed94003c6dc","comment_id":"cpvg12m","kind":"comment","text":"Thank you for the reply, I forwarded it to him but at the end they weren't able to get it working and had to go for plan B :( Seems that the problem is much more difficult than first imagined.","timestamp":"2015-03-30T12:32:55+00:00","score":1},{"role":"answerer","user_id":"anon_3242f07e40603bb9","comment_id":"cpvkfv4","kind":"comment","text":"quick thing:\n\nhttps://jsfiddle.net/o4tfyte9/9/embedded/result/\n\ngraphics programmers should have trig knowledge and maybe even linear algebra, it's not super complicated","timestamp":"2015-03-30T15:12:25+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c4d72ed94003c6dc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3242f07e40603bb9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cpthuu3","thanks_reply_id":"cpvg12m","post_score":0,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_07680bb799d0dc64","answerer_user_id":"anon_cb2e68f851a9b233","subreddit":"programming","timestamp":"2015-04-06T19:23:05+00:00","post_id":"31nszo","question":"[C++] - Addition, binary addition and multiplication of a 2D array (matrix) using vectors (STL)?","preferred_answer":"A few notes:\n\n- This isn't really the place for questions about something you're working on. It's more about sharing interesting things going on in programming. The sidebar suggests /r/learnprogramming for questions like this.\n\n- Use [the C++11 random number library](http://en.cppreference.com/w/cpp/numeric/random) instead of `srand` and `rand`.\n\n- What does `p` do? You're allocating it, doing nothing with it, then deleting it.\n\n- Since a vector is, at the end of the day, a dynamically-allocated array, a vector of vectors is going to be a dynamically-allocated array of pointers to dynamically-allocated arrays, each of which could be anywhere in memory. This is going to be really cache-unfriendly and bad for performance. Consider a single vector of size `width * height` as the backing storage.","full_conversation":[{"role":"OP","user_id":"anon_07680bb799d0dc64","comment_id":"31nszo","kind":"post","text":"[C++] - Addition, binary addition and multiplication of a 2D array (matrix) using vectors (STL)?","timestamp":"2015-04-06T19:23:05+00:00","score":0},{"role":"answerer","user_id":"anon_cb2e68f851a9b233","comment_id":"cq39pht","kind":"comment","text":"A few notes:\n\n- This isn't really the place for questions about something you're working on. It's more about sharing interesting things going on in programming. The sidebar suggests /r/learnprogramming for questions like this.\n\n- Use [the C++11 random number library](http://en.cppreference.com/w/cpp/numeric/random) instead of `srand` and `rand`.\n\n- What does `p` do? You're allocating it, doing nothing with it, then deleting it.\n\n- Since a vector is, at the end of the day, a dynamically-allocated array, a vector of vectors is going to be a dynamically-allocated array of pointers to dynamically-allocated arrays, each of which could be anywhere in memory. This is going to be really cache-unfriendly and bad for performance. Consider a single vector of size `width * height` as the backing storage.","timestamp":"2015-04-06T19:38:37+00:00","score":7},{"role":"OP","user_id":"anon_07680bb799d0dc64","comment_id":"cq3a14o","kind":"comment","text":"Thank you, I am gonna move my question to that sub.\n\nIf i don't do that\n p\nthing my program doesn't run, it throws a 'segmentation fault' error.\n\nCould you introduce me a little bit to that \n width * height \nthing?","timestamp":"2015-04-06T19:46:39+00:00","score":1},{"role":"answerer","user_id":"anon_cb2e68f851a9b233","comment_id":"cq3adxp","kind":"comment","text":"> If i don't do that p thing my program doesn't run, it throws a 'segmentation fault' error.\n\nThat is a sign that something else is wrong - consider using a tool like [valgrind](http://valgrind.org/docs/manual/quick-start.html) to find problems with memory access. Never try to \"fix\" a segfault by allocating \"extra\" memory.\n\n> Could you introduce me a little bit to that width * height thing?\n\nEach `vector` uses a dynamic memory allocation (like the ones done by `new` or `malloc`) to create the array it uses to store your items. This means that if you have a vector of vectors, it's a dynamically-allocated array of pointers to dynamically-allocated arrays (one for each row). This has a few problems:\n\n1. There is a performance cost for allocating each row.\n\n2. The memory allocator can place these rows anywhere in memory. There is no guarantee that they will be placed next to each other. You do not want memory that gets accessed at the same time (i.e. when you do things with your matrix) to be spread out, because modern processors are much faster at accessing adjacent memory in sequential order. This is what I mean when referring to \"cache-friendliness\". See [this](http://bitbashing.io/memory-performance.html) for more details.\n\nBy using a single vector, you ensure that all of the memory for the matrix is in one solid block, avoiding the two problems above.","timestamp":"2015-04-06T19:55:25+00:00","score":3},{"role":"OP","user_id":"anon_07680bb799d0dc64","comment_id":"cq3av30","kind":"comment","text":"Thank you so much for all your help and for taking the time to explain those things to me.\n\n[Here](http://www.reddit.com/r/learnprogramming/comments/31nyo8/c_addition_binary_addition_and_multiplication_of/) is the link to the question posted on /r/learnprogramming","timestamp":"2015-04-06T20:07:04+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_07680bb799d0dc64","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cb2e68f851a9b233","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cq39pht","thanks_reply_id":"cq3a14o","post_score":0,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_7d62c69b78a3434c","answerer_user_id":"anon_67e778cc763fca28","subreddit":"programming","timestamp":"2015-04-13T11:58:36+00:00","post_id":"32fl2v","question":"What makes programmers really productive: requirements, not tools!","preferred_answer":"Nobody likes a programmer who whines about the requirements a lot. The real world involves uncertainty and tasks that aren't posed with a mathematical rigor. Dealing with it, interpreting the vague problem description into something concrete is part of the job.","full_conversation":[{"role":"OP","user_id":"anon_7d62c69b78a3434c","comment_id":"32fl2v","kind":"post","text":"What makes programmers really productive: requirements, not tools!","timestamp":"2015-04-13T11:58:36+00:00","score":178},{"role":"answerer","user_id":"anon_67e778cc763fca28","comment_id":"cqawssf","kind":"comment","text":"Nobody likes a programmer who whines about the requirements a lot. The real world involves uncertainty and tasks that aren't posed with a mathematical rigor. Dealing with it, interpreting the vague problem description into something concrete is part of the job.","timestamp":"2015-04-13T15:53:25+00:00","score":8},{"role":"OP","user_id":"anon_7d62c69b78a3434c","comment_id":"cqaxhzp","kind":"comment","text":"What are you gonna do with your perfect concrete solution that you spent crafting in isolation based on assumptions about a vague problem description? The customer is certainly not paying you for it because it will not be what he wanted - so you had better talked to him. ;)","timestamp":"2015-04-13T16:12:08+00:00","score":5},{"role":"answerer","user_id":"anon_67e778cc763fca28","comment_id":"cqb1slw","kind":"comment","text":"I don't think anybody is advocating isolation. You can make reasonable attempts to clarify and still be left with a vague problem to solve.","timestamp":"2015-04-13T18:09:42+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7d62c69b78a3434c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_67e778cc763fca28","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cqawssf","thanks_reply_id":"cqaxhzp","post_score":178,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_891d0d6cca218b29","answerer_user_id":"anon_3bdc2b9f51ea454f","subreddit":"programming","timestamp":"2015-04-25T16:28:06+00:00","post_id":"33txig","question":"What! Rect is not the shortened of Rectangle?","preferred_answer":"\"Rect\" in my native language actually means \"rectum\". So I always get the giggles when browsing some game or a game engine's source code. \n\n> \"I can’t understand if programmers can view Rect as Rectangle, why others can’t?\"? \n\nDo you think it's a choice? Also, did you actually meant to say that? Don't you see nothing wrong with it?\n\nAs for the _game_ name, keep it, change it, whatever. It's your game. But not only I started laughing out loud, but I'm pretty sure I can make some people cry laughing as well. As someone already said, if you're going with the snarky pun naming strategy, it's golden! :P","full_conversation":[{"role":"OP","user_id":"anon_891d0d6cca218b29","comment_id":"33txig","kind":"post","text":"What! Rect is not the shortened of Rectangle?","timestamp":"2015-04-25T16:28:06+00:00","score":81},{"role":"answerer","user_id":"anon_3bdc2b9f51ea454f","comment_id":"cqodsn0","kind":"comment","text":"\"Rect\" in my native language actually means \"rectum\". So I always get the giggles when browsing some game or a game engine's source code. \n\n> \"I can’t understand if programmers can view Rect as Rectangle, why others can’t?\"? \n\nDo you think it's a choice? Also, did you actually meant to say that? Don't you see nothing wrong with it?\n\nAs for the _game_ name, keep it, change it, whatever. It's your game. But not only I started laughing out loud, but I'm pretty sure I can make some people cry laughing as well. As someone already said, if you're going with the snarky pun naming strategy, it's golden! :P","timestamp":"2015-04-25T17:31:46+00:00","score":5},{"role":"OP","user_id":"anon_891d0d6cca218b29","comment_id":"cqoekr9","kind":"comment","text":"Got your opinion. Thanks!\n\nIs it possible we programmers can change the hint meaning of the word? :)","timestamp":"2015-04-25T17:57:53+00:00","score":1},{"role":"answerer","user_id":"anon_3bdc2b9f51ea454f","comment_id":"cqojpju","kind":"comment","text":"Not sure if you can in the first place. But then again.. why? \nSome sort of semantic crusade against rectums? A rect will be a rect, dammit! :))","timestamp":"2015-04-25T20:54:01+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_891d0d6cca218b29","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3bdc2b9f51ea454f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cqodsn0","thanks_reply_id":"cqoekr9","post_score":81,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_989dcc1985090497","answerer_user_id":"anon_682e6af0b18a0f60","subreddit":"programming","timestamp":"2015-04-27T02:40:16+00:00","post_id":"33zk7b","question":"Suprastructure – how come “Microservices” are getting small?","preferred_answer":"Hot damn this site makes Firefox 37.0.2 (windows 7) bleed. Loaded it 3 times (including once with no extensions) and it sent me straight to crash report hell. I couldn't even get a chance to read the networking panel to give you more info than this, it just goes straight down.","full_conversation":[{"role":"OP","user_id":"anon_989dcc1985090497","comment_id":"33zk7b","kind":"post","text":"Suprastructure – how come “Microservices” are getting small?","timestamp":"2015-04-27T02:40:16+00:00","score":10},{"role":"answerer","user_id":"anon_682e6af0b18a0f60","comment_id":"cqq3zsx","kind":"comment","text":"Hot damn this site makes Firefox 37.0.2 (windows 7) bleed. Loaded it 3 times (including once with no extensions) and it sent me straight to crash report hell. I couldn't even get a chance to read the networking panel to give you more info than this, it just goes straight down.","timestamp":"2015-04-27T10:43:05+00:00","score":3},{"role":"OP","user_id":"anon_989dcc1985090497","comment_id":"cqq4886","kind":"comment","text":"Thanks for bringing this up - I see the same on FF on mac, I'll try to find the offending plugin","timestamp":"2015-04-27T11:00:03+00:00","score":1},{"role":"answerer","user_id":"anon_682e6af0b18a0f60","comment_id":"cqqspku","kind":"comment","text":"My guess was disqus, as it's complaining and making a lot of calls in chrome.","timestamp":"2015-04-27T23:06:07+00:00","score":1},{"role":"OP","user_id":"anon_989dcc1985090497","comment_id":"cqrari7","kind":"comment","text":"I disabled disqus and it seems to behave better (at least in FF mac)","timestamp":"2015-04-28T10:22:19+00:00","score":1},{"role":"answerer","user_id":"anon_682e6af0b18a0f60","comment_id":"cqrby11","kind":"comment","text":"It isn't crashing anymore. I'm still seeing about 6 seconds until page is fully rendered, with about 200ms initial page print. Most of the current time is going to speakerdeck.","timestamp":"2015-04-28T11:37:55+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_989dcc1985090497","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_682e6af0b18a0f60","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cqq3zsx","thanks_reply_id":"cqq4886","post_score":10,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_5154eec7517a6f5e","answerer_user_id":"anon_5788e5a3791f1df0","subreddit":"programming","timestamp":"2015-05-01T20:50:05+00:00","post_id":"34k2cp","question":"How did you choose your specialization?","preferred_answer":"I feel like I'm left and right-handed specialization. I have my right-handed specialization for work, for a career, the Jay Ohh Bee. Then there's my left-handed specialization I do after work on my own time. Right-handed it's sql and redundancy and concurrency and business logic. Left-handed it's 3d shaders and weird languages and did you know you can build a full turing complete computer using game of life rules? Complete with memory and programmability? Anyway, then there's my right-handed work/reality life and my left-handed online/friends life. I'm fairly decent at both specializations but they are such different things really.","full_conversation":[{"role":"OP","user_id":"anon_5154eec7517a6f5e","comment_id":"34k2cp","kind":"post","text":"How did you choose your specialization?","timestamp":"2015-05-01T20:50:05+00:00","score":2},{"role":"answerer","user_id":"anon_5788e5a3791f1df0","comment_id":"cqvgtr4","kind":"comment","text":"I feel like I'm left and right-handed specialization. I have my right-handed specialization for work, for a career, the Jay Ohh Bee. Then there's my left-handed specialization I do after work on my own time. Right-handed it's sql and redundancy and concurrency and business logic. Left-handed it's 3d shaders and weird languages and did you know you can build a full turing complete computer using game of life rules? Complete with memory and programmability? Anyway, then there's my right-handed work/reality life and my left-handed online/friends life. I'm fairly decent at both specializations but they are such different things really.","timestamp":"2015-05-01T21:59:04+00:00","score":3},{"role":"OP","user_id":"anon_5154eec7517a6f5e","comment_id":"cqvh4z9","kind":"comment","text":"Thank you for your reply. Have you considered finding a new job which would be more related to \"3d shaders and weird languages\"? :)","timestamp":"2015-05-01T22:09:12+00:00","score":2},{"role":"answerer","user_id":"anon_5788e5a3791f1df0","comment_id":"cqvh6mp","kind":"comment","text":"Kind of .. not really. I like having it as my \"own thing\". If I were to do it for a paycheck, it would be different. Also I'm not sure I'd be paid as much. I guess what I love most about programming isn't what pays best in programming. Fortunately I can do both, I just can't do both at the same time.","timestamp":"2015-05-01T22:10:46+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5154eec7517a6f5e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5788e5a3791f1df0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cqvgtr4","thanks_reply_id":"cqvh4z9","post_score":2,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_991c0cca338a0a96","answerer_user_id":"anon_839a485bb5d6e5b3","subreddit":"programming","timestamp":"2015-05-09T12:35:25+00:00","post_id":"35e0u1","question":"Is there a better terminal emulator than urxvt for programming? I created a new support community, and am open to suggestions for something completely different.","preferred_answer":"I really like termite: https://github.com/thestinger/termite","full_conversation":[{"role":"OP","user_id":"anon_991c0cca338a0a96","comment_id":"35e0u1","kind":"post","text":"Is there a better terminal emulator than urxvt for programming? I created a new support community, and am open to suggestions for something completely different.","timestamp":"2015-05-09T12:35:25+00:00","score":4},{"role":"answerer","user_id":"anon_839a485bb5d6e5b3","comment_id":"cr3jymd","kind":"comment","text":"I really like termite: https://github.com/thestinger/termite","timestamp":"2015-05-09T13:42:33+00:00","score":5},{"role":"OP","user_id":"anon_991c0cca338a0a96","comment_id":"cr3k7gq","kind":"comment","text":"Thanks, icedgoal.\n\nCan it be extended via scripting using a well-known language like Perl or Python?\n\nAside from support for tabs (and being relatively dependency-free), that's the main advantage of URxvt.","timestamp":"2015-05-09T13:53:25+00:00","score":1},{"role":"answerer","user_id":"anon_839a485bb5d6e5b3","comment_id":"cr3kjj5","kind":"comment","text":"I like termite because it supports freetype2, it's very friendly to people that are used to vim (it has a normal mode), and because it has a pretty clean config file. I don't think it supports tabs; you are expected to use tmux if you want them, which, in my opinion, is far superior to tabs.\n\nI've never had a need to extend termite, so I'm not sure which options are available. As far as I know, you can't extend it in any language. Which are your requirements?","timestamp":"2015-05-09T14:07:50+00:00","score":1},{"role":"OP","user_id":"anon_991c0cca338a0a96","comment_id":"cr3kn5q","kind":"comment","text":"I would look for a terminal emulator that has few dependencies, tabs, and scriptability.\n\nIf you combine scripting using your window manager to position the terminals, TMux becomes just an extra layer of software. Plus, TMux can't do proper tabs (nested TMux instances are a kludgey hack if you can find a terminal emulator that supports tabs natively).\n\nWhat brings you to the idea that TMUx > tabs?","timestamp":"2015-05-09T14:12:08+00:00","score":2},{"role":"answerer","user_id":"anon_839a485bb5d6e5b3","comment_id":"cr3ksre","kind":"comment","text":"Speed of switching between windows (plus not having to move my hands from the keyboard). The ability to have predefined layouts (I can call a command and have 3 sessions with the corresponding windows already opened with the right files, or save the session (this requires an external plugin, though). I don't see how tmux is a hack compared to tabs. It works essentially the same way they do. I honestly don't really know what tmux can't do; everything I ever wanted, tmux has it.","timestamp":"2015-05-09T14:18:31+00:00","score":0},{"role":"OP","user_id":"anon_991c0cca338a0a96","comment_id":"cr3kww1","kind":"comment","text":"> I honestly don't really know what tmux can't do; everything I ever wanted, tmux has it.\n\nThat's cute -- sounds like Tmux is your favorite teddy bear....\n\nAnyway, that's cool. Both ways work; it comes down to personal preference. And you can use urxvt + TMux if you like (although without urxvt's support for tabs if used with TMux, sadly), so it's ultimately the user's choice.","timestamp":"2015-05-09T14:23:06+00:00","score":-4},{"role":"answerer","user_id":"anon_839a485bb5d6e5b3","comment_id":"cr3u4hv","kind":"comment","text":"Oh, I definitely agree it's one's choice. I prefer termite over urxvt because of the fact that it respects freetype2 (fontconfig, basically). If you are a vim user (and, especially, if you are a terminal power user), you will find tmux more interesting; otherwise, tabs might be the way to go. More intuitive.","timestamp":"2015-05-09T19:47:05+00:00","score":1},{"role":"OP","user_id":"anon_991c0cca338a0a96","comment_id":"cr3uchp","kind":"comment","text":"> If you are a vim user (and, especially, if you are a terminal power user), you will find tmux more interesting...\n\nI am both a vim user and am almost always using a terminal; I also see things the opposite way regarding tmux. The type of text editor you use also doesn't really factor into it (I also use emacs). Who cares, really. It's not a question of being more or less sophisticated.\n\nAnd you can enjoy your TMux teddy bear however you like... that wasn't an insult in the first place. I don't pledge allegiance to one approach or another (Vim vs. Emacs, etc. _yawn_), so I'm fine with the fact that you like TMux, even if you have to twist its arm a little bit in order to match the functionality of a native tabbed interface.","timestamp":"2015-05-09T19:55:03+00:00","score":2},{"role":"answerer","user_id":"anon_839a485bb5d6e5b3","comment_id":"cr3xeil","kind":"comment","text":"> TMux teddy bear\n\nOkay.","timestamp":"2015-05-09T21:44:02+00:00","score":1}],"n_turns":10,"n_turns_after_thanks":7,"op_metadata":{"user_id":"anon_991c0cca338a0a96","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_839a485bb5d6e5b3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cr3jymd","thanks_reply_id":"cr3k7gq","post_score":4,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_0e1546c14f5ea416","answerer_user_id":"anon_773b1a292b6f4fc2","subreddit":"programming","timestamp":"2015-05-13T12:35:52+00:00","post_id":"35tnwh","question":"I'm working on a simple C++ Networking library - Will you use it?","preferred_answer":"Too much use of `new` in the age of smart pointers gives me an uneasy feeling. I looked at your `TcpASIOServer` implementation and it's definitely not exception safe. If your `init()` member function throws an exception for any reason you're going to leak memory. \n\nInstead of calling operator `new` directly, consider using `std::unique_ptr`.","full_conversation":[{"role":"OP","user_id":"anon_0e1546c14f5ea416","comment_id":"35tnwh","kind":"post","text":"I'm working on a simple C++ Networking library - Will you use it?","timestamp":"2015-05-13T12:35:52+00:00","score":0},{"role":"answerer","user_id":"anon_773b1a292b6f4fc2","comment_id":"cr7osmz","kind":"comment","text":"Too much use of `new` in the age of smart pointers gives me an uneasy feeling. I looked at your `TcpASIOServer` implementation and it's definitely not exception safe. If your `init()` member function throws an exception for any reason you're going to leak memory. \n\nInstead of calling operator `new` directly, consider using `std::unique_ptr`.","timestamp":"2015-05-13T13:08:43+00:00","score":7},{"role":"OP","user_id":"anon_0e1546c14f5ea416","comment_id":"cr7p5b5","kind":"comment","text":"thank you for your advice, It's a good idea to use unique_ptr, I had not thought of that, I will see if I can adapt my code to add unique_ptr. (I Hope it will not affect the accessibility of the pointers, because of the definition of unique_ptr: \"No two unique_ptr instances can manage the same object.\", so I hope it will continue to work).\nThanks for the advices.","timestamp":"2015-05-13T13:21:58+00:00","score":1},{"role":"answerer","user_id":"anon_773b1a292b6f4fc2","comment_id":"cr7pm5h","kind":"comment","text":"If you need to share the ownership of objects among multiple parent objects, you can always use `std::shared_ptr` instead. It is reference-counted, so there's a bit of an efficiency hit, but it's a lot safer than a raw pointer. In most cases using `unique_ptr` shouldn't be an issue.","timestamp":"2015-05-13T13:38:29+00:00","score":1},{"role":"OP","user_id":"anon_0e1546c14f5ea416","comment_id":"cr7pwdb","kind":"comment","text":"Okay then, thanks for your help :)","timestamp":"2015-05-13T13:48:15+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0e1546c14f5ea416","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_773b1a292b6f4fc2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cr7osmz","thanks_reply_id":"cr7p5b5","post_score":0,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_bba94d61a9798f6d","answerer_user_id":"anon_dbcd99e63c8ad20b","subreddit":"programming","timestamp":"2015-05-18T06:25:24+00:00","post_id":"36ccal","question":"[HELP] Why is it not getting the input ?","preferred_answer":"`.string` needs to be `.value` since you want the value of the input field.","full_conversation":[{"role":"OP","user_id":"anon_bba94d61a9798f6d","comment_id":"36ccal","kind":"post","text":"[HELP] Why is it not getting the input ?","timestamp":"2015-05-18T06:25:24+00:00","score":0},{"role":"answerer","user_id":"anon_dbcd99e63c8ad20b","comment_id":"crcprau","kind":"comment","text":"`.string` needs to be `.value` since you want the value of the input field.","timestamp":"2015-05-18T06:28:30+00:00","score":1},{"role":"OP","user_id":"anon_bba94d61a9798f6d","comment_id":"crcpt5h","kind":"comment","text":"Holy fracking shit that was all '-' wow ty","timestamp":"2015-05-18T06:31:17+00:00","score":0},{"role":"answerer","user_id":"anon_dbcd99e63c8ad20b","comment_id":"crcpvpm","kind":"comment","text":"I can understand the confusion since you want a string value. However, javascript has no need to cast it since pretty much every input field sends it's data as a string. \n \nAlso, not unimportant to mention is that when a user types in a form element the data is stored as said element's value.","timestamp":"2015-05-18T06:35:16+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bba94d61a9798f6d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dbcd99e63c8ad20b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"crcprau","thanks_reply_id":"crcpt5h","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_ccd7a7c3c0c2898d","answerer_user_id":"anon_825d19db6681a9d4","subreddit":"programming","timestamp":"2015-05-29T07:38:02+00:00","post_id":"37p27z","question":"Microservices and objects: Similar benefits, similar problems, similar lessons?","preferred_answer":"What is \"micro-service\"? It must be a service that does very little, right? And what is a \"service\"? I assume we mean something accessed over the network, which is not \"micro-sized\"\n\nFrom this it would seem that the difference between micro-services and (plain) services is like the difference between Functional vs. Object-Oriented programming. A Function does very little, it does just a single thing, it calculates a result. An object does many things, it has many methods. The things it does however are related and often needed together. For instance depositing money on a bank-account, withdrawing it, asking for the balance. \n\nDepends on the terminology but I would rather have a service that does all three, than three micro-sized, completely separate services which do just one thing each. \n\nThe lesson from Objects to micro-services I think is: Create Objects, not just individual separate Functions. Create Services which are groupings of Micro-services.","full_conversation":[{"role":"OP","user_id":"anon_ccd7a7c3c0c2898d","comment_id":"37p27z","kind":"post","text":"Microservices and objects: Similar benefits, similar problems, similar lessons?","timestamp":"2015-05-29T07:38:02+00:00","score":6},{"role":"answerer","user_id":"anon_825d19db6681a9d4","comment_id":"crp32xf","kind":"comment","text":"What is \"micro-service\"? It must be a service that does very little, right? And what is a \"service\"? I assume we mean something accessed over the network, which is not \"micro-sized\"\n\nFrom this it would seem that the difference between micro-services and (plain) services is like the difference between Functional vs. Object-Oriented programming. A Function does very little, it does just a single thing, it calculates a result. An object does many things, it has many methods. The things it does however are related and often needed together. For instance depositing money on a bank-account, withdrawing it, asking for the balance. \n\nDepends on the terminology but I would rather have a service that does all three, than three micro-sized, completely separate services which do just one thing each. \n\nThe lesson from Objects to micro-services I think is: Create Objects, not just individual separate Functions. Create Services which are groupings of Micro-services.","timestamp":"2015-05-29T18:23:32+00:00","score":1},{"role":"OP","user_id":"anon_ccd7a7c3c0c2898d","comment_id":"crp3u9l","kind":"comment","text":"Thanks for the reply - Microservices are typically built around a domain-driven design inspire \"bounded context\", and in this respect your example functions would indeed by best grouped in one service (which could be called a 'microservice')\n\nIn regards to your comments about functions, I think functional programming fans would have a lot to say about this. By using a functional language (say Clojure or Haskell), there are actually a lot of benefits (immutability, ability to 'prove' functionality etc). Having said this, functional-style programming and OOP aren't mutually exclusive... :-)","timestamp":"2015-05-29T18:42:30+00:00","score":2},{"role":"answerer","user_id":"anon_825d19db6681a9d4","comment_id":"crp4tk5","kind":"comment","text":"Thanks for the explanation on Microservices, which thus seem to look like \"methods\" of an object, just accessed over the network, right? So a Microservice is more a \"method\" than a \"class\", would you say? But Micro-services are *somehow* grouped together, perhaps by the prefix-part of their URL? So would it then be the case that: \"A Service is a collection of one or more Micro-services\".\n\nI am totally not against FP at all, just trying to understand better what are the essential differences between FP and OO. You can create immutable objects in an OO language, and you can create things that look like classes (\"type-classes\") in FP languages. So I think the main difference must be the focus, are you focused on creating individual \"functions\", or groups of \"methods\" associated with an \"object\". \n\nWhich is better? I assume the best way is to mix both approaches, depending on the need. It would be interesting to see an article \"Micro-services and Functions: Lessons learned\".","timestamp":"2015-05-29T19:07:10+00:00","score":1},{"role":"OP","user_id":"anon_ccd7a7c3c0c2898d","comment_id":"crq12pk","kind":"comment","text":"I would say a microservice is analogous to a class (or package) in OOP, and the API endpoints would be similar to methods/functions\n\n'Microservices and functions' is an interesting idea, and my team and I have been building quite a few microservices with Java 8, SpringBoot and RatPack - all which allow you to levereage the new functional-style of Streams and Lamdas in the JDK... :-)","timestamp":"2015-05-30T17:23:44+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ccd7a7c3c0c2898d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_825d19db6681a9d4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"crp32xf","thanks_reply_id":"crp3u9l","post_score":6,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_62b540bc66294a92","answerer_user_id":"anon_5235861fd57f81e1","subreddit":"programming","timestamp":"2015-06-15T01:38:41+00:00","post_id":"39v5ht","question":"Is there a Java based AMD gpu parallel programming library that isn't Aparapi and has been updated later than 2011?","preferred_answer":"What level of library are you after? Jocl provides bindings to the OpenCL library itself : http://www.jocl.org/\n\nEdit: they link to aparapi for higher level stuff, and the aparapi GitHub has commits from this year: https://github.com/aparapi/aparapi","full_conversation":[{"role":"OP","user_id":"anon_62b540bc66294a92","comment_id":"39v5ht","kind":"post","text":"Is there a Java based AMD gpu parallel programming library that isn't Aparapi and has been updated later than 2011?","timestamp":"2015-06-15T01:38:41+00:00","score":3},{"role":"answerer","user_id":"anon_5235861fd57f81e1","comment_id":"cs6r9c8","kind":"comment","text":"What level of library are you after? Jocl provides bindings to the OpenCL library itself : http://www.jocl.org/\n\nEdit: they link to aparapi for higher level stuff, and the aparapi GitHub has commits from this year: https://github.com/aparapi/aparapi","timestamp":"2015-06-15T02:07:31+00:00","score":1},{"role":"OP","user_id":"anon_62b540bc66294a92","comment_id":"cs6rnmv","kind":"comment","text":"Thank you.","timestamp":"2015-06-15T02:17:38+00:00","score":1},{"role":"answerer","user_id":"anon_5235861fd57f81e1","comment_id":"cs6rs97","kind":"comment","text":"No worries. Silly of aparapi to leave an old website without links to the current incarnation.","timestamp":"2015-06-15T02:21:25+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_62b540bc66294a92","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5235861fd57f81e1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cs6r9c8","thanks_reply_id":"cs6rnmv","post_score":3,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_e3b15ff776983c9b","answerer_user_id":"anon_4bcbcc228d188a40","subreddit":"programming","timestamp":"2015-06-17T10:00:57+00:00","post_id":"3a5ax0","question":"Is this a good way to handle Custom Fields (dynamic, added by users) in a Multi-tenant SaaS app ?","preferred_answer":"obviously, everything is about trade-offs.\n\nDNN's approach is to create/modify schema with each customization... I personally hate the approach, but it's easy to understand.\n\nSharePoint's approach is to have a set number of each type of column (i'm sure they researched how often diff types of columns were needed, to determine that SP should have 16 bit fields, 8 datetime fields, 12 floats, 16 ints, etc)... and to implement a RowOrdinal column if you need more columns of that type than SharePoint provides... here's their documented schema (https://msdn.microsoft.com/en-us/library/hh625524.aspx)... and Microsoft has stated on several occasions, that their fixed schema allows them to optimize and tune its performance, more easily and consistently than other designs (though other designs may allow for optimizations that tune to some/specific use cases). The only real criticism to the DB schema (which as a SharePoint admin/user, you're not supposed to even worry/care about) are the **nasty** queries that can get executed. Presumably they're tuned, but it's still annoying to even look at, much less decipher, if you're looking at the query in Profiler / SSMS.\n\nif you don't have a RowOrdinal (or comperable) column, then you're effectively limiting the number of columns (of a specific type) that the user can define... depending on the use case, that may be acceptable.\n\nIn other use cases, AdventureWorks used XML fields to store custom data... doesn't provide the performance, which can limit how the data is used (with any acceptable level of performance)... but again, depends on the use case.\n\nbut the point of my comment (downvote if you want) is that this design isn't exactly new... Microsoft's been doing this since at least SP2007, if not earlier.\n\nI'd also add that if you're just now getting started with this design, it may be worth exploring SharePoint's content database schemas to see how they've tuned their data, or handled other circumstances. I'm currently working on a WPF + SQL app, and will be incorporating a few of their designs into the application (where relevant), plus a few twists of my own.","full_conversation":[{"role":"OP","user_id":"anon_e3b15ff776983c9b","comment_id":"3a5ax0","kind":"post","text":"Is this a good way to handle Custom Fields (dynamic, added by users) in a Multi-tenant SaaS app ?","timestamp":"2015-06-17T10:00:57+00:00","score":1},{"role":"answerer","user_id":"anon_4bcbcc228d188a40","comment_id":"cs9rhuu","kind":"comment","text":"obviously, everything is about trade-offs.\n\nDNN's approach is to create/modify schema with each customization... I personally hate the approach, but it's easy to understand.\n\nSharePoint's approach is to have a set number of each type of column (i'm sure they researched how often diff types of columns were needed, to determine that SP should have 16 bit fields, 8 datetime fields, 12 floats, 16 ints, etc)... and to implement a RowOrdinal column if you need more columns of that type than SharePoint provides... here's their documented schema (https://msdn.microsoft.com/en-us/library/hh625524.aspx)... and Microsoft has stated on several occasions, that their fixed schema allows them to optimize and tune its performance, more easily and consistently than other designs (though other designs may allow for optimizations that tune to some/specific use cases). The only real criticism to the DB schema (which as a SharePoint admin/user, you're not supposed to even worry/care about) are the **nasty** queries that can get executed. Presumably they're tuned, but it's still annoying to even look at, much less decipher, if you're looking at the query in Profiler / SSMS.\n\nif you don't have a RowOrdinal (or comperable) column, then you're effectively limiting the number of columns (of a specific type) that the user can define... depending on the use case, that may be acceptable.\n\nIn other use cases, AdventureWorks used XML fields to store custom data... doesn't provide the performance, which can limit how the data is used (with any acceptable level of performance)... but again, depends on the use case.\n\nbut the point of my comment (downvote if you want) is that this design isn't exactly new... Microsoft's been doing this since at least SP2007, if not earlier.\n\nI'd also add that if you're just now getting started with this design, it may be worth exploring SharePoint's content database schemas to see how they've tuned their data, or handled other circumstances. I'm currently working on a WPF + SQL app, and will be incorporating a few of their designs into the application (where relevant), plus a few twists of my own.","timestamp":"2015-06-17T17:34:07+00:00","score":2},{"role":"OP","user_id":"anon_e3b15ff776983c9b","comment_id":"cs9s1lb","kind":"comment","text":"Thanks a lot! Time to look at SP's schema and make sense out of it :)","timestamp":"2015-06-17T17:47:55+00:00","score":1},{"role":"answerer","user_id":"anon_4bcbcc228d188a40","comment_id":"cs9sq55","kind":"comment","text":"this article seems to discuss the 2013 schema changes pretty well.\n > http://joelblogs.co.uk/2013/02/15/sharepoint-2013-content-databases-and-the-alluserdata-table/\n\nmay be worth reading, since SP tends to also make heavy use of new capabilities in SQL... so newer SP means newer SQL means better use of features.","timestamp":"2015-06-17T18:05:07+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e3b15ff776983c9b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4bcbcc228d188a40","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cs9rhuu","thanks_reply_id":"cs9s1lb","post_score":1,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_82f13f8c7ab60588","answerer_user_id":"anon_bfb54dd4c91d1013","subreddit":"programming","timestamp":"2015-07-06T04:04:05+00:00","post_id":"3c9kos","question":"Would anyone know how to create a heatmap with the signal strength readings ? such as in this link ?","preferred_answer":"In order to build a heatmap, you need samples for each plotted point on the map, this is kind of a random set of overlapping and missing samples set in time (or at least in order, probably of collection). \n\nD3 has become one of my go-to packages for cool graphs, although a heatmap is pretty simple. \n\nThis example might get you started. \n\nhttp://stackoverflow.com/questions/12925266/drawing-heatmap-with-d3","full_conversation":[{"role":"OP","user_id":"anon_82f13f8c7ab60588","comment_id":"3c9kos","kind":"post","text":"Would anyone know how to create a heatmap with the signal strength readings ? such as in this link ?","timestamp":"2015-07-06T04:04:05+00:00","score":0},{"role":"answerer","user_id":"anon_bfb54dd4c91d1013","comment_id":"csti8tu","kind":"comment","text":"In order to build a heatmap, you need samples for each plotted point on the map, this is kind of a random set of overlapping and missing samples set in time (or at least in order, probably of collection). \n\nD3 has become one of my go-to packages for cool graphs, although a heatmap is pretty simple. \n\nThis example might get you started. \n\nhttp://stackoverflow.com/questions/12925266/drawing-heatmap-with-d3","timestamp":"2015-07-06T04:26:56+00:00","score":1},{"role":"OP","user_id":"anon_82f13f8c7ab60588","comment_id":"cstifx5","kind":"comment","text":"Hey, thanks, i never heard of D3, will check it out,\nhowever i am using Python to extract information, such as the singal strength readings, the latitude and longitude, will D3 still be able to make that work for me ?\nfinding the latitude and longitude and then plotting it with a specific colour depending on the signal strength ?","timestamp":"2015-07-06T04:34:43+00:00","score":1},{"role":"answerer","user_id":"anon_bfb54dd4c91d1013","comment_id":"cstinru","kind":"comment","text":"D3 is a javascript framework, so it'll really only work if you're putting this on a webpage. What's your intended output format? If you're looking to keep the heatmap in python, take a look at \n\nhttp://www.bertplot.com/visualization/?p=292\n\nAlso when I was looking for that, I stumbled across plotly. It looks like it'll take your data out of python, post it to a webservice, and make some pretty killer heatmaps that you can access online. \n\nhttps://plot.ly/python/heatmaps/","timestamp":"2015-07-06T04:43:30+00:00","score":1},{"role":"OP","user_id":"anon_82f13f8c7ab60588","comment_id":"cstiqh1","kind":"comment","text":"Yes, i want to have the map on a website, and hopefully it could updated as it gets new data, so it basically constantly looks for new data to come in and updates the heat map, if that is possible","timestamp":"2015-07-06T04:46:33+00:00","score":1},{"role":"answerer","user_id":"anon_bfb54dd4c91d1013","comment_id":"cstit5s","kind":"comment","text":"D3 is probably a decent choice then. You'll likely need Django or some other python -> web framework to do the page hosting. Then you create a page with the required d3 javascript and pipe your data into the page each time it's rendered. \n\nThat part's probably the easy part. The tricky part, I find, is in getting dependable input data streams. Where are you pulling data from?","timestamp":"2015-07-06T04:49:36+00:00","score":1},{"role":"OP","user_id":"anon_82f13f8c7ab60588","comment_id":"cstj0x7","kind":"comment","text":"The data is basically scraped from a website, where tons of data is coming in, but im only looking for my own data, i mananged to get that working fine.\n\nDjango, never heard of that but il look into it thank you.\n\nThe only thing im worried about, is when looking at D3 examples, they are all filled in blocks of a specific colour, i was wondering if its possible to make those blocks smaller and overlay it on some kind of map such as google maps or something similar ? so for example if a reading comes in, that specific area, gets a colour matching the signal strength, and if it could be a little transparrent, incase i go over that spot again and the signal is either better or worse and i can analyze it, something similar to the intial link.\n\nwould you have any idea about that ?","timestamp":"2015-07-06T04:58:39+00:00","score":1},{"role":"answerer","user_id":"anon_bfb54dd4c91d1013","comment_id":"cstj87j","kind":"comment","text":"Then what you're probably looking for is a chloropleth, not a heat map. \n\nhttp://bl.ocks.org/mbostock/4060606\n\nThat would probably get you going. They have similar visual styles, but as opposed to having multiple x and y variables determining the coloring pattern, you have a single variable combined with latitude/longitude.","timestamp":"2015-07-06T05:07:16+00:00","score":2},{"role":"OP","user_id":"anon_82f13f8c7ab60588","comment_id":"cstj9av","kind":"comment","text":"Thank you very much","timestamp":"2015-07-06T05:08:37+00:00","score":1}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_82f13f8c7ab60588","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bfb54dd4c91d1013","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"csti8tu","thanks_reply_id":"cstifx5","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_220ec216554db832","answerer_user_id":"anon_45c0c3de3e997549","subreddit":"programming","timestamp":"2015-07-26T20:42:44+00:00","post_id":"3ep0s8","question":"Could I get some help with this coding problem?","preferred_answer":"`Translator translate = Translator.getInstance(); `\n\n`z = translate.translate(z, Language.ENGLISH, Language.FRENCH);`\n\nCheck to see if there's a getInstance() method that accepts a URI, a setUri() method, or if there's a translate() method that takes a URI.","full_conversation":[{"role":"OP","user_id":"anon_220ec216554db832","comment_id":"3ep0s8","kind":"post","text":"Could I get some help with this coding problem?","timestamp":"2015-07-26T20:42:44+00:00","score":0},{"role":"answerer","user_id":"anon_45c0c3de3e997549","comment_id":"cth0rbo","kind":"comment","text":"`Translator translate = Translator.getInstance(); `\n\n`z = translate.translate(z, Language.ENGLISH, Language.FRENCH);`\n\nCheck to see if there's a getInstance() method that accepts a URI, a setUri() method, or if there's a translate() method that takes a URI.","timestamp":"2015-07-26T20:54:19+00:00","score":-1},{"role":"OP","user_id":"anon_220ec216554db832","comment_id":"cth1dqh","kind":"comment","text":"I'll look, thanks for the input.","timestamp":"2015-07-26T21:12:50+00:00","score":1},{"role":"answerer","user_id":"anon_45c0c3de3e997549","comment_id":"cth2bun","kind":"comment","text":"I took a look at the source code for the API.\n\nIt appears to set the URI internally depending on the language type it detects or you provide.\n\nUsing the translate(TextTranslate) method or the detect method might help since it'll let you set it up manually.","timestamp":"2015-07-26T21:40:07+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_220ec216554db832","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_45c0c3de3e997549","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cth0rbo","thanks_reply_id":"cth1dqh","post_score":0,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_5e8a620c947c7ec1","answerer_user_id":"anon_8ed031446ddac7e1","subreddit":"programming","timestamp":"2015-08-19T19:07:23+00:00","post_id":"3hmcsb","question":"Are you building mobile apps using cross-plat tools? The Visual Studio team wants to talk to you!","preferred_answer":"Hybrid mobile developer for a Uni in the UK here, I've filled it out and I'm happy to answer any questions.","full_conversation":[{"role":"OP","user_id":"anon_5e8a620c947c7ec1","comment_id":"3hmcsb","kind":"post","text":"Are you building mobile apps using cross-plat tools? The Visual Studio team wants to talk to you!","timestamp":"2015-08-19T19:07:23+00:00","score":9},{"role":"answerer","user_id":"anon_8ed031446ddac7e1","comment_id":"cu9bh7i","kind":"comment","text":"Hybrid mobile developer for a Uni in the UK here, I've filled it out and I'm happy to answer any questions.","timestamp":"2015-08-20T10:00:59+00:00","score":1},{"role":"OP","user_id":"anon_5e8a620c947c7ec1","comment_id":"cu9q5kj","kind":"comment","text":"Thanks! What platform are you using to do hybrid?","timestamp":"2015-08-20T18:02:38+00:00","score":1},{"role":"answerer","user_id":"anon_8ed031446ddac7e1","comment_id":"cu9x3b8","kind":"comment","text":"We use Phonegap Build and mostly target iOS and Android. WP8 is difficult since we run Win 7 and the tooling to just install the test apps is difficult, let alone debug anything.","timestamp":"2015-08-20T20:55:25+00:00","score":1},{"role":"OP","user_id":"anon_5e8a620c947c7ec1","comment_id":"cua0ozm","kind":"comment","text":"We're working on the installation/acquisition tools thing. We hear that from our customers loud and clear. Speaking about your Phonegap iOS and Android apps, would you say that performance tuning them is difficult? In other words, do you spend a lot of time doing performance testing of your PhoneGap apps?","timestamp":"2015-08-20T22:31:53+00:00","score":1},{"role":"answerer","user_id":"anon_8ed031446ddac7e1","comment_id":"cuafxhi","kind":"comment","text":"Performance can be an issue and I do spend quite a bit of time trying to get things to run smoothly.\n\nIt's not the easiest thing especially given the varying platforms. Android is the easiest since the hybrid apps are basically WebViews and you can attach Chrome DevTools directly to them and you get all the same abilities to inspect and monitor the bottlenecks as you do with a normal web app.\n\nSo far this has been good enough to also get the iOS performance to a reasonable level.","timestamp":"2015-08-21T07:50:29+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_5e8a620c947c7ec1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8ed031446ddac7e1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cu9bh7i","thanks_reply_id":"cu9q5kj","post_score":9,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_a3db2a114bae6c48","answerer_user_id":"anon_c53109ca394b95cf","subreddit":"programming","timestamp":"2015-09-15T16:32:42+00:00","post_id":"3l25hv","question":"Udacity is offering a 'nanodegree' in Full Stack Web Development, does it seem worth it?","preferred_answer":"I did the front-end nanodegree. $100/month is extremely affordable for practical skills that are looked for by employers. Udacity is also a great resource to network with other students and professionals in the industry. I'd recommend it.","full_conversation":[{"role":"OP","user_id":"anon_a3db2a114bae6c48","comment_id":"3l25hv","kind":"post","text":"Udacity is offering a 'nanodegree' in Full Stack Web Development, does it seem worth it?","timestamp":"2015-09-15T16:32:42+00:00","score":3},{"role":"answerer","user_id":"anon_c53109ca394b95cf","comment_id":"cv2jdi6","kind":"comment","text":"I did the front-end nanodegree. $100/month is extremely affordable for practical skills that are looked for by employers. Udacity is also a great resource to network with other students and professionals in the industry. I'd recommend it.","timestamp":"2015-09-15T17:30:20+00:00","score":0},{"role":"OP","user_id":"anon_a3db2a114bae6c48","comment_id":"cv2kr85","kind":"comment","text":"Thanks! I don't know anyone that's used so that's why I'm a little hesitant on the whole thing.","timestamp":"2015-09-15T18:05:06+00:00","score":1},{"role":"answerer","user_id":"anon_c53109ca394b95cf","comment_id":"cv2n2dy","kind":"comment","text":"I would not recommend it if you're already an intermediate full stack web developer, though.","timestamp":"2015-09-15T19:03:14+00:00","score":1},{"role":"OP","user_id":"anon_a3db2a114bae6c48","comment_id":"cv2nw9o","kind":"comment","text":"I'm not haha. I am a wee baby.","timestamp":"2015-09-15T19:23:25+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a3db2a114bae6c48","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c53109ca394b95cf","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cv2jdi6","thanks_reply_id":"cv2kr85","post_score":3,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_0a5b594cc4e1d253","answerer_user_id":"anon_da0b9c95fcad2a32","subreddit":"programming","timestamp":"2015-09-20T19:38:28+00:00","post_id":"3lplsf","question":"Cat is an Animal. But is TakeCare a TakeCare?","preferred_answer":"Great article overall!\n\nA few things:\n\n * You have not introduced `<:`, since this is a tutorial for people that probably don't know much about subtyping, you might want to explicitly define the notation at the beginning.\n \n> Let’s assume we have two functions that are in an inheritance relationship like this:\n\nYou should change the wording to \"subtyping relationship\", there's another instance of this a few lines down.\n\n> No, if U can be *qualified* as T\n\nI'm not familiar with this expression. Perhaps \"treated as a T\"?\n\n> Oh, and because now you can get why the C# syntax has in and out types prefixes to describe contra- and co- variant types.\n\nJust from your article alone, I'm not sure this will be clear to someone only just learning about these concepts. You could also draw a parallel to Java's PECS \"mantra\".\n\n> U is in the subtype ***f*** B => U\n\nI think you wanted to write function here, as you did on the previous two bullet points. The last bullet point doesn't have \"function\" either.\n\nAnd lastly, you capitalize \"Type\" very often and other terms in the beginning. This isn't usually done ;)","full_conversation":[{"role":"OP","user_id":"anon_0a5b594cc4e1d253","comment_id":"3lplsf","kind":"post","text":"Cat is an Animal. But is TakeCare a TakeCare?","timestamp":"2015-09-20T19:38:28+00:00","score":133},{"role":"answerer","user_id":"anon_da0b9c95fcad2a32","comment_id":"cv88qxy","kind":"comment","text":"Great article overall!\n\nA few things:\n\n * You have not introduced `<:`, since this is a tutorial for people that probably don't know much about subtyping, you might want to explicitly define the notation at the beginning.\n \n> Let’s assume we have two functions that are in an inheritance relationship like this:\n\nYou should change the wording to \"subtyping relationship\", there's another instance of this a few lines down.\n\n> No, if U can be *qualified* as T\n\nI'm not familiar with this expression. Perhaps \"treated as a T\"?\n\n> Oh, and because now you can get why the C# syntax has in and out types prefixes to describe contra- and co- variant types.\n\nJust from your article alone, I'm not sure this will be clear to someone only just learning about these concepts. You could also draw a parallel to Java's PECS \"mantra\".\n\n> U is in the subtype ***f*** B => U\n\nI think you wanted to write function here, as you did on the previous two bullet points. The last bullet point doesn't have \"function\" either.\n\nAnd lastly, you capitalize \"Type\" very often and other terms in the beginning. This isn't usually done ;)","timestamp":"2015-09-20T20:21:37+00:00","score":20},{"role":"OP","user_id":"anon_0a5b594cc4e1d253","comment_id":"cv8a0dt","kind":"comment","text":"Thanks for the detailed feedback! I've edited it including some of yours suggestions. Only thing about the \n\n> No, if U can be qualified as T\n\nYours is actually a very good point, but the idea there is to express the 'behavior' trait. Maybe 'qualify' it's not the best verb, but hope it gives the idea :)","timestamp":"2015-09-20T20:52:57+00:00","score":7},{"role":"answerer","user_id":"anon_da0b9c95fcad2a32","comment_id":"cv8as0q","kind":"comment","text":"I guess you could say \"if a U qualifies as a T\", I was just looking at it from a different perspective: I think of types describing operations values support.\n\nBear in mind that I'm not a native speaker either, but since I'm quite familiar with the basics of type theory and this expression confuses me, I would think that it will confuse someone that doesn't know what it *should mean* even more.\n\nEdit: Note that I say \"***a*** U\" and \"a T\", meaning values.","timestamp":"2015-09-20T21:12:48+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0a5b594cc4e1d253","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_da0b9c95fcad2a32","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cv88qxy","thanks_reply_id":"cv8a0dt","post_score":133,"answer_score":20,"preferred_answer_is_top_level":true}} {"user_id":"anon_0de5c90523860895","answerer_user_id":"anon_ec9fa5d76f9ae9da","subreddit":"programming","timestamp":"2015-09-28T11:21:41+00:00","post_id":"3morba","question":"Help me solve this Fenwick tree problem?","preferred_answer":"Sort by the first stat, then use fenwick tree to check for the second.","full_conversation":[{"role":"OP","user_id":"anon_0de5c90523860895","comment_id":"3morba","kind":"post","text":"Help me solve this Fenwick tree problem?","timestamp":"2015-09-28T11:21:41+00:00","score":0},{"role":"answerer","user_id":"anon_ec9fa5d76f9ae9da","comment_id":"cvh3eg6","kind":"comment","text":"Sort by the first stat, then use fenwick tree to check for the second.","timestamp":"2015-09-28T17:41:38+00:00","score":2},{"role":"OP","user_id":"anon_0de5c90523860895","comment_id":"cvh3wc6","kind":"comment","text":"Thanks Josie :) elaborate on your second point?","timestamp":"2015-09-28T17:54:04+00:00","score":1},{"role":"answerer","user_id":"anon_ec9fa5d76f9ae9da","comment_id":"cvh435k","kind":"comment","text":"Who the fuck is Josie.\n\nAlso see the question \"Pinball Ranking\" from CCC for details.","timestamp":"2015-09-28T17:58:43+00:00","score":1},{"role":"OP","user_id":"anon_0de5c90523860895","comment_id":"cvh4klf","kind":"comment","text":"`\"Josie\" == \"Joey\" - \"ey\" + \"sie\"`\nThanks, your code is really helpful; I did a merge sort for the inversion count.","timestamp":"2015-09-28T18:10:46+00:00","score":1},{"role":"answerer","user_id":"anon_ec9fa5d76f9ae9da","comment_id":"cvhh4np","kind":"comment","text":"What is this language where you can subtract strings?","timestamp":"2015-09-28T23:30:13+00:00","score":1},{"role":"OP","user_id":"anon_0de5c90523860895","comment_id":"cvijdus","kind":"comment","text":"lisp","timestamp":"2015-09-29T20:59:28+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_0de5c90523860895","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ec9fa5d76f9ae9da","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cvh3eg6","thanks_reply_id":"cvh3wc6","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_c532fb7184e42d72","answerer_user_id":"anon_f7718c42ef16739e","subreddit":"programming","timestamp":"2015-10-08T03:56:51+00:00","post_id":"3nxhbq","question":"Looking for beta testers: Wat - instant, central, community-built docs","preferred_answer":"In the deleted thread, I meant 'a fellow coder, whose avatar is Calvin'.\n\nTried it, here are a couple of thoughts:\n\n1. The excerpted code cannot be used straight away after a copy-paste because of the '|'\n2. The tour is quite cool, but:\na. it's not obvious what to do after reading a long readme to get back to the wat prompt\nb. when a library has a lot of methods, wat shows for ex.: '85 More...' - it's not obvious what do to to browse what's after.\n\nCheers.","full_conversation":[{"role":"OP","user_id":"anon_c532fb7184e42d72","comment_id":"3nxhbq","kind":"post","text":"Looking for beta testers: Wat - instant, central, community-built docs","timestamp":"2015-10-08T03:56:51+00:00","score":1},{"role":"answerer","user_id":"anon_f7718c42ef16739e","comment_id":"cvsv8eo","kind":"comment","text":"In the deleted thread, I meant 'a fellow coder, whose avatar is Calvin'.\n\nTried it, here are a couple of thoughts:\n\n1. The excerpted code cannot be used straight away after a copy-paste because of the '|'\n2. The tour is quite cool, but:\na. it's not obvious what to do after reading a long readme to get back to the wat prompt\nb. when a library has a lot of methods, wat shows for ex.: '85 More...' - it's not obvious what do to to browse what's after.\n\nCheers.","timestamp":"2015-10-08T19:58:55+00:00","score":1},{"role":"OP","user_id":"anon_c532fb7184e42d72","comment_id":"cvsx16v","kind":"comment","text":"Thanks and good points. I'll make the tour clearer, and I'll have to figure out something on the code. I do want some sort of delimiter to show its code. Maybe if I ANSI-color a space (\" \"), I can make a bar in that way.","timestamp":"2015-10-08T20:41:47+00:00","score":1},{"role":"answerer","user_id":"anon_f7718c42ef16739e","comment_id":"cvt21s3","kind":"comment","text":"Or make it just another colour combo without additional characters.","timestamp":"2015-10-08T22:52:32+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c532fb7184e42d72","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f7718c42ef16739e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cvsv8eo","thanks_reply_id":"cvsx16v","post_score":1,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_8caf8484a47549a2","answerer_user_id":"anon_6c484b8f865784e5","subreddit":"programming","timestamp":"2015-10-12T15:58:22+00:00","post_id":"3ogqkn","question":"Like many of you, I've done a lot of design in my development career. I'm putting together some materials to help developers learn about design and UI. Would you consider helping me by filling out this short survey?","preferred_answer":"Your survey is pigeonholing and yucky.","full_conversation":[{"role":"OP","user_id":"anon_8caf8484a47549a2","comment_id":"3ogqkn","kind":"post","text":"Like many of you, I've done a lot of design in my development career. I'm putting together some materials to help developers learn about design and UI. Would you consider helping me by filling out this short survey?","timestamp":"2015-10-12T15:58:22+00:00","score":4},{"role":"answerer","user_id":"anon_6c484b8f865784e5","comment_id":"cvxmbny","kind":"comment","text":"Your survey is pigeonholing and yucky.","timestamp":"2015-10-13T01:06:22+00:00","score":0},{"role":"OP","user_id":"anon_8caf8484a47549a2","comment_id":"cvxohj2","kind":"comment","text":"Thanks for the feedback. :) It may be, but I'd like to hear why. What could I do better, and how could I ask better questions?","timestamp":"2015-10-13T02:01:38+00:00","score":1},{"role":"answerer","user_id":"anon_6c484b8f865784e5","comment_id":"cvxoupl","kind":"comment","text":"What is your favorite ice cream flavor?\na) chocolate\nb) snot\nc) I don't like ice cream\n\nIm selling magazines, let me spam your inbox.","timestamp":"2015-10-13T02:11:22+00:00","score":0},{"role":"OP","user_id":"anon_8caf8484a47549a2","comment_id":"cvy2483","kind":"comment","text":"Hmmm. I don't agree, but clearly you're not up for intelligent discussion on the topic, so I'll leave it at that.","timestamp":"2015-10-13T12:39:02+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_8caf8484a47549a2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6c484b8f865784e5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cvxmbny","thanks_reply_id":"cvxohj2","post_score":4,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_ef1fff4c1c07889f","answerer_user_id":"anon_996843df7a44e4c8","subreddit":"programming","timestamp":"2015-10-16T05:33:20+00:00","post_id":"3oyes0","question":"Need help with Dictionary Search program, can't compare to objects","preferred_answer":"lol\n\nedit: Another project by this person http://puu.sh/kM0vO/5558a72ac8.png \"README.cpp\"","full_conversation":[{"role":"OP","user_id":"anon_ef1fff4c1c07889f","comment_id":"3oyes0","kind":"post","text":"Need help with Dictionary Search program, can't compare to objects","timestamp":"2015-10-16T05:33:20+00:00","score":0},{"role":"answerer","user_id":"anon_996843df7a44e4c8","comment_id":"cw1kqmx","kind":"comment","text":"lol\n\nedit: Another project by this person http://puu.sh/kM0vO/5558a72ac8.png \"README.cpp\"","timestamp":"2015-10-16T05:41:12+00:00","score":3},{"role":"OP","user_id":"anon_ef1fff4c1c07889f","comment_id":"cw1kywb","kind":"comment","text":"Thanks, real constructive.","timestamp":"2015-10-16T05:52:49+00:00","score":1},{"role":"answerer","user_id":"anon_996843df7a44e4c8","comment_id":"cw1l3zw","kind":"comment","text":"Apologies, me being cynical. This is the incorrect subreddit for questions like this, I would checkout /r/learnprogramming as they may provide better help.","timestamp":"2015-10-16T06:00:08+00:00","score":2},{"role":"OP","user_id":"anon_ef1fff4c1c07889f","comment_id":"cw1l9ur","kind":"comment","text":"No problem, I'm a first/second year CS major at a community college, so I know my code is pretty ugly and not very sophisticated but I'm learning. Already posted over there, just wanted to post to a bigger sub in case my post doesn't get any attention over there, but thanks anyway :)","timestamp":"2015-10-16T06:08:31+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ef1fff4c1c07889f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_996843df7a44e4c8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cw1kqmx","thanks_reply_id":"cw1kywb","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_289feab664bb55fa","answerer_user_id":"anon_0a48cbd7ba398a0d","subreddit":"programming","timestamp":"2015-11-03T15:09:52+00:00","post_id":"3rcys9","question":"How viable do you guys think the emergence of cross platform development tools are in the workplace? - Opinions?","preferred_answer":"That is a very broad question, which platforms are you talking about?\n\nA lot of developers have been cross-platform for a long time by using tools like Java, Python, etc. and doing web UIs.\n\nIt seems like you're mostly talking about mobile development? Seems to me that's the main place these days where cross-platform is still a headache. (It's also the only place I'm aware of where we can talk about the \"emergence\" of cross-platform tools as something recent.)","full_conversation":[{"role":"OP","user_id":"anon_289feab664bb55fa","comment_id":"3rcys9","kind":"post","text":"How viable do you guys think the emergence of cross platform development tools are in the workplace? - Opinions?","timestamp":"2015-11-03T15:09:52+00:00","score":0},{"role":"answerer","user_id":"anon_0a48cbd7ba398a0d","comment_id":"cwmwy2x","kind":"comment","text":"That is a very broad question, which platforms are you talking about?\n\nA lot of developers have been cross-platform for a long time by using tools like Java, Python, etc. and doing web UIs.\n\nIt seems like you're mostly talking about mobile development? Seems to me that's the main place these days where cross-platform is still a headache. (It's also the only place I'm aware of where we can talk about the \"emergence\" of cross-platform tools as something recent.)","timestamp":"2015-11-03T15:13:49+00:00","score":3},{"role":"OP","user_id":"anon_289feab664bb55fa","comment_id":"cwmy6aj","kind":"comment","text":"Thanks for the reply. Yeah I was chatting more in terms of mobile development. Was wondering what your opinions of the various development tools and methodologies are? Also, can you give some personal experience?","timestamp":"2015-11-03T15:46:07+00:00","score":1},{"role":"answerer","user_id":"anon_0a48cbd7ba398a0d","comment_id":"cwn02xd","kind":"comment","text":"I don't know myself. Personally, I avoid mobile development, and platform lock-in is one the main reasons why. So, I am interested in what people have to say here about ways to overcome the problem. I did spend some time researching the various solutions that are out there a year or two ago and I didn't find any of them particularly attractive.","timestamp":"2015-11-03T16:32:34+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_289feab664bb55fa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0a48cbd7ba398a0d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cwmwy2x","thanks_reply_id":"cwmy6aj","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_29eb4d9c42558c0d","answerer_user_id":"anon_470fb80f4f164634","subreddit":"programming","timestamp":"2015-11-05T21:59:03+00:00","post_id":"3ron6y","question":"What do you think of my first website? Feedback?","preferred_answer":"Good start with some modern concepts.\n\nSome design critique,\n\nPlay around with transparency and background colors of your modals.\n\nGrab some more neutral colors, or colors that are nice to put text on from and leverage letting the background bleed in slightly.\n\nNow I'm no designer, but maybe something [like this](http://i.imgur.com/P4jPYD7.jpg?1) would be a little easier on the eyes and give the block in the middle more of a *place* on the page instead of just like BOOM! Here it is. It's also completely doable with just CSS. If you don't know how to do transparency with colors, you can use\n\nrgba(0,0,0,0.5); instead of hex colors where the 0.5 is the transparency and the 0s are R,G, and B respectively.\n\nBut it's a great start and the code that's there looks clean.\n\nThe only other thing is maybe start playing around with loading JSON files to get your states and other large options lists.\n\n[This StackOverflow question has the gist of what I'm talking about without using a framework other than JQuery.](http://stackoverflow.com/questions/5918144/how-can-i-use-json-data-to-populate-the-options-of-a-select-box)\n\n\nThis is probably not the sub for this kind of submission though since it's not really \"programming\" related, more design related.","full_conversation":[{"role":"OP","user_id":"anon_29eb4d9c42558c0d","comment_id":"3ron6y","kind":"post","text":"What do you think of my first website? Feedback?","timestamp":"2015-11-05T21:59:03+00:00","score":0},{"role":"answerer","user_id":"anon_470fb80f4f164634","comment_id":"cwpykn7","kind":"comment","text":"Good start with some modern concepts.\n\nSome design critique,\n\nPlay around with transparency and background colors of your modals.\n\nGrab some more neutral colors, or colors that are nice to put text on from and leverage letting the background bleed in slightly.\n\nNow I'm no designer, but maybe something [like this](http://i.imgur.com/P4jPYD7.jpg?1) would be a little easier on the eyes and give the block in the middle more of a *place* on the page instead of just like BOOM! Here it is. It's also completely doable with just CSS. If you don't know how to do transparency with colors, you can use\n\nrgba(0,0,0,0.5); instead of hex colors where the 0.5 is the transparency and the 0s are R,G, and B respectively.\n\nBut it's a great start and the code that's there looks clean.\n\nThe only other thing is maybe start playing around with loading JSON files to get your states and other large options lists.\n\n[This StackOverflow question has the gist of what I'm talking about without using a framework other than JQuery.](http://stackoverflow.com/questions/5918144/how-can-i-use-json-data-to-populate-the-options-of-a-select-box)\n\n\nThis is probably not the sub for this kind of submission though since it's not really \"programming\" related, more design related.","timestamp":"2015-11-05T22:40:39+00:00","score":1},{"role":"OP","user_id":"anon_29eb4d9c42558c0d","comment_id":"cwq0gn8","kind":"comment","text":"Well, first of all, I'd like to thank you a lot for the design, I will definitely be doing some improvements! But I'd just like to point out that I was actually hoping to get feedback for the idea itself and not the design of the website and that's why I posted it here. Do you know a more adequate /r/ doe?","timestamp":"2015-11-05T23:30:02+00:00","score":1},{"role":"answerer","user_id":"anon_470fb80f4f164634","comment_id":"cwq21e3","kind":"comment","text":"The idea itself is interesting, but seems done already with things like OAuth, and auto-fill inside the browsers. \n\nYou're also going to need to get some kind of endorsement for a bigger site to use it/adopt it.\n\nI don't really know how you'd improve the idea though, sorry :(\n\nNot sure what sub you'd go to, but I'd be interested if you found one!","timestamp":"2015-11-06T00:13:30+00:00","score":1},{"role":"OP","user_id":"anon_29eb4d9c42558c0d","comment_id":"cwqg9s6","kind":"comment","text":"I think I'll be moving on to r/webdev! Thank you :)","timestamp":"2015-11-06T07:51:47+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_29eb4d9c42558c0d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_470fb80f4f164634","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cwpykn7","thanks_reply_id":"cwq0gn8","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_c2949320d27fd07c","answerer_user_id":"anon_b45e7d3193a1dc54","subreddit":"programming","timestamp":"2015-11-28T03:12:11+00:00","post_id":"3uji8f","question":"What programming language would I need to learn to make amazing interactive apps like this?","preferred_answer":"HTML5 and Javascript.","full_conversation":[{"role":"OP","user_id":"anon_c2949320d27fd07c","comment_id":"3uji8f","kind":"post","text":"What programming language would I need to learn to make amazing interactive apps like this?","timestamp":"2015-11-28T03:12:11+00:00","score":0},{"role":"answerer","user_id":"anon_b45e7d3193a1dc54","comment_id":"cxfdhhd","kind":"comment","text":"HTML5 and Javascript.","timestamp":"2015-11-28T03:15:09+00:00","score":6},{"role":"OP","user_id":"anon_c2949320d27fd07c","comment_id":"cxfdt99","kind":"comment","text":"Awesome thanks! I'm really interested in Node.js and it's cross platform and serverside potential, should I start with basic Javascript or could I make do with starting with Node.js basic tutorials?","timestamp":"2015-11-28T03:26:22+00:00","score":2},{"role":"answerer","user_id":"anon_b45e7d3193a1dc54","comment_id":"cxfdv77","kind":"comment","text":"Start with Javascript. Node.js will make more sense when you understand what it's built on.","timestamp":"2015-11-28T03:28:16+00:00","score":7}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c2949320d27fd07c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b45e7d3193a1dc54","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cxfdhhd","thanks_reply_id":"cxfdt99","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_c7ebc6af3d873b3b","answerer_user_id":"anon_01de11ad6ae32b2e","subreddit":"programming","timestamp":"2015-11-30T12:10:51+00:00","post_id":"3uudbn","question":"What text books tell you about inheritance in OOP is wrong","preferred_answer":"http://i.imgur.com/bGxsJiJ.png\n\nYour website is unreadable in portrait format.","full_conversation":[{"role":"OP","user_id":"anon_c7ebc6af3d873b3b","comment_id":"3uudbn","kind":"post","text":"What text books tell you about inheritance in OOP is wrong","timestamp":"2015-11-30T12:10:51+00:00","score":22},{"role":"answerer","user_id":"anon_01de11ad6ae32b2e","comment_id":"cxid5ae","kind":"comment","text":"http://i.imgur.com/bGxsJiJ.png\n\nYour website is unreadable in portrait format.","timestamp":"2015-11-30T21:42:24+00:00","score":2},{"role":"OP","user_id":"anon_c7ebc6af3d873b3b","comment_id":"cxiqiml","kind":"comment","text":"Thanks for reporting! Were you viewing this in iPad?","timestamp":"2015-12-01T03:39:53+00:00","score":1},{"role":"answerer","user_id":"anon_01de11ad6ae32b2e","comment_id":"cxjchvw","kind":"comment","text":"No, I have a second monitor I use for reading articles in portrait mode while I work on my primary monitor in landscape mode. I don't know how common that really is, but there are several people at work that do the same.","timestamp":"2015-12-01T18:11:34+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c7ebc6af3d873b3b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_01de11ad6ae32b2e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cxid5ae","thanks_reply_id":"cxiqiml","post_score":22,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a33ebcdbbaf6d14c","answerer_user_id":"anon_8aea824f38e98bbd","subreddit":"programming","timestamp":"2015-12-15T22:25:47+00:00","post_id":"3x006v","question":"I've created a very simple Python static website generator. What do you think so far?","preferred_answer":"Nice and simple. You're doing good things and I will only provide the following as thought points, so know my aim is not to tear your work down here at all, just to get you thinking about things. There's no right or wrong way to do this if it meets your needs, so don't read too much into it.\n\nI will caution that you've essentially written yourself into a templating engine you don't want to make. You can do things that simple with a handful of already existent templating engines, but the moment you want to expand this to handle any other cases, you will be stuck adding features. If you want to do this, great, don't mind me =c)\n\nI do like the simple structured layout. A thing I have asked the last three static site generators I've tried to use: how do you recommend handling a favicon, or robots.txt? How would I include a PHP script that I use to generate a forum signature for other sites? (This was a thing a long time ago, maybe still is.)","full_conversation":[{"role":"OP","user_id":"anon_a33ebcdbbaf6d14c","comment_id":"3x006v","kind":"post","text":"I've created a very simple Python static website generator. What do you think so far?","timestamp":"2015-12-15T22:25:47+00:00","score":0},{"role":"answerer","user_id":"anon_8aea824f38e98bbd","comment_id":"cy0dsgx","kind":"comment","text":"Nice and simple. You're doing good things and I will only provide the following as thought points, so know my aim is not to tear your work down here at all, just to get you thinking about things. There's no right or wrong way to do this if it meets your needs, so don't read too much into it.\n\nI will caution that you've essentially written yourself into a templating engine you don't want to make. You can do things that simple with a handful of already existent templating engines, but the moment you want to expand this to handle any other cases, you will be stuck adding features. If you want to do this, great, don't mind me =c)\n\nI do like the simple structured layout. A thing I have asked the last three static site generators I've tried to use: how do you recommend handling a favicon, or robots.txt? How would I include a PHP script that I use to generate a forum signature for other sites? (This was a thing a long time ago, maybe still is.)","timestamp":"2015-12-15T23:49:10+00:00","score":1},{"role":"OP","user_id":"anon_a33ebcdbbaf6d14c","comment_id":"cy1kduf","kind":"comment","text":"Hi, thanks for the feedback. \n\nI understand where you are coming from with your comment about the template engine. However, I think I'm going to continue writing my own as it's increasing my understanding of how they work.\n\nIn terms of favicons, php etc, I plan to implement the creation of custom tags, so you could create a tag {{ favicon }} and then this will be substituted with the relevant template input. Likewise for php.","timestamp":"2015-12-16T22:49:02+00:00","score":2},{"role":"answerer","user_id":"anon_8aea824f38e98bbd","comment_id":"cy2ug68","kind":"comment","text":"So what I mean by favicon is, I have a favicon.ico file, and it absolutely must be served in the root of the site. What, if anything, does your site generator allow me to facilitate this need with? It can't be in website -> images or anything. Just website.\n\nIf all your site generator can do is output html, you don't have a site generator, you have a templating engine. =c) Keep on learning, don't get me wrong here, just keep in mind where your use case is, even if that use is just for you.","timestamp":"2015-12-18T00:17:19+00:00","score":1},{"role":"OP","user_id":"anon_a33ebcdbbaf6d14c","comment_id":"cy38ni8","kind":"comment","text":"Okay, I think I understand where you are coming from. The application creates several directories such as 'images', 'css', 'scss' 'scripts'. However these are just for user convenience. The application only uses the 'templates' directory to generate the site. So these other directories can be deleted or amended and it will have no impact of the application.\n\nThe favicon file can be in the root of the site, and provided that the input to the template has the correct link, everything will work as expected. Same goes for any other type of content. If you were so inclined, scripts could be put in the 'css' directory and the application wouldn't care providing that the links were updated to reflect this change!\n\nIf you have any suggestions for a better implementation I'm more than happy to look into it.\n\nThanks.","timestamp":"2015-12-18T09:15:48+00:00","score":1},{"role":"answerer","user_id":"anon_8aea824f38e98bbd","comment_id":"cy3dnx1","kind":"comment","text":"So what you're saying is you have the site's directory, and you have the templates directory, and you're outputting the results of the templates directory into the site's directory as it's output? That seems problematic, as you could not overwrite just about any important file and you now have to serve the site out of your repo. Thoughts?","timestamp":"2015-12-18T14:04:19+00:00","score":1},{"role":"OP","user_id":"anon_a33ebcdbbaf6d14c","comment_id":"cy41qf7","kind":"comment","text":"I hadn't considered that issue. I've now amended the code so that the generated files are now saved to a \"generated\" directory.","timestamp":"2015-12-19T01:16:34+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_a33ebcdbbaf6d14c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8aea824f38e98bbd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cy0dsgx","thanks_reply_id":"cy1kduf","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_85453142b53529fa","answerer_user_id":"anon_8d53642e5ea6d31a","subreddit":"programming","timestamp":"2015-12-16T20:25:39+00:00","post_id":"3x4f2b","question":"This was my high school CS midterm exam program. Do you think that writing a program in a set amount of time is good enough to asess knowledge of programming?","preferred_answer":"The best way to measure the ability to write a program is to have someone write a program. And we need to have a deliverable that is either in the past (aka a portfolio) or somewhat soon in the future (an exam). So, it might not be particularly good by some definitions, but it's pretty good in the sense that it exists and it's loosely correlated with some sense of 'knowledge of programming'.\n\nSome notes: \n\n`main.menu` recurses w/ no tail optimization afaik. Better to put this in a `while` loop. Menu could also be written using [`cmd`](https://docs.python.org/3.5/library/cmd.html).\n\nDon't check in `__pycache__`. Don't `raise SystemExit`; instead call `sys.exit(0)`.\n\njson files are not databases.\n\n`games.menu` also recurses when it should loop.\n\nIf you wrote this in an hour or so as a high school student, that's pretty cool. I'm not sure of the level expected in high schools, but i imagine this could be difficult enough to separate the chaff ...\n\n( •_•)\n\n( •_•)>⌐■-■\n\n(⌐■_■)\n\nfrom datwheattho.\n\n**YEEEEAAAHHH!**","full_conversation":[{"role":"OP","user_id":"anon_85453142b53529fa","comment_id":"3x4f2b","kind":"post","text":"This was my high school CS midterm exam program. Do you think that writing a program in a set amount of time is good enough to asess knowledge of programming?","timestamp":"2015-12-16T20:25:39+00:00","score":0},{"role":"answerer","user_id":"anon_8d53642e5ea6d31a","comment_id":"cy1glvm","kind":"comment","text":"The best way to measure the ability to write a program is to have someone write a program. And we need to have a deliverable that is either in the past (aka a portfolio) or somewhat soon in the future (an exam). So, it might not be particularly good by some definitions, but it's pretty good in the sense that it exists and it's loosely correlated with some sense of 'knowledge of programming'.\n\nSome notes: \n\n`main.menu` recurses w/ no tail optimization afaik. Better to put this in a `while` loop. Menu could also be written using [`cmd`](https://docs.python.org/3.5/library/cmd.html).\n\nDon't check in `__pycache__`. Don't `raise SystemExit`; instead call `sys.exit(0)`.\n\njson files are not databases.\n\n`games.menu` also recurses when it should loop.\n\nIf you wrote this in an hour or so as a high school student, that's pretty cool. I'm not sure of the level expected in high schools, but i imagine this could be difficult enough to separate the chaff ...\n\n( •_•)\n\n( •_•)>⌐■-■\n\n(⌐■_■)\n\nfrom datwheattho.\n\n**YEEEEAAAHHH!**","timestamp":"2015-12-16T21:17:56+00:00","score":9},{"role":"OP","user_id":"anon_85453142b53529fa","comment_id":"cy1iqow","kind":"comment","text":"Thanks man! and yeah I know that json files aren't databases. I just called it that for simplicity's sake. How would i use cmd?","timestamp":"2015-12-16T22:07:51+00:00","score":3},{"role":"answerer","user_id":"anon_8d53642e5ea6d31a","comment_id":"cy1j5o3","kind":"comment","text":"`game.menu` could be:\n\n import cmd\n\n class Game(cmd.Cmd):\n intro = \"datwheattho's sweet game\"\n prompt = \"(sup?)\"\n def do_gtt(self, args):\n def_first()\n def do_unscramble(self, args):\n scrambled()\n def do_q(self, args):\n \"Quit\"\n return True\n\nThen you instantiate it when you need to run the game loop:\n\n g = Game()\n \nAnd you run the game:\n\n g.cmdloop()\n\nAnd you'll get:\n\n datwheattho's sweet game\n (sup?)gtt\n ...\n (sup?)q","timestamp":"2015-12-16T22:18:06+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_85453142b53529fa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8d53642e5ea6d31a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cy1glvm","thanks_reply_id":"cy1iqow","post_score":0,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_22f6b091347d8916","answerer_user_id":"anon_8000f0ddc8506e65","subreddit":"programming","timestamp":"2016-01-04T14:21:09+00:00","post_id":"3zey0z","question":"After Decades of Neglect, Functional Programming is Finally Going Mainstream. Why Now?","preferred_answer":"Because Martin Odersky, after designing the Funnel and Pizza alternative JVM languages while also developing several versions of the Java compiler based on the GJ (Generic Java) design he did, took the lessons from all of them and created Scala. Some forward-thinking startups, such as Twitter, were feeling the scaling pain of Ruby on Rails, but didn't relish the pain of switching to a Java stack, which would scale better but, e.g. didn't even have lambdas. So they bet early on the new OO/FP language.\n\nNow here we are, with people like me working with one of the co-authors of \"Functional Programming in Scala\" at a Fortune 100 company, because we want to develop correct software—and I'll go ahead and say it again: total typed referentially transparent functional programming is the way you write correct software. That's not a statement of opinion. You can _extend_ it to logic-functional programming as in [Mercury](https://www.mercurylang.org/). But leaving out a (good) type system or referential transparency (whether via an effect system as such, monads, linear types, whatever) is contraindicated.\n\nIn other words, Martin did a necessary, proper, and great thing in designing Scala as an OO/FP language, to make possible and even encourage an incremental adoption path, and I don't mean to minimize that. What I hope people do is keep incrementing until they're doing total referentially transparent typed functional programming, whether in Scala or something else.","full_conversation":[{"role":"OP","user_id":"anon_22f6b091347d8916","comment_id":"3zey0z","kind":"post","text":"After Decades of Neglect, Functional Programming is Finally Going Mainstream. Why Now?","timestamp":"2016-01-04T14:21:09+00:00","score":29},{"role":"answerer","user_id":"anon_8000f0ddc8506e65","comment_id":"cyllyou","kind":"comment","text":"Because Martin Odersky, after designing the Funnel and Pizza alternative JVM languages while also developing several versions of the Java compiler based on the GJ (Generic Java) design he did, took the lessons from all of them and created Scala. Some forward-thinking startups, such as Twitter, were feeling the scaling pain of Ruby on Rails, but didn't relish the pain of switching to a Java stack, which would scale better but, e.g. didn't even have lambdas. So they bet early on the new OO/FP language.\n\nNow here we are, with people like me working with one of the co-authors of \"Functional Programming in Scala\" at a Fortune 100 company, because we want to develop correct software—and I'll go ahead and say it again: total typed referentially transparent functional programming is the way you write correct software. That's not a statement of opinion. You can _extend_ it to logic-functional programming as in [Mercury](https://www.mercurylang.org/). But leaving out a (good) type system or referential transparency (whether via an effect system as such, monads, linear types, whatever) is contraindicated.\n\nIn other words, Martin did a necessary, proper, and great thing in designing Scala as an OO/FP language, to make possible and even encourage an incremental adoption path, and I don't mean to minimize that. What I hope people do is keep incrementing until they're doing total referentially transparent typed functional programming, whether in Scala or something else.","timestamp":"2016-01-04T16:12:05+00:00","score":16},{"role":"OP","user_id":"anon_22f6b091347d8916","comment_id":"cylmhdo","kind":"comment","text":"Thanks for the thoughtful comment. I didn't talk about this in the post, but you can get referentially transparent in JS/React/Redux with https://github.com/yelouafi/redux-saga or https://github.com/salsita/redux-side-effects (disclosure: my colleague wrote the latter). The one missing piece is typing. I'm interested to know what a Scala (or Haskell) person thinks about TypeScript or Flow annotations.","timestamp":"2016-01-04T16:26:07+00:00","score":3},{"role":"answerer","user_id":"anon_8000f0ddc8506e65","comment_id":"cylofjp","kind":"comment","text":"> you can get referentially transparent in JS/React/Redux with https://github.com/yelouafi/redux-saga or https://github.com/salsita/redux-side-effects (disclosure: my colleague wrote the latter).\n\nNice! I'll have to investigate them later. I'm definitely interested in the [scala-react](https://github.com/japgolly/scalajs-react) ecosystem, especially with scalaz. But maybe one of the above projects would enable better integration with other offerings in the React ecosystem. I need to think about this.\n\n> I'm interested to know what a Scala (or Haskell) person thinks about TypeScript or Flow annotations.\n\nUnfortunately, I know nothing about Flow annotations.\n\nTypeScript is a testament to Anders Hejlberg and team's genius and hard work. It's gone, in a very short time, from being essentially the thinnest typed wrapper around JS you could get away with, with essentially every real-world wrapped framework in [DefinitelyTyped](http://definitelytyped.org/) being littered with `any`s, to supporting union types, intersection types, etc. while remaining within the ECMAScript ambit in terms of syntax, tooling, etc. I'm a fan!\n\nSimilarly, Clojure developers have [Typed Clojure](http://typedclojure.org/) if they want it, thanks to Ambrose Bonnaire Sergeant, and Racket developers have [Typed Racket](http://docs.racket-lang.org/ts-guide/) thanks to Sam Tobin-Hochstadt. These are even more ambitious type systems than TypeScript's (refinement types are a subset of full-on dependent types!) and yet they sit atop languages never intended to support them. These are _stunning_ achievements.\n\nOf course, as a Scala developer I pay more attention to [Scala.js](http://www.scala-js.org/), and _real_ purists like [PureScript](http://www.purescript.org/). :-D\n\nMy bottom line, really, is this: people are figuring out the following don't scale in either size of codebase or team:\n\n 1. Unconstrained mutation\n 2. Unconstrained I/O\n 3. Unconstrained concurrency (raw pthreads, locks, monitors...)\n 4. Unconstrained types (== \"what must be true about your code,\" via the Curry-Howard Isomorphism)\n\nEverything from Go's limited abstraction tools and \"goroutines\" (AKA Hoare's CSP) to Haskell's type system, laziness, and insistence on referential transparency is intended to address some or all of these. The Curry-Howard Isomorphism makes me a type absolutist, but I get why people enjoy dynamic typing and keep my installations of Clozure CL, SBCL, Racket, and Gambit-C up to date because nostalgia. So it makes me happy that people are taking Clojure seriously (immutability! Time as a first-class concept!), TypeScript seriously (hey! Types don't have to suck even in JavaScript!), etc. and if it leads to a Rust, Scala, Haskell, PureScript, Idris (fingers crossed!) later, that's _awesome_!\n\nAnd hey, if you land on, e.g. TypeScript 1.6 and \"only\" get union and intersection types, and it's comfortable because it's \"still just ECMAScript\" and the tooling rocks, I still think that's _very, very good_.\n\nAnd if you stick with (untyped) Clojure, immutability is still front and center, but I may wonder why you'd forego Typed Clojure, which is _awesome_. :-D","timestamp":"2016-01-04T17:17:26+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_22f6b091347d8916","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8000f0ddc8506e65","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cyllyou","thanks_reply_id":"cylmhdo","post_score":29,"answer_score":16,"preferred_answer_is_top_level":true}} {"user_id":"anon_6491359dff316f7b","answerer_user_id":"anon_191e2e32323f3c77","subreddit":"programming","timestamp":"2016-01-08T13:38:04+00:00","post_id":"4013v9","question":"Where can I learn java or any other OOP programming concepts right from beginning ?","preferred_answer":"Give a try to https://www.codecademy.com/","full_conversation":[{"role":"OP","user_id":"anon_6491359dff316f7b","comment_id":"4013v9","kind":"post","text":"Where can I learn java or any other OOP programming concepts right from beginning ?","timestamp":"2016-01-08T13:38:04+00:00","score":0},{"role":"answerer","user_id":"anon_191e2e32323f3c77","comment_id":"cyqkjyl","kind":"comment","text":"Give a try to https://www.codecademy.com/","timestamp":"2016-01-08T13:51:54+00:00","score":0},{"role":"OP","user_id":"anon_6491359dff316f7b","comment_id":"cyqkqlw","kind":"comment","text":"Thank you.","timestamp":"2016-01-08T13:58:44+00:00","score":1},{"role":"answerer","user_id":"anon_191e2e32323f3c77","comment_id":"cyqm1b5","kind":"comment","text":"Didn't know why i was getting downvoted but i just checked and the java OOP course is for premium members only, my bad i didn't know.","timestamp":"2016-01-08T14:41:05+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6491359dff316f7b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_191e2e32323f3c77","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cyqkjyl","thanks_reply_id":"cyqkqlw","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_88ac5649df290444","answerer_user_id":"anon_4399215740496ceb","subreddit":"programming","timestamp":"2016-01-08T18:25:17+00:00","post_id":"402bni","question":"Statty.js -- probability and stats for node.js. What distributions should I add next?","preferred_answer":"There is [jStat](https://github.com/jstat/jstat). It seems to have all of the features. Also, there are better error function implementations out there.","full_conversation":[{"role":"OP","user_id":"anon_88ac5649df290444","comment_id":"402bni","kind":"post","text":"Statty.js -- probability and stats for node.js. What distributions should I add next?","timestamp":"2016-01-08T18:25:17+00:00","score":0},{"role":"answerer","user_id":"anon_4399215740496ceb","comment_id":"cyr0mky","kind":"comment","text":"There is [jStat](https://github.com/jstat/jstat). It seems to have all of the features. Also, there are better error function implementations out there.","timestamp":"2016-01-08T20:27:07+00:00","score":1},{"role":"OP","user_id":"anon_88ac5649df290444","comment_id":"cyr3xo8","kind":"comment","text":"Thanks for the feedback. Maybe jStat just needs better docs but I saw it, and having used scipy.stats, was not impressed. Regarding \"there are better error function implementations out there\" care to point me at one?","timestamp":"2016-01-08T21:44:36+00:00","score":1},{"role":"answerer","user_id":"anon_4399215740496ceb","comment_id":"cyr83ok","kind":"comment","text":"As jsprogrammer indicated, it would be great to have a library with an excellent API and I am sure a JS version of scipy.stats would be awesome. \n\nYour implementation of erf uses a Taylor series with 25 terms. Many implementations use Chebyshev series. Here is a [Fortran-erf](http://www.netlib.no/netlib/slatec/fnlib/derf.f). There must be js versions too. Here is another approach with rational functions: http://www.ams.org/journals/mcom/1969-23-107/S0025-5718-1969-0247736-4/S0025-5718-1969-0247736-4.pdf.","timestamp":"2016-01-08T23:31:48+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_88ac5649df290444","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4399215740496ceb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cyr0mky","thanks_reply_id":"cyr3xo8","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_a684d20aad757d9c","answerer_user_id":"anon_da56137a2b418501","subreddit":"programming","timestamp":"2016-01-13T08:40:46+00:00","post_id":"40r67b","question":"How to call content page method from master page in ASP.NET","preferred_answer":"You should consider switching to MVC. What you are doing (from what I can understand) would be a lot easier/simpler.","full_conversation":[{"role":"OP","user_id":"anon_a684d20aad757d9c","comment_id":"40r67b","kind":"post","text":"How to call content page method from master page in ASP.NET","timestamp":"2016-01-13T08:40:46+00:00","score":0},{"role":"answerer","user_id":"anon_da56137a2b418501","comment_id":"cywm21d","kind":"comment","text":"You should consider switching to MVC. What you are doing (from what I can understand) would be a lot easier/simpler.","timestamp":"2016-01-13T14:20:08+00:00","score":2},{"role":"OP","user_id":"anon_a684d20aad757d9c","comment_id":"cyxjmfx","kind":"comment","text":"thanks for your advice.but this one for web forms.i m not familiar with MVC. I will try that.","timestamp":"2016-01-14T04:07:40+00:00","score":0},{"role":"answerer","user_id":"anon_da56137a2b418501","comment_id":"cyxtumq","kind":"comment","text":"Yeah, I just mean eventually. WebForms has been obsolete for a while.","timestamp":"2016-01-14T12:41:52+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a684d20aad757d9c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_da56137a2b418501","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cywm21d","thanks_reply_id":"cyxjmfx","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_e10d673920a62882","answerer_user_id":"anon_5943cc6189f7d105","subreddit":"programming","timestamp":"2016-01-20T07:45:28+00:00","post_id":"41td3e","question":"Why you should not develop apps for Windows 10","preferred_answer":"Do you twitter? Most of Microsoft staff live on Twitter. Msg some of the reporters like Paul Thurrott or Mary Jo Foley, they'll help you find the right folks.","full_conversation":[{"role":"OP","user_id":"anon_e10d673920a62882","comment_id":"41td3e","kind":"post","text":"Why you should not develop apps for Windows 10","timestamp":"2016-01-20T07:45:28+00:00","score":2595},{"role":"answerer","user_id":"anon_5943cc6189f7d105","comment_id":"cz547r3","kind":"comment","text":"Do you twitter? Most of Microsoft staff live on Twitter. Msg some of the reporters like Paul Thurrott or Mary Jo Foley, they'll help you find the right folks.","timestamp":"2016-01-20T12:35:28+00:00","score":20},{"role":"OP","user_id":"anon_e10d673920a62882","comment_id":"cz54oty","kind":"comment","text":"Thanks, maybe I'll try that. But it shouldn't work that way.","timestamp":"2016-01-20T12:58:18+00:00","score":56},{"role":"answerer","user_id":"anon_5943cc6189f7d105","comment_id":"cz5qo6q","kind":"comment","text":"I'm sorry if I came across poorly, I was on mobile and really groggy.\n\nThe point I was trying to impart is that you don't have to stop at a crappy experience with inept service people. It should have been immediately apparent with a message like 'it's been a week and you've said nothing, I'll assume you're happy now' that these folks really can't do anything for you.\n\nIf you need help finding the right people, let me know. Something like this issue you're experiencing might be a very big unreported story, and you could help get the word out about it.","timestamp":"2016-01-20T22:06:24+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e10d673920a62882","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5943cc6189f7d105","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cz547r3","thanks_reply_id":"cz54oty","post_score":2595,"answer_score":20,"preferred_answer_is_top_level":false}} {"user_id":"anon_81bdb3a588501d32","answerer_user_id":"anon_d15e3c7997863562","subreddit":"programming","timestamp":"2016-01-21T10:28:01+00:00","post_id":"41zdg6","question":"How to apply Metro UI theme using Visual Studio 2013- Winforms C#","preferred_answer":"Very clear tutorial, well done. It would have been interesting though if you'd shown off some of those controls at the end.\n\nHowever, in general, people need to stop using Windows Forms – it's a legacy framework that doesn't play well with modern computers. If not Modern UI, then at least use something like WPF.","full_conversation":[{"role":"OP","user_id":"anon_81bdb3a588501d32","comment_id":"41zdg6","kind":"post","text":"How to apply Metro UI theme using Visual Studio 2013- Winforms C#","timestamp":"2016-01-21T10:28:01+00:00","score":0},{"role":"answerer","user_id":"anon_d15e3c7997863562","comment_id":"cz6d21t","kind":"comment","text":"Very clear tutorial, well done. It would have been interesting though if you'd shown off some of those controls at the end.\n\nHowever, in general, people need to stop using Windows Forms – it's a legacy framework that doesn't play well with modern computers. If not Modern UI, then at least use something like WPF.","timestamp":"2016-01-21T10:36:16+00:00","score":1},{"role":"OP","user_id":"anon_81bdb3a588501d32","comment_id":"cz6d5tu","kind":"comment","text":"Thanks, ton!!! Yeah, for sure I'll move to the new platform. But, this is for the desktop application. And it's beginning.","timestamp":"2016-01-21T10:43:26+00:00","score":1},{"role":"answerer","user_id":"anon_d15e3c7997863562","comment_id":"cz6e3oo","kind":"comment","text":"Yes of course, everyone needs to start somewhere. Windows Forms is very easy to get into.\n\nBut it's exactly desktop apps people shouldn't be building with Windows Forms any more. For example, by default, it cannot deal with high resolution displays at all.","timestamp":"2016-01-21T11:43:28+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_81bdb3a588501d32","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d15e3c7997863562","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"cz6d21t","thanks_reply_id":"cz6d5tu","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_3084fd724851c06e","answerer_user_id":"anon_8dfbaf3301d5243e","subreddit":"programming","timestamp":"2016-02-25T04:49:16+00:00","post_id":"47hakh","question":"Is this Business IT degree worth seeking? Honest opinion please.","preferred_answer":"I did. The title of the program alone will make hiring managers equate it with a management degree rather than a technical degree. Personally, I'd go with more technical (engineering/cs). It holds better over the long term.","full_conversation":[{"role":"OP","user_id":"anon_3084fd724851c06e","comment_id":"47hakh","kind":"post","text":"Is this Business IT degree worth seeking? Honest opinion please.","timestamp":"2016-02-25T04:49:16+00:00","score":0},{"role":"answerer","user_id":"anon_8dfbaf3301d5243e","comment_id":"d0e6wg7","kind":"comment","text":"I did. The title of the program alone will make hiring managers equate it with a management degree rather than a technical degree. Personally, I'd go with more technical (engineering/cs). It holds better over the long term.","timestamp":"2016-02-26T03:49:11+00:00","score":1},{"role":"OP","user_id":"anon_3084fd724851c06e","comment_id":"d0fmw41","kind":"comment","text":"Thanks Krulos. Really appreciate your help and time. Only problem with going with a more technical degree is that it will cost me too much money out of pocket. I already have a bachelors in Health Science. but i do plan taking further classes to become more technical.","timestamp":"2016-02-27T08:40:29+00:00","score":1},{"role":"answerer","user_id":"anon_8dfbaf3301d5243e","comment_id":"d0fvvcc","kind":"comment","text":"Have you considered working on side projects that interest you? Since you already have a degree, if you can learn a language well and apply to IT health companies (there's a lot of them now), your health knowledge will be invaluable.","timestamp":"2016-02-27T16:32:24+00:00","score":1},{"role":"OP","user_id":"anon_3084fd724851c06e","comment_id":"d0hvko3","kind":"comment","text":"What do you mean working on side projects? Yes i did think of going the IT health route.","timestamp":"2016-02-29T08:56:02+00:00","score":1},{"role":"answerer","user_id":"anon_8dfbaf3301d5243e","comment_id":"d0r15vr","kind":"comment","text":"As in put up a personal code portfolio on github or bit bucket","timestamp":"2016-03-07T18:42:48+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_3084fd724851c06e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8dfbaf3301d5243e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d0e6wg7","thanks_reply_id":"d0fmw41","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_8e9c4c49ef315207","answerer_user_id":"anon_62d93491d554a9e4","subreddit":"programming","timestamp":"2016-04-14T03:59:49+00:00","post_id":"4epgo8","question":"How can I apply multiple find/replace .jpg renames at once? PC.","preferred_answer":"If by PC you mean windows, I think you want to look into [RoboCopy](https://technet.microsoft.com/en-ca/library/cc733145.aspx).","full_conversation":[{"role":"OP","user_id":"anon_8e9c4c49ef315207","comment_id":"4epgo8","kind":"post","text":"How can I apply multiple find/replace .jpg renames at once? PC.","timestamp":"2016-04-14T03:59:49+00:00","score":0},{"role":"answerer","user_id":"anon_62d93491d554a9e4","comment_id":"d2269za","kind":"comment","text":"If by PC you mean windows, I think you want to look into [RoboCopy](https://technet.microsoft.com/en-ca/library/cc733145.aspx).","timestamp":"2016-04-14T04:04:42+00:00","score":3},{"role":"OP","user_id":"anon_8e9c4c49ef315207","comment_id":"d2273m5","kind":"comment","text":"Thanks, yeah windows, I'm a little out of my league on this subreddit but I got a good method for myself, cheers!","timestamp":"2016-04-14T04:30:10+00:00","score":1},{"role":"answerer","user_id":"anon_62d93491d554a9e4","comment_id":"d227dex","kind":"comment","text":"I don't know much about windows, but I think u/flipstables has what you need. From his / her comment, it seems to me that robocopy is obsoleted by powershell in cases like yours.","timestamp":"2016-04-14T04:38:21+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8e9c4c49ef315207","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_62d93491d554a9e4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d2269za","thanks_reply_id":"d2273m5","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_5f6782ad919c0779","answerer_user_id":"anon_0a72b13e38bb995a","subreddit":"programming","timestamp":"2016-05-06T15:24:08+00:00","post_id":"4i5kg8","question":"How I Made this Website Hella Fast Without Overcomplicating Things","preferred_answer":"It might load a fraction faster if the extra 'and' were edited out.\n\nBut otherwise a damned good experience and something modern websites should look on, feel ashamed, and aspire to become.","full_conversation":[{"role":"OP","user_id":"anon_5f6782ad919c0779","comment_id":"4i5kg8","kind":"post","text":"How I Made this Website Hella Fast Without Overcomplicating Things","timestamp":"2016-05-06T15:24:08+00:00","score":442},{"role":"answerer","user_id":"anon_0a72b13e38bb995a","comment_id":"d2vazn5","kind":"comment","text":"It might load a fraction faster if the extra 'and' were edited out.\n\nBut otherwise a damned good experience and something modern websites should look on, feel ashamed, and aspire to become.","timestamp":"2016-05-06T16:32:57+00:00","score":46},{"role":"OP","user_id":"anon_5f6782ad919c0779","comment_id":"d2vbedd","kind":"comment","text":"Thanks for the heads up. I need to become a better proof reader. \n\nIronically it will load slower for a bit because editing the page means purging the CDN and losing the caching benefits briefly 💩","timestamp":"2016-05-06T16:41:53+00:00","score":28},{"role":"answerer","user_id":"anon_0a72b13e38bb995a","comment_id":"d2vbjp7","kind":"comment","text":"Considering the fact that the the majority of readers don't notice doubled up conjunctions or articles, is it really worth it?\n\n(Devil on your shoulder)","timestamp":"2016-05-06T16:45:06+00:00","score":12}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5f6782ad919c0779","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0a72b13e38bb995a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d2vazn5","thanks_reply_id":"d2vbedd","post_score":442,"answer_score":46,"preferred_answer_is_top_level":true}} {"user_id":"anon_6669010113cbdedb","answerer_user_id":"anon_b2ec174b9b29d472","subreddit":"programming","timestamp":"2016-05-14T12:26:00+00:00","post_id":"4jb7uq","question":"Is Reading Technical Books A Useful Task?","preferred_answer":"Hey OP. Well done on thinking about this. It's encouraging to see a student looking forward to and justifying learning after you get your degree.\n\nThe most important thing you will want to do as you move out of school and into a career is to make a conscious effort to continue to grow as a programmer. There are many ways to do this:\n\n* Write hobby code. Stuff that really pushes the boundaries of your knowledge and experience. If you haven't done so, implement a compiler, write a ray tracer, simulate ocean waves. Develop a language. Do something you don't know how to do yet.\n\n* Participate in discussions about the craft of programming. You're already doing that with your blog. Good job! You should also participate in conferences, read blogs by others, etc.\n\n* Read technical books. Books that cover a topic you don't understand well and can, as you say, fill in the gaps of your understanding. If you want a reading list. Try [this one.](http://blog.codinghorror.com/recommended-reading-for-developers/)\n\n* Read less technical books. Books that help you manage your time and your life. [Like this one.](http://fourhourworkweek.com/)","full_conversation":[{"role":"OP","user_id":"anon_6669010113cbdedb","comment_id":"4jb7uq","kind":"post","text":"Is Reading Technical Books A Useful Task?","timestamp":"2016-05-14T12:26:00+00:00","score":3},{"role":"answerer","user_id":"anon_b2ec174b9b29d472","comment_id":"d35bxab","kind":"comment","text":"Hey OP. Well done on thinking about this. It's encouraging to see a student looking forward to and justifying learning after you get your degree.\n\nThe most important thing you will want to do as you move out of school and into a career is to make a conscious effort to continue to grow as a programmer. There are many ways to do this:\n\n* Write hobby code. Stuff that really pushes the boundaries of your knowledge and experience. If you haven't done so, implement a compiler, write a ray tracer, simulate ocean waves. Develop a language. Do something you don't know how to do yet.\n\n* Participate in discussions about the craft of programming. You're already doing that with your blog. Good job! You should also participate in conferences, read blogs by others, etc.\n\n* Read technical books. Books that cover a topic you don't understand well and can, as you say, fill in the gaps of your understanding. If you want a reading list. Try [this one.](http://blog.codinghorror.com/recommended-reading-for-developers/)\n\n* Read less technical books. Books that help you manage your time and your life. [Like this one.](http://fourhourworkweek.com/)","timestamp":"2016-05-14T15:52:34+00:00","score":5},{"role":"OP","user_id":"anon_6669010113cbdedb","comment_id":"d35exva","kind":"comment","text":"Hey, thanks for the response!\n\nI'm actually already doing all four of those tasks, and I completely agree they're all useful! I'd like to do more reading in general than I do currently, but maybe the summer will prove fruitful in that respect.\n\nAs for less technical books, one I'd really recommend is Soft Skills by John Sonmez. Great read for software devs.","timestamp":"2016-05-14T17:23:03+00:00","score":2},{"role":"answerer","user_id":"anon_b2ec174b9b29d472","comment_id":"d35pzs9","kind":"comment","text":">I'm actually already doing all four of those tasks, and I completely agree they're all useful! \n\nGood to hear! :)","timestamp":"2016-05-14T22:53:56+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6669010113cbdedb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b2ec174b9b29d472","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d35bxab","thanks_reply_id":"d35exva","post_score":3,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_ca112f4aca02954b","answerer_user_id":"anon_8c8a468dae781867","subreddit":"programming","timestamp":"2016-05-20T07:52:07+00:00","post_id":"4k77ge","question":"Looking for backend help on my project- a youtube clone complete shell project","preferred_answer":"this reeks of potential legal trouble lol good luck!","full_conversation":[{"role":"OP","user_id":"anon_ca112f4aca02954b","comment_id":"4k77ge","kind":"post","text":"Looking for backend help on my project- a youtube clone complete shell project","timestamp":"2016-05-20T07:52:07+00:00","score":0},{"role":"answerer","user_id":"anon_8c8a468dae781867","comment_id":"d3cpnn5","kind":"comment","text":"this reeks of potential legal trouble lol good luck!","timestamp":"2016-05-20T08:55:50+00:00","score":2},{"role":"OP","user_id":"anon_ca112f4aca02954b","comment_id":"d3cqoil","kind":"comment","text":"It's not technically illegal, but thanks. :^)","timestamp":"2016-05-20T10:01:01+00:00","score":1},{"role":"answerer","user_id":"anon_8c8a468dae781867","comment_id":"d3d29pm","kind":"comment","text":"> anyone can put whatever they want up (thepiratebay meets youtube).\n\nYa cause this always turns out squeaky clean lol","timestamp":"2016-05-20T16:10:50+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ca112f4aca02954b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8c8a468dae781867","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d3cpnn5","thanks_reply_id":"d3cqoil","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_600d7c10aed8f75e","answerer_user_id":"anon_eb5211eb7c922215","subreddit":"programming","timestamp":"2016-06-01T10:47:06+00:00","post_id":"4m0n3u","question":"How to set up neural networks in Python with Caffe","preferred_answer":"Have you tried this? I may give it a shot today if I'm bored! looks cool.","full_conversation":[{"role":"OP","user_id":"anon_600d7c10aed8f75e","comment_id":"4m0n3u","kind":"post","text":"How to set up neural networks in Python with Caffe","timestamp":"2016-06-01T10:47:06+00:00","score":0},{"role":"answerer","user_id":"anon_eb5211eb7c922215","comment_id":"d3rkgwv","kind":"comment","text":"Have you tried this? I may give it a shot today if I'm bored! looks cool.","timestamp":"2016-06-01T10:55:14+00:00","score":1},{"role":"OP","user_id":"anon_600d7c10aed8f75e","comment_id":"d3rkjvx","kind":"comment","text":"Yes, I'm the author of the article.\nI was bored of reading tutorials that worked only on certain machines. So I decided to make one for a virtualised environment. :-)","timestamp":"2016-06-01T10:59:23+00:00","score":1},{"role":"answerer","user_id":"anon_eb5211eb7c922215","comment_id":"d3rl7pv","kind":"comment","text":"Oh cool! I'd be doing this on a regular linux box (Kubuntu) not virtual but I think I can get it going. Your instructions look really good - and though. Why do you recommend typing the full path and not using Tilda ~ ? I assume you have had problems with it. Maybe I have had similar problems too.","timestamp":"2016-06-01T11:30:09+00:00","score":1},{"role":"OP","user_id":"anon_600d7c10aed8f75e","comment_id":"d3rlzgc","kind":"comment","text":"Yes. I am not sure why I had issues with that, unfortunately.","timestamp":"2016-06-01T12:02:02+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_600d7c10aed8f75e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_eb5211eb7c922215","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d3rkgwv","thanks_reply_id":"d3rkjvx","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_cd6ccb819c898f99","answerer_user_id":"anon_d32ec916d97497c1","subreddit":"programming","timestamp":"2016-06-03T19:47:52+00:00","post_id":"4meo7g","question":"How to exploit INSERT Query to perform SQL Injection","preferred_answer":"\\> 2016\n\n\\> not using parameterized queries.","full_conversation":[{"role":"OP","user_id":"anon_cd6ccb819c898f99","comment_id":"4meo7g","kind":"post","text":"How to exploit INSERT Query to perform SQL Injection","timestamp":"2016-06-03T19:47:52+00:00","score":0},{"role":"answerer","user_id":"anon_d32ec916d97497c1","comment_id":"d3ux0ut","kind":"comment","text":"\\> 2016\n\n\\> not using parameterized queries.","timestamp":"2016-06-03T20:09:33+00:00","score":9},{"role":"OP","user_id":"anon_cd6ccb819c898f99","comment_id":"d3uxek9","kind":"comment","text":"Hi JAPH, \nThank you for reply. \nThe article is more concentrating on how to exploit rather than prevent. The article is just showing why we need to consider the information security seriously. :)","timestamp":"2016-06-03T20:18:15+00:00","score":3},{"role":"answerer","user_id":"anon_d32ec916d97497c1","comment_id":"d3v20u3","kind":"comment","text":"Fair enough. It's a classic exploit, but it still shows up as a serious problem year after year.","timestamp":"2016-06-03T22:11:21+00:00","score":2},{"role":"OP","user_id":"anon_cd6ccb819c898f99","comment_id":"d3vc5kf","kind":"comment","text":"Agree :)","timestamp":"2016-06-04T03:02:06+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_cd6ccb819c898f99","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d32ec916d97497c1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d3ux0ut","thanks_reply_id":"d3uxek9","post_score":0,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_4eeb383ec3d7f1a5","answerer_user_id":"anon_4c06aa93f5a51a8d","subreddit":"programming","timestamp":"2016-06-07T15:18:15+00:00","post_id":"4mzj4k","question":"When convenience becomes an issue – A foray into ethical ‘hacking’","preferred_answer":"l've read the following in some book about security: \"Your system is secure if the overall cost to break into it is superior than the value of the stolen information\". As overall costs and value vary a lot depending on a big number of factors (some crackers do what they do just because it is fun, or because they like to be recognized in the wild), this type of analysis can get pretty complex. Your curiosity in contrast with the \"real\" information value is a good example of this.","full_conversation":[{"role":"OP","user_id":"anon_4eeb383ec3d7f1a5","comment_id":"4mzj4k","kind":"post","text":"When convenience becomes an issue – A foray into ethical ‘hacking’","timestamp":"2016-06-07T15:18:15+00:00","score":0},{"role":"answerer","user_id":"anon_4c06aa93f5a51a8d","comment_id":"d3zn6pq","kind":"comment","text":"l've read the following in some book about security: \"Your system is secure if the overall cost to break into it is superior than the value of the stolen information\". As overall costs and value vary a lot depending on a big number of factors (some crackers do what they do just because it is fun, or because they like to be recognized in the wild), this type of analysis can get pretty complex. Your curiosity in contrast with the \"real\" information value is a good example of this.","timestamp":"2016-06-07T16:52:09+00:00","score":2},{"role":"OP","user_id":"anon_4eeb383ec3d7f1a5","comment_id":"d3zt791","kind":"comment","text":"Thanks :D, do have any further tips about writing or content? This is 20x the amount of views I ever expected that article to get, so I'd like to put out better content for anyone that wanders over there in the future","timestamp":"2016-06-07T19:00:51+00:00","score":1},{"role":"answerer","user_id":"anon_4c06aa93f5a51a8d","comment_id":"d42d9lo","kind":"comment","text":"Hmm, I'm afraid not :S. One thing though, that I think software engineers and stakeholders often overlook is security testing in REST APIs consumed by web apps.\n\nFor instance, one mistake I see very often is to delegate software approval to the end user directly from the developer, but the end user (or even non technical testers for that matter) can't ensure that all API endpoints are properly secured.\n\nExample scenario: a button is hidden when the user does not have access to it, but the API endpoint remains open in the wild. Silly, right? But extremelly frequent in my experience and non technical testing process can do nothing about it.","timestamp":"2016-06-09T15:18:47+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4eeb383ec3d7f1a5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4c06aa93f5a51a8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d3zn6pq","thanks_reply_id":"d3zt791","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a1a5c76dcb36128c","answerer_user_id":"anon_618792e4a77eccf8","subreddit":"programming","timestamp":"2016-06-17T18:23:28+00:00","post_id":"4okm58","question":"JPEG 101 - How does JPEG work?","preferred_answer":"Frustrating article to read. Since the author is reading here, I'll highlight some parts:\n\n> cosine functions are used rather than sine functions because fewer cosine functions are needed to approximate a typical signal.\n\nWhat? Please explain.\n\n> We can find each of these coefficients (Ci) using DCT (type II).\nI am not going to explain here how DCT works. That’s for you to find out.\n\nDon't do this, you come across as unprofessional and insulting. Provide some links for interested readers.\n\n> I am going to use the following python code to find the DCT'ed matrix of my sub-image\n\nNone of the provided code is explained.\n\n> ...and Huffman encoding.\n\nWhy?\n\n> Put whatever is required in the header according to the specification. Your compressed file is ready !!! To decompress, simply do the reverse. Use Discrete Cosine Transform-III to reverse DCT-II.\n\nThis is incredibly lazy and doesn't teach me anything.","full_conversation":[{"role":"OP","user_id":"anon_a1a5c76dcb36128c","comment_id":"4okm58","kind":"post","text":"JPEG 101 - How does JPEG work?","timestamp":"2016-06-17T18:23:28+00:00","score":204},{"role":"answerer","user_id":"anon_618792e4a77eccf8","comment_id":"d4dxd39","kind":"comment","text":"Frustrating article to read. Since the author is reading here, I'll highlight some parts:\n\n> cosine functions are used rather than sine functions because fewer cosine functions are needed to approximate a typical signal.\n\nWhat? Please explain.\n\n> We can find each of these coefficients (Ci) using DCT (type II).\nI am not going to explain here how DCT works. That’s for you to find out.\n\nDon't do this, you come across as unprofessional and insulting. Provide some links for interested readers.\n\n> I am going to use the following python code to find the DCT'ed matrix of my sub-image\n\nNone of the provided code is explained.\n\n> ...and Huffman encoding.\n\nWhy?\n\n> Put whatever is required in the header according to the specification. Your compressed file is ready !!! To decompress, simply do the reverse. Use Discrete Cosine Transform-III to reverse DCT-II.\n\nThis is incredibly lazy and doesn't teach me anything.","timestamp":"2016-06-18T03:36:33+00:00","score":18},{"role":"OP","user_id":"anon_a1a5c76dcb36128c","comment_id":"d4e0edk","kind":"comment","text":"Thank you for your detailed feedback.\nI will soon get to work on each one of your points.","timestamp":"2016-06-18T05:31:21+00:00","score":15},{"role":"answerer","user_id":"anon_618792e4a77eccf8","comment_id":"d4e2sa0","kind":"comment","text":"You're welcome.","timestamp":"2016-06-18T07:26:17+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a1a5c76dcb36128c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_618792e4a77eccf8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d4dxd39","thanks_reply_id":"d4e0edk","post_score":204,"answer_score":18,"preferred_answer_is_top_level":true}} {"user_id":"anon_829815e76d462b0d","answerer_user_id":"anon_0b8444ebf8567091","subreddit":"programming","timestamp":"2016-07-01T05:40:28+00:00","post_id":"4qq62x","question":"How to write an algorithm: Socrates is mortal","preferred_answer":"This is lacking substance. This is essentially day 1 of any discrete mathematics class, and can't be applied to all algorithms.","full_conversation":[{"role":"OP","user_id":"anon_829815e76d462b0d","comment_id":"4qq62x","kind":"post","text":"How to write an algorithm: Socrates is mortal","timestamp":"2016-07-01T05:40:28+00:00","score":0},{"role":"answerer","user_id":"anon_0b8444ebf8567091","comment_id":"d4v1qg2","kind":"comment","text":"This is lacking substance. This is essentially day 1 of any discrete mathematics class, and can't be applied to all algorithms.","timestamp":"2016-07-01T06:29:04+00:00","score":3},{"role":"OP","user_id":"anon_829815e76d462b0d","comment_id":"d4v1wgg","kind":"comment","text":"Thanks for the feedback. It will definitely help in improving. \n\nYes this post is the beginning of a series of articles and therefore isn't too deep in substance as I want to build from scratch for people who don't have idea about algorithms.\n\nCan you point out what in this can't be applied to all algorithms?","timestamp":"2016-07-01T06:36:34+00:00","score":0},{"role":"answerer","user_id":"anon_0b8444ebf8567091","comment_id":"d4v235j","kind":"comment","text":"If this is the first of a series, then I may have come off a bit too strong.\n\nWhile this sort of logic may not be common sense among people in general, I feel as though this doesn't provide anything particularly useful for the programming community.\n\nPerhaps a better approach would be to take an existing, more complex problem, and then explain the logic behind the solution.","timestamp":"2016-07-01T06:45:15+00:00","score":2},{"role":"OP","user_id":"anon_829815e76d462b0d","comment_id":"d4v2qho","kind":"comment","text":"Sure. I have already posted two very simple algorithms\n\n* http://www.howtowriteanalgorithm.com/2016/02/few-algorithms-to-start-with-find.html\n* http://www.howtowriteanalgorithm.com/2016/04/fibonacci-numbers-iterative.html\n\nI didn't want to write something advanced and then scare off someone who is just starting on how to start writing algorithms.\n\nBut yes, I do understand the lack of depth which those who already know programming might find.","timestamp":"2016-07-01T07:16:34+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_829815e76d462b0d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0b8444ebf8567091","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d4v1qg2","thanks_reply_id":"d4v1wgg","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_c52725a530a8e131","answerer_user_id":"anon_8a4594538cb5ce57","subreddit":"programming","timestamp":"2016-07-13T08:28:41+00:00","post_id":"4sm3i9","question":"Coding principles: Are extensions the beauty or the beast?","preferred_answer":"Don't listen to the people saying your coding style is off, it's perfect C# TDD code for the industry (though I've moved away from that recently since I find it provides little value).\n\nI'm curious - your logger just goes *_log.Debug()*, what is the implementation detail of the method Debug()? What exactly are you logging here?","full_conversation":[{"role":"OP","user_id":"anon_c52725a530a8e131","comment_id":"4sm3i9","kind":"post","text":"Coding principles: Are extensions the beauty or the beast?","timestamp":"2016-07-13T08:28:41+00:00","score":5},{"role":"answerer","user_id":"anon_8a4594538cb5ce57","comment_id":"d5ahza3","kind":"comment","text":"Don't listen to the people saying your coding style is off, it's perfect C# TDD code for the industry (though I've moved away from that recently since I find it provides little value).\n\nI'm curious - your logger just goes *_log.Debug()*, what is the implementation detail of the method Debug()? What exactly are you logging here?","timestamp":"2016-07-13T12:46:31+00:00","score":1},{"role":"OP","user_id":"anon_c52725a530a8e131","comment_id":"d5aj83p","kind":"comment","text":"Thanks a lot. :-)\nWe don't do TDD due to reaching 100% coverage and starting with tests doesn't reach the efficiency we would like to have. \n\nthe _log.Debug() method is a shortcut for _log.debug(\"{methodname}\"). it just gets the calling method name. With that simple line we are able to have a complete execution plan in log without \n\n* too much noise regarding readability of code, and what the developer has to type\n* the need to have virtual methods or being forced to use interfaces on every class when using AOP.","timestamp":"2016-07-13T13:25:06+00:00","score":2},{"role":"answerer","user_id":"anon_8a4594538cb5ce57","comment_id":"d5amxgd","kind":"comment","text":"Where did you get the speed performances from then?\nI'd expect to see scale in a few places (async, GC, static code) but since your using DI, and don't like statics, (and I didn't see any async code), how'd you get it - nice algorithms perhaps? Good use of tools (such as Redis)?","timestamp":"2016-07-13T14:57:55+00:00","score":2},{"role":"OP","user_id":"anon_c52725a530a8e131","comment_id":"d5aohqx","kind":"comment","text":"We use Stackify for monitoring/ logging (including exceptions) and so called custom metrics. Pretty cool tool. :-)\nAsync calls are surely unavoidable in Azure cloud, so it's used a lot where it's appropriate ;-).","timestamp":"2016-07-13T15:32:57+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c52725a530a8e131","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8a4594538cb5ce57","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d5ahza3","thanks_reply_id":"d5aj83p","post_score":5,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_77fd23c327859f2c","answerer_user_id":"anon_2dbc2e37964d8803","subreddit":"programming","timestamp":"2016-07-22T14:19:49+00:00","post_id":"4u2z4p","question":"What is QBF Solving?","preferred_answer":"I'm guessing you're the author of the article? Have a read of this paper by sumit gulwani.\n\nhttp://research.microsoft.com/en-us/um/people/sumitg/pubs/pldi11-loopfree-synthesis.pdf\n\nI thought it was pretty interesting. A way of synthesising loop-free bit vector programmes which relates to the goal you mentioned in the conclusion of the article.","full_conversation":[{"role":"OP","user_id":"anon_77fd23c327859f2c","comment_id":"4u2z4p","kind":"post","text":"What is QBF Solving?","timestamp":"2016-07-22T14:19:49+00:00","score":4},{"role":"answerer","user_id":"anon_2dbc2e37964d8803","comment_id":"d5n1dpj","kind":"comment","text":"I'm guessing you're the author of the article? Have a read of this paper by sumit gulwani.\n\nhttp://research.microsoft.com/en-us/um/people/sumitg/pubs/pldi11-loopfree-synthesis.pdf\n\nI thought it was pretty interesting. A way of synthesising loop-free bit vector programmes which relates to the goal you mentioned in the conclusion of the article.","timestamp":"2016-07-22T23:37:32+00:00","score":2},{"role":"OP","user_id":"anon_77fd23c327859f2c","comment_id":"d5ne3ap","kind":"comment","text":"Thanks. I haven't read that one, but I've read some others from microsoft research on program synthesis. It looks like they are dealing with the quantifiers using counter-example guided refinement, which is very similar to other approaches I've read about.\n\nDo you work in this field? How do you stay up to date with what is current?","timestamp":"2016-07-23T06:36:51+00:00","score":1},{"role":"answerer","user_id":"anon_2dbc2e37964d8803","comment_id":"d5s4hoh","kind":"comment","text":"Ah, sorry for the late reply. Unfortunately I don't quite work in this field (not yet at least!) as I'm just a lowly masters student doing his dissertation in collaboration with microsoft research. I stay up to date via links my supervisor sends me.\n\nMaybe when I start my PhD I'll become more pro at finding suitable sources on my own!","timestamp":"2016-07-26T22:13:34+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_77fd23c327859f2c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2dbc2e37964d8803","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d5n1dpj","thanks_reply_id":"d5ne3ap","post_score":4,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_1c6746c63dd4d818","answerer_user_id":"anon_73c460941dfd032d","subreddit":"programming","timestamp":"2016-07-30T09:41:47+00:00","post_id":"4vbgfs","question":"Anyone got any suggestions on how I can improve my programming news aggregator?","preferred_answer":"Make a search bar to filter key words.\n\nIn chrome, there's a weird issue that causes the categories to move unexpectedly. You might try making them a dropdown list, or allow filtering on that page to allow'em to work better.\n\nYou might also build a feature that allows you to click on multiple categories, too. \n\nDoes registering for an account do anything?","full_conversation":[{"role":"OP","user_id":"anon_1c6746c63dd4d818","comment_id":"4vbgfs","kind":"post","text":"Anyone got any suggestions on how I can improve my programming news aggregator?","timestamp":"2016-07-30T09:41:47+00:00","score":0},{"role":"answerer","user_id":"anon_73c460941dfd032d","comment_id":"d5x0oby","kind":"comment","text":"Make a search bar to filter key words.\n\nIn chrome, there's a weird issue that causes the categories to move unexpectedly. You might try making them a dropdown list, or allow filtering on that page to allow'em to work better.\n\nYou might also build a feature that allows you to click on multiple categories, too. \n\nDoes registering for an account do anything?","timestamp":"2016-07-30T09:45:00+00:00","score":2},{"role":"OP","user_id":"anon_1c6746c63dd4d818","comment_id":"d5x0sca","kind":"comment","text":"Thanks for the feedback\n\n - Search bar is a great idea. \n - Have fixed the weird hover bug. \n - You should be able to select multiple categories if you register and it will remember them.","timestamp":"2016-07-30T09:52:20+00:00","score":2},{"role":"answerer","user_id":"anon_73c460941dfd032d","comment_id":"d5x0td2","kind":"comment","text":"Cool. Your HTML icon appears to be missing. Other than that, seems fine.","timestamp":"2016-07-30T09:54:12+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1c6746c63dd4d818","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_73c460941dfd032d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d5x0oby","thanks_reply_id":"d5x0sca","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0caa729bd4fc8b08","answerer_user_id":"anon_3e0d35ead30907d0","subreddit":"programming","timestamp":"2016-08-03T18:22:35+00:00","post_id":"4vzz8p","question":"We tell it \"RPG Style Coding\". what do you think?","preferred_answer":"Seems like a cute idea, bit basic from the information presented thus far though. If you can find a couple more goals (quests?) to add it might be fun - maybe you could integrate into an IDE with a debugger you can interface with for example, so you can get points for squashing bugs. Or whatever. Changing a file seems a lil basic.\n\nI think it could work out pretty cool though. Dunno if I'd use it personally but I could see it motivating some people.","full_conversation":[{"role":"OP","user_id":"anon_0caa729bd4fc8b08","comment_id":"4vzz8p","kind":"post","text":"We tell it \"RPG Style Coding\". what do you think?","timestamp":"2016-08-03T18:22:35+00:00","score":0},{"role":"answerer","user_id":"anon_3e0d35ead30907d0","comment_id":"d62t7xq","kind":"comment","text":"Seems like a cute idea, bit basic from the information presented thus far though. If you can find a couple more goals (quests?) to add it might be fun - maybe you could integrate into an IDE with a debugger you can interface with for example, so you can get points for squashing bugs. Or whatever. Changing a file seems a lil basic.\n\nI think it could work out pretty cool though. Dunno if I'd use it personally but I could see it motivating some people.","timestamp":"2016-08-03T18:31:34+00:00","score":2},{"role":"OP","user_id":"anon_0caa729bd4fc8b08","comment_id":"d62tewm","kind":"comment","text":"integrating debuggers! I haven't thought about that :) thank you for sharing.","timestamp":"2016-08-03T18:35:36+00:00","score":2},{"role":"answerer","user_id":"anon_3e0d35ead30907d0","comment_id":"d62thkj","kind":"comment","text":"No problem, I don't know what else you could add but I think this would work a lot better fleshed out.","timestamp":"2016-08-03T18:37:06+00:00","score":1},{"role":"OP","user_id":"anon_0caa729bd4fc8b08","comment_id":"d62tk56","kind":"comment","text":"yes i wish! I would love to see all the goods from RPG.","timestamp":"2016-08-03T18:38:34+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0caa729bd4fc8b08","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3e0d35ead30907d0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d62t7xq","thanks_reply_id":"d62tewm","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_73ecce057b70cae9","answerer_user_id":"anon_7e9f95bc44bbcc2b","subreddit":"programming","timestamp":"2016-08-08T07:58:46+00:00","post_id":"4wp277","question":"Why I'm not a big fan of Scrum","preferred_answer":"I agree with a fair few of the points that the author makes here about Scrum, but I think he's a bit off base with his alternatives.\n\nWhat I've found about Agile in general is that companies try to put far too much process around it, and miss the idea of what Agile was meant to represent. Frequently you don't get to work closely with the *actual* customer, instead (at most) you get a business proxy who might not understand the actual desires of the customer or the Agile process. Another big point that is missed is:\n\n> Individuals and interactions over processes and tools\n\nI've found that the best teams I've worked on have completely ignored the company's way of doing Agile in favour of an approach that works for them. If daily standups are eating up too much time, and aren't actually gaining anything - then get rid of them. Maybe a bi-weekly standup works better for your team, or no standup at all because you sit next to each other and talk frequently. Same with Sprint planning. If everyone knows what they're working towards, and the backlog has a swath of stories on it, then why have a meeting that lasts an hour or two?\n\nNow there are usually some areas that can't be negotiated, like story points. The business side may be basing estimates and budgets off this, so it's somewhat unavoidable. It doesn't, however, take a lot of time to throw out a few rough point estimates onto stories.\n\nSo I guess that my point is that a company-wide Agile \"process\" doesn't work. Every team and project is different, and they should follow a process that works for them. Trying to force pointless meetings, tools and processes simply because \"that's the way X/Y/Z works\" is detrimental, and only serves to annoy people.","full_conversation":[{"role":"OP","user_id":"anon_73ecce057b70cae9","comment_id":"4wp277","kind":"post","text":"Why I'm not a big fan of Scrum","timestamp":"2016-08-08T07:58:46+00:00","score":268},{"role":"answerer","user_id":"anon_7e9f95bc44bbcc2b","comment_id":"d68t9d2","kind":"comment","text":"I agree with a fair few of the points that the author makes here about Scrum, but I think he's a bit off base with his alternatives.\n\nWhat I've found about Agile in general is that companies try to put far too much process around it, and miss the idea of what Agile was meant to represent. Frequently you don't get to work closely with the *actual* customer, instead (at most) you get a business proxy who might not understand the actual desires of the customer or the Agile process. Another big point that is missed is:\n\n> Individuals and interactions over processes and tools\n\nI've found that the best teams I've worked on have completely ignored the company's way of doing Agile in favour of an approach that works for them. If daily standups are eating up too much time, and aren't actually gaining anything - then get rid of them. Maybe a bi-weekly standup works better for your team, or no standup at all because you sit next to each other and talk frequently. Same with Sprint planning. If everyone knows what they're working towards, and the backlog has a swath of stories on it, then why have a meeting that lasts an hour or two?\n\nNow there are usually some areas that can't be negotiated, like story points. The business side may be basing estimates and budgets off this, so it's somewhat unavoidable. It doesn't, however, take a lot of time to throw out a few rough point estimates onto stories.\n\nSo I guess that my point is that a company-wide Agile \"process\" doesn't work. Every team and project is different, and they should follow a process that works for them. Trying to force pointless meetings, tools and processes simply because \"that's the way X/Y/Z works\" is detrimental, and only serves to annoy people.","timestamp":"2016-08-08T09:03:52+00:00","score":6},{"role":"OP","user_id":"anon_73ecce057b70cae9","comment_id":"d68tfv9","kind":"comment","text":"Yeah, the alternatives are rather dreamy, but thanks for taking them seriously enough for criticism.\n\nI agree with you 100%. It's a bit like in soccer; you should suit your playing style to the team you have, and not the other way around. But Scrum is plain too rigid to do this, and this is pretty much the gist of my criticisms, or as /u/nfrankel said: Don't do agile, be agile.","timestamp":"2016-08-08T09:14:29+00:00","score":2},{"role":"answerer","user_id":"anon_7e9f95bc44bbcc2b","comment_id":"d68tp5u","kind":"comment","text":"> Yeah, the alternatives are rather dreamy, but thanks for taking them seriously enough for criticism.\n\nNo problem. I didn't really mean them as criticisms, but really just providing my own view on how I think Agile teams should work. It's a good article overall though.","timestamp":"2016-08-08T09:30:08+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_73ecce057b70cae9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7e9f95bc44bbcc2b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d68t9d2","thanks_reply_id":"d68tfv9","post_score":268,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_6367522a75b95a21","answerer_user_id":"anon_934276c3dc56e4d4","subreddit":"programming","timestamp":"2016-08-11T14:15:50+00:00","post_id":"4x86yf","question":"A barebones chat application served by your GitHub repo. Feedback?","preferred_answer":"This is a cool idea for taking notes while researching a project. \n\nHere are some suggestions to think about:\n\n* wysiwyg or something similar to reddits markdown editor \n* PGP \n* drop down file section\n* Make this a true github integration so that you don't have to use a user name password. \n * https://developer.github.com/guides/basics-of-authentication/\n * https://github.com/settings/tokens\n\n> Alternatively, you can use personal access tokens or OAuth tokens instead of your password.\n\n> curl -u username:token https://api.github.com/user\n\n>This approach is useful if your tools only support Basic Authentication but you want to take advantage of OAuth access token security features.","full_conversation":[{"role":"OP","user_id":"anon_6367522a75b95a21","comment_id":"4x86yf","kind":"post","text":"A barebones chat application served by your GitHub repo. Feedback?","timestamp":"2016-08-11T14:15:50+00:00","score":0},{"role":"answerer","user_id":"anon_934276c3dc56e4d4","comment_id":"d6s11y8","kind":"comment","text":"This is a cool idea for taking notes while researching a project. \n\nHere are some suggestions to think about:\n\n* wysiwyg or something similar to reddits markdown editor \n* PGP \n* drop down file section\n* Make this a true github integration so that you don't have to use a user name password. \n * https://developer.github.com/guides/basics-of-authentication/\n * https://github.com/settings/tokens\n\n> Alternatively, you can use personal access tokens or OAuth tokens instead of your password.\n\n> curl -u username:token https://api.github.com/user\n\n>This approach is useful if your tools only support Basic Authentication but you want to take advantage of OAuth access token security features.","timestamp":"2016-08-22T16:39:28+00:00","score":1},{"role":"OP","user_id":"anon_6367522a75b95a21","comment_id":"d6sajey","kind":"comment","text":"Thanks for the input! I had intended to use tokens whenever I got around to changing it up, the user/pass model was just the first way that I got things working for the purposes of the prototype.\n\nI like your point about taking notes for a project, it's a really easy way to just jot down some notes for later/for others to track what you're thinking.","timestamp":"2016-08-22T20:01:43+00:00","score":1},{"role":"answerer","user_id":"anon_934276c3dc56e4d4","comment_id":"d6sayrb","kind":"comment","text":"I sent you a pull request with some of the changes. Feel free to reject it or take what you want. Just wanted to get some thoughts out.","timestamp":"2016-08-22T20:10:56+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6367522a75b95a21","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_934276c3dc56e4d4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d6s11y8","thanks_reply_id":"d6sajey","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_c9dabdd904aef2b5","answerer_user_id":"anon_6e299362025e5071","subreddit":"programming","timestamp":"2016-08-22T13:46:59+00:00","post_id":"4z0ley","question":"Why You Should Learn Python","preferred_answer":"Take a look at Scala if you haven't already - it has the conciseness of Python (and a REPL), but you still get type safety, and you can use all your Java libraries.","full_conversation":[{"role":"OP","user_id":"anon_c9dabdd904aef2b5","comment_id":"4z0ley","kind":"post","text":"Why You Should Learn Python","timestamp":"2016-08-22T13:46:59+00:00","score":158},{"role":"answerer","user_id":"anon_6e299362025e5071","comment_id":"d6rwwkg","kind":"comment","text":"Take a look at Scala if you haven't already - it has the conciseness of Python (and a REPL), but you still get type safety, and you can use all your Java libraries.","timestamp":"2016-08-22T15:06:00+00:00","score":0},{"role":"OP","user_id":"anon_c9dabdd904aef2b5","comment_id":"d6ryp6a","kind":"comment","text":"Thanks for the suggestion, but the problem with Scala is that it doesn't cover nearly as much ground as Python does. Python can be used in almost anything: webdev, pentesting, scripting, etc.\n\nAlso what /u/u_tamtam mentioned about \"out-of-the-box\" experience.","timestamp":"2016-08-22T15:47:30+00:00","score":-1},{"role":"answerer","user_id":"anon_6e299362025e5071","comment_id":"d6ryz5b","kind":"comment","text":"You can use Scala in almost anything as far as I can see? I mean I've done plenty of webdev and scripting in it, and I'm not a pentester but I don't see why there would be any trouble doing that.","timestamp":"2016-08-22T15:53:38+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c9dabdd904aef2b5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6e299362025e5071","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d6rwwkg","thanks_reply_id":"d6ryp6a","post_score":158,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_11ad92d90cefca2a","answerer_user_id":"anon_433626d7930e726b","subreddit":"programming","timestamp":"2016-09-07T16:46:14+00:00","post_id":"51m7q2","question":"What I Didn't Understand as a Junior Programmer","preferred_answer":"Relevant quote from Steve McConnell in Code Complete (p. 582):\n\n>Don’t use refactoring as a cover for code and fix The worst problem with refactoring is how it’s misused. Programmers will sometimes say they’re refactoring, when all they’re really doing is tweaking the code, hoping to find a way to make it work. Refactoring refers to changes in working code that do not affect the program’s behavior. Programmers who are tweaking broken code aren’t refactoring; they’re hacking.\n\nI wanted to respond on your blog, but Disqus is not working.","full_conversation":[{"role":"OP","user_id":"anon_11ad92d90cefca2a","comment_id":"51m7q2","kind":"post","text":"What I Didn't Understand as a Junior Programmer","timestamp":"2016-09-07T16:46:14+00:00","score":1042},{"role":"answerer","user_id":"anon_433626d7930e726b","comment_id":"d7d9hjv","kind":"comment","text":"Relevant quote from Steve McConnell in Code Complete (p. 582):\n\n>Don’t use refactoring as a cover for code and fix The worst problem with refactoring is how it’s misused. Programmers will sometimes say they’re refactoring, when all they’re really doing is tweaking the code, hoping to find a way to make it work. Refactoring refers to changes in working code that do not affect the program’s behavior. Programmers who are tweaking broken code aren’t refactoring; they’re hacking.\n\nI wanted to respond on your blog, but Disqus is not working.","timestamp":"2016-09-07T20:20:31+00:00","score":27},{"role":"OP","user_id":"anon_11ad92d90cefca2a","comment_id":"d7dtcjn","kind":"comment","text":"Thanks so much for letting me know, I think the commenting should be fixed now. Also, Code Complete is one of my favorite books, thanks for sharing the quote!","timestamp":"2016-09-08T04:33:03+00:00","score":2},{"role":"answerer","user_id":"anon_433626d7930e726b","comment_id":"d7gtfl7","kind":"comment","text":"Now it works indeed. :)","timestamp":"2016-09-10T11:03:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_11ad92d90cefca2a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_433626d7930e726b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d7d9hjv","thanks_reply_id":"d7dtcjn","post_score":1042,"answer_score":27,"preferred_answer_is_top_level":true}} {"user_id":"anon_ddb8f5a3c286fae0","answerer_user_id":"anon_2eac4ce80dd7bbdb","subreddit":"programming","timestamp":"2016-09-19T11:59:07+00:00","post_id":"53h6qe","question":"Is your JavaScript function actually pure? Or does this function behaves like a Mathematical Function in all the situations I will encounter in my code?","preferred_answer":"indeed the author is conflating impure and partial functions,","full_conversation":[{"role":"OP","user_id":"anon_ddb8f5a3c286fae0","comment_id":"53h6qe","kind":"post","text":"Is your JavaScript function actually pure? Or does this function behaves like a Mathematical Function in all the situations I will encounter in my code?","timestamp":"2016-09-19T11:59:07+00:00","score":0},{"role":"answerer","user_id":"anon_2eac4ce80dd7bbdb","comment_id":"d7t25dt","kind":"comment","text":"indeed the author is conflating impure and partial functions,","timestamp":"2016-09-19T12:59:14+00:00","score":5},{"role":"OP","user_id":"anon_ddb8f5a3c286fae0","comment_id":"d7t387c","kind":"comment","text":"How would partial functions fit into this context? Can you elaborate, thanks.","timestamp":"2016-09-19T13:31:33+00:00","score":1},{"role":"answerer","user_id":"anon_2eac4ce80dd7bbdb","comment_id":"d7uet2g","kind":"comment","text":"in the sense that, for a statically typed language, if a function throws an exception it is not a total function. \n\nfor dynamically typed its a little less clear, in that you really have a single static type of which exceptions are a member, so in some sense all function are total (but not in a useful way)\n\neither way as u/Baaz points out you are not discussing purity any more but something else","timestamp":"2016-09-20T10:34:03+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ddb8f5a3c286fae0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2eac4ce80dd7bbdb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d7t25dt","thanks_reply_id":"d7t387c","post_score":0,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_e1cde947392252c0","answerer_user_id":"anon_b6381e83628ee015","subreddit":"programming","timestamp":"2016-09-23T05:42:46+00:00","post_id":"543b4w","question":"HELP!!! Could anyone help annotating redux? I really need it.","preferred_answer":"Are there specific questions you have? Are you wanting to _use_ Redux in your app, or better understand how it works internally?\n\nFYI, I have links to a number of articles [explaining how Redux works](https://github.com/markerikson/react-redux-links/blob/master/redux-tutorials.md#redux-implementation-walkthroughs) as part of my [React/Redux links list](https://github.com/markerikson/react-redux-links).","full_conversation":[{"role":"OP","user_id":"anon_e1cde947392252c0","comment_id":"543b4w","kind":"post","text":"HELP!!! Could anyone help annotating redux? I really need it.","timestamp":"2016-09-23T05:42:46+00:00","score":2},{"role":"answerer","user_id":"anon_b6381e83628ee015","comment_id":"d7yrzt8","kind":"comment","text":"Are there specific questions you have? Are you wanting to _use_ Redux in your app, or better understand how it works internally?\n\nFYI, I have links to a number of articles [explaining how Redux works](https://github.com/markerikson/react-redux-links/blob/master/redux-tutorials.md#redux-implementation-walkthroughs) as part of my [React/Redux links list](https://github.com/markerikson/react-redux-links).","timestamp":"2016-09-23T12:55:47+00:00","score":2},{"role":"OP","user_id":"anon_e1cde947392252c0","comment_id":"d7yuk16","kind":"comment","text":"Thank you so much for your answer. I really appreciate sharing your git. I wanted a good documentation to understand how redux works. I think your git is a great help. is it fine if I use the info to fill the blanks in that webpage ?","timestamp":"2016-09-23T14:06:18+00:00","score":1},{"role":"answerer","user_id":"anon_b6381e83628ee015","comment_id":"d7yvrkw","kind":"comment","text":"Sure, go ahead.\n\nAt a conceptual level, Redux is really a very simple pattern: it stores a value, calls one function to create an updated value when you ask it to, and has a single change emitter to notify subscribers that there's been an update. There's a number of aspects that wrap around that further, but that's really all that it's doing internally.\n\nYou may also want to check out Dan's short description at https://www.reddit.com/r/reactjs/comments/4npzq5/confused_redux_or_mobx/ .","timestamp":"2016-09-23T14:35:00+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e1cde947392252c0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b6381e83628ee015","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d7yrzt8","thanks_reply_id":"d7yuk16","post_score":2,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_5ea87086abb61698","answerer_user_id":"anon_4339559ad5c70e82","subreddit":"programming","timestamp":"2016-09-26T13:33:05+00:00","post_id":"54kl3s","question":"How I wrote a client-server app in two minutes flat (in C).","preferred_answer":">How I wrote a client-server app in two minutes flat (in C).\n\nWat? this is just a trivial wrapper for socket connections.\n\nBut you get an upvote for not using javascript.","full_conversation":[{"role":"OP","user_id":"anon_5ea87086abb61698","comment_id":"54kl3s","kind":"post","text":"How I wrote a client-server app in two minutes flat (in C).","timestamp":"2016-09-26T13:33:05+00:00","score":0},{"role":"answerer","user_id":"anon_4339559ad5c70e82","comment_id":"d82tohi","kind":"comment","text":">How I wrote a client-server app in two minutes flat (in C).\n\nWat? this is just a trivial wrapper for socket connections.\n\nBut you get an upvote for not using javascript.","timestamp":"2016-09-26T16:39:16+00:00","score":5},{"role":"OP","user_id":"anon_5ea87086abb61698","comment_id":"d82uqs9","kind":"comment","text":"Thanks for the upvote. Humbly, I would argue that it's a little more than a simple wrapper. It provides a command-response mechanism that operates on top of the socket libraries, which simplifies the process of executing code in response to incoming data. It also provides basic logging and a few other useful features not necessarily part of the socket i/o.","timestamp":"2016-09-26T17:01:29+00:00","score":4},{"role":"answerer","user_id":"anon_4339559ad5c70e82","comment_id":"d82v0lq","kind":"comment","text":"Sorry, I haven't looked at the code too thoroughly.\n\nHow (or do) you deal with the issues of serialization or is that left up to the user?","timestamp":"2016-09-26T17:07:18+00:00","score":2},{"role":"OP","user_id":"anon_5ea87086abb61698","comment_id":"d82x7ij","kind":"comment","text":"Serialization is left up to the user but it's high on my list of TODOs to include in the project. Do you have any suggestions for existing serialization libraries?","timestamp":"2016-09-26T17:53:07+00:00","score":1},{"role":"answerer","user_id":"anon_4339559ad5c70e82","comment_id":"d82ysba","kind":"comment","text":"No sorry, we usually just roll our own over the wire format for any specific project.","timestamp":"2016-09-26T18:26:24+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_5ea87086abb61698","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4339559ad5c70e82","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d82tohi","thanks_reply_id":"d82uqs9","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_7c0ba1c952ded84f","answerer_user_id":"anon_74aef01c2dc365f5","subreddit":"programming","timestamp":"2016-09-26T16:43:26+00:00","post_id":"54liy7","question":"Why is Software Engineering Research So Irrelevant for Practitioners?","preferred_answer":"Also see:\n\n* http://redmonk.com/fryan/2016/03/10/the-welcome-return-of-research-papers-to-software-craft/\n* http://matt-welsh.blogspot.com/2016/01/academics-we-need-to-talk.html\n\nBrian Cantrill has also done a bunch of complaining:\n\n* https://www.usenix.org/system/files/login/articles/login_fall16_01_farrow.pdf","full_conversation":[{"role":"OP","user_id":"anon_7c0ba1c952ded84f","comment_id":"54liy7","kind":"post","text":"Why is Software Engineering Research So Irrelevant for Practitioners?","timestamp":"2016-09-26T16:43:26+00:00","score":70},{"role":"answerer","user_id":"anon_74aef01c2dc365f5","comment_id":"d82whdq","kind":"comment","text":"Also see:\n\n* http://redmonk.com/fryan/2016/03/10/the-welcome-return-of-research-papers-to-software-craft/\n* http://matt-welsh.blogspot.com/2016/01/academics-we-need-to-talk.html\n\nBrian Cantrill has also done a bunch of complaining:\n\n* https://www.usenix.org/system/files/login/articles/login_fall16_01_farrow.pdf","timestamp":"2016-09-26T17:38:05+00:00","score":11},{"role":"OP","user_id":"anon_7c0ba1c952ded84f","comment_id":"d83306k","kind":"comment","text":"Thanks for these links! The redmonk one I hadn't seen before... nice to see that industry is paying some attention to academia. We have to attack the problem from both sides if the situation is going to get any better.","timestamp":"2016-09-26T19:54:11+00:00","score":3},{"role":"answerer","user_id":"anon_74aef01c2dc365f5","comment_id":"d8340yd","kind":"comment","text":"Also checkout http://neverworkintheory.org/categories.html","timestamp":"2016-09-26T20:15:21+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7c0ba1c952ded84f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_74aef01c2dc365f5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d82whdq","thanks_reply_id":"d83306k","post_score":70,"answer_score":11,"preferred_answer_is_top_level":true}} {"user_id":"anon_1307b34154e34f74","answerer_user_id":"anon_5ca4cf6978aea2c4","subreddit":"programming","timestamp":"2016-10-09T15:40:56+00:00","post_id":"56mp4z","question":"Help needed debugging ruby on rails app. Will give you free access to my software product if you can help me solve this problem!","preferred_answer":"It's okay. I signed up. Asked a question on stack.","full_conversation":[{"role":"OP","user_id":"anon_1307b34154e34f74","comment_id":"56mp4z","kind":"post","text":"Help needed debugging ruby on rails app. Will give you free access to my software product if you can help me solve this problem!","timestamp":"2016-10-09T15:40:56+00:00","score":0},{"role":"answerer","user_id":"anon_5ca4cf6978aea2c4","comment_id":"d8kls18","kind":"comment","text":"It's okay. I signed up. Asked a question on stack.","timestamp":"2016-10-09T16:55:46+00:00","score":1},{"role":"OP","user_id":"anon_1307b34154e34f74","comment_id":"d8kmz98","kind":"comment","text":"thanks. just responded","timestamp":"2016-10-09T17:23:47+00:00","score":1},{"role":"answerer","user_id":"anon_5ca4cf6978aea2c4","comment_id":"d8komiw","kind":"comment","text":"It is indeed the CSS z-index issue: http://i.imgur.com/Sd3f43R.png","timestamp":"2016-10-09T17:58:49+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1307b34154e34f74","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5ca4cf6978aea2c4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d8kls18","thanks_reply_id":"d8kmz98","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_32838342efea69be","answerer_user_id":"anon_440ab82d926dca8b","subreddit":"programming","timestamp":"2016-10-25T17:12:11+00:00","post_id":"59c895","question":"Developer Opinions Needed: Stack Overflow helps...but you have to wait a while. Is this something you'd actually use to get un-stuck while you're programming?","preferred_answer":"> Our goal is to create stuff that’s actually useful.\n\nI think the issue here is that you built something and then started asking whether or not its useful.\n\nA better approach would be to start asking developers questions about what is currently hard/annoying and then setting out to solve a problem that you now know exists.","full_conversation":[{"role":"OP","user_id":"anon_32838342efea69be","comment_id":"59c895","kind":"post","text":"Developer Opinions Needed: Stack Overflow helps...but you have to wait a while. Is this something you'd actually use to get un-stuck while you're programming?","timestamp":"2016-10-25T17:12:11+00:00","score":3},{"role":"answerer","user_id":"anon_440ab82d926dca8b","comment_id":"d97bojz","kind":"comment","text":"> Our goal is to create stuff that’s actually useful.\n\nI think the issue here is that you built something and then started asking whether or not its useful.\n\nA better approach would be to start asking developers questions about what is currently hard/annoying and then setting out to solve a problem that you now know exists.","timestamp":"2016-10-25T17:59:55+00:00","score":9},{"role":"OP","user_id":"anon_32838342efea69be","comment_id":"d97eq7w","kind":"comment","text":"That's a great idea, thanks. And that's exactly what we're doing. We first started by asking developers questions about what is currently hard/annoying to them and that's how we arrived at this solution. If you check out the landing page you'll get a better idea of what we're up to. We need to gather enough data-points to validate this idea before pursuing it full on. \n\nAre you a developer? Would you mind giving your thoughts on whether you'd use this or not...and why.\n\nThanks!","timestamp":"2016-10-25T19:01:11+00:00","score":1},{"role":"answerer","user_id":"anon_440ab82d926dca8b","comment_id":"d97fdwi","kind":"comment","text":"As a developer in an organization with 20+ developers, I see some value in a quick search that shows me the standard libraries that the other developers are using. But I think if everyone in the organization needs to use the plugin for that to work it kind of falls off.\n\nTo be honest I don't really see myself using this.\n\nGood luck with your current and future projects!","timestamp":"2016-10-25T19:15:43+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_32838342efea69be","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_440ab82d926dca8b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d97bojz","thanks_reply_id":"d97eq7w","post_score":3,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_326fd17e18b33557","answerer_user_id":"anon_37af2708d078db50","subreddit":"programming","timestamp":"2016-11-09T20:46:27+00:00","post_id":"5c3lof","question":"How NoFAQ automatically learns how to fix command line errors","preferred_answer":"> err on the side of assuming the user did intend to use the original -rf flags as an argument to rm.\n\nhe probably did. Most often mistake would be sneaking a space in it (`/ var/log/sth` instead of `/var/log/sth` ) or bad variable ( `rm -rf $somtehing/` or `rm -rf $somtehing/var` ) . There is also the problem with `rm -rf $something/log` if variable is defined because variable can still contain `/ ` (slash followed by space)\n\njoking aside, have you thought about adding [shellcheck](https://www.shellcheck.net/) as a first step ?\n\nFor example for given examples it will alert\n\n ^-- SC2114: Warning: deletes a system directory. Use 'rm --' to disable this message.\n ^-- SC2154: somtehing is referenced but not assigned.\n ^-- SC2086: Double quote to prevent globbing and word splitting.","full_conversation":[{"role":"OP","user_id":"anon_326fd17e18b33557","comment_id":"5c3lof","kind":"post","text":"How NoFAQ automatically learns how to fix command line errors","timestamp":"2016-11-09T20:46:27+00:00","score":46},{"role":"answerer","user_id":"anon_37af2708d078db50","comment_id":"d9u6bnq","kind":"comment","text":"> err on the side of assuming the user did intend to use the original -rf flags as an argument to rm.\n\nhe probably did. Most often mistake would be sneaking a space in it (`/ var/log/sth` instead of `/var/log/sth` ) or bad variable ( `rm -rf $somtehing/` or `rm -rf $somtehing/var` ) . There is also the problem with `rm -rf $something/log` if variable is defined because variable can still contain `/ ` (slash followed by space)\n\njoking aside, have you thought about adding [shellcheck](https://www.shellcheck.net/) as a first step ?\n\nFor example for given examples it will alert\n\n ^-- SC2114: Warning: deletes a system directory. Use 'rm --' to disable this message.\n ^-- SC2154: somtehing is referenced but not assigned.\n ^-- SC2086: Double quote to prevent globbing and word splitting.","timestamp":"2016-11-10T10:59:53+00:00","score":4},{"role":"OP","user_id":"anon_326fd17e18b33557","comment_id":"d9uo60r","kind":"comment","text":"Shellcheck looks neat, thanks for pointing it out! I've been trying to find a good tool that provides that sort of functionality.\n\nAs someone who's done the \"accidental space in a path\" thing (I blew away /etc on a VM once. That is decidedly not fun.), I've been spending a fair bit of time thinking about better ways to wrap and curate destructive/non-idempotent commands. It's definitely a point of future research.","timestamp":"2016-11-10T18:37:06+00:00","score":1},{"role":"answerer","user_id":"anon_37af2708d078db50","comment_id":"d9uow6z","kind":"comment","text":"It also has integration with most editors and even packaged in distros, it is pretty helpful.","timestamp":"2016-11-10T18:51:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_326fd17e18b33557","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_37af2708d078db50","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"d9u6bnq","thanks_reply_id":"d9uo60r","post_score":46,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_33c920103055e940","answerer_user_id":"anon_b477753e11ef235b","subreddit":"programming","timestamp":"2016-11-15T00:28:13+00:00","post_id":"5czi5k","question":"How To Write High Quality Unit Tests","preferred_answer":"> In order to do this you should write test doubles to replace your production dependencies for testing purposes. These generally take the form of a stub or mock object which returns the data you specify in order to fulfil your test expectation.\n\nFail.\n\nAs soon as you start introducing mocks you lose your right to call it a \"high quality unit test\". What you are really doing is writing a low quality pre-integration test. \n\nYou can make that into a high quality pre-integration test or even a full integration test with effort. But that requires discarding your automatic mocking libraries in favor of either carefully designed mocks or real services.","full_conversation":[{"role":"OP","user_id":"anon_33c920103055e940","comment_id":"5czi5k","kind":"post","text":"How To Write High Quality Unit Tests","timestamp":"2016-11-15T00:28:13+00:00","score":11},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"da0p32q","kind":"comment","text":"> In order to do this you should write test doubles to replace your production dependencies for testing purposes. These generally take the form of a stub or mock object which returns the data you specify in order to fulfil your test expectation.\n\nFail.\n\nAs soon as you start introducing mocks you lose your right to call it a \"high quality unit test\". What you are really doing is writing a low quality pre-integration test. \n\nYou can make that into a high quality pre-integration test or even a full integration test with effort. But that requires discarding your automatic mocking libraries in favor of either carefully designed mocks or real services.","timestamp":"2016-11-15T02:03:16+00:00","score":-2},{"role":"OP","user_id":"anon_33c920103055e940","comment_id":"da124ni","kind":"comment","text":"Thanks for reading it u/grauenwolf and interesting comments. Do you believe that you should never mock/stub external services? Have you written anything about it as I'd like to read more about your thoughts.\n\nCheers!","timestamp":"2016-11-15T09:02:15+00:00","score":3},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"da1eee6","kind":"comment","text":"Never? No. \n\nI've created mocks for things like warehouse robots. What I object to is mocking things that you should have under your control such as local databases.","timestamp":"2016-11-15T16:21:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_33c920103055e940","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"da0p32q","thanks_reply_id":"da124ni","post_score":11,"answer_score":-2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a205b3ab063905dc","answerer_user_id":"anon_8000f0ddc8506e65","subreddit":"programming","timestamp":"2016-12-07T15:09:20+00:00","post_id":"5h0dbk","question":"Can advanced type systems hurt maintainability?","preferred_answer":"As usual with these kinds of false dichotomy questions: yes and no.\n\nYes: you won't necessarily be able to hire just anyone (in today's programming pop culture), throw them at the codebase with no further guidance, and expect results on day 1, which is what most people mean by \"maintainability.\" It's a pretty explicit appeal to the lowest common denominator—in languages first, and secondarily in programmers' education.\n\nNo: the more advanced the type system, the better able it is to express constraints pertinent to the domain, which are then enforced by the compiler. So maintenance is facilitated, literally by \"if your change doesn't compile, by definition you're trying to introduce a bug.\" This is, of course, only literally true if you're using a dependent type system and [strongly-specified functions](http://www.alpheccar.org/content/72.html), so you're using something like [Idris](http://www.idris-lang.org/) or [Agda](http://wiki.portal.chalmers.se/agda/pmwiki.php) or [ATS](http://www.ats-lang.org/), but short of that, a lot of us who do typed functional programming professionally push the needle pretty far in that direction—it's what we mean when we say we like to be able to \"reason algebraically about our code.\" It's a very real phenomenon, just a very unfamiliar one to most programmers. \n\n**Update:** I like that the author makes essentially my last point in a footnote, although I'd add that I've come to believe that organizations that _don't_ explicitly support continuing education—internally or externally—are treating their employees unethically.","full_conversation":[{"role":"OP","user_id":"anon_a205b3ab063905dc","comment_id":"5h0dbk","kind":"post","text":"Can advanced type systems hurt maintainability?","timestamp":"2016-12-07T15:09:20+00:00","score":17},{"role":"answerer","user_id":"anon_8000f0ddc8506e65","comment_id":"dawdx7u","kind":"comment","text":"As usual with these kinds of false dichotomy questions: yes and no.\n\nYes: you won't necessarily be able to hire just anyone (in today's programming pop culture), throw them at the codebase with no further guidance, and expect results on day 1, which is what most people mean by \"maintainability.\" It's a pretty explicit appeal to the lowest common denominator—in languages first, and secondarily in programmers' education.\n\nNo: the more advanced the type system, the better able it is to express constraints pertinent to the domain, which are then enforced by the compiler. So maintenance is facilitated, literally by \"if your change doesn't compile, by definition you're trying to introduce a bug.\" This is, of course, only literally true if you're using a dependent type system and [strongly-specified functions](http://www.alpheccar.org/content/72.html), so you're using something like [Idris](http://www.idris-lang.org/) or [Agda](http://wiki.portal.chalmers.se/agda/pmwiki.php) or [ATS](http://www.ats-lang.org/), but short of that, a lot of us who do typed functional programming professionally push the needle pretty far in that direction—it's what we mean when we say we like to be able to \"reason algebraically about our code.\" It's a very real phenomenon, just a very unfamiliar one to most programmers. \n\n**Update:** I like that the author makes essentially my last point in a footnote, although I'd add that I've come to believe that organizations that _don't_ explicitly support continuing education—internally or externally—are treating their employees unethically.","timestamp":"2016-12-07T15:16:59+00:00","score":24},{"role":"OP","user_id":"anon_a205b3ab063905dc","comment_id":"dawfn25","kind":"comment","text":"Thanks for your comment. I agree with almost all of it, and tried to make many of those points in the post. The one part I disagree with is where you say \"lowest common denominator\". If I could rephrase that to something I agree with:\n> It's a pretty explicit appeal to _a_ common denominator\n\nas I think that writing code in a team context means, sometimes, doing things the way the team prefers, rather than the way you prefer.","timestamp":"2016-12-07T15:53:17+00:00","score":3},{"role":"answerer","user_id":"anon_8000f0ddc8506e65","comment_id":"dawfuai","kind":"comment","text":"Thanks!\n\nYeah, honestly, first I wrote \"secondarily in programmers,\" but as soon as I did, it occurred to me that's clearly wrong, just given my own experience (I've only been doing pure FP with fancy types for about three years). So I amended it to refer to education, because that's what's worked for my team at Verizon Labs.\n\nBut I still agree that \"_a_ common denominator\" is an improvement, and that there's a kind of \"homeostasis,\" if you will, on a software development team. You can address that either by changing the technology to fit the team, or by changing the team to fit the technology. If you accept the proposition that some technology is objectively better than other technology, it seems the latter is preferable. But I'll be the first person to admit that isn't obvious to a lot of people, earlier iterations of myself very much included!\n\nAnyway, great post, and again, I especially appreciate the definition of \"technical debt\" to account for team dynamics/learning. I'm definitely going to carry that with me in future work conversations.","timestamp":"2016-12-07T15:57:23+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a205b3ab063905dc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8000f0ddc8506e65","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dawdx7u","thanks_reply_id":"dawfn25","post_score":17,"answer_score":24,"preferred_answer_is_top_level":true}} {"user_id":"anon_f7b65904453abba9","answerer_user_id":"anon_b477753e11ef235b","subreddit":"programming","timestamp":"2016-12-20T15:04:52+00:00","post_id":"5jdosy","question":"Why Exceptions should be Exceptional","preferred_answer":"As a journalist, that's what we are taught to write. The most important fact in the headline and first paragraph, then other important facts, and finally the back story and details. That way the reader gets the important information upfront and the details only if they want it.\n\n(Sadly more and more headline writers favor clickbait instead these days.)","full_conversation":[{"role":"OP","user_id":"anon_f7b65904453abba9","comment_id":"5jdosy","kind":"post","text":"Why Exceptions should be Exceptional","timestamp":"2016-12-20T15:04:52+00:00","score":14},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"dbgcluq","kind":"comment","text":"As a journalist, that's what we are taught to write. The most important fact in the headline and first paragraph, then other important facts, and finally the back story and details. That way the reader gets the important information upfront and the details only if they want it.\n\n(Sadly more and more headline writers favor clickbait instead these days.)","timestamp":"2016-12-21T05:17:45+00:00","score":4},{"role":"OP","user_id":"anon_f7b65904453abba9","comment_id":"dbhaa3z","kind":"comment","text":"Thanks for the tip on article structure, I'm always looking for ways to improve the readability of my posts","timestamp":"2016-12-21T21:22:09+00:00","score":3},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"dbhat1j","kind":"comment","text":"Ever consider becoming a part-time reporter? We offer training and could really use more people who know C#.","timestamp":"2016-12-21T21:32:53+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f7b65904453abba9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dbgcluq","thanks_reply_id":"dbhaa3z","post_score":14,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_18c79203af9be2ce","answerer_user_id":"anon_0d109dc9894c43d6","subreddit":"programming","timestamp":"2016-12-23T08:01:15+00:00","post_id":"5jw0g1","question":"Anybody used YaCy (the decentralised search engine) before?","preferred_answer":"I've used it, and going to set it up on my new server in the next few days. \n\nI've had it follow my search history, but the server resources weren't enough to keep it and everything else running. For the first while where I had enough resources it found some really niche stuff that I saw the day before and couldn't find on Google. \n\nAny other questions I can help with?","full_conversation":[{"role":"OP","user_id":"anon_18c79203af9be2ce","comment_id":"5jw0g1","kind":"post","text":"Anybody used YaCy (the decentralised search engine) before?","timestamp":"2016-12-23T08:01:15+00:00","score":5},{"role":"answerer","user_id":"anon_0d109dc9894c43d6","comment_id":"dbm7ypi","kind":"comment","text":"I've used it, and going to set it up on my new server in the next few days. \n\nI've had it follow my search history, but the server resources weren't enough to keep it and everything else running. For the first while where I had enough resources it found some really niche stuff that I saw the day before and couldn't find on Google. \n\nAny other questions I can help with?","timestamp":"2016-12-25T17:20:53+00:00","score":2},{"role":"OP","user_id":"anon_18c79203af9be2ce","comment_id":"dbm9xzu","kind":"comment","text":"Awesome, thanks!\n\nIs there any way you'd make it easier to install/use?","timestamp":"2016-12-25T18:18:11+00:00","score":2},{"role":"answerer","user_id":"anon_0d109dc9894c43d6","comment_id":"dbmavqk","kind":"comment","text":"Nothing specific that I can think of. For basic use it's pretty simple","timestamp":"2016-12-25T18:45:32+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_18c79203af9be2ce","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0d109dc9894c43d6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dbm7ypi","thanks_reply_id":"dbm9xzu","post_score":5,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_c885c69eb80f96c0","answerer_user_id":"anon_2d59a1ba36c1e8b4","subreddit":"programming","timestamp":"2017-01-13T09:07:45+00:00","post_id":"5npmq2","question":"What a future with Emergent Coding might look like. (TL;DR - No maintenance, no boss and a payment every time a user changes a requirement.)","preferred_answer":"...and no idea why the software is broken, what went wrong, etc. no thanks.","full_conversation":[{"role":"OP","user_id":"anon_c885c69eb80f96c0","comment_id":"5npmq2","kind":"post","text":"What a future with Emergent Coding might look like. (TL;DR - No maintenance, no boss and a payment every time a user changes a requirement.)","timestamp":"2017-01-13T09:07:45+00:00","score":0},{"role":"answerer","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"dcdkgvz","kind":"comment","text":"...and no idea why the software is broken, what went wrong, etc. no thanks.","timestamp":"2017-01-13T14:37:48+00:00","score":4},{"role":"OP","user_id":"anon_c885c69eb80f96c0","comment_id":"dcec0lk","kind":"comment","text":"This system has perfect accountability. As a developer, you build your agent to care only about its immediate client and its immediate suppliers. Your suppliers could produce non-conforming code that could actually be their supplier's supplier's fault, but as far as you are concerned, your immediate supplier is the one who stuffed up. You have recourse now. You can swap out that supplier for one of its competitors.","timestamp":"2017-01-13T23:42:01+00:00","score":1},{"role":"answerer","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"dceqlxk","kind":"comment","text":"So it's just like normal programming but super proprietary and strange? Great!","timestamp":"2017-01-14T06:20:30+00:00","score":2},{"role":"OP","user_id":"anon_c885c69eb80f96c0","comment_id":"dcesoiq","kind":"comment","text":"Anyone who commissions a build owns the binary executable that is returned to them. No licenses needed. So it's definitely not proprietary in that sense. \n\nBut each developer does *own* their agent.\n\nI'm actually glad you said \"it's just like normal programming\" - Yes! A lot of things do come across. But it's a new mechanism for developers to both cast and harness each others' knowledge in such a way that the positive contributors are rewarded (both with payment and enhanced reputation), and the negative contributors are effectively ostracized. \n\nPlease feel free to take it for a spin. Build one of the template programs I linked to below, or create an entirely new expression and choose the agents you want to contract. The point is, you have that choice. \n\nBuild a program that runs on a Linux OS (i.e. contract agents that compile requirements to binary code):\n\n1. [Hello World](https://marketplace.codevalley.com/pilot.html#hello-world-data-julie-2.xp) \n2. [Text reverser](https://marketplace.codevalley.com/pilot.html#linux-text-reversal.xp) \n3. [Fibonacci calculator](https://marketplace.codevalley.com/pilot.html#linux-fibonacci-sequence-displayer.xp) \n\nBuild a program that runs in a browser (i.e. contract agents that compile requirements to js):\n\n1. [Hello World](https://marketplace.codevalley.com/pilot.html#hello-world-data-julie-js-2.xp)\n2. [Text reverser](https://marketplace.codevalley.com/pilot.html#browser-text-reversal.xp) \n3. [Fibonacci calculator](https://marketplace.codevalley.com/pilot.html#browser-fibonacci-sequence-displayer.xp) \n\nYou can also take a more in-depth (interactive) tour of emergent coding [here](https://marketplace.codevalley.com/use-it/module0-step1).","timestamp":"2017-01-14T07:45:17+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c885c69eb80f96c0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2d59a1ba36c1e8b4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dcdkgvz","thanks_reply_id":"dcec0lk","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_8c928eee6a496b5c","answerer_user_id":"anon_50429bfdb5f7745a","subreddit":"programming","timestamp":"2017-01-13T23:24:31+00:00","post_id":"5nu3ig","question":"What You Need To Know About Free & Open Source Software Licensing","preferred_answer":"I am a lawyer who specializes in software. I've written and read more software licenses than I care to remember. Written many dozens, read many hundreds. \n\nThis presentation is pretty good. I'm impressed, frankly. Gets a lot of subtle points right - especially on trademarks, moral rights and the fact it's better to choose a license than rely on PD. I would have included \"trade secrets\" in there as well, however.\n\nAside from that, one major criticism: I write software licenses all the time. In fact, I just worked on one for a piece of software that costs several million dollars a year - the license wound up being about 50 pages with addendums on top of that. Insanely complex software and the conditions of access, service level, trademark use and regulatory compliance were all totally material. Relying on a pre-written license was absurdly out of the question. The mere suggestion would have been proof positive of gross incompetence. \n\nIt's really bad advice to tell people not to hire lawyers to write software licenses. Don't hire the bozo that helped you buy a house or wrote your uncle's will or helped your mom apply for a permit variance - you will likely get the work product talked about in this presentation - some hack job based on a pre-existing license. Hire someone who actually focuses on software. We do exist. \n\nHe worldview that publicly available licenses cover the universe of popular uses is very dangerous and counterproductive. FOSS licenses have their uses - and they are overwhelmingly for components aimed at developers and for non-commercial use. If you are ever, ever, ever charging money for software and you are using an off the shelf license without attorney review you are stark, raving mad. These licenses simply do not cover the few dozen extra terms that are utterly critical for a robust commercial offering: choice of law, dmca language, indemnities, interpretation, severability, etc. in other words, even if you want to license your software under a 2clause BSD, I still need to write about 2-3 pages of crap that provide context and support to this license to ensure it is actually binding, your company is properly protected, there are no easy ways around the license, etc.\n\nThe moral of the story is that when someone tells you not to hire a lawyer, unless that person is themselves a lawyer, it's almost universally bad advice. And, for the record, I tell people legal work is not necessary fairly frequently.","full_conversation":[{"role":"OP","user_id":"anon_8c928eee6a496b5c","comment_id":"5nu3ig","kind":"post","text":"What You Need To Know About Free & Open Source Software Licensing","timestamp":"2017-01-13T23:24:31+00:00","score":8},{"role":"answerer","user_id":"anon_50429bfdb5f7745a","comment_id":"dceymv4","kind":"comment","text":"I am a lawyer who specializes in software. I've written and read more software licenses than I care to remember. Written many dozens, read many hundreds. \n\nThis presentation is pretty good. I'm impressed, frankly. Gets a lot of subtle points right - especially on trademarks, moral rights and the fact it's better to choose a license than rely on PD. I would have included \"trade secrets\" in there as well, however.\n\nAside from that, one major criticism: I write software licenses all the time. In fact, I just worked on one for a piece of software that costs several million dollars a year - the license wound up being about 50 pages with addendums on top of that. Insanely complex software and the conditions of access, service level, trademark use and regulatory compliance were all totally material. Relying on a pre-written license was absurdly out of the question. The mere suggestion would have been proof positive of gross incompetence. \n\nIt's really bad advice to tell people not to hire lawyers to write software licenses. Don't hire the bozo that helped you buy a house or wrote your uncle's will or helped your mom apply for a permit variance - you will likely get the work product talked about in this presentation - some hack job based on a pre-existing license. Hire someone who actually focuses on software. We do exist. \n\nHe worldview that publicly available licenses cover the universe of popular uses is very dangerous and counterproductive. FOSS licenses have their uses - and they are overwhelmingly for components aimed at developers and for non-commercial use. If you are ever, ever, ever charging money for software and you are using an off the shelf license without attorney review you are stark, raving mad. These licenses simply do not cover the few dozen extra terms that are utterly critical for a robust commercial offering: choice of law, dmca language, indemnities, interpretation, severability, etc. in other words, even if you want to license your software under a 2clause BSD, I still need to write about 2-3 pages of crap that provide context and support to this license to ensure it is actually binding, your company is properly protected, there are no easy ways around the license, etc.\n\nThe moral of the story is that when someone tells you not to hire a lawyer, unless that person is themselves a lawyer, it's almost universally bad advice. And, for the record, I tell people legal work is not necessary fairly frequently.","timestamp":"2017-01-14T13:04:18+00:00","score":3},{"role":"OP","user_id":"anon_8c928eee6a496b5c","comment_id":"dcf4m6s","kind":"comment","text":"Thank you for the critique and feedback!\n\nYou're right that I should have been more clear in the section about not writing your own license. I meant for that to refer to projects that are releasing specifically Free/Open Source software -- and I still believe that in that case people should stick to standard licenses. However I totally agree that if you're doing something commercial, you absolutely should talk to a lawyer.\n\nThanks again for the commentary!","timestamp":"2017-01-14T16:15:43+00:00","score":1},{"role":"answerer","user_id":"anon_50429bfdb5f7745a","comment_id":"dch47j8","kind":"comment","text":"> I meant for that to refer to projects that are releasing specifically Free/Open Source software -- and I still believe that in that case people should stick to standard licenses. \n\nI am right there with you. Note that my agreement does not constitute my endorsement and I am not your lawyer. \n\nAnyway, cheers dotcomrade, and well done.","timestamp":"2017-01-15T23:35:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8c928eee6a496b5c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_50429bfdb5f7745a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dceymv4","thanks_reply_id":"dcf4m6s","post_score":8,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_4ec98a21c4cc9f01","answerer_user_id":"anon_d4325eaf030de1ed","subreddit":"programming","timestamp":"2017-01-14T06:35:59+00:00","post_id":"5nw40y","question":"Does anyone else have trouble finishing their side-programming projects?","preferred_answer":"I used to have this problem, but I've gotten better at it over the years. I've finished a large number of side projects, some of which have been or are fairly popular.\n\n* I try to set clear boundaries about what the goal of the program is, what it's supposed to accomplish and what it *isn't* supposed to do.\n* Keep it small. The Unix mentality of \"do one thing and do it well\" is helpful here.\n* It has to solve an actual problem I have. I'm not going to write another Wiki or CMS. It's just demoralizing to do that, because there are already projects out there that are more mature, feature-rich and actually being used by people.\n* Release as early as possible to the actual public.\n* Work towards v1.0 as soon as possible.\n* Never plan a v2.0, unless it serves the exact same goal as v1.0, but you *had* to make some backwards incompatible change. This prevents me from tacking on new features time and time again, which I probably don't even need. \n* The project has to serve *my* goals and *only* my goals. This is not because I don't want other people to have nice features, it's because I know I'm not going to feel like maintaining features I never use.\n\nThere are a few problems with this method. For one thing, there is a massive amount of overhead in actually releasing side projects to the public. Documentation, packaging, fixing bugs, communication, etc. A rough estimate would be about 400% overhead. That is, if the actual project itself takes 40 hours, releasing it to the public will take an additional 160 hours. Why go through all that trouble for a side-project? Well.. because it gives you that nice feeling of actually having finished it! \n\nThe other problem is that there's little incentive to experiment. Lots of people start their side-projects not to solve an actual problem they have, but because they think \"gee, that Event Sourcing architecture sounds interesting. I should make up a project so I can experiment with that\". I think this, in large part, leads to unfinished projects. But that's completely fine! For me, it helps to not think of those as projects, but as mere experiments. The goal isn't to finish it. The goal is to get a feel for the technology. I never have any intention of finishing my experiments. I don't refactor the code. I don't write documentation about it. When my curiosity is satisfied, I usually just push the code to my private git repository and forget about it.\n\n**edit**: Here's an example (pardon the plug ;-) of a small side-project I do: [Ansible-CMDB](https://github.com/fboender/ansible-cmdb). At a few thousand lines of code, it small enough to quickly get out the door. It has a clear goal and scope. And it's taught me a huge amount about how Ansible works, packaging, etc.","full_conversation":[{"role":"OP","user_id":"anon_4ec98a21c4cc9f01","comment_id":"5nw40y","kind":"post","text":"Does anyone else have trouble finishing their side-programming projects?","timestamp":"2017-01-14T06:35:59+00:00","score":1146},{"role":"answerer","user_id":"anon_d4325eaf030de1ed","comment_id":"dceu3qu","kind":"comment","text":"I used to have this problem, but I've gotten better at it over the years. I've finished a large number of side projects, some of which have been or are fairly popular.\n\n* I try to set clear boundaries about what the goal of the program is, what it's supposed to accomplish and what it *isn't* supposed to do.\n* Keep it small. The Unix mentality of \"do one thing and do it well\" is helpful here.\n* It has to solve an actual problem I have. I'm not going to write another Wiki or CMS. It's just demoralizing to do that, because there are already projects out there that are more mature, feature-rich and actually being used by people.\n* Release as early as possible to the actual public.\n* Work towards v1.0 as soon as possible.\n* Never plan a v2.0, unless it serves the exact same goal as v1.0, but you *had* to make some backwards incompatible change. This prevents me from tacking on new features time and time again, which I probably don't even need. \n* The project has to serve *my* goals and *only* my goals. This is not because I don't want other people to have nice features, it's because I know I'm not going to feel like maintaining features I never use.\n\nThere are a few problems with this method. For one thing, there is a massive amount of overhead in actually releasing side projects to the public. Documentation, packaging, fixing bugs, communication, etc. A rough estimate would be about 400% overhead. That is, if the actual project itself takes 40 hours, releasing it to the public will take an additional 160 hours. Why go through all that trouble for a side-project? Well.. because it gives you that nice feeling of actually having finished it! \n\nThe other problem is that there's little incentive to experiment. Lots of people start their side-projects not to solve an actual problem they have, but because they think \"gee, that Event Sourcing architecture sounds interesting. I should make up a project so I can experiment with that\". I think this, in large part, leads to unfinished projects. But that's completely fine! For me, it helps to not think of those as projects, but as mere experiments. The goal isn't to finish it. The goal is to get a feel for the technology. I never have any intention of finishing my experiments. I don't refactor the code. I don't write documentation about it. When my curiosity is satisfied, I usually just push the code to my private git repository and forget about it.\n\n**edit**: Here's an example (pardon the plug ;-) of a small side-project I do: [Ansible-CMDB](https://github.com/fboender/ansible-cmdb). At a few thousand lines of code, it small enough to quickly get out the door. It has a clear goal and scope. And it's taught me a huge amount about how Ansible works, packaging, etc.","timestamp":"2017-01-14T08:55:54+00:00","score":324},{"role":"OP","user_id":"anon_4ec98a21c4cc9f01","comment_id":"dcewtre","kind":"comment","text":"Thank-you for the fantastic advice! I've taken a screen shot for my own reference. That was really interesting :)","timestamp":"2017-01-14T11:30:42+00:00","score":3},{"role":"answerer","user_id":"anon_d4325eaf030de1ed","comment_id":"dcexk1u","kind":"comment","text":"And thank you for the article and post. It's interesting seeing people's thoughts on this!","timestamp":"2017-01-14T12:11:46+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4ec98a21c4cc9f01","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d4325eaf030de1ed","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dceu3qu","thanks_reply_id":"dcewtre","post_score":1146,"answer_score":324,"preferred_answer_is_top_level":true}} {"user_id":"anon_db18b90c2364b6eb","answerer_user_id":"anon_2ec829e4cb26e28f","subreddit":"programming","timestamp":"2017-01-16T04:04:40+00:00","post_id":"5o8nal","question":"are hacks shortcuts?","preferred_answer":"> Please try to keep submissions on topic and of high quality.","full_conversation":[{"role":"OP","user_id":"anon_db18b90c2364b6eb","comment_id":"5o8nal","kind":"post","text":"are hacks shortcuts?","timestamp":"2017-01-16T04:04:40+00:00","score":0},{"role":"answerer","user_id":"anon_2ec829e4cb26e28f","comment_id":"dchmgnf","kind":"comment","text":"> Please try to keep submissions on topic and of high quality.","timestamp":"2017-01-16T06:40:05+00:00","score":2},{"role":"OP","user_id":"anon_db18b90c2364b6eb","comment_id":"dchnwzl","kind":"comment","text":"Hi, would you elaborate? thank you in advance","timestamp":"2017-01-16T07:35:34+00:00","score":1},{"role":"answerer","user_id":"anon_2ec829e4cb26e28f","comment_id":"dcho2zs","kind":"comment","text":"A two-minute low quality recording of a stream where a guy is rambling is hardly what I'd consider high quality. Especially since the actual content (the guy talking) is just in a tiny view in the corner.","timestamp":"2017-01-16T07:42:32+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_db18b90c2364b6eb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2ec829e4cb26e28f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dchmgnf","thanks_reply_id":"dchnwzl","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_039a878f5279e0de","answerer_user_id":"anon_973555b016b4699a","subreddit":"programming","timestamp":"2017-01-31T08:36:41+00:00","post_id":"5r719p","question":"I made a small, bootable space invaders clone in x86 assembly - what do you think?","preferred_answer":"Wow, this is really cool! \n\nI've always wanted to learn x86 assembly, but it's always seemed really difficult.","full_conversation":[{"role":"OP","user_id":"anon_039a878f5279e0de","comment_id":"5r719p","kind":"post","text":"I made a small, bootable space invaders clone in x86 assembly - what do you think?","timestamp":"2017-01-31T08:36:41+00:00","score":720},{"role":"answerer","user_id":"anon_973555b016b4699a","comment_id":"dd54hd1","kind":"comment","text":"Wow, this is really cool! \n\nI've always wanted to learn x86 assembly, but it's always seemed really difficult.","timestamp":"2017-01-31T13:19:59+00:00","score":2},{"role":"OP","user_id":"anon_039a878f5279e0de","comment_id":"dd55fco","kind":"comment","text":"Thanks a lot!\n\nI can only recommend to give it a try for yourself. The assembly syntax is definitely intimidating at first but very straight forward. The entry is surprisingly gentle. Check out [pcasm](http://pacman128.github.io/static/pcasm-book.pdf), this book gave me a very good overall view about the things I would need for this project.","timestamp":"2017-01-31T13:46:56+00:00","score":11},{"role":"answerer","user_id":"anon_973555b016b4699a","comment_id":"dd55mk2","kind":"comment","text":"Thanks for the recommendation!","timestamp":"2017-01-31T13:52:23+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_039a878f5279e0de","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_973555b016b4699a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dd54hd1","thanks_reply_id":"dd55fco","post_score":720,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_f0e07abd998c9df7","answerer_user_id":"anon_9d0ccfa7649938b3","subreddit":"programming","timestamp":"2017-02-01T19:29:51+00:00","post_id":"5rhlr3","question":"How would Git handle a SHA-1 collision on a blob?","preferred_answer":"It's important to be precise what one means by \"collisions.\" In the current terminology, collision-resistant hash functions like SHA-1, SHA-2, SHA-3 and Blake2 are supposed to have these three properties, which I'll describe as games between a defender and an attacker:\n\n* **Second preimage resistance:** Defender picks a message `m1`. Attacker has to find a message `m2` different from `m1` such that `hash(m1) = hash(m2)`.\n* **Preimage resistance:** Defender picks a hash result `x`. Attacker has to find a message `m` such that `hash(m) = x`. \n* **Collision resistance:** The defender doesn't make any choices. Attacker wins if they can find two distinct messages `m1` and `m2` such that `hash(m1) = hash(m2)`.\n\nSHA-1's collision resistance is broken in theory, but its preimage resistance has so far held up. This means that it is still as infeasible as it's been so far for an attacker construct a blob that collides with one that already exists in a repo—that would be a second preimage attack.\n\nWhat SHA-1 weaknesses *might* allow an attacker to do in the not too distant feature is construct two blobs that collide with each other, but not with any preexisting blob in the repo.\n\n**EDIT:** This is as good an opportunity as any to give some advice:\n\n1. Don't use SHA-1 for any new projects. Instead use one of:\n * SHA-2. If you can use the recent [SHA-512/256](https://tools.ietf.org/html/draft-dang-turner-sha-512-224-256-00) or SHA-384, [those are more foolproof than SHA-256 and SHA-512 and thus preferable](https://blog.cryptographyengineering.com/2012/07/17/indifferentiability/), but none of them is bad if used correctly.\n * SHA-3, if you can find support for it at all, is a good choice.\n * [Blake2](https://blake2.net/) has become notably popular and is worth consideration.\n2. If you have old code that uses SHA-1, evaluate whether it requires collision resistance or just preimage resistance.\n * If it requires collision resistance your should plan to replace it soon. [As Bruce Schneier puts it](https://www.schneier.com/blog/archives/2015/10/sha-1_freestart.html), \"don't panic, but prepare for a future panic.\"\n * If your use just requires SHA-1 to be preimage resistant, or uses HMAC-SHA-1, there's no rush to replace it right now.\n\n**EDIT 2:** To get an idea of what scenarios could arise if a practical collision attack is discovered against SHA-1, the best example is to [read about what happened when practical collision attacks were discovered against MD5](https://www.win.tue.nl/hashclash/rogue-ca/). Short version: researchers were able to forge a valid CA certificate for SSL.","full_conversation":[{"role":"OP","user_id":"anon_f0e07abd998c9df7","comment_id":"5rhlr3","kind":"post","text":"How would Git handle a SHA-1 collision on a blob?","timestamp":"2017-02-01T19:29:51+00:00","score":146},{"role":"answerer","user_id":"anon_9d0ccfa7649938b3","comment_id":"dd7ibgx","kind":"comment","text":"It's important to be precise what one means by \"collisions.\" In the current terminology, collision-resistant hash functions like SHA-1, SHA-2, SHA-3 and Blake2 are supposed to have these three properties, which I'll describe as games between a defender and an attacker:\n\n* **Second preimage resistance:** Defender picks a message `m1`. Attacker has to find a message `m2` different from `m1` such that `hash(m1) = hash(m2)`.\n* **Preimage resistance:** Defender picks a hash result `x`. Attacker has to find a message `m` such that `hash(m) = x`. \n* **Collision resistance:** The defender doesn't make any choices. Attacker wins if they can find two distinct messages `m1` and `m2` such that `hash(m1) = hash(m2)`.\n\nSHA-1's collision resistance is broken in theory, but its preimage resistance has so far held up. This means that it is still as infeasible as it's been so far for an attacker construct a blob that collides with one that already exists in a repo—that would be a second preimage attack.\n\nWhat SHA-1 weaknesses *might* allow an attacker to do in the not too distant feature is construct two blobs that collide with each other, but not with any preexisting blob in the repo.\n\n**EDIT:** This is as good an opportunity as any to give some advice:\n\n1. Don't use SHA-1 for any new projects. Instead use one of:\n * SHA-2. If you can use the recent [SHA-512/256](https://tools.ietf.org/html/draft-dang-turner-sha-512-224-256-00) or SHA-384, [those are more foolproof than SHA-256 and SHA-512 and thus preferable](https://blog.cryptographyengineering.com/2012/07/17/indifferentiability/), but none of them is bad if used correctly.\n * SHA-3, if you can find support for it at all, is a good choice.\n * [Blake2](https://blake2.net/) has become notably popular and is worth consideration.\n2. If you have old code that uses SHA-1, evaluate whether it requires collision resistance or just preimage resistance.\n * If it requires collision resistance your should plan to replace it soon. [As Bruce Schneier puts it](https://www.schneier.com/blog/archives/2015/10/sha-1_freestart.html), \"don't panic, but prepare for a future panic.\"\n * If your use just requires SHA-1 to be preimage resistant, or uses HMAC-SHA-1, there's no rush to replace it right now.\n\n**EDIT 2:** To get an idea of what scenarios could arise if a practical collision attack is discovered against SHA-1, the best example is to [read about what happened when practical collision attacks were discovered against MD5](https://www.win.tue.nl/hashclash/rogue-ca/). Short version: researchers were able to forge a valid CA certificate for SSL.","timestamp":"2017-02-01T21:58:24+00:00","score":54},{"role":"OP","user_id":"anon_f0e07abd998c9df7","comment_id":"dd7kg95","kind":"comment","text":"Thank you for the clarification. Am I correct in understanding that the [partial/freestart collisions](https://www.schneier.com/blog/archives/2015/10/sha-1_freestart.html) discussed by Schneier are only arbitrary collisions (of the inner hash function), not any kind of preimage attack? (To that extent that that question is even meaningful for the inner part of the hash function.)","timestamp":"2017-02-01T22:37:07+00:00","score":2},{"role":"answerer","user_id":"anon_9d0ccfa7649938b3","comment_id":"dd7mj2q","kind":"comment","text":"When you say the \"inner hash function\" you mean the compression function. And looking at the first page of the paper by \"collisions\" they do mean collision resistance in the sense that I give (attacker is not constrained by a choice made by the defender), and not preimage resistance.\n\nThere's an older terminology where collision resistance is called \"*strong* collision resistance\" and preimage resistance is called \"*weak* preimage resistance,\" but thankfully that terminology doesn't see much use today. Still, it pays to always double check what precisely people mean when they use a cryptographic term, instead of just assuming you understand.","timestamp":"2017-02-01T23:17:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f0e07abd998c9df7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9d0ccfa7649938b3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dd7ibgx","thanks_reply_id":"dd7kg95","post_score":146,"answer_score":54,"preferred_answer_is_top_level":true}} {"user_id":"anon_88198b1bfa53dc06","answerer_user_id":"anon_8ae65857f0d05ce9","subreddit":"programming","timestamp":"2017-02-01T23:49:56+00:00","post_id":"5rj7w9","question":"How can I make this code shorter and more efficient? [Java]","preferred_answer":"> Do you have a question? Check out /r/learnprogramming, /r/cscareerquestions, or stackoverflow.\n\nRight there in the sidebar...","full_conversation":[{"role":"OP","user_id":"anon_88198b1bfa53dc06","comment_id":"5rj7w9","kind":"post","text":"How can I make this code shorter and more efficient? [Java]","timestamp":"2017-02-01T23:49:56+00:00","score":0},{"role":"answerer","user_id":"anon_8ae65857f0d05ce9","comment_id":"dd7ol3v","kind":"comment","text":"> Do you have a question? Check out /r/learnprogramming, /r/cscareerquestions, or stackoverflow.\n\nRight there in the sidebar...","timestamp":"2017-02-01T23:59:23+00:00","score":1},{"role":"OP","user_id":"anon_88198b1bfa53dc06","comment_id":"dd7oq6a","kind":"comment","text":"No need to be passive aggressive, thanks!","timestamp":"2017-02-02T00:02:17+00:00","score":2},{"role":"answerer","user_id":"anon_8ae65857f0d05ce9","comment_id":"dd7oryd","kind":"comment","text":"Pointing out that the answer to your question is in the rules you're expected to read before you participate isn't passive aggressive. Best of luck with your studies.","timestamp":"2017-02-02T00:03:17+00:00","score":1},{"role":"OP","user_id":"anon_88198b1bfa53dc06","comment_id":"dd7p03x","kind":"comment","text":"Yeah, everyone reads the sidebar!\n\nMy bad for assuming that /r/Programming wouldn't help with Programs.\n\nI'm sorry I offended you, I hope you recover.","timestamp":"2017-02-02T00:07:54+00:00","score":1},{"role":"answerer","user_id":"anon_8ae65857f0d05ce9","comment_id":"dd7p872","kind":"comment","text":"Not sure what you're angry about. I have taken no offense. I was trying to point out that the sidebar contains a wealth of information you might find useful. Since the sidebar is where subreddits publish their rules, people are expected to read them before participating. That's part of being a good reddit citizen. I didn't mean to anger you by suggesting you read it, I was trying to be helpful.\n\nI truly do wish you the best of luck with your studies. I looked at your code btw and it looks pretty good to me. It's readable, and that's a lot more important than being 1% more efficient. :)","timestamp":"2017-02-02T00:12:41+00:00","score":0}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_88198b1bfa53dc06","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8ae65857f0d05ce9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dd7ol3v","thanks_reply_id":"dd7oq6a","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_069df57a3a645590","answerer_user_id":"anon_4fbcfce86eb93edc","subreddit":"programming","timestamp":"2017-02-06T21:59:02+00:00","post_id":"5sh8zx","question":"How I built the IMDb message boards, in 2001","preferred_answer":"In case anybody wants it in epub format for easier reading: [Here it is](https://my.mixtape.moe/xjrcjb.epub).","full_conversation":[{"role":"OP","user_id":"anon_069df57a3a645590","comment_id":"5sh8zx","kind":"post","text":"How I built the IMDb message boards, in 2001","timestamp":"2017-02-06T21:59:02+00:00","score":453},{"role":"answerer","user_id":"anon_4fbcfce86eb93edc","comment_id":"ddfjow2","kind":"comment","text":"In case anybody wants it in epub format for easier reading: [Here it is](https://my.mixtape.moe/xjrcjb.epub).","timestamp":"2017-02-07T05:00:54+00:00","score":21},{"role":"OP","user_id":"anon_069df57a3a645590","comment_id":"ddftkxq","kind":"comment","text":"Hey, thanks for this. Would it be OK if I added a link to it to the article?","timestamp":"2017-02-07T12:05:58+00:00","score":14},{"role":"answerer","user_id":"anon_4fbcfce86eb93edc","comment_id":"ddg30db","kind":"comment","text":"Absolutely, it's your article after all.","timestamp":"2017-02-07T16:13:47+00:00","score":11}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_069df57a3a645590","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4fbcfce86eb93edc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ddfjow2","thanks_reply_id":"ddftkxq","post_score":453,"answer_score":21,"preferred_answer_is_top_level":true}} {"user_id":"anon_34e8778ab0014e32","answerer_user_id":"anon_49861c9758d09a3b","subreddit":"programming","timestamp":"2017-03-03T19:28:54+00:00","post_id":"5xcfhz","question":"What is the best first language to learn? Conducting a survey for the IST program at my school. If you are a professional programmer, please help!","preferred_answer":"IMO i don't think any specific language is all that critical, it's more about the professors ability to get students to really understand what computation is, so first language should definitely be something easy. I think Racket was originally designed for educating people so maybe that? I suppose I can fill this thing out later ;p no access to google at work :P","full_conversation":[{"role":"OP","user_id":"anon_34e8778ab0014e32","comment_id":"5xcfhz","kind":"post","text":"What is the best first language to learn? Conducting a survey for the IST program at my school. If you are a professional programmer, please help!","timestamp":"2017-03-03T19:28:54+00:00","score":8},{"role":"answerer","user_id":"anon_49861c9758d09a3b","comment_id":"degz5hb","kind":"comment","text":"IMO i don't think any specific language is all that critical, it's more about the professors ability to get students to really understand what computation is, so first language should definitely be something easy. I think Racket was originally designed for educating people so maybe that? I suppose I can fill this thing out later ;p no access to google at work :P","timestamp":"2017-03-03T19:39:49+00:00","score":5},{"role":"OP","user_id":"anon_34e8778ab0014e32","comment_id":"degzdj8","kind":"comment","text":"Thank you for the input. I agree and we study Java for the first language. Java is translatable to many languages but I felt like it was confusing to some students.\n\nBut definitely I will take your input and include it in the report. And yeah I appreciate it if you can fill the survey later. It's literally 2-3 questions. Thanks a lot!","timestamp":"2017-03-03T19:44:03+00:00","score":1},{"role":"answerer","user_id":"anon_49861c9758d09a3b","comment_id":"degzpgc","kind":"comment","text":"i dont think java or c++ are good first languages, they are to complex, verbose and difficult for a beginner; so many low end places \"teach\" c++ and java through courses where your final product is silly atm machine or something similar... IMO it is just not a good way to teach.","timestamp":"2017-03-03T19:50:21+00:00","score":2},{"role":"OP","user_id":"anon_34e8778ab0014e32","comment_id":"deh1kn1","kind":"comment","text":"Great comment. I'm gonna add a section in the survey \"Is Java a good first lang to learn?\"","timestamp":"2017-03-03T20:27:03+00:00","score":1},{"role":"answerer","user_id":"anon_49861c9758d09a3b","comment_id":"deheniy","kind":"comment","text":"no problem glad i can help it's nice you care","timestamp":"2017-03-04T01:17:51+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_34e8778ab0014e32","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_49861c9758d09a3b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"degz5hb","thanks_reply_id":"degzdj8","post_score":8,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_dac2675381df5754","answerer_user_id":"anon_89e32327cc94e8b7","subreddit":"programming","timestamp":"2017-03-09T13:48:55+00:00","post_id":"5yf4p9","question":"How to *never* complete a side project","preferred_answer":"Still in his startup, not having competed things.. So why is he still not being fired? Is he C*O of the same one?.\n\nThis should go to /r/savedyouaclick for so useless post.","full_conversation":[{"role":"OP","user_id":"anon_dac2675381df5754","comment_id":"5yf4p9","kind":"post","text":"How to *never* complete a side project","timestamp":"2017-03-09T13:48:55+00:00","score":442},{"role":"answerer","user_id":"anon_89e32327cc94e8b7","comment_id":"depqhq3","kind":"comment","text":"Still in his startup, not having competed things.. So why is he still not being fired? Is he C*O of the same one?.\n\nThis should go to /r/savedyouaclick for so useless post.","timestamp":"2017-03-09T17:10:10+00:00","score":-1},{"role":"OP","user_id":"anon_dac2675381df5754","comment_id":"depsjhp","kind":"comment","text":"My startups a side project, in my spare time. Thanks for calling my post 'useless', I was just sharing something I think programmers are guilty of. Something relatable.","timestamp":"2017-03-09T17:46:14+00:00","score":1},{"role":"answerer","user_id":"anon_89e32327cc94e8b7","comment_id":"depwa92","kind":"comment","text":"'Useless' in the sense of.. Nothing is really achieved at the end of the post itself. Saying Just.Do.it doesn't say how to solve the problem","timestamp":"2017-03-09T18:50:46+00:00","score":-1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_dac2675381df5754","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_89e32327cc94e8b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"depqhq3","thanks_reply_id":"depsjhp","post_score":442,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_0efaab4b3ea1acd8","answerer_user_id":"anon_e6a50302fd01c2ff","subreddit":"programming","timestamp":"2017-03-13T14:31:43+00:00","post_id":"5z5a7e","question":"I've started writing a blog (First article: \"Why You’re Wrong If You Think Java Is Slow And C Is Fast\"). What do you think? Should I continue writing more?","preferred_answer":"While I wholeheartedly agree with the premise of the post I think the execution was a bit poor. \n\nThe people who generally go \"hurdur java is slooow\" will only be convinced otherwise with an example of Java being comparable in speed to C in a real example, followed by an explanation as to why. \n\nI think it was a missed opportunity to talk about the trade offs of the different methods described. Particularly with the HotSpot VM for Java, and all the inlining, adaptive optimization at runtime, and any other goodness that happens. \n\nEdit: ***Yes please keep writing, I did enjoy reading it.***","full_conversation":[{"role":"OP","user_id":"anon_0efaab4b3ea1acd8","comment_id":"5z5a7e","kind":"post","text":"I've started writing a blog (First article: \"Why You’re Wrong If You Think Java Is Slow And C Is Fast\"). What do you think? Should I continue writing more?","timestamp":"2017-03-13T14:31:43+00:00","score":0},{"role":"answerer","user_id":"anon_e6a50302fd01c2ff","comment_id":"devdz5q","kind":"comment","text":"While I wholeheartedly agree with the premise of the post I think the execution was a bit poor. \n\nThe people who generally go \"hurdur java is slooow\" will only be convinced otherwise with an example of Java being comparable in speed to C in a real example, followed by an explanation as to why. \n\nI think it was a missed opportunity to talk about the trade offs of the different methods described. Particularly with the HotSpot VM for Java, and all the inlining, adaptive optimization at runtime, and any other goodness that happens. \n\nEdit: ***Yes please keep writing, I did enjoy reading it.***","timestamp":"2017-03-13T15:05:33+00:00","score":2},{"role":"OP","user_id":"anon_0efaab4b3ea1acd8","comment_id":"devedrl","kind":"comment","text":"Thanks for the criticism. I'll do my best to include more benchmarks and proof in the future :-)","timestamp":"2017-03-13T15:14:08+00:00","score":2},{"role":"answerer","user_id":"anon_e6a50302fd01c2ff","comment_id":"devel0u","kind":"comment","text":"No problem, I really did enjoy reading it! It flowed really nicely and so when it abruptly ended without an example I had to double check to make sure there wasn't a next page button. \n\nKeep it up :)","timestamp":"2017-03-13T15:18:18+00:00","score":2},{"role":"OP","user_id":"anon_0efaab4b3ea1acd8","comment_id":"devewyi","kind":"comment","text":"Thanks. I'm thinking my next articles might go more into the details of how I'm developing my operating system, so expect more code examples!","timestamp":"2017-03-13T15:24:59+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0efaab4b3ea1acd8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e6a50302fd01c2ff","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"devdz5q","thanks_reply_id":"devedrl","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_239b1adb4a09806b","answerer_user_id":"anon_ae3ed53788b64542","subreddit":"programming","timestamp":"2017-03-16T22:19:47+00:00","post_id":"5ztr48","question":"How Discord Indexes Billions of Messages using Elasticsearch","preferred_answer":"o hai discord. thanks for your program I use it everyday","full_conversation":[{"role":"OP","user_id":"anon_239b1adb4a09806b","comment_id":"5ztr48","kind":"post","text":"How Discord Indexes Billions of Messages using Elasticsearch","timestamp":"2017-03-16T22:19:47+00:00","score":1324},{"role":"answerer","user_id":"anon_ae3ed53788b64542","comment_id":"df11y4c","kind":"comment","text":"o hai discord. thanks for your program I use it everyday","timestamp":"2017-03-16T23:28:03+00:00","score":193},{"role":"OP","user_id":"anon_239b1adb4a09806b","comment_id":"df127oa","kind":"comment","text":"np np thanks for using it!","timestamp":"2017-03-16T23:33:33+00:00","score":117},{"role":"answerer","user_id":"anon_ae3ed53788b64542","comment_id":"df12h39","kind":"comment","text":"I was actually inspired to start programming due to wanting to make a Discord bot. It's tapir-bot if you ever see it around. It's mainly in the /r/starcitizen discord. Anyways thanks again!","timestamp":"2017-03-16T23:39:00+00:00","score":16}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_239b1adb4a09806b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ae3ed53788b64542","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"df11y4c","thanks_reply_id":"df127oa","post_score":1324,"answer_score":193,"preferred_answer_is_top_level":true}} {"user_id":"anon_1dee5037c84483db","answerer_user_id":"anon_035e6bb341c6c06b","subreddit":"programming","timestamp":"2017-03-29T08:55:03+00:00","post_id":"625hv7","question":"Is making this type of program possible ?","preferred_answer":"The easiest way, you can just download the page and check whether the value in the tag where info about this figure being sold out is changed, downloading it again every several period of time, running the program in an infinite loop\nWhen it is, you break the loop and send yourself an email","full_conversation":[{"role":"OP","user_id":"anon_1dee5037c84483db","comment_id":"625hv7","kind":"post","text":"Is making this type of program possible ?","timestamp":"2017-03-29T08:55:03+00:00","score":0},{"role":"answerer","user_id":"anon_035e6bb341c6c06b","comment_id":"dfjvoyj","kind":"comment","text":"The easiest way, you can just download the page and check whether the value in the tag where info about this figure being sold out is changed, downloading it again every several period of time, running the program in an infinite loop\nWhen it is, you break the loop and send yourself an email","timestamp":"2017-03-29T09:04:13+00:00","score":1},{"role":"OP","user_id":"anon_1dee5037c84483db","comment_id":"dfjvr7l","kind":"comment","text":"I see, thanks. What kind of program do I need to use.\n\n \n\n \n\nSorry I am a noob.","timestamp":"2017-03-29T09:07:31+00:00","score":1},{"role":"answerer","user_id":"anon_035e6bb341c6c06b","comment_id":"dfjw04u","kind":"comment","text":"Sorry, but I don't quietly get your question. If you mean the language, use python, it is easy to get into. You would like to use urrlib library for opening a web page in your program and smtplib for sending an email.","timestamp":"2017-03-29T09:20:42+00:00","score":1},{"role":"OP","user_id":"anon_1dee5037c84483db","comment_id":"dfjw350","kind":"comment","text":"Someone replied perfectly to this : https://www.reddit.com/r/Overwatch/comments/625fa4/would_there_be_a_way_of_being_alerted_when_the/dfjvtcs/","timestamp":"2017-03-29T09:25:10+00:00","score":1},{"role":"answerer","user_id":"anon_035e6bb341c6c06b","comment_id":"dfjw6xb","kind":"comment","text":"Okay then ;)","timestamp":"2017-03-29T09:30:46+00:00","score":1},{"role":"OP","user_id":"anon_1dee5037c84483db","comment_id":"dfjwa1t","kind":"comment","text":"You see what I meant ? I was looking for a program or some kind of software to do this, and I didn't really know where to ask on reddit.","timestamp":"2017-03-29T09:35:12+00:00","score":1},{"role":"answerer","user_id":"anon_035e6bb341c6c06b","comment_id":"dfjwejy","kind":"comment","text":"Yes, I thought you asked if such program can be written, because you asked in programming subreddit and the title says so","timestamp":"2017-03-29T09:41:45+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_1dee5037c84483db","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_035e6bb341c6c06b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dfjvoyj","thanks_reply_id":"dfjvr7l","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_acc24142528c5512","answerer_user_id":"anon_37af2708d078db50","subreddit":"programming","timestamp":"2017-04-03T12:10:14+00:00","post_id":"636cns","question":"How to Install the ELK Stack on Google Cloud Platform","preferred_answer":"TL;DR: same way as on every other fucking linux machine","full_conversation":[{"role":"OP","user_id":"anon_acc24142528c5512","comment_id":"636cns","kind":"post","text":"How to Install the ELK Stack on Google Cloud Platform","timestamp":"2017-04-03T12:10:14+00:00","score":0},{"role":"answerer","user_id":"anon_37af2708d078db50","comment_id":"dfrnh7f","kind":"comment","text":"TL;DR: same way as on every other fucking linux machine","timestamp":"2017-04-03T12:42:09+00:00","score":2},{"role":"OP","user_id":"anon_acc24142528c5512","comment_id":"dfrnpyv","kind":"comment","text":"Thank you for that frank and informative feedback on my post regarding my first experience installing ELK stack anywhere.","timestamp":"2017-04-03T12:49:00+00:00","score":1},{"role":"answerer","user_id":"anon_37af2708d078db50","comment_id":"dfrnyym","kind":"comment","text":"Sorry, I see no sense in just reiterating instructions that are provided on product page anyway","timestamp":"2017-04-03T12:55:59+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_acc24142528c5512","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_37af2708d078db50","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dfrnh7f","thanks_reply_id":"dfrnpyv","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_f0f276761c048ebf","answerer_user_id":"anon_f04a050e2704219e","subreddit":"programming","timestamp":"2017-04-04T12:07:59+00:00","post_id":"63dp3w","question":"I mean, maybe I'm just stupid, but ... how does one even start to grok that stuff?","preferred_answer":"The line a couple above that is the key: ` __set_errno (ENOSYS);` which shows that you're looking at the default implementation for systems that don't support that function. `-1` is what it returns on error. `man errno` shows:\n\n> ENOSYS Function not implemented (POSIX.1)","full_conversation":[{"role":"OP","user_id":"anon_f0f276761c048ebf","comment_id":"63dp3w","kind":"post","text":"I mean, maybe I'm just stupid, but ... how does one even start to grok that stuff?","timestamp":"2017-04-04T12:07:59+00:00","score":0},{"role":"answerer","user_id":"anon_f04a050e2704219e","comment_id":"dft8xfs","kind":"comment","text":"The line a couple above that is the key: ` __set_errno (ENOSYS);` which shows that you're looking at the default implementation for systems that don't support that function. `-1` is what it returns on error. `man errno` shows:\n\n> ENOSYS Function not implemented (POSIX.1)","timestamp":"2017-04-04T12:21:40+00:00","score":3},{"role":"OP","user_id":"anon_f0f276761c048ebf","comment_id":"dft8z8c","kind":"comment","text":"Okay, thanks.\n\nSo... you know that tale about fishes and teaching people how to fish? ... How did you learn that stuff? Just by delving into it and bumping your head against the wall until you found the door? Just being a genius to start with? Or are there resources?","timestamp":"2017-04-04T12:23:10+00:00","score":1},{"role":"answerer","user_id":"anon_f04a050e2704219e","comment_id":"dft9atd","kind":"comment","text":"In this case, I saw something that didn't look quite how I expected then looked at what's happening around it. Seeing that it sets an error no, then returns an error made me figure that this has to just be a stub for unsupported systems.\n\nFor what it's worth, I looked at the raw git source on the actual site from GNU and found that the `sysdeps` directory provides other implementations of this like https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=sysdeps/posix/time.c;hb=HEAD\n\nI actually found that first by checking it out then doing `find -type f -name '*.c' -exec grep \"^time (\" {} +` to find `c` files that look like they might have definitions of that function. Here are the results I found with that:\n\n ./sysdeps/posix/time.c:time (t)\n ./sysdeps/unix/sysv/linux/time.c:time (t)\n ./sysdeps/unix/sysv/linux/x86/time.c:time (time_t *t)\n ./time/time.c:time (timer)\n\nI expect, without having verified, that the configure step of things will figure out which of these fits your system and fix up the make files appropriately when you build it.","timestamp":"2017-04-04T12:32:36+00:00","score":2},{"role":"OP","user_id":"anon_f0f276761c048ebf","comment_id":"dft9g9c","kind":"comment","text":"Makes sense.\n\nSo, prior experience with how gnu sources are set up... My mind just basically did not see that stuff, I was so focused on that weird *return -1*; and forgot that the rest could play a role too.\n\nCool to get some info, thanks.","timestamp":"2017-04-04T12:36:50+00:00","score":2},{"role":"answerer","user_id":"anon_f04a050e2704219e","comment_id":"dft9rsn","kind":"comment","text":"It wasn't really familiarity with gnu stuff per se, it was just trying to fit the puzzle pieces together. The code you linked would never return the time, but clearly my system does return the time, so there has to be something else that would do it. `find` helped me look for candidates that might provide working versions of it. Then, seeing that there were multiple implementations of it available, I leapt to the assumption that it's for portability and building the right version on the target system.","timestamp":"2017-04-04T12:45:37+00:00","score":2},{"role":"OP","user_id":"anon_f0f276761c048ebf","comment_id":"dft9wbt","kind":"comment","text":"Damn. I gave up too fast.\n\nOkay, my excuse is that I should be doing work stuff... :-)","timestamp":"2017-04-04T12:49:03+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_f0f276761c048ebf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f04a050e2704219e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dft8xfs","thanks_reply_id":"dft8z8c","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_e8f801be76525126","answerer_user_id":"anon_cae529b30e5441a9","subreddit":"programming","timestamp":"2017-04-13T17:35:16+00:00","post_id":"656z8t","question":"How We Built r/Place","preferred_answer":"I hate writing units tests too...","full_conversation":[{"role":"OP","user_id":"anon_e8f801be76525126","comment_id":"656z8t","kind":"post","text":"How We Built r/Place","timestamp":"2017-04-13T17:35:16+00:00","score":14487},{"role":"answerer","user_id":"anon_cae529b30e5441a9","comment_id":"dg8ebd3","kind":"comment","text":"I hate writing units tests too...","timestamp":"2017-04-13T23:17:28+00:00","score":3},{"role":"OP","user_id":"anon_e8f801be76525126","comment_id":"dg8espz","kind":"comment","text":"Yes. Unit tests would have solved everything.","timestamp":"2017-04-13T23:28:09+00:00","score":12},{"role":"answerer","user_id":"anon_cae529b30e5441a9","comment_id":"dg8fcis","kind":"comment","text":"They don't solve everything, but they're a hell of a lot closer than popping open a browser and clicking on some things.","timestamp":"2017-04-13T23:39:56+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e8f801be76525126","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cae529b30e5441a9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dg8ebd3","thanks_reply_id":"dg8espz","post_score":14487,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_c1bd602a091be5d4","answerer_user_id":"anon_26ae6a391e929219","subreddit":"programming","timestamp":"2017-04-25T22:15:59+00:00","post_id":"67jy31","question":"Are accurate software development time predictions a myth?","preferred_answer":"Your argument is absolutely the truth. See also:\n\nhttp://scribblethink.org/Work/kcsest.pdf\n\nhttp://scribblethink.org/Work/Softestim/softestim.html","full_conversation":[{"role":"OP","user_id":"anon_c1bd602a091be5d4","comment_id":"67jy31","kind":"post","text":"Are accurate software development time predictions a myth?","timestamp":"2017-04-25T22:15:59+00:00","score":17},{"role":"answerer","user_id":"anon_26ae6a391e929219","comment_id":"dgruusr","kind":"comment","text":"Your argument is absolutely the truth. See also:\n\nhttp://scribblethink.org/Work/kcsest.pdf\n\nhttp://scribblethink.org/Work/Softestim/softestim.html","timestamp":"2017-04-26T13:34:57+00:00","score":2},{"role":"OP","user_id":"anon_c1bd602a091be5d4","comment_id":"dgrvdjm","kind":"comment","text":"Thanks! I figured I'd be ridiculed a bit for drawing this deep connection to the halting problem, but I literally remember sitting in class when that was introduced years ago and thinking \"hah, this is exactly why time estimations are bullshit --- we are always dealing with code that is in this chaotic state\"","timestamp":"2017-04-26T13:46:05+00:00","score":2},{"role":"answerer","user_id":"anon_26ae6a391e929219","comment_id":"dgst0b5","kind":"comment","text":"Even though I've read the paper I reference, and I've certainly had massive trouble with estimation (as has everybody that's done anything larger that rewrite \"cat\"), you've got to realize it's an extreme minority viewpoint. Almost everybody believes that estimation can become a hard science, with very accurate estimates.","timestamp":"2017-04-27T00:19:41+00:00","score":1},{"role":"OP","user_id":"anon_c1bd602a091be5d4","comment_id":"dgttp2m","kind":"comment","text":"I don't have the links on hand (a bunch have been posted in other comments), but at least in the academic community, the research papers all point towards it being too hard to do in a way that is statistically useful, in practice. I haven't seen any papers suggesting that it could become a hard science, but I just might not have seen them. It's definitely cooler academically to attack time estimation, as it's very anti-establishment, so this might be the main reason.","timestamp":"2017-04-27T16:49:16+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c1bd602a091be5d4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_26ae6a391e929219","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dgruusr","thanks_reply_id":"dgrvdjm","post_score":17,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_67b7d9c607b4ee2e","answerer_user_id":"anon_fc430141f877b26f","subreddit":"programming","timestamp":"2017-05-22T11:16:56+00:00","post_id":"6cmmp8","question":"What you should avoid when naming MQTT topics","preferred_answer":">Use only ASCII UTF-8 characters because they display correctly\n\nI have two problems with this sentence.\n\nFirst, \"ASCII UTF-8\" makes no sense at all. It's either ASCII, UTF-8, or something else - ASCII UTF-8 is like me telling you I use an iPhone Samsung, or that I drive a Ford Toyota. My guess is they mean 7-bit ASCII, which lines up with the first 128 Unicode code points as encoded in UTF-8.\n\nSecond, don't ditch UTF-8 because it doesn't work, ***fix whatever part of your pipeline isn't UTF-8 compliant***.","full_conversation":[{"role":"OP","user_id":"anon_67b7d9c607b4ee2e","comment_id":"6cmmp8","kind":"post","text":"What you should avoid when naming MQTT topics","timestamp":"2017-05-22T11:16:56+00:00","score":3},{"role":"answerer","user_id":"anon_fc430141f877b26f","comment_id":"dhvrfc4","kind":"comment","text":">Use only ASCII UTF-8 characters because they display correctly\n\nI have two problems with this sentence.\n\nFirst, \"ASCII UTF-8\" makes no sense at all. It's either ASCII, UTF-8, or something else - ASCII UTF-8 is like me telling you I use an iPhone Samsung, or that I drive a Ford Toyota. My guess is they mean 7-bit ASCII, which lines up with the first 128 Unicode code points as encoded in UTF-8.\n\nSecond, don't ditch UTF-8 because it doesn't work, ***fix whatever part of your pipeline isn't UTF-8 compliant***.","timestamp":"2017-05-22T11:32:07+00:00","score":10},{"role":"OP","user_id":"anon_67b7d9c607b4ee2e","comment_id":"dhvrwlr","kind":"comment","text":"Thanks for your comment. It was typo. \nUsing ASCII helps you to avoid issues with characters in future","timestamp":"2017-05-22T11:50:21+00:00","score":1},{"role":"answerer","user_id":"anon_fc430141f877b26f","comment_id":"dhvs0wf","kind":"comment","text":"Using coal helps to avoid issues with renewable output not being guaranteed in future... that doesn't mean we shouldn't move to renewables.\n\nSame with UTF-8 and ASCII - potential future breakage doesn't justify not supporting anything but English text in an encoding that's only going to get less relevant as people in non-English-speaking countries get more access to computers.","timestamp":"2017-05-22T11:54:42+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_67b7d9c607b4ee2e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fc430141f877b26f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dhvrfc4","thanks_reply_id":"dhvrwlr","post_score":3,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_7effd0813ea8b102","answerer_user_id":"anon_68a8cb0d1678a650","subreddit":"programming","timestamp":"2017-05-27T18:10:28+00:00","post_id":"6dp3vz","question":"Array sum reduction: Linq is faster, gpgpu is lighter. Which one is better for server?","preferred_answer":"I was curious how Linq ended up being faster than the for loop - oh because he did parallel linq. gpu being slower seems, like something must be wrong?\n\nIf you want the fastest possible array sum your cpu can do (nearly) you can use the extension method here:\n\nhttps://github.com/jackmott/LinqFaster/blob/master/LinqFasterParallelSIMD/SumSIMDParallel.cs\n\nYou would use it like:\n\n var sum = myArray.SumSP();\n\n\n\nIt will use SIMD and make it parallel, without the allocations or overhead of Linq. It is way, way faster. You can also optionally tune how many batches to break the array into with an optional parameter:\n\n var sum = myArray.SumSP(batchSize);\n\nThis is part of a set of libraries I made that duplicate the Linq functionality but specifically for arrays and lists, without lazy evaluation. With SIMD and parallel version when appropriate:\n\nhttps://github.com/jackmott/LinqFaster","full_conversation":[{"role":"OP","user_id":"anon_7effd0813ea8b102","comment_id":"6dp3vz","kind":"post","text":"Array sum reduction: Linq is faster, gpgpu is lighter. Which one is better for server?","timestamp":"2017-05-27T18:10:28+00:00","score":0},{"role":"answerer","user_id":"anon_68a8cb0d1678a650","comment_id":"di4duz2","kind":"comment","text":"I was curious how Linq ended up being faster than the for loop - oh because he did parallel linq. gpu being slower seems, like something must be wrong?\n\nIf you want the fastest possible array sum your cpu can do (nearly) you can use the extension method here:\n\nhttps://github.com/jackmott/LinqFaster/blob/master/LinqFasterParallelSIMD/SumSIMDParallel.cs\n\nYou would use it like:\n\n var sum = myArray.SumSP();\n\n\n\nIt will use SIMD and make it parallel, without the allocations or overhead of Linq. It is way, way faster. You can also optionally tune how many batches to break the array into with an optional parameter:\n\n var sum = myArray.SumSP(batchSize);\n\nThis is part of a set of libraries I made that duplicate the Linq functionality but specifically for arrays and lists, without lazy evaluation. With SIMD and parallel version when appropriate:\n\nhttps://github.com/jackmott/LinqFaster","timestamp":"2017-05-27T19:25:48+00:00","score":3},{"role":"OP","user_id":"anon_7effd0813ea8b102","comment_id":"di4ez01","kind":"comment","text":"I will test this thank you. I was testing float array in video. The pci-e buffer copying is the bottleneck.","timestamp":"2017-05-27T19:52:44+00:00","score":1},{"role":"answerer","user_id":"anon_68a8cb0d1678a650","comment_id":"di4f8tj","kind":"comment","text":"i see, sum just isn't enough work to make copying to the gpu worth it, that makes sense.","timestamp":"2017-05-27T19:59:14+00:00","score":1},{"role":"OP","user_id":"anon_7effd0813ea8b102","comment_id":"di4i323","kind":"comment","text":"I couldnt find its binaries but downloaded source, playing with it now. Visual studio 2015\n\nThe type or namespace name 'JM' could not be found (are you missing a using directive or an assembly reference?)\tTests\tE:\\3dmark\\GPUShark\\LinqFaster-master\\Tests\\AggregateTests.cs\t2\tActive\n\n\n\nError\t\tThe default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.\tBenchmarks\tE:\\3dmark\\GPUShark\\LinqFaster-master\\LinqFasterParallelSIMD\\LinqFasterParallelSIMD.csproj\t1\t\n\nI gues its not loading 4 projects.","timestamp":"2017-05-27T21:08:29+00:00","score":0},{"role":"answerer","user_id":"anon_68a8cb0d1678a650","comment_id":"di4jcb8","kind":"comment","text":"go to nuget and type in linqfaster and you will find them. the project files need vs 2017","timestamp":"2017-05-27T21:40:19+00:00","score":1},{"role":"OP","user_id":"anon_7effd0813ea8b102","comment_id":"di4jefj","kind":"comment","text":"> linqfaster\n\nUmm. I don't have 2017. Why 2017? Based on newest linq features too? Community edition? I also heard it had bugs.\n\nNuget is installing zillions of things now ^^ \n\nSuccessfully installed 'LinqFaster.SIMD.Parallel 0.9.0' to VRAM\n========== Finished ==========\n\nis it this?\n\n float[] fl = new float[1024 * 1024 * 128];\n JM.LinqFaster.SIMD.Parallel.LinqFasterSIMDParallel.SumSP(fl);","timestamp":"2017-05-27T21:41:52+00:00","score":1},{"role":"answerer","user_id":"anon_68a8cb0d1678a650","comment_id":"di4kh69","kind":"comment","text":"that's it. You can put \"using JM.LinqFaster.SIMD.Parallel\" at the top and then just:\n\n f1.SumSP();\n\nI had much difficulty finding a way to build it so that it would work on regular .net and .net core as a nuget package. I managed to get it working in VS2017 so that is how it ended up. The nuget packages will work anywhere though.","timestamp":"2017-05-27T22:09:47+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_7effd0813ea8b102","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_68a8cb0d1678a650","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"di4duz2","thanks_reply_id":"di4ez01","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_639a401966b6518d","answerer_user_id":"anon_ac1dc6f7fef6e600","subreddit":"programming","timestamp":"2017-06-15T21:08:04+00:00","post_id":"6hhyzf","question":"Why we should teach kids actual programming, not Scratch, Alice and other intro “languages”.","preferred_answer":"Meh, I see your points, but I feel like you've lost sight of the target audience. I don't think anyone considers Alice as a real introduction to programming. It's meant for young children, some of which may become programmers, others, garbage men.\n\nWhile these languages aren't practical, they give children a fundamental idea of programming logic, while being entertaining, and providing a level of encouragement.","full_conversation":[{"role":"OP","user_id":"anon_639a401966b6518d","comment_id":"6hhyzf","kind":"post","text":"Why we should teach kids actual programming, not Scratch, Alice and other intro “languages”.","timestamp":"2017-06-15T21:08:04+00:00","score":102},{"role":"answerer","user_id":"anon_ac1dc6f7fef6e600","comment_id":"diyhb09","kind":"comment","text":"Meh, I see your points, but I feel like you've lost sight of the target audience. I don't think anyone considers Alice as a real introduction to programming. It's meant for young children, some of which may become programmers, others, garbage men.\n\nWhile these languages aren't practical, they give children a fundamental idea of programming logic, while being entertaining, and providing a level of encouragement.","timestamp":"2017-06-15T21:29:57+00:00","score":110},{"role":"OP","user_id":"anon_639a401966b6518d","comment_id":"diyhfnw","kind":"comment","text":"Thanks for the response!\n\nI see what you are saying. I think that even those people that would become programmers can get turned off by these types of languages.","timestamp":"2017-06-15T21:32:31+00:00","score":5},{"role":"answerer","user_id":"anon_ac1dc6f7fef6e600","comment_id":"diyhjd7","kind":"comment","text":"If it was me doing this stuff in school, I'd probably just feel like programming was easy, more fun than other subjects, and something I excelled in.","timestamp":"2017-06-15T21:34:30+00:00","score":27},{"role":"OP","user_id":"anon_639a401966b6518d","comment_id":"diyhls8","kind":"comment","text":"Interesting. I didn't think of that!","timestamp":"2017-06-15T21:35:48+00:00","score":6}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_639a401966b6518d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ac1dc6f7fef6e600","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"diyhb09","thanks_reply_id":"diyhfnw","post_score":102,"answer_score":110,"preferred_answer_is_top_level":true}} {"user_id":"anon_cbb22fefcb7b3da5","answerer_user_id":"anon_065618c525499153","subreddit":"programming","timestamp":"2017-06-16T03:13:05+00:00","post_id":"6hjzrp","question":"How to build and publish self contained .NET Core binaries for Windows, Linux and OSX","preferred_answer":"Nope. The very first thing is wrong.\n\n`dotnet` prints the version of the *host*, not the framework. It even says so itself:\n\n Microsoft .NET Core Shared Framework Host\n\n Version : 1.1.0\n\nThe shared framework may or may not have a different version. See https://stackoverflow.com/documentation/.net-core/9592/components-and-versioning-in-net-core#t=201706162100504468198\n\nAlso, it might be a much better idea to target to `linux-x64` to target all Linux distros rather than ubuntu, specifically.","full_conversation":[{"role":"OP","user_id":"anon_cbb22fefcb7b3da5","comment_id":"6hjzrp","kind":"post","text":"How to build and publish self contained .NET Core binaries for Windows, Linux and OSX","timestamp":"2017-06-16T03:13:05+00:00","score":68},{"role":"answerer","user_id":"anon_065618c525499153","comment_id":"dj02bf4","kind":"comment","text":"Nope. The very first thing is wrong.\n\n`dotnet` prints the version of the *host*, not the framework. It even says so itself:\n\n Microsoft .NET Core Shared Framework Host\n\n Version : 1.1.0\n\nThe shared framework may or may not have a different version. See https://stackoverflow.com/documentation/.net-core/9592/components-and-versioning-in-net-core#t=201706162100504468198\n\nAlso, it might be a much better idea to target to `linux-x64` to target all Linux distros rather than ubuntu, specifically.","timestamp":"2017-06-16T21:00:58+00:00","score":2},{"role":"OP","user_id":"anon_cbb22fefcb7b3da5","comment_id":"dj0i9tv","kind":"comment","text":"Thanks for spotting the error, \"shared framework version\" should indeed have been spelled \"shared framework **host** version\" (with perhaps an extra \"framework version\" added). I have updated the post accordingly.\n\nAs far as targetting `linux-x64` being \"a much better idea\": as far as [the development on github details](https://github.com/dotnet/cli/issues/2727), the support for that is only scheduled [for .NET Core 2.0](https://github.com/dotnet/cli/issues/5854) (as you know, not officially out yet). Have you tried building a `linux-x64` SCD with the default .NET Core 1.1 stack?","timestamp":"2017-06-17T03:03:58+00:00","score":1},{"role":"answerer","user_id":"anon_065618c525499153","comment_id":"dj0lfdb","kind":"comment","text":"Mea culpa. I mixed up 2.0 stuff with 1.0 stuff in my head. `linux-x64` is probably not going to work for a SCD in 1.x. But it might be a good idea to target it for a framework dependent deployment.","timestamp":"2017-06-17T04:35:11+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cbb22fefcb7b3da5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_065618c525499153","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dj02bf4","thanks_reply_id":"dj0i9tv","post_score":68,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_3f09811b8fe3aa2c","answerer_user_id":"anon_871cfbc6ff009f26","subreddit":"programming","timestamp":"2017-06-24T05:14:20+00:00","post_id":"6j6gll","question":"What code language were used to build the programs that came with my MacBook pro? Click the link to see the difference between app vs. program. I want know what language(s) I need to learn in order to build desktop programs","preferred_answer":"Swift for Mac, if that's what you're into","full_conversation":[{"role":"OP","user_id":"anon_3f09811b8fe3aa2c","comment_id":"6j6gll","kind":"post","text":"What code language were used to build the programs that came with my MacBook pro? Click the link to see the difference between app vs. program. I want know what language(s) I need to learn in order to build desktop programs","timestamp":"2017-06-24T05:14:20+00:00","score":0},{"role":"answerer","user_id":"anon_871cfbc6ff009f26","comment_id":"djc0jw6","kind":"comment","text":"Swift for Mac, if that's what you're into","timestamp":"2017-06-24T07:24:45+00:00","score":2},{"role":"OP","user_id":"anon_3f09811b8fe3aa2c","comment_id":"djc0tan","kind":"comment","text":"Thanks but it seems like all the Tutorials for swift is for iOS or basic desktop apps not the type programs that you buy from websites.","timestamp":"2017-06-24T07:35:54+00:00","score":0},{"role":"answerer","user_id":"anon_871cfbc6ff009f26","comment_id":"djcfyz5","kind":"comment","text":"Dude, programs are like pizzas, your iOS/basic desktop app is like a pizza for one and programs are like a large pie, you need to learn the same things to do both, but a larger pie is a jump in size and complexity","timestamp":"2017-06-24T16:22:05+00:00","score":2},{"role":"OP","user_id":"anon_3f09811b8fe3aa2c","comment_id":"djciiv4","kind":"comment","text":"Make sense so in order to learn so which language(s) you recommend for mac programs? Should I learn both Swift & C++ since it is a larger pie? Sorry i know I keep asking questions its just I just trying to figure out where to start. 2 Main Problems I have is about 95% of all the tutorials out there for apple is for damn basic Apps for ios and desktop and no tutorials for major programs. Yes I know programs are harder but Im willing to put in the work and hours. The best way to learn is by doing and creating stuff.","timestamp":"2017-06-24T17:19:33+00:00","score":-1},{"role":"answerer","user_id":"anon_871cfbc6ff009f26","comment_id":"djcu8m7","kind":"comment","text":"IMO start small, you need to learn Swift (a lot of MacOS APIs use it), do app like things. You'll need in the way things about how programs are designed, as well as models followed. Then, think about what program you want to do, and learn algorithms and what is needed to it a reality","timestamp":"2017-06-24T22:01:15+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_3f09811b8fe3aa2c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_871cfbc6ff009f26","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"djc0jw6","thanks_reply_id":"djc0tan","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_0970f33a70653fc7","answerer_user_id":"anon_21c4c5c98c9324e8","subreddit":"programming","timestamp":"2017-06-28T07:20:33+00:00","post_id":"6jz0xb","question":"How my bad ethernet cable lead me to develop a web service and better software","preferred_answer":"tl;dr developing in a bad environment helps you write software that takes bad environments into account.\n\nReminds me of [a few](https://blogs.msdn.microsoft.com/oldnewthing/20051116-12/?p=33323) [posts](https://blogs.msdn.microsoft.com/oldnewthing/20051117-11/?p=33303) on the Old New Thing.","full_conversation":[{"role":"OP","user_id":"anon_0970f33a70653fc7","comment_id":"6jz0xb","kind":"post","text":"How my bad ethernet cable lead me to develop a web service and better software","timestamp":"2017-06-28T07:20:33+00:00","score":107},{"role":"answerer","user_id":"anon_21c4c5c98c9324e8","comment_id":"dji3pr9","kind":"comment","text":"tl;dr developing in a bad environment helps you write software that takes bad environments into account.\n\nReminds me of [a few](https://blogs.msdn.microsoft.com/oldnewthing/20051116-12/?p=33323) [posts](https://blogs.msdn.microsoft.com/oldnewthing/20051117-11/?p=33303) on the Old New Thing.","timestamp":"2017-06-28T08:23:06+00:00","score":83},{"role":"OP","user_id":"anon_0970f33a70653fc7","comment_id":"dji4dlt","kind":"comment","text":"Thanks for summing it up. Is it required to put tl;dr on each post? I'm new to this sub (this is my first post) and I see it quite often. I ask just so I can put it myself next time.","timestamp":"2017-06-28T08:53:38+00:00","score":7},{"role":"answerer","user_id":"anon_21c4c5c98c9324e8","comment_id":"dji4jmz","kind":"comment","text":"Not really, I was just commenting on the post.","timestamp":"2017-06-28T09:01:36+00:00","score":20}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0970f33a70653fc7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_21c4c5c98c9324e8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dji3pr9","thanks_reply_id":"dji4dlt","post_score":107,"answer_score":83,"preferred_answer_is_top_level":true}} {"user_id":"anon_86354c86aec56168","answerer_user_id":"anon_6c5572e72b7e36df","subreddit":"programming","timestamp":"2017-07-19T11:29:08+00:00","post_id":"6o7uma","question":"How to Export a Clang Compilation Database from a Visual Studio Solution","preferred_answer":"Well if that's so, I'm very sorry for my early posts!","full_conversation":[{"role":"OP","user_id":"anon_86354c86aec56168","comment_id":"6o7uma","kind":"post","text":"How to Export a Clang Compilation Database from a Visual Studio Solution","timestamp":"2017-07-19T11:29:08+00:00","score":2},{"role":"answerer","user_id":"anon_6c5572e72b7e36df","comment_id":"dkfbd71","kind":"comment","text":"Well if that's so, I'm very sorry for my early posts!","timestamp":"2017-07-19T13:02:22+00:00","score":2},{"role":"OP","user_id":"anon_86354c86aec56168","comment_id":"dkfbrgv","kind":"comment","text":"Thanks for the edit!","timestamp":"2017-07-19T13:11:43+00:00","score":1},{"role":"answerer","user_id":"anon_6c5572e72b7e36df","comment_id":"dkfiatq","kind":"comment","text":"I wanted to give it a try, but it seems to be incompatible with VS2013?\n\n* 19.07.2017 17:15:36 - Searching for applicable products...\n* 19.07.2017 17:15:36 - Found installed product - Microsoft Visual Studio Professional 2013\n* 19.07.2017 17:15:36 - Found installed product - Microsoft Visual Studio 2013 Shell (Integrated)\n* 19.07.2017 17:15:36 - Found installed product - Global Location\n* 19.07.2017 17:15:36 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.","timestamp":"2017-07-19T15:19:29+00:00","score":1},{"role":"OP","user_id":"anon_86354c86aec56168","comment_id":"dkfkur8","kind":"comment","text":"This seems odd. If I download the vsix from the VS Marketplace I am able to install the extension for VS2013. However, I cannot find the extension in the VS Gallery from within VS2013. We will look into this, thanks for telling us!","timestamp":"2017-07-19T16:03:00+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_86354c86aec56168","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6c5572e72b7e36df","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dkfbd71","thanks_reply_id":"dkfbrgv","post_score":2,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_f14d787cb01abcf2","answerer_user_id":"anon_2ec829e4cb26e28f","subreddit":"programming","timestamp":"2017-07-27T08:44:58+00:00","post_id":"6punsx","question":"When i try to fix a bug","preferred_answer":"It's spam.\n\n> Do you have something funny to share with fellow programmers? Please take it to /r/ProgrammerHumor/.","full_conversation":[{"role":"OP","user_id":"anon_f14d787cb01abcf2","comment_id":"6punsx","kind":"post","text":"When i try to fix a bug","timestamp":"2017-07-27T08:44:58+00:00","score":0},{"role":"answerer","user_id":"anon_2ec829e4cb26e28f","comment_id":"dksavp6","kind":"comment","text":"It's spam.\n\n> Do you have something funny to share with fellow programmers? Please take it to /r/ProgrammerHumor/.","timestamp":"2017-07-27T08:47:08+00:00","score":2},{"role":"OP","user_id":"anon_f14d787cb01abcf2","comment_id":"dku24yo","kind":"comment","text":"Thanks a lot - But it's not spam!","timestamp":"2017-07-28T09:09:22+00:00","score":1},{"role":"answerer","user_id":"anon_2ec829e4cb26e28f","comment_id":"dku26j9","kind":"comment","text":"It is spam. It does not belong to this subreddit.","timestamp":"2017-07-28T09:11:20+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f14d787cb01abcf2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2ec829e4cb26e28f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dksavp6","thanks_reply_id":"dku24yo","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_244730ef8e12d11d","answerer_user_id":"anon_729b87eeafc43319","subreddit":"programming","timestamp":"2017-07-27T16:58:21+00:00","post_id":"6pxai8","question":"How I built a wind map with WebGL","preferred_answer":"Very good article and demo. BTW, we tried to do something similar years ago with ocean currents, but it did not look this good.\n\nAlso, I didn't know you could import from non-JS modules:\n\n import drawVert from './shaders/draw.vert.glsl';\n\nIs that a special feature of *rollup*? It stores the content of the given file in `drawVert` as a string?","full_conversation":[{"role":"OP","user_id":"anon_244730ef8e12d11d","comment_id":"6pxai8","kind":"post","text":"How I built a wind map with WebGL","timestamp":"2017-07-27T16:58:21+00:00","score":66},{"role":"answerer","user_id":"anon_729b87eeafc43319","comment_id":"dkuegel","kind":"comment","text":"Very good article and demo. BTW, we tried to do something similar years ago with ocean currents, but it did not look this good.\n\nAlso, I didn't know you could import from non-JS modules:\n\n import drawVert from './shaders/draw.vert.glsl';\n\nIs that a special feature of *rollup*? It stores the content of the given file in `drawVert` as a string?","timestamp":"2017-07-28T14:58:33+00:00","score":2},{"role":"OP","user_id":"anon_244730ef8e12d11d","comment_id":"dkuftsm","kind":"comment","text":"Thanks! Yes, this a Rollup feature — specifically, [the string plugin](https://github.com/mapbox/webgl-wind/blob/master/rollup.config.js#L10).","timestamp":"2017-07-28T15:23:13+00:00","score":1},{"role":"answerer","user_id":"anon_729b87eeafc43319","comment_id":"dkunvce","kind":"comment","text":"In fact what we did back then with the ocean was mapped to a 3D globe, IIRC. Maybe your winds would look fine on a sphere representing the Earth. The only problem is the uneven resolution (i.e. near the poles the texture occupies less pace and texels (particles) would appear tiny).","timestamp":"2017-07-28T17:42:12+00:00","score":1},{"role":"OP","user_id":"anon_244730ef8e12d11d","comment_id":"dkunzft","kind":"comment","text":"This would be fixed by projecting on the sphere on the shader side too.","timestamp":"2017-07-28T17:44:11+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_244730ef8e12d11d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_729b87eeafc43319","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dkuegel","thanks_reply_id":"dkuftsm","post_score":66,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_88bb0bc4ece4d7ad","answerer_user_id":"anon_0e4b5f4ef4353343","subreddit":"programming","timestamp":"2017-07-28T19:31:29+00:00","post_id":"6q65l8","question":"How to get started into open source in 5 steps [For true beginners]","preferred_answer":"*for True Beginners* eh? Yeah I don't think so.","full_conversation":[{"role":"OP","user_id":"anon_88bb0bc4ece4d7ad","comment_id":"6q65l8","kind":"post","text":"How to get started into open source in 5 steps [For true beginners]","timestamp":"2017-07-28T19:31:29+00:00","score":26},{"role":"answerer","user_id":"anon_0e4b5f4ef4353343","comment_id":"dkvxt4t","kind":"comment","text":"*for True Beginners* eh? Yeah I don't think so.","timestamp":"2017-07-29T14:45:55+00:00","score":1},{"role":"OP","user_id":"anon_88bb0bc4ece4d7ad","comment_id":"dkvzeoo","kind":"comment","text":"Thanks for your comment. Can you please tell me why don't you think it's for true beginners? That's my goal with the post so if I'm not getting I'd like to know why","timestamp":"2017-07-29T15:25:13+00:00","score":1},{"role":"answerer","user_id":"anon_0e4b5f4ef4353343","comment_id":"dkw1y5g","kind":"comment","text":"You have a couple of walkthroughs of things to do, then make some huge assumptions about the knowledge of the reader. If someone is brand new to OSS, they aren't necessarily going to have any idea what Git is. It starts out as a step by step walkthrough but jumps far far ahead, knowledge wise.","timestamp":"2017-07-29T16:23:41+00:00","score":2},{"role":"OP","user_id":"anon_88bb0bc4ece4d7ad","comment_id":"dkwupwb","kind":"comment","text":"That's a nice feedback, thanks a lot! I'll make sure to write a follow up guide with these things in mind.","timestamp":"2017-07-30T04:08:50+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_88bb0bc4ece4d7ad","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0e4b5f4ef4353343","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dkvxt4t","thanks_reply_id":"dkvzeoo","post_score":26,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_67e48a9c81166cec","answerer_user_id":"anon_78ba2750da9e53db","subreddit":"programming","timestamp":"2017-08-01T23:19:16+00:00","post_id":"6r052x","question":"Why you should develop your web app with a separate UI and API.","preferred_answer":"Agreed. The post has valid points, however, it's missing the mark on being truly valuable. The author should help readers understand the tradeoffs. Not listing the tradeoffs or suggesting developers are lazy is not the right way of doing it.","full_conversation":[{"role":"OP","user_id":"anon_67e48a9c81166cec","comment_id":"6r052x","kind":"post","text":"Why you should develop your web app with a separate UI and API.","timestamp":"2017-08-01T23:19:16+00:00","score":14},{"role":"answerer","user_id":"anon_78ba2750da9e53db","comment_id":"dl1lzx4","kind":"comment","text":"Agreed. The post has valid points, however, it's missing the mark on being truly valuable. The author should help readers understand the tradeoffs. Not listing the tradeoffs or suggesting developers are lazy is not the right way of doing it.","timestamp":"2017-08-02T03:11:27+00:00","score":12},{"role":"OP","user_id":"anon_67e48a9c81166cec","comment_id":"dl1m7u7","kind":"comment","text":"Thank you for the feedback. Maybe I'll do a second post examining the trade offs between this and other architectures and their applicability to different types of applications.","timestamp":"2017-08-02T03:16:40+00:00","score":4},{"role":"answerer","user_id":"anon_78ba2750da9e53db","comment_id":"dl1mb4z","kind":"comment","text":"Let me know if/when you do. I'll look forward to reading it.","timestamp":"2017-08-02T03:18:49+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_67e48a9c81166cec","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_78ba2750da9e53db","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dl1lzx4","thanks_reply_id":"dl1m7u7","post_score":14,"answer_score":12,"preferred_answer_is_top_level":false}} {"user_id":"anon_8753a7c06764c307","answerer_user_id":"anon_a5479a1254d9ed93","subreddit":"programming","timestamp":"2017-08-09T12:07:19+00:00","post_id":"6sl0wx","question":"Why we’re creating a new video format for code","preferred_answer":"Great, another poorly veiled click bait advertisement disguised as a blog post about tech. You aren't inventing a new video format.\n\n I don't mind inbound marketing, but you need to provide actual interesting content. Give us a post about the internal challenges you faced developing this product, not some bullshit article which is actually just a sales pitch for your product.","full_conversation":[{"role":"OP","user_id":"anon_8753a7c06764c307","comment_id":"6sl0wx","kind":"post","text":"Why we’re creating a new video format for code","timestamp":"2017-08-09T12:07:19+00:00","score":16},{"role":"answerer","user_id":"anon_a5479a1254d9ed93","comment_id":"dldmiq8","kind":"comment","text":"Great, another poorly veiled click bait advertisement disguised as a blog post about tech. You aren't inventing a new video format.\n\n I don't mind inbound marketing, but you need to provide actual interesting content. Give us a post about the internal challenges you faced developing this product, not some bullshit article which is actually just a sales pitch for your product.","timestamp":"2017-08-09T13:52:22+00:00","score":13},{"role":"OP","user_id":"anon_8753a7c06764c307","comment_id":"dldmwer","kind":"comment","text":"Noted, and thanks for the feedback. We'll definitely write something about that as well, as we've faced tons of technical challenges building this.","timestamp":"2017-08-09T14:00:08+00:00","score":2},{"role":"answerer","user_id":"anon_a5479a1254d9ed93","comment_id":"dldn05u","kind":"comment","text":"Thanks, and sorry for the antagonizing tone. I really do look forward to posts about those technical challenges.","timestamp":"2017-08-09T14:02:16+00:00","score":2},{"role":"OP","user_id":"anon_8753a7c06764c307","comment_id":"dldn60i","kind":"comment","text":"No worries at all, blunt feedback is usually the most effective one!","timestamp":"2017-08-09T14:05:34+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_8753a7c06764c307","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a5479a1254d9ed93","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dldmiq8","thanks_reply_id":"dldmwer","post_score":16,"answer_score":13,"preferred_answer_is_top_level":true}} {"user_id":"anon_6b9554ac3aedfe2c","answerer_user_id":"anon_89cbaa860937c0a2","subreddit":"programming","timestamp":"2017-09-03T14:53:16+00:00","post_id":"6xtk37","question":"Can I get some feedback on my homebrew CPU design?","preferred_answer":"Could be quite a tedious process, but, yes, very enlightening.\n\nAlternatively you can combine both approaches (and learn more as a result) - manually design some macro blocks (like a register file and an ALU) and then use an HDL to glue things together. Learn how to define technology mapping and all that in the process.","full_conversation":[{"role":"OP","user_id":"anon_6b9554ac3aedfe2c","comment_id":"6xtk37","kind":"post","text":"Can I get some feedback on my homebrew CPU design?","timestamp":"2017-09-03T14:53:16+00:00","score":12},{"role":"answerer","user_id":"anon_89cbaa860937c0a2","comment_id":"dmjiyo0","kind":"comment","text":"Could be quite a tedious process, but, yes, very enlightening.\n\nAlternatively you can combine both approaches (and learn more as a result) - manually design some macro blocks (like a register file and an ALU) and then use an HDL to glue things together. Learn how to define technology mapping and all that in the process.","timestamp":"2017-09-04T08:55:22+00:00","score":2},{"role":"OP","user_id":"anon_6b9554ac3aedfe2c","comment_id":"dmjjduq","kind":"comment","text":"Yes that could be a very good idea. Will definitely look into it. Thanks for the suggestion!","timestamp":"2017-09-04T09:14:54+00:00","score":2},{"role":"answerer","user_id":"anon_89cbaa860937c0a2","comment_id":"dmjjj6k","kind":"comment","text":"Take a look at the Yosys toolchain - it's very easy to define your own technology maps there.","timestamp":"2017-09-04T09:21:38+00:00","score":2},{"role":"OP","user_id":"anon_6b9554ac3aedfe2c","comment_id":"dmjjlfp","kind":"comment","text":"Ah thanks, I was about to ask for a suggestion.","timestamp":"2017-09-04T09:24:24+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6b9554ac3aedfe2c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_89cbaa860937c0a2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dmjiyo0","thanks_reply_id":"dmjjduq","post_score":12,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_e2a4ca2df7e74b7d","answerer_user_id":"anon_ecebd408b297c408","subreddit":"programming","timestamp":"2017-09-11T13:10:38+00:00","post_id":"6zfao0","question":"Can you make it as a Software Developer?","preferred_answer":"The dirty secret of creative intellectual work is that you can only get so many productive hours out of your brain in a week. It obviously varies from person to person and with experience and age and whatnot, but if you push yourself beyond it for more than a week or two your useful productivity takes a nosedive. \n\nEven if you're at home working on something else. \n\nYes, it's something you can train somewhat through effort and self-discipline, but I don't trust super junior developers to know where their limits are. \n\nI would rather try and find those limits from the too-little side than take the hit in quality and deal with perpetually tired and surly coworkers.","full_conversation":[{"role":"OP","user_id":"anon_e2a4ca2df7e74b7d","comment_id":"6zfao0","kind":"post","text":"Can you make it as a Software Developer?","timestamp":"2017-09-11T13:10:38+00:00","score":0},{"role":"answerer","user_id":"anon_ecebd408b297c408","comment_id":"dmuxlkz","kind":"comment","text":"The dirty secret of creative intellectual work is that you can only get so many productive hours out of your brain in a week. It obviously varies from person to person and with experience and age and whatnot, but if you push yourself beyond it for more than a week or two your useful productivity takes a nosedive. \n\nEven if you're at home working on something else. \n\nYes, it's something you can train somewhat through effort and self-discipline, but I don't trust super junior developers to know where their limits are. \n\nI would rather try and find those limits from the too-little side than take the hit in quality and deal with perpetually tired and surly coworkers.","timestamp":"2017-09-11T15:29:14+00:00","score":2},{"role":"OP","user_id":"anon_e2a4ca2df7e74b7d","comment_id":"dmuxwf8","kind":"comment","text":"Makes perfect sense, but you can also balance the creative work with actually learning from others through books, articles, presentations, or even Reddit.\n\nYou make a good point about finding the right limits, would be a great addition to the article! :)","timestamp":"2017-09-11T15:34:51+00:00","score":1},{"role":"answerer","user_id":"anon_ecebd408b297c408","comment_id":"dmuy01h","kind":"comment","text":"And I think those are fundamentally different enough that they're still useful to do. \n\nLearning to read code, especially tech-debt loaded real world code is one of the most important things an inexperienced developer can do.","timestamp":"2017-09-11T15:36:43+00:00","score":1},{"role":"OP","user_id":"anon_e2a4ca2df7e74b7d","comment_id":"dmuz31v","kind":"comment","text":"As long as he doesn't learn that it's standard practice to write tech-debt loaded code, oh wait, maybe it is.","timestamp":"2017-09-11T15:56:39+00:00","score":0}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_e2a4ca2df7e74b7d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ecebd408b297c408","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dmuxlkz","thanks_reply_id":"dmuxwf8","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_11995949ab30b107","answerer_user_id":"anon_eb580d163102c975","subreddit":"programming","timestamp":"2017-09-20T06:17:35+00:00","post_id":"7197lj","question":"Looking for a programming mentor? This site is for you.","preferred_answer":"There was a similar site a while ago www.dev.com. It collapsed for the same reason this one will; the imbalance between mentors and people who want mentoring. \n\nI signed up for the previous one with all the best intentions but completely unprepared for the amount of 'mentees' requesting help. Well over 90% of these people did not want a mentor; they wanted someone to hold their hand and act as a Google proxy. \n\nSo you're going to need safeguards for this. If you allow people to chase away the few experienced devs you have it will collapse just as fast as that other site did.","full_conversation":[{"role":"OP","user_id":"anon_11995949ab30b107","comment_id":"7197lj","kind":"post","text":"Looking for a programming mentor? This site is for you.","timestamp":"2017-09-20T06:17:35+00:00","score":45},{"role":"answerer","user_id":"anon_eb580d163102c975","comment_id":"dn981cz","kind":"comment","text":"There was a similar site a while ago www.dev.com. It collapsed for the same reason this one will; the imbalance between mentors and people who want mentoring. \n\nI signed up for the previous one with all the best intentions but completely unprepared for the amount of 'mentees' requesting help. Well over 90% of these people did not want a mentor; they wanted someone to hold their hand and act as a Google proxy. \n\nSo you're going to need safeguards for this. If you allow people to chase away the few experienced devs you have it will collapse just as fast as that other site did.","timestamp":"2017-09-20T11:13:14+00:00","score":27},{"role":"OP","user_id":"anon_11995949ab30b107","comment_id":"dna9663","kind":"comment","text":"Thanks. I am running the site. It is just a static web page at the moment but might make it more sophisticated later.\n\nYou make a great point and there are so many StackOverflow questions that are \"do my homework\", I am not surprised if the same thing happens here.\n\nPerhaps what this needs is a contact form with qualification, the mentee types in what they want and then the mentor chooses to respond with contact details, or click a button to can a polite decline.\n\nIf it had that would you sign up?","timestamp":"2017-09-20T23:21:50+00:00","score":1},{"role":"answerer","user_id":"anon_eb580d163102c975","comment_id":"dnaqf33","kind":"comment","text":"That doesn't sound like it's solving the problem really. In my opinion these communities work best if questions are out in the open and as a mentor you can pick and choose which persons and questions you're going to handle. Pretty much exactly what happens on for example /r/learnprogramming. A solution where mentees pick mentors is, with this kind of imbalance (really it's like 100 to 1 at least) is never going to work.","timestamp":"2017-09-21T06:11:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_11995949ab30b107","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_eb580d163102c975","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dn981cz","thanks_reply_id":"dna9663","post_score":45,"answer_score":27,"preferred_answer_is_top_level":true}} {"user_id":"anon_237c3bcf6e130eb9","answerer_user_id":"anon_38fc1ef4173d285a","subreddit":"programming","timestamp":"2017-10-12T12:25:02+00:00","post_id":"75wmuw","question":"How to Do Code Reviews Like a Human","preferred_answer":"I sent this around my office. It's a good article. Some of it is just \"remember that the person on the other side of the screen doesn't always interpret stuff how you may have meant it\" but that's a reminder we all need sometimes.","full_conversation":[{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"75wmuw","kind":"post","text":"How to Do Code Reviews Like a Human","timestamp":"2017-10-12T12:25:02+00:00","score":2416},{"role":"answerer","user_id":"anon_38fc1ef4173d285a","comment_id":"do9l680","kind":"comment","text":"I sent this around my office. It's a good article. Some of it is just \"remember that the person on the other side of the screen doesn't always interpret stuff how you may have meant it\" but that's a reminder we all need sometimes.","timestamp":"2017-10-12T14:20:47+00:00","score":176},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"do9lt38","kind":"comment","text":"Thanks for reading and for sharing!\n\nOne thing I found interesting about writing the article was that I felt like I generally am cognizant of how I'm framing my notes in code review, but actually taking the time to articulate and write down the principles I follow made me even more aware when I wrote notes. Just writing it down has helped me avoid anti-patterns in my reviews that I don't know that I would have noticed myself falling into otherwise.","timestamp":"2017-10-12T14:33:00+00:00","score":36},{"role":"answerer","user_id":"anon_38fc1ef4173d285a","comment_id":"do9mhlu","kind":"comment","text":"Yeah, that makes sense. It's easy to write something that someone may misinterpret so it's good to have a list of ways that people may misinterpret stuff, and alternate solutions.","timestamp":"2017-10-12T14:45:50+00:00","score":8}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_237c3bcf6e130eb9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_38fc1ef4173d285a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"do9l680","thanks_reply_id":"do9lt38","post_score":2416,"answer_score":176,"preferred_answer_is_top_level":true}} {"user_id":"anon_ba15925d5fcea0ea","answerer_user_id":"anon_e0c08d7cdfbddeaa","subreddit":"programming","timestamp":"2017-10-15T23:48:34+00:00","post_id":"76mnom","question":"When O(N) is faster than O(1)","preferred_answer":"O(N) is not generally \"faster\" than O(1).\n\n[Big-Oh notation](https://en.wikipedia.org/wiki/Big_O_notation) simply expresses how fast something grows **asymptotically**. It roughly \"if you choose N big enough, it will grow like this\". More precisely, all that \"function f is O(N²)\" says is \"there are fixed values M and N for which M\\*n² > f(n) for **all** n > N\".\n\nBluntly put, that N is generally not 5, 6, 7, 8, 9 or 10. Your tests have nothing to do with Big-Oh notation because your input values are nowhere near asymptotic cases.","full_conversation":[{"role":"OP","user_id":"anon_ba15925d5fcea0ea","comment_id":"76mnom","kind":"post","text":"When O(N) is faster than O(1)","timestamp":"2017-10-15T23:48:34+00:00","score":0},{"role":"answerer","user_id":"anon_e0c08d7cdfbddeaa","comment_id":"dof89ou","kind":"comment","text":"O(N) is not generally \"faster\" than O(1).\n\n[Big-Oh notation](https://en.wikipedia.org/wiki/Big_O_notation) simply expresses how fast something grows **asymptotically**. It roughly \"if you choose N big enough, it will grow like this\". More precisely, all that \"function f is O(N²)\" says is \"there are fixed values M and N for which M\\*n² > f(n) for **all** n > N\".\n\nBluntly put, that N is generally not 5, 6, 7, 8, 9 or 10. Your tests have nothing to do with Big-Oh notation because your input values are nowhere near asymptotic cases.","timestamp":"2017-10-16T00:48:11+00:00","score":10},{"role":"OP","user_id":"anon_ba15925d5fcea0ea","comment_id":"dofa1ns","kind":"comment","text":"I see so caption is wrong here, thanks for that.\n\nFull and correct name should be \n\nWhen lookup method with asymptotical O(N) complexity performs faster than lookup method with asymptotical O(1). Right?\n\nOr in other words: when use of std::[unordered_]map gives benefits instead of harm.","timestamp":"2017-10-16T01:25:54+00:00","score":-1},{"role":"answerer","user_id":"anon_e0c08d7cdfbddeaa","comment_id":"dofcc70","kind":"comment","text":"No. O(N) and O(1) already implicitly state \"asymptotical complexity\". Adding them to the title is redundant. Adding them to the test would be the way to go, *IF* that was what you were actually looking to investigate.\n\nThere are two and a half core problems here:\n\n1. You imply that an O(N) algorithm should take longer than an O(1) algorithm (and apparently intend to evoke surprise by this not being the case). This is not the case, and it is also not what either of those claims.\n\n2. Your test is not asymptotical. Repeating your test 1000000 times does not make it asymptotic. Using 1000000 entries in your data structure might. Or it might not, because your test might be dominated by other factors, such as using a function pointer, memory bandwidth, caching, paging, loop iterations, maybe not using an optimizing compiler, [...]. This list keeps going.\n\n3. (Or 2.5:) There may not even be a reason to optimize this. In a real application, the effect of this might be completely insignificant. It is more important to to identify the performance bottleneck of the real application than to find the best option for a fictional case you made up. This ties back into point 2: Your results as-is are only valid for your exact computer, language, compiler and program, input data, input size and so on.\n\nCarefully crafted tests may rule out several of these problems, (see the link I posted further below) and thus be of general interest, but this is simply not the case for yours. If you want I can go into more detail tomorrow, but it is a long list.\n\nIt is commendable that you are using actual performance tests to compare implementations instead of just going by the simple-sounding O(...) notations, but let me just ask you:\n\n> when use of std::[unordered_]map gives benefits instead of harm\n\nWhat did you actually conclude from your tests in regards to that question? When would one be able to apply these conclusions?","timestamp":"2017-10-16T02:13:46+00:00","score":4},{"role":"OP","user_id":"anon_ba15925d5fcea0ea","comment_id":"dofdjck","kind":"comment","text":"> What did you actually conclude from your tests in regards to that question? When would one be able to apply these conclusions?\n\nParticular mileage may vary. My statement is dead simple: there are cases when using hash tables is not recommended. When your token stream has non-even distribution of tokens then order of items in linear lookup is critical. When your hash-table uses wrong size of collision roots and so collision chains are two long for linear lookup. All that. \n\nIt is just that programmers equipped by std:: primitives in C++ frequently think that use of std::unordered_map for lookup is harmless - on any set size it will at least not make things worse. \nPractice shows that the statement is not always true - for each *particular* situation there is a minimal number of items in hash table when its use is beneficial. How many exactly? Depends on data, key comparison complexity on particular architecture, etc.","timestamp":"2017-10-16T02:39:21+00:00","score":0}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ba15925d5fcea0ea","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e0c08d7cdfbddeaa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dof89ou","thanks_reply_id":"dofa1ns","post_score":0,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_cd8970eb5714bf23","answerer_user_id":"anon_1895be4439a1d3db","subreddit":"programming","timestamp":"2017-10-23T09:12:40+00:00","post_id":"786j71","question":"A chemical engineering PhD student, my prof wants me to work on tool developmet for chemical process optimization using Python. I have zero knowledge about programming. Should I run away?","preferred_answer":"Learning is part of your PhD. Programming is a great skill for any scientist. I employs you to try and take the challenge on.","full_conversation":[{"role":"OP","user_id":"anon_cd8970eb5714bf23","comment_id":"786j71","kind":"post","text":"A chemical engineering PhD student, my prof wants me to work on tool developmet for chemical process optimization using Python. I have zero knowledge about programming. Should I run away?","timestamp":"2017-10-23T09:12:40+00:00","score":0},{"role":"answerer","user_id":"anon_1895be4439a1d3db","comment_id":"dorgu0o","kind":"comment","text":"Learning is part of your PhD. Programming is a great skill for any scientist. I employs you to try and take the challenge on.","timestamp":"2017-10-23T10:11:58+00:00","score":3},{"role":"OP","user_id":"anon_cd8970eb5714bf23","comment_id":"dorut8i","kind":"comment","text":"Thanks, will do","timestamp":"2017-10-23T15:54:51+00:00","score":2},{"role":"answerer","user_id":"anon_1895be4439a1d3db","comment_id":"dorv7y4","kind":"comment","text":"Best of luck!","timestamp":"2017-10-23T16:01:49+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cd8970eb5714bf23","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1895be4439a1d3db","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dorgu0o","thanks_reply_id":"dorut8i","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_1fe0ea184c4275a1","answerer_user_id":"anon_208c3f1262e1d1ca","subreddit":"programming","timestamp":"2017-10-23T12:54:31+00:00","post_id":"787ig8","question":"How i won cider with AutoIt!","preferred_answer":"This is great! It's too bad this get's many downvotes. I think it's good to work on your writing, if you want more upvotes :)\n\nI also loved it AutoIt was my first basic-like language I managed to code in after failing to learn C++ at an early age.","full_conversation":[{"role":"OP","user_id":"anon_1fe0ea184c4275a1","comment_id":"787ig8","kind":"post","text":"How i won cider with AutoIt!","timestamp":"2017-10-23T12:54:31+00:00","score":0},{"role":"answerer","user_id":"anon_208c3f1262e1d1ca","comment_id":"dormi2d","kind":"comment","text":"This is great! It's too bad this get's many downvotes. I think it's good to work on your writing, if you want more upvotes :)\n\nI also loved it AutoIt was my first basic-like language I managed to code in after failing to learn C++ at an early age.","timestamp":"2017-10-23T13:13:49+00:00","score":2},{"role":"OP","user_id":"anon_1fe0ea184c4275a1","comment_id":"dormrkj","kind":"comment","text":"Thank you! :)\n\nYeah, english is not my first language, but i tried to make it as readable as possible :D\n\nFor beginners / small tasks like this, AutoIt is perfect!","timestamp":"2017-10-23T13:20:02+00:00","score":1},{"role":"answerer","user_id":"anon_208c3f1262e1d1ca","comment_id":"dormxyp","kind":"comment","text":"Thanks for the great article :)\nIf you want to try another good automating language, you should check out SikuliX. It's here: http://www.sikulix.com/\n\nIt's basically like autoit, but works with screenshots.\n\nI used it to automate a game on Aliexpress while I was camping in the woods without internet, so I would still get points and rewards. Now I think of it, maybe I should write about that one too :P","timestamp":"2017-10-23T13:24:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1fe0ea184c4275a1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_208c3f1262e1d1ca","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dormi2d","thanks_reply_id":"dormrkj","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_d6b32aeb7fa465e8","answerer_user_id":"anon_1f2d9067c6183545","subreddit":"programming","timestamp":"2017-10-26T12:39:26+00:00","post_id":"78v9m2","question":"What did Alan Kay mean by, \"Lisp is the greatest single programming language ever designed\"?","preferred_answer":"You are so far beyond logic I can't even fathom how you can function in life.","full_conversation":[{"role":"OP","user_id":"anon_d6b32aeb7fa465e8","comment_id":"78v9m2","kind":"post","text":"What did Alan Kay mean by, \"Lisp is the greatest single programming language ever designed\"?","timestamp":"2017-10-26T12:39:26+00:00","score":1231},{"role":"answerer","user_id":"anon_1f2d9067c6183545","comment_id":"doz22h2","kind":"comment","text":"You are so far beyond logic I can't even fathom how you can function in life.","timestamp":"2017-10-27T17:06:11+00:00","score":1},{"role":"OP","user_id":"anon_d6b32aeb7fa465e8","comment_id":"doz4zdr","kind":"comment","text":"My life according to a reddit troll. Thanks for your insight.","timestamp":"2017-10-27T17:57:39+00:00","score":2},{"role":"answerer","user_id":"anon_1f2d9067c6183545","comment_id":"doz5tbc","kind":"comment","text":"Just hoping you gain some insight in the ridiculous point of view you have right now and better yourself. You are worth less then a fly like this. Not worthy of even being called human.","timestamp":"2017-10-27T18:12:39+00:00","score":1},{"role":"OP","user_id":"anon_d6b32aeb7fa465e8","comment_id":"doz7ko0","kind":"comment","text":"Have you ever asked yourself why anybody should care about your opinion.","timestamp":"2017-10-27T18:44:19+00:00","score":2},{"role":"answerer","user_id":"anon_1f2d9067c6183545","comment_id":"doz7z9y","kind":"comment","text":"I don't ask myself whether people care I just see that they do.","timestamp":"2017-10-27T18:51:33+00:00","score":3}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_d6b32aeb7fa465e8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1f2d9067c6183545","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"doz22h2","thanks_reply_id":"doz4zdr","post_score":1231,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_dbe7a1023c23fd62","answerer_user_id":"anon_d07d256b7215754c","subreddit":"programming","timestamp":"2017-11-03T22:54:23+00:00","post_id":"7amzoh","question":"Why I Stopped Pursuing My 1st Startup Idea","preferred_answer":"The link doesn't work. (at least for me, in the time of writing)","full_conversation":[{"role":"OP","user_id":"anon_dbe7a1023c23fd62","comment_id":"7amzoh","kind":"post","text":"Why I Stopped Pursuing My 1st Startup Idea","timestamp":"2017-11-03T22:54:23+00:00","score":0},{"role":"answerer","user_id":"anon_d07d256b7215754c","comment_id":"dpbahtw","kind":"comment","text":"The link doesn't work. (at least for me, in the time of writing)","timestamp":"2017-11-03T23:25:59+00:00","score":3},{"role":"OP","user_id":"anon_dbe7a1023c23fd62","comment_id":"dpbb0rn","kind":"comment","text":"There were some server problems. Check now. Thanks!","timestamp":"2017-11-03T23:36:56+00:00","score":1},{"role":"answerer","user_id":"anon_d07d256b7215754c","comment_id":"dpbbcvn","kind":"comment","text":"It works now; np! :)","timestamp":"2017-11-03T23:43:53+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_dbe7a1023c23fd62","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d07d256b7215754c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dpbahtw","thanks_reply_id":"dpbb0rn","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_237c3bcf6e130eb9","answerer_user_id":"anon_aae179fc1065d5eb","subreddit":"programming","timestamp":"2017-11-09T17:00:51+00:00","post_id":"7bum18","question":"How to Do Code Reviews Like a Human (Part Two)","preferred_answer":"Good post, drawing from experience.\n\nAs a reviewer:\n\n- I praise good stuff from more junior developers\n- I comment on things I learned by reading the reviewed code (API I didn't know about, etc.)\n- I avoid doing the review of developers I already have strained relationships with\n- In case of issue, I bring in \"technical authorities\"","full_conversation":[{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"7bum18","kind":"post","text":"How to Do Code Reviews Like a Human (Part Two)","timestamp":"2017-11-09T17:00:51+00:00","score":44},{"role":"answerer","user_id":"anon_aae179fc1065d5eb","comment_id":"dpl2x01","kind":"comment","text":"Good post, drawing from experience.\n\nAs a reviewer:\n\n- I praise good stuff from more junior developers\n- I comment on things I learned by reading the reviewed code (API I didn't know about, etc.)\n- I avoid doing the review of developers I already have strained relationships with\n- In case of issue, I bring in \"technical authorities\"","timestamp":"2017-11-09T19:20:07+00:00","score":9},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"dpl5xhe","kind":"comment","text":"Thanks for reading! Sounds like we have a lot of techniques in common.","timestamp":"2017-11-09T20:10:44+00:00","score":1},{"role":"answerer","user_id":"anon_aae179fc1065d5eb","comment_id":"dplb4wh","kind":"comment","text":"Same experience, same conclusions I guess :-D","timestamp":"2017-11-09T21:38:34+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_237c3bcf6e130eb9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_aae179fc1065d5eb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dpl2x01","thanks_reply_id":"dpl5xhe","post_score":44,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_fe8e8583dd90b3af","answerer_user_id":"anon_91e6eaa05ef87c18","subreddit":"programming","timestamp":"2017-11-20T17:42:53+00:00","post_id":"7eal9p","question":"I am a mechanical engineer. Should I got back to school for Software Engineering (it will only take me two years based on my credits) or should I just take a boot camp?","preferred_answer":"Bootcamps teach you how to code, not necessarily software design, algorithms, or principles of CS. So I guess it depends what you want to do with you software skills.","full_conversation":[{"role":"OP","user_id":"anon_fe8e8583dd90b3af","comment_id":"7eal9p","kind":"post","text":"I am a mechanical engineer. Should I got back to school for Software Engineering (it will only take me two years based on my credits) or should I just take a boot camp?","timestamp":"2017-11-20T17:42:53+00:00","score":0},{"role":"answerer","user_id":"anon_91e6eaa05ef87c18","comment_id":"dq3m7gn","kind":"comment","text":"Bootcamps teach you how to code, not necessarily software design, algorithms, or principles of CS. So I guess it depends what you want to do with you software skills.","timestamp":"2017-11-20T17:59:55+00:00","score":2},{"role":"OP","user_id":"anon_fe8e8583dd90b3af","comment_id":"dq3mv07","kind":"comment","text":"Thank you, I don't really know the difference I'm a noob. My just did a boot camp and got a job. Would I start with a higher salary with a degree instead of a boot camp?","timestamp":"2017-11-20T18:11:03+00:00","score":1},{"role":"answerer","user_id":"anon_91e6eaa05ef87c18","comment_id":"dq3v2s2","kind":"comment","text":"I was a CS major, and I'm biased. So I will tell you that I think the principles of CS are important. But as another reply mentioned, you can get jobs without knowing those things. I work for one of the big 4 tech companies, and if I interview someone in your position, I wouldn't pull punches on design and algorithms. \n\nI think you should identify what it is you want to do, then go from there. If you just want a higher paying job, maybe look around and see what those companies might be looking for.","timestamp":"2017-11-20T20:28:42+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fe8e8583dd90b3af","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_91e6eaa05ef87c18","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dq3m7gn","thanks_reply_id":"dq3mv07","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_b1036ba24adbc227","answerer_user_id":"anon_96844067a9b37ce3","subreddit":"programming","timestamp":"2017-12-09T05:37:13+00:00","post_id":"7ikyvp","question":"How to Learn Programming Without an Internet? — thecodrr","preferred_answer":"\"a simple Core 2 Duo, 2 GB RAM\"\nA simple C64, 64k RAM.","full_conversation":[{"role":"OP","user_id":"anon_b1036ba24adbc227","comment_id":"7ikyvp","kind":"post","text":"How to Learn Programming Without an Internet? — thecodrr","timestamp":"2017-12-09T05:37:13+00:00","score":0},{"role":"answerer","user_id":"anon_96844067a9b37ce3","comment_id":"dqzrsat","kind":"comment","text":"\"a simple Core 2 Duo, 2 GB RAM\"\nA simple C64, 64k RAM.","timestamp":"2017-12-09T11:55:08+00:00","score":1},{"role":"OP","user_id":"anon_b1036ba24adbc227","comment_id":"dr0aq37","kind":"comment","text":"Ha! I think you are a bloody legend then. Compared to us newbies, I think you would have what? 40 years of experience?\n\nBut I still think that it is harder for us modern goons with high end computers to learn programming than you legends; we have too many distractions and we are, of course, too impatient to really work hard.\n\nThanks for reading, sir!","timestamp":"2017-12-09T19:50:52+00:00","score":1},{"role":"answerer","user_id":"anon_96844067a9b37ce3","comment_id":"dr0bp3q","kind":"comment","text":"I started with LOGO, now I'm learning JavaScript 😁.\nIts strange, in the '80 we had computer programming in the middle school.\nToday, nothing.\nBut you're right, it was easy to begin programming long time ago.\nI had a Sinclair QL, a \"professional\" version of the ZX Spectrum. I had no software, so I was forced to play with SuperBASIC.","timestamp":"2017-12-09T20:11:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b1036ba24adbc227","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_96844067a9b37ce3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dqzrsat","thanks_reply_id":"dr0aq37","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_4bd1b89cd8ee6a0f","answerer_user_id":"anon_74c699efec9e901e","subreddit":"programming","timestamp":"2017-12-29T12:16:27+00:00","post_id":"7mtzv1","question":"How ES6 classes really work","preferred_answer":"...\n\nhttps://english.stackexchange.com/questions/266181/are-prototypical-and-prototypal-different","full_conversation":[{"role":"OP","user_id":"anon_4bd1b89cd8ee6a0f","comment_id":"7mtzv1","kind":"post","text":"How ES6 classes really work","timestamp":"2017-12-29T12:16:27+00:00","score":12},{"role":"answerer","user_id":"anon_74c699efec9e901e","comment_id":"drwoc18","kind":"comment","text":"...\n\nhttps://english.stackexchange.com/questions/266181/are-prototypical-and-prototypal-different","timestamp":"2017-12-29T13:33:45+00:00","score":1},{"role":"OP","user_id":"anon_4bd1b89cd8ee6a0f","comment_id":"drwv6pz","kind":"comment","text":"Fixed. Thanks.","timestamp":"2017-12-29T16:13:42+00:00","score":2},{"role":"answerer","user_id":"anon_74c699efec9e901e","comment_id":"drwxjvn","kind":"comment","text":"Ah! so you are the author :P","timestamp":"2017-12-29T16:58:51+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4bd1b89cd8ee6a0f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_74c699efec9e901e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"drwoc18","thanks_reply_id":"drwv6pz","post_score":12,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_40ac339eb6ecc0e6","answerer_user_id":"anon_2420fe3283114949","subreddit":"programming","timestamp":"2018-01-09T13:57:24+00:00","post_id":"7p78gu","question":"How I Got My First Real Programming Job","preferred_answer":"Rubs me also not very good. Some temperament issues I think.","full_conversation":[{"role":"OP","user_id":"anon_40ac339eb6ecc0e6","comment_id":"7p78gu","kind":"post","text":"How I Got My First Real Programming Job","timestamp":"2018-01-09T13:57:24+00:00","score":0},{"role":"answerer","user_id":"anon_2420fe3283114949","comment_id":"dsgqgx1","kind":"comment","text":"Rubs me also not very good. Some temperament issues I think.","timestamp":"2018-01-10T12:21:14+00:00","score":2},{"role":"OP","user_id":"anon_40ac339eb6ecc0e6","comment_id":"dsgv85p","kind":"comment","text":"Thanks for your comments","timestamp":"2018-01-10T14:23:52+00:00","score":1},{"role":"answerer","user_id":"anon_2420fe3283114949","comment_id":"dsh081j","kind":"comment","text":"Not a critic you know. Maybe it was you tone in the blog post.","timestamp":"2018-01-10T15:57:03+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_40ac339eb6ecc0e6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2420fe3283114949","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dsgqgx1","thanks_reply_id":"dsgv85p","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_1a316a68bda9c50b","answerer_user_id":"anon_1449b5fce2b00317","subreddit":"programming","timestamp":"2018-01-13T00:31:36+00:00","post_id":"7q12rj","question":"Anyone want to compile this source as a windows executable?","preferred_answer":"Guy sends request then disappears after first day... -.-","full_conversation":[{"role":"OP","user_id":"anon_1a316a68bda9c50b","comment_id":"7q12rj","kind":"post","text":"Anyone want to compile this source as a windows executable?","timestamp":"2018-01-13T00:31:36+00:00","score":0},{"role":"answerer","user_id":"anon_1449b5fce2b00317","comment_id":"dsqqhr2","kind":"comment","text":"Guy sends request then disappears after first day... -.-","timestamp":"2018-01-16T01:23:46+00:00","score":2},{"role":"OP","user_id":"anon_1a316a68bda9c50b","comment_id":"dstajpl","kind":"comment","text":"Hey there, You truly are a legend Ill check it out today after work. I recieved an entire Inbox full of people saying I was asking for an equal exchange between the Zimbabwean dollar and American dollar. And that no one would ever do it. So I gave up. If it hadn't have been for your pm I may never have noticed. Keep rocking man sorry it wasnt any fun! :/","timestamp":"2018-01-17T13:07:01+00:00","score":1},{"role":"answerer","user_id":"anon_1449b5fce2b00317","comment_id":"dsti6hf","kind":"comment","text":"Lmao. Well, sometimes someone is willing to do something for fun. Sorry for all the hate mail you must have gotten. Don't be afraid to keep asking for stuff, someone might be interested.","timestamp":"2018-01-17T15:44:20+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1a316a68bda9c50b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1449b5fce2b00317","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dsqqhr2","thanks_reply_id":"dstajpl","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_5403644ba1a6e873","answerer_user_id":"anon_f44a36f62fcadb79","subreddit":"programming","timestamp":"2018-01-17T15:31:49+00:00","post_id":"7r1q8r","question":"So basically, I want to make a program (link above), and my problem is that if I run it it always makes a random number between 0 and 5, and I want that to do it once, since you have to guess that random number. Can someone help me out?","preferred_answer":"You're sitting negative for your post. Quit while you are behind.","full_conversation":[{"role":"OP","user_id":"anon_5403644ba1a6e873","comment_id":"7r1q8r","kind":"post","text":"So basically, I want to make a program (link above), and my problem is that if I run it it always makes a random number between 0 and 5, and I want that to do it once, since you have to guess that random number. Can someone help me out?","timestamp":"2018-01-17T15:31:49+00:00","score":0},{"role":"answerer","user_id":"anon_f44a36f62fcadb79","comment_id":"dstjzcr","kind":"comment","text":"You're sitting negative for your post. Quit while you are behind.","timestamp":"2018-01-17T16:13:51+00:00","score":1},{"role":"OP","user_id":"anon_5403644ba1a6e873","comment_id":"dstkcvf","kind":"comment","text":"I already solved it because out there, there are some people who like to help people. Anyways I'm closing this post, hope you had fun arguing with me","timestamp":"2018-01-17T16:19:54+00:00","score":-1},{"role":"answerer","user_id":"anon_f44a36f62fcadb79","comment_id":"dstkv6w","kind":"comment","text":"It was a mildly entertaining distraction.","timestamp":"2018-01-17T16:28:02+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5403644ba1a6e873","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f44a36f62fcadb79","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dstjzcr","thanks_reply_id":"dstkcvf","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_848cf22e5273d608","answerer_user_id":"anon_72d518c9b7158020","subreddit":"programming","timestamp":"2018-01-28T22:39:54+00:00","post_id":"7tnq7u","question":"How a malicious seed generation website stole $4 million","preferred_answer":"I hope the author sees this and updates, as is the article is quite confusing – they seem to have done a huge amount of effort to produce something trivially detectable in the output, and the author just kinda shrugs at it.","full_conversation":[{"role":"OP","user_id":"anon_848cf22e5273d608","comment_id":"7tnq7u","kind":"post","text":"How a malicious seed generation website stole $4 million","timestamp":"2018-01-28T22:39:54+00:00","score":1874},{"role":"answerer","user_id":"anon_72d518c9b7158020","comment_id":"dtel2gl","kind":"comment","text":"I hope the author sees this and updates, as is the article is quite confusing – they seem to have done a huge amount of effort to produce something trivially detectable in the output, and the author just kinda shrugs at it.","timestamp":"2018-01-29T09:21:56+00:00","score":17},{"role":"OP","user_id":"anon_848cf22e5273d608","comment_id":"dtfp6u5","kind":"comment","text":"Thanks for the feedback! I realize it's a bit late now, but I've [edited the article a bit](https://github.com/thatoddmailbox/thatoddmailbox.github.io/commit/e419228c751ee1666650c2c4fbddbe7b0c8d0b0c#diff-1) to hopefully make this point a bit clearer. Let me know what you think, or if you have any other feedback about the article!","timestamp":"2018-01-29T22:54:15+00:00","score":2},{"role":"answerer","user_id":"anon_72d518c9b7158020","comment_id":"dtfpget","kind":"comment","text":"Oh, cool!\n\nAside from this it was really excellent. Great work!","timestamp":"2018-01-29T22:58:44+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_848cf22e5273d608","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_72d518c9b7158020","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dtel2gl","thanks_reply_id":"dtfp6u5","post_score":1874,"answer_score":17,"preferred_answer_is_top_level":false}} {"user_id":"anon_eae56696340215c9","answerer_user_id":"anon_38fe348b280fa6f3","subreddit":"programming","timestamp":"2018-01-29T19:56:06+00:00","post_id":"7tv15s","question":"Is Search Solved?","preferred_answer":"Your website is down. I'm only seeing a cloudflare page.\n\nEdit: Why am I getting downvoted? I'm just trying to help OP.","full_conversation":[{"role":"OP","user_id":"anon_eae56696340215c9","comment_id":"7tv15s","kind":"post","text":"Is Search Solved?","timestamp":"2018-01-29T19:56:06+00:00","score":6},{"role":"answerer","user_id":"anon_38fe348b280fa6f3","comment_id":"dtfmlqf","kind":"comment","text":"Your website is down. I'm only seeing a cloudflare page.\n\nEdit: Why am I getting downvoted? I'm just trying to help OP.","timestamp":"2018-01-29T22:10:48+00:00","score":6},{"role":"OP","user_id":"anon_eae56696340215c9","comment_id":"dtfn90y","kind":"comment","text":"Thanks for the heads up! \n\nI believe it should be up now :)","timestamp":"2018-01-29T22:21:32+00:00","score":3},{"role":"answerer","user_id":"anon_38fe348b280fa6f3","comment_id":"dtfo477","kind":"comment","text":"I can now see your site :)","timestamp":"2018-01-29T22:36:02+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_eae56696340215c9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_38fe348b280fa6f3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dtfmlqf","thanks_reply_id":"dtfn90y","post_score":6,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_999edca958d06142","answerer_user_id":"anon_d53af5dd4baa4150","subreddit":"programming","timestamp":"2018-02-05T19:38:42+00:00","post_id":"7vhb98","question":"P vs NP solution,any thoughts on this?","preferred_answer":"Caveat: I'm not an expert in this area of computer science \n\nEdit: or any really...\n\n> If I'm correct,it generates 2n -1 numbers,so,after adding numbers to the string,it grows exponentially,which means it's NP\n\nNP means [Non-deterministic Polynomial time](https://en.wikipedia.org/wiki/NP_(complexity\\)). combinations or permutations of a series of digits is deterministic. So I don't think this example is NP.\n\nmeta note: I have no idea how to make a link when the url contains parens.","full_conversation":[{"role":"OP","user_id":"anon_999edca958d06142","comment_id":"7vhb98","kind":"post","text":"P vs NP solution,any thoughts on this?","timestamp":"2018-02-05T19:38:42+00:00","score":0},{"role":"answerer","user_id":"anon_d53af5dd4baa4150","comment_id":"dtsdlgc","kind":"comment","text":"Caveat: I'm not an expert in this area of computer science \n\nEdit: or any really...\n\n> If I'm correct,it generates 2n -1 numbers,so,after adding numbers to the string,it grows exponentially,which means it's NP\n\nNP means [Non-deterministic Polynomial time](https://en.wikipedia.org/wiki/NP_(complexity\\)). combinations or permutations of a series of digits is deterministic. So I don't think this example is NP.\n\nmeta note: I have no idea how to make a link when the url contains parens.","timestamp":"2018-02-05T20:51:01+00:00","score":3},{"role":"OP","user_id":"anon_999edca958d06142","comment_id":"dtseh5f","kind":"comment","text":"Oh,so that was it,thanks a lot!!\nJust a beginner trying to understand how this works and wanted to clear my mind on that and learn.\nAnyway,thanks to everyone who replied,you are awesome!","timestamp":"2018-02-05T21:04:25+00:00","score":0},{"role":"answerer","user_id":"anon_d53af5dd4baa4150","comment_id":"dttir9l","kind":"comment","text":"IN that vein of thought, finding an algorithm that is thought to be NP and finding a P solution for it does not prove NP = P.\n\nIt would demonstrate that a given algorithm was suboptimal and a P solution exists.\n\nSolving NP = P requires a general proof that works for all algorithms that are NP. As a problem it is operated on far more abstractly than any given specific NP problem.","timestamp":"2018-02-06T13:07:27+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_999edca958d06142","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d53af5dd4baa4150","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dtsdlgc","thanks_reply_id":"dtseh5f","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_955a30cde70bc89a","answerer_user_id":"anon_df1995b21460f85e","subreddit":"programming","timestamp":"2018-02-18T21:36:48+00:00","post_id":"7yhka2","question":"Looking for developers to collaborate and develop together as one collective. I am convinced that as a group we can reach very far.","preferred_answer":"I think you're being downvoted because:\n\n\n* this incredibly long rant\n\n* the demands for info on your site\n\n* and the clearly not-at-all-thought-out nature of the project \n\n\nstrike all readers as a huge waste of time. Seriously, it's borderline disrespectful.","full_conversation":[{"role":"OP","user_id":"anon_955a30cde70bc89a","comment_id":"7yhka2","kind":"post","text":"Looking for developers to collaborate and develop together as one collective. I am convinced that as a group we can reach very far.","timestamp":"2018-02-18T21:36:48+00:00","score":0},{"role":"answerer","user_id":"anon_df1995b21460f85e","comment_id":"duh510y","kind":"comment","text":"I think you're being downvoted because:\n\n\n* this incredibly long rant\n\n* the demands for info on your site\n\n* and the clearly not-at-all-thought-out nature of the project \n\n\nstrike all readers as a huge waste of time. Seriously, it's borderline disrespectful.","timestamp":"2018-02-19T04:09:23+00:00","score":6},{"role":"OP","user_id":"anon_955a30cde70bc89a","comment_id":"dui5zp1","kind":"comment","text":"Its not meant to be like that, trying to give as much possible information. But thanks for the tips, The info is for the people to get to know each other. its up to you how much info you put. If you are not registered you will not see the other peoples info. I think its important you know who you dealing with. My info is also all on the site, once you are registered. will retry soon.","timestamp":"2018-02-19T19:28:09+00:00","score":1},{"role":"answerer","user_id":"anon_df1995b21460f85e","comment_id":"duia1o0","kind":"comment","text":"How is this any different than people finding open source projects to contribute to on github? At least there you can already see who/what you're dealing with. \n\n\nYou're basically saying \"come meet people and do thing\" but there are no people, and also no clear purpose. It's a huge waste of time. \n\n\nI'm sure you mean well, but the overall impression is someone who likes to fantasize, and rant about their own fantasies, without any consideration for how others experience it. =(","timestamp":"2018-02-19T20:34:31+00:00","score":1},{"role":"OP","user_id":"anon_955a30cde70bc89a","comment_id":"duiclan","kind":"comment","text":"The idea is to build together. I am setting up tbe website. There will be more ideas posted. But not for the world but the group. The idea is to make money together. To do projects and also make a difference in the world. The purpuse is to develop. What we will work on will be desided by tbe group. And i will turn my fantasies in reality. As far as i know its not bad to share ideas and to try to make a difference in the world","timestamp":"2018-02-19T21:15:49+00:00","score":1},{"role":"answerer","user_id":"anon_df1995b21460f85e","comment_id":"duie678","kind":"comment","text":"I think it's great to have ideas, and your goals sound extremely do-able. I encourage you to keep at it!\n\n\nBut rallying people, leadership, is generally considered sort of a job unto itself. The big-picture term for this is \"sales\", which I think does the job a disservice. \n\n\nSales is just understanding how to make something worthwhile for others. It's just hardcore empathy. =) \n\n\nI'd strongly recommend you read \"How to Win Friends and Influence People\" by Carnegie. It's a quick, pleasant read, and it will make the \"leadership/sales\" portion of your enterprise a lot more approachable. =)","timestamp":"2018-02-19T21:41:33+00:00","score":1},{"role":"OP","user_id":"anon_955a30cde70bc89a","comment_id":"duimi03","kind":"comment","text":"Thanks i will and thanks for your comments","timestamp":"2018-02-20T00:08:04+00:00","score":2}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_955a30cde70bc89a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_df1995b21460f85e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"duh510y","thanks_reply_id":"dui5zp1","post_score":0,"answer_score":6,"preferred_answer_is_top_level":false}} {"user_id":"anon_f0cadaf281e9e0ee","answerer_user_id":"anon_36f9d769984a4f5e","subreddit":"programming","timestamp":"2018-02-20T20:08:12+00:00","post_id":"7yz0xy","question":"A cool new Music API! What do you think?","preferred_answer":"Something like this which was backed by a gigantic catalog of licensed, high quality music could be enormously useful for game developers.","full_conversation":[{"role":"OP","user_id":"anon_f0cadaf281e9e0ee","comment_id":"7yz0xy","kind":"post","text":"A cool new Music API! What do you think?","timestamp":"2018-02-20T20:08:12+00:00","score":0},{"role":"answerer","user_id":"anon_36f9d769984a4f5e","comment_id":"dulry9w","kind":"comment","text":"Something like this which was backed by a gigantic catalog of licensed, high quality music could be enormously useful for game developers.","timestamp":"2018-02-21T17:03:52+00:00","score":1},{"role":"OP","user_id":"anon_f0cadaf281e9e0ee","comment_id":"e10dpb9","kind":"comment","text":"Hey @Claytonious thanks for the feedback! Just curious, were you a game developer and have this need before?","timestamp":"2018-06-20T20:25:32+00:00","score":1},{"role":"answerer","user_id":"anon_36f9d769984a4f5e","comment_id":"e10dtte","kind":"comment","text":"Yes.","timestamp":"2018-06-20T20:27:16+00:00","score":1},{"role":"OP","user_id":"anon_f0cadaf281e9e0ee","comment_id":"e10dzie","kind":"comment","text":"Oh ok, that's interesting! Would you, as a game developer, want something like this as an API or like an easy-to-use web app for searching music? Thanks for your thoughts man! :)","timestamp":"2018-06-20T20:29:27+00:00","score":1},{"role":"answerer","user_id":"anon_36f9d769984a4f5e","comment_id":"e10e6cr","kind":"comment","text":"An API would be far more interesting and could help a game dynamically \"stay fresh\". Simply licensing music for inclusion into a release of a game is already a sufficiently solved problem, imho.","timestamp":"2018-06-20T20:32:04+00:00","score":1},{"role":"OP","user_id":"anon_f0cadaf281e9e0ee","comment_id":"e10eayq","kind":"comment","text":"Oh got it, thanks Claytonious! I'll share this with some of the game dev communities here on Reddit then. Thanks again, for your thoughts! :D","timestamp":"2018-06-20T20:33:49+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_f0cadaf281e9e0ee","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_36f9d769984a4f5e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dulry9w","thanks_reply_id":"e10dpb9","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_6a17b23b1f767357","answerer_user_id":"anon_b35f8b96ee0424d5","subreddit":"programming","timestamp":"2018-02-26T21:03:42+00:00","post_id":"80ghed","question":"Should you learn C/C++ in 2018 ?","preferred_answer":"Python is actually one of the later languages I've encountered but the order is something along the lines of Lua, VB, Java, C#, C/C++, (quite a few obscure ones like SourcePawn but all C like), and then I came across Python (so about 10 years of programming before I came across it.) my life has been filled with very C like languages when it comes to syntax, so anything too different does become confusing very quickly.","full_conversation":[{"role":"OP","user_id":"anon_6a17b23b1f767357","comment_id":"80ghed","kind":"post","text":"Should you learn C/C++ in 2018 ?","timestamp":"2018-02-26T21:03:42+00:00","score":0},{"role":"answerer","user_id":"anon_b35f8b96ee0424d5","comment_id":"duynxd0","kind":"comment","text":"Python is actually one of the later languages I've encountered but the order is something along the lines of Lua, VB, Java, C#, C/C++, (quite a few obscure ones like SourcePawn but all C like), and then I came across Python (so about 10 years of programming before I came across it.) my life has been filled with very C like languages when it comes to syntax, so anything too different does become confusing very quickly.","timestamp":"2018-02-28T15:08:02+00:00","score":1},{"role":"OP","user_id":"anon_6a17b23b1f767357","comment_id":"duzo8l2","kind":"comment","text":"Thank you for the interesting perspective. \nI had a similar path, started with: QBASIC, VB, C, Java, C++, shell scripts, and after 5 years found Python and for me, Python was like C syntax on steroids without curly braces :-).","timestamp":"2018-03-01T00:34:58+00:00","score":1},{"role":"answerer","user_id":"anon_b35f8b96ee0424d5","comment_id":"dv0g3lc","kind":"comment","text":"maybe one day I'll go learn the syntax just so I can go and read this: https://codegolf.stackexchange.com/a/10946","timestamp":"2018-03-01T12:36:31+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6a17b23b1f767357","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b35f8b96ee0424d5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"duynxd0","thanks_reply_id":"duzo8l2","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_5c9d4c1b0b954f81","answerer_user_id":"anon_f495742e47801311","subreddit":"programming","timestamp":"2018-02-27T20:47:16+00:00","post_id":"80py3d","question":"What is wrong with estimates, you ask ?","preferred_answer":"My take-away: The concept of subdividing stories into hours, days, weeks, months to complete is interesting, but that idea itself is not interesting enough on it's own merit to justify the proposed solution is valid. For example, just above that they mention that velocity is fine, but how do you even measure velocity in a system using these terms as the metric? At the end of a sprint do you say 'We completed 15 'hours to complete', 9 'days to complete', 1 'weeks to complete' and somehow that makes sense to convert into a velocity metric? What is the methodology for deciding what an iteration's worth of work is when you only have 'hours', 'days', 'weeks', 'months' to work with?","full_conversation":[{"role":"OP","user_id":"anon_5c9d4c1b0b954f81","comment_id":"80py3d","kind":"post","text":"What is wrong with estimates, you ask ?","timestamp":"2018-02-27T20:47:16+00:00","score":21},{"role":"answerer","user_id":"anon_f495742e47801311","comment_id":"duyr99g","kind":"comment","text":"My take-away: The concept of subdividing stories into hours, days, weeks, months to complete is interesting, but that idea itself is not interesting enough on it's own merit to justify the proposed solution is valid. For example, just above that they mention that velocity is fine, but how do you even measure velocity in a system using these terms as the metric? At the end of a sprint do you say 'We completed 15 'hours to complete', 9 'days to complete', 1 'weeks to complete' and somehow that makes sense to convert into a velocity metric? What is the methodology for deciding what an iteration's worth of work is when you only have 'hours', 'days', 'weeks', 'months' to work with?","timestamp":"2018-02-28T16:01:33+00:00","score":1},{"role":"OP","user_id":"anon_5c9d4c1b0b954f81","comment_id":"duz1lse","kind":"comment","text":"Thanks for the feedback. I think that’s a valid observation.\n\nHowever, please note that I am – on purpose – aiming for lack of precision. Knowing that you’re going in m/s, km/h and so on is still a measure of velocity. \n\nI am more interested in effectiveness than output. \n\nSo, I guess the iteration’s worth of work is “2 weeks”. : )","timestamp":"2018-02-28T18:37:37+00:00","score":2},{"role":"answerer","user_id":"anon_f495742e47801311","comment_id":"duz5s7d","kind":"comment","text":"> So, I guess the iteration’s worth of work is “2 weeks”. : )\n\nI guess, but is that 2 weeks worth of work per person, or 2 weeks worth of work for the team? You see what I mean? It feels like abstracting like this leads us back to where we want to get away from, where we are picking up work for the next iteration based on an individual's workload for the iteration rather than what can be done as a team.","timestamp":"2018-02-28T19:40:05+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5c9d4c1b0b954f81","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f495742e47801311","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"duyr99g","thanks_reply_id":"duz1lse","post_score":21,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_237c3bcf6e130eb9","answerer_user_id":"anon_dd66cf428bf07757","subreddit":"programming","timestamp":"2018-02-28T14:38:43+00:00","post_id":"80whkc","question":"Why I Quit Google to Work for Myself","preferred_answer":"Your story about getting a promotion somewhat resonates with me as I was trying to get a promotion at a previous company.\n\nThey had a skills matrix full of criteria that they felt a senior software engineer must meet, I went through it and provided evidence based on what I had done and I felt I had met most of the criteria.\n\nBut then I was rejected because they felt I hadn't mentored enough juniors to qualify as a senior developer, But our team didn't have any juniors on it and weren't going to recruit any time soon, so how was I supposed to get this experience? Never mind that I was delivering new features, being involved in design of new features and services, looking after existing and legacy services that were critical to the business and had a wealth of knowledge on how these services were written and how they were operating.","full_conversation":[{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"80whkc","kind":"post","text":"Why I Quit Google to Work for Myself","timestamp":"2018-02-28T14:38:43+00:00","score":4898},{"role":"answerer","user_id":"anon_dd66cf428bf07757","comment_id":"duz1da3","kind":"comment","text":"Your story about getting a promotion somewhat resonates with me as I was trying to get a promotion at a previous company.\n\nThey had a skills matrix full of criteria that they felt a senior software engineer must meet, I went through it and provided evidence based on what I had done and I felt I had met most of the criteria.\n\nBut then I was rejected because they felt I hadn't mentored enough juniors to qualify as a senior developer, But our team didn't have any juniors on it and weren't going to recruit any time soon, so how was I supposed to get this experience? Never mind that I was delivering new features, being involved in design of new features and services, looking after existing and legacy services that were critical to the business and had a wealth of knowledge on how these services were written and how they were operating.","timestamp":"2018-02-28T18:34:10+00:00","score":28},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"duz3aln","kind":"comment","text":"Thanks for reading. I'm glad (and sad) that it resonated with you.\n\nYeah, the sense I get from a lot of responses is that this is a problem in general at big companies. It's hard to design a promotion process that scales to 50k+ people without ending up with lots of false positives and false negatives.","timestamp":"2018-02-28T19:02:48+00:00","score":14},{"role":"answerer","user_id":"anon_dd66cf428bf07757","comment_id":"duzcuzc","kind":"comment","text":"I think there's also a weird thing about job titles and responsibilities too, a senior can mean different things in different companies(and even different teams!) so its pretty hard to standardise from that point of view as well.","timestamp":"2018-02-28T21:24:44+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_237c3bcf6e130eb9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dd66cf428bf07757","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"duz1da3","thanks_reply_id":"duz3aln","post_score":4898,"answer_score":28,"preferred_answer_is_top_level":false}} {"user_id":"anon_5dcdac0e95608b80","answerer_user_id":"anon_63d0b57f56683bd9","subreddit":"programming","timestamp":"2018-03-02T15:17:51+00:00","post_id":"81exa9","question":"I built Hackterms, an Urban Dictionary for coding terms, to help connect the dots while learning - and we're picking up steam! Want to help?","preferred_answer":"I asked about an API precisely with the intention of building content. \n\nA thread below discussed using the jargon file as a seed. Parsing that file and POSTing to your API would be an easy way to preload a lot of content.\n\nIt may be possible to emulate it as a form submission, though I'm not sure that is entirely polite.","full_conversation":[{"role":"OP","user_id":"anon_5dcdac0e95608b80","comment_id":"81exa9","kind":"post","text":"I built Hackterms, an Urban Dictionary for coding terms, to help connect the dots while learning - and we're picking up steam! Want to help?","timestamp":"2018-03-02T15:17:51+00:00","score":5287},{"role":"answerer","user_id":"anon_63d0b57f56683bd9","comment_id":"dv33cmk","kind":"comment","text":"I asked about an API precisely with the intention of building content. \n\nA thread below discussed using the jargon file as a seed. Parsing that file and POSTing to your API would be an easy way to preload a lot of content.\n\nIt may be possible to emulate it as a form submission, though I'm not sure that is entirely polite.","timestamp":"2018-03-02T19:23:12+00:00","score":3},{"role":"OP","user_id":"anon_5dcdac0e95608b80","comment_id":"dv34j91","kind":"comment","text":"That makes sense! Thank you for clarifying. I have two thoughts:\n\n1. I don't know much about the Jargon file, but realize that it's a respected and thorough source - would the author(s) be okay with us just porting their content? If so, I'd be happy to help port over the definitions. \n\n2. Otherwise, though, I am cautious about Hackterms definitions being directly copied from other sources - I ask contributors to try to at least [paraphrase submissions](https://www.hackterms.com/darules).","timestamp":"2018-03-02T19:41:55+00:00","score":3},{"role":"answerer","user_id":"anon_63d0b57f56683bd9","comment_id":"dv34uyv","kind":"comment","text":"https://www.hackterms.com/jargon%20file\n\nIts so old and informally maintained theres no license: https://en.wikipedia.org/wiki/Jargon_File","timestamp":"2018-03-02T19:47:05+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5dcdac0e95608b80","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_63d0b57f56683bd9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dv33cmk","thanks_reply_id":"dv34j91","post_score":5287,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_8fcbe0776c297abf","answerer_user_id":"anon_8abd3e3df5aefb0f","subreddit":"programming","timestamp":"2018-03-12T18:30:48+00:00","post_id":"83x9fk","question":"How Netflix does regional evacuation in less than 10 minutes. AMAA","preferred_answer":"This is super awesome...quick question though: how did you keep things cost neutral if you went from booting instances after a failover was triggered to keeping instances running and pre-warmed? Are they reserved instances that have already been paid for? \n\n(typing that out makes me think that's most likely the case, but curious none the less)\n\nThanks!","full_conversation":[{"role":"OP","user_id":"anon_8fcbe0776c297abf","comment_id":"83x9fk","kind":"post","text":"How Netflix does regional evacuation in less than 10 minutes. AMAA","timestamp":"2018-03-12T18:30:48+00:00","score":14},{"role":"answerer","user_id":"anon_8abd3e3df5aefb0f","comment_id":"dvldong","kind":"comment","text":"This is super awesome...quick question though: how did you keep things cost neutral if you went from booting instances after a failover was triggered to keeping instances running and pre-warmed? Are they reserved instances that have already been paid for? \n\n(typing that out makes me think that's most likely the case, but curious none the less)\n\nThanks!","timestamp":"2018-03-12T20:32:06+00:00","score":2},{"role":"OP","user_id":"anon_8fcbe0776c297abf","comment_id":"dvldqim","kind":"comment","text":"Thanks! They are indeed RIs.","timestamp":"2018-03-12T20:32:53+00:00","score":1},{"role":"answerer","user_id":"anon_8abd3e3df5aefb0f","comment_id":"dvldu0b","kind":"comment","text":"Ah thanks! I had just answered my own questions with this video: https://www.youtube.com/watch?v=i1EW6zmFbSM\n\nAlso, mind if I DM you re: the job posting?","timestamp":"2018-03-12T20:34:26+00:00","score":1},{"role":"OP","user_id":"anon_8fcbe0776c297abf","comment_id":"dvleayd","kind":"comment","text":"sure, or email me ablohowiak@netflix.com","timestamp":"2018-03-12T20:41:37+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_8fcbe0776c297abf","author_flair_text":"","author_flair_css_class":"","author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8abd3e3df5aefb0f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dvldong","thanks_reply_id":"dvldqim","post_score":14,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_d41e17d55cad9b38","answerer_user_id":"anon_923e6987aa54fb32","subreddit":"programming","timestamp":"2018-03-12T18:32:27+00:00","post_id":"83x9y7","question":"Survey: Have you learned a new programming language within the last 6 months?","preferred_answer":"That just gives me a 301 to the ?p=287 URL.\n\n curl -I \"https://davepaola.com/2018/03/12/have-you-learned-a-new-programming-language-within-the-last-6-months-i-want-to-hear-from-you/\"\n HTTP/2 301 \n server: nginx\n date: Mon, 12 Mar 2018 19:50:31 GMT\n content-type: text/html; charset=UTF-8\n location: https://davepaola.com/?p=287\n strict-transport-security: max-age=86400\n vary: Cookie\n x-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.\n expires: Wed, 11 Jan 1984 05:00:00 GMT\n cache-control: no-cache, must-revalidate, max-age=60\n x-ac: 3.dfw _dfw","full_conversation":[{"role":"OP","user_id":"anon_d41e17d55cad9b38","comment_id":"83x9y7","kind":"post","text":"Survey: Have you learned a new programming language within the last 6 months?","timestamp":"2018-03-12T18:32:27+00:00","score":0},{"role":"answerer","user_id":"anon_923e6987aa54fb32","comment_id":"dvlb1hp","kind":"comment","text":"That just gives me a 301 to the ?p=287 URL.\n\n curl -I \"https://davepaola.com/2018/03/12/have-you-learned-a-new-programming-language-within-the-last-6-months-i-want-to-hear-from-you/\"\n HTTP/2 301 \n server: nginx\n date: Mon, 12 Mar 2018 19:50:31 GMT\n content-type: text/html; charset=UTF-8\n location: https://davepaola.com/?p=287\n strict-transport-security: max-age=86400\n vary: Cookie\n x-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.\n expires: Wed, 11 Jan 1984 05:00:00 GMT\n cache-control: no-cache, must-revalidate, max-age=60\n x-ac: 3.dfw _dfw","timestamp":"2018-03-12T19:51:22+00:00","score":1},{"role":"OP","user_id":"anon_d41e17d55cad9b38","comment_id":"dvlb9a9","kind":"comment","text":"Welp, thanks for the help debugging. No idea what's going on with wordpress.","timestamp":"2018-03-12T19:54:41+00:00","score":1},{"role":"answerer","user_id":"anon_923e6987aa54fb32","comment_id":"dvlboow","kind":"comment","text":"Don't seem to be affected by which IP address I hit, if that helps narrow things down.\n\nAnyway, the answer is yes, if you count shell script.","timestamp":"2018-03-12T20:01:16+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d41e17d55cad9b38","author_flair_text":"","author_flair_css_class":"","author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_923e6987aa54fb32","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dvlb1hp","thanks_reply_id":"dvlb9a9","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_9303982c29b7c398","answerer_user_id":"anon_903bd11440bc3959","subreddit":"programming","timestamp":"2018-03-15T12:12:42+00:00","post_id":"84lz2x","question":"Some basics for the mobile app development. Anything else to add?","preferred_answer":"Dated. This might have been the way to make apps five years ago but now there are great choices that render many of these assumptions invalid.\n\n* React Native \n* Xamarin \n* Responsive web applications wrapped in a webview\n\nIt's also wrong. First it says, if they are using BaaS then the development time would be cheaper because it takes \"less time\". Then it says, that a second platform (iOS and/or Android) takes not twice as much time but twice as much time plus a little bit more. Finally it says that Android costs 30% more because there's more devices. All of these claims suit a certain kind of development and are rather dubious. In reality business people do not and should not give a fuck how the app is created for an outsourcing or offshoring like this. There are also test labs that deal with the Android device problem and to be honest everything does not have to be tested to the bone, that is indicative of ass covering waterfall thinking. The BaaS couldn't be more wrong and absolutely does not lower cost, because time is not money. \n\nI would never want to work for a client who thought like this. Unless I was an Android or Swift only developer who knew only that and wanted to milk my clients for money. But business people are wising up. They know that you can write one code base for multiple platforms. They know that you can use responsive web, and that websites are more and more significant taking a greater market share than apps. They also starting to realize that time is not money, that quality is money and that the app space is mature. The only way that \"time is money\" in terms of programming is if you can build a platform where you generate dozens of applications with the same code. But that would require real multi-disciplinary skills. And it says that costs less. What a riot.\n\nAnyone who thinks like this article has a very limited life in tech. They won't be fooling good clients for very long. Maybe they will fool the one guy with 50k to spend on a startup idea that will 99% fail. That's it.","full_conversation":[{"role":"OP","user_id":"anon_9303982c29b7c398","comment_id":"84lz2x","kind":"post","text":"Some basics for the mobile app development. Anything else to add?","timestamp":"2018-03-15T12:12:42+00:00","score":0},{"role":"answerer","user_id":"anon_903bd11440bc3959","comment_id":"dvqj2qo","kind":"comment","text":"Dated. This might have been the way to make apps five years ago but now there are great choices that render many of these assumptions invalid.\n\n* React Native \n* Xamarin \n* Responsive web applications wrapped in a webview\n\nIt's also wrong. First it says, if they are using BaaS then the development time would be cheaper because it takes \"less time\". Then it says, that a second platform (iOS and/or Android) takes not twice as much time but twice as much time plus a little bit more. Finally it says that Android costs 30% more because there's more devices. All of these claims suit a certain kind of development and are rather dubious. In reality business people do not and should not give a fuck how the app is created for an outsourcing or offshoring like this. There are also test labs that deal with the Android device problem and to be honest everything does not have to be tested to the bone, that is indicative of ass covering waterfall thinking. The BaaS couldn't be more wrong and absolutely does not lower cost, because time is not money. \n\nI would never want to work for a client who thought like this. Unless I was an Android or Swift only developer who knew only that and wanted to milk my clients for money. But business people are wising up. They know that you can write one code base for multiple platforms. They know that you can use responsive web, and that websites are more and more significant taking a greater market share than apps. They also starting to realize that time is not money, that quality is money and that the app space is mature. The only way that \"time is money\" in terms of programming is if you can build a platform where you generate dozens of applications with the same code. But that would require real multi-disciplinary skills. And it says that costs less. What a riot.\n\nAnyone who thinks like this article has a very limited life in tech. They won't be fooling good clients for very long. Maybe they will fool the one guy with 50k to spend on a startup idea that will 99% fail. That's it.","timestamp":"2018-03-15T12:38:01+00:00","score":2},{"role":"OP","user_id":"anon_9303982c29b7c398","comment_id":"dvqjy8b","kind":"comment","text":"Great. Thank you for a feedback.","timestamp":"2018-03-15T12:58:23+00:00","score":1},{"role":"answerer","user_id":"anon_903bd11440bc3959","comment_id":"dvqq8nh","kind":"comment","text":"Maybe I was a little bit harsh. This would suit a certain kind of development, a pure mobile shop with iOS and Android specialists with fixed price contracts.\n\nIn 2018 however I would not hire an iOS / Android shop no matter how skilled and never with fixed price contracts. Market is the market if there are still business people who think like this then fine, but they are likely to be unhappy. It would certainly make most developers unhappy except the most specialized, expert iOS/Android developers. If you want a fixed price contract with a good quality of life for your developers, the PMs had better be the best in the world and everything specified down to the letter with perfect mockups and perfect requirements only then could this type of development work.\n\nOtherwise... your devs will bleed.","timestamp":"2018-03-15T14:54:25+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9303982c29b7c398","author_flair_text":"","author_flair_css_class":"","author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_903bd11440bc3959","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dvqj2qo","thanks_reply_id":"dvqjy8b","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_26c62a7ebf7751f5","answerer_user_id":"anon_047c5fe8a45c885b","subreddit":"programming","timestamp":"2018-03-19T16:21:01+00:00","post_id":"85kq2j","question":"Why Kubernetes Operators are a game changer","preferred_answer":"Service Fabric and Kubernetes are similar in a number of ways:\n\n - They are both cloud-agnostic clustering, orchestration, and scheduling software.\n - They can both be deployed manually, by you, to any set of VMs, anywhere.\n - There are \"managed\" offerings for both, meaning a cloud provider like Azure or Google Cloud will host a cluster for you, but generally you still own the VMs.\n - They both deploy and manage containers.\n - They both have rich management operations, such as rolling upgrades, health checks, and self-healing capabilities.\n\nI'd say the biggest fundamental difference is the focus and evolution of each platform. Kubernetes was built to be a container orchestrator, and more stuff evolved around that. Service Fabric was originally built to be a storage technology (the shared foundation at Microsoft for Azure SQL, Cosmos DB, among others) and evolved from there into a more general application platform and orchestrator of things, at first just plain old EXEs, then later containers when Docker showed up on the scene.\n\nSo as a comparison, Kubernetes allows you to *deploy* stateful things by persisting data to storage volumes. Service Fabric itself is a stateful platform, which means you can *build* stateful things using replication, consensus, partitioning, and leader election primitives provided by the platform. That's the \"stateful service\" concept in Service Fabric, where your code participates in the replicated state machine that drives a replicated, partitioned state store. \n\nAs an example, Kubernetes relies on a 3rd party state store like etcd to store the state of the cluster. Service Fabric doesn't need to do that, it is its own state store. You could build something like etcd fairly easily on Service Fabric. \n\nObviously there are a bunch of other differences, especially around the deployment model. Hope that makes sense. Disclosure: I work on Service Fabric.","full_conversation":[{"role":"OP","user_id":"anon_26c62a7ebf7751f5","comment_id":"85kq2j","kind":"post","text":"Why Kubernetes Operators are a game changer","timestamp":"2018-03-19T16:21:01+00:00","score":23},{"role":"answerer","user_id":"anon_047c5fe8a45c885b","comment_id":"dvz5d4g","kind":"comment","text":"Service Fabric and Kubernetes are similar in a number of ways:\n\n - They are both cloud-agnostic clustering, orchestration, and scheduling software.\n - They can both be deployed manually, by you, to any set of VMs, anywhere.\n - There are \"managed\" offerings for both, meaning a cloud provider like Azure or Google Cloud will host a cluster for you, but generally you still own the VMs.\n - They both deploy and manage containers.\n - They both have rich management operations, such as rolling upgrades, health checks, and self-healing capabilities.\n\nI'd say the biggest fundamental difference is the focus and evolution of each platform. Kubernetes was built to be a container orchestrator, and more stuff evolved around that. Service Fabric was originally built to be a storage technology (the shared foundation at Microsoft for Azure SQL, Cosmos DB, among others) and evolved from there into a more general application platform and orchestrator of things, at first just plain old EXEs, then later containers when Docker showed up on the scene.\n\nSo as a comparison, Kubernetes allows you to *deploy* stateful things by persisting data to storage volumes. Service Fabric itself is a stateful platform, which means you can *build* stateful things using replication, consensus, partitioning, and leader election primitives provided by the platform. That's the \"stateful service\" concept in Service Fabric, where your code participates in the replicated state machine that drives a replicated, partitioned state store. \n\nAs an example, Kubernetes relies on a 3rd party state store like etcd to store the state of the cluster. Service Fabric doesn't need to do that, it is its own state store. You could build something like etcd fairly easily on Service Fabric. \n\nObviously there are a bunch of other differences, especially around the deployment model. Hope that makes sense. Disclosure: I work on Service Fabric.","timestamp":"2018-03-20T02:51:08+00:00","score":4},{"role":"OP","user_id":"anon_26c62a7ebf7751f5","comment_id":"dvzig2q","kind":"comment","text":"Thanks a lot! That was really helpful. Are you guys using kubernetes/openshift under the covers?","timestamp":"2018-03-20T09:37:29+00:00","score":1},{"role":"answerer","user_id":"anon_047c5fe8a45c885b","comment_id":"dw09umd","kind":"comment","text":"In Service Fabric? No, not at all. Service Fabric has been around for over a decade, long before Kubernetes/OpenShift was a thing. Service Fabric is all home brew with custom federation, clustering, consensus and replication engines. In fact you can use it as a storage provider for Kubernetes.","timestamp":"2018-03-20T18:34:31+00:00","score":1},{"role":"OP","user_id":"anon_26c62a7ebf7751f5","comment_id":"dwdnm8u","kind":"comment","text":"Hey vturecek, as I mentioned, I have never heard about it in the past, so, please ignore my comment.","timestamp":"2018-03-27T19:21:27+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_26c62a7ebf7751f5","author_flair_text":"","author_flair_css_class":"","author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_047c5fe8a45c885b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dvz5d4g","thanks_reply_id":"dvzig2q","post_score":23,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_6b3b3eff8175c113","answerer_user_id":"anon_2dce6ddbbbf8a33a","subreddit":"programming","timestamp":"2018-03-25T03:26:59+00:00","post_id":"86yada","question":"Why Will Some Programmers Never Agree?","preferred_answer":"I like your videos Jayme but you're gonna have to contribute a bit more to reddit than 100% spamming your content before I ever upvote you.","full_conversation":[{"role":"OP","user_id":"anon_6b3b3eff8175c113","comment_id":"86yada","kind":"post","text":"Why Will Some Programmers Never Agree?","timestamp":"2018-03-25T03:26:59+00:00","score":0},{"role":"answerer","user_id":"anon_2dce6ddbbbf8a33a","comment_id":"dw927e1","kind":"comment","text":"I like your videos Jayme but you're gonna have to contribute a bit more to reddit than 100% spamming your content before I ever upvote you.","timestamp":"2018-03-25T08:46:57+00:00","score":3},{"role":"OP","user_id":"anon_6b3b3eff8175c113","comment_id":"dw9dutn","kind":"comment","text":"Thanks for your feedback. It’s hard to find the time to respond to CS career questions and make videos with 3 kids. I’m not trying to be disrespectful.\n\nI’m still learning on Reddit. When you say contribute more, do you mean sharing other people’s content? Could you give me some ideas of how I can help the community with their goals in addition to sharing my knowledge and answering career questions?\n\nThanks in advance.","timestamp":"2018-03-25T15:03:54+00:00","score":3},{"role":"answerer","user_id":"anon_2dce6ddbbbf8a33a","comment_id":"dwamv8b","kind":"comment","text":"People look at your post history and see if you're a regular user that contributes to the basic idea of reddit, to be a discussion platform, or just exploit it to market a brand. You are doing the latter.\n\nI'm being frank here because no one else seems to be giving it to you straight. Your content is good, your approach is not, hence the negative score. Welcome to reddit though.","timestamp":"2018-03-26T05:18:26+00:00","score":3},{"role":"OP","user_id":"anon_6b3b3eff8175c113","comment_id":"dwavhgs","kind":"comment","text":"Thank you, I think I get the perception. I’m not going to stop putting content out there that can really help people with an open mind just because a few consider it spam though. I started making videos specifically to help frustrated software developers, and they are often the ones most resistant to what I suggest. I’ve been that guy.","timestamp":"2018-03-26T10:38:47+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6b3b3eff8175c113","author_flair_text":"","author_flair_css_class":"","author_flair_type":null,"author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2dce6ddbbbf8a33a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dw927e1","thanks_reply_id":"dw9dutn","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_1235ae53a97aaad3","answerer_user_id":"anon_e1d34742365ff4b8","subreddit":"programming","timestamp":"2018-04-03T16:13:01+00:00","post_id":"89ffke","question":"Should Developers Use Third-Party Libraries or are they too risky?","preferred_answer":"> So from all the arguments, I think the \"Save Time\" is by far the biggest one.\n\nI totally get that... but there are problems with relying on third-party implementations that are directly relevant to the goal of saving time: (1) how easy is it to maintain, (2) how will the third-party usage influence the design of the project, and (3) what is the quality of the third-party solution.\n\nNumber (3) is obviously quite important, because if your 'solution' isn't a real/complete solution or is buggy itself you can lose a lot of time to it -- one place where I worked the team lead said \"*we don't have time to do it right*\" and we spent a **lot** of time re-doing work to get it 'right' [meaning \"good enough\" to pass the client's QA]... it seemed a lot of this was due to a lack of up-front design, but it's certainly the case that your third-party solution could be geared only to 'common' and 'obvious' usage, completely missing important but somewhat rare cases.\n\nNumber (2) is something a lot of people seem to miss taking into account, but how the design of the third-party solution impacts your own design can have important implications. One time in working I had to develop a module integrating a third-party service which ostensibly used CSV... except it didn't, it used a crippled version because they didn't understand the problem-space [of CSV] and used regex internally to 'parse' the structure -- this led to a lot of restrictions, like prohibitions on new-lines, or quote-marks, and a few other special characters -- all of which was far more work, and design, needed than if the solution had supported *real* CSV.\n\nFinally, (1) is a property that is much much easier to evaluate in the past, where you can say \"Wow, ***ExternalLib-A!*** really does take a lot to maintain where-ever it touches our system.\" and is usually best seen through the effects of (2) [how it impacts your design].\n\nTL;DR -- Just because there's a library for it doesn't *necessarily* mean that using it will save time, especially in the long-run.","full_conversation":[{"role":"OP","user_id":"anon_1235ae53a97aaad3","comment_id":"89ffke","kind":"post","text":"Should Developers Use Third-Party Libraries or are they too risky?","timestamp":"2018-04-03T16:13:01+00:00","score":2},{"role":"answerer","user_id":"anon_e1d34742365ff4b8","comment_id":"dwqxxd5","kind":"comment","text":"> So from all the arguments, I think the \"Save Time\" is by far the biggest one.\n\nI totally get that... but there are problems with relying on third-party implementations that are directly relevant to the goal of saving time: (1) how easy is it to maintain, (2) how will the third-party usage influence the design of the project, and (3) what is the quality of the third-party solution.\n\nNumber (3) is obviously quite important, because if your 'solution' isn't a real/complete solution or is buggy itself you can lose a lot of time to it -- one place where I worked the team lead said \"*we don't have time to do it right*\" and we spent a **lot** of time re-doing work to get it 'right' [meaning \"good enough\" to pass the client's QA]... it seemed a lot of this was due to a lack of up-front design, but it's certainly the case that your third-party solution could be geared only to 'common' and 'obvious' usage, completely missing important but somewhat rare cases.\n\nNumber (2) is something a lot of people seem to miss taking into account, but how the design of the third-party solution impacts your own design can have important implications. One time in working I had to develop a module integrating a third-party service which ostensibly used CSV... except it didn't, it used a crippled version because they didn't understand the problem-space [of CSV] and used regex internally to 'parse' the structure -- this led to a lot of restrictions, like prohibitions on new-lines, or quote-marks, and a few other special characters -- all of which was far more work, and design, needed than if the solution had supported *real* CSV.\n\nFinally, (1) is a property that is much much easier to evaluate in the past, where you can say \"Wow, ***ExternalLib-A!*** really does take a lot to maintain where-ever it touches our system.\" and is usually best seen through the effects of (2) [how it impacts your design].\n\nTL;DR -- Just because there's a library for it doesn't *necessarily* mean that using it will save time, especially in the long-run.","timestamp":"2018-04-03T19:23:02+00:00","score":3},{"role":"OP","user_id":"anon_1235ae53a97aaad3","comment_id":"dwr0or8","kind":"comment","text":"Yeah, that makes perfect sense. Saving time is the driver for almost everything. So it's a measure of the trade-off. Is an evaluation process like in the article enough to make you comfortable that a library is 'worth the risk'? Or would you want to check more aspects out?","timestamp":"2018-04-03T19:58:23+00:00","score":2},{"role":"answerer","user_id":"anon_e1d34742365ff4b8","comment_id":"dwsy2w2","kind":"comment","text":"> Is an evaluation process like in the article enough to make you comfortable that a library is 'worth the risk'? Or would you want to check more aspects out?\n\nThere are more aspects, but the author lays out some really good heuristics/categorizations -- I think one thing that's not touched on here is properties of the language the library is written in, it has a big impact on the quality. (For example a library in PHP vs a library in Pascal have vastly different properties simply because of the difference between dynamic/weak and static/stronger type-systems.)","timestamp":"2018-04-04T17:21:44+00:00","score":1},{"role":"OP","user_id":"anon_1235ae53a97aaad3","comment_id":"dx6yove","kind":"comment","text":"oh yeah that's a really good point. Thanks, will look into it that specifically","timestamp":"2018-04-11T16:57:34+00:00","score":2},{"role":"answerer","user_id":"anon_e1d34742365ff4b8","comment_id":"dx7mvvy","kind":"comment","text":"It's dated, but here's a REALLY good study from 1995: \"*[Comparing Development Costs of\nC and Ada](http://archive.adaic.com/intro/ada-vs-c/cada_art.pdf)*\"","timestamp":"2018-04-11T22:53:17+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_1235ae53a97aaad3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e1d34742365ff4b8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dwqxxd5","thanks_reply_id":"dwr0or8","post_score":2,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_17fe35d60800e8a4","answerer_user_id":"anon_372682041c01bb4c","subreddit":"programming","timestamp":"2018-04-04T16:09:02+00:00","post_id":"89qty2","question":"How I Became a Tech Evangelist","preferred_answer":"In the grand tradition of the internet, I read the headline, then skimmed the article until I got bored with it.","full_conversation":[{"role":"OP","user_id":"anon_17fe35d60800e8a4","comment_id":"89qty2","kind":"post","text":"How I Became a Tech Evangelist","timestamp":"2018-04-04T16:09:02+00:00","score":0},{"role":"answerer","user_id":"anon_372682041c01bb4c","comment_id":"dwt0kiw","kind":"comment","text":"In the grand tradition of the internet, I read the headline, then skimmed the article until I got bored with it.","timestamp":"2018-04-04T17:55:16+00:00","score":3},{"role":"OP","user_id":"anon_17fe35d60800e8a4","comment_id":"dwt0s8l","kind":"comment","text":"Ok \nThanks for your feedback","timestamp":"2018-04-04T17:58:07+00:00","score":0},{"role":"answerer","user_id":"anon_372682041c01bb4c","comment_id":"dwt0vsk","kind":"comment","text":"You're welcome.","timestamp":"2018-04-04T17:59:27+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_17fe35d60800e8a4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_372682041c01bb4c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dwt0kiw","thanks_reply_id":"dwt0s8l","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_0e38a4f2d2afbb2f","answerer_user_id":"anon_54159ac78855844c","subreddit":"programming","timestamp":"2018-04-10T01:48:51+00:00","post_id":"8b3z1g","question":"What is the difference between POC, prototype, and MVP?","preferred_answer":"tl;dr -- don't self-submit.\n\nToo Long; Don't read -- You seem polite, so I'll be polite in return. There are apparently about 1 million readers of this board. You might think your thing is the coolest thing in the world. If it is actually interesting and relevant, someone who is not obviously employed by your company will probably read it and post a link here. If enough of those 1 million readers like it, it will be upvoted enough to put it on the front page. But please don't assume that whatever you just wrote is worth 1 million people's time.","full_conversation":[{"role":"OP","user_id":"anon_0e38a4f2d2afbb2f","comment_id":"8b3z1g","kind":"post","text":"What is the difference between POC, prototype, and MVP?","timestamp":"2018-04-10T01:48:51+00:00","score":0},{"role":"answerer","user_id":"anon_54159ac78855844c","comment_id":"dx3ueem","kind":"comment","text":"tl;dr -- don't self-submit.\n\nToo Long; Don't read -- You seem polite, so I'll be polite in return. There are apparently about 1 million readers of this board. You might think your thing is the coolest thing in the world. If it is actually interesting and relevant, someone who is not obviously employed by your company will probably read it and post a link here. If enough of those 1 million readers like it, it will be upvoted enough to put it on the front page. But please don't assume that whatever you just wrote is worth 1 million people's time.","timestamp":"2018-04-10T02:24:21+00:00","score":1},{"role":"OP","user_id":"anon_0e38a4f2d2afbb2f","comment_id":"dx3v2be","kind":"comment","text":"Ah thank you for enlighten me. So I should post anything but mine in subreddit, and if I want to \"self-submit\", I should do it in my profile if possible. Is it cool?\n\nI am new to reddit environment and thank you for your help.","timestamp":"2018-04-10T02:35:41+00:00","score":1},{"role":"answerer","user_id":"anon_54159ac78855844c","comment_id":"dx3vxm2","kind":"comment","text":"If you (or your company) wrote it, please don't post it. I haven't clicked on your link, but I'll guess that you're either a PR person or someone submitting links to their own blog. If it's interesting, someone else may post a link here, and a few dozen people may vote it up.\n\nMaybe create /r/41studio for whatever you do, so people who are interested can subscribe to it.","timestamp":"2018-04-10T02:50:35+00:00","score":3},{"role":"OP","user_id":"anon_0e38a4f2d2afbb2f","comment_id":"dx3wc2o","kind":"comment","text":"Thank you very much for your detailed explanation. I will do your suggestions from now. I apologize for any incovenience. Have a great day!","timestamp":"2018-04-10T02:57:33+00:00","score":4}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0e38a4f2d2afbb2f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_54159ac78855844c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dx3ueem","thanks_reply_id":"dx3v2be","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_b87b2ed794895cb6","answerer_user_id":"anon_4fcbd99172a77447","subreddit":"programming","timestamp":"2018-04-22T03:27:27+00:00","post_id":"8e0sec","question":"Looking for feedback on my side project I have been putting together. Daily Commute - Find jobs that fit your commuting lifestyle","preferred_answer":"Interesting concept. Off the top of my head:\n\n1. You could use the GPS coordinates from the user's browser in addition to the address. \n\n1. Split the home address field. Or concentrate on city/state/country. \n\n1. A bit more feedback when it makes the search. \n\nAs it is, I think it has limited use. Now the inverse (looking for rentals/sells based on the commute) will have more applicability. (I just started job hunting again, and that's how I'm unconsciously going about.) Then again, maybe others will find your app more useful than for me. \n\nYou have talent, keep going at it!","full_conversation":[{"role":"OP","user_id":"anon_b87b2ed794895cb6","comment_id":"8e0sec","kind":"post","text":"Looking for feedback on my side project I have been putting together. Daily Commute - Find jobs that fit your commuting lifestyle","timestamp":"2018-04-22T03:27:27+00:00","score":0},{"role":"answerer","user_id":"anon_4fcbd99172a77447","comment_id":"dxrwlu1","kind":"comment","text":"Interesting concept. Off the top of my head:\n\n1. You could use the GPS coordinates from the user's browser in addition to the address. \n\n1. Split the home address field. Or concentrate on city/state/country. \n\n1. A bit more feedback when it makes the search. \n\nAs it is, I think it has limited use. Now the inverse (looking for rentals/sells based on the commute) will have more applicability. (I just started job hunting again, and that's how I'm unconsciously going about.) Then again, maybe others will find your app more useful than for me. \n\nYou have talent, keep going at it!","timestamp":"2018-04-22T11:43:44+00:00","score":2},{"role":"OP","user_id":"anon_b87b2ed794895cb6","comment_id":"dxrx69u","kind":"comment","text":"Thanks!! I didnt think about the gps coordinates. Great feedback. I appreciated. And when you say “rentals/sells” you mean looking for apartments or houses to rent/buy based on your commute ? Like trying to find an apartment closer to your desired job ?","timestamp":"2018-04-22T12:03:33+00:00","score":2},{"role":"answerer","user_id":"anon_4fcbd99172a77447","comment_id":"dxs3n42","kind":"comment","text":"Yes, that's what I meant. \n\nBoth use cases have value. In cities where there are many openings for the job you're interested in, your original use case is very useful. Specifically for me, I'm looking for jobs outside my city (even in the US mainland), and I would be more interested in finding nearby places where I would be working.","timestamp":"2018-04-22T14:47:53+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b87b2ed794895cb6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4fcbd99172a77447","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dxrwlu1","thanks_reply_id":"dxrx69u","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0aed612e871486dc","answerer_user_id":"anon_9341591e56bd9778","subreddit":"programming","timestamp":"2018-04-23T09:04:38+00:00","post_id":"8ea2xk","question":"Are You Abusing Excel? You Need Something Different","preferred_answer":"You know what else is a free material :)? Ads\n\nJust because it's free doesn't mean that you did a reader a favor.","full_conversation":[{"role":"OP","user_id":"anon_0aed612e871486dc","comment_id":"8ea2xk","kind":"post","text":"Are You Abusing Excel? You Need Something Different","timestamp":"2018-04-23T09:04:38+00:00","score":0},{"role":"answerer","user_id":"anon_9341591e56bd9778","comment_id":"dxtu1fb","kind":"comment","text":"You know what else is a free material :)? Ads\n\nJust because it's free doesn't mean that you did a reader a favor.","timestamp":"2018-04-23T13:51:25+00:00","score":8},{"role":"OP","user_id":"anon_0aed612e871486dc","comment_id":"dxtwkhk","kind":"comment","text":"Well, readers seem to appreciate the material I wrote and made available for free. I have a few hundreds of messages thanking me for them so I feel someone appreciate the content I produced :)\nOr the opensource code I wrote :)","timestamp":"2018-04-23T14:35:29+00:00","score":0},{"role":"answerer","user_id":"anon_9341591e56bd9778","comment_id":"dxu2us5","kind":"comment","text":"I'm sure there are people that appreciate your content and don't care about ads and self promotion. However many don't and /r/programming guidelines explicitely discourage self promotion. Take it somewhere else, Facebook/G+?","timestamp":"2018-04-23T16:13:37+00:00","score":3},{"role":"OP","user_id":"anon_0aed612e871486dc","comment_id":"dxu3bya","kind":"comment","text":"Ads? Which ads? This is an article with one popup for more free content and a newsletter. \n\nI thought it was interesting and I shared it. I perfectly understand someone could find it not interesting but I honestly posted on this subreddit in the past (very rarely and not for the last months, even if someone else shared recently an article of mine here) and my posts were well received. \n\nSo I frankly these comments to be out of place: it is not like I am trying to sell anything to anyone in the post beside the idea that DSLs could be very useful in some contexts. Of course this is my opinion and I understand someone else could feel differently but depicting me as a spammer seems unfair to me.","timestamp":"2018-04-23T16:20:58+00:00","score":0},{"role":"answerer","user_id":"anon_9341591e56bd9778","comment_id":"dxu3lj5","kind":"comment","text":"Don't play stupid, you can also display ads for yourself on your page. Your problem is valid but the solution is never something that should be done in the first place, just add a database and some frontend. Looks like you primarily want to sell your stuff","timestamp":"2018-04-23T16:25:00+00:00","score":3},{"role":"OP","user_id":"anon_0aed612e871486dc","comment_id":"dxu43j4","kind":"comment","text":"I am not playing stupid.\n\nYou can believe that DSLs are a bad idea. Of course companies investing on them and scientific pubblications lead to a different opinion but I think it is not the point. \n\nI think you were not fair or educated and I explained why I think that.","timestamp":"2018-04-23T16:32:32+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_0aed612e871486dc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9341591e56bd9778","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dxtu1fb","thanks_reply_id":"dxtwkhk","post_score":0,"answer_score":8,"preferred_answer_is_top_level":false}} {"user_id":"anon_dc5fc201b968cfdd","answerer_user_id":"anon_a33783006626a45d","subreddit":"programming","timestamp":"2018-05-05T11:48:18+00:00","post_id":"8h71dt","question":"How to build a news app with React Native","preferred_answer":"It was a great read. Do you know any free news api other than newsapi. Org","full_conversation":[{"role":"OP","user_id":"anon_dc5fc201b968cfdd","comment_id":"8h71dt","kind":"post","text":"How to build a news app with React Native","timestamp":"2018-05-05T11:48:18+00:00","score":13},{"role":"answerer","user_id":"anon_a33783006626a45d","comment_id":"dyib5ge","kind":"comment","text":"It was a great read. Do you know any free news api other than newsapi. Org","timestamp":"2018-05-05T21:56:19+00:00","score":2},{"role":"OP","user_id":"anon_dc5fc201b968cfdd","comment_id":"dyibrlg","kind":"comment","text":"Hetly there thanks for reading, there are alot of free apis out there if you want an unlimited api http://www.contextualwebsearch.com is a great one.\nI hope this helps","timestamp":"2018-05-05T22:08:11+00:00","score":2},{"role":"answerer","user_id":"anon_a33783006626a45d","comment_id":"dyj1qwf","kind":"comment","text":"Thanks I was looking for this. I appreciate your help :)","timestamp":"2018-05-06T08:29:35+00:00","score":2},{"role":"OP","user_id":"anon_dc5fc201b968cfdd","comment_id":"dyj80i3","kind":"comment","text":"Happy I could help:)","timestamp":"2018-05-06T12:41:37+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_dc5fc201b968cfdd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a33783006626a45d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dyib5ge","thanks_reply_id":"dyibrlg","post_score":13,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_b65f0705bf15ff7b","answerer_user_id":"anon_b043bfd3b4472193","subreddit":"programming","timestamp":"2018-05-08T17:52:43+00:00","post_id":"8hyqyv","question":"What happens when running this small program?","preferred_answer":"> (on a different note I'm a bit surprised by the comments here simply assuming the worst. Consider changing your attitude and assume that people are curious instead of lazy as a first instinct)\n\nI don't really feel like changing may attitude. I posed a question.\n\nEither way I'd say 13 and 13. As far as I can see it's a trick application. Class C is really only used for extending and overriding. The functions defined both in C and overloaded in D never use the parameters given, but I'm not a scala developer, so I could be wrong.","full_conversation":[{"role":"OP","user_id":"anon_b65f0705bf15ff7b","comment_id":"8hyqyv","kind":"post","text":"What happens when running this small program?","timestamp":"2018-05-08T17:52:43+00:00","score":0},{"role":"answerer","user_id":"anon_b043bfd3b4472193","comment_id":"dynnodb","kind":"comment","text":"> (on a different note I'm a bit surprised by the comments here simply assuming the worst. Consider changing your attitude and assume that people are curious instead of lazy as a first instinct)\n\nI don't really feel like changing may attitude. I posed a question.\n\nEither way I'd say 13 and 13. As far as I can see it's a trick application. Class C is really only used for extending and overriding. The functions defined both in C and overloaded in D never use the parameters given, but I'm not a scala developer, so I could be wrong.","timestamp":"2018-05-08T19:05:33+00:00","score":3},{"role":"OP","user_id":"anon_b65f0705bf15ff7b","comment_id":"dynntk8","kind":"comment","text":"Thanks for answering, and just FYI the last bit was not directed at you but the other commenters ;)\n\nI disagree with your assessment though. No overriding is going on since the two methods m(x: C) and m(x: D) are different. Overriding only happens when the signatures match exactly.","timestamp":"2018-05-08T19:07:40+00:00","score":1},{"role":"answerer","user_id":"anon_b043bfd3b4472193","comment_id":"dynptrl","kind":"comment","text":"I'm not a scala developer, I'm guessing that's JVM or scala specific. In that case I'm not sure. I don't see the parameters being used in the functions, but they may be implicitly for all I know.\n\nAssuming that's not the case and the parameters aren't used, then it might be easy to assume that it'll output 7 13 and not 7 7, but since the second method being called is an extension of C, I don't know if it'll use the first method (since that's probably the first signature that might match due to being of the same-ish object type) or if the last method will be used (since the signature needs to be 100% exactly atom-precise the same and same-ish is not allowed).","timestamp":"2018-05-08T19:36:50+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b65f0705bf15ff7b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b043bfd3b4472193","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dynnodb","thanks_reply_id":"dynntk8","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_8856c8d14191d290","answerer_user_id":"anon_8c97a297cbd1ba84","subreddit":"programming","timestamp":"2018-05-10T13:05:47+00:00","post_id":"8iepzc","question":"Isn’t there a Reddit’er out there who can aid me in this question???","preferred_answer":"Your question is way to broad to get an exact answer. You're basically requesting a solution for your problem and it doesn't seem that you did your research on the subject.\n\nThere seemed to be an API for using Doodle programmatically, however it seems they've shut it down. See [https://gist.github.com/dmpatierno/1070917/1dce0bceba30807bb74bd6f40d0dce826855cc88](https://gist.github.com/dmpatierno/1070917/1dce0bceba30807bb74bd6f40d0dce826855cc88)\n\nYou could still do this, if you used plain HTTP requests periodically to determine if there was an update in the event. You should parse the HTML response, and issue new requests that accept the new date.\n\nI'd say that it wouldn't be easy to make this program. \n\nWhen you're asking something on StackOverflow, try to be the most specific on your questions.\n\nYour current question could be answered like this:\n\n>Can I somehow make a script, running on a server, that automatically votes for the new date? \n\nProbably, although we're not familiar with your skillset.\n\n>Is it even possible? \n\nYes.\n\nAlso, from the ask question sidebar:\n\n> How to Ask \n> \n>... \n> \n>Provide details. **Share your research.**","full_conversation":[{"role":"OP","user_id":"anon_8856c8d14191d290","comment_id":"8iepzc","kind":"post","text":"Isn’t there a Reddit’er out there who can aid me in this question???","timestamp":"2018-05-10T13:05:47+00:00","score":0},{"role":"answerer","user_id":"anon_8c97a297cbd1ba84","comment_id":"dyr4eha","kind":"comment","text":"Your question is way to broad to get an exact answer. You're basically requesting a solution for your problem and it doesn't seem that you did your research on the subject.\n\nThere seemed to be an API for using Doodle programmatically, however it seems they've shut it down. See [https://gist.github.com/dmpatierno/1070917/1dce0bceba30807bb74bd6f40d0dce826855cc88](https://gist.github.com/dmpatierno/1070917/1dce0bceba30807bb74bd6f40d0dce826855cc88)\n\nYou could still do this, if you used plain HTTP requests periodically to determine if there was an update in the event. You should parse the HTML response, and issue new requests that accept the new date.\n\nI'd say that it wouldn't be easy to make this program. \n\nWhen you're asking something on StackOverflow, try to be the most specific on your questions.\n\nYour current question could be answered like this:\n\n>Can I somehow make a script, running on a server, that automatically votes for the new date? \n\nProbably, although we're not familiar with your skillset.\n\n>Is it even possible? \n\nYes.\n\nAlso, from the ask question sidebar:\n\n> How to Ask \n> \n>... \n> \n>Provide details. **Share your research.**","timestamp":"2018-05-10T13:22:31+00:00","score":3},{"role":"OP","user_id":"anon_8856c8d14191d290","comment_id":"dyr507t","kind":"comment","text":"Thank you so much! I am starting from scratch with almost no programming skills. I wouldn’t mind paying for a solution, but don’t know who could help. Do you?","timestamp":"2018-05-10T13:33:29+00:00","score":1},{"role":"answerer","user_id":"anon_8c97a297cbd1ba84","comment_id":"dyr600g","kind":"comment","text":"Sorry, I don't think I can provide you with anything more than the guidelines in my previous comment. This is not in my area of expertise.","timestamp":"2018-05-10T13:51:00+00:00","score":2},{"role":"OP","user_id":"anon_8856c8d14191d290","comment_id":"dystgkp","kind":"comment","text":"Thank you very much!","timestamp":"2018-05-11T08:03:18+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_8856c8d14191d290","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8c97a297cbd1ba84","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dyr4eha","thanks_reply_id":"dyr507t","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_9fceebdba02c2d72","answerer_user_id":"anon_4faccb538304145d","subreddit":"programming","timestamp":"2018-05-10T18:20:18+00:00","post_id":"8ih0t8","question":"Why Scrum Is No Longer My First Choice","preferred_answer":"I know \"you're not doing scrum properly\" is a bit of a meme, but some of the things described here run contrary to both the real world practice I've seen and the Scrum.org certified training that I was sent on\n\n>We assign stories to individual people, and then those people break all their stories up into tasks, assign time to the tasks\n>\n>I see is poor estimations that match the time the person had available that sprint\n\nWe did not assign stories to people. We collectively estimated in story points (*not* time), and then during the sprint when we completed a task we would just pick a sensible one from the backlog\n\n>I almost always see teams in Scrum working longer hours than they were meant to\n>\n>\n>\n>By having lots of smaller deadlines\n\nIf work doesn't get done, it doesn't get done. I never did overtime at the company I'm talking about, nor saw anyone except management do it. We *estimated* in *story points*. We did **not** set deadlines, nor hold people to them. If we were consistently underperforming, we discussed why in the retro and review (often the reason was just an overconfident velocity)\n\n>Kanban eliminates the crunch entirely, and switches the focus to delivering quality. Each item follows a flow from proposal through to delivery and we can put in all the quality checks we like before an item is integrated into our application. We separate delivery from demos, and only demo what is ready and meets our quality expectations. Unexpected bugs mean we just consider that item not ready, and integrate/demo it at a later date.\n\nThis is exactly what we explicitly aimed to do with Scrum (and generally did)\n\n>There just isn’t always the time to test as we like\n\nThen the task is not done, and you shouldn't claim it is\n\n>Kanban says you can only do one thing at once\n>\n>\n\nWe were the same. One always puts the highest effort one realistically into unblocking a single story so as to avoid multitasking, but occasionally there really is no alternative but to move the task to \"blocked\" until an external actor gets back to you\n\n----\n\nIt's interesting to read about this, but the benefits and practices described of Kanban are often exactly what I've seen be done using Scrum. Our team was genuinely self-organising - I honestly forgot I had a manager most of the time (I only really interacted with him for one-to-ones and other admin). We gave realistic estimates, were autonomous on an individual and team level, didn't do overtime, and generally delivered quality software at around the velocity that we estimated. It sounds like the writer's idea of Scrum is the so called \"mini-waterfall\", including managers dictating reality to programmers about what they can get done in a timeframe, and telling programmers that they must say work is done when it isn't\n\nThis doesn't mean I 100% adhere to the Scrum guide; I have my criticisms of Scrum too. It seems that management culture is the more important factor","full_conversation":[{"role":"OP","user_id":"anon_9fceebdba02c2d72","comment_id":"8ih0t8","kind":"post","text":"Why Scrum Is No Longer My First Choice","timestamp":"2018-05-10T18:20:18+00:00","score":49},{"role":"answerer","user_id":"anon_4faccb538304145d","comment_id":"dysytsu","kind":"comment","text":"I know \"you're not doing scrum properly\" is a bit of a meme, but some of the things described here run contrary to both the real world practice I've seen and the Scrum.org certified training that I was sent on\n\n>We assign stories to individual people, and then those people break all their stories up into tasks, assign time to the tasks\n>\n>I see is poor estimations that match the time the person had available that sprint\n\nWe did not assign stories to people. We collectively estimated in story points (*not* time), and then during the sprint when we completed a task we would just pick a sensible one from the backlog\n\n>I almost always see teams in Scrum working longer hours than they were meant to\n>\n>\n>\n>By having lots of smaller deadlines\n\nIf work doesn't get done, it doesn't get done. I never did overtime at the company I'm talking about, nor saw anyone except management do it. We *estimated* in *story points*. We did **not** set deadlines, nor hold people to them. If we were consistently underperforming, we discussed why in the retro and review (often the reason was just an overconfident velocity)\n\n>Kanban eliminates the crunch entirely, and switches the focus to delivering quality. Each item follows a flow from proposal through to delivery and we can put in all the quality checks we like before an item is integrated into our application. We separate delivery from demos, and only demo what is ready and meets our quality expectations. Unexpected bugs mean we just consider that item not ready, and integrate/demo it at a later date.\n\nThis is exactly what we explicitly aimed to do with Scrum (and generally did)\n\n>There just isn’t always the time to test as we like\n\nThen the task is not done, and you shouldn't claim it is\n\n>Kanban says you can only do one thing at once\n>\n>\n\nWe were the same. One always puts the highest effort one realistically into unblocking a single story so as to avoid multitasking, but occasionally there really is no alternative but to move the task to \"blocked\" until an external actor gets back to you\n\n----\n\nIt's interesting to read about this, but the benefits and practices described of Kanban are often exactly what I've seen be done using Scrum. Our team was genuinely self-organising - I honestly forgot I had a manager most of the time (I only really interacted with him for one-to-ones and other admin). We gave realistic estimates, were autonomous on an individual and team level, didn't do overtime, and generally delivered quality software at around the velocity that we estimated. It sounds like the writer's idea of Scrum is the so called \"mini-waterfall\", including managers dictating reality to programmers about what they can get done in a timeframe, and telling programmers that they must say work is done when it isn't\n\nThis doesn't mean I 100% adhere to the Scrum guide; I have my criticisms of Scrum too. It seems that management culture is the more important factor","timestamp":"2018-05-11T11:20:05+00:00","score":5},{"role":"OP","user_id":"anon_9fceebdba02c2d72","comment_id":"dyszzac","kind":"comment","text":"Thank you, that was an interesting read, and certainly good to see how your team implement Scrum. It sounds very productive.\n\nI think it's worth me pointing out that there is a lot of autonomy in my environment, and it's certainly not management led. The issues I state are pitfalls that I have seen people (including myself) fall into with scrum.\n\nIn my experience I have seen people fall out of these bad habits with Kanban, but you are entirely correct, a refresher approach to scrum may well bring similar results.","timestamp":"2018-05-11T11:50:36+00:00","score":2},{"role":"answerer","user_id":"anon_4faccb538304145d","comment_id":"dyt3iqu","kind":"comment","text":"Yeah I feel I may have come across as too harsh, and dedicated to Scrum. It sounds like you have a good attitude to management and that's arguably more important than the process, so if Kanban is working for you and your employees then keep it up I guess :)","timestamp":"2018-05-11T13:08:03+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9fceebdba02c2d72","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4faccb538304145d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"dysytsu","thanks_reply_id":"dyszzac","post_score":49,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_5c700ed92d0254ff","answerer_user_id":"anon_c54a0382686aee3a","subreddit":"programming","timestamp":"2018-06-06T15:40:44+00:00","post_id":"8p1mp6","question":"Anyone here use Fossil as their source control? Any thoughts?","preferred_answer":"I am using fossil for all my project management needs. It is really a masterpiece both as a design and as an implementation. Simple, robust, fast, easy for self hosting repositories and maintenance free.\n\nHere is [my article](https://board.asm32.info/setting-up-fossil-on-nginx-web-server.187/) about how to install fossil together with nginx in order to get high performance source management system.","full_conversation":[{"role":"OP","user_id":"anon_5c700ed92d0254ff","comment_id":"8p1mp6","kind":"post","text":"Anyone here use Fossil as their source control? Any thoughts?","timestamp":"2018-06-06T15:40:44+00:00","score":6},{"role":"answerer","user_id":"anon_c54a0382686aee3a","comment_id":"e07tjq2","kind":"comment","text":"I am using fossil for all my project management needs. It is really a masterpiece both as a design and as an implementation. Simple, robust, fast, easy for self hosting repositories and maintenance free.\n\nHere is [my article](https://board.asm32.info/setting-up-fossil-on-nginx-web-server.187/) about how to install fossil together with nginx in order to get high performance source management system.","timestamp":"2018-06-06T16:45:43+00:00","score":3},{"role":"OP","user_id":"anon_5c700ed92d0254ff","comment_id":"e07ujyd","kind":"comment","text":"Thanks! Do you use fossil on your own or with others?","timestamp":"2018-06-06T16:59:42+00:00","score":2},{"role":"answerer","user_id":"anon_c54a0382686aee3a","comment_id":"e07v1hy","kind":"comment","text":"As a whole, fossil is more targeted for relatively compact teams where the developers communicate with each other. Although, maybe exists some good workflows for a bigger and loosely communicating teams, but I simply have no experience with such projects.","timestamp":"2018-06-06T17:06:35+00:00","score":3},{"role":"OP","user_id":"anon_5c700ed92d0254ff","comment_id":"e07v3w4","kind":"comment","text":"thank you","timestamp":"2018-06-06T17:07:32+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5c700ed92d0254ff","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c54a0382686aee3a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e07tjq2","thanks_reply_id":"e07ujyd","post_score":6,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_41794874cea58658","answerer_user_id":"anon_9dde35ab6b8a6913","subreddit":"programming","timestamp":"2018-06-11T17:36:13+00:00","post_id":"8qbb2h","question":"How to become a dramatically better programmer","preferred_answer":"Was expecting clickbait, but am very glad that I took the time to read this.","full_conversation":[{"role":"OP","user_id":"anon_41794874cea58658","comment_id":"8qbb2h","kind":"post","text":"How to become a dramatically better programmer","timestamp":"2018-06-11T17:36:13+00:00","score":1359},{"role":"answerer","user_id":"anon_9dde35ab6b8a6913","comment_id":"e0hys2y","kind":"comment","text":"Was expecting clickbait, but am very glad that I took the time to read this.","timestamp":"2018-06-11T19:05:05+00:00","score":70},{"role":"OP","user_id":"anon_41794874cea58658","comment_id":"e0iceq1","kind":"comment","text":"Thanks :)","timestamp":"2018-06-11T22:24:18+00:00","score":3},{"role":"answerer","user_id":"anon_9dde35ab6b8a6913","comment_id":"e0iw92k","kind":"comment","text":"Thank you!","timestamp":"2018-06-12T04:00:53+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_41794874cea58658","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9dde35ab6b8a6913","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e0hys2y","thanks_reply_id":"e0iceq1","post_score":1359,"answer_score":70,"preferred_answer_is_top_level":true}} {"user_id":"anon_67430eb4eb770264","answerer_user_id":"anon_8210e54c56a2eac5","subreddit":"programming","timestamp":"2018-06-21T23:10:16+00:00","post_id":"8swhdo","question":"How to read and write to files using python","preferred_answer":"Just a little feedback on some stuff I noticed\n\nIf you use the keyword \"with\", the file stream will automatically be closed without having to explicitly call file.close(), and this is generally good practice\n\n with open(filename, 'r') as input_handle:\n #Do things with file stream\n\nAlso, the str() around the input is unnecessary as the input() method automatically converts the input to a string and strips newline character.","full_conversation":[{"role":"OP","user_id":"anon_67430eb4eb770264","comment_id":"8swhdo","kind":"post","text":"How to read and write to files using python","timestamp":"2018-06-21T23:10:16+00:00","score":0},{"role":"answerer","user_id":"anon_8210e54c56a2eac5","comment_id":"e12vb5l","kind":"comment","text":"Just a little feedback on some stuff I noticed\n\nIf you use the keyword \"with\", the file stream will automatically be closed without having to explicitly call file.close(), and this is generally good practice\n\n with open(filename, 'r') as input_handle:\n #Do things with file stream\n\nAlso, the str() around the input is unnecessary as the input() method automatically converts the input to a string and strips newline character.","timestamp":"2018-06-21T23:40:35+00:00","score":1},{"role":"OP","user_id":"anon_67430eb4eb770264","comment_id":"e12y4xm","kind":"comment","text":"Thank you so much for the valuable feedback. I will consider using the above next time. Cheers","timestamp":"2018-06-22T00:28:44+00:00","score":2},{"role":"answerer","user_id":"anon_8210e54c56a2eac5","comment_id":"e131f6o","kind":"comment","text":"No problem, keep up the videos, love to see others trying to help beginners with programming","timestamp":"2018-06-22T01:25:30+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_67430eb4eb770264","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8210e54c56a2eac5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e12vb5l","thanks_reply_id":"e12y4xm","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_e307a71757f7b658","answerer_user_id":"anon_acfa2b06f2b94760","subreddit":"programming","timestamp":"2018-06-23T10:52:56+00:00","post_id":"8t96q8","question":"I've gathered more than 2000 free practice tests for tech exams and certifications. What do you think?","preferred_answer":"This is very cool. I really love the format of your website. Could you tell me if its buiilt on a framework?","full_conversation":[{"role":"OP","user_id":"anon_e307a71757f7b658","comment_id":"8t96q8","kind":"post","text":"I've gathered more than 2000 free practice tests for tech exams and certifications. What do you think?","timestamp":"2018-06-23T10:52:56+00:00","score":1127},{"role":"answerer","user_id":"anon_acfa2b06f2b94760","comment_id":"e15vr4l","kind":"comment","text":"This is very cool. I really love the format of your website. Could you tell me if its buiilt on a framework?","timestamp":"2018-06-23T14:21:48+00:00","score":-9},{"role":"OP","user_id":"anon_e307a71757f7b658","comment_id":"e168os2","kind":"comment","text":"Thx! It's custom built using PHP&MySQL","timestamp":"2018-06-23T18:15:29+00:00","score":0},{"role":"answerer","user_id":"anon_acfa2b06f2b94760","comment_id":"e169dao","kind":"comment","text":"Any chance youd open source it? I really love what you did :)","timestamp":"2018-06-23T18:27:33+00:00","score":-1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e307a71757f7b658","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_acfa2b06f2b94760","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e15vr4l","thanks_reply_id":"e168os2","post_score":1127,"answer_score":-9,"preferred_answer_is_top_level":true}} {"user_id":"anon_d6b32aeb7fa465e8","answerer_user_id":"anon_e360c032eaaef62a","subreddit":"programming","timestamp":"2018-06-27T20:31:38+00:00","post_id":"8ud35r","question":"How we use Clojure at King to write a game engine editor - King Tech Blog","preferred_answer":"Thanks for repeating what I said.","full_conversation":[{"role":"OP","user_id":"anon_d6b32aeb7fa465e8","comment_id":"8ud35r","kind":"post","text":"How we use Clojure at King to write a game engine editor - King Tech Blog","timestamp":"2018-06-27T20:31:38+00:00","score":13},{"role":"answerer","user_id":"anon_e360c032eaaef62a","comment_id":"e1gfz86","kind":"comment","text":"Thanks for repeating what I said.","timestamp":"2018-06-28T19:22:52+00:00","score":0},{"role":"OP","user_id":"anon_d6b32aeb7fa465e8","comment_id":"e1gham7","kind":"comment","text":"Thanks for repeating what the article said.","timestamp":"2018-06-28T19:40:55+00:00","score":1},{"role":"answerer","user_id":"anon_e360c032eaaef62a","comment_id":"e1gvw0w","kind":"comment","text":"No, the article actually believes there is a worthy return on this.","timestamp":"2018-06-28T23:22:11+00:00","score":1},{"role":"OP","user_id":"anon_d6b32aeb7fa465e8","comment_id":"e1gx0rk","kind":"comment","text":"You should really work on your reading comprehension.","timestamp":"2018-06-28T23:41:47+00:00","score":2},{"role":"answerer","user_id":"anon_e360c032eaaef62a","comment_id":"e1gyq4j","kind":"comment","text":"Using Clojure for game development is not a clear and worthy return.","timestamp":"2018-06-29T00:11:39+00:00","score":1},{"role":"OP","user_id":"anon_d6b32aeb7fa465e8","comment_id":"e1gz6cs","kind":"comment","text":"People actually doing game development say different.","timestamp":"2018-06-29T00:19:44+00:00","score":3},{"role":"answerer","user_id":"anon_e360c032eaaef62a","comment_id":"e1gzjni","kind":"comment","text":"Right... who's and what games again?","timestamp":"2018-06-29T00:26:22+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_d6b32aeb7fa465e8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e360c032eaaef62a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e1gfz86","thanks_reply_id":"e1gham7","post_score":13,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_eba55a24ffdafc68","answerer_user_id":"anon_f44a36f62fcadb79","subreddit":"programming","timestamp":"2018-07-05T15:24:48+00:00","post_id":"8wbauy","question":"Can MongoDB really deliver ACID?","preferred_answer":"Can you not double-post your spam?","full_conversation":[{"role":"OP","user_id":"anon_eba55a24ffdafc68","comment_id":"8wbauy","kind":"post","text":"Can MongoDB really deliver ACID?","timestamp":"2018-07-05T15:24:48+00:00","score":0},{"role":"answerer","user_id":"anon_f44a36f62fcadb79","comment_id":"e1u3qsi","kind":"comment","text":"Can you not double-post your spam?","timestamp":"2018-07-05T15:25:34+00:00","score":4},{"role":"OP","user_id":"anon_eba55a24ffdafc68","comment_id":"e1u3th7","kind":"comment","text":"Thanks, hopefully this reply doesn't double post also :)","timestamp":"2018-07-05T15:26:40+00:00","score":-5},{"role":"answerer","user_id":"anon_f44a36f62fcadb79","comment_id":"e1u3yju","kind":"comment","text":"Can you not single-post your spam? It's not welcome.","timestamp":"2018-07-05T15:28:44+00:00","score":6}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_eba55a24ffdafc68","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f44a36f62fcadb79","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e1u3qsi","thanks_reply_id":"e1u3th7","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_f3b5a74c22ae89e0","answerer_user_id":"anon_e720b466b3bcd2ef","subreddit":"programming","timestamp":"2018-07-13T05:10:54+00:00","post_id":"8yh6n7","question":"Microsoft’s new product appears positioned to directly compete with Slack’s free offering?","preferred_answer":"I can’t see how anyone that uses it properly can like it. It is worse than Slack in every way.\nI use it on Mac and:\n\n* It crashes regularly, at least daily\n* It is a resource hog. Will use at least 0.5G ram and often a significant chunk of your processor.\n* It is dirt slow when threads start to get long. Long as in 100 messages.\n* It collapses threads at inconvenient times, and to go back to a convo you often have to re-expand and scroll through it all again.\n* meeting mode regularly causes freezes.\n* enabling video sometimes never releases the camera. Quitting teams doesn’t work to resolve this (you have to manually kill a hidden helper process I think)\n* keyboard shortcuts doesn’t always work. For example if your search bar or chat field is highlighted - which happens automatically when you tab in. So you have to click in free space before you can use the shortcuts\n\nBut my biggest performance gripe is just that it’s slow. Every click you make in the UI will have s small delay 0.1-1s. Nothing is instantaneous. It sounds silly but it is incredibly frustrating to use it.\n\nThese are just my remarks on why performance is awful. Then there’s a really long list of why the features are worse as well.\n\nStick with slack. Or anything else. Slack, Hipchat keybase, irc, anything but the turd that is Teams.","full_conversation":[{"role":"OP","user_id":"anon_f3b5a74c22ae89e0","comment_id":"8yh6n7","kind":"post","text":"Microsoft’s new product appears positioned to directly compete with Slack’s free offering?","timestamp":"2018-07-13T05:10:54+00:00","score":7},{"role":"answerer","user_id":"anon_e720b466b3bcd2ef","comment_id":"e2b2787","kind":"comment","text":"I can’t see how anyone that uses it properly can like it. It is worse than Slack in every way.\nI use it on Mac and:\n\n* It crashes regularly, at least daily\n* It is a resource hog. Will use at least 0.5G ram and often a significant chunk of your processor.\n* It is dirt slow when threads start to get long. Long as in 100 messages.\n* It collapses threads at inconvenient times, and to go back to a convo you often have to re-expand and scroll through it all again.\n* meeting mode regularly causes freezes.\n* enabling video sometimes never releases the camera. Quitting teams doesn’t work to resolve this (you have to manually kill a hidden helper process I think)\n* keyboard shortcuts doesn’t always work. For example if your search bar or chat field is highlighted - which happens automatically when you tab in. So you have to click in free space before you can use the shortcuts\n\nBut my biggest performance gripe is just that it’s slow. Every click you make in the UI will have s small delay 0.1-1s. Nothing is instantaneous. It sounds silly but it is incredibly frustrating to use it.\n\nThese are just my remarks on why performance is awful. Then there’s a really long list of why the features are worse as well.\n\nStick with slack. Or anything else. Slack, Hipchat keybase, irc, anything but the turd that is Teams.","timestamp":"2018-07-13T08:09:42+00:00","score":14},{"role":"OP","user_id":"anon_f3b5a74c22ae89e0","comment_id":"e2b626z","kind":"comment","text":"I am getting a clear idea of the things now. Thanks for the detailed inputs. I see performance being a big issue here. Might sell well only because of the brand name but hmmm, I see it.","timestamp":"2018-07-13T10:19:55+00:00","score":3},{"role":"answerer","user_id":"anon_e720b466b3bcd2ef","comment_id":"e2b63mm","kind":"comment","text":"Yeah people buy it because it comes with Office365 integration.","timestamp":"2018-07-13T10:21:13+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f3b5a74c22ae89e0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e720b466b3bcd2ef","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e2b2787","thanks_reply_id":"e2b626z","post_score":7,"answer_score":14,"preferred_answer_is_top_level":false}} {"user_id":"anon_8522182aebc8d10e","answerer_user_id":"anon_545cfd2e07e5e8ad","subreddit":"programming","timestamp":"2018-07-19T14:49:19+00:00","post_id":"906hqe","question":"Gamifying AWS DevOps - Should I revive this project?","preferred_answer":"Definitely. Practical? No, but it is awesome. Add in some tron lines and we can finally have the matrix nuromancer promised us.","full_conversation":[{"role":"OP","user_id":"anon_8522182aebc8d10e","comment_id":"906hqe","kind":"post","text":"Gamifying AWS DevOps - Should I revive this project?","timestamp":"2018-07-19T14:49:19+00:00","score":91},{"role":"answerer","user_id":"anon_545cfd2e07e5e8ad","comment_id":"e2oh2b7","kind":"comment","text":"Definitely. Practical? No, but it is awesome. Add in some tron lines and we can finally have the matrix nuromancer promised us.","timestamp":"2018-07-19T18:25:31+00:00","score":7},{"role":"OP","user_id":"anon_8522182aebc8d10e","comment_id":"e2oh4vb","kind":"comment","text":"Thanks! How about a BFG for terminating instances?! 😂","timestamp":"2018-07-19T18:26:31+00:00","score":7},{"role":"answerer","user_id":"anon_545cfd2e07e5e8ad","comment_id":"e2oxx1i","kind":"comment","text":"Maybe some NPCs to attack you if you get your password wrong, etc., requiring you to fend them off to get back to the screen.","timestamp":"2018-07-19T22:28:23+00:00","score":4},{"role":"OP","user_id":"anon_8522182aebc8d10e","comment_id":"e2oxz79","kind":"comment","text":"I feel like that should be on every site as a new CAPTCHA mechanism... 🤔","timestamp":"2018-07-19T22:29:18+00:00","score":4},{"role":"answerer","user_id":"anon_545cfd2e07e5e8ad","comment_id":"e2qklo0","kind":"comment","text":"I don't care how effective it is, it sounds fun.","timestamp":"2018-07-20T18:07:37+00:00","score":3}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_8522182aebc8d10e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_545cfd2e07e5e8ad","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e2oh2b7","thanks_reply_id":"e2oh4vb","post_score":91,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_3eb43ce8f5cc3ba1","answerer_user_id":"anon_c03c94a5e9bb9004","subreddit":"programming","timestamp":"2018-07-24T13:51:07+00:00","post_id":"91hjxk","question":"Just finished my first nodejs website - a tool for personalizing and filtering your push notification feed on desktop and mobile. what do you think?","preferred_answer":"Oh, that explains why people are by default on the \"pro\" plan after they register. \nAlso, i am not sure if it is intentional but you can basically get the E-Mail of every registered user by simply posting a id= to the endpoint https://pushm.io/api/feed/get. \nThe first id is 54 and goes up to 70 (at least until now).\nAt least the passwords are hashed. But there should be no need to return them to the user.","full_conversation":[{"role":"OP","user_id":"anon_3eb43ce8f5cc3ba1","comment_id":"91hjxk","kind":"post","text":"Just finished my first nodejs website - a tool for personalizing and filtering your push notification feed on desktop and mobile. what do you think?","timestamp":"2018-07-24T13:51:07+00:00","score":17},{"role":"answerer","user_id":"anon_c03c94a5e9bb9004","comment_id":"e2ygap0","kind":"comment","text":"Oh, that explains why people are by default on the \"pro\" plan after they register. \nAlso, i am not sure if it is intentional but you can basically get the E-Mail of every registered user by simply posting a id= to the endpoint https://pushm.io/api/feed/get. \nThe first id is 54 and goes up to 70 (at least until now).\nAt least the passwords are hashed. But there should be no need to return them to the user.","timestamp":"2018-07-24T17:40:55+00:00","score":6},{"role":"OP","user_id":"anon_3eb43ce8f5cc3ba1","comment_id":"e2yoeml","kind":"comment","text":"oops thanks for the info! so i basically just strip the unnecessary fieldnames off my query?","timestamp":"2018-07-24T19:30:00+00:00","score":1},{"role":"answerer","user_id":"anon_c03c94a5e9bb9004","comment_id":"e30jhlt","kind":"comment","text":"Well i would usually recommend to post some message like \"access denied\" if you query some data which is not meant to be seen by others. I am not sure if you have a use case where a user should be able to see all other users email, password and last login etc. etc.\n\nBut yeah, if you are just being lazy you could strip of all \"critical\" data from your query.","timestamp":"2018-07-25T16:28:57+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3eb43ce8f5cc3ba1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c03c94a5e9bb9004","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e2ygap0","thanks_reply_id":"e2yoeml","post_score":17,"answer_score":6,"preferred_answer_is_top_level":false}} {"user_id":"anon_1f163c99c8222ae2","answerer_user_id":"anon_c7b54bc5540cbdbd","subreddit":"programming","timestamp":"2018-07-25T15:16:08+00:00","post_id":"91sppn","question":"What I learned after three internships at Microsoft.","preferred_answer":"While I appreciate that you've done good things at MS, I strongly advise my students to branch out for their internships, and don't take two at a single company (or, in many cases, a similar-sized company). Maybe you would love a small startup, or maybe you'd like to see what a medium sized company that isn't front-page tech news every day is all about. But, you don't have that experience, after three internships. I'm glad you've had \"...one of the best experiences in [your] life,\" but you must admit that you don't really have much to compare it to (unless you've done other internships that you didn't mention in the article).\n\nIt is interesting that you have the quote,\n\n> You don’t realize how diverse Microsoft is, until you go to other companies and find out. - Chris Capossela\n\nyet you haven't been to other companies yourself to find out. \n\nAll of that said -- if it works for you and you're happy, that's fantastic. I wouldn't have suggested that path, but the same path certainly isn't necessary for everyone.","full_conversation":[{"role":"OP","user_id":"anon_1f163c99c8222ae2","comment_id":"91sppn","kind":"post","text":"What I learned after three internships at Microsoft.","timestamp":"2018-07-25T15:16:08+00:00","score":46},{"role":"answerer","user_id":"anon_c7b54bc5540cbdbd","comment_id":"e313kdh","kind":"comment","text":"While I appreciate that you've done good things at MS, I strongly advise my students to branch out for their internships, and don't take two at a single company (or, in many cases, a similar-sized company). Maybe you would love a small startup, or maybe you'd like to see what a medium sized company that isn't front-page tech news every day is all about. But, you don't have that experience, after three internships. I'm glad you've had \"...one of the best experiences in [your] life,\" but you must admit that you don't really have much to compare it to (unless you've done other internships that you didn't mention in the article).\n\nIt is interesting that you have the quote,\n\n> You don’t realize how diverse Microsoft is, until you go to other companies and find out. - Chris Capossela\n\nyet you haven't been to other companies yourself to find out. \n\nAll of that said -- if it works for you and you're happy, that's fantastic. I wouldn't have suggested that path, but the same path certainly isn't necessary for everyone.","timestamp":"2018-07-25T20:55:05+00:00","score":24},{"role":"OP","user_id":"anon_1f163c99c8222ae2","comment_id":"e314hct","kind":"comment","text":"Hey! Thanks for your thoughts! I've actually built my own company and worked on two startups before Microsoft. I started working as a dev in highschool (as soon as I turned 18) and I've earned from really bad salaries with lots of equity, and worked with public companies before MSFT. I'm 23 now, so I'm kind of old for the average new grad. But I definitely agree with having more experience as an intern.","timestamp":"2018-07-25T21:08:56+00:00","score":13},{"role":"answerer","user_id":"anon_c7b54bc5540cbdbd","comment_id":"e318r1f","kind":"comment","text":"Ah, there you go. It sounds like you’ve had plenty of cool experiences!","timestamp":"2018-07-25T22:10:23+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1f163c99c8222ae2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c7b54bc5540cbdbd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e313kdh","thanks_reply_id":"e314hct","post_score":46,"answer_score":24,"preferred_answer_is_top_level":true}} {"user_id":"anon_34fd94bf41f32fd9","answerer_user_id":"anon_cc9c456d1e18700b","subreddit":"programming","timestamp":"2018-07-31T15:18:30+00:00","post_id":"93fcwg","question":"Should C Programmers learn C++, Go or Rust?","preferred_answer":"> Both Go and Rust decided to special case their `map` implementations. \n> […]\n> Rust meanwhile notes that you can’t safely write a performant data structure in Rust […]\n\nThat is not true, Rust’s [HashMap](https://doc.rust-lang.org/std/collections/struct.HashMap.html) **is** implemented entirely in Rust with no special-casing. (EDIT: [here](https://doc.rust-lang.org/unstable-book/language-features/lang-items.html#list-of-all-language-items) one can find the list of all items that Rust compiler special-cases)\n\nAnd you can write a fast low-level data structures safely in Rust – that’s what the Rust std library does and that’s what unsafe is for – but you need to ensure it’s implemented ‘safely’ yourself, because the compiler cannot verify your pointer arithmetic, or that you’ll never read uninitialized memory pre-allocated for your vector data. They could equally (in)validly state that ’you can’t safely write a performant data structure in C++’ (but there the documentation does not warn you about it).","full_conversation":[{"role":"OP","user_id":"anon_34fd94bf41f32fd9","comment_id":"93fcwg","kind":"post","text":"Should C Programmers learn C++, Go or Rust?","timestamp":"2018-07-31T15:18:30+00:00","score":27},{"role":"answerer","user_id":"anon_cc9c456d1e18700b","comment_id":"e3cyjk2","kind":"comment","text":"> Both Go and Rust decided to special case their `map` implementations. \n> […]\n> Rust meanwhile notes that you can’t safely write a performant data structure in Rust […]\n\nThat is not true, Rust’s [HashMap](https://doc.rust-lang.org/std/collections/struct.HashMap.html) **is** implemented entirely in Rust with no special-casing. (EDIT: [here](https://doc.rust-lang.org/unstable-book/language-features/lang-items.html#list-of-all-language-items) one can find the list of all items that Rust compiler special-cases)\n\nAnd you can write a fast low-level data structures safely in Rust – that’s what the Rust std library does and that’s what unsafe is for – but you need to ensure it’s implemented ‘safely’ yourself, because the compiler cannot verify your pointer arithmetic, or that you’ll never read uninitialized memory pre-allocated for your vector data. They could equally (in)validly state that ’you can’t safely write a performant data structure in C++’ (but there the documentation does not warn you about it).","timestamp":"2018-07-31T16:50:29+00:00","score":60},{"role":"OP","user_id":"anon_34fd94bf41f32fd9","comment_id":"e3d75m0","kind":"comment","text":"Hi Silmeth, thanks for noting this and I indeed got it wrong. I have updated the wording to now state it is still in Rust, but not in safe mode.","timestamp":"2018-07-31T18:47:53+00:00","score":5},{"role":"answerer","user_id":"anon_cc9c456d1e18700b","comment_id":"e3d9hkk","kind":"comment","text":"Thanks for the edit, one more thing:\n\n> You can however of course make one that works just as well but does not have the syntactic sugar of a native `map[]`.\n\nI don’t know go too well, but I believe this to also not be true. For one, because of the lack of generics, any implementation in go itself will not be type-safe (that’s not just syntactic sugar!).\n\nAlso, I’d suspect (but as I don’t really know go, I might be mistaken here) that go does not gives you enough low level power over memory to implement ‘performant data structures’ – has anyone really implemented a hash map in pure go that is as performant as the standard library one? Or a vector / slice? What about boxing primitives into `interface{}`, and casting `interface{}` of the contained objects back into their original types?","timestamp":"2018-07-31T19:20:09+00:00","score":10}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_34fd94bf41f32fd9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cc9c456d1e18700b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e3cyjk2","thanks_reply_id":"e3d75m0","post_score":27,"answer_score":60,"preferred_answer_is_top_level":true}} {"user_id":"anon_dca848bdebf0f272","answerer_user_id":"anon_2a664b49346bfd8d","subreddit":"programming","timestamp":"2018-08-01T13:35:28+00:00","post_id":"93p04z","question":"HELP! PHP vs ??? Need suggestion on object framework other than PHP (and why you think so) thx!","preferred_answer":"Use a serious language intended for professional work\n\n - C# or F#\n - java (despite how much I hate it, it's a serious language with a serious platform)\n - Kotlin (runs on JVM same platform as java)\n - Python (though I'd prefer static languages)\n - TypeScript (runs on nodejs.... debatable)\n - laaaarge list of other, non-idiotic languages (means anything that is not php)\n\nphp people are clueless retards who don't know shit about anything. When people actually learn anything about programming, they stop using php forever.","full_conversation":[{"role":"OP","user_id":"anon_dca848bdebf0f272","comment_id":"93p04z","kind":"post","text":"HELP! PHP vs ??? Need suggestion on object framework other than PHP (and why you think so) thx!","timestamp":"2018-08-01T13:35:28+00:00","score":0},{"role":"answerer","user_id":"anon_2a664b49346bfd8d","comment_id":"e3evw6k","kind":"comment","text":"Use a serious language intended for professional work\n\n - C# or F#\n - java (despite how much I hate it, it's a serious language with a serious platform)\n - Kotlin (runs on JVM same platform as java)\n - Python (though I'd prefer static languages)\n - TypeScript (runs on nodejs.... debatable)\n - laaaarge list of other, non-idiotic languages (means anything that is not php)\n\nphp people are clueless retards who don't know shit about anything. When people actually learn anything about programming, they stop using php forever.","timestamp":"2018-08-01T14:22:29+00:00","score":-4},{"role":"OP","user_id":"anon_dca848bdebf0f272","comment_id":"e3ew1p4","kind":"comment","text":"Thanks for the response... that is what I hear \"php - retards\" etc... \n\nI welcome other suggestions and comments like this one. Maybe there is a PHP guru out there that can say otherwise?","timestamp":"2018-08-01T14:24:46+00:00","score":-3},{"role":"answerer","user_id":"anon_2a664b49346bfd8d","comment_id":"e3ewv5g","kind":"comment","text":"of course php people are going to say \n> \"hey, we're not retards, php is okay\".... \n\nthe question is \n\n> \"how many other languages do you know, besides php, and can name at least ONE (1) advantage of php against any of these?\n\nUsually php people only know php and a little bit of javascript, but have no exposure to serious programming languages. In contrast, people with extensive knowledge in many languages can easily recognize the enormous deficiencies of php.","timestamp":"2018-08-01T14:36:49+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_dca848bdebf0f272","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2a664b49346bfd8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e3evw6k","thanks_reply_id":"e3ew1p4","post_score":0,"answer_score":-4,"preferred_answer_is_top_level":false}} {"user_id":"anon_f79fe6c5dd8b31ff","answerer_user_id":"anon_b9942eaa296105fd","subreddit":"programming","timestamp":"2018-08-05T11:21:55+00:00","post_id":"94r6w6","question":"How I slashed a SQL query runtime from 380 hours to 12 with two Unix commands","preferred_answer":"ok, cheers\n\ndrop the two separate keys on project\\_commits and create a combined primary or unique key. that should give you an indexed query\n\n alter table project_commits drop key commit_id;\n alter table project_commits drop key project_id;\n alter table project_commits add { primary | unique } key (commit_id, project_id);","full_conversation":[{"role":"OP","user_id":"anon_f79fe6c5dd8b31ff","comment_id":"94r6w6","kind":"post","text":"How I slashed a SQL query runtime from 380 hours to 12 with two Unix commands","timestamp":"2018-08-05T11:21:55+00:00","score":1121},{"role":"answerer","user_id":"anon_b9942eaa296105fd","comment_id":"e3osp5k","kind":"comment","text":"ok, cheers\n\ndrop the two separate keys on project\\_commits and create a combined primary or unique key. that should give you an indexed query\n\n alter table project_commits drop key commit_id;\n alter table project_commits drop key project_id;\n alter table project_commits add { primary | unique } key (commit_id, project_id);","timestamp":"2018-08-06T06:22:29+00:00","score":11},{"role":"OP","user_id":"anon_f79fe6c5dd8b31ff","comment_id":"e3ovqrd","kind":"comment","text":"Thanks. You asked the right questions and sound very confident in your answer, so I'm considering trying that. Can you please explain why the combined key would help, given that I'm joining only on `commit_id`?","timestamp":"2018-08-06T07:57:10+00:00","score":4},{"role":"answerer","user_id":"anon_b9942eaa296105fd","comment_id":"e3owmda","kind":"comment","text":"i'm no expert so if this is production data and you don't have a test db to work with then i would suggest not doing it tbh. you should really get a copy of it to play with first. this can get particularly frustrating if you have constraints that prevent the removal of certain keys (although i don't see any evidence of that)\n\nstandard practice for through tables is to create a primary key out of the two main ids because that is precisely what they are, particularly in this example where the table has no other columns at all\n\nas for why this would help, i believe (i am no expert though :)) that indices can only be used when uniqueness can be guaranteed, otherwise the potentially large number of duplicates would render the index ineffective or even harmful. in your case, a simple key does not guarantee that in this situation. the commit\\_id column either needs to be unique itself or it needs to be part of a unique key with other columns. since this is a through table, the commit\\_id column can't be unique in itself, so a unique key is the next answer. a primary key also guarantees uniqueness (for obvious reasons)\n\nrandom text from the internet describing this better:\n\n Since indexes are only used to speed up the searching for a matching field within the records, it stands to reason that indexing fields used only for output would be simply a waste of disk space and processing time when doing an insert or delete operation, and thus should be avoided. Also given the nature of a binary search, the cardinality or uniqueness of the data is important. Indexing on a field with a cardinality of 2 would split the data in half, whereas a cardinality of 1,000 would return approximately 1,000 records. With such a low cardinality the effectiveness is reduced to a linear sort, and the query optimizer will avoid using the index if the cardinality is less than 30% of the record number, effectively making the index a waste of space.\n\ntheoretically mysql could be smart by pre-analysing your data and selectively using an index, but my guess is that mysql is just simplistic and isn't bothering with the index cause it can't be sure the data is unique\n\nif it helps, i have already tested locally by trying to different combinations of keys and the results are consistent with what i've said above\n\nsummary: the id you are joining on needs to be unique. it's not presently, but a unique or primary key will make it so","timestamp":"2018-08-06T08:27:19+00:00","score":4},{"role":"OP","user_id":"anon_f79fe6c5dd8b31ff","comment_id":"e3oyb06","kind":"comment","text":"I'm doing OLAP as a single user on a [publicly available read-only snapshot of GitHub meta data](http://ghtorrent.org/downloads.html). Consequently, breaking things in production is not a concern. In any case I was not considering removing the two indixes, just adding the new one.","timestamp":"2018-08-06T09:27:35+00:00","score":2},{"role":"answerer","user_id":"anon_b9942eaa296105fd","comment_id":"e3qi2jk","kind":"comment","text":"ok, well i'd try it then. leaving the keys will cause no harm, and adding the combined primary key should likewise only help\n\nthanks for the post too btw :) it was an interesting discussion","timestamp":"2018-08-07T01:05:18+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_f79fe6c5dd8b31ff","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b9942eaa296105fd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e3osp5k","thanks_reply_id":"e3ovqrd","post_score":1121,"answer_score":11,"preferred_answer_is_top_level":false}} {"user_id":"anon_9f36362376c614d2","answerer_user_id":"anon_bddb46ce0c4218f0","subreddit":"programming","timestamp":"2018-08-21T11:39:12+00:00","post_id":"992g5e","question":"What do I need to know or learn, programming wise, to build such a webpage?","preferred_answer":"That skillset looks good, should be doable.\n\nTo start with the backend side, I'd recommend something more lightweight than Django though, it's a very good framework but it's huge and complex. My go-to is [bottle.py](http://bottlepy.org/docs/dev/) which is easy to set up, but there are others of course.\n\nUnless you know that you need to scale from the get go then you can use [SQLite](https://www.sqlite.org/) for the database (which you can then upgrade if you need to, of course) as it is dead easy to install.","full_conversation":[{"role":"OP","user_id":"anon_9f36362376c614d2","comment_id":"992g5e","kind":"post","text":"What do I need to know or learn, programming wise, to build such a webpage?","timestamp":"2018-08-21T11:39:12+00:00","score":0},{"role":"answerer","user_id":"anon_bddb46ce0c4218f0","comment_id":"e4keicn","kind":"comment","text":"That skillset looks good, should be doable.\n\nTo start with the backend side, I'd recommend something more lightweight than Django though, it's a very good framework but it's huge and complex. My go-to is [bottle.py](http://bottlepy.org/docs/dev/) which is easy to set up, but there are others of course.\n\nUnless you know that you need to scale from the get go then you can use [SQLite](https://www.sqlite.org/) for the database (which you can then upgrade if you need to, of course) as it is dead easy to install.","timestamp":"2018-08-21T12:05:39+00:00","score":2},{"role":"OP","user_id":"anon_9f36362376c614d2","comment_id":"e4keyfy","kind":"comment","text":"Thank you, I’ve never heard of bottle. Probably two most popular are Django and Flask. What do you think about Flask?","timestamp":"2018-08-21T12:18:05+00:00","score":1},{"role":"answerer","user_id":"anon_bddb46ce0c4218f0","comment_id":"e4kfiga","kind":"comment","text":"Flask is more popular, yes, and it's small but really fully featured. It's a nice compromise between heavy duty frameworks like Django and smaller ones like Bottle.\n\nUsagewise Bottle and Flask are very similar, the reason I gravitate towards Bottle is because it's simpler to set up and get going (not that Flask is _that_ much more difficult). \n\nThen Flask is designed to work with Jinja, a templating engine, which is in my opinion a bit overkill for smaller projects, the default templating engine built into Bottle is a simple job, but more often than not it gets the things done easier.\n\nYou can't go wrong with any of these really. But you might be right going with Flask, you probably can find more examples for it and it's easier to Google.","timestamp":"2018-08-21T12:34:08+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9f36362376c614d2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bddb46ce0c4218f0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e4keicn","thanks_reply_id":"e4keyfy","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_ffa2d11a48d835df","answerer_user_id":"anon_6b9a06b0f0fe7495","subreddit":"programming","timestamp":"2018-08-26T08:21:40+00:00","post_id":"9ae3wt","question":"From what game is the music playing at 29:00?","preferred_answer":"If you like the music, It's World Beyond - One Last Chance.\n\nhttps://youtu.be/P33NOCJ66hc\n\nBut I'm not able to find the game of which this soundtrack is.","full_conversation":[{"role":"OP","user_id":"anon_ffa2d11a48d835df","comment_id":"9ae3wt","kind":"post","text":"From what game is the music playing at 29:00?","timestamp":"2018-08-26T08:21:40+00:00","score":0},{"role":"answerer","user_id":"anon_6b9a06b0f0fe7495","comment_id":"e4urjhg","kind":"comment","text":"If you like the music, It's World Beyond - One Last Chance.\n\nhttps://youtu.be/P33NOCJ66hc\n\nBut I'm not able to find the game of which this soundtrack is.","timestamp":"2018-08-26T08:34:52+00:00","score":2},{"role":"OP","user_id":"anon_ffa2d11a48d835df","comment_id":"e4urv78","kind":"comment","text":"Ahhh amazing! Thanks!\n\nForget the name, I was looking for the soundtrack, the author of the video didn't put the playlist in the description.\n\n:D","timestamp":"2018-08-26T08:47:36+00:00","score":0},{"role":"answerer","user_id":"anon_6b9a06b0f0fe7495","comment_id":"e4uryf9","kind":"comment","text":"Great then. :D Glad I could help. :)","timestamp":"2018-08-26T08:51:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ffa2d11a48d835df","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6b9a06b0f0fe7495","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e4urjhg","thanks_reply_id":"e4urv78","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0f923bc7bb55d75a","answerer_user_id":"anon_5bc9f98d45706e00","subreddit":"programming","timestamp":"2018-08-26T23:26:20+00:00","post_id":"9ak04f","question":"What's in a Production Web Application?","preferred_answer":"I’m a fan, really like your writing style and that’s rare for these topics. Have read a few of your others, shared em with the team and they were a hit. Don’t do this in production is an all-too-real classic. Keep it up, great stuff!","full_conversation":[{"role":"OP","user_id":"anon_0f923bc7bb55d75a","comment_id":"9ak04f","kind":"post","text":"What's in a Production Web Application?","timestamp":"2018-08-26T23:26:20+00:00","score":223},{"role":"answerer","user_id":"anon_5bc9f98d45706e00","comment_id":"e4wftwx","kind":"comment","text":"I’m a fan, really like your writing style and that’s rare for these topics. Have read a few of your others, shared em with the team and they were a hit. Don’t do this in production is an all-too-real classic. Keep it up, great stuff!","timestamp":"2018-08-27T04:37:00+00:00","score":9},{"role":"OP","user_id":"anon_0f923bc7bb55d75a","comment_id":"e4zbw8t","kind":"comment","text":"Thanks! I'm glad you and your team are enjoying the posts. Let me know if there's anything in particular relating to devops/web apps that you'd like to read about. Planning the next few months of posts based on all of this great feedback, so ideas are welcome!","timestamp":"2018-08-28T16:07:47+00:00","score":2},{"role":"answerer","user_id":"anon_5bc9f98d45706e00","comment_id":"e5f5ndf","kind":"comment","text":"Ha, awesome I was just going to comment on this saying you should deep dive into creating public and private vpcs, route tables etc from scratch in terraform/aws since that’s what I just got tasked with at a startup I just joined and haven’t used either tool or platform - then I saw your latest post https://stephenmann.io/post/a-brief-introduction-to-infrastructure-automation/ - exactly what I was looking for, great stuff!","timestamp":"2018-09-05T05:53:25+00:00","score":1},{"role":"OP","user_id":"anon_0f923bc7bb55d75a","comment_id":"e5h1a1w","kind":"comment","text":"Phew! I wasn't sure what to pick for an example to implement, and that one seemed just realistic enough that someone would find it useful. Seems like I arbitrarily chose the correct one. I'm glad it helped! \n\nIf you ever need any help with a specific issue, feel free to reply directly to my newsletter. It goes straight to my inbox, and I try to reply to every email in a reasonable amount of time (depending on my workload and on the number of email responses I get).","timestamp":"2018-09-06T02:22:40+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0f923bc7bb55d75a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5bc9f98d45706e00","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e4wftwx","thanks_reply_id":"e4zbw8t","post_score":223,"answer_score":9,"preferred_answer_is_top_level":false}} {"user_id":"anon_e3dfe764ef10175d","answerer_user_id":"anon_76c556e20c74d095","subreddit":"programming","timestamp":"2018-08-30T07:53:29+00:00","post_id":"9bhnqw","question":"What programming languages should I learn for getting into back-end web development?","preferred_answer":"To be honest, learn whatever you want and will be easier to put effort into. \n\n\nIf you are into data analytics, i would say probably python, if not either C# or Java are very good start. \nIf you have some understanding of javascript and would like to keep investing in javascript, i would recommend node. \n\n\nBut stick to something that you will enjoy, and something that adds to what you already know.","full_conversation":[{"role":"OP","user_id":"anon_e3dfe764ef10175d","comment_id":"9bhnqw","kind":"post","text":"What programming languages should I learn for getting into back-end web development?","timestamp":"2018-08-30T07:53:29+00:00","score":0},{"role":"answerer","user_id":"anon_76c556e20c74d095","comment_id":"e532vmc","kind":"comment","text":"To be honest, learn whatever you want and will be easier to put effort into. \n\n\nIf you are into data analytics, i would say probably python, if not either C# or Java are very good start. \nIf you have some understanding of javascript and would like to keep investing in javascript, i would recommend node. \n\n\nBut stick to something that you will enjoy, and something that adds to what you already know.","timestamp":"2018-08-30T08:02:09+00:00","score":5},{"role":"OP","user_id":"anon_e3dfe764ef10175d","comment_id":"e532ze6","kind":"comment","text":"Thank you for your answer. I'm currently learning Laravel framework, and I have pretty good understanding of it. Started to build some more serious apps with admin panels and such things. Planning on learning javascript next. Are there any other programming languages that are essential to back-end development?","timestamp":"2018-08-30T08:05:54+00:00","score":1},{"role":"answerer","user_id":"anon_76c556e20c74d095","comment_id":"e5333ky","kind":"comment","text":"No, i would say that they can all do the same.\n\nJavascript is the right way, if you are not experienced, a good exercise would be to create a static website (no back end), and then if you want to expand you can do a backend api, and post some stuff with ajax.\n\nThat way you can put on your cv api, and ajax, they are both very important, best of luck!","timestamp":"2018-08-30T08:10:06+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e3dfe764ef10175d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_76c556e20c74d095","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e532vmc","thanks_reply_id":"e532ze6","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_a5cde5780eec2202","answerer_user_id":"anon_851f6b51eb0d909d","subreddit":"programming","timestamp":"2018-09-01T09:41:00+00:00","post_id":"9c1vdt","question":"How to learn the coding basics applied by senior developers - need feedback","preferred_answer":"More dumbass bootcamp propaganda.","full_conversation":[{"role":"OP","user_id":"anon_a5cde5780eec2202","comment_id":"9c1vdt","kind":"post","text":"How to learn the coding basics applied by senior developers - need feedback","timestamp":"2018-09-01T09:41:00+00:00","score":0},{"role":"answerer","user_id":"anon_851f6b51eb0d909d","comment_id":"e57ggpv","kind":"comment","text":"More dumbass bootcamp propaganda.","timestamp":"2018-09-01T11:32:32+00:00","score":5},{"role":"OP","user_id":"anon_a5cde5780eec2202","comment_id":"e57h5dx","kind":"comment","text":"Thanks for the feedback. My product will offer alternarives close to zero cost. This js just he introductory article and showing to the user what are the options on the market. What in the article made you think is prppaganda? So i can change my style in later articles...","timestamp":"2018-09-01T11:52:49+00:00","score":-1},{"role":"answerer","user_id":"anon_851f6b51eb0d909d","comment_id":"e57hxjv","kind":"comment","text":"It takes years to become a senior developer even if you have a degree in Computer Science. The article is wrong starting with the title... Most people are not capable of learning to be any kind of developer in 3 months. Then I look down, and see #1 on the list for how to learn this \"Senior\" knowledge is to go to a bootcamp. Nobody learns any kind of senior-level knowledge by going to a bootcamp.\n\nIf you have a product and want to market it honestly, you should be honest about what can be expected from it. If it takes a person 3 months to go through in their spare time, expectations are pretty low.","timestamp":"2018-09-01T12:14:46+00:00","score":6},{"role":"OP","user_id":"anon_a5cde5780eec2202","comment_id":"e57iho9","kind":"comment","text":"Got it. There is like a journey i want to show to people. Like showing them the alternatives first. You cannot market a product straight away and market it as it is. I wanted to add more text in the post and the sole purpose was discussing the strategy.","timestamp":"2018-09-01T12:29:07+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a5cde5780eec2202","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_851f6b51eb0d909d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e57ggpv","thanks_reply_id":"e57h5dx","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_0a5b0d9078a4e26c","answerer_user_id":"anon_a5fdd71890e8288b","subreddit":"programming","timestamp":"2018-09-16T16:38:14+00:00","post_id":"9gbymr","question":"Is it necessary to study Python first?","preferred_answer":"Not at all. Lots of very talented devs have never written a line of Python BUT you have to start somewhere and Python is as good a choice as any for a first programming language.\n\nThere are things about Python that make it a good first language (not sure I'd say Python is great for networking programming though). To be a good programmer you need to study a lot of stuff outside of a specific language: algorithms, network protocols, computer architecture, maybe physics if you want to write simulation software. It's a long journey and you can approach learning from a bunch of different directions.","full_conversation":[{"role":"OP","user_id":"anon_0a5b0d9078a4e26c","comment_id":"9gbymr","kind":"post","text":"Is it necessary to study Python first?","timestamp":"2018-09-16T16:38:14+00:00","score":0},{"role":"answerer","user_id":"anon_a5fdd71890e8288b","comment_id":"e62xulf","kind":"comment","text":"Not at all. Lots of very talented devs have never written a line of Python BUT you have to start somewhere and Python is as good a choice as any for a first programming language.\n\nThere are things about Python that make it a good first language (not sure I'd say Python is great for networking programming though). To be a good programmer you need to study a lot of stuff outside of a specific language: algorithms, network protocols, computer architecture, maybe physics if you want to write simulation software. It's a long journey and you can approach learning from a bunch of different directions.","timestamp":"2018-09-16T16:52:29+00:00","score":8},{"role":"OP","user_id":"anon_0a5b0d9078a4e26c","comment_id":"e62y9a5","kind":"comment","text":"[clintblark](https://www.reddit.com/user/clintblark), thank you, but for network and system programming should I study python first?","timestamp":"2018-09-16T16:58:41+00:00","score":1},{"role":"answerer","user_id":"anon_a5fdd71890e8288b","comment_id":"e62ys18","kind":"comment","text":"Learn C for network and especially system programming. Python is way higher level than C and would be easier to learn. C will force you to learn more up front before you can do anything. There are arguments for learning both languages first. It doesn't really matter what you learn first you just need to learn.","timestamp":"2018-09-16T17:06:38+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0a5b0d9078a4e26c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a5fdd71890e8288b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e62xulf","thanks_reply_id":"e62y9a5","post_score":0,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_c0adb1508c605513","answerer_user_id":"anon_3808fa7570d8b406","subreddit":"programming","timestamp":"2018-09-18T13:47:21+00:00","post_id":"9guz17","question":"How are Programming languages created? Are they made with an existing programming language? If so, how was the first programming language made if there were no other programming languages?","preferred_answer":"Many programming languages are written in other languages at first, and then when they mature, they're written with themselves. The first languages we're written in assembly, and assembly just uses the functions already on the CPU. You can find some more information here: https://softwareengineering.stackexchange.com/questions/88428/how-were-the-first-compilers-made","full_conversation":[{"role":"OP","user_id":"anon_c0adb1508c605513","comment_id":"9guz17","kind":"post","text":"How are Programming languages created? Are they made with an existing programming language? If so, how was the first programming language made if there were no other programming languages?","timestamp":"2018-09-18T13:47:21+00:00","score":0},{"role":"answerer","user_id":"anon_3808fa7570d8b406","comment_id":"e66yffs","kind":"comment","text":"Many programming languages are written in other languages at first, and then when they mature, they're written with themselves. The first languages we're written in assembly, and assembly just uses the functions already on the CPU. You can find some more information here: https://softwareengineering.stackexchange.com/questions/88428/how-were-the-first-compilers-made","timestamp":"2018-09-18T13:51:36+00:00","score":3},{"role":"OP","user_id":"anon_c0adb1508c605513","comment_id":"e66yh4z","kind":"comment","text":"Ok this is very helpful. Thanks a lot!\n\nEdit: How can you write a programming language with itself?","timestamp":"2018-09-18T13:52:21+00:00","score":1},{"role":"answerer","user_id":"anon_3808fa7570d8b406","comment_id":"e66ymla","kind":"comment","text":"You use an older version of the language to write the compiler for a new version. \n\nhttps://en.m.wikipedia.org/wiki/Bootstrapping_(compilers)","timestamp":"2018-09-18T13:54:45+00:00","score":3},{"role":"OP","user_id":"anon_c0adb1508c605513","comment_id":"e678fgl","kind":"comment","text":"Wow! That’s amazing! Thanks","timestamp":"2018-09-18T16:17:30+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c0adb1508c605513","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3808fa7570d8b406","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e66yffs","thanks_reply_id":"e66yh4z","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_24a0ce5fbd0ad44b","answerer_user_id":"anon_ef7d714455e404ad","subreddit":"programming","timestamp":"2018-09-21T15:11:47+00:00","post_id":"9hqv82","question":"Can someone explain to me this code of a \"LED Persistence of Vision Project\" ? The code is at the bottom of the page.","preferred_answer":"This is better suited to /r/learnprogramming, but what do you want to understand? The arrays are defining a bunch of 5 bit numbers that indicate which lights should be on to form a vertical line (so e.g. 26 = 0b11010 means the three lights in positions with 1s are on, and the other two are off). Each letter has an array of 5 numbers, so each letter takes up 5x5 \"pixels\". (Again, the number itself is 5 bits, so a height of 5. There are 5 numbers for the width). displayLine is testing those bits and setting the lights (apparently the author doesn't know about bitwise AND). displayChar calls displayLine to flash a vertical line and then wait for some hardcoded time for the lights to move into position for the next vertical line (IIRC, 'c2' is not a valid character, so that's a bug. Also apparently the author is not comfortable with two levels of indirection, so they use if statements to test every single character instead of making an array of arrays or whatever).","full_conversation":[{"role":"OP","user_id":"anon_24a0ce5fbd0ad44b","comment_id":"9hqv82","kind":"post","text":"Can someone explain to me this code of a \"LED Persistence of Vision Project\" ? The code is at the bottom of the page.","timestamp":"2018-09-21T15:11:47+00:00","score":0},{"role":"answerer","user_id":"anon_ef7d714455e404ad","comment_id":"e6du1bi","kind":"comment","text":"This is better suited to /r/learnprogramming, but what do you want to understand? The arrays are defining a bunch of 5 bit numbers that indicate which lights should be on to form a vertical line (so e.g. 26 = 0b11010 means the three lights in positions with 1s are on, and the other two are off). Each letter has an array of 5 numbers, so each letter takes up 5x5 \"pixels\". (Again, the number itself is 5 bits, so a height of 5. There are 5 numbers for the width). displayLine is testing those bits and setting the lights (apparently the author doesn't know about bitwise AND). displayChar calls displayLine to flash a vertical line and then wait for some hardcoded time for the lights to move into position for the next vertical line (IIRC, 'c2' is not a valid character, so that's a bug. Also apparently the author is not comfortable with two levels of indirection, so they use if statements to test every single character instead of making an array of arrays or whatever).","timestamp":"2018-09-21T15:37:10+00:00","score":1},{"role":"OP","user_id":"anon_24a0ce5fbd0ad44b","comment_id":"e6dukz3","kind":"comment","text":"Thanks, I have to explain this project at an interview ( not sure if I should). I think I'll have to just explain the project and not go into the code details ?","timestamp":"2018-09-21T15:44:32+00:00","score":0},{"role":"answerer","user_id":"anon_ef7d714455e404ad","comment_id":"e6dv3lx","kind":"comment","text":"I don't know your background or motivations, but for what it's worth, I've always found that it's best to be upfront about your own limitations. So if you don't understand the code, or specific parts of it, just say so. If you're uncomfortable with that/think that will make you look bad, then you should work more to fill that gap in understanding. I agree with the other poster that the code is not great (seems to be written by a beginner), but it still makes sense without me reading any of the article. Are there specific lines that are giving you trouble? Do you understand how the whole persistence of vision display idea is supposed to work?\n\nEdit: to expand on that, you're always going to have limitations. That's not an excuse to say you don't need to know things (a sentiment I see uncomfortably often in this sub), but knowing your own gaps and taking deliberate steps to fill them is its own skill. I don't have a formal CS background (though I do have a math one), but I never had trouble getting a job, and my eagerness to develop expertise in subjects I'm unfamiliar with has always been a point I've emphasized in interviews. It takes some deliberate self-reflection to know exactly what your current knowledge/skill boundaries *are* in order to effectively improve though, so I say it's a skill in itself. Being able to articulate exactly what you don't understand is a way to demonstrate that skill.","timestamp":"2018-09-21T15:51:27+00:00","score":1},{"role":"OP","user_id":"anon_24a0ce5fbd0ad44b","comment_id":"e6dwcoh","kind":"comment","text":"Thanks for the info. I'm from CS background and been pretty lazy all these years, quite noobie in programming, even now which is quite embarrassing.","timestamp":"2018-09-21T16:08:11+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_24a0ce5fbd0ad44b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ef7d714455e404ad","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e6du1bi","thanks_reply_id":"e6dukz3","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_97da394d7cefa001","answerer_user_id":"anon_88c94199439cc366","subreddit":"programming","timestamp":"2018-09-22T01:26:07+00:00","post_id":"9hvwp2","question":"Does anyone have experience writing GUI applications using Mozilla's XUL?","preferred_answer":"I tried many years ago. Other than Firefox there were no examples and a browser doesn't make a good example when trying to create a CRUD app. I know my comment isn't helpful but I can't think of any reason nowadays to try to use XUL. Stick with HTML/JS.","full_conversation":[{"role":"OP","user_id":"anon_97da394d7cefa001","comment_id":"9hvwp2","kind":"post","text":"Does anyone have experience writing GUI applications using Mozilla's XUL?","timestamp":"2018-09-22T01:26:07+00:00","score":0},{"role":"answerer","user_id":"anon_88c94199439cc366","comment_id":"e6f9sur","kind":"comment","text":"I tried many years ago. Other than Firefox there were no examples and a browser doesn't make a good example when trying to create a CRUD app. I know my comment isn't helpful but I can't think of any reason nowadays to try to use XUL. Stick with HTML/JS.","timestamp":"2018-09-22T06:04:16+00:00","score":4},{"role":"OP","user_id":"anon_97da394d7cefa001","comment_id":"e6f9ybq","kind":"comment","text":"Thanks for the input mate. I think I'll take the difficult path and stick with cpp and opengl.","timestamp":"2018-09-22T06:08:29+00:00","score":3},{"role":"answerer","user_id":"anon_88c94199439cc366","comment_id":"e6fa3tl","kind":"comment","text":"OpenGL?! What are you trying to build?","timestamp":"2018-09-22T06:12:55+00:00","score":3},{"role":"OP","user_id":"anon_97da394d7cefa001","comment_id":"e6fa5zt","kind":"comment","text":"Yeah with ImGui you know? I'm just building some small guis for my redis and postgres.","timestamp":"2018-09-22T06:14:43+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_97da394d7cefa001","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_88c94199439cc366","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e6f9sur","thanks_reply_id":"e6f9ybq","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_885750f165bac35a","answerer_user_id":"anon_143761a8d33f21aa","subreddit":"programming","timestamp":"2018-10-02T15:57:18+00:00","post_id":"9kruju","question":"Should you learn C to “learn how the computer works”?","preferred_answer":"the c standard does indeed make mention of bytes, and that objects are sequences of bytes. it does not make mention of \"memory addresses\" as that is up to the implementation. pointer arthmetic is only defined for objects within the same sequence (however many programs violate this with no issue). whenever you see 'memory addresses', it is usually leaking from the actual implementations / architecture. (it's been a while since i last took a peak at the c99 standard, but i recall them being very careful about this). memory maps are 100% implementation, so whenever you see how heaps, stack, etc are laid out, that is all on the architecture (and its abi).","full_conversation":[{"role":"OP","user_id":"anon_885750f165bac35a","comment_id":"9kruju","kind":"post","text":"Should you learn C to “learn how the computer works”?","timestamp":"2018-10-02T15:57:18+00:00","score":1330},{"role":"answerer","user_id":"anon_143761a8d33f21aa","comment_id":"e71l1zg","kind":"comment","text":"the c standard does indeed make mention of bytes, and that objects are sequences of bytes. it does not make mention of \"memory addresses\" as that is up to the implementation. pointer arthmetic is only defined for objects within the same sequence (however many programs violate this with no issue). whenever you see 'memory addresses', it is usually leaking from the actual implementations / architecture. (it's been a while since i last took a peak at the c99 standard, but i recall them being very careful about this). memory maps are 100% implementation, so whenever you see how heaps, stack, etc are laid out, that is all on the architecture (and its abi).","timestamp":"2018-10-02T18:39:02+00:00","score":2},{"role":"OP","user_id":"anon_885750f165bac35a","comment_id":"e71loc4","kind":"comment","text":"Thanks, that does make sense. I knew that it defined objects as sequences of bytes, but wasn't sure if it had any constraints on how all objects are laid out, that is, if they're in some sort of contiguous space.\n\nThat being said, thinking about it more, I guess that would be impossible, as it really only defines \"storage classes\" and object lifetimes, not where things are laid out. Neat, thank you!","timestamp":"2018-10-02T18:47:19+00:00","score":1},{"role":"answerer","user_id":"anon_143761a8d33f21aa","comment_id":"e71mdvk","kind":"comment","text":"the c standard only cares about behavior. it doesn't specify how it's done. a c array has a behavior (e.g. pointer arithmetic, etc) that the implementation must match. but what's under the hood is up to the implementation. u could have an array that is totally fragmented, where it's stuff is all over the place in memory (not contiguous). in a virtual mem system, that's likely to be true (stuff is all over physical memory). c spec did not want to say 'if your memory system isn't all neat and linear, then u can't run c'.","timestamp":"2018-10-02T18:56:49+00:00","score":1},{"role":"OP","user_id":"anon_885750f165bac35a","comment_id":"e71mina","kind":"comment","text":"Yep, that makes total sense. Thanks again.\n\n> c spec did not want to say 'if your memory system isn't all neat and linear, then u can't run c'.\n\nFor what it's worth, I knew that was true, but I thought that maybe it was the implementation's job to map the concept.","timestamp":"2018-10-02T18:58:36+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_885750f165bac35a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_143761a8d33f21aa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e71l1zg","thanks_reply_id":"e71loc4","post_score":1330,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_2593d586b75d0719","answerer_user_id":"anon_d5292e0f70ecb72d","subreddit":"programming","timestamp":"2018-10-18T17:56:11+00:00","post_id":"9pbm1s","question":"SQL or NoSQL database?","preferred_answer":"read up on \"articles\"","full_conversation":[{"role":"OP","user_id":"anon_2593d586b75d0719","comment_id":"9pbm1s","kind":"post","text":"SQL or NoSQL database?","timestamp":"2018-10-18T17:56:11+00:00","score":0},{"role":"answerer","user_id":"anon_d5292e0f70ecb72d","comment_id":"e824zyg","kind":"comment","text":"read up on \"articles\"","timestamp":"2018-10-19T13:04:06+00:00","score":1},{"role":"OP","user_id":"anon_2593d586b75d0719","comment_id":"e825u3f","kind":"comment","text":"Thanks for the advice, will work on my grammar and learn how to use \"articles\" correctly.","timestamp":"2018-10-19T13:18:52+00:00","score":1},{"role":"answerer","user_id":"anon_d5292e0f70ecb72d","comment_id":"e8273lb","kind":"comment","text":"It is one of the harder parts of language if youre from an asian country at least.\n\nOverall it was a good post though!","timestamp":"2018-10-19T13:41:15+00:00","score":1},{"role":"OP","user_id":"anon_2593d586b75d0719","comment_id":"e8292fk","kind":"comment","text":"I am from eastern Europe, but my ancestry came here from Asia - Altai region (close to Mongolia).","timestamp":"2018-10-19T14:12:01+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2593d586b75d0719","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d5292e0f70ecb72d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e824zyg","thanks_reply_id":"e825u3f","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_88b3fc52c67cd961","answerer_user_id":"anon_ff647d29caebcdcc","subreddit":"programming","timestamp":"2018-10-28T18:10:20+00:00","post_id":"9s5a8s","question":"How We Made The World's First Taxi App That Works Without The Internet","preferred_answer":"Had a similar idea but for another type of service, until I realized that ios won't let apps send sms unattended. But I guess iPhone is not very common in this market area. \n\nWell done! 👍","full_conversation":[{"role":"OP","user_id":"anon_88b3fc52c67cd961","comment_id":"9s5a8s","kind":"post","text":"How We Made The World's First Taxi App That Works Without The Internet","timestamp":"2018-10-28T18:10:20+00:00","score":37},{"role":"answerer","user_id":"anon_ff647d29caebcdcc","comment_id":"e90yipz","kind":"comment","text":"Had a similar idea but for another type of service, until I realized that ios won't let apps send sms unattended. But I guess iPhone is not very common in this market area. \n\nWell done! 👍","timestamp":"2018-11-04T11:13:05+00:00","score":2},{"role":"OP","user_id":"anon_88b3fc52c67cd961","comment_id":"e9154uo","kind":"comment","text":"Thank you! It is, kind of. We just decided against it. iPhones are significantly more expensive than Android phones out here. Figured that someone affluent enough would also have paid for a more reliable data connection!","timestamp":"2018-11-04T14:00:25+00:00","score":2},{"role":"answerer","user_id":"anon_ff647d29caebcdcc","comment_id":"e917zpr","kind":"comment","text":"Oh, I see. Makes sense. \n\nThanks for the reply!","timestamp":"2018-11-04T14:49:39+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_88b3fc52c67cd961","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ff647d29caebcdcc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e90yipz","thanks_reply_id":"e9154uo","post_score":37,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_18b3f885f3f8ad08","answerer_user_id":"anon_344af76b40a7570e","subreddit":"programming","timestamp":"2018-11-13T18:19:30+00:00","post_id":"9wrkcd","question":"How to transfer from monolithic system to microservice?","preferred_answer":"downvoting for using the words microservice and monolith.","full_conversation":[{"role":"OP","user_id":"anon_18b3f885f3f8ad08","comment_id":"9wrkcd","kind":"post","text":"How to transfer from monolithic system to microservice?","timestamp":"2018-11-13T18:19:30+00:00","score":0},{"role":"answerer","user_id":"anon_344af76b40a7570e","comment_id":"e9oicgf","kind":"comment","text":"downvoting for using the words microservice and monolith.","timestamp":"2018-11-14T14:14:30+00:00","score":0},{"role":"OP","user_id":"anon_18b3f885f3f8ad08","comment_id":"e9opxdp","kind":"comment","text":"Thanks for reading, I think it's good title.","timestamp":"2018-11-14T15:59:06+00:00","score":1},{"role":"answerer","user_id":"anon_344af76b40a7570e","comment_id":"e9ornkr","kind":"comment","text":"noooooo! (no didnt read it btw, sorry)","timestamp":"2018-11-14T16:21:08+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_18b3f885f3f8ad08","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_344af76b40a7570e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e9oicgf","thanks_reply_id":"e9opxdp","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_52756f3e947f26ee","answerer_user_id":"anon_2c072dc28d762206","subreddit":"programming","timestamp":"2018-11-14T18:13:33+00:00","post_id":"9x2k1u","question":"Need help with a programming project I am absolutely stuck on. I have tried getting started however am just overwhelmed","preferred_answer":"Yup, declaring the variable public/private is as simple as that.\nThe difference is when you want to access them. Public variables can be accessed directly from outside the class too, like object.myAttribute, while private ones can only be accessed directly in the class e.g. this.myAttribute.","full_conversation":[{"role":"OP","user_id":"anon_52756f3e947f26ee","comment_id":"9x2k1u","kind":"post","text":"Need help with a programming project I am absolutely stuck on. I have tried getting started however am just overwhelmed","timestamp":"2018-11-14T18:13:33+00:00","score":0},{"role":"answerer","user_id":"anon_2c072dc28d762206","comment_id":"e9p2k5p","kind":"comment","text":"Yup, declaring the variable public/private is as simple as that.\nThe difference is when you want to access them. Public variables can be accessed directly from outside the class too, like object.myAttribute, while private ones can only be accessed directly in the class e.g. this.myAttribute.","timestamp":"2018-11-14T18:39:59+00:00","score":0},{"role":"OP","user_id":"anon_52756f3e947f26ee","comment_id":"e9p2ozf","kind":"comment","text":"Perfect, thank you. See I'm looking at it on 6 pages and I'm freaking the absolute fuck out","timestamp":"2018-11-14T18:41:38+00:00","score":0},{"role":"answerer","user_id":"anon_2c072dc28d762206","comment_id":"e9p303m","kind":"comment","text":"Haha no worries. By the way, in my experience, lessons make it seem they are useless, but, private variables are useful when you need those variables only inside the class or you want access to them in a controlled way (for example setters and getters, where you can control the data in the method), while public variables give unrestricted access from everywhere in the package (or outside the package too, not sure about Java).\n\nJust saying because from my experience nobody in my class even tried to learn them because they thought these modifiers were useless.","timestamp":"2018-11-14T18:45:26+00:00","score":0},{"role":"OP","user_id":"anon_52756f3e947f26ee","comment_id":"e9p38vs","kind":"comment","text":"I'm also just freaking out because out professor is out for the rest of the semester and the sub is no help with programming however he gives amazing lectures","timestamp":"2018-11-14T18:48:31+00:00","score":2},{"role":"answerer","user_id":"anon_2c072dc28d762206","comment_id":"e9p3gyv","kind":"comment","text":"A quick search on your favourite search engine, in programming, is much more useful and faster than any question to people, by the way.","timestamp":"2018-11-14T18:51:24+00:00","score":2},{"role":"OP","user_id":"anon_52756f3e947f26ee","comment_id":"e9p3k5g","kind":"comment","text":"Yes, but Reddit","timestamp":"2018-11-14T18:52:34+00:00","score":2}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_52756f3e947f26ee","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2c072dc28d762206","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"e9p2k5p","thanks_reply_id":"e9p2ozf","post_score":0,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_30496469e7288d8a","answerer_user_id":"anon_ae12957c44a67ccd","subreddit":"programming","timestamp":"2018-11-30T11:36:00+00:00","post_id":"a1roi0","question":"How to optimize C and C++ code in 2018","preferred_answer":"Step one: avoid ~~all~~ most articles from medium.com (this one is at *least* decent, from skimming).","full_conversation":[{"role":"OP","user_id":"anon_30496469e7288d8a","comment_id":"a1roi0","kind":"post","text":"How to optimize C and C++ code in 2018","timestamp":"2018-11-30T11:36:00+00:00","score":60},{"role":"answerer","user_id":"anon_ae12957c44a67ccd","comment_id":"eavsdn6","kind":"comment","text":"Step one: avoid ~~all~~ most articles from medium.com (this one is at *least* decent, from skimming).","timestamp":"2018-12-01T22:34:26+00:00","score":-1},{"role":"OP","user_id":"anon_30496469e7288d8a","comment_id":"eavyhss","kind":"comment","text":"Thank you for this compliment. \n\nActually, I recently moved blog from static Jekyll on github to medium.\nI don't want to handle GDPR, typography, and browser bugs anymore.","timestamp":"2018-12-01T23:56:20+00:00","score":2},{"role":"answerer","user_id":"anon_ae12957c44a67ccd","comment_id":"eaw2ric","kind":"comment","text":"Certainly. 90% of the time I see an article on medium it's trash, but there are exceptions to this rule, and my initial reaction wasn't correct.\n\nThanks for providing something decent","timestamp":"2018-12-02T00:55:25+00:00","score":3},{"role":"OP","user_id":"anon_30496469e7288d8a","comment_id":"eawzwk1","kind":"comment","text":"I'm glad you liked it","timestamp":"2018-12-02T11:55:39+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_30496469e7288d8a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ae12957c44a67ccd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"eavsdn6","thanks_reply_id":"eavyhss","post_score":60,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_b9705070d51316da","answerer_user_id":"anon_93c401dd36821714","subreddit":"programming","timestamp":"2018-12-02T19:26:55+00:00","post_id":"a2gatx","question":"What proggraming languages should i learn?","preferred_answer":"The basic concepts are quite similar. C# is more strongly typed and safer than C++ and they handle templates/generics differently. C# does more at run time. You wouldn't do badly with C#","full_conversation":[{"role":"OP","user_id":"anon_b9705070d51316da","comment_id":"a2gatx","kind":"post","text":"What proggraming languages should i learn?","timestamp":"2018-12-02T19:26:55+00:00","score":0},{"role":"answerer","user_id":"anon_93c401dd36821714","comment_id":"eay1yws","kind":"comment","text":"The basic concepts are quite similar. C# is more strongly typed and safer than C++ and they handle templates/generics differently. C# does more at run time. You wouldn't do badly with C#","timestamp":"2018-12-02T19:52:14+00:00","score":3},{"role":"OP","user_id":"anon_b9705070d51316da","comment_id":"eay24au","kind":"comment","text":"Thanks i think i will do\n\nPython\n\nC then the other versions (+ sharp etc)\n\nJava and java script","timestamp":"2018-12-02T19:53:42+00:00","score":2},{"role":"answerer","user_id":"anon_93c401dd36821714","comment_id":"eay2jaw","kind":"comment","text":"LOL! Not bad choices, but are you ever going to have some adjusting to do. \n\nJava is similar to C#. Python and JavaScript are a lot more free-form and not well-suited to really large projects. If you like functional programming then JavaScript will be fun.","timestamp":"2018-12-02T19:57:45+00:00","score":0},{"role":"OP","user_id":"anon_b9705070d51316da","comment_id":"eay3t1q","kind":"comment","text":"Thanks again!","timestamp":"2018-12-02T20:09:31+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b9705070d51316da","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_93c401dd36821714","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"eay1yws","thanks_reply_id":"eay24au","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_623e00e5ba452ccb","answerer_user_id":"anon_698b961f7aafd749","subreddit":"programming","timestamp":"2018-12-27T20:10:11+00:00","post_id":"aa2peh","question":"Why Go Sucks And You Should Use Node","preferred_answer":"British lingo for \"get stuffed with your stupid nonsense\".\n\nhttps://www.quora.com/What-is-the-origin-of-the-expression-Get-in-the-sea","full_conversation":[{"role":"OP","user_id":"anon_623e00e5ba452ccb","comment_id":"aa2peh","kind":"post","text":"Why Go Sucks And You Should Use Node","timestamp":"2018-12-27T20:10:11+00:00","score":0},{"role":"answerer","user_id":"anon_698b961f7aafd749","comment_id":"ecokhqj","kind":"comment","text":"British lingo for \"get stuffed with your stupid nonsense\".\n\nhttps://www.quora.com/What-is-the-origin-of-the-expression-Get-in-the-sea","timestamp":"2018-12-27T20:56:44+00:00","score":11},{"role":"OP","user_id":"anon_623e00e5ba452ccb","comment_id":"ecokvl0","kind":"comment","text":"In other words, you had no logical refuted and resorted to playground insults.\n\nThanks, your criticism is given as much weight as it had validity.","timestamp":"2018-12-27T21:01:09+00:00","score":-20},{"role":"answerer","user_id":"anon_698b961f7aafd749","comment_id":"ecom1k2","kind":"comment","text":"Sorry pal, but your loaded clickbaity title didn't warrant any legit conversation.\n\nShould you have posted something around the lines _I've migrated from golang to nodejs and here are my 2cents on why it worked *for me*_ I would've at least finished watching your video. \n\nBut no. You don't get a free pass on broad generic statement tha golang is crap (full stop). And nodejs is an alternative. What's next? Are you going to say: PHP if crap because if doesn't support multithread for your desktop app, so everyone should adopt C# instead. Pears and apples, pal. Also, something something right tool for the job something.","timestamp":"2018-12-27T21:14:44+00:00","score":9}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_623e00e5ba452ccb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_698b961f7aafd749","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ecokhqj","thanks_reply_id":"ecokvl0","post_score":0,"answer_score":11,"preferred_answer_is_top_level":false}} {"user_id":"anon_3fa9f6572ac2338f","answerer_user_id":"anon_ba8f3bb7fd1b1600","subreddit":"programming","timestamp":"2019-01-13T13:55:15+00:00","post_id":"afjilq","question":"How to nicely set up the .gitconfig file","preferred_answer":"Please don't use autocrlf; it's just a mess. Use an editor that supports the appropriate line endings. All editors on windows support both; and most on linux do too.\n\nautocrlf is fine in theory, but one misconfiguration on one committers machine, and you've corrupted a binary file, or removed a semantically important carriage return.\n\nNot to mention it makes xplat reproducible builds more of a hassle - after all, your verbatim string literals are now suddenly of different lengths, depending on how git autoconverted the file.\n\nJust, dont.","full_conversation":[{"role":"OP","user_id":"anon_3fa9f6572ac2338f","comment_id":"afjilq","kind":"post","text":"How to nicely set up the .gitconfig file","timestamp":"2019-01-13T13:55:15+00:00","score":0},{"role":"answerer","user_id":"anon_ba8f3bb7fd1b1600","comment_id":"edzoat8","kind":"comment","text":"Please don't use autocrlf; it's just a mess. Use an editor that supports the appropriate line endings. All editors on windows support both; and most on linux do too.\n\nautocrlf is fine in theory, but one misconfiguration on one committers machine, and you've corrupted a binary file, or removed a semantically important carriage return.\n\nNot to mention it makes xplat reproducible builds more of a hassle - after all, your verbatim string literals are now suddenly of different lengths, depending on how git autoconverted the file.\n\nJust, dont.","timestamp":"2019-01-13T18:21:38+00:00","score":4},{"role":"OP","user_id":"anon_3fa9f6572ac2338f","comment_id":"ee4fmzi","kind":"comment","text":"Thanks for the comment, I didn't know about the downsides of autocrlf (I'm doing mostly python and I don't remember having binary files in any of my repos)! \nI will update the article to mention this and probably disable this config (I used to work with some Windows users that didn't want /didn't know how to properly set up line endings, but that's not the case not anymore).\n \nAs for the binary files corruption - how does it happens? Will git at least inform you that it's trying to modify a binary file (this is what I would expect to happen) or will it corrupt it silently?","timestamp":"2019-01-15T14:57:34+00:00","score":1},{"role":"answerer","user_id":"anon_ba8f3bb7fd1b1600","comment_id":"eea9pig","kind":"comment","text":"If you commit changes, git *will* tell you. But people are human, I've seen *many* commits (and caused a few) including obviously broken changes that would never have been committed if the author had bothered to read the diff. And once you miss the change (and again, depending on your diff tool and settings like \"ignore whitespace changes\" you might miss it very easily) - it's in.\n\nAs to binary files, that depends on which part of git you're talking to. `.gitconfig` can store settings about which file patterns are text, and you might make mistakes there (this shouldn't bite you if you're doing \"common\" stuff with common filetypes). And the converse I have definitely seen happen, where git thought something was binary that was actually text - which wasn't a problem at the time, but if you actually *relied* on autocrlf... I mean, who knows?\n\nThe point is that it's 99% harmless, but almost 0% valuable. It's not likely to bite, but why risk it in the first place? Why not deal with the problem with tools more suited to the task?","timestamp":"2019-01-17T17:16:21+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3fa9f6572ac2338f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ba8f3bb7fd1b1600","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"edzoat8","thanks_reply_id":"ee4fmzi","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_9b458a9addc76af4","answerer_user_id":"anon_2d59a1ba36c1e8b4","subreddit":"programming","timestamp":"2019-02-02T16:03:50+00:00","post_id":"amfdgc","question":"So i just started to learn programming. I've started using C is that a good starting programming language?","preferred_answer":"In any case the most important thing of all is to get started. The amount of time you spend with programming is way more important than language. Just be ready to switch projects when you get stuck so you don't get discouraged. Getting stuck is normal. Failing is inevitable. The important thing is to get through it.","full_conversation":[{"role":"OP","user_id":"anon_9b458a9addc76af4","comment_id":"amfdgc","kind":"post","text":"So i just started to learn programming. I've started using C is that a good starting programming language?","timestamp":"2019-02-02T16:03:50+00:00","score":0},{"role":"answerer","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"efo4oyq","kind":"comment","text":"In any case the most important thing of all is to get started. The amount of time you spend with programming is way more important than language. Just be ready to switch projects when you get stuck so you don't get discouraged. Getting stuck is normal. Failing is inevitable. The important thing is to get through it.","timestamp":"2019-02-03T18:04:52+00:00","score":1},{"role":"OP","user_id":"anon_9b458a9addc76af4","comment_id":"efo6abm","kind":"comment","text":"Thanks. But what should i program using said languages?","timestamp":"2019-02-03T18:23:53+00:00","score":1},{"role":"answerer","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"efo961d","kind":"comment","text":"That's the hardest question. I can't answer that for you :(","timestamp":"2019-02-03T18:59:51+00:00","score":1},{"role":"OP","user_id":"anon_9b458a9addc76af4","comment_id":"efo97hd","kind":"comment","text":"What was your first project?","timestamp":"2019-02-03T19:00:20+00:00","score":1},{"role":"answerer","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"efoannc","kind":"comment","text":"The first that I remember was a GUI toolkit. This was way back in the day :P","timestamp":"2019-02-03T19:18:58+00:00","score":1},{"role":"OP","user_id":"anon_9b458a9addc76af4","comment_id":"efod98q","kind":"comment","text":"What is this GUI Toolkit? 😂 Might be a dumb question.","timestamp":"2019-02-03T19:52:02+00:00","score":1},{"role":"answerer","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"efpkktg","kind":"comment","text":"A system to create buttons and menus that you can click on to make stuff happen. I had some code to get mouse access and basic drawing functions and built from there.","timestamp":"2019-02-04T06:16:00+00:00","score":1},{"role":"OP","user_id":"anon_9b458a9addc76af4","comment_id":"efpklmi","kind":"comment","text":"Well done. Thats a great idea.","timestamp":"2019-02-04T06:16:29+00:00","score":1}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_9b458a9addc76af4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2d59a1ba36c1e8b4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"efo4oyq","thanks_reply_id":"efo6abm","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_15e05c1b8696a73e","answerer_user_id":"anon_41e02cb0c8fecc2c","subreddit":"programming","timestamp":"2019-02-21T09:37:47+00:00","post_id":"at19xc","question":"What programming language logo is this ?","preferred_answer":"Haskell but rotated by 180°","full_conversation":[{"role":"OP","user_id":"anon_15e05c1b8696a73e","comment_id":"at19xc","kind":"post","text":"What programming language logo is this ?","timestamp":"2019-02-21T09:37:47+00:00","score":0},{"role":"answerer","user_id":"anon_41e02cb0c8fecc2c","comment_id":"egxztg4","kind":"comment","text":"Haskell but rotated by 180°","timestamp":"2019-02-21T09:40:21+00:00","score":8},{"role":"OP","user_id":"anon_15e05c1b8696a73e","comment_id":"egy5tkx","kind":"comment","text":"Thanks !","timestamp":"2019-02-21T12:18:51+00:00","score":1},{"role":"answerer","user_id":"anon_41e02cb0c8fecc2c","comment_id":"egygacy","kind":"comment","text":"So... Lleksah I guess?","timestamp":"2019-02-21T15:01:56+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_15e05c1b8696a73e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_41e02cb0c8fecc2c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"egxztg4","thanks_reply_id":"egy5tkx","post_score":0,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_51dc0ee696b2f0b6","answerer_user_id":"anon_4c11a447b55d061f","subreddit":"programming","timestamp":"2019-02-28T02:24:44+00:00","post_id":"avlpue","question":"Is there an O(n) solution to this problem, possibly sliding window?","preferred_answer":"The following runs in O(n) assuming that every operation involving the hash table is O(1) (which is not true, but is a usual assumption. If you replace the hash table with a binary search tree, it runs in O(n*log(n))). It is easy to see that it runs in O(n) as every iteration of any loop increases `i`, `j` or `l` by 1, and the maximum value that `i`, `j` or `l` can take is `n` (the length of the input string).\n\nThe idea is that for every `i`, you compute the minimum `j` such that `input_string[i:j]` contains exactly `k` distinct characters, and then you compute the maximum `l`>`j` such that `input_string[i:l]` also contains exactly `k` distinct characters (the same characters as before). Then you can add `l-j+1` to your count and increase your `i`.\n\n def solve(input_string, k):\n total_count = 0\n counts = dict()\n i = 0\n j = 0\n l = 0\n while j < len(input_string):\n while len(counts) < k and j < len(input_string):\n counts[input_string[j]] = counts.get(input_string[j], 0) + 1\n j += 1\n if l < j:\n l = j\n while l < len(input_string) and input_string[l] in counts:\n l += 1\n while len(counts) >= k and i < j:\n total_count += l - j + 1\n counts[input_string[i]] -= 1\n if counts[input_string[i]] == 0:\n del counts[input_string[i]]\n i += 1\n return total_count\n\n\n print(solve(\"abc\", 2)) # 2\n print(solve(\"aba\", 2)) # 3\n print(solve(\"aa\", 1)) # 3\n print(solve(\"abcbaa\", 3)) # 8","full_conversation":[{"role":"OP","user_id":"anon_51dc0ee696b2f0b6","comment_id":"avlpue","kind":"post","text":"Is there an O(n) solution to this problem, possibly sliding window?","timestamp":"2019-02-28T02:24:44+00:00","score":4},{"role":"answerer","user_id":"anon_4c11a447b55d061f","comment_id":"ehg5haa","kind":"comment","text":"The following runs in O(n) assuming that every operation involving the hash table is O(1) (which is not true, but is a usual assumption. If you replace the hash table with a binary search tree, it runs in O(n*log(n))). It is easy to see that it runs in O(n) as every iteration of any loop increases `i`, `j` or `l` by 1, and the maximum value that `i`, `j` or `l` can take is `n` (the length of the input string).\n\nThe idea is that for every `i`, you compute the minimum `j` such that `input_string[i:j]` contains exactly `k` distinct characters, and then you compute the maximum `l`>`j` such that `input_string[i:l]` also contains exactly `k` distinct characters (the same characters as before). Then you can add `l-j+1` to your count and increase your `i`.\n\n def solve(input_string, k):\n total_count = 0\n counts = dict()\n i = 0\n j = 0\n l = 0\n while j < len(input_string):\n while len(counts) < k and j < len(input_string):\n counts[input_string[j]] = counts.get(input_string[j], 0) + 1\n j += 1\n if l < j:\n l = j\n while l < len(input_string) and input_string[l] in counts:\n l += 1\n while len(counts) >= k and i < j:\n total_count += l - j + 1\n counts[input_string[i]] -= 1\n if counts[input_string[i]] == 0:\n del counts[input_string[i]]\n i += 1\n return total_count\n\n\n print(solve(\"abc\", 2)) # 2\n print(solve(\"aba\", 2)) # 3\n print(solve(\"aa\", 1)) # 3\n print(solve(\"abcbaa\", 3)) # 8","timestamp":"2019-02-28T03:07:13+00:00","score":3},{"role":"OP","user_id":"anon_51dc0ee696b2f0b6","comment_id":"ehgce6r","kind":"comment","text":"Thanks for the solution, i'm not too familiar with what language this is, but would you mind running it for a string such as \"aaaaa\" with k=1? Would it still be O(n) runtime in that case?","timestamp":"2019-02-28T04:43:05+00:00","score":1},{"role":"answerer","user_id":"anon_4c11a447b55d061f","comment_id":"ehgd4ix","kind":"comment","text":"The language is Python3. The running time is O(n) in any case. The output of `solve(\"a\"*10000, 1)` (that is, using a string of 10000 a's and k=1) is 50005000, which is precisely n*(n+1)/2, the answer we'd expect.\n\nNote that the number of substrings may be quadratic in the size of the input, but we can still count them in linear time.","timestamp":"2019-02-28T04:54:33+00:00","score":1},{"role":"OP","user_id":"anon_51dc0ee696b2f0b6","comment_id":"ehgdsyg","kind":"comment","text":"I see, just a few more questions. I'm not really understanding why n\\*(n+1)/2 is O(n), even replacing (n+1) with just 'n' we have n\\^2 / 2 which is equivalent to O(1/2 \\* n\\^2) which should be O(n\\^2) from my understanding of how constants are negligible. Also when I run through the algorithm for the example (\"aaaa\", 1), upon the first iteration the while loop incrementing 'l' runs until the end of the string so it runs in O(n) time and the outer while loop also runs O(n) times and so given that we have an O(n) operation within an O(n) operation shouldn't that be upper bounded by O(n\\^2)? Thanks for all the explanations btw.","timestamp":"2019-02-28T05:05:30+00:00","score":1},{"role":"answerer","user_id":"anon_4c11a447b55d061f","comment_id":"ehgepyg","kind":"comment","text":"> I'm not really understanding why n*(n+1)/2 is O(n)\n\nn\\*(n+1)/2 is *not* O(n). However, n*(n+1)/2 is not the running time, it is the numerical value of the output of the algorithm. If I give you a number `n` and ask you to compute `n*n`, you can do that in O(1), even if the value you computed is O(n^2). Similarly, the algorithm runs in O(n) time, even if it computes a value that is O(n^2).\n\n> Also when I run through the algorithm for the example (\"aaaa\", 1), upon the first iteration the while loop incrementing 'l' runs until the end of the string so it runs in O(n) time and the outer while loop also runs O(n) times and so given that we have an O(n) operation within an O(n) operation shouldn't that be upper bounded by O(n^2)?\n\nIn the first iteration of the outer loop, the loop that increases `l` takes O(n) time. On subsequent iterations of the outer loop, the loop that increases `l` will take O(1) time, for O(n) time in total. This same logic can be applied to all of the inner loops - they all take O(n) time in total.\n\nTo elaborate on that last point, consider the amount of times each of the inner loops is executed. The values of `i`,`j` and `l` start 0, and the algorithm terminates when `i=j=l=n`. Each execution of an inner loop increases the value of `i`, `j`, or `l` by 1, and they never decrease. Therefore, the inner loops can only execute `n` times each, for `3n` times in total (which is O(n)).","timestamp":"2019-02-28T05:20:34+00:00","score":2},{"role":"OP","user_id":"anon_51dc0ee696b2f0b6","comment_id":"ehgfd6n","kind":"comment","text":"OH I see now, thanks! So basically these inner for loops may be running anywhere from 0 to n times in any given iteration of the outer for loop however the summation of times the inner ones are run will be n. Wow thanks for this, really great solution and explanation.","timestamp":"2019-02-28T05:31:28+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_51dc0ee696b2f0b6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4c11a447b55d061f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ehg5haa","thanks_reply_id":"ehgce6r","post_score":4,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_5f643b6041fc0ad7","answerer_user_id":"anon_4ef797699e29fb74","subreddit":"programming","timestamp":"2019-03-04T18:24:43+00:00","post_id":"axaf9d","question":"I'm a noob trying to get started, is this class a waste of money?","preferred_answer":"> From the get-go, you’ll be writing strings, functions, and variables. Then, you’ll figure out how Python interacts with other frameworks and how you can use time-savers on large projects.\n\nat least the guy who wrote this is not programmer..\n\n40$ is not much, but i'm the opinion, that there are more than enough free learning resources out there","full_conversation":[{"role":"OP","user_id":"anon_5f643b6041fc0ad7","comment_id":"axaf9d","kind":"post","text":"I'm a noob trying to get started, is this class a waste of money?","timestamp":"2019-03-04T18:24:43+00:00","score":0},{"role":"answerer","user_id":"anon_4ef797699e29fb74","comment_id":"ehs7amb","kind":"comment","text":"> From the get-go, you’ll be writing strings, functions, and variables. Then, you’ll figure out how Python interacts with other frameworks and how you can use time-savers on large projects.\n\nat least the guy who wrote this is not programmer..\n\n40$ is not much, but i'm the opinion, that there are more than enough free learning resources out there","timestamp":"2019-03-04T18:31:55+00:00","score":15},{"role":"OP","user_id":"anon_5f643b6041fc0ad7","comment_id":"ehs8hmf","kind":"comment","text":"That is really helpful, thank you!\nAre there any learning resources that you like enough to recommend?","timestamp":"2019-03-04T18:45:29+00:00","score":1},{"role":"answerer","user_id":"anon_4ef797699e29fb74","comment_id":"ehsc1ej","kind":"comment","text":"it's hard to judge without knowing how much you know and what your goal is.\n\nalmost all languages have a similar section on their homepage: https://www.python.org/about/gettingstarted/\n\nthat's where you start.. don't get discuraged when you don't understand everything. the time will come. if you feel a bit comfortable, try a small project in a domain you know well.\n\nps: if you want to learn python check out learnpython.org","timestamp":"2019-03-04T19:25:40+00:00","score":3},{"role":"OP","user_id":"anon_5f643b6041fc0ad7","comment_id":"ehsj3ss","kind":"comment","text":"My goal right now is to just be able to better understand my programming friends and coworkers because it sounds really interesting. \nThis looks like a great place to start, thank you for your help!","timestamp":"2019-03-04T20:45:52+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5f643b6041fc0ad7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4ef797699e29fb74","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ehs7amb","thanks_reply_id":"ehs8hmf","post_score":0,"answer_score":15,"preferred_answer_is_top_level":true}} {"user_id":"anon_08e5b2ecac9ccb14","answerer_user_id":"anon_2bc2d5dd8d5dd883","subreddit":"programming","timestamp":"2019-03-06T15:44:00+00:00","post_id":"ay079c","question":"Could someone please tell me wether this code can be run in linux command prompt? If not, is there easy modifications to make it happen? Thanks guys!","preferred_answer":"edit: /u/Angularbeginer , /r/AskProgramming goes on my TIL list - I will guide things like this there in the future.\n\nGrawprog nailed it. If you ( /u/Nevermindever ) are new to the linux command line you *really* should spend two or three hours going through a linux command prompt tutorial. I'm happy to give you a pointer, but first: Do you know what version of linux your'e using? How are do you log in? (These details matter for how you get to a command prompt.)\n\nNot trying to be harsh - I know it can be hard to search for things when you don't know what to search for.\n\n(also my apologies if all the things I'm writing are obvious to you - but in that case I simply do not apprehend the state of mind from which you are asking your questions).\n\nSo... Searching on [linux command line tutorial](https://duckduckgo.com/?q=linux+command+line+tutorial&t=ffab&ia=web) brought up [linuxcommand.org](http://www.linuxcommand.org/) as the first link, I think you should take a look at that site and see if it helps. Once you know how to change directories, run programs and edit files you'll be able to use the \"IMPUTE cookbook\" you linked to.\n\np.s. \"print\" is a perfectly fine bash script command, the back-quotes are also perfectly fine - but ***mysterious*** until you wrap your head around the ideas of \"terminal\", \"commands\", \"standard input\" and \"standard output\", and environment variables. Also the first line of that file is **#!/bin/bash**, the so-called [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)), which means you *totally* have a linux-friendly file.\n\np.p.s. You don't need to climb 100% of the linux + bash learning curve, just somewhere between 1 to 3 hours I think will get you started with your actual work.","full_conversation":[{"role":"OP","user_id":"anon_08e5b2ecac9ccb14","comment_id":"ay079c","kind":"post","text":"Could someone please tell me wether this code can be run in linux command prompt? If not, is there easy modifications to make it happen? Thanks guys!","timestamp":"2019-03-06T15:44:00+00:00","score":0},{"role":"answerer","user_id":"anon_2bc2d5dd8d5dd883","comment_id":"ehxmcur","kind":"comment","text":"edit: /u/Angularbeginer , /r/AskProgramming goes on my TIL list - I will guide things like this there in the future.\n\nGrawprog nailed it. If you ( /u/Nevermindever ) are new to the linux command line you *really* should spend two or three hours going through a linux command prompt tutorial. I'm happy to give you a pointer, but first: Do you know what version of linux your'e using? How are do you log in? (These details matter for how you get to a command prompt.)\n\nNot trying to be harsh - I know it can be hard to search for things when you don't know what to search for.\n\n(also my apologies if all the things I'm writing are obvious to you - but in that case I simply do not apprehend the state of mind from which you are asking your questions).\n\nSo... Searching on [linux command line tutorial](https://duckduckgo.com/?q=linux+command+line+tutorial&t=ffab&ia=web) brought up [linuxcommand.org](http://www.linuxcommand.org/) as the first link, I think you should take a look at that site and see if it helps. Once you know how to change directories, run programs and edit files you'll be able to use the \"IMPUTE cookbook\" you linked to.\n\np.s. \"print\" is a perfectly fine bash script command, the back-quotes are also perfectly fine - but ***mysterious*** until you wrap your head around the ideas of \"terminal\", \"commands\", \"standard input\" and \"standard output\", and environment variables. Also the first line of that file is **#!/bin/bash**, the so-called [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)), which means you *totally* have a linux-friendly file.\n\np.p.s. You don't need to climb 100% of the linux + bash learning curve, just somewhere between 1 to 3 hours I think will get you started with your actual work.","timestamp":"2019-03-06T18:26:27+00:00","score":1},{"role":"OP","user_id":"anon_08e5b2ecac9ccb14","comment_id":"ehxnbqe","kind":"comment","text":"Thanks for Your time, appreciate!\n\nI really don't know much more than cd, ls, wd.. pwd. And I know How to start eg R. Nothing more because I haven't had need for it before.\n\nI'm not sure about the Linux, but it's the most common one (I suppose it's called Ubuntu) and new as well (sounds embarrassing, but hey, no one knows who I am :D).\n\nI log in using ssh (I just write these three letters, username, port, password and am in)","timestamp":"2019-03-06T18:37:09+00:00","score":1},{"role":"answerer","user_id":"anon_2bc2d5dd8d5dd883","comment_id":"ehxoqwi","kind":"comment","text":"Got it - so after you log in you should be able to start going through the [linuxcommand.org](https://linuxcommand.org) stuff. Make a throw-away subdirectory for testing and run some stuff in there.\n\nedit: re \"embarrassing\", don't worry about it. Ubuntu is popular and very effective, it will serve you well. And for learning curves - I ***struggle*** with keeping my \"embarrassment\" out of the way so I can ask questions and build my mental models for whatever topic is at hand. (one of favorite thing to do when I meet non-native English speakers is ask them how to say *\"I don't know\"* in their language - helps me remember that *not* knowing things is the default human condition :-) ).\n\nOk - back to Linux. You'll end up building 3 mental models: *storage* (where files live), *processes* (what programs do), and the i/o model (input being stdin, output being stdout, and stderr). (maybe a network-model... eventually). Anyway, the three basic models will amplify *everything* you do do in linux. (and, incidentally other operating systems like Windows). All of the ideas you learn will snap (lego-block like) onto at least one of these three models. \n\nGood luck :-)","timestamp":"2019-03-06T18:52:54+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_08e5b2ecac9ccb14","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2bc2d5dd8d5dd883","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ehxmcur","thanks_reply_id":"ehxnbqe","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_cbb84f6b33420279","answerer_user_id":"anon_adf5e9bef788490e","subreddit":"programming","timestamp":"2019-04-05T03:26:52+00:00","post_id":"b9m9ev","question":"Help! I'm a beginner \"app developer\" and need advice on choosing a database","preferred_answer":"Spam","full_conversation":[{"role":"OP","user_id":"anon_cbb84f6b33420279","comment_id":"b9m9ev","kind":"post","text":"Help! I'm a beginner \"app developer\" and need advice on choosing a database","timestamp":"2019-04-05T03:26:52+00:00","score":0},{"role":"answerer","user_id":"anon_adf5e9bef788490e","comment_id":"ek5ifau","kind":"comment","text":"Spam","timestamp":"2019-04-05T03:28:39+00:00","score":2},{"role":"OP","user_id":"anon_cbb84f6b33420279","comment_id":"ek5ijm1","kind":"comment","text":"I deleted my last post on accident so I reposted it. Thanks for the downvote though!","timestamp":"2019-04-05T03:30:31+00:00","score":-1},{"role":"answerer","user_id":"anon_adf5e9bef788490e","comment_id":"ek5irm8","kind":"comment","text":"Add xpost to title or something to indicate it's a dup","timestamp":"2019-04-05T03:33:55+00:00","score":2},{"role":"OP","user_id":"anon_cbb84f6b33420279","comment_id":"ek5j0mw","kind":"comment","text":"Because it doesn't let me post text, only media or links. Relax there guy, I can see why you have negative karma.","timestamp":"2019-04-05T03:37:42+00:00","score":-1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_cbb84f6b33420279","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_adf5e9bef788490e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ek5ifau","thanks_reply_id":"ek5ijm1","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_e4fcae5f22633be1","answerer_user_id":"anon_4d895672e36d94bb","subreddit":"programming","timestamp":"2019-04-08T16:36:24+00:00","post_id":"bavz57","question":"How to uniquely assign color / line pattern to random users client side in an online drawing app?","preferred_answer":"This is only the beginning of your issues if you are hoping to have a collaborative drawing app. with the clients having to be synchronized.\n\nWithout an authority, your clients will quickly desynchronize as to the state of the drawing.\n\nColors/patterns isn't first issue you'll need to worry about:\n\nDoodler A and doodler B doodle at the same time. They transmit their doodles to each other. Client A has the doodles applied (to the same section of the whiteboard) as AB. Client B has them applied as BA.\n\nTheir whiteboards don't look the same.\n\nSource: I wrote this with a team. In 1989. As a desktop application. Well before the web. It was called NCSA Collage.\n\nNB: Timestamps encoded in transmits don't help you because they can't account for transmission latency. Especially on mobile.","full_conversation":[{"role":"OP","user_id":"anon_e4fcae5f22633be1","comment_id":"bavz57","kind":"post","text":"How to uniquely assign color / line pattern to random users client side in an online drawing app?","timestamp":"2019-04-08T16:36:24+00:00","score":0},{"role":"answerer","user_id":"anon_4d895672e36d94bb","comment_id":"eked1no","kind":"comment","text":"This is only the beginning of your issues if you are hoping to have a collaborative drawing app. with the clients having to be synchronized.\n\nWithout an authority, your clients will quickly desynchronize as to the state of the drawing.\n\nColors/patterns isn't first issue you'll need to worry about:\n\nDoodler A and doodler B doodle at the same time. They transmit their doodles to each other. Client A has the doodles applied (to the same section of the whiteboard) as AB. Client B has them applied as BA.\n\nTheir whiteboards don't look the same.\n\nSource: I wrote this with a team. In 1989. As a desktop application. Well before the web. It was called NCSA Collage.\n\nNB: Timestamps encoded in transmits don't help you because they can't account for transmission latency. Especially on mobile.","timestamp":"2019-04-08T16:47:03+00:00","score":4},{"role":"OP","user_id":"anon_e4fcae5f22633be1","comment_id":"ekef4k2","kind":"comment","text":"Thanks. I was overstating the problem - it's really just highlighting areas of a video quickly that they're watching. So the drawing is really just circling areas of interest with a finger-drawn line and it doesn't really matter if it's AB or BA since the drawing is just lines so one over top of another doesn't impact things much since the whiteboard is 98% transparent showing the video in the background.\n\n​\n\nDoes that help?\n\n​\n\nAny ideas on assigning the colors?","timestamp":"2019-04-08T17:09:00+00:00","score":2},{"role":"answerer","user_id":"anon_4d895672e36d94bb","comment_id":"ekefhij","kind":"comment","text":"How are you synchronizing video playback on the clients?\n\nI think you're actually severely understating the problem.\n\nIf you want something that actually feels like it works reliably, you need some mechanism to serialize and synchronize.\n\nGetting unique doodle colors is absolutely trivial when you solve the other actual problems.","timestamp":"2019-04-08T17:12:53+00:00","score":0},{"role":"OP","user_id":"anon_e4fcae5f22633be1","comment_id":"ekhqkfy","kind":"comment","text":"Thanks for your concern but I’ve solved the other problems to my satisfaction. I just need help with the unique doodle colors.\n\nThere’s nothing to synchronize in the video - it’s live video so it’s simultaneously transmitted to all 4 parties in the call. Latency is about 60-300 ms and I’m using a highly reliable third party sdk with paid support.\n\nI’ll be using sonething like Ably to transmit the drawing and their latency is about 40-80 ms. If the drawing is 200 ms out of sync with the video I’m OK with that.\n\nI just want users to be able draw on top of the video. I have that working already and it’s reliable across various network scenarios.\n\nI just need help assigning unique drawing styles without server side coordination or some kind of quorum or leader election client side. 😀\n\nSo the other problems are solved. Can you share the tribal solution to unique doodle colors please?\n\nThanks. 😀","timestamp":"2019-04-09T19:20:56+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_e4fcae5f22633be1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4d895672e36d94bb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"eked1no","thanks_reply_id":"ekef4k2","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_491b0269c33c1efd","answerer_user_id":"anon_cd5d8d2bc8f06be7","subreddit":"programming","timestamp":"2019-05-13T03:38:17+00:00","post_id":"bnycay","question":"Why WebAssembly is a Big Deal","preferred_answer":"Another clueless BS article from Medium.\n\n> It will replace JavaScript.\n\nFrom [WebAssembly.org](https://WebAssembly.org)\n\n> WebAssembly is designed to be a complement to, not replacement of, JavaScript.\n\nFrom the article:\n\n> It will replace HTML and CSS. It will replace mobile phone apps. It will replace your desktop applications. \n\nImpossible but I don't have time to go into all that. JavaScript does not markup text except by inserting HTML. JavaScript does not style elements except through CSS.","full_conversation":[{"role":"OP","user_id":"anon_491b0269c33c1efd","comment_id":"bnycay","kind":"post","text":"Why WebAssembly is a Big Deal","timestamp":"2019-05-13T03:38:17+00:00","score":0},{"role":"answerer","user_id":"anon_cd5d8d2bc8f06be7","comment_id":"enbt1ru","kind":"comment","text":"Another clueless BS article from Medium.\n\n> It will replace JavaScript.\n\nFrom [WebAssembly.org](https://WebAssembly.org)\n\n> WebAssembly is designed to be a complement to, not replacement of, JavaScript.\n\nFrom the article:\n\n> It will replace HTML and CSS. It will replace mobile phone apps. It will replace your desktop applications. \n\nImpossible but I don't have time to go into all that. JavaScript does not markup text except by inserting HTML. JavaScript does not style elements except through CSS.","timestamp":"2019-05-13T13:38:40+00:00","score":5},{"role":"OP","user_id":"anon_491b0269c33c1efd","comment_id":"endj05x","kind":"comment","text":"> Another clueless BS article from Medium.\n\nGee thanks. I wrote the article before working out where to post it, and I'm not using Medium next time because their UI is aweful.\n\nAnyway. It was obviously a waste of time. You got more upvotes than my article did.","timestamp":"2019-05-13T21:36:18+00:00","score":1},{"role":"answerer","user_id":"anon_cd5d8d2bc8f06be7","comment_id":"endriu5","kind":"comment","text":"Being inaccurate does that.","timestamp":"2019-05-13T22:32:06+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_491b0269c33c1efd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cd5d8d2bc8f06be7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"enbt1ru","thanks_reply_id":"endj05x","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_112d389f4b863466","answerer_user_id":"anon_7bd7ca4238e7d5db","subreddit":"programming","timestamp":"2019-05-16T12:13:50+00:00","post_id":"bpbsh7","question":"What are the most innovative/smart use of data/Spotify APIs/digital tools in the music business that you've seen? Kobalt is a good example maybe?","preferred_answer":"I created a workout playlist generator based on heart rate using the Spotify API. It was surprisingly easy to use and make decent playlists if the user have been using Spotify for a long time (a lot of data!).\n\n​\n\nAnd you're probably aware, but the [Spotify Developer Showcase](https://developer.spotify.com/community/showcase/) has a ton of awesome projects if you need some inspiration.","full_conversation":[{"role":"OP","user_id":"anon_112d389f4b863466","comment_id":"bpbsh7","kind":"post","text":"What are the most innovative/smart use of data/Spotify APIs/digital tools in the music business that you've seen? Kobalt is a good example maybe?","timestamp":"2019-05-16T12:13:50+00:00","score":0},{"role":"answerer","user_id":"anon_7bd7ca4238e7d5db","comment_id":"enr6xr7","kind":"comment","text":"I created a workout playlist generator based on heart rate using the Spotify API. It was surprisingly easy to use and make decent playlists if the user have been using Spotify for a long time (a lot of data!).\n\n​\n\nAnd you're probably aware, but the [Spotify Developer Showcase](https://developer.spotify.com/community/showcase/) has a ton of awesome projects if you need some inspiration.","timestamp":"2019-05-16T12:32:33+00:00","score":3},{"role":"OP","user_id":"anon_112d389f4b863466","comment_id":"envylum","kind":"comment","text":"Thats great! Thanks! Could you link the playlist?:)","timestamp":"2019-05-17T09:51:56+00:00","score":1},{"role":"answerer","user_id":"anon_7bd7ca4238e7d5db","comment_id":"eodaeld","kind":"comment","text":"I would love to but Spotify banned me because I used the rigged APK :(","timestamp":"2019-05-21T20:33:57+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_112d389f4b863466","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7bd7ca4238e7d5db","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"enr6xr7","thanks_reply_id":"envylum","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_9074d1f6f4350bac","answerer_user_id":"anon_64c4f86d340ca874","subreddit":"programming","timestamp":"2019-05-17T14:53:21+00:00","post_id":"bps96v","question":"Question: Is anyone using REST API code generator in production?","preferred_answer":"I've never gotten it into production (project took a huge deviation), but having used it and integrated it into a Gradle Build CI pipeline, I've actually liked it.\n\nIt does save you a lot of overhead when it comes to generating POJO's which is awesome.\n\n​\n\nAs a note, the most up to date version of the library is this one: \n[https://github.com/OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator) \n\n\nThe Swagger one owned by SmartBear has kinda died off, all the primary developers have moved to the OpenAPITools project.\n\n​\n\nWhat languages/frameworks are you looking to use?","full_conversation":[{"role":"OP","user_id":"anon_9074d1f6f4350bac","comment_id":"bps96v","kind":"post","text":"Question: Is anyone using REST API code generator in production?","timestamp":"2019-05-17T14:53:21+00:00","score":9},{"role":"answerer","user_id":"anon_64c4f86d340ca874","comment_id":"enwzudj","kind":"comment","text":"I've never gotten it into production (project took a huge deviation), but having used it and integrated it into a Gradle Build CI pipeline, I've actually liked it.\n\nIt does save you a lot of overhead when it comes to generating POJO's which is awesome.\n\n​\n\nAs a note, the most up to date version of the library is this one: \n[https://github.com/OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator) \n\n\nThe Swagger one owned by SmartBear has kinda died off, all the primary developers have moved to the OpenAPITools project.\n\n​\n\nWhat languages/frameworks are you looking to use?","timestamp":"2019-05-17T15:32:01+00:00","score":2},{"role":"OP","user_id":"anon_9074d1f6f4350bac","comment_id":"enx39q3","kind":"comment","text":">What lang\n\nThanks for sharing more.\n\n​\n\nI've talked to a few teams in my company and we're interested in Swift, TypeScript, Ruby, Python for clients to start with. Kotlin and C# are nice to have.\n\n​\n\nWe're interested in server generators as well such as Spring, Python Flask to create microservices.","timestamp":"2019-05-17T16:02:28+00:00","score":1},{"role":"answerer","user_id":"anon_64c4f86d340ca874","comment_id":"enx3xad","kind":"comment","text":"This is the framework I use for Kotlin. \nInstead of Schema -> Generated code, it does Code -> Schema.\n\n[https://github.com/nielsfalk/ktor-swagger](https://github.com/nielsfalk/ktor-swagger)","timestamp":"2019-05-17T16:08:15+00:00","score":1},{"role":"OP","user_id":"anon_9074d1f6f4350bac","comment_id":"enx8w51","kind":"comment","text":"Nice. I'll ask the Kotlin dev to give it a try","timestamp":"2019-05-17T16:49:36+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_9074d1f6f4350bac","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_64c4f86d340ca874","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"enwzudj","thanks_reply_id":"enx39q3","post_score":9,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_bcb83470a26538b5","answerer_user_id":"anon_fb83a37eb52c514c","subreddit":"programming","timestamp":"2019-05-19T21:39:40+00:00","post_id":"bqmgk7","question":"Had an idea to match wildcards O(n) of the string chars, looking for inputs/errors and just wanted to share it. Description in comments on the code.","preferred_answer":"I'll try to break it again if you want :)","full_conversation":[{"role":"OP","user_id":"anon_bcb83470a26538b5","comment_id":"bqmgk7","kind":"post","text":"Had an idea to match wildcards O(n) of the string chars, looking for inputs/errors and just wanted to share it. Description in comments on the code.","timestamp":"2019-05-19T21:39:40+00:00","score":0},{"role":"answerer","user_id":"anon_fb83a37eb52c514c","comment_id":"eo895zq","kind":"comment","text":"I'll try to break it again if you want :)","timestamp":"2019-05-20T13:59:35+00:00","score":2},{"role":"OP","user_id":"anon_bcb83470a26538b5","comment_id":"eo8d2u1","kind":"comment","text":"I'd appreciate that, it's in the same gist linked above, ty","timestamp":"2019-05-20T14:47:20+00:00","score":1},{"role":"answerer","user_id":"anon_fb83a37eb52c514c","comment_id":"eo95qs1","kind":"comment","text":"It seems that `match(\"ab*ab*ab\", \"abacabcab\")` still returns `false`","timestamp":"2019-05-20T20:08:40+00:00","score":1},{"role":"OP","user_id":"anon_bcb83470a26538b5","comment_id":"eo9eanh","kind":"comment","text":"it's \n `match(\"abacabcab\", \"ab*ab*ab\")`\nI changed the order to use the tests of micromatch without too much hassle","timestamp":"2019-05-20T21:55:49+00:00","score":1},{"role":"answerer","user_id":"anon_fb83a37eb52c514c","comment_id":"eo9rjza","kind":"comment","text":"Then `match(\"ababac\", \"*abac*\")` returns `false`.\n\nIn fact, from your algorithm we can deduce an O(n) program for substring search: to search `needle` in `haystack`, call `match(\"haystack\", \"*needle*\")`\n\nIf your code is correct, then it means that you found an O(n) algorithm for substring search that is simpler than [KMP](https://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm), and I doubt it is possible.","timestamp":"2019-05-21T00:28:30+00:00","score":1},{"role":"OP","user_id":"anon_bcb83470a26538b5","comment_id":"eoc00ft","kind":"comment","text":"didn't think about a comparison with KMP, but what if use for the comparison part it instead of my \"swallow anything that doesn't match\" algorithm?\nI'd build two tables, one for the forward search one for the backward one. That should still be linearish (like O(n + 2k) if I'm not mistaken) and still better than any current implementations of wildcard matching for globs, right?\nThanks for the patience :)","timestamp":"2019-05-21T15:02:43+00:00","score":1},{"role":"answerer","user_id":"anon_fb83a37eb52c514c","comment_id":"eodz6pz","kind":"comment","text":"I implemented a version of `match` only using KMP: I use it with `kmpSearch(needle, haystack, startPos)`, it searches `needle` in `haystack` starting from position `startPos`.\nIt returns `-1` if it does not find `needle`, or returns the character after the last character of `needle` if it is present in `haystack`.\n\nFrom this blackbox function you can deduce a linear algorithm that seems to be working fine: https://gist.github.com/TWal/bbbc41ca4de1f5fa0f820fa0d984da1e\n\n(Disclaimer: I did not test it a lot and it might contain bugs)","timestamp":"2019-05-22T00:20:52+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_bcb83470a26538b5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fb83a37eb52c514c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"eo895zq","thanks_reply_id":"eo8d2u1","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_cf1ade38e0398fe5","answerer_user_id":"anon_6ccf5d2097d79900","subreddit":"programming","timestamp":"2019-05-26T10:54:32+00:00","post_id":"bt6lwx","question":"can someone check out this tic-tac-toe game I made(it's my first code)","preferred_answer":"This is a good start. It compiles and runs as you would expect. Good job on pushing to github!\n\n​\n\nCreate comments. I had no idea what \"eo\" was used for. (I assume it was even/odd or something like that.) Add comments over every function.\n\n​\n\nI would fix your indentations to be consistent and correct. (double check your else conditions) Let code formatting tools help you. For example in vim, use the '=' to reformat the code for you. Other editors/IDEs will have similar functionality.\n\n​\n\nDo not be afraid of things starting at zero. (ex: num\\[0\\] is never used) The turn() function could be shortened but if the code makes sense to you, it is better to leave as it is.\n\n​\n\nRun \"lint\" or \"splint\" or something that will let you know of some basic code cleanings or static code analysis.\n\n​\n\nCreate a Makefile. Consider adding a [README.md](https://README.md). Possibly a license, too.\n\n​\n\nCompile with '-Wall' (to let you know of any warnings).\n\n​\n\nTry to have your main function be as small as possible.\n\n​\n\nAvoid globals like the 'num' variable.\n\n​\n\nTry to add unit testing. There are lots of small test frameworks. See [https://stackoverflow.com/questions/65820/unit-testing-c-code](https://stackoverflow.com/questions/65820/unit-testing-c-code) I grabbed minunit (see [http://www.jera.com/techinfo/jtns/jtn002.html](http://www.jera.com/techinfo/jtns/jtn002.html)) and applied it to your code.\n\n​\n\nConsider adding some integration testing. It would make your life easier. For example, you could do something like this:\n\necho \"1 2 3 5 7 8\" | ./ttt > /dev/null\n\nYou could add the winner as the return value from the program, then you could capture that returned value for tests.\n\n​\n\nI've made most of these modifications to your code, without really modifying the logic. Let me know if you want to see the fork.\n\n​\n\nKeep at it! Coding is frustrating at times, but when you get the code working, it is the best feeling in the world.","full_conversation":[{"role":"OP","user_id":"anon_cf1ade38e0398fe5","comment_id":"bt6lwx","kind":"post","text":"can someone check out this tic-tac-toe game I made(it's my first code)","timestamp":"2019-05-26T10:54:32+00:00","score":0},{"role":"answerer","user_id":"anon_6ccf5d2097d79900","comment_id":"eovjx9v","kind":"comment","text":"This is a good start. It compiles and runs as you would expect. Good job on pushing to github!\n\n​\n\nCreate comments. I had no idea what \"eo\" was used for. (I assume it was even/odd or something like that.) Add comments over every function.\n\n​\n\nI would fix your indentations to be consistent and correct. (double check your else conditions) Let code formatting tools help you. For example in vim, use the '=' to reformat the code for you. Other editors/IDEs will have similar functionality.\n\n​\n\nDo not be afraid of things starting at zero. (ex: num\\[0\\] is never used) The turn() function could be shortened but if the code makes sense to you, it is better to leave as it is.\n\n​\n\nRun \"lint\" or \"splint\" or something that will let you know of some basic code cleanings or static code analysis.\n\n​\n\nCreate a Makefile. Consider adding a [README.md](https://README.md). Possibly a license, too.\n\n​\n\nCompile with '-Wall' (to let you know of any warnings).\n\n​\n\nTry to have your main function be as small as possible.\n\n​\n\nAvoid globals like the 'num' variable.\n\n​\n\nTry to add unit testing. There are lots of small test frameworks. See [https://stackoverflow.com/questions/65820/unit-testing-c-code](https://stackoverflow.com/questions/65820/unit-testing-c-code) I grabbed minunit (see [http://www.jera.com/techinfo/jtns/jtn002.html](http://www.jera.com/techinfo/jtns/jtn002.html)) and applied it to your code.\n\n​\n\nConsider adding some integration testing. It would make your life easier. For example, you could do something like this:\n\necho \"1 2 3 5 7 8\" | ./ttt > /dev/null\n\nYou could add the winner as the return value from the program, then you could capture that returned value for tests.\n\n​\n\nI've made most of these modifications to your code, without really modifying the logic. Let me know if you want to see the fork.\n\n​\n\nKeep at it! Coding is frustrating at times, but when you get the code working, it is the best feeling in the world.","timestamp":"2019-05-26T18:47:19+00:00","score":2},{"role":"OP","user_id":"anon_cf1ade38e0398fe5","comment_id":"eovznst","kind":"comment","text":"Thank you that's a very helpful answer, and yeah I would like to see the modified code","timestamp":"2019-05-26T20:37:37+00:00","score":1},{"role":"answerer","user_id":"anon_6ccf5d2097d79900","comment_id":"eowhtd1","kind":"comment","text":"See https://github.com/mkinney/nicolnasr_tictactoe\n\nNormally, the workflow is to \"fork\" the code first, then make changes on the forked copy and then do a pull-request back to the original code. I didn't do that. Sorry.\n\nBut, it might be helpful to look at the commits one at a time.\n\nFeel free to use none of these changes. :-)\n\nLet me know if you have any other questions.","timestamp":"2019-05-26T22:33:27+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cf1ade38e0398fe5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6ccf5d2097d79900","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"eovjx9v","thanks_reply_id":"eovznst","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_ff7e7b6bb31c2a2b","answerer_user_id":"anon_fc5c3c341d0dc5ae","subreddit":"programming","timestamp":"2019-05-29T13:31:51+00:00","post_id":"buepyz","question":"Now I have an inernship in cobol and they want to recrute me, but honestly I hate it but finding a job in Java or JavaScript is bit hard and I will be unemployed, what sould I do?","preferred_answer":"it is called a personal decision, because that is your decision to make. \n\nIn my experience there is room to incorporate other languages when automating your own processes, or generating reports or whatnot. Even with COBOL, JCL. You just need a bare minimum COBOL program to run stuff and collect the results to be processed by whatever.\n\nAlso nothing inherently wrong with COBOL, might as well learn you some BAL for great good too :)","full_conversation":[{"role":"OP","user_id":"anon_ff7e7b6bb31c2a2b","comment_id":"buepyz","kind":"post","text":"Now I have an inernship in cobol and they want to recrute me, but honestly I hate it but finding a job in Java or JavaScript is bit hard and I will be unemployed, what sould I do?","timestamp":"2019-05-29T13:31:51+00:00","score":0},{"role":"answerer","user_id":"anon_fc5c3c341d0dc5ae","comment_id":"epb68bg","kind":"comment","text":"it is called a personal decision, because that is your decision to make. \n\nIn my experience there is room to incorporate other languages when automating your own processes, or generating reports or whatnot. Even with COBOL, JCL. You just need a bare minimum COBOL program to run stuff and collect the results to be processed by whatever.\n\nAlso nothing inherently wrong with COBOL, might as well learn you some BAL for great good too :)","timestamp":"2019-05-29T13:58:25+00:00","score":1},{"role":"OP","user_id":"anon_ff7e7b6bb31c2a2b","comment_id":"epb83gw","kind":"comment","text":"thanks for the reply,\ni dont work with jcl we use dcl and VMS , i found that its a dying os .\nthe problem im facing is that i have the opportunity to work with a freelance but for free , he's really goood i learn so much but still the empluyed problem","timestamp":"2019-05-29T14:10:44+00:00","score":1},{"role":"answerer","user_id":"anon_fc5c3c341d0dc5ae","comment_id":"epbcqxz","kind":"comment","text":"I don't like the term \"dying\". It is overly dramatic.\n\nfwiw, you can use dcl on linux/windows apparently, don't know if you would find that interesting or not (I would if I were using it elsewhere).\n\nhttps://www.oneadvanced.com/siteassets/resources/application-modernization-collateral/advanced_fact_sheet_open_dcl.pdf\n\nbut either way, if I weren't getting paid (or already financially independent) I would prioritize that.","timestamp":"2019-05-29T14:40:21+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ff7e7b6bb31c2a2b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fc5c3c341d0dc5ae","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"epb68bg","thanks_reply_id":"epb83gw","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_2c803124f68d9a86","answerer_user_id":"anon_94e6b501c40cc88c","subreddit":"programming","timestamp":"2019-06-24T17:59:24+00:00","post_id":"c4sh6q","question":"What is Bash/bash scripting? For beginners and intermediates.","preferred_answer":"`let` syntax is not prefered, better is arithmatic syntax: `version=$(( version + 1 ))`. Indeed you used that syntax in your for example at the top. You could also do `(( version++ ))`","full_conversation":[{"role":"OP","user_id":"anon_2c803124f68d9a86","comment_id":"c4sh6q","kind":"post","text":"What is Bash/bash scripting? For beginners and intermediates.","timestamp":"2019-06-24T17:59:24+00:00","score":0},{"role":"answerer","user_id":"anon_94e6b501c40cc88c","comment_id":"erycpuj","kind":"comment","text":"`let` syntax is not prefered, better is arithmatic syntax: `version=$(( version + 1 ))`. Indeed you used that syntax in your for example at the top. You could also do `(( version++ ))`","timestamp":"2019-06-24T19:46:48+00:00","score":2},{"role":"OP","user_id":"anon_2c803124f68d9a86","comment_id":"eryjcge","kind":"comment","text":"Brilliant! Thanks for pointing that out.","timestamp":"2019-06-24T20:57:30+00:00","score":1},{"role":"answerer","user_id":"anon_94e6b501c40cc88c","comment_id":"eryjh35","kind":"comment","text":"I only know it because a linter yelled at me one time","timestamp":"2019-06-24T20:58:53+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2c803124f68d9a86","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_94e6b501c40cc88c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"erycpuj","thanks_reply_id":"eryjcge","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_9139c3ba0354b004","answerer_user_id":"anon_438eea4166af5de6","subreddit":"programming","timestamp":"2019-06-25T16:02:14+00:00","post_id":"c5ap50","question":"How to Write a Good Piece of Code","preferred_answer":"Thanks for responding to this well.\n\n> Why would I want to falsify my claim?\n\nThat's just the scientific method. You want your experiment to be *able* to falsify your claim because otherwise, well, you have no solid information about its truth value. Just clues.","full_conversation":[{"role":"OP","user_id":"anon_9139c3ba0354b004","comment_id":"c5ap50","kind":"post","text":"How to Write a Good Piece of Code","timestamp":"2019-06-25T16:02:14+00:00","score":72},{"role":"answerer","user_id":"anon_438eea4166af5de6","comment_id":"es2qfvq","kind":"comment","text":"Thanks for responding to this well.\n\n> Why would I want to falsify my claim?\n\nThat's just the scientific method. You want your experiment to be *able* to falsify your claim because otherwise, well, you have no solid information about its truth value. Just clues.","timestamp":"2019-06-26T07:43:13+00:00","score":3},{"role":"OP","user_id":"anon_9139c3ba0354b004","comment_id":"es3anw5","kind":"comment","text":"> Thanks for responding to this well.\n\nNp. I write a blog post every day, bound to make a bunch of mistakes. Thanks for presenting the argument better than the original commenter.\n\n> That's just the scientific method. You want your experiment to be able to falsify your claim because otherwise, well, you have no solid information about its truth value. Just clues.\n\nI thought falsification only mattered for inductive proofs? Also, I strongly disagree that none of the studies were general enough. In fact, the author specifically points out that only a few studies were controversial.","timestamp":"2019-06-26T14:07:31+00:00","score":1},{"role":"answerer","user_id":"anon_438eea4166af5de6","comment_id":"es3eaz1","kind":"comment","text":"> I thought falsification only mattered for inductive proofs?\n\nI mean this can quickly get into a straight up epistemological argument (is not empiricism just a series of inductions?), but I think it's fair to expect straight up claims about what we know to be true to be falsifiable. You don't have to be a positivist to hold that position.\n\nYou can certainly say that we know more of scientific corpora that merely what has been successfully or unsuccessfully falsified, conjectures and yet untested theories are definitely valuable, but you can't make claims about their truth value.\n\nIt's a question of vocabulary I suppose, if you say \"X does Y, Z% of the time and here's a bunch of studies\" It's to be expected that the studies actually prove the claim. This is a common and frustrating mistake journalists make, much to the dismay of scientists everywhere.\n\nEmploying less imperative language fixes that issue I find. Were you a bit more vague here I think people would have little issue.\n\n>I strongly disagree that none of the studies were general enough.\n\nBe that as it may, but that's your opinion and not that of your source. I'm sure you'll agree one ought not to mislead people about that delineation. Not that I'm accusing you of doing so.","timestamp":"2019-06-26T14:49:13+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9139c3ba0354b004","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_438eea4166af5de6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"es2qfvq","thanks_reply_id":"es3anw5","post_score":72,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_0937bc255c80fed5","answerer_user_id":"anon_2ec829e4cb26e28f","subreddit":"programming","timestamp":"2019-07-08T09:51:01+00:00","post_id":"caj1cm","question":"How to Use User Mode Linux","preferred_answer":"/u/shadowh511, if you're Christine: Your Coinbase link does not work.","full_conversation":[{"role":"OP","user_id":"anon_0937bc255c80fed5","comment_id":"caj1cm","kind":"post","text":"How to Use User Mode Linux","timestamp":"2019-07-08T09:51:01+00:00","score":19},{"role":"answerer","user_id":"anon_2ec829e4cb26e28f","comment_id":"et930ux","kind":"comment","text":"/u/shadowh511, if you're Christine: Your Coinbase link does not work.","timestamp":"2019-07-08T11:00:18+00:00","score":2},{"role":"OP","user_id":"anon_0937bc255c80fed5","comment_id":"et931mn","kind":"comment","text":"Huh, weird. I'll take a look at that. Thanks!","timestamp":"2019-07-08T11:00:46+00:00","score":1},{"role":"answerer","user_id":"anon_2ec829e4cb26e28f","comment_id":"et933ip","kind":"comment","text":"Or maybe it just works when logged in to Coinbase. Right now it just leads to a 404.","timestamp":"2019-07-08T11:01:57+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0937bc255c80fed5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2ec829e4cb26e28f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"et930ux","thanks_reply_id":"et931mn","post_score":19,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_f28f3302f6457a74","answerer_user_id":"anon_6dbf9d046575625e","subreddit":"programming","timestamp":"2019-07-14T06:26:50+00:00","post_id":"cczvar","question":"Any logic based software dev tool which helps building code gradually?","preferred_answer":"> I thought it is not what I am looking for because it seemed a lot less about logic programming than eg. Prolog.\n\nYes, it's a different paradigm than, say Prolog. I'm not very well versed in logic programming, so can't help with that too much, but dependently typed languages are usually functional. However, a dependent type system can express any statement in constructive (intuitionistic) logic of second order, so it does have a lot to do with logic, just in a different way than Prolog. Prolog kinda solves logical equations for you, here you state logical statements and prove them.\n\n> Do you know about a programming language which is logic based but also has dependent types?\n\nI'm not aware of any language that's like Prolog but has dependent types.\n\n> For dependent types: why did you choose Pie?\n\nI used it simply because it was the language used in a book I read called The Little Typer. If you want to learn about dependent types, I very highly recommend that book, it's awesome! The Pie language is a toy language, so you'll use it just for learning.","full_conversation":[{"role":"OP","user_id":"anon_f28f3302f6457a74","comment_id":"cczvar","kind":"post","text":"Any logic based software dev tool which helps building code gradually?","timestamp":"2019-07-14T06:26:50+00:00","score":0},{"role":"answerer","user_id":"anon_6dbf9d046575625e","comment_id":"etqyhug","kind":"comment","text":"> I thought it is not what I am looking for because it seemed a lot less about logic programming than eg. Prolog.\n\nYes, it's a different paradigm than, say Prolog. I'm not very well versed in logic programming, so can't help with that too much, but dependently typed languages are usually functional. However, a dependent type system can express any statement in constructive (intuitionistic) logic of second order, so it does have a lot to do with logic, just in a different way than Prolog. Prolog kinda solves logical equations for you, here you state logical statements and prove them.\n\n> Do you know about a programming language which is logic based but also has dependent types?\n\nI'm not aware of any language that's like Prolog but has dependent types.\n\n> For dependent types: why did you choose Pie?\n\nI used it simply because it was the language used in a book I read called The Little Typer. If you want to learn about dependent types, I very highly recommend that book, it's awesome! The Pie language is a toy language, so you'll use it just for learning.","timestamp":"2019-07-14T12:24:01+00:00","score":1},{"role":"OP","user_id":"anon_f28f3302f6457a74","comment_id":"etr050e","kind":"comment","text":"Thank you very much for the insights! \n\nThat is really useful!\n\nI left out 2 things in my previous comment:\n1. Thank you for answering, I know the form of the question was vague, I just could not express it better. The fact some people get the sense of it means a lot to me.\n\n2. You nailed it! :) What I'd like to do is remove complexity as much as possible, it is funny that you have also seen :)\nBut I want to do that with the use of better tooling and I am aware of the intrinsic complexity of things.","timestamp":"2019-07-14T12:49:06+00:00","score":1},{"role":"answerer","user_id":"anon_6dbf9d046575625e","comment_id":"etr152w","kind":"comment","text":"Glad to have helped :)","timestamp":"2019-07-14T13:03:52+00:00","score":1},{"role":"OP","user_id":"anon_f28f3302f6457a74","comment_id":"etr46jt","kind":"comment","text":"Do you have the book as a pdf? I can't find it anywhere just the paperback version.","timestamp":"2019-07-14T13:44:49+00:00","score":1},{"role":"answerer","user_id":"anon_6dbf9d046575625e","comment_id":"etr6iw8","kind":"comment","text":"No, I have the paperback form. But perhaps you could find it in a larger library? Perhaps not, it's a relatively new book. Either way, the paperback version was worth it for me.","timestamp":"2019-07-14T14:13:48+00:00","score":1},{"role":"OP","user_id":"anon_f28f3302f6457a74","comment_id":"etr7qlx","kind":"comment","text":"Thanks!","timestamp":"2019-07-14T14:27:51+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_f28f3302f6457a74","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6dbf9d046575625e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"etqyhug","thanks_reply_id":"etr050e","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_92f7c13ceb319bc5","answerer_user_id":"anon_f0a83a3f61fd3e26","subreddit":"programming","timestamp":"2019-07-26T13:43:11+00:00","post_id":"ci311t","question":"How I built a spreadsheet app with Python to make data science easier","preferred_answer":"Dude, this shit is absolutely way too good to be free. You should create a commercial license for this project ASAP. The source code could still be kept open.","full_conversation":[{"role":"OP","user_id":"anon_92f7c13ceb319bc5","comment_id":"ci311t","kind":"post","text":"How I built a spreadsheet app with Python to make data science easier","timestamp":"2019-07-26T13:43:11+00:00","score":1020},{"role":"answerer","user_id":"anon_f0a83a3f61fd3e26","comment_id":"ev2q7vz","kind":"comment","text":"Dude, this shit is absolutely way too good to be free. You should create a commercial license for this project ASAP. The source code could still be kept open.","timestamp":"2019-07-26T22:56:22+00:00","score":1},{"role":"OP","user_id":"anon_92f7c13ceb319bc5","comment_id":"ev4lct2","kind":"comment","text":"Thanks for the compliment! But I'm a big believer in open core and paid premium/enterprise type of software companies such as GitLab or Elastic(search). This version of Grid studio I think (the one you host locally) can be perfectly available for free. \n\nIf there's demand for it in the future I'll consider developing a SaaS version that is hosted on public (or private) cloud possibly with features/integrations that appeal more to the commercial user (e.g. companies with existing software/tools/databases) and that are less relevant to the single user.","timestamp":"2019-07-27T08:30:27+00:00","score":1},{"role":"answerer","user_id":"anon_f0a83a3f61fd3e26","comment_id":"ev6nnm8","kind":"comment","text":"Selling this as a service sounds like a good idea. As a small business owner myself, a paid product does not have to be in direct conflict with open source. I just wanted to open your eyes to a great opportunity that could put food on your table for many years to come.","timestamp":"2019-07-27T17:39:06+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_92f7c13ceb319bc5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f0a83a3f61fd3e26","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ev2q7vz","thanks_reply_id":"ev4lct2","post_score":1020,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_39aee21c86d21335","answerer_user_id":"anon_18617530075dcc9b","subreddit":"programming","timestamp":"2019-07-30T19:55:01+00:00","post_id":"cjx45b","question":"What do Basecamp, Github and Twitch have in common? They Are Top-Notch Ruby on Rails Examples","preferred_answer":"No way?\nDidn't know that!\nCool piece of trivia","full_conversation":[{"role":"OP","user_id":"anon_39aee21c86d21335","comment_id":"cjx45b","kind":"post","text":"What do Basecamp, Github and Twitch have in common? They Are Top-Notch Ruby on Rails Examples","timestamp":"2019-07-30T19:55:01+00:00","score":0},{"role":"answerer","user_id":"anon_18617530075dcc9b","comment_id":"evgvgtt","kind":"comment","text":"No way?\nDidn't know that!\nCool piece of trivia","timestamp":"2019-07-30T19:55:44+00:00","score":1},{"role":"OP","user_id":"anon_39aee21c86d21335","comment_id":"evgvur4","kind":"comment","text":"Thanks, man, that's not all! Shopify, Airbnb or Kickstarter are also developed in RoR. So much for thinking, that RoR is mostly for doing fancy and beautifully looking, but not much functional websites am I right?","timestamp":"2019-07-30T19:58:20+00:00","score":1},{"role":"answerer","user_id":"anon_18617530075dcc9b","comment_id":"evhpotm","kind":"comment","text":"Are you right?\n\nYou are painfully right. \n\nSome people forget that fundamentals rule the world.","timestamp":"2019-07-30T23:43:20+00:00","score":-2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_39aee21c86d21335","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_18617530075dcc9b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"evgvgtt","thanks_reply_id":"evgvur4","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_e5a19eadac20fec4","answerer_user_id":"anon_0e2dfce987be51d7","subreddit":"programming","timestamp":"2019-07-31T10:38:24+00:00","post_id":"ck6q6u","question":"Android vs iOS Mobile App Development, Which Platform is Best for Startups?","preferred_answer":"Your decision to chose one is bound to get affected by several factors. Let's try understanding them\n\n1. Demographics - Android - For an audience based in Asian and developing countries \niOS - For an audience based in Western Europe & Northern America\n2. Age group - Android - Young audience \niOS - Aged audience\n3. Income - Android - Low-income groups \niOS - High-income groups\n4. Time - Android - More time consuming \niOS - Less time consuming\n5. FLexibility - Android - More flexible \niOS - Less flexible\n6. Costing - Android - Low cost \niOS - High cost\n7. Language - Android - Difficult to code \niOS - Easy to code\n\nHaving a clear picture of these factors and your choices amongst these will help you make a decision.","full_conversation":[{"role":"OP","user_id":"anon_e5a19eadac20fec4","comment_id":"ck6q6u","kind":"post","text":"Android vs iOS Mobile App Development, Which Platform is Best for Startups?","timestamp":"2019-07-31T10:38:24+00:00","score":0},{"role":"answerer","user_id":"anon_0e2dfce987be51d7","comment_id":"ewnyxua","kind":"comment","text":"Your decision to chose one is bound to get affected by several factors. Let's try understanding them\n\n1. Demographics - Android - For an audience based in Asian and developing countries \niOS - For an audience based in Western Europe & Northern America\n2. Age group - Android - Young audience \niOS - Aged audience\n3. Income - Android - Low-income groups \niOS - High-income groups\n4. Time - Android - More time consuming \niOS - Less time consuming\n5. FLexibility - Android - More flexible \niOS - Less flexible\n6. Costing - Android - Low cost \niOS - High cost\n7. Language - Android - Difficult to code \niOS - Easy to code\n\nHaving a clear picture of these factors and your choices amongst these will help you make a decision.","timestamp":"2019-08-12T08:08:25+00:00","score":1},{"role":"OP","user_id":"anon_e5a19eadac20fec4","comment_id":"ewqsmsp","kind":"comment","text":"Perfect observation @Khushbo0\\_09","timestamp":"2019-08-13T06:21:26+00:00","score":1},{"role":"answerer","user_id":"anon_0e2dfce987be51d7","comment_id":"ewqugq1","kind":"comment","text":"I hope it helped","timestamp":"2019-08-13T07:01:14+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e5a19eadac20fec4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0e2dfce987be51d7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ewnyxua","thanks_reply_id":"ewqsmsp","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_a98b9a790c33770a","answerer_user_id":"anon_30369eebc51111e7","subreddit":"programming","timestamp":"2019-08-04T18:23:00+00:00","post_id":"clzn8i","question":"What's In A Git Commit?","preferred_answer":"I like the favicon.","full_conversation":[{"role":"OP","user_id":"anon_a98b9a790c33770a","comment_id":"clzn8i","kind":"post","text":"What's In A Git Commit?","timestamp":"2019-08-04T18:23:00+00:00","score":25},{"role":"answerer","user_id":"anon_30369eebc51111e7","comment_id":"evzdcgz","kind":"comment","text":"I like the favicon.","timestamp":"2019-08-04T21:40:20+00:00","score":8},{"role":"OP","user_id":"anon_a98b9a790c33770a","comment_id":"evzeg3q","kind":"comment","text":"Thanks Buddy!","timestamp":"2019-08-04T21:52:50+00:00","score":2},{"role":"answerer","user_id":"anon_30369eebc51111e7","comment_id":"ew0i16y","kind":"comment","text":"I like the article too.","timestamp":"2019-08-05T07:25:32+00:00","score":2},{"role":"OP","user_id":"anon_a98b9a790c33770a","comment_id":"ew1ei4o","kind":"comment","text":"Thanks for the feedback!","timestamp":"2019-08-05T16:14:37+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a98b9a790c33770a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_30369eebc51111e7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"evzdcgz","thanks_reply_id":"evzeg3q","post_score":25,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_6a7e7244674de8bc","answerer_user_id":"anon_7d1b4307d871d8a7","subreddit":"programming","timestamp":"2019-08-05T03:17:18+00:00","post_id":"cm5m3u","question":"Friends, what was the most difficult thing on your path as a programmer?","preferred_answer":"Telling myself I am a programmer. Even though I still don't fully believe it.","full_conversation":[{"role":"OP","user_id":"anon_6a7e7244674de8bc","comment_id":"cm5m3u","kind":"post","text":"Friends, what was the most difficult thing on your path as a programmer?","timestamp":"2019-08-05T03:17:18+00:00","score":0},{"role":"answerer","user_id":"anon_7d1b4307d871d8a7","comment_id":"ew03ze0","kind":"comment","text":"Telling myself I am a programmer. Even though I still don't fully believe it.","timestamp":"2019-08-05T03:18:22+00:00","score":9},{"role":"OP","user_id":"anon_6a7e7244674de8bc","comment_id":"ew0423n","kind":"comment","text":">Telling myself I am a programmer. Even though I still don't fully believe it.\n\nThanks for the answer! What language do you use?","timestamp":"2019-08-05T03:19:26+00:00","score":1},{"role":"answerer","user_id":"anon_7d1b4307d871d8a7","comment_id":"ew05mrs","kind":"comment","text":"Python & React","timestamp":"2019-08-05T03:41:46+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6a7e7244674de8bc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7d1b4307d871d8a7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ew03ze0","thanks_reply_id":"ew0423n","post_score":0,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_ef307c827ef53b53","answerer_user_id":"anon_28445f433a736222","subreddit":"programming","timestamp":"2019-08-09T16:26:06+00:00","post_id":"co4pvs","question":"Is it time to require licenses for software developers?","preferred_answer":"A trained engineer introduced a bug in a codebase used by finance guys. This led to inaccurate reporting. His bug was introduced because he didn’t understand the implications of what he had written.\n\nSorry but your argument doesn’t hold.","full_conversation":[{"role":"OP","user_id":"anon_ef307c827ef53b53","comment_id":"co4pvs","kind":"post","text":"Is it time to require licenses for software developers?","timestamp":"2019-08-09T16:26:06+00:00","score":0},{"role":"answerer","user_id":"anon_28445f433a736222","comment_id":"ewhint9","kind":"comment","text":"A trained engineer introduced a bug in a codebase used by finance guys. This led to inaccurate reporting. His bug was introduced because he didn’t understand the implications of what he had written.\n\nSorry but your argument doesn’t hold.","timestamp":"2019-08-10T03:54:52+00:00","score":2},{"role":"OP","user_id":"anon_ef307c827ef53b53","comment_id":"ewhq9l5","kind":"comment","text":"No training or developer is perfect, and I never claimed otherwise. Untrained developers don't even know when they do something wrong out of ignorance of what the wrong thing to do is.","timestamp":"2019-08-10T06:08:47+00:00","score":0},{"role":"answerer","user_id":"anon_28445f433a736222","comment_id":"ewi3rqt","kind":"comment","text":"That is the thing.\n\nI keep fixing bugs of seasoned engineers who, other than being smart, don’t realise that the bug exists.\n\nIt isn’t out of ignorance, and most developers don’t do things out of ignorance.","timestamp":"2019-08-10T11:38:28+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ef307c827ef53b53","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_28445f433a736222","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ewhint9","thanks_reply_id":"ewhq9l5","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_deded3dc9422c2db","answerer_user_id":"anon_4baadfbf553a5deb","subreddit":"programming","timestamp":"2019-08-24T09:22:24+00:00","post_id":"cura13","question":"When does a when expression in Kotlin need to be exhaustive, and when does it not","preferred_answer":"TL;DR: When used as an expression. \n\nIt is to be expected since all paths should return a value in the expression form, whereas the statement form has no value, and can thus be non-exhaustive. The [official documentation](https://kotlinlang.org/docs/reference/control-flow.html#when-expression) sums it up nicely: \n\n>\tIf when is used as an expression, the else branch is mandatory, unless the compiler can prove that all possible cases are covered with branch conditions (as, for example, with enum class entries and sealed class subtypes).","full_conversation":[{"role":"OP","user_id":"anon_deded3dc9422c2db","comment_id":"cura13","kind":"post","text":"When does a when expression in Kotlin need to be exhaustive, and when does it not","timestamp":"2019-08-24T09:22:24+00:00","score":3},{"role":"answerer","user_id":"anon_4baadfbf553a5deb","comment_id":"ey10arx","kind":"comment","text":"TL;DR: When used as an expression. \n\nIt is to be expected since all paths should return a value in the expression form, whereas the statement form has no value, and can thus be non-exhaustive. The [official documentation](https://kotlinlang.org/docs/reference/control-flow.html#when-expression) sums it up nicely: \n\n>\tIf when is used as an expression, the else branch is mandatory, unless the compiler can prove that all possible cases are covered with branch conditions (as, for example, with enum class entries and sealed class subtypes).","timestamp":"2019-08-24T22:44:38+00:00","score":3},{"role":"OP","user_id":"anon_deded3dc9422c2db","comment_id":"ey1yvlq","kind":"comment","text":"Thanks for the explanation. It sounds so simple.\n\nHowever, the tricky part seems to be to understand [in what cases it actually is used as an expression](https://www.reddit.com/r/Kotlin/comments/cura4x/when_does_a_when_expression_in_kotlin_need_to_be/exzm7li?utm_source=share&utm_medium=web2x).","timestamp":"2019-08-25T07:08:15+00:00","score":2},{"role":"answerer","user_id":"anon_4baadfbf553a5deb","comment_id":"ey27106","kind":"comment","text":"That last paragraph of the linked comment is spot in. The confusion seems to stem from the assumption that `Unit` is treated as a value by the compiler - it is not. It is pretty straight-forward to tell when the `when` is a statement or an expression, it does not differ from other constructs in this regard. I think what's actually confusing you is the implicit return. \n\nFirst, let's look at a relevant part of the [official documentation](https://kotlinlang.org/docs/reference/lambdas.html#lambda-expression-syntax) (emphasis mine): \n\n>\tIf the inferred return type of the lambda _is not_ `Unit`, the last (or possibly single) expression inside the lambda body is treated as the return value.\n\nIn other words, if the `when` is last in a lambda, and it's _not_ inferred to return Unit, its result will be returned, hence it will be an expression: the operand of the `return` statement. This is not unique to `when`, for example, a if a call to `println()` was last in your lambda, the function call would too be treated as a statement, where as a call to `returnSomething()` would be treated as an expression. \n \nDon't get me wrong though, I really like that you did this research. You found something that (perhaps) confused you, and decided to figure out just exactly how it works - I really like that.","timestamp":"2019-08-25T10:12:46+00:00","score":1},{"role":"OP","user_id":"anon_deded3dc9422c2db","comment_id":"ey29dwv","kind":"comment","text":">Don't get me wrong though, I really like that you did this research. You found something that (perhaps) confused you, and decided to figure out just exactly how it works - I really like that.\n\nThanks. And the stuff I'm now learning thanks to you and /u/Slugamoon is exactly the kind of new insight I was hoping for. :)","timestamp":"2019-08-25T11:08:16+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_deded3dc9422c2db","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4baadfbf553a5deb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ey10arx","thanks_reply_id":"ey1yvlq","post_score":3,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_078b6f72eda283ee","answerer_user_id":"anon_6225dde893ad9e07","subreddit":"programming","timestamp":"2019-08-24T21:58:23+00:00","post_id":"cuzq2h","question":"Why We Shouldn’t Use TDD","preferred_answer":"> My first big issue with TDD is that it tells you to write tests first. How are we supposed to write a test for code that does not exist? \n\nThe point is that you're supposed to think about what you want, before you try to make it. Write the test for what you have in mind, observing that it fails before you actually create it. \n\nYou're also missing code samples in that first section.","full_conversation":[{"role":"OP","user_id":"anon_078b6f72eda283ee","comment_id":"cuzq2h","kind":"post","text":"Why We Shouldn’t Use TDD","timestamp":"2019-08-24T21:58:23+00:00","score":0},{"role":"answerer","user_id":"anon_6225dde893ad9e07","comment_id":"ey0x9xv","kind":"comment","text":"> My first big issue with TDD is that it tells you to write tests first. How are we supposed to write a test for code that does not exist? \n\nThe point is that you're supposed to think about what you want, before you try to make it. Write the test for what you have in mind, observing that it fails before you actually create it. \n\nYou're also missing code samples in that first section.","timestamp":"2019-08-24T22:19:55+00:00","score":32},{"role":"OP","user_id":"anon_078b6f72eda283ee","comment_id":"ey1071i","kind":"comment","text":"The Medium editor kept deleting my code samples. Thanks, I've added them back.\n\nThe point of why we write software when we do TDD gets completely lost. We become far too focused on test rather than solving problems with code. We can become inundated with useless tests for simple things that really don't need tests. When we follow TDD coding becomes about tests rather than problem solving. That is the issue.","timestamp":"2019-08-24T22:43:31+00:00","score":0},{"role":"answerer","user_id":"anon_6225dde893ad9e07","comment_id":"ey10mkh","kind":"comment","text":"I personally don't stick to TDD religiously, but I do think about the kinds of tests I would write, if time weren't a factor. Simply reminding myself that I'm going to have to write unit tests later makes me want to design the component in a way that facilitates mocking of dependencies and ease of testing. I can see how strict TDD would get taxing.","timestamp":"2019-08-24T22:48:17+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_078b6f72eda283ee","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6225dde893ad9e07","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ey0x9xv","thanks_reply_id":"ey1071i","post_score":0,"answer_score":32,"preferred_answer_is_top_level":true}} {"user_id":"anon_5e69fd4a45b5777f","answerer_user_id":"anon_aae179fc1065d5eb","subreddit":"programming","timestamp":"2019-09-08T19:58:36+00:00","post_id":"d1g0t3","question":"Why We Fail at Keeping Git Secrets","preferred_answer":"The .gitignore sample is just great!","full_conversation":[{"role":"OP","user_id":"anon_5e69fd4a45b5777f","comment_id":"d1g0t3","kind":"post","text":"Why We Fail at Keeping Git Secrets","timestamp":"2019-09-08T19:58:36+00:00","score":6},{"role":"answerer","user_id":"anon_aae179fc1065d5eb","comment_id":"eznd2yk","kind":"comment","text":"The .gitignore sample is just great!","timestamp":"2019-09-09T04:42:58+00:00","score":2},{"role":"OP","user_id":"anon_5e69fd4a45b5777f","comment_id":"ezpeu4r","kind":"comment","text":"Thanks! I know the approach can be a bit nuclear, but it seems like we need to be more aggressive with our tactic in general 🙂","timestamp":"2019-09-09T14:28:05+00:00","score":1},{"role":"answerer","user_id":"anon_aae179fc1065d5eb","comment_id":"ezpungf","kind":"comment","text":"Not nuclear at all: whitelisting instead of blacklisting is one of the principle of a good security strategy.","timestamp":"2019-09-09T17:09:04+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5e69fd4a45b5777f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_aae179fc1065d5eb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"eznd2yk","thanks_reply_id":"ezpeu4r","post_score":6,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_bc1d49c51619f4a9","answerer_user_id":"anon_12c33e962809251e","subreddit":"programming","timestamp":"2019-09-10T13:43:00+00:00","post_id":"d27pkr","question":"Best C++ in-depth tutorial I've found so far, but I prefer reading. Any sugestions?","preferred_answer":"'A Tour of C++' by Stroustrup. At about 220 pages, it is a quick tour of C++ (2017) for people that already know how to program.","full_conversation":[{"role":"OP","user_id":"anon_bc1d49c51619f4a9","comment_id":"d27pkr","kind":"post","text":"Best C++ in-depth tutorial I've found so far, but I prefer reading. Any sugestions?","timestamp":"2019-09-10T13:43:00+00:00","score":0},{"role":"answerer","user_id":"anon_12c33e962809251e","comment_id":"eztigro","kind":"comment","text":"'A Tour of C++' by Stroustrup. At about 220 pages, it is a quick tour of C++ (2017) for people that already know how to program.","timestamp":"2019-09-10T15:58:12+00:00","score":6},{"role":"OP","user_id":"anon_bc1d49c51619f4a9","comment_id":"eztrtxj","kind":"comment","text":"I saw it on the library at my uni and was wondering if it was good, thanks. Btw, it's the 2009 version, is it still usefull or should i look for a newer version?","timestamp":"2019-09-10T17:40:17+00:00","score":3},{"role":"answerer","user_id":"anon_12c33e962809251e","comment_id":"eztvtof","kind":"comment","text":"I would look for a newer version, as the language changed a lot with C++ 11/14","timestamp":"2019-09-10T18:22:50+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bc1d49c51619f4a9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_12c33e962809251e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"eztigro","thanks_reply_id":"eztrtxj","post_score":0,"answer_score":6,"preferred_answer_is_top_level":false}} {"user_id":"anon_fa9212aa42a880d0","answerer_user_id":"anon_7f749cc4515ceb42","subreddit":"programming","timestamp":"2019-09-11T00:07:08+00:00","post_id":"d2h67i","question":"What Program Creates these sorts of Animations?","preferred_answer":"Done manually in paint.","full_conversation":[{"role":"OP","user_id":"anon_fa9212aa42a880d0","comment_id":"d2h67i","kind":"post","text":"What Program Creates these sorts of Animations?","timestamp":"2019-09-11T00:07:08+00:00","score":0},{"role":"answerer","user_id":"anon_7f749cc4515ceb42","comment_id":"ezvigte","kind":"comment","text":"Done manually in paint.","timestamp":"2019-09-11T05:24:54+00:00","score":2},{"role":"OP","user_id":"anon_fa9212aa42a880d0","comment_id":"ezvk0a7","kind":"comment","text":"Ok great! I'll check that software out. Thanks!","timestamp":"2019-09-11T05:55:59+00:00","score":2},{"role":"answerer","user_id":"anon_7f749cc4515ceb42","comment_id":"ezvk2di","kind":"comment","text":"You should it's proper clever, it can do boxes, and lines too!!","timestamp":"2019-09-11T05:57:11+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fa9212aa42a880d0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7f749cc4515ceb42","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ezvigte","thanks_reply_id":"ezvk0a7","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_e75595665df6930f","answerer_user_id":"anon_22f10f1a8975fb81","subreddit":"programming","timestamp":"2019-09-11T17:15:15+00:00","post_id":"d2tjgh","question":"What's your suggestion on Sublime, microsoft visual studio, atom abd any other best software or IDE?","preferred_answer":"Microsoft VS is really good for languages like C, C++, and C# in my experience. Sublime is a great text editor. I prefer VS Code to Atom.","full_conversation":[{"role":"OP","user_id":"anon_e75595665df6930f","comment_id":"d2tjgh","kind":"post","text":"What's your suggestion on Sublime, microsoft visual studio, atom abd any other best software or IDE?","timestamp":"2019-09-11T17:15:15+00:00","score":0},{"role":"answerer","user_id":"anon_22f10f1a8975fb81","comment_id":"ezwzcbu","kind":"comment","text":"Microsoft VS is really good for languages like C, C++, and C# in my experience. Sublime is a great text editor. I prefer VS Code to Atom.","timestamp":"2019-09-11T19:02:15+00:00","score":2},{"role":"OP","user_id":"anon_e75595665df6930f","comment_id":"ezwzles","kind":"comment","text":"Thanks \n....for your comment dear","timestamp":"2019-09-11T19:05:05+00:00","score":1},{"role":"answerer","user_id":"anon_22f10f1a8975fb81","comment_id":"ezwzxs9","kind":"comment","text":"np","timestamp":"2019-09-11T19:08:52+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e75595665df6930f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_22f10f1a8975fb81","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ezwzcbu","thanks_reply_id":"ezwzles","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_1dc7fea98f4ab9da","answerer_user_id":"anon_e682f82a416c14a1","subreddit":"programming","timestamp":"2019-09-23T15:02:23+00:00","post_id":"d87pin","question":"Read a paper: Do programmers like gradual typing?","preferred_answer":"Unsound gradual typing(ie. Typescript) is nice and offers compile time type safety without the cost of runtime typechecks. Sound gradual typing however, tends to impose serious performance penalty that makes it hard to justify the choice of using the underlying programming language. \n\nI am all in for unsound gradual typing, until one day maybe, sound gradual typing will not slow down the program. I heard that it is possible to optimize gradually typed code to run faster than dynamic code, but it is still a theory in the making.\n\nThis article provides some interesting insights into the state of Sound gradual typing, the future doesnt look bright:\n\nhttp://www.ccis.northeastern.edu/home/types/publications/gradual-dead/pre-treatment.pdf","full_conversation":[{"role":"OP","user_id":"anon_1dc7fea98f4ab9da","comment_id":"d87pin","kind":"post","text":"Read a paper: Do programmers like gradual typing?","timestamp":"2019-09-23T15:02:23+00:00","score":5},{"role":"answerer","user_id":"anon_e682f82a416c14a1","comment_id":"f19l10y","kind":"comment","text":"Unsound gradual typing(ie. Typescript) is nice and offers compile time type safety without the cost of runtime typechecks. Sound gradual typing however, tends to impose serious performance penalty that makes it hard to justify the choice of using the underlying programming language. \n\nI am all in for unsound gradual typing, until one day maybe, sound gradual typing will not slow down the program. I heard that it is possible to optimize gradually typed code to run faster than dynamic code, but it is still a theory in the making.\n\nThis article provides some interesting insights into the state of Sound gradual typing, the future doesnt look bright:\n\nhttp://www.ccis.northeastern.edu/home/types/publications/gradual-dead/pre-treatment.pdf","timestamp":"2019-09-23T21:24:36+00:00","score":2},{"role":"OP","user_id":"anon_1dc7fea98f4ab9da","comment_id":"f1ac825","kind":"comment","text":"Agreed. Thanks for the link to that paper-- looks pretty interesting!\n\nPersonally I think only legacy codebases force you into gradual typing. If starting from scratch you'd probably just pick a statically typed language.","timestamp":"2019-09-24T01:57:08+00:00","score":1},{"role":"answerer","user_id":"anon_e682f82a416c14a1","comment_id":"f1aph8l","kind":"comment","text":"Actually even for new projects it’s still quite common to start with dynamically typed program and add type annotations gradually when the codebase grows in size. This is how things are being done in Python, especially when it comes to big data and ML. Code written by scientists rather than programmers also tend to start off as fully dynamic code in the beginning. But yeah for enterprise application, it’s more common just starting off with static typed language like Java, C# and Kotlin in the first place.","timestamp":"2019-09-24T05:05:54+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1dc7fea98f4ab9da","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e682f82a416c14a1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f19l10y","thanks_reply_id":"f1ac825","post_score":5,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_10cf070d455b8aa1","answerer_user_id":"anon_ba8f3bb7fd1b1600","subreddit":"programming","timestamp":"2019-10-04T14:21:00+00:00","post_id":"dd80fr","question":"How to Stress the C# Compiler","preferred_answer":"Here's another one about the DoS issues and exponential growth: [https://mattwarren.org/2017/11/08/A-DoS-Attack-against-the-C-Compiler/](https://mattwarren.org/2017/11/08/A-DoS-Attack-against-the-C-Compiler/) and that also links to older sources such as [https://stackoverflow.com/questions/14177225/why-does-field-declaration-with-duplicated-nested-type-in-generic-class-results/14178014](https://stackoverflow.com/questions/14177225/why-does-field-declaration-with-duplicated-nested-type-in-generic-class-results/14178014), a post in a codegolf stackexchange with almost literally the same approach here [https://codegolf.stackexchange.com/a/69200/12725](https://codegolf.stackexchange.com/a/69200/12725), and similar things explored here [https://twitter.com/matthewwarren/status/867753577346985984?lang=en](https://twitter.com/matthewwarren/status/867753577346985984?lang=en)","full_conversation":[{"role":"OP","user_id":"anon_10cf070d455b8aa1","comment_id":"dd80fr","kind":"post","text":"How to Stress the C# Compiler","timestamp":"2019-10-04T14:21:00+00:00","score":86},{"role":"answerer","user_id":"anon_ba8f3bb7fd1b1600","comment_id":"f2ixkvc","kind":"comment","text":"Here's another one about the DoS issues and exponential growth: [https://mattwarren.org/2017/11/08/A-DoS-Attack-against-the-C-Compiler/](https://mattwarren.org/2017/11/08/A-DoS-Attack-against-the-C-Compiler/) and that also links to older sources such as [https://stackoverflow.com/questions/14177225/why-does-field-declaration-with-duplicated-nested-type-in-generic-class-results/14178014](https://stackoverflow.com/questions/14177225/why-does-field-declaration-with-duplicated-nested-type-in-generic-class-results/14178014), a post in a codegolf stackexchange with almost literally the same approach here [https://codegolf.stackexchange.com/a/69200/12725](https://codegolf.stackexchange.com/a/69200/12725), and similar things explored here [https://twitter.com/matthewwarren/status/867753577346985984?lang=en](https://twitter.com/matthewwarren/status/867753577346985984?lang=en)","timestamp":"2019-10-05T08:29:50+00:00","score":1},{"role":"OP","user_id":"anon_10cf070d455b8aa1","comment_id":"f2jcxag","kind":"comment","text":"Thanks for finding the links. I've put some of them in my post.","timestamp":"2019-10-05T10:18:59+00:00","score":1},{"role":"answerer","user_id":"anon_ba8f3bb7fd1b1600","comment_id":"f42zgb3","kind":"comment","text":"It's impressive work, I sorry if I came across as disrespectful - it's not always easy to tell blog-spam from actual content.","timestamp":"2019-10-17T18:29:42+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_10cf070d455b8aa1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ba8f3bb7fd1b1600","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f2ixkvc","thanks_reply_id":"f2jcxag","post_score":86,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_2d59a1ba36c1e8b4","answerer_user_id":"anon_894e02f2fe8f69e0","subreddit":"programming","timestamp":"2019-10-17T09:41:09+00:00","post_id":"dj40lv","question":"When DRY Fails","preferred_answer":"I am out of this petty little exchange, but in case you want to understand what I am refering to, google \"popper falsifiability\" and his theory of science. It ties nicely with the empirical approach followed in physics, chemistry etc. and with the formal approach followed by mathematics, theoretical computer sciences etc.","full_conversation":[{"role":"OP","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"dj40lv","kind":"post","text":"When DRY Fails","timestamp":"2019-10-17T09:41:09+00:00","score":4},{"role":"answerer","user_id":"anon_894e02f2fe8f69e0","comment_id":"f469nr9","kind":"comment","text":"I am out of this petty little exchange, but in case you want to understand what I am refering to, google \"popper falsifiability\" and his theory of science. It ties nicely with the empirical approach followed in physics, chemistry etc. and with the formal approach followed by mathematics, theoretical computer sciences etc.","timestamp":"2019-10-18T13:39:19+00:00","score":0},{"role":"OP","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"f46kudd","kind":"comment","text":"And that was exactly what we talked about. We know.","timestamp":"2019-10-18T14:48:31+00:00","score":1},{"role":"answerer","user_id":"anon_894e02f2fe8f69e0","comment_id":"f46n1i2","kind":"comment","text":"It was also exactly what I talked about. I also know. It was doubtful that you both knew what you were talking about, since you were freely mixing disciplines; e.g. bringing up up the very empirical discipline of physics as context when discussing falsifiability when I brought it up in the context of another, much less empirical discipline, that is software engineering. As obvious to anyone who knows Popper, falsifiability is very appliable to physics and much less obviously appliable to engineering disciplines. You did not seem to know this.\n\nIn particular, you seemed to be ignorant about the following:\n\n\"There are combinations of prediction types and methodologies that, while each component is compatible with falsifiability on its own, renders falsification impossible together.\"","timestamp":"2019-10-18T15:02:24+00:00","score":1},{"role":"OP","user_id":"anon_2d59a1ba36c1e8b4","comment_id":"f46ow07","kind":"comment","text":"You are imagining things. Unfalsifiable still means that it's theoretically impossible to falsify. This means the field doesn't matter at all because it's now a logic error and if it's physics or social sciences doesn't matter one bit.","timestamp":"2019-10-18T15:13:07+00:00","score":1},{"role":"answerer","user_id":"anon_894e02f2fe8f69e0","comment_id":"f46qbgl","kind":"comment","text":"> You are imagining things.\n\nFun way to write \"quoting things\".\n\n> Unfalsifiable still means that it's theoretically impossible to falsify. \n\nSorry to break it to you, it does not. What you propose is a stronger version than unsatisfiability. Falsifiability is, I quote: \"A statement, hypothesis, or theory is falsifiable if it can be demonstrated to be false **by observation.**\" Then the opposite of that is a statement, hypothesis, or theory than cannot be demonstrated to be false **by observation.** What you omit is the observation part. It has nothing to do with logic. Logic as a subfield of math is not concerned with falsifiability. (Just read the wikipedia article about the subject you claim to know about: https://en.wikipedia.org/wiki/Falsifiability#Mathematics)\n\nAlso funny how you managed to dodge my argument about unfalsifiability cropping in areas like psychology and engineering disciplines.\n\nAnyways, I am out, this discussion is fruitless. You really seem to cling to winning an internet discussion, yet being inprecise as shit.\n\nEdit: Sorry about me getting angry - I did not like the way you wrote to me, but I should always assume the best with the person I am writing with.","timestamp":"2019-10-18T15:21:47+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_2d59a1ba36c1e8b4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_894e02f2fe8f69e0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f469nr9","thanks_reply_id":"f46kudd","post_score":4,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_b928593daf3dfcbd","answerer_user_id":"anon_fbd134f76f7e5bd7","subreddit":"programming","timestamp":"2019-10-19T05:51:44+00:00","post_id":"djzp7n","question":"How to Code MapReduce in C from Scratch Using Threads: Map","preferred_answer":"Thanks! On the first point: please note I'm not talking about returning a composite value - map returns a _stream_ of values for each input; the stream can be empty, can have one value, can have a billion values (such use cases exist). Eg in the Word count example, from each document you produce a stream of (word, 1) tuples for each word in the document, which can be quite a lot.\n\nOn the second about reduce: eg imagine a MapReduce that calculates the quantiles of values for each key. You maybe technically could express that with an associative commutative operation, but it's much easier to do by just processing the full stream of values for each key.","full_conversation":[{"role":"OP","user_id":"anon_b928593daf3dfcbd","comment_id":"djzp7n","kind":"post","text":"How to Code MapReduce in C from Scratch Using Threads: Map","timestamp":"2019-10-19T05:51:44+00:00","score":4},{"role":"answerer","user_id":"anon_fbd134f76f7e5bd7","comment_id":"f4idrrz","kind":"comment","text":"Thanks! On the first point: please note I'm not talking about returning a composite value - map returns a _stream_ of values for each input; the stream can be empty, can have one value, can have a billion values (such use cases exist). Eg in the Word count example, from each document you produce a stream of (word, 1) tuples for each word in the document, which can be quite a lot.\n\nOn the second about reduce: eg imagine a MapReduce that calculates the quantiles of values for each key. You maybe technically could express that with an associative commutative operation, but it's much easier to do by just processing the full stream of values for each key.","timestamp":"2019-10-20T20:19:43+00:00","score":2},{"role":"OP","user_id":"anon_b928593daf3dfcbd","comment_id":"f4if09p","kind":"comment","text":"Thanks for your answer! I didn't know that last case counted as reduce, for instance. So basically after grouping, any operation on a single set counts as a reduce? \nOn the first part, I counted that kind of stuff as a structure, but again, I'll make sure to make that clearer on the article.\n\nThank you very much! Is there any follow up bibliography you could suggest to me for these topics?","timestamp":"2019-10-20T20:26:33+00:00","score":1},{"role":"answerer","user_id":"anon_fbd134f76f7e5bd7","comment_id":"f4imsvh","kind":"comment","text":"Yeah, I prefer to think of MapReduce as Map and GroupBy. MapReduce is just one pretty arbitrary and limited combination of what you can do with mapping and grouping. For literature on this kind of systems specifically, check out the Flume Java paper, papers on Spark and Flink and The Dataflow Model, or ask questions to user@beam.apache.org, a lot of my colleagues hang out there and are happy to answer questions.","timestamp":"2019-10-20T21:26:06+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b928593daf3dfcbd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fbd134f76f7e5bd7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f4idrrz","thanks_reply_id":"f4if09p","post_score":4,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_0ca31a9dee6a90a6","answerer_user_id":"anon_fbd134f76f7e5bd7","subreddit":"programming","timestamp":"2019-10-30T10:50:07+00:00","post_id":"dp51xk","question":"What do you think of this sample chapter on Dijkstra's algorithm?","preferred_answer":"There's a number of issues:\n\nThe chapter starts with suggesting that it will explain how iGo or Google Maps find shortest paths, but that's not actually how they find them - the Dijkstra algorithm is not practical for real-time pathfinding on a graph with billions of edges (things like public transit schedule or traffic changing over time introduce further complications). It would be good to describe more realistically when this algorithm is useful, and give links to some modern ultra-fast pathfinding algorithms that are actually used for road networks (e.g. https://en.wikipedia.org/wiki/Contraction_hierarchies, https://en.wikipedia.org/wiki/Hub_labels).\n\nThere's a mixture of Python and C++ that is pretty confusing - graph examples are in Python, the source code at the end is in C++.\n\nThe text gives absolutely no insight as to why the algorithm works correctly - which is, really, the most important part, and really fun for this algorithm - a good analogy is that each edge is a loose rope and you start pulling from the source vertex; at each step one more edge becomes tense.\n\nThere is no example of the algorithm in action.\n\nThe provided C++ implementation is inefficient; it would be good to at least link to an efficient implementation somewhere on github.","full_conversation":[{"role":"OP","user_id":"anon_0ca31a9dee6a90a6","comment_id":"dp51xk","kind":"post","text":"What do you think of this sample chapter on Dijkstra's algorithm?","timestamp":"2019-10-30T10:50:07+00:00","score":0},{"role":"answerer","user_id":"anon_fbd134f76f7e5bd7","comment_id":"f5vde6w","kind":"comment","text":"There's a number of issues:\n\nThe chapter starts with suggesting that it will explain how iGo or Google Maps find shortest paths, but that's not actually how they find them - the Dijkstra algorithm is not practical for real-time pathfinding on a graph with billions of edges (things like public transit schedule or traffic changing over time introduce further complications). It would be good to describe more realistically when this algorithm is useful, and give links to some modern ultra-fast pathfinding algorithms that are actually used for road networks (e.g. https://en.wikipedia.org/wiki/Contraction_hierarchies, https://en.wikipedia.org/wiki/Hub_labels).\n\nThere's a mixture of Python and C++ that is pretty confusing - graph examples are in Python, the source code at the end is in C++.\n\nThe text gives absolutely no insight as to why the algorithm works correctly - which is, really, the most important part, and really fun for this algorithm - a good analogy is that each edge is a loose rope and you start pulling from the source vertex; at each step one more edge becomes tense.\n\nThere is no example of the algorithm in action.\n\nThe provided C++ implementation is inefficient; it would be good to at least link to an efficient implementation somewhere on github.","timestamp":"2019-10-31T01:59:45+00:00","score":3},{"role":"OP","user_id":"anon_0ca31a9dee6a90a6","comment_id":"f5w1ggj","kind":"comment","text":"Hi @jkff! Many thanks for the response. Could you elaborate on the source of inefficiency? I have used it in online contests and it proved to be efficient enough. What is the main issue with it? I would truely like to learn.","timestamp":"2019-10-31T08:34:47+00:00","score":1},{"role":"answerer","user_id":"anon_fbd134f76f7e5bd7","comment_id":"f5yua9m","kind":"comment","text":"Sorry, the comment on inefficiency is my mistake, I misunderstood your usage of the heap. On second look it looks fine.","timestamp":"2019-10-31T22:42:09+00:00","score":2},{"role":"OP","user_id":"anon_0ca31a9dee6a90a6","comment_id":"f5zyd9p","kind":"comment","text":"Hi! Glad to hear that. I was terrified that my whole life is a lie. 😅 Actually I know that it is not optimal asymptotically, but it is kind of okay for most practical purposes.","timestamp":"2019-11-01T07:56:16+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0ca31a9dee6a90a6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fbd134f76f7e5bd7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f5vde6w","thanks_reply_id":"f5w1ggj","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_0b9c363a1e81b6e1","answerer_user_id":"anon_52c9efd736b7a302","subreddit":"programming","timestamp":"2019-10-31T15:05:37+00:00","post_id":"dpotcj","question":"Do the Boring Stuff","preferred_answer":"I dont know if this is your site, but, it jitters a lot when scrolling on mobile, making it hard to read.\n\nAre you doing something heavyweight onscroll? It might be worth looking into that.","full_conversation":[{"role":"OP","user_id":"anon_0b9c363a1e81b6e1","comment_id":"dpotcj","kind":"post","text":"Do the Boring Stuff","timestamp":"2019-10-31T15:05:37+00:00","score":10},{"role":"answerer","user_id":"anon_52c9efd736b7a302","comment_id":"f5y2wbh","kind":"comment","text":"I dont know if this is your site, but, it jitters a lot when scrolling on mobile, making it hard to read.\n\nAre you doing something heavyweight onscroll? It might be worth looking into that.","timestamp":"2019-10-31T19:27:03+00:00","score":8},{"role":"OP","user_id":"anon_0b9c363a1e81b6e1","comment_id":"f5y424l","kind":"comment","text":"Hm, thanks for telling me. I'm using out of the box Ghost, so I thought it would be pretty solid. What phone/os/browser?","timestamp":"2019-10-31T19:35:11+00:00","score":2},{"role":"answerer","user_id":"anon_52c9efd736b7a302","comment_id":"f5y6d6r","kind":"comment","text":"Chrome 78 on Android Samsung J5 Prime","timestamp":"2019-10-31T19:51:22+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0b9c363a1e81b6e1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_52c9efd736b7a302","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f5y2wbh","thanks_reply_id":"f5y424l","post_score":10,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_3398cd10b0e8d677","answerer_user_id":"anon_a724518078f75227","subreddit":"programming","timestamp":"2019-11-03T03:34:41+00:00","post_id":"dqv96z","question":"I created a tool to help developers search for and copy commonly used coding snippets. What do you think?","preferred_answer":"There’s a site for that:\n\n[Rosetta Code](http://rosettacode.org/wiki/Rosetta_Code)","full_conversation":[{"role":"OP","user_id":"anon_3398cd10b0e8d677","comment_id":"dqv96z","kind":"post","text":"I created a tool to help developers search for and copy commonly used coding snippets. What do you think?","timestamp":"2019-11-03T03:34:41+00:00","score":5},{"role":"answerer","user_id":"anon_a724518078f75227","comment_id":"f6aclt2","kind":"comment","text":"There’s a site for that:\n\n[Rosetta Code](http://rosettacode.org/wiki/Rosetta_Code)","timestamp":"2019-11-03T04:22:55+00:00","score":6},{"role":"OP","user_id":"anon_3398cd10b0e8d677","comment_id":"f6aibkb","kind":"comment","text":"Thanks for the reply. Yes I am aware of Rosetta Code it is very comprehensive. But my goal is to create a tool with a more intuitive interface that is easier for developers to keep open in a browser tab while they code for quick and easy syntax lookups.","timestamp":"2019-11-03T05:01:32+00:00","score":1},{"role":"answerer","user_id":"anon_a724518078f75227","comment_id":"f6aj92d","kind":"comment","text":"That’s fair. I couldn’t test the search feature because I had the same lock-up/hanging issue on iOS that /u/venomous_raven mentioned when typing in the search field.","timestamp":"2019-11-03T05:08:01+00:00","score":3},{"role":"OP","user_id":"anon_3398cd10b0e8d677","comment_id":"f6aohi2","kind":"comment","text":"Got it. Since this is a tool that I intended to be used while developing I tested it a lot more thoroughly on desktop/laptop. But these days everything is so mobile heavy I definitely need to make sure it is clean there too.","timestamp":"2019-11-03T05:45:55+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3398cd10b0e8d677","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a724518078f75227","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f6aclt2","thanks_reply_id":"f6aibkb","post_score":5,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_41f80c32d79e4911","answerer_user_id":"anon_107a3eeaa5e61222","subreddit":"programming","timestamp":"2019-11-19T09:01:26+00:00","post_id":"dyhyh1","question":"How to build a user authentication system, from scratch","preferred_answer":"One of the things that is always missing from many of the \"lets invent this again\" is request throttling. This is quite important to not accidentally expose information about user accounts to an attacker.\n\nLets assume the following flow on your login approach:\n\n1. lookup user by email (30 ms)\n2. get current password from user (maybe in another table to keep history for things like ensuring a password is not reused - FYI this is another debate for another point) - another 30ms\n3. Do whatever hashing algo you are going to use (10 ms)\n4. General overhead during peak times low/times on DB performance (and indexes) especially on very large DBs can change step 1 and 2\n\nSo I attack with 1000 usernames/passwords. 950 of them return in 30ms, 50 of them return in 80ms. I just got info on those 50 being likely a valid username, now I can keep on attacking and iterating over those with common passwords of previously leaked DBs on said users.\n\nWe do dynamic request throttling of a minimum of 1 second. This is not noticeable for user when they do a login, but for an attacker we just capped his attempts at a max of 3600 per hour and inability to sniff usernames. Our systems is smart enough to look at failed averages on an hourly basis and increase throttling to up to 2.5 seconds maximum.\n\nLets go further, we apply this same mechanism for ANY action that either go from unauthenticated to authenticated (ie simple login, remember me token) OR any other action that represents an unauthenticated user dealing with a token or action that represents a user identity (think of reset password tokens etc, registers etc). Remember during register I can sniff out if user accounts exists or the same with password resets - (register: user already exists, reset password: we did not find a user with this email) - you just gave away authentication information.\n\nFor us, when a user resets their password, they receive an email whether or not they have an account with us or not, if valid email \"here is your token\", if not \"looks like we do not have an account with this email, request was made with this User Agent from X IP).\n\nNow on token management, generate something with high enough enthrophy,lets take reset password. Generate a token, include it via email, store the hash of the token in DB (db gets leaked no way to reset passwords or take ownership) - I know reset passwords expire quickly, are only one time use etc but still.\n\nFINALLY, EVERY attempt that a user makes to interact with \"getting authenticated or using a token representing user\" gets logged in attempt tables. Here we store user agent, IP, tokens, etc so we can identify possible attack approaches or anyone trying to do some fishy stuff - I know you can use logs for this, but having it in a DB gives you some more granularity to identify what type of attack maybe occuring.","full_conversation":[{"role":"OP","user_id":"anon_41f80c32d79e4911","comment_id":"dyhyh1","kind":"post","text":"How to build a user authentication system, from scratch","timestamp":"2019-11-19T09:01:26+00:00","score":54},{"role":"answerer","user_id":"anon_107a3eeaa5e61222","comment_id":"f81rtgx","kind":"comment","text":"One of the things that is always missing from many of the \"lets invent this again\" is request throttling. This is quite important to not accidentally expose information about user accounts to an attacker.\n\nLets assume the following flow on your login approach:\n\n1. lookup user by email (30 ms)\n2. get current password from user (maybe in another table to keep history for things like ensuring a password is not reused - FYI this is another debate for another point) - another 30ms\n3. Do whatever hashing algo you are going to use (10 ms)\n4. General overhead during peak times low/times on DB performance (and indexes) especially on very large DBs can change step 1 and 2\n\nSo I attack with 1000 usernames/passwords. 950 of them return in 30ms, 50 of them return in 80ms. I just got info on those 50 being likely a valid username, now I can keep on attacking and iterating over those with common passwords of previously leaked DBs on said users.\n\nWe do dynamic request throttling of a minimum of 1 second. This is not noticeable for user when they do a login, but for an attacker we just capped his attempts at a max of 3600 per hour and inability to sniff usernames. Our systems is smart enough to look at failed averages on an hourly basis and increase throttling to up to 2.5 seconds maximum.\n\nLets go further, we apply this same mechanism for ANY action that either go from unauthenticated to authenticated (ie simple login, remember me token) OR any other action that represents an unauthenticated user dealing with a token or action that represents a user identity (think of reset password tokens etc, registers etc). Remember during register I can sniff out if user accounts exists or the same with password resets - (register: user already exists, reset password: we did not find a user with this email) - you just gave away authentication information.\n\nFor us, when a user resets their password, they receive an email whether or not they have an account with us or not, if valid email \"here is your token\", if not \"looks like we do not have an account with this email, request was made with this User Agent from X IP).\n\nNow on token management, generate something with high enough enthrophy,lets take reset password. Generate a token, include it via email, store the hash of the token in DB (db gets leaked no way to reset passwords or take ownership) - I know reset passwords expire quickly, are only one time use etc but still.\n\nFINALLY, EVERY attempt that a user makes to interact with \"getting authenticated or using a token representing user\" gets logged in attempt tables. Here we store user agent, IP, tokens, etc so we can identify possible attack approaches or anyone trying to do some fishy stuff - I know you can use logs for this, but having it in a DB gives you some more granularity to identify what type of attack maybe occuring.","timestamp":"2019-11-19T15:04:19+00:00","score":49},{"role":"OP","user_id":"anon_41f80c32d79e4911","comment_id":"f81s112","kind":"comment","text":"Wooow many thanks!\nI will add this comment for sure!\n\nIt will take a while seems I am quite busy at the moment but I will add it!","timestamp":"2019-11-19T15:06:42+00:00","score":11},{"role":"answerer","user_id":"anon_107a3eeaa5e61222","comment_id":"f81sox4","kind":"comment","text":"Well there is a lot more to be added, was trying to keep it short and as others said, don't reinvent =)\n\nRemember me management is one of those things where you can go pretty bananas too. Session Id and \"Logged in User\" tokens cookies the same, little things like HTTP only, HTTPS only etc (so you can't get front end JS in there). Then you need to properly manage your app itself for Cross site scripting, HTTP header management for CSP and a ton more.\n\nDoing authentication correctly is a CRAP ton of work and you could write an entire book about it. For example, our session id and user tokens for authenticated users. We do a bit of \"security through obscurity\" by using 2 cookies, one for session and one for token (regardless of logged in or not). We use session and include in encrypted token (two way encryption), we also use things like user agent and remote address to include and verify that what is being decrypted from user tokens matches with current request. So now when decrypting the token, it has to match multiple points (the session id cookie we had issued previously, the previous IP and user agent), then compare to Session id on the current request (and the same for IP/user agent).\n\nEDIT: I'll keep on going since I am waiting on a meeting lol. Anti-CSRF tokens is another one that is often overlooked and needs to be part of your secure user management process. Then the fun one, the Remember Me token and \"How you got authenticated state\" - not every authenticated user is like the other. A user may get an authenticated state via login, remember me, login with 2FA. Now each of those may come with different abilities.\n\nI go in as Remember Me, I can do certain actions (like post a comment, read some stuff) BUT if I want to make a change to my personal information I cannot do so (eventhough I am authenticated) until I provide login/password again. On the topic of changing personal inforamtion.\n\n1. changes to first/last name = immediate\n2. changes to email address, requires elevation (as described above, need a second check on current pwd if user came from remember me)\n\nNow once the user changes the email address, you have a couple of use cases, send email to old and to new, both have to confirm before email address change is valid. \"Oh but I no longer have access to my old email\" - well, depending on what your app does, you may want to wait 24 hours before that email change gets completed or use another mechanism to verify that you are allowed to change critical information.\n\nOk meeting time. Laters =)","timestamp":"2019-11-19T15:14:06+00:00","score":13},{"role":"OP","user_id":"anon_41f80c32d79e4911","comment_id":"f81tcqj","kind":"comment","text":"Can I ask where you work? Feel free to don't answer!\n\nThe point of don't reinvent is that the services that are around are extremely expensive, so if you want to scrap by, you got to re-invent or re-implement this kind of things.\n\nIf you use libraries, you need to understand what is happening and why, hence this document.\n\nPlease, the more info you can provide the more the guide will be completed, so feel free to dump as much info as possible in here (or in github comments or via email) and I will distillate it and update the gist.","timestamp":"2019-11-19T15:21:30+00:00","score":3},{"role":"answerer","user_id":"anon_107a3eeaa5e61222","comment_id":"f81tnal","kind":"comment","text":"> Can I ask where you work? Feel free to don't answer!\n\nB2B SaaS for Employee Management. We require pretty strict security policies in place and compliance to a variety of standards.\n\nAlso did an edit on my post above with some more stuff.","timestamp":"2019-11-19T15:24:44+00:00","score":5},{"role":"OP","user_id":"anon_41f80c32d79e4911","comment_id":"f81uszd","kind":"comment","text":"Wonderful!\n\nMany thanks!","timestamp":"2019-11-19T15:37:04+00:00","score":3}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_41f80c32d79e4911","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_107a3eeaa5e61222","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f81rtgx","thanks_reply_id":"f81s112","post_score":54,"answer_score":49,"preferred_answer_is_top_level":true}} {"user_id":"anon_3398cd10b0e8d677","answerer_user_id":"anon_9531f995c5cb04b3","subreddit":"programming","timestamp":"2019-11-20T17:02:47+00:00","post_id":"dz4v0o","question":"Does anyone recommend or have experience using AsciiDoctor?","preferred_answer":"Because Asciidoc is more than just a mark-up language. It is a whole ecosystem for generating *documents*. So you have plugins for diagrams, automatic API documentation, maven build tasks, and stuff like spring's restdocs as I allready have mentioned.\n\nYou can compare Asciidoc more with documentation builders like doxygene and sphinx - the latter dominates the python world, whereas Asciidoc is much more present in the JVM ecosystem.","full_conversation":[{"role":"OP","user_id":"anon_3398cd10b0e8d677","comment_id":"dz4v0o","kind":"post","text":"Does anyone recommend or have experience using AsciiDoctor?","timestamp":"2019-11-20T17:02:47+00:00","score":2},{"role":"answerer","user_id":"anon_9531f995c5cb04b3","comment_id":"f876dky","kind":"comment","text":"Because Asciidoc is more than just a mark-up language. It is a whole ecosystem for generating *documents*. So you have plugins for diagrams, automatic API documentation, maven build tasks, and stuff like spring's restdocs as I allready have mentioned.\n\nYou can compare Asciidoc more with documentation builders like doxygene and sphinx - the latter dominates the python world, whereas Asciidoc is much more present in the JVM ecosystem.","timestamp":"2019-11-21T06:30:03+00:00","score":3},{"role":"OP","user_id":"anon_3398cd10b0e8d677","comment_id":"f88nekp","kind":"comment","text":"Oh interesting. I have used Sphinx before for a Python Django project. Thanks for the info!","timestamp":"2019-11-21T17:33:52+00:00","score":1},{"role":"answerer","user_id":"anon_9531f995c5cb04b3","comment_id":"f89041e","kind":"comment","text":"But sphinx is far more than markdown. Sphinx extends markdown with new semantics and iirc also syntaxes. On top it offers also engines to convert the markup text into final documents like HTML and PDF.\n\nSo in the end you can compare sphinx to Asciidoc, but not the latter with markdown.","timestamp":"2019-11-21T19:30:12+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3398cd10b0e8d677","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9531f995c5cb04b3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f876dky","thanks_reply_id":"f88nekp","post_score":2,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_22d0b9180abbc2f3","answerer_user_id":"anon_1f96a665a956f644","subreddit":"programming","timestamp":"2019-11-23T19:47:01+00:00","post_id":"e0mzcx","question":"Does anyone know why hacker.org is down? Or who is the admin there","preferred_answer":"Adum is the admin/owner. At least he was back then. I might have an email flying around somewhere, I'll look and try notifying him next week.","full_conversation":[{"role":"OP","user_id":"anon_22d0b9180abbc2f3","comment_id":"e0mzcx","kind":"post","text":"Does anyone know why hacker.org is down? Or who is the admin there","timestamp":"2019-11-23T19:47:01+00:00","score":0},{"role":"answerer","user_id":"anon_1f96a665a956f644","comment_id":"f8f89mr","kind":"comment","text":"Adum is the admin/owner. At least he was back then. I might have an email flying around somewhere, I'll look and try notifying him next week.","timestamp":"2019-11-23T20:08:28+00:00","score":1},{"role":"OP","user_id":"anon_22d0b9180abbc2f3","comment_id":"f8f9til","kind":"comment","text":"Thank you so much! I saw the admin is adum, it would be great if you could contact him. :)","timestamp":"2019-11-23T20:19:47+00:00","score":1},{"role":"answerer","user_id":"anon_1f96a665a956f644","comment_id":"f8fytdx","kind":"comment","text":"Actually got to it right now, he said he'll take a look 🙂\n\nI suggest posting things like this in the wechall.net boards instead of Reddit, higher chance of success.","timestamp":"2019-11-23T23:23:55+00:00","score":2},{"role":"OP","user_id":"anon_22d0b9180abbc2f3","comment_id":"f8immv1","kind":"comment","text":"Thank you!! And thanks for the tip, I didnt want to ask here on r/programming at first but I didnt know where else to ask because not too many people seem to know about this website. :)","timestamp":"2019-11-24T10:15:20+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_22d0b9180abbc2f3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1f96a665a956f644","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f8f89mr","thanks_reply_id":"f8f9til","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_1378eec90aa1a549","answerer_user_id":"anon_e64e5d3a6f894660","subreddit":"programming","timestamp":"2019-12-06T11:04:56+00:00","post_id":"e6xd9i","question":"Endless space implementation in my game. What do you think?","preferred_answer":"Looks pretty cool, the graphics look very satisfying. '\n\nHave you ever played that game \"Osmos\", especially the gravity-well levels? \n\nI think it would make a cool addition to have all this action orbiting a planet's gravity well. Orbital thrusting is a tricky/fun mechanic. In addition having to collect orbiting fuel-tanks and loot from destroyed space craft would make things even more frantic. \n\nAnother interesting mechanic is a ship that visibly grows as new powerups are added. You get heat seeking missle pods, but now your ship is a much bigger target.\n\nJust some silly ideas, nice work, i wish i had more time to code games again!","full_conversation":[{"role":"OP","user_id":"anon_1378eec90aa1a549","comment_id":"e6xd9i","kind":"post","text":"Endless space implementation in my game. What do you think?","timestamp":"2019-12-06T11:04:56+00:00","score":0},{"role":"answerer","user_id":"anon_e64e5d3a6f894660","comment_id":"f9u3fh3","kind":"comment","text":"Looks pretty cool, the graphics look very satisfying. '\n\nHave you ever played that game \"Osmos\", especially the gravity-well levels? \n\nI think it would make a cool addition to have all this action orbiting a planet's gravity well. Orbital thrusting is a tricky/fun mechanic. In addition having to collect orbiting fuel-tanks and loot from destroyed space craft would make things even more frantic. \n\nAnother interesting mechanic is a ship that visibly grows as new powerups are added. You get heat seeking missle pods, but now your ship is a much bigger target.\n\nJust some silly ideas, nice work, i wish i had more time to code games again!","timestamp":"2019-12-06T14:47:45+00:00","score":2},{"role":"OP","user_id":"anon_1378eec90aa1a549","comment_id":"f9um6a2","kind":"comment","text":"Thanks for feedback! Yeah, I will add gravity things, more over - there will be levels with black hole ;) And will think about powerups - just can't draw them correctly :)","timestamp":"2019-12-06T17:33:38+00:00","score":1},{"role":"answerer","user_id":"anon_e64e5d3a6f894660","comment_id":"faak3hf","kind":"comment","text":"Yeah i sucked at drawing graphics too. Instead I'd usually just use the zsnes emulator, turn off the background, and rip screenshots/sprites as my base images. Looks great in todays high-res!","timestamp":"2019-12-09T16:44:18+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1378eec90aa1a549","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e64e5d3a6f894660","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"f9u3fh3","thanks_reply_id":"f9um6a2","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_f326baea617f590a","answerer_user_id":"anon_c632e2cd1728b6bf","subreddit":"programming","timestamp":"2019-12-19T18:32:48+00:00","post_id":"ecx9r2","question":"How I used programming to help solve my school Cafeteria's waiting line congestion problem, and luckily got an award from the Minister of education department.","preferred_answer":"Not really the same thing but you may appreciate this https://erikbern.com/2019/10/16/buffet-lines-are-terrible.html","full_conversation":[{"role":"OP","user_id":"anon_f326baea617f590a","comment_id":"ecx9r2","kind":"post","text":"How I used programming to help solve my school Cafeteria's waiting line congestion problem, and luckily got an award from the Minister of education department.","timestamp":"2019-12-19T18:32:48+00:00","score":624},{"role":"answerer","user_id":"anon_c632e2cd1728b6bf","comment_id":"fbewgzi","kind":"comment","text":"Not really the same thing but you may appreciate this https://erikbern.com/2019/10/16/buffet-lines-are-terrible.html","timestamp":"2019-12-19T22:46:29+00:00","score":8},{"role":"OP","user_id":"anon_f326baea617f590a","comment_id":"fbfc7hg","kind":"comment","text":"Omg, I love the project you linked! Thanks for sharing it🤗. How did you come across that project? Would love to know😍","timestamp":"2019-12-20T01:56:34+00:00","score":3},{"role":"answerer","user_id":"anon_c632e2cd1728b6bf","comment_id":"fbg3tv9","kind":"comment","text":"Haha I always follow Erik bern because he is a bit of a genius and has a very good blog about datascience and stats","timestamp":"2019-12-20T09:09:31+00:00","score":2},{"role":"OP","user_id":"anon_f326baea617f590a","comment_id":"fbg8n0r","kind":"comment","text":"That's awesome! I'll keep my eye on that blog then😍","timestamp":"2019-12-20T11:07:12+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_f326baea617f590a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c632e2cd1728b6bf","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fbewgzi","thanks_reply_id":"fbfc7hg","post_score":624,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_2e90675d87ecb750","answerer_user_id":"anon_c582fe361c61c13c","subreddit":"programming","timestamp":"2020-01-04T04:11:07+00:00","post_id":"ejrgjx","question":"How to Protect Strained, Sore Developer Eyes","preferred_answer":"Haha, ok that makes quite a bit more sense.","full_conversation":[{"role":"OP","user_id":"anon_2e90675d87ecb750","comment_id":"ejrgjx","kind":"post","text":"How to Protect Strained, Sore Developer Eyes","timestamp":"2020-01-04T04:11:07+00:00","score":35},{"role":"answerer","user_id":"anon_c582fe361c61c13c","comment_id":"fd0j2jz","kind":"comment","text":"Haha, ok that makes quite a bit more sense.","timestamp":"2020-01-04T06:32:12+00:00","score":5},{"role":"OP","user_id":"anon_2e90675d87ecb750","comment_id":"fd0jczz","kind":"comment","text":"It's fixed, thank you lol.","timestamp":"2020-01-04T06:34:20+00:00","score":2},{"role":"answerer","user_id":"anon_c582fe361c61c13c","comment_id":"fd0jrw3","kind":"comment","text":"No problem, and I didn't mean to be rude. I see a lot of articles similar to this one get churned out by people who don't really care very much about their quality, which is clearly not the case here. Reddit makes you a bit cynical after a while.","timestamp":"2020-01-04T06:37:07+00:00","score":3},{"role":"OP","user_id":"anon_2e90675d87ecb750","comment_id":"fd0jzfi","kind":"comment","text":"Definitely not rude! I appreciate you taking the time to point this out.","timestamp":"2020-01-04T06:38:28+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2e90675d87ecb750","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c582fe361c61c13c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fd0j2jz","thanks_reply_id":"fd0jczz","post_score":35,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_ce08106010e1a33f","answerer_user_id":"anon_79f26ba28c8aa817","subreddit":"programming","timestamp":"2020-01-12T12:51:25+00:00","post_id":"enn3e9","question":"Hey guys, I'm kind of a newbie programmer, so I decided to make this program, that is like the triangle calculator site, in Python. What do you think, 895 lines of code - too much?","preferred_answer":">ans\\_B == 'Yes' or ans\\_B == 'Y' or ans\\_B == 'yes' or ans\\_B == 'YES' or ans\\_B == 'y':\n\nThis should be a function\n\n>ma = math.sqrt((2 \\* (b \\*\\* 2 + c \\*\\* 2) - a \\*\\* 2)) / 2 \n> \n>mb = math.sqrt((2 \\* (a \\*\\* 2 + c \\*\\* 2) - b \\*\\* 2)) / 2 \n> \n>mc = math.sqrt((2 \\* (a \\*\\* 2 + b \\*\\* 2) - c \\*\\* 2)) / 2\n\nThis should be as well\n\n>la = 2 \\* b \\* c \\* math.cos(A / 2) / (b + c) \n> \n>lb = 2 \\* a \\* c \\* math.cos(B / 2) / (a + c) \n> \n>lc = 2 \\* a \\* b \\* math.cos(C / 2) / (a + b)\n\nAnd this. To sum things up. Never repeat a block of more than 2 lines.\n\n\\--------------------------------------\n\n* Please use comments\n* Split your print line into multiple lines\n* Please name your variables better\n* You seem to generally have a lot of redundant code\n\nGood start though! I would guess that this program could be written in around 50 lines.","full_conversation":[{"role":"OP","user_id":"anon_ce08106010e1a33f","comment_id":"enn3e9","kind":"post","text":"Hey guys, I'm kind of a newbie programmer, so I decided to make this program, that is like the triangle calculator site, in Python. What do you think, 895 lines of code - too much?","timestamp":"2020-01-12T12:51:25+00:00","score":0},{"role":"answerer","user_id":"anon_79f26ba28c8aa817","comment_id":"fe27ewk","kind":"comment","text":">ans\\_B == 'Yes' or ans\\_B == 'Y' or ans\\_B == 'yes' or ans\\_B == 'YES' or ans\\_B == 'y':\n\nThis should be a function\n\n>ma = math.sqrt((2 \\* (b \\*\\* 2 + c \\*\\* 2) - a \\*\\* 2)) / 2 \n> \n>mb = math.sqrt((2 \\* (a \\*\\* 2 + c \\*\\* 2) - b \\*\\* 2)) / 2 \n> \n>mc = math.sqrt((2 \\* (a \\*\\* 2 + b \\*\\* 2) - c \\*\\* 2)) / 2\n\nThis should be as well\n\n>la = 2 \\* b \\* c \\* math.cos(A / 2) / (b + c) \n> \n>lb = 2 \\* a \\* c \\* math.cos(B / 2) / (a + c) \n> \n>lc = 2 \\* a \\* b \\* math.cos(C / 2) / (a + b)\n\nAnd this. To sum things up. Never repeat a block of more than 2 lines.\n\n\\--------------------------------------\n\n* Please use comments\n* Split your print line into multiple lines\n* Please name your variables better\n* You seem to generally have a lot of redundant code\n\nGood start though! I would guess that this program could be written in around 50 lines.","timestamp":"2020-01-12T13:20:59+00:00","score":9},{"role":"OP","user_id":"anon_ce08106010e1a33f","comment_id":"fe2ac1f","kind":"comment","text":"Thanks for the advices, but so far I've completed a programming basics course with Python, I don't know functions yet.","timestamp":"2020-01-12T13:37:22+00:00","score":2},{"role":"answerer","user_id":"anon_79f26ba28c8aa817","comment_id":"fe2az8h","kind":"comment","text":"I think you would save a lot of time reading up on more theory before coding the next script. How old are you?","timestamp":"2020-01-12T13:40:03+00:00","score":4},{"role":"OP","user_id":"anon_ce08106010e1a33f","comment_id":"fe2h8u2","kind":"comment","text":"I was enthusiastic about it. I'm 20.","timestamp":"2020-01-12T14:12:27+00:00","score":3},{"role":"answerer","user_id":"anon_79f26ba28c8aa817","comment_id":"fe2imtj","kind":"comment","text":"That is one of the most important aspects of programming. Keep it up and you'll learn in no time :)","timestamp":"2020-01-12T14:19:16+00:00","score":5},{"role":"OP","user_id":"anon_ce08106010e1a33f","comment_id":"fe2jhuy","kind":"comment","text":"Thanks mate, have a good one 😃","timestamp":"2020-01-12T14:25:15+00:00","score":3}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_ce08106010e1a33f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_79f26ba28c8aa817","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fe27ewk","thanks_reply_id":"fe2ac1f","post_score":0,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_4f52aace495300e9","answerer_user_id":"anon_572056f2bf61621c","subreddit":"programming","timestamp":"2020-01-13T08:33:45+00:00","post_id":"eo1hdw","question":"Can I make an app without any backend code?","preferred_answer":"The article contains logical error. If you don’t write backend code doesn’t mean you don’t have one. \n\nSame as “serverless” doesn’t mean there are no servers. It only means you don’t control/manage them.\n\nIt is possible to create a pure web app. I.e. something like draw.io which wouldn’t need any backend persistence, but there’s still backend in the sense that there are servers that store your scripts to be served to the clients over http.","full_conversation":[{"role":"OP","user_id":"anon_4f52aace495300e9","comment_id":"eo1hdw","kind":"post","text":"Can I make an app without any backend code?","timestamp":"2020-01-13T08:33:45+00:00","score":0},{"role":"answerer","user_id":"anon_572056f2bf61621c","comment_id":"fe6udvl","kind":"comment","text":"The article contains logical error. If you don’t write backend code doesn’t mean you don’t have one. \n\nSame as “serverless” doesn’t mean there are no servers. It only means you don’t control/manage them.\n\nIt is possible to create a pure web app. I.e. something like draw.io which wouldn’t need any backend persistence, but there’s still backend in the sense that there are servers that store your scripts to be served to the clients over http.","timestamp":"2020-01-13T08:50:22+00:00","score":3},{"role":"OP","user_id":"anon_4f52aace495300e9","comment_id":"fe6ux19","kind":"comment","text":"That's right, I'll edit and add a little paragraph about that :) thanks for feedback 🙏🏻","timestamp":"2020-01-13T08:54:50+00:00","score":1},{"role":"answerer","user_id":"anon_572056f2bf61621c","comment_id":"fe71fbu","kind":"comment","text":"Welcome.\n\nAnother thing I feel the article is missing is that in case of writing advanced application (complex logic) with tools like Firebase and such doesn’t eliminate complexity that backend would carry. It i stead offloads that complexity to the frontend layer. This in turn makes applications heavy in browser (yes, chrome is a major RAM hog on my 64GB machine using 18GB, more than CLion when compiling), as well as exposes business logic to anyone willing to open console editor which can be a security concern.","timestamp":"2020-01-13T09:45:52+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4f52aace495300e9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_572056f2bf61621c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fe6udvl","thanks_reply_id":"fe6ux19","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_aae179fc1065d5eb","answerer_user_id":"anon_eb580d163102c975","subreddit":"programming","timestamp":"2020-01-18T13:33:31+00:00","post_id":"eqgfg5","question":"What's New in Java 19: The end of Kotlin?","preferred_answer":"I've said it before but; I think it's pretty amazing, and not in a good way, that on Reddit people are so incredibly tribalistic about languages. I'm a Java back-end dev by trade, who's now using Kotlin. I don't know a single back-end Java dev who tried using Kotlin and is as 'anti' as many people are on Reddit.\n\nPeople are literally making stuff up, like \"nulls are not that much of an issue\" (like hell they are) just to cling to the idea that Java can 'get ahead' or anything. Who the F cares?\n\nKotlin is basically a Java dialect that does not have the back-ward compatibility issues Java has. It's an ideal test bed for features that also are taken into Java. It's al part of the same ecosystem. Almost all Kotlin back-end devs are ALSO Java developers. These developments benefit all of us.","full_conversation":[{"role":"OP","user_id":"anon_aae179fc1065d5eb","comment_id":"eqgfg5","kind":"post","text":"What's New in Java 19: The end of Kotlin?","timestamp":"2020-01-18T13:33:31+00:00","score":712},{"role":"answerer","user_id":"anon_eb580d163102c975","comment_id":"fexjrvg","kind":"comment","text":"I've said it before but; I think it's pretty amazing, and not in a good way, that on Reddit people are so incredibly tribalistic about languages. I'm a Java back-end dev by trade, who's now using Kotlin. I don't know a single back-end Java dev who tried using Kotlin and is as 'anti' as many people are on Reddit.\n\nPeople are literally making stuff up, like \"nulls are not that much of an issue\" (like hell they are) just to cling to the idea that Java can 'get ahead' or anything. Who the F cares?\n\nKotlin is basically a Java dialect that does not have the back-ward compatibility issues Java has. It's an ideal test bed for features that also are taken into Java. It's al part of the same ecosystem. Almost all Kotlin back-end devs are ALSO Java developers. These developments benefit all of us.","timestamp":"2020-01-19T11:08:40+00:00","score":2},{"role":"OP","user_id":"anon_aae179fc1065d5eb","comment_id":"fexrugm","kind":"comment","text":"This is exactly what I wrote on Twitter: \"Competition is good\"\n\nhttps://twitter.com/nicolas_frankel/status/1218526658048733184","timestamp":"2020-01-19T11:59:53+00:00","score":1},{"role":"answerer","user_id":"anon_eb580d163102c975","comment_id":"fexsj21","kind":"comment","text":"I really only see this on this sub. Most Java devs in my 'bubble' who have used Kotlin are really enthusiastic. The client I work for even uses it as a perk to attract developers. There's tons of Kotlin talks in most European Java conferences and I don't see this weird tribalism there at all. \n\nIt's almost as if some people feel threatened or something; which is weird. In my experience Java devs tend to pick up Kotlin within a week or so, because it's so similar.","timestamp":"2020-01-19T12:04:22+00:00","score":2},{"role":"OP","user_id":"anon_aae179fc1065d5eb","comment_id":"fexyx9f","kind":"comment","text":"To be honest, I didn't have the same feelings. But perhaps I read comments less than you do.","timestamp":"2020-01-19T12:55:24+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_aae179fc1065d5eb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_eb580d163102c975","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fexjrvg","thanks_reply_id":"fexrugm","post_score":712,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_d195b0c6f10f8be7","answerer_user_id":"anon_b547d925903e0706","subreddit":"programming","timestamp":"2020-01-20T00:26:03+00:00","post_id":"er51c3","question":"How to use Firebase as your app’s back-end and CMS (part 1)","preferred_answer":"Awesome, thanks for sharing.","full_conversation":[{"role":"OP","user_id":"anon_d195b0c6f10f8be7","comment_id":"er51c3","kind":"post","text":"How to use Firebase as your app’s back-end and CMS (part 1)","timestamp":"2020-01-20T00:26:03+00:00","score":1},{"role":"answerer","user_id":"anon_b547d925903e0706","comment_id":"ff1stdr","kind":"comment","text":"Awesome, thanks for sharing.","timestamp":"2020-01-20T01:56:33+00:00","score":2},{"role":"OP","user_id":"anon_d195b0c6f10f8be7","comment_id":"ff2ct4i","kind":"comment","text":"Thank you for the feedback! I'm planning on continuing this series and open-sourcing it in the end. :)","timestamp":"2020-01-20T06:16:43+00:00","score":2},{"role":"answerer","user_id":"anon_b547d925903e0706","comment_id":"ff38hv1","kind":"comment","text":"Looking forward to reading the next installments.","timestamp":"2020-01-20T16:03:08+00:00","score":2},{"role":"OP","user_id":"anon_d195b0c6f10f8be7","comment_id":"ff45bu6","kind":"comment","text":"Thank you, that's a really great motivation to move forward faster!","timestamp":"2020-01-20T21:31:14+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d195b0c6f10f8be7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b547d925903e0706","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ff1stdr","thanks_reply_id":"ff2ct4i","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a9e5ffd344c15a62","answerer_user_id":"anon_5a5f0763c22821cf","subreddit":"programming","timestamp":"2020-01-30T08:17:59+00:00","post_id":"ew26po","question":"Why you should never use the bool datatype.","preferred_answer":"I can see where you're coming from with the space argument, but what about other pros for the bool data type, e.g. clarity of reading for the programmer?","full_conversation":[{"role":"OP","user_id":"anon_a9e5ffd344c15a62","comment_id":"ew26po","kind":"post","text":"Why you should never use the bool datatype.","timestamp":"2020-01-30T08:17:59+00:00","score":0},{"role":"answerer","user_id":"anon_5a5f0763c22821cf","comment_id":"ffzcv15","kind":"comment","text":"I can see where you're coming from with the space argument, but what about other pros for the bool data type, e.g. clarity of reading for the programmer?","timestamp":"2020-01-30T08:24:56+00:00","score":12},{"role":"OP","user_id":"anon_a9e5ffd344c15a62","comment_id":"fg3d6c1","kind":"comment","text":"Thanks for your comment. I believe readable code comes primarily from using sensible names for variables, functions, etc. Not from the use of the datatype. I have added an addendum to my article to address the most common criticisms.","timestamp":"2020-01-31T13:46:48+00:00","score":1},{"role":"answerer","user_id":"anon_5a5f0763c22821cf","comment_id":"fg3kbi7","kind":"comment","text":"I see your point, but it's not only readibility, it's what you can DO with that particular type. For example, an unsigned int cannot hold negative values so sends a clear message the input to the function is designed to be positive.\n\nIf you replaced a boolean function parameter with an integer bitmask, the intention of usage is less clear and allows more behaviour you wouldn't want (i.e. you can modify other bits in the mask!)","timestamp":"2020-01-31T15:13:01+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a9e5ffd344c15a62","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5a5f0763c22821cf","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ffzcv15","thanks_reply_id":"fg3d6c1","post_score":0,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_39d83f5364630dcc","answerer_user_id":"anon_0a654ca18ef84829","subreddit":"programming","timestamp":"2020-02-10T11:17:27+00:00","post_id":"f1owmz","question":"Is it up to the newer developer to pay back others' technical debt?","preferred_answer":"Something that has improved our team is a \"lessons learned\" meeting after project \"completion\" (which can be a fuzzy concept).\n\nIt's a talk for everyone who's significantly contributed (usually one person).\n\nWe have boxes such as \"architecture\", \"deployment\", \"training/docs\".\n\nFocus is on lessons learned. No blame, just trying to get to that shared \"if I did this again, I'd do it better by...\"","full_conversation":[{"role":"OP","user_id":"anon_39d83f5364630dcc","comment_id":"f1owmz","kind":"post","text":"Is it up to the newer developer to pay back others' technical debt?","timestamp":"2020-02-10T11:17:27+00:00","score":0},{"role":"answerer","user_id":"anon_0a654ca18ef84829","comment_id":"fh7j3v4","kind":"comment","text":"Something that has improved our team is a \"lessons learned\" meeting after project \"completion\" (which can be a fuzzy concept).\n\nIt's a talk for everyone who's significantly contributed (usually one person).\n\nWe have boxes such as \"architecture\", \"deployment\", \"training/docs\".\n\nFocus is on lessons learned. No blame, just trying to get to that shared \"if I did this again, I'd do it better by...\"","timestamp":"2020-02-10T11:31:59+00:00","score":6},{"role":"OP","user_id":"anon_39d83f5364630dcc","comment_id":"fh7jckm","kind":"comment","text":"Oh, that's a very good idea! Thanks for sharing.\n\nIn general, end-of-Sprint retrospectives also helped us a lot improving our practices. But only when we started doing it properly: no computer to get everyone's attention, concrete next actions taken and reflection on the ones taken at previous retro.\n\nStop working, taking a step back and thinking on how we're doing is critical =)","timestamp":"2020-02-10T11:37:09+00:00","score":3},{"role":"answerer","user_id":"anon_0a654ca18ef84829","comment_id":"fh7qtyz","kind":"comment","text":"Yep, our team is doing better now we have some reflection time baked in.","timestamp":"2020-02-10T13:42:30+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_39d83f5364630dcc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0a654ca18ef84829","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fh7j3v4","thanks_reply_id":"fh7jckm","post_score":0,"answer_score":6,"preferred_answer_is_top_level":false}} {"user_id":"anon_1cf933eddba50ad6","answerer_user_id":"anon_746632ffd7972b07","subreddit":"programming","timestamp":"2020-02-16T07:13:31+00:00","post_id":"f4n8jj","question":"Why is swc fast?","preferred_answer":"How fast is this for TypeScript compared to plain \"tsc\"?","full_conversation":[{"role":"OP","user_id":"anon_1cf933eddba50ad6","comment_id":"f4n8jj","kind":"post","text":"Why is swc fast?","timestamp":"2020-02-16T07:13:31+00:00","score":91},{"role":"answerer","user_id":"anon_746632ffd7972b07","comment_id":"fht3qqy","kind":"comment","text":"How fast is this for TypeScript compared to plain \"tsc\"?","timestamp":"2020-02-16T16:14:09+00:00","score":6},{"role":"OP","user_id":"anon_1cf933eddba50ad6","comment_id":"fht4egw","kind":"comment","text":"https://github.com/swc-project/swc/issues/656#issuecomment-585199819\n\n> Thanks for the quick reply. Awesome tool by the way. We've managed to decrease build time from 56 seconds to 0.9 seconds .lmfa0\n\nOne user of the swc reported 56x speedup, and judging based on [another issue](https://github.com/swc-project/swc/issues/657) he reported, it seems like he was using tsc.","timestamp":"2020-02-16T16:18:41+00:00","score":17},{"role":"answerer","user_id":"anon_746632ffd7972b07","comment_id":"fht4vdv","kind":"comment","text":"Wow. I'll have to give it a shot to check. Would be amazing if true.\n\nThanks!","timestamp":"2020-02-16T16:22:17+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1cf933eddba50ad6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_746632ffd7972b07","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fht3qqy","thanks_reply_id":"fht4egw","post_score":91,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_017621c6c8ac9089","answerer_user_id":"anon_d8e6ee25d9289089","subreddit":"programming","timestamp":"2020-02-28T12:45:51+00:00","post_id":"fau6if","question":"How my software development has changed in the last 10 years","preferred_answer":"That was a nice post! By the way, do you sometimes still feel that your code is poor? I mean like one of your points was \"Make it easy to read and understand\", but do you always follow this rule?","full_conversation":[{"role":"OP","user_id":"anon_017621c6c8ac9089","comment_id":"fau6if","kind":"post","text":"How my software development has changed in the last 10 years","timestamp":"2020-02-28T12:45:51+00:00","score":55},{"role":"answerer","user_id":"anon_d8e6ee25d9289089","comment_id":"fj0ocnf","kind":"comment","text":"That was a nice post! By the way, do you sometimes still feel that your code is poor? I mean like one of your points was \"Make it easy to read and understand\", but do you always follow this rule?","timestamp":"2020-02-28T15:40:12+00:00","score":3},{"role":"OP","user_id":"anon_017621c6c8ac9089","comment_id":"fj0w2yf","kind":"comment","text":"Hi,\n\nthanks! I've updated that part a bit :). But no - I do not feel that I follow this part always. Usually, it (complex code) is just a result on not understanding your tools (all the graph algos etc) and, most importantly, not understanding the problem well enough :).\n\nAfter a while, I've noticed that complex code becomes a bit simpler.","timestamp":"2020-02-28T16:51:43+00:00","score":6},{"role":"answerer","user_id":"anon_d8e6ee25d9289089","comment_id":"fjcnasa","kind":"comment","text":"Totally agree, devs in our company usually start building skyscrapers when they can't reach the point of understanding with the PM. So I know that feeling.","timestamp":"2020-03-03T09:30:02+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_017621c6c8ac9089","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d8e6ee25d9289089","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fj0ocnf","thanks_reply_id":"fj0w2yf","post_score":55,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_d258825439f09b38","answerer_user_id":"anon_11ad0e77d2e52473","subreddit":"programming","timestamp":"2020-03-08T01:56:52+00:00","post_id":"ff5jts","question":"This is my first program in python (Dice Rolling Simulator). What do you think?","preferred_answer":"Just replace `import random` with `from random import uniform` then instead of every time calling `random.uniform(blahblah)` you just call it as `uniform(blahblah)` it's a good habit because when projects get bigger, it can make a big difference, so it's good to build robust code even if it's 20 lines","full_conversation":[{"role":"OP","user_id":"anon_d258825439f09b38","comment_id":"ff5jts","kind":"post","text":"This is my first program in python (Dice Rolling Simulator). What do you think?","timestamp":"2020-03-08T01:56:52+00:00","score":0},{"role":"answerer","user_id":"anon_11ad0e77d2e52473","comment_id":"fjw0bap","kind":"comment","text":"Just replace `import random` with `from random import uniform` then instead of every time calling `random.uniform(blahblah)` you just call it as `uniform(blahblah)` it's a good habit because when projects get bigger, it can make a big difference, so it's good to build robust code even if it's 20 lines","timestamp":"2020-03-08T02:02:45+00:00","score":1},{"role":"OP","user_id":"anon_d258825439f09b38","comment_id":"fjw0jah","kind":"comment","text":"Ok I just tried it and everything worked smoothly! Thanks for the input!","timestamp":"2020-03-08T02:04:02+00:00","score":1},{"role":"answerer","user_id":"anon_11ad0e77d2e52473","comment_id":"fjw169g","kind":"comment","text":"Yeah it should run the same since it's so small, but again, when you make bigger projects, web scrapers, bots, this will come in handy. Also if you wanna turn this into a GUI, let me know 😛","timestamp":"2020-03-08T02:07:53+00:00","score":1},{"role":"OP","user_id":"anon_d258825439f09b38","comment_id":"fjw19ve","kind":"comment","text":"Yes! I’ve been wanting to learn how to make a GUI!","timestamp":"2020-03-08T02:08:32+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d258825439f09b38","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_11ad0e77d2e52473","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fjw0bap","thanks_reply_id":"fjw0jah","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_9be567f9ed5b06e7","answerer_user_id":"anon_1edede8ad0d72905","subreddit":"programming","timestamp":"2020-03-09T01:32:57+00:00","post_id":"ffmyim","question":"How I made a 3D game in only 2KB of JavaScript","preferred_answer":"Your site crashes Chrome on Android. Edit, it's the post itself, likely something embedded, the homepage loads ok.\n\nLooking forward to reading the post once I can view it!","full_conversation":[{"role":"OP","user_id":"anon_9be567f9ed5b06e7","comment_id":"ffmyim","kind":"post","text":"How I made a 3D game in only 2KB of JavaScript","timestamp":"2020-03-09T01:32:57+00:00","score":44},{"role":"answerer","user_id":"anon_1edede8ad0d72905","comment_id":"fjzktlm","kind":"comment","text":"Your site crashes Chrome on Android. Edit, it's the post itself, likely something embedded, the homepage loads ok.\n\nLooking forward to reading the post once I can view it!","timestamp":"2020-03-09T02:48:17+00:00","score":4},{"role":"OP","user_id":"anon_9be567f9ed5b06e7","comment_id":"fjzm08z","kind":"comment","text":"Thanks! I have a codepen embedded and it is now set to only run when clicked. Can you let me know if that works ok for you now?","timestamp":"2020-03-09T03:02:24+00:00","score":1},{"role":"answerer","user_id":"anon_1edede8ad0d72905","comment_id":"fjzmc58","kind":"comment","text":"That fixed it! Looks like an informative write-up, thanks for taking the time to do so.","timestamp":"2020-03-09T03:06:26+00:00","score":1},{"role":"OP","user_id":"anon_9be567f9ed5b06e7","comment_id":"fjzmv18","kind":"comment","text":"Thanks, I put a lot of work into this one, both the game and the write up!","timestamp":"2020-03-09T03:12:54+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_9be567f9ed5b06e7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1edede8ad0d72905","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fjzktlm","thanks_reply_id":"fjzm08z","post_score":44,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_feae839cbafc106f","answerer_user_id":"anon_9600161d18613ffa","subreddit":"programming","timestamp":"2020-03-21T15:04:33+00:00","post_id":"fmgams","question":"Robotic surgery : what software/programming language is used to control/power/use the robots?","preferred_answer":"Most likely is, but they write to much higher standards than a lot of other C programs. I've programmed medical devices and most were C or C++ based with extensive testing and static analysis. Most used coding standards from safety industries (a variation of MISRA was common: developed for the Auto industry) and complied with an IEC safety development process.\n\nOther option may be Ada.","full_conversation":[{"role":"OP","user_id":"anon_feae839cbafc106f","comment_id":"fmgams","kind":"post","text":"Robotic surgery : what software/programming language is used to control/power/use the robots?","timestamp":"2020-03-21T15:04:33+00:00","score":0},{"role":"answerer","user_id":"anon_9600161d18613ffa","comment_id":"fl49753","kind":"comment","text":"Most likely is, but they write to much higher standards than a lot of other C programs. I've programmed medical devices and most were C or C++ based with extensive testing and static analysis. Most used coding standards from safety industries (a variation of MISRA was common: developed for the Auto industry) and complied with an IEC safety development process.\n\nOther option may be Ada.","timestamp":"2020-03-21T16:37:34+00:00","score":6},{"role":"OP","user_id":"anon_feae839cbafc106f","comment_id":"fl84sov","kind":"comment","text":"Great to know, thanks for replying! \n\n\nTo be honest, I've never heard of ADA (I'm not a software engineer) \nHave you used Ada before? \nIf so, what do you consider the pro's and the con's?","timestamp":"2020-03-22T22:24:33+00:00","score":1},{"role":"answerer","user_id":"anon_9600161d18613ffa","comment_id":"fl97xqn","kind":"comment","text":"I've never used Ada myself.\n\nAda was designed from the get-go with safety in mind. It was specified by the Department of Defense and used heavily in avionics systems.\n\nThe type system allows you to build types that the compiler can check the semantics of use. Range and bounds checks are done at compile time when possible.\n\nThe biggest problems for early adoption were the checks needed in the complier made it take a long time to compile. It also was not the fastest executing language so many commercial programs who didn't care about safety didn't want to \"pay\" for the performance penalties.\n\nHonestly, in the \"everything old is new again\" category a lot of what makes Rust an interesting language is already in Ada.","timestamp":"2020-03-23T06:16:58+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_feae839cbafc106f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9600161d18613ffa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fl49753","thanks_reply_id":"fl84sov","post_score":0,"answer_score":6,"preferred_answer_is_top_level":false}} {"user_id":"anon_d96d60ed12629d06","answerer_user_id":"anon_abb350cc368a6b2f","subreddit":"programming","timestamp":"2020-03-25T07:17:44+00:00","post_id":"fom1vi","question":"How to validate your request parameters easily using middleware in node.js","preferred_answer":"Sure [here you go](https://i.imgur.com/rMeXao6.png), I'm using firefox on windows 10 btw","full_conversation":[{"role":"OP","user_id":"anon_d96d60ed12629d06","comment_id":"fom1vi","kind":"post","text":"How to validate your request parameters easily using middleware in node.js","timestamp":"2020-03-25T07:17:44+00:00","score":0},{"role":"answerer","user_id":"anon_abb350cc368a6b2f","comment_id":"flg7p46","kind":"comment","text":"Sure [here you go](https://i.imgur.com/rMeXao6.png), I'm using firefox on windows 10 btw","timestamp":"2020-03-25T10:59:53+00:00","score":2},{"role":"OP","user_id":"anon_d96d60ed12629d06","comment_id":"flg83vt","kind":"comment","text":"Thanks, this should be fixed now. Please try hard refreshing. I was trying to preload the css which was working chrome. Thanks for reporting.","timestamp":"2020-03-25T11:07:27+00:00","score":1},{"role":"answerer","user_id":"anon_abb350cc368a6b2f","comment_id":"flg9jyn","kind":"comment","text":"Yeah, it's fine now!","timestamp":"2020-03-25T11:33:29+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d96d60ed12629d06","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_abb350cc368a6b2f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"flg7p46","thanks_reply_id":"flg83vt","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_d1cd0bee7175e09f","answerer_user_id":"anon_e58db400da4d92ad","subreddit":"programming","timestamp":"2020-03-28T03:09:06+00:00","post_id":"fqc5kj","question":"George Hotz is \"hacking nature\" using programming to understand the coronavirus... can someone help me understand what that means? What is he trying to accomplish?","preferred_answer":"It does not mean much, first he compresses the ARN of the virus to get an idea of the quantity of information it contains. I did the same, just to get an idea because I was curious, but this yields absolutely nothing in itself (maybe if you are a virology expert it gives you some kind of weak infos, I don't know). This is probably simpler to do in a shell than in Jupiter, btw (he had to lookup the manual, I just tried gzip -9 && ls because why not)\n\nThen he does some decoding to get codons from the ARN, and so over. Then he recursively looks up things on the internet in an ADHD like fashion.\n\nWhat he is trying to accomplish is to occupy himself using the tools he knows (general purpose programming) on a news subject, with an audience, while looking overly exited, and discovering biology. Real bioinformatics uses more dedicated tools (and way more domain knowledge than discovering things live with google), and they actually attempt to accomplish things. Here it is just random exploration while discovering a field.","full_conversation":[{"role":"OP","user_id":"anon_d1cd0bee7175e09f","comment_id":"fqc5kj","kind":"post","text":"George Hotz is \"hacking nature\" using programming to understand the coronavirus... can someone help me understand what that means? What is he trying to accomplish?","timestamp":"2020-03-28T03:09:06+00:00","score":0},{"role":"answerer","user_id":"anon_e58db400da4d92ad","comment_id":"flpskvt","kind":"comment","text":"It does not mean much, first he compresses the ARN of the virus to get an idea of the quantity of information it contains. I did the same, just to get an idea because I was curious, but this yields absolutely nothing in itself (maybe if you are a virology expert it gives you some kind of weak infos, I don't know). This is probably simpler to do in a shell than in Jupiter, btw (he had to lookup the manual, I just tried gzip -9 && ls because why not)\n\nThen he does some decoding to get codons from the ARN, and so over. Then he recursively looks up things on the internet in an ADHD like fashion.\n\nWhat he is trying to accomplish is to occupy himself using the tools he knows (general purpose programming) on a news subject, with an audience, while looking overly exited, and discovering biology. Real bioinformatics uses more dedicated tools (and way more domain knowledge than discovering things live with google), and they actually attempt to accomplish things. Here it is just random exploration while discovering a field.","timestamp":"2020-03-28T03:53:56+00:00","score":11},{"role":"OP","user_id":"anon_d1cd0bee7175e09f","comment_id":"flpsygn","kind":"comment","text":"Thank you so much for this information. It really did seem to me like he was simply exploring, but the amount of hours that he's put into this project made me think that he would have an end goal in mind. \n\nI'll be looking into bioinformatics to see if I can find the dedicated tools you're talking about and to find out what they do. Seems interesting.","timestamp":"2020-03-28T03:58:54+00:00","score":2},{"role":"answerer","user_id":"anon_e58db400da4d92ad","comment_id":"flpugcy","kind":"comment","text":"I want to add a little thing: what he does, and learns live, and the info he has access to, etc. is extraordinary if we compare to the situation of only a few decades ago. Without Internet you would have to actually spend way more hours in libraries and taking classes and so over, and without widely available powerful programmable computers you would not be able to replicate yourself the mechanical steps of decoding and getting instant answers.","timestamp":"2020-03-28T04:19:09+00:00","score":3},{"role":"OP","user_id":"anon_d1cd0bee7175e09f","comment_id":"flpvb6h","kind":"comment","text":"It really is amazing. Access to information has never been a bottleneck for me. The bottleneck is always consistency, dedication, etc. I could easily find a PDF of a textbook all about bioinformatics online. Right now I'm more interesting in learning about artificial intelligence, specifically deep reinforcement learning, and it's really encouraging to have access to so many resources. \n\nIt's also interesting to watch others learn through the internet, which is why I was so interested in learning what Hotz was doing in his live stream. Thanks again for your answer to my question.","timestamp":"2020-03-28T04:31:06+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d1cd0bee7175e09f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e58db400da4d92ad","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"flpskvt","thanks_reply_id":"flpsygn","post_score":0,"answer_score":11,"preferred_answer_is_top_level":true}} {"user_id":"anon_05f8f0681e1e5572","answerer_user_id":"anon_c036a5122d7d51e3","subreddit":"programming","timestamp":"2020-04-09T17:38:06+00:00","post_id":"fxwsrb","question":"We've built a visual programming platform where write your own components (functions) and organize them visually. Any areas where you think this could be helpful?","preferred_answer":"This looks really cool. I would say, aside from designing HFT algorithms, it would be helpful for things like process management.\n\nThe usefulness of this product in new domains would depend *very* heavily on how **strong** & **expressive** the type system is. If it’s easy to create a new data structure that clearly represents some high-level concept in the domain, then you could design/compose functions to interact with those concepts. If it’s just a simple type system with basic number-crunching, then this would be significantly harder to pull off.\n\nThe reason I bring up process management is that most solutions in that space (Azure Dev Ops, Github Projects, etc.) tend to group tasks in a very flat structure. Just a list of items with ID’s. But most projects have some implicit *order of operations* which force you to do some tasks before others. In reality, the task list should be organized more like a dependency graph.\n\nIf you wanted to create a domain-specific task workflow with visual programming tools like this, then you might think about that operational dependency graph in terms of a function call graph.\n\nIf you have a task `C` which can only be completed after tasks `A` & `B` are completed, then you could think of the *work* as a function that takes 1 completed `A` task, 1 completed `B` task, and 1 *incomplete* `C` task, and returns a completed `C` task. And if task `H` depends on task `C`, then you can easily follow the graph to see exactly what needs to get done before `H` can be completed.\n\nBut that’s where the type system comes into play. If it’s super easy to make a brand new type to represent those tasks (I would avoid “class inheritance”, btw), then it should be a straightforward thing to do something like this. And the converse is also true.","full_conversation":[{"role":"OP","user_id":"anon_05f8f0681e1e5572","comment_id":"fxwsrb","kind":"post","text":"We've built a visual programming platform where write your own components (functions) and organize them visually. Any areas where you think this could be helpful?","timestamp":"2020-04-09T17:38:06+00:00","score":0},{"role":"answerer","user_id":"anon_c036a5122d7d51e3","comment_id":"fmwyap2","kind":"comment","text":"This looks really cool. I would say, aside from designing HFT algorithms, it would be helpful for things like process management.\n\nThe usefulness of this product in new domains would depend *very* heavily on how **strong** & **expressive** the type system is. If it’s easy to create a new data structure that clearly represents some high-level concept in the domain, then you could design/compose functions to interact with those concepts. If it’s just a simple type system with basic number-crunching, then this would be significantly harder to pull off.\n\nThe reason I bring up process management is that most solutions in that space (Azure Dev Ops, Github Projects, etc.) tend to group tasks in a very flat structure. Just a list of items with ID’s. But most projects have some implicit *order of operations* which force you to do some tasks before others. In reality, the task list should be organized more like a dependency graph.\n\nIf you wanted to create a domain-specific task workflow with visual programming tools like this, then you might think about that operational dependency graph in terms of a function call graph.\n\nIf you have a task `C` which can only be completed after tasks `A` & `B` are completed, then you could think of the *work* as a function that takes 1 completed `A` task, 1 completed `B` task, and 1 *incomplete* `C` task, and returns a completed `C` task. And if task `H` depends on task `C`, then you can easily follow the graph to see exactly what needs to get done before `H` can be completed.\n\nBut that’s where the type system comes into play. If it’s super easy to make a brand new type to represent those tasks (I would avoid “class inheritance”, btw), then it should be a straightforward thing to do something like this. And the converse is also true.","timestamp":"2020-04-09T17:59:22+00:00","score":2},{"role":"OP","user_id":"anon_05f8f0681e1e5572","comment_id":"fmx1ojq","kind":"comment","text":"Thanks this is a great comment. \nDo you mean specifically for programming or project management in general?\nWhen you say ordering of time dependent tasks you mean kind of like a gantt chart?\nIn this example, would the components just represent the tasks or would they include the actual code?","timestamp":"2020-04-09T18:28:02+00:00","score":1},{"role":"answerer","user_id":"anon_c036a5122d7d51e3","comment_id":"fmxcjft","kind":"comment","text":">When you say ordering of time dependent tasks you mean kind of like a gantt chart?\n\nSure, the Gantt chart is a classic format for this type of thing, but I think most project management tools that employ Gantt charts are missing the forest for the trees. And I personally don't like the visual layout of most Gantt chart implementations. I would rather view it in a slightly more balanced tree shape, like a tournament match-up chart that I can scroll to view. A lot of tools display it like a waterfall of tasks from left to right.\n\n>Do you mean specifically for programming or project management in general?\n\nI mean project management in general. Or even more generally: *process visualization*. Pretty much any complex process can be organized in the form of a graph or tree structure, and any tool that helps us visualize that structure in some intuitive (and *domain-specific*) way would likely add a lot of value in many fields.\n\nFor example, one could imagine diagramming a factory production flow for an automobile. The \"tasks,\" so to speak, are never actually \"completed.\" They chart might not be updated very often, but suppose the \"units of work\" (a.k.a. functions) have parameters not only for time-ordered dependencies, but also measurements of capacity, like human labor, electricity, project funding, or whatever the team sees as an important input at that stage of the process.\n\nAnother example might be a food processing plant, where the recipe is formulated as a graph of ingredients required to make \"higher-level\" composite ingredients, which then go into a final mix, followed by a \"cooking\" function. Then you could chart out the \"packaging\" process.\n\nThe important thing is that each node in a graph can specify its own unique dependencies.\n\n>would the components just represent the tasks or would they include the actual code?\n\nFrom my perspective, I think this might look more like data records that specify the important information. Those represent whatever units you think are important to measure. It could be (in-)complete tasks, or it could be automobile parts, or whatever... The key is that they are just **data** and don't have any attached **behavior**. This is not object-oriented, but rather highly *functional* in design.\n\nIf you have some kind of \"work\" that needs to be done to produce a product or to complete a task (basically to transform the *data you have* into the *data you want*), then you write a function that takes in, as arguments, all the things that might impact that process, and then you can measure the effects inside the function body, in real code, if you like.\n\nThe cool thing about this sort of approach is that you can replace all the functions as long as they maintain the correct type signature. For example, you could have a function that looks like this (in JS pseudo-code):\n\n```\nlet doTaskA = (workerList, taskDependencies) => {\n let complexity = taskDependencies.reduce(sum, 0);\n let timeEstimate = computeTimeEstimate(\n projectComplexity,\n workerList,\n taskDependencies,\n ));\n logData(\"TaskA\", complexity, timeEstimate);\n return new CompletedTaskA(complexity, timeEstimate);\n}\n```\n\nI'm sure this could be dramatically improved, but I hope it gives you an idea of what I mean.\n\nIf you compute a graph of these data structures, then you can generate useful data from a global perspective, or even divide it into regional subsets of that data.","timestamp":"2020-04-09T20:01:13+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_05f8f0681e1e5572","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c036a5122d7d51e3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fmwyap2","thanks_reply_id":"fmx1ojq","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_e2cc36b94e447274","answerer_user_id":"anon_8d72c7a165dc80a5","subreddit":"programming","timestamp":"2020-04-12T16:01:10+00:00","post_id":"fzz977","question":"How To Fix Imposter Syndrome as a Software Engineer","preferred_answer":"Great video, thanks for making it!! We are all helped by good engineers that are willing to put themselves out there with their experiences. Especially about feeling like an impostor! I love points you made about changing your mindset to looking at the upside of all the learning that we face when we’re new engineers or even engineers at a new job. \n\nIf you’re open to some constructive criticism on your video, the message at the beginning of the content (“if you’re feeling like an impostor, you should work extra hours until you don’t feel like an impostor anymore”) made me feel like you were telling me, “if you feel like an impostor you probably are, it that’s okay - all you have to do is overwork yourself until you don’t feel like an impostor anymore”. Which seems to me to be at odds with the message from the second half of your content. Also I believe that’s not the right message for someone suffering from impostor syndrome. \n\nBut the second part, about putting yourself in a growth mindset, was very, very helpful IMHO.","full_conversation":[{"role":"OP","user_id":"anon_e2cc36b94e447274","comment_id":"fzz977","kind":"post","text":"How To Fix Imposter Syndrome as a Software Engineer","timestamp":"2020-04-12T16:01:10+00:00","score":0},{"role":"answerer","user_id":"anon_8d72c7a165dc80a5","comment_id":"fn726ga","kind":"comment","text":"Great video, thanks for making it!! We are all helped by good engineers that are willing to put themselves out there with their experiences. Especially about feeling like an impostor! I love points you made about changing your mindset to looking at the upside of all the learning that we face when we’re new engineers or even engineers at a new job. \n\nIf you’re open to some constructive criticism on your video, the message at the beginning of the content (“if you’re feeling like an impostor, you should work extra hours until you don’t feel like an impostor anymore”) made me feel like you were telling me, “if you feel like an impostor you probably are, it that’s okay - all you have to do is overwork yourself until you don’t feel like an impostor anymore”. Which seems to me to be at odds with the message from the second half of your content. Also I believe that’s not the right message for someone suffering from impostor syndrome. \n\nBut the second part, about putting yourself in a growth mindset, was very, very helpful IMHO.","timestamp":"2020-04-12T17:17:24+00:00","score":1},{"role":"OP","user_id":"anon_e2cc36b94e447274","comment_id":"fn72fbu","kind":"comment","text":"Thanks for the feedback! Yeah I agree with you in the beginning I think my overall message wasn't clear about putting in extra time. I was trying to basically say that some things take time to learn regardless of how smart you are and putting in extra time into learning those things might be a way to combat the issue. Sorry for the confusion and thanks again for the feedback!","timestamp":"2020-04-12T17:19:41+00:00","score":1},{"role":"answerer","user_id":"anon_8d72c7a165dc80a5","comment_id":"fn749r7","kind":"comment","text":"Yeah, totally agree. That’s something that I personally struggle with lol. \n\nI also think that the thing that’s helped me the most is getting the courage to put myself out there, and you’re doing a great job with that, so nice job!!!","timestamp":"2020-04-12T17:36:41+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e2cc36b94e447274","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8d72c7a165dc80a5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fn726ga","thanks_reply_id":"fn72fbu","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_4a0275bea90439d0","answerer_user_id":"anon_b9f9b53cb05e19b0","subreddit":"programming","timestamp":"2020-04-14T00:21:51+00:00","post_id":"g0v388","question":"How to Create a GNOME Extension (Part 6) - Prefs","preferred_answer":"I think you are missing some screenshots of the end results during coding. It would make the tutorial easier to follow by beginners. Btw, you have a really calming voice. I'll cross-post in r/VisualCoding. I hope to see you there as well! Cheers!","full_conversation":[{"role":"OP","user_id":"anon_4a0275bea90439d0","comment_id":"g0v388","kind":"post","text":"How to Create a GNOME Extension (Part 6) - Prefs","timestamp":"2020-04-14T00:21:51+00:00","score":0},{"role":"answerer","user_id":"anon_b9f9b53cb05e19b0","comment_id":"fncrw4e","kind":"comment","text":"I think you are missing some screenshots of the end results during coding. It would make the tutorial easier to follow by beginners. Btw, you have a really calming voice. I'll cross-post in r/VisualCoding. I hope to see you there as well! Cheers!","timestamp":"2020-04-14T06:19:58+00:00","score":2},{"role":"OP","user_id":"anon_4a0275bea90439d0","comment_id":"fnd4ipf","kind":"comment","text":"Thanks. Joined [r/VisualCoding](https://www.reddit.com/r/VisualCoding/).","timestamp":"2020-04-14T10:00:47+00:00","score":2},{"role":"answerer","user_id":"anon_b9f9b53cb05e19b0","comment_id":"fnichot","kind":"comment","text":"Thanks for tuning in!","timestamp":"2020-04-15T19:07:51+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4a0275bea90439d0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b9f9b53cb05e19b0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fncrw4e","thanks_reply_id":"fnd4ipf","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_c9f7e4076aa9963f","answerer_user_id":"anon_39d83f5364630dcc","subreddit":"programming","timestamp":"2020-04-21T13:58:16+00:00","post_id":"g5fov3","question":"How I Failed to Deal With Legacy Code (and what I learned in the process)","preferred_answer":"These are great advice, earned the hard way! Hopefully it would inspire others and preserve them from the pain.\n\nAlong the lines of \"refactor incrementally\", there is also a simple thing that one can do when they go through Legacy Code: **rename things**. \n\nIt's frequent to get mislead by poor names. When it happens, take a minute to improve the name and save time for future maintainer (who may be you…). This can even be done incrementally, progressively improving names (I wrote on that topic).\n\nThank you for sharing your experience!","full_conversation":[{"role":"OP","user_id":"anon_c9f7e4076aa9963f","comment_id":"g5fov3","kind":"post","text":"How I Failed to Deal With Legacy Code (and what I learned in the process)","timestamp":"2020-04-21T13:58:16+00:00","score":3},{"role":"answerer","user_id":"anon_39d83f5364630dcc","comment_id":"fo6e425","kind":"comment","text":"These are great advice, earned the hard way! Hopefully it would inspire others and preserve them from the pain.\n\nAlong the lines of \"refactor incrementally\", there is also a simple thing that one can do when they go through Legacy Code: **rename things**. \n\nIt's frequent to get mislead by poor names. When it happens, take a minute to improve the name and save time for future maintainer (who may be you…). This can even be done incrementally, progressively improving names (I wrote on that topic).\n\nThank you for sharing your experience!","timestamp":"2020-04-22T11:48:41+00:00","score":2},{"role":"OP","user_id":"anon_c9f7e4076aa9963f","comment_id":"foaac8u","kind":"comment","text":"thanks, @nicoespeon I just discovered your blog!","timestamp":"2020-04-23T11:58:05+00:00","score":1},{"role":"answerer","user_id":"anon_39d83f5364630dcc","comment_id":"foahvo8","kind":"comment","text":"Aha, I hope you'll find it helpful ;-)","timestamp":"2020-04-23T13:00:02+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c9f7e4076aa9963f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_39d83f5364630dcc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fo6e425","thanks_reply_id":"foaac8u","post_score":3,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_30cdd0127a5eb7e2","answerer_user_id":"anon_1c89f257a430093b","subreddit":"programming","timestamp":"2020-05-12T09:35:32+00:00","post_id":"gi80v3","question":"What programming language should I use for a new social media like Facebook?","preferred_answer":"The language doesn't matter what matters is that you learn clean architecture principles by uncle bob.\n\nIf you're building a large app like a social media not doing it like what uncle bob suggests in clean architecture you're going to run into a lot trouble with your code as it grows and a mess build's up, then you can't edit a simple thing without breaking another. \n\nWatch uncle bobs video on YouTube about clean architecture and read his book if you have time then build your app\n\nAlso for language i would suggest java, having a object oriented and polymorphic language is really necessary for your app to be well designed","full_conversation":[{"role":"OP","user_id":"anon_30cdd0127a5eb7e2","comment_id":"gi80v3","kind":"post","text":"What programming language should I use for a new social media like Facebook?","timestamp":"2020-05-12T09:35:32+00:00","score":0},{"role":"answerer","user_id":"anon_1c89f257a430093b","comment_id":"fqd6kjz","kind":"comment","text":"The language doesn't matter what matters is that you learn clean architecture principles by uncle bob.\n\nIf you're building a large app like a social media not doing it like what uncle bob suggests in clean architecture you're going to run into a lot trouble with your code as it grows and a mess build's up, then you can't edit a simple thing without breaking another. \n\nWatch uncle bobs video on YouTube about clean architecture and read his book if you have time then build your app\n\nAlso for language i would suggest java, having a object oriented and polymorphic language is really necessary for your app to be well designed","timestamp":"2020-05-12T11:04:33+00:00","score":2},{"role":"OP","user_id":"anon_30cdd0127a5eb7e2","comment_id":"fqd82ga","kind":"comment","text":"Will do, thanks for the advice. I was thinking of a web server? Maybe nowadays making the app first would be better though. Either way you recommend java?","timestamp":"2020-05-12T11:27:19+00:00","score":1},{"role":"answerer","user_id":"anon_1c89f257a430093b","comment_id":"fqdc6og","kind":"comment","text":"I highly recommend you dont build the app first\nI speak from previous bitter experience. Because if you do, maintaining that app later will make your life hell\n\nYes i say go with java it's a safe bet\n\nAs i said if you practice clean architecture you can make crucial parts of your system working without deciding on a web server or what database to use yet until you have good insight on what your app requires.\n\n If you go with java try tomcat it's a good choice for web server","timestamp":"2020-05-12T12:23:42+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_30cdd0127a5eb7e2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1c89f257a430093b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fqd6kjz","thanks_reply_id":"fqd82ga","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_93b9c4a4c4a8407e","answerer_user_id":"anon_e1fc464660da0ef0","subreddit":"programming","timestamp":"2020-05-15T16:20:35+00:00","post_id":"gkc6ty","question":"How to create a Login system using HTML, PHP, and MySQL","preferred_answer":"Do NOT use the code from this website. The code is riddled with SQL injection vulnerabilities. Anyone can dump your database and insert false records.\n\nThis code is wrong and dangerous. Never form SQL statements through string concatenation unless you really known what you're doing and are writing an ORM or something similar.\n\nProvably best to watch out with taking any other code by this author as well, just in case.","full_conversation":[{"role":"OP","user_id":"anon_93b9c4a4c4a8407e","comment_id":"gkc6ty","kind":"post","text":"How to create a Login system using HTML, PHP, and MySQL","timestamp":"2020-05-15T16:20:35+00:00","score":0},{"role":"answerer","user_id":"anon_e1fc464660da0ef0","comment_id":"fqrb22i","kind":"comment","text":"Do NOT use the code from this website. The code is riddled with SQL injection vulnerabilities. Anyone can dump your database and insert false records.\n\nThis code is wrong and dangerous. Never form SQL statements through string concatenation unless you really known what you're doing and are writing an ORM or something similar.\n\nProvably best to watch out with taking any other code by this author as well, just in case.","timestamp":"2020-05-15T22:15:28+00:00","score":3},{"role":"OP","user_id":"anon_93b9c4a4c4a8407e","comment_id":"fqu64go","kind":"comment","text":"Thank you for sharing feedback for the code. It was just for beginner level. However, we have updated the code considering your feedback regarding SQL injection vulnerabilities.","timestamp":"2020-05-16T18:12:41+00:00","score":2},{"role":"answerer","user_id":"anon_e1fc464660da0ef0","comment_id":"fqujci5","kind":"comment","text":"Thank you for your response. I'm glad you took the time to update the code, now beginners can learn to program safely as well!","timestamp":"2020-05-16T20:11:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_93b9c4a4c4a8407e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e1fc464660da0ef0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fqrb22i","thanks_reply_id":"fqu64go","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_4a0275bea90439d0","answerer_user_id":"anon_12fb1a946f453057","subreddit":"programming","timestamp":"2020-05-18T05:48:00+00:00","post_id":"glvlq7","question":"How to Create a GNOME Extension (Part 10) - Create another Panel","preferred_answer":"This is great, there isn't enough info on creating extensions, I'll definitely be checking the rest.\n\nCould you going to cover adding a new action to the right click menu of icons in the overview ?","full_conversation":[{"role":"OP","user_id":"anon_4a0275bea90439d0","comment_id":"glvlq7","kind":"post","text":"How to Create a GNOME Extension (Part 10) - Create another Panel","timestamp":"2020-05-18T05:48:00+00:00","score":7},{"role":"answerer","user_id":"anon_12fb1a946f453057","comment_id":"fr1v9o8","kind":"comment","text":"This is great, there isn't enough info on creating extensions, I'll definitely be checking the rest.\n\nCould you going to cover adding a new action to the right click menu of icons in the overview ?","timestamp":"2020-05-18T18:28:55+00:00","score":2},{"role":"OP","user_id":"anon_4a0275bea90439d0","comment_id":"fr1xyqb","kind":"comment","text":"Thanks.\nYou mean right click on an app in the app list? I have to read the UI source code for that.","timestamp":"2020-05-18T18:50:25+00:00","score":1},{"role":"answerer","user_id":"anon_12fb1a946f453057","comment_id":"fr4e3s5","kind":"comment","text":"Yes.\n\nThe idea was to hook it up to something that can edit the desktop file, but the info seems really sparse.","timestamp":"2020-05-19T10:47:55+00:00","score":2},{"role":"OP","user_id":"anon_4a0275bea90439d0","comment_id":"fr4f8kg","kind":"comment","text":"Never did that but that's related to the UI source code:\n\n[https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/panel.js](https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/panel.js)\n\nSearch for AppMenu in it.\n\nThe UI Source code doesn't have any documentation. sometimes, it can take days to find something in it :(\n\nReally needs documentation.\n\nIf you have programming background you can find everything here:\n\n[https://gjs-docs.gnome.org/](https://gjs-docs.gnome.org/)\n\nand here:\n\n[https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/master/js/ui](https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/master/js/ui)\n\nAnd you only need to watch these parts: 1,3,4,5,6. 7 is the same as 6 just using glade file.","timestamp":"2020-05-19T11:05:34+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_4a0275bea90439d0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_12fb1a946f453057","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fr1v9o8","thanks_reply_id":"fr1xyqb","post_score":7,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6c63939290b15eaf","answerer_user_id":"anon_ff696727782271b9","subreddit":"programming","timestamp":"2020-05-18T23:46:29+00:00","post_id":"gmd7zy","question":"What language was used to make this?","preferred_answer":"Sorry, but please observe Rules 1, 3, and 4:\n\n* Please keep submissions on topic and of high quality.\n* Just because it has a computer in it doesn't make it programming. If there is no code in your link, it probably doesn't belong here.\n* Just because it has a computer in it doesn't make it programming. If there is no code in your link, it probably doesn't belong here.\n\n----\n\nAs to your question - we cannot answer this accurately, but you have the Youtube channel of the creator. If you go into the file he provides for the game, it even has a README that states:\n\n> If you encounter a bug, or just want to ask something, please send me an e-mail! :)\n\n> E-mail: rainetfangame@gmail.com\n\nOtherwise you can decompile the exe in [Ghidra](https://ghidra-sre.org/) and either hope for some debug info left in, or check for fingerprints of a compiler. I took a really quick look - not Java or C#, no debug info so I'm just going to say C/C++ off the top of my head.","full_conversation":[{"role":"OP","user_id":"anon_6c63939290b15eaf","comment_id":"gmd7zy","kind":"post","text":"What language was used to make this?","timestamp":"2020-05-18T23:46:29+00:00","score":0},{"role":"answerer","user_id":"anon_ff696727782271b9","comment_id":"fr39zj1","kind":"comment","text":"Sorry, but please observe Rules 1, 3, and 4:\n\n* Please keep submissions on topic and of high quality.\n* Just because it has a computer in it doesn't make it programming. If there is no code in your link, it probably doesn't belong here.\n* Just because it has a computer in it doesn't make it programming. If there is no code in your link, it probably doesn't belong here.\n\n----\n\nAs to your question - we cannot answer this accurately, but you have the Youtube channel of the creator. If you go into the file he provides for the game, it even has a README that states:\n\n> If you encounter a bug, or just want to ask something, please send me an e-mail! :)\n\n> E-mail: rainetfangame@gmail.com\n\nOtherwise you can decompile the exe in [Ghidra](https://ghidra-sre.org/) and either hope for some debug info left in, or check for fingerprints of a compiler. I took a really quick look - not Java or C#, no debug info so I'm just going to say C/C++ off the top of my head.","timestamp":"2020-05-19T01:49:17+00:00","score":2},{"role":"OP","user_id":"anon_6c63939290b15eaf","comment_id":"fr3c8ol","kind":"comment","text":"thank you","timestamp":"2020-05-19T02:11:39+00:00","score":2},{"role":"answerer","user_id":"anon_ff696727782271b9","comment_id":"fr3cn67","kind":"comment","text":"Of course, good luck!","timestamp":"2020-05-19T02:15:43+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6c63939290b15eaf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ff696727782271b9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fr39zj1","thanks_reply_id":"fr3c8ol","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_42b610a65e8c1cdc","answerer_user_id":"anon_c15a2a8c51b9a431","subreddit":"programming","timestamp":"2020-05-25T21:41:05+00:00","post_id":"gqjyeq","question":"Looking for a free weather API with forecasts","preferred_answer":"I personally use [openweathermap.org](https://openweathermap.org), some of the options require a paid subscription but you can check the free tier, it might work out for you.","full_conversation":[{"role":"OP","user_id":"anon_42b610a65e8c1cdc","comment_id":"gqjyeq","kind":"post","text":"Looking for a free weather API with forecasts","timestamp":"2020-05-25T21:41:05+00:00","score":0},{"role":"answerer","user_id":"anon_c15a2a8c51b9a431","comment_id":"frt4pri","kind":"comment","text":"I personally use [openweathermap.org](https://openweathermap.org), some of the options require a paid subscription but you can check the free tier, it might work out for you.","timestamp":"2020-05-25T21:46:24+00:00","score":2},{"role":"OP","user_id":"anon_42b610a65e8c1cdc","comment_id":"frt669e","kind":"comment","text":"Thanks! I saw them, but their rate is a bit low. Around 1 request/s is what I‘m looking for.","timestamp":"2020-05-25T21:59:31+00:00","score":0},{"role":"answerer","user_id":"anon_c15a2a8c51b9a431","comment_id":"frt6owk","kind":"comment","text":"Free services will always have some limitation, but don't be discouraged and keep looking you might find something.\n\nGood luck!","timestamp":"2020-05-25T22:04:16+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_42b610a65e8c1cdc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c15a2a8c51b9a431","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"frt4pri","thanks_reply_id":"frt669e","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0e6f43ca33a7eefb","answerer_user_id":"anon_746fc8e9e5dbca0f","subreddit":"programming","timestamp":"2020-06-01T00:51:12+00:00","post_id":"guart5","question":"I'm thinking of taking Output Teaches Creating Audio Plugins with C++ and JUCE. Anyone here have any opinions on this?","preferred_answer":"Do you already know C++? I can't see the course being useful if you don't. \n\nAnd if you do know C++, then picking up JUCE isn't very hard. It's a pretty simple framework.\n\nI doesn't look like the course covers very much DSP math, which is the hard part of creating plugins. That takes years to learn. \n\nIs there something particular you want to build?\n\nIf you're not too experienced yet, I'd follow The Audio Programmer: https://www.youtube.com/channel/UCpKb02FsH4WH4X_2xhIoJ1A\n\nIf you are more experienced, in other areas of programming already, I'd just jump right in.","full_conversation":[{"role":"OP","user_id":"anon_0e6f43ca33a7eefb","comment_id":"guart5","kind":"post","text":"I'm thinking of taking Output Teaches Creating Audio Plugins with C++ and JUCE. Anyone here have any opinions on this?","timestamp":"2020-06-01T00:51:12+00:00","score":2},{"role":"answerer","user_id":"anon_746fc8e9e5dbca0f","comment_id":"fshcij5","kind":"comment","text":"Do you already know C++? I can't see the course being useful if you don't. \n\nAnd if you do know C++, then picking up JUCE isn't very hard. It's a pretty simple framework.\n\nI doesn't look like the course covers very much DSP math, which is the hard part of creating plugins. That takes years to learn. \n\nIs there something particular you want to build?\n\nIf you're not too experienced yet, I'd follow The Audio Programmer: https://www.youtube.com/channel/UCpKb02FsH4WH4X_2xhIoJ1A\n\nIf you are more experienced, in other areas of programming already, I'd just jump right in.","timestamp":"2020-06-01T01:29:42+00:00","score":5},{"role":"OP","user_id":"anon_0e6f43ca33a7eefb","comment_id":"fshcxy1","kind":"comment","text":"Thank you from the response. I don’t know C++ yet , which is one of the reasons I considered it. I was also thinking that it’s connection to official companies would aid in me getting a job if I wanted to go in that direction. Also do you know of any UI design courses related to plugins and music apps? Also a good course on building MIDI controllers?","timestamp":"2020-06-01T01:33:48+00:00","score":1},{"role":"answerer","user_id":"anon_746fc8e9e5dbca0f","comment_id":"fshdqa5","kind":"comment","text":"If you don't know C++ yet, I think you'd struggle with that course. Have you checked out the JUCE forum yet? https://forum.juce.com/ Everybody is pretty friendly there. There are a decent number of industry folk there too, it's pretty easy to pick up a job if your active on the forum once you know your stuff.\n\nThere are a couple of good books by Will Pirkle (they aren't JUCE, but the cover the basic of creating plugins). https://www.willpirkle.com/\n\nI can't help with UI design, I'm terrible at it. Luckily I've got a good guy that does my designs for me.","timestamp":"2020-06-01T01:41:07+00:00","score":3},{"role":"OP","user_id":"anon_0e6f43ca33a7eefb","comment_id":"fshfwmv","kind":"comment","text":"Thank you for the info. As for when I learn these things, what would be the best way of earning money with it? I am also interested in sound design and making music for tv, games, and movies","timestamp":"2020-06-01T02:02:10+00:00","score":1},{"role":"answerer","user_id":"anon_746fc8e9e5dbca0f","comment_id":"fshgueb","kind":"comment","text":"I worked for Mackie / LOUD Technologies for about 5 years, made a decent number of contacts, and have been doing freelance development for the last 10 years. It's kept me busy all that time.\n\nThe programming side is probably easier to make decent money at, just because the barrier to entry is a lot higher. You can make money doing preset packs and sound design, but there is a lot of competition and it's hard to make a name for yourself.\n\nIt's pretty hard to make a name for yourself doing synth plugins and effects. I do have a few of my own plugins, but they don't get much visibility. That's why I mainly work for established brands.\n\nIt's a super fun industry to be in. But you'll probably make less money than going to a standard tech company.","timestamp":"2020-06-01T02:11:21+00:00","score":3},{"role":"OP","user_id":"anon_0e6f43ca33a7eefb","comment_id":"fshngsi","kind":"comment","text":"That’s a good point to think about. I’m just finishing dinner so I will reply again later. I’m guessing it’s easier to make a name for yourself if you produce and perform music, which is what I want to do. I would also like to make a custom CS-80 MIDI controller with MIDI 2.0 capabilities and LED indicators on the faders","timestamp":"2020-06-01T03:17:24+00:00","score":1},{"role":"answerer","user_id":"anon_746fc8e9e5dbca0f","comment_id":"fsitvdw","kind":"comment","text":"I don't much about making hardware.\n\nThere is an online meetup on the 9th you may find interesting: https://forum.juce.com/t/audio-programmer-meetup-9-june/39801","timestamp":"2020-06-01T13:05:05+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_0e6f43ca33a7eefb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_746fc8e9e5dbca0f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fshcij5","thanks_reply_id":"fshcxy1","post_score":2,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_eee55519acbc3ff8","answerer_user_id":"anon_3b0e3c42276163b7","subreddit":"programming","timestamp":"2020-06-19T15:15:19+00:00","post_id":"hc2hbu","question":"Is 🙏or 👏better to show Thank You in StackOverflow?","preferred_answer":"> Never have I thought of 🙏 as greetings. \n\nIn India, [it certainly means that](https://c8.alamy.com/comp/A2FY2C/mahatma-gandhi-greeting-people-saying-namaste-welcome-with-folded-A2FY2C.jpg).","full_conversation":[{"role":"OP","user_id":"anon_eee55519acbc3ff8","comment_id":"hc2hbu","kind":"post","text":"Is 🙏or 👏better to show Thank You in StackOverflow?","timestamp":"2020-06-19T15:15:19+00:00","score":0},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"fvcmxke","kind":"comment","text":"> Never have I thought of 🙏 as greetings. \n\nIn India, [it certainly means that](https://c8.alamy.com/comp/A2FY2C/mahatma-gandhi-greeting-people-saying-namaste-welcome-with-folded-A2FY2C.jpg).","timestamp":"2020-06-19T16:22:04+00:00","score":1},{"role":"OP","user_id":"anon_eee55519acbc3ff8","comment_id":"fve579i","kind":"comment","text":"Thanks. How does one show thank you in India?","timestamp":"2020-06-20T00:15:16+00:00","score":1},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"fvec7py","kind":"comment","text":"I know this one but I wasn't sure I could describe it with words -- it's a sort of right hand on chin gesture, the middle gesture in this image:\n[please/thank you/sorry](https://www.communicationtheory.org/wp-content/uploads/2010/03/body-language-1.jpg).\n\nI have often used the \"greetings\" hand position plus a small bow toward the recipient, but I doubt this is as well-understood as the hand-on-chin gesture.\n\nBut this is only from the perspective of a Western tourist, not by any means an adept or expert.","timestamp":"2020-06-20T01:26:18+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_eee55519acbc3ff8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3b0e3c42276163b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fvcmxke","thanks_reply_id":"fve579i","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_2dce27fcd5b8bb68","answerer_user_id":"anon_99753b8c21ae2b81","subreddit":"programming","timestamp":"2020-06-24T16:52:50+00:00","post_id":"hf4let","question":"Help me fix this code pls.Thank you :((","preferred_answer":"if (SBD < t->Key.SBD)\n\n`SBD` is a pointer to an array of char that you're using for a nul-terminated string.\n\n`<` doesn't compare the contents of the string.\n\nIdeally use `std::string` through out instead of `char [50]`.\n\nOr use `strcmp` to compare C-style strings.","full_conversation":[{"role":"OP","user_id":"anon_2dce27fcd5b8bb68","comment_id":"hf4let","kind":"post","text":"Help me fix this code pls.Thank you :((","timestamp":"2020-06-24T16:52:50+00:00","score":0},{"role":"answerer","user_id":"anon_99753b8c21ae2b81","comment_id":"fvvaqe7","kind":"comment","text":"if (SBD < t->Key.SBD)\n\n`SBD` is a pointer to an array of char that you're using for a nul-terminated string.\n\n`<` doesn't compare the contents of the string.\n\nIdeally use `std::string` through out instead of `char [50]`.\n\nOr use `strcmp` to compare C-style strings.","timestamp":"2020-06-24T17:09:07+00:00","score":3},{"role":"OP","user_id":"anon_2dce27fcd5b8bb68","comment_id":"fvvbfjg","kind":"comment","text":"Thanks but I don't really get it","timestamp":"2020-06-24T17:14:44+00:00","score":-2},{"role":"answerer","user_id":"anon_99753b8c21ae2b81","comment_id":"fvvca1x","kind":"comment","text":"What don't you get?\n\nYou cannot use `<` to compare C-style strings.\n\nUse `strcmp` to compare C-style strings.\n\nOr use `std::string`. You *can* use `<` with `std::string`.","timestamp":"2020-06-24T17:21:25+00:00","score":3},{"role":"OP","user_id":"anon_2dce27fcd5b8bb68","comment_id":"fvvre3d","kind":"comment","text":"Can you speak more specifically?","timestamp":"2020-06-24T19:21:42+00:00","score":-1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2dce27fcd5b8bb68","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_99753b8c21ae2b81","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fvvaqe7","thanks_reply_id":"fvvbfjg","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_556d792efb365118","answerer_user_id":"anon_9e52bcab5a5aec0a","subreddit":"programming","timestamp":"2020-06-30T20:01:17+00:00","post_id":"hiv03d","question":"I programmed a regex engine from scratch (no imports!) in Python on stream yesterday. What should I program from scratch next?","preferred_answer":"I'll have a look at the video, sounds like a good idea.\n\nProbably what's most interesting on a global scale are answers to coding interview questions, like data structures and algorithms and such.\n\nThere are already plenty of examples (and even books and paid tutorials... there's basically a whole business driven by this practice) but I've not seen many actually coding this kind if things live.","full_conversation":[{"role":"OP","user_id":"anon_556d792efb365118","comment_id":"hiv03d","kind":"post","text":"I programmed a regex engine from scratch (no imports!) in Python on stream yesterday. What should I program from scratch next?","timestamp":"2020-06-30T20:01:17+00:00","score":2},{"role":"answerer","user_id":"anon_9e52bcab5a5aec0a","comment_id":"fwk35yn","kind":"comment","text":"I'll have a look at the video, sounds like a good idea.\n\nProbably what's most interesting on a global scale are answers to coding interview questions, like data structures and algorithms and such.\n\nThere are already plenty of examples (and even books and paid tutorials... there's basically a whole business driven by this practice) but I've not seen many actually coding this kind if things live.","timestamp":"2020-07-01T06:00:05+00:00","score":2},{"role":"OP","user_id":"anon_556d792efb365118","comment_id":"fwk5ug5","kind":"comment","text":"Thank you for the feedback! I'd be happy to do it if people sent them in. I can try to look some up in the meantime.","timestamp":"2020-07-01T06:37:55+00:00","score":1},{"role":"answerer","user_id":"anon_9e52bcab5a5aec0a","comment_id":"fwkkosj","kind":"comment","text":"Just pick one of the most frequently asked, like I don't know, a balanced binary tree.\n\nOtherwise you might write something like a JSON/YAML parser from scratch, also interesting I think given that those formats are basically used everywhere nowadays","timestamp":"2020-07-01T10:44:04+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_556d792efb365118","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9e52bcab5a5aec0a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fwk35yn","thanks_reply_id":"fwk5ug5","post_score":2,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_c2f2c5822956266b","answerer_user_id":"anon_0a928992a31f0f75","subreddit":"programming","timestamp":"2020-07-05T11:12:16+00:00","post_id":"hlky47","question":"What is PHP? - The Teen Programmer","preferred_answer":"Actually Wikipedia move back to PHP 7 in 2019\n\nhttps://m.mediawiki.org/wiki/Beta_Features/PHP7","full_conversation":[{"role":"OP","user_id":"anon_c2f2c5822956266b","comment_id":"hlky47","kind":"post","text":"What is PHP? - The Teen Programmer","timestamp":"2020-07-05T11:12:16+00:00","score":0},{"role":"answerer","user_id":"anon_0a928992a31f0f75","comment_id":"fwznrzl","kind":"comment","text":"Actually Wikipedia move back to PHP 7 in 2019\n\nhttps://m.mediawiki.org/wiki/Beta_Features/PHP7","timestamp":"2020-07-05T11:39:05+00:00","score":3},{"role":"OP","user_id":"anon_c2f2c5822956266b","comment_id":"fwzuhl1","kind":"comment","text":"thanks, do you mind if I add that?","timestamp":"2020-07-05T13:14:25+00:00","score":1},{"role":"answerer","user_id":"anon_0a928992a31f0f75","comment_id":"fx1c3r2","kind":"comment","text":"Sure. No problem.","timestamp":"2020-07-05T21:32:11+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c2f2c5822956266b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0a928992a31f0f75","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fwznrzl","thanks_reply_id":"fwzuhl1","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_8ac247e017340dfa","answerer_user_id":"anon_d67968c953f5045a","subreddit":"programming","timestamp":"2020-07-11T06:12:59+00:00","post_id":"hp56ap","question":"How the development of operating systems gave birth to Open Source","preferred_answer":"A pleasant read a few idiosyncrasies in the prose for the native English reader but the passion is there","full_conversation":[{"role":"OP","user_id":"anon_8ac247e017340dfa","comment_id":"hp56ap","kind":"post","text":"How the development of operating systems gave birth to Open Source","timestamp":"2020-07-11T06:12:59+00:00","score":0},{"role":"answerer","user_id":"anon_d67968c953f5045a","comment_id":"fxn3zrx","kind":"comment","text":"A pleasant read a few idiosyncrasies in the prose for the native English reader but the passion is there","timestamp":"2020-07-11T09:19:23+00:00","score":2},{"role":"OP","user_id":"anon_8ac247e017340dfa","comment_id":"fxn5uhi","kind":"comment","text":"Thanks. Yes, English is not my native language. Will surely work on writing it with more enthusiasm.","timestamp":"2020-07-11T09:35:02+00:00","score":2},{"role":"answerer","user_id":"anon_d67968c953f5045a","comment_id":"fxo6k3j","kind":"comment","text":"I enjoyed it was interesting pls don’t worry too much about approaching native fluency the content matters much more","timestamp":"2020-07-11T13:59:02+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8ac247e017340dfa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d67968c953f5045a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fxn3zrx","thanks_reply_id":"fxn5uhi","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6385c53b61eb7573","answerer_user_id":"anon_3037de9169747af9","subreddit":"programming","timestamp":"2020-07-18T10:55:04+00:00","post_id":"hter43","question":"Hi, I'm in year 10 at school and Im doing computer science. I like python but I'm looking to learn a new language. (I know python is easy and seems like a joke to most of you but I have to start somewhere!) What new language should I start to learn that is used a lot in I industry and you recommend?","preferred_answer":"I recommend something not-imperative-OO and statically typed.\n\nIn other words, don't learn the same language with different syntax. Learn a different paradigm.","full_conversation":[{"role":"OP","user_id":"anon_6385c53b61eb7573","comment_id":"hter43","kind":"post","text":"Hi, I'm in year 10 at school and Im doing computer science. I like python but I'm looking to learn a new language. (I know python is easy and seems like a joke to most of you but I have to start somewhere!) What new language should I start to learn that is used a lot in I industry and you recommend?","timestamp":"2020-07-18T10:55:04+00:00","score":0},{"role":"answerer","user_id":"anon_3037de9169747af9","comment_id":"fygdzl7","kind":"comment","text":"I recommend something not-imperative-OO and statically typed.\n\nIn other words, don't learn the same language with different syntax. Learn a different paradigm.","timestamp":"2020-07-18T11:49:22+00:00","score":1},{"role":"OP","user_id":"anon_6385c53b61eb7573","comment_id":"fygppvl","kind":"comment","text":"Thank's very much for everyone's help! It's been really good to see all your recommendations. I've read every single one. \n\n(I'm just pasting this on every reply so it gives you a notification and you know that I'm grateful!)","timestamp":"2020-07-18T14:19:09+00:00","score":2},{"role":"answerer","user_id":"anon_3037de9169747af9","comment_id":"fygqful","kind":"comment","text":"That’s very thoughtful! Please don’t hesitate to add any follow-up questions that come to mind!","timestamp":"2020-07-18T14:26:39+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6385c53b61eb7573","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3037de9169747af9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fygdzl7","thanks_reply_id":"fygppvl","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_0183ac0cd1042aaf","answerer_user_id":"anon_39addcedfd7f661c","subreddit":"programming","timestamp":"2020-07-21T14:15:10+00:00","post_id":"hv824k","question":"Is clean architecture worth it or is it over engineering in web development?","preferred_answer":"MVC is only focused on the separation of concerns between business logic and presentation layers.\n\nClean is focused on the isolation of business logic and your domain from Everything. This includes infrastructure (databases, config, reading from disk in any way), so that you have a core domain that never has to change due to changes in outside layers. This means you should be able to swap out databases, presentation layers, operationg systems, etc - without ever having to change the core domain layer.","full_conversation":[{"role":"OP","user_id":"anon_0183ac0cd1042aaf","comment_id":"hv824k","kind":"post","text":"Is clean architecture worth it or is it over engineering in web development?","timestamp":"2020-07-21T14:15:10+00:00","score":4},{"role":"answerer","user_id":"anon_39addcedfd7f661c","comment_id":"fyvd6eq","kind":"comment","text":"MVC is only focused on the separation of concerns between business logic and presentation layers.\n\nClean is focused on the isolation of business logic and your domain from Everything. This includes infrastructure (databases, config, reading from disk in any way), so that you have a core domain that never has to change due to changes in outside layers. This means you should be able to swap out databases, presentation layers, operationg systems, etc - without ever having to change the core domain layer.","timestamp":"2020-07-22T13:40:16+00:00","score":2},{"role":"OP","user_id":"anon_0183ac0cd1042aaf","comment_id":"fyvl4e1","kind":"comment","text":"I understand what your are saying but only abstractly. But thanks any way . Its very difficult learning these things on my own.","timestamp":"2020-07-22T14:52:24+00:00","score":1},{"role":"answerer","user_id":"anon_39addcedfd7f661c","comment_id":"fyvlc2h","kind":"comment","text":"Unfortunately, the only way to really experience that “aha” moment with these types of things seems to be through practice.\n\nBest of luck.","timestamp":"2020-07-22T14:54:15+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0183ac0cd1042aaf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_39addcedfd7f661c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"fyvd6eq","thanks_reply_id":"fyvl4e1","post_score":4,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_885fab6671160b92","answerer_user_id":"anon_9531f995c5cb04b3","subreddit":"programming","timestamp":"2020-08-05T22:54:12+00:00","post_id":"i4ftij","question":"How we implemented subqueries in our open-source golang SQL query engine","preferred_answer":"> For each state, I want to know a single city with a bigger population, if there is one. There's **no** way to do this with a **join**, but it's easy with a subquery:\n\nThis is not completly true: You can use a ``LATERAL`` join from the SQL 99 spec:\n\n SELECT state,\n bigger_cities.city AS bigger_city\n FROM states\n LEFT JOIN lateral (\n SELECT city\n FROM cities\n WHERE pop > states.pop\n LIMIT 1\n ) AS bigger_cities ON true\n ORDER BY state\n\nwhich gives you the same:\n\n state | bigger_city\n -------------------\n NE | Houston\n SD | NULL\n WY | NYC\n\nTechnically the SQL engine will of course also have to iterate for each outer row within the joined select-part, but concerning the pure *syntax* it is a ``JOIN`` ;-)\n\nThe clou with ``LATERAL`` is that you can even select more than one *column* or include more than one *row* thanks to the ``JOIN`` semantics:\n\n SELECT state,\n bigger_cities.city AS bigger_city,\n bigger_cities.pop AS bigger_pop\n FROM states\n LEFT JOIN lateral (\n SELECT city,\n pop\n FROM cities\n WHERE pop > states.pop \n --LIMIT 1\n ) AS bigger_cities ON true\n ORDER BY state\n\nHere we get the following result:\n\n state | bigger_city | bigger_pop\n --------------------------------\n NE | Houston | 600\n SD | NULL | NULL\n WY | NYC | 400\n WY | Houston | 600","full_conversation":[{"role":"OP","user_id":"anon_885fab6671160b92","comment_id":"i4ftij","kind":"post","text":"How we implemented subqueries in our open-source golang SQL query engine","timestamp":"2020-08-05T22:54:12+00:00","score":2},{"role":"answerer","user_id":"anon_9531f995c5cb04b3","comment_id":"g0jzunm","kind":"comment","text":"> For each state, I want to know a single city with a bigger population, if there is one. There's **no** way to do this with a **join**, but it's easy with a subquery:\n\nThis is not completly true: You can use a ``LATERAL`` join from the SQL 99 spec:\n\n SELECT state,\n bigger_cities.city AS bigger_city\n FROM states\n LEFT JOIN lateral (\n SELECT city\n FROM cities\n WHERE pop > states.pop\n LIMIT 1\n ) AS bigger_cities ON true\n ORDER BY state\n\nwhich gives you the same:\n\n state | bigger_city\n -------------------\n NE | Houston\n SD | NULL\n WY | NYC\n\nTechnically the SQL engine will of course also have to iterate for each outer row within the joined select-part, but concerning the pure *syntax* it is a ``JOIN`` ;-)\n\nThe clou with ``LATERAL`` is that you can even select more than one *column* or include more than one *row* thanks to the ``JOIN`` semantics:\n\n SELECT state,\n bigger_cities.city AS bigger_city,\n bigger_cities.pop AS bigger_pop\n FROM states\n LEFT JOIN lateral (\n SELECT city,\n pop\n FROM cities\n WHERE pop > states.pop \n --LIMIT 1\n ) AS bigger_cities ON true\n ORDER BY state\n\nHere we get the following result:\n\n state | bigger_city | bigger_pop\n --------------------------------\n NE | Houston | 600\n SD | NULL | NULL\n WY | NYC | 400\n WY | Houston | 600","timestamp":"2020-08-06T12:56:44+00:00","score":3},{"role":"OP","user_id":"anon_885fab6671160b92","comment_id":"g0koz1f","kind":"comment","text":"I always forget about LATERAL JOIN. Thanks for the tip!","timestamp":"2020-08-06T15:59:59+00:00","score":2},{"role":"answerer","user_id":"anon_9531f995c5cb04b3","comment_id":"g0kq0nh","kind":"comment","text":"You're welcome 🙂\nThx for the interesting article btw!","timestamp":"2020-08-06T16:07:27+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_885fab6671160b92","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9531f995c5cb04b3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g0jzunm","thanks_reply_id":"g0koz1f","post_score":2,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_622c21b3a66147d3","answerer_user_id":"anon_510df218965c2b6d","subreddit":"programming","timestamp":"2020-08-07T20:19:31+00:00","post_id":"i5l9t8","question":"🏄 🏄 🏄 Inside emacs #2 - What emacs can do for you ???","preferred_answer":"Can't tell if you are serious or not but here is some info for people which don't follow Emacs news: With language servers becoming more popular advantages some IDEs had are essentially gone. Emacs has a bright future and is under active development (soon you will even be able to compile elisp to [native code](http://akrl.sdf.org/gccemacs.html)). \n\nWhat I would refer to as crap is something like VsCode which isn't open source (only parts are), doesn't even support [keyboard macros](https://github.com/microsoft/vscode/issues/4490), can't handle [binary files](https://github.com/microsoft/vscode/issues/2582), used to refuse to open when [offline](https://github.com/microsoft/vscode/issues/7570) and isn't comparable in terms of extensibility.","full_conversation":[{"role":"OP","user_id":"anon_622c21b3a66147d3","comment_id":"i5l9t8","kind":"post","text":"🏄 🏄 🏄 Inside emacs #2 - What emacs can do for you ???","timestamp":"2020-08-07T20:19:31+00:00","score":0},{"role":"answerer","user_id":"anon_510df218965c2b6d","comment_id":"g0s0hwv","kind":"comment","text":"Can't tell if you are serious or not but here is some info for people which don't follow Emacs news: With language servers becoming more popular advantages some IDEs had are essentially gone. Emacs has a bright future and is under active development (soon you will even be able to compile elisp to [native code](http://akrl.sdf.org/gccemacs.html)). \n\nWhat I would refer to as crap is something like VsCode which isn't open source (only parts are), doesn't even support [keyboard macros](https://github.com/microsoft/vscode/issues/4490), can't handle [binary files](https://github.com/microsoft/vscode/issues/2582), used to refuse to open when [offline](https://github.com/microsoft/vscode/issues/7570) and isn't comparable in terms of extensibility.","timestamp":"2020-08-08T10:34:57+00:00","score":1},{"role":"OP","user_id":"anon_622c21b3a66147d3","comment_id":"g0vs57p","kind":"comment","text":"I wasn't aware of gccemacs, sound really cool. Thank you for the reference. Have a nice day","timestamp":"2020-08-09T11:25:00+00:00","score":1},{"role":"answerer","user_id":"anon_510df218965c2b6d","comment_id":"g10ey69","kind":"comment","text":"It will make all elisp a lot faster (see the benchmarks on the site). I hope it gets released in Emacs 28 already. Have a nice day, too ;)","timestamp":"2020-08-10T17:12:30+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_622c21b3a66147d3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_510df218965c2b6d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g0s0hwv","thanks_reply_id":"g0vs57p","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_99afb4913f3411ed","answerer_user_id":"anon_6df971ef6aedd25d","subreddit":"programming","timestamp":"2020-08-20T10:11:58+00:00","post_id":"id7m1e","question":"Hi, I'm a fresh graduate I.T and I have this job(Application Developer) where I need to maintain a Legacy Web Application, but sadly the Web App seemed to be so big and I don't have any idea where to start. Have any tips for a newbie dev?","preferred_answer":"Alright, I was in a very similar position only a year ago. Here is basically what I did:\n\n1. Read any available documentation on the application, talk to anyone on the team that knows anything about it. Try to undestand its purpose and functions.\n\n2. Familiarize your self with the tech stack. If there is any piece your not familiar with then read up on it and maybe do a quick tutorial if you have time.\n\n3. Start looking at the code. First just get an understanding of how the project is structured. Then you can dig a little deeper and just try to figure out how one aspect works. Don't spend too much time trying to read through all of the code though.\n\n4. Make sure you have a functioning Dev environment to work on the app and it is under version control. Figure out the build process.\n\n5. At this point I just chose a small and simple looking bug and tried to fix it. Choose something that only affects a small function of the application. Or it could be a small feature request. This will force you to go through the full Dev workflow with the application.","full_conversation":[{"role":"OP","user_id":"anon_99afb4913f3411ed","comment_id":"id7m1e","kind":"post","text":"Hi, I'm a fresh graduate I.T and I have this job(Application Developer) where I need to maintain a Legacy Web Application, but sadly the Web App seemed to be so big and I don't have any idea where to start. Have any tips for a newbie dev?","timestamp":"2020-08-20T10:11:58+00:00","score":0},{"role":"answerer","user_id":"anon_6df971ef6aedd25d","comment_id":"g2bf6m0","kind":"comment","text":"Alright, I was in a very similar position only a year ago. Here is basically what I did:\n\n1. Read any available documentation on the application, talk to anyone on the team that knows anything about it. Try to undestand its purpose and functions.\n\n2. Familiarize your self with the tech stack. If there is any piece your not familiar with then read up on it and maybe do a quick tutorial if you have time.\n\n3. Start looking at the code. First just get an understanding of how the project is structured. Then you can dig a little deeper and just try to figure out how one aspect works. Don't spend too much time trying to read through all of the code though.\n\n4. Make sure you have a functioning Dev environment to work on the app and it is under version control. Figure out the build process.\n\n5. At this point I just chose a small and simple looking bug and tried to fix it. Choose something that only affects a small function of the application. Or it could be a small feature request. This will force you to go through the full Dev workflow with the application.","timestamp":"2020-08-21T11:57:52+00:00","score":1},{"role":"OP","user_id":"anon_99afb4913f3411ed","comment_id":"g2bz852","kind":"comment","text":"Thanks for the tips man! You guys are awesome!","timestamp":"2020-08-21T15:17:41+00:00","score":1},{"role":"answerer","user_id":"anon_6df971ef6aedd25d","comment_id":"g2c1zof","kind":"comment","text":"Sure, good luck with it! Working on that project was a challenge for me but I also learned a ton.","timestamp":"2020-08-21T15:40:02+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_99afb4913f3411ed","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6df971ef6aedd25d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g2bf6m0","thanks_reply_id":"g2bz852","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_4b63816a1bd4419e","answerer_user_id":"anon_41b2cb7ed95aedf0","subreddit":"programming","timestamp":"2020-08-20T14:56:11+00:00","post_id":"idbs3v","question":"What naming convention should I use for a JSON RPC client API designed for multiple languages?","preferred_answer":"From the sidebar:\n\n> Do you have a question? Check out /r/learnprogramming, /r/cscareerquestions, or Stack Overflow.","full_conversation":[{"role":"OP","user_id":"anon_4b63816a1bd4419e","comment_id":"idbs3v","kind":"post","text":"What naming convention should I use for a JSON RPC client API designed for multiple languages?","timestamp":"2020-08-20T14:56:11+00:00","score":0},{"role":"answerer","user_id":"anon_41b2cb7ed95aedf0","comment_id":"g27w7o1","kind":"comment","text":"From the sidebar:\n\n> Do you have a question? Check out /r/learnprogramming, /r/cscareerquestions, or Stack Overflow.","timestamp":"2020-08-20T15:01:52+00:00","score":2},{"role":"OP","user_id":"anon_4b63816a1bd4419e","comment_id":"g27xgj3","kind":"comment","text":"Thanks. Should I delete this post then?","timestamp":"2020-08-20T15:11:38+00:00","score":1},{"role":"answerer","user_id":"anon_41b2cb7ed95aedf0","comment_id":"g285ll3","kind":"comment","text":"Up to you / mods but _if_ I were you I would.\n\nI noticed you posted also in /r/cscareerquestions. How is your question a CS (Computer Science) Career Question? Don't just post everywhere, read the rules of the reddit before you post.","timestamp":"2020-08-20T16:14:54+00:00","score":2},{"role":"OP","user_id":"anon_4b63816a1bd4419e","comment_id":"g28f7kc","kind":"comment","text":"Moderation on Reddit is too subjective, I've seen questions getting lots of attention in some sub-reddits that seem to me really out of place. Only after I have some time posting stuff on one specific subreddit is that I get really an intuition of what and how to post to get attention about some specific question/topic, despite what the moderation rules say, that's why I most of the time post whatever comes to my mind and change the questions or remove them latter if needed.","timestamp":"2020-08-20T17:30:20+00:00","score":-1},{"role":"answerer","user_id":"anon_41b2cb7ed95aedf0","comment_id":"g29ad7s","kind":"comment","text":"Yeah, so basically you're not being part of the solution but of the problem and you're saying \"yeah, screw you guys, I just need mah answers!!\" and dumping your problems all over the place hoping to get lucky in at least one place. Yeah, that seems like a good strategy. We need more people like you! `/s`\n\n> Only after I have some time posting stuff on one specific subreddit is that I get really an intuition\n\nIt absolutely and utterly eludes me how you can have \"a JSON RPC Client API question\" and then come up with: \"Ya know what? CS Career Questions seems like a good place to dump that question!\". Your (lack of) intuition has jack sh\\*t to do with that. You're just spamming all over the place and making up excuses for not thinking twice about where you dumped your questions.","timestamp":"2020-08-20T21:12:04+00:00","score":2},{"role":"OP","user_id":"anon_4b63816a1bd4419e","comment_id":"g29dvop","kind":"comment","text":"I'm not making excuses, I'm just telling what I really think, I don't have time for reading moderation rules that nobody really cares about.","timestamp":"2020-08-20T21:40:02+00:00","score":0},{"role":"answerer","user_id":"anon_41b2cb7ed95aedf0","comment_id":"g29e4kf","kind":"comment","text":"> I don't have time for reading moderation rules that nobody really cares about.\n\nDude, they're a) in the sidebar, b) take seconds to read, c) it's in the f\\*ckin' reddit name: CS **CAREER QUESTIONS**. Quit. Your. Bullshit.","timestamp":"2020-08-20T21:41:44+00:00","score":1},{"role":"OP","user_id":"anon_4b63816a1bd4419e","comment_id":"g2dold7","kind":"comment","text":"I still think moderation on Reddit is too subjective for people to care about reading moderation rules, or for even taking them seriously. You can call it spam, bullshit, or whatever you want.","timestamp":"2020-08-21T23:35:13+00:00","score":0}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_4b63816a1bd4419e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_41b2cb7ed95aedf0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g27w7o1","thanks_reply_id":"g27xgj3","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_f5cdaa3bf415e3a1","answerer_user_id":"anon_d71633715b10b899","subreddit":"programming","timestamp":"2020-08-21T01:25:41+00:00","post_id":"idnblw","question":"What xkcd tells us about dependencies and NIH syndrome","preferred_answer":"It's a worthwhile topic for people to be talking about, but if I were to break down this blog post into quadrants then I could say that you basically spent all of Q2 rewording what you said in Q1 with the exception of mentioning the portfolio effect.\n\nMaybe it's just me but it feels like you're padding the word count for SEO. Skimming the post again a second time I realize the entire thing could probably be summarized by getting rid of all the normal text and leaving only the bold text (and maybe using bullets since the transitions between statements won't be as fleshed out, even if the logic is clear).","full_conversation":[{"role":"OP","user_id":"anon_f5cdaa3bf415e3a1","comment_id":"idnblw","kind":"post","text":"What xkcd tells us about dependencies and NIH syndrome","timestamp":"2020-08-21T01:25:41+00:00","score":44},{"role":"answerer","user_id":"anon_d71633715b10b899","comment_id":"g2a58gl","kind":"comment","text":"It's a worthwhile topic for people to be talking about, but if I were to break down this blog post into quadrants then I could say that you basically spent all of Q2 rewording what you said in Q1 with the exception of mentioning the portfolio effect.\n\nMaybe it's just me but it feels like you're padding the word count for SEO. Skimming the post again a second time I realize the entire thing could probably be summarized by getting rid of all the normal text and leaving only the bold text (and maybe using bullets since the transitions between statements won't be as fleshed out, even if the logic is clear).","timestamp":"2020-08-21T01:41:52+00:00","score":29},{"role":"OP","user_id":"anon_f5cdaa3bf415e3a1","comment_id":"g2aaxkd","kind":"comment","text":"Thanks for reading and for the feedback. I wrote it pretty conversationally as I worked through my own thought process about it – that's just my style -- and then refined it down, but I know some people don't have the patience for a longer piece, so the bold parts are there for people who prefer to skim. I'm curious where you see the Q1/Q2 break is -- before \"Assessing Risk?\"","timestamp":"2020-08-21T02:33:45+00:00","score":8},{"role":"answerer","user_id":"anon_d71633715b10b899","comment_id":"g2ag4xu","kind":"comment","text":"It's not as clearly defined as that, I was just putting it in those terms to explain that I felt I was re-reading about 25% of the material. I know what it's like, I also write flow-of-consciousness style and I also usually repeat things in different words until I find what feels like the perfect wording. Editing often takes more time than the initial writing. (As Mark Twain once said, \"I apologize for such a long letter - I didn't have time to write a short one.\")\n\nIt helps to repeat things when having verbal conversations as this helps underscore and reinforce ideas, but this isn't always necessary when writing. Also, when speaking verbally it helps to come back to the same idea multiple times to reinforce it. In written works it's often more efficient to talk about something, and then at that same time also say, \"This same concept sometimes uses these other keywords, but the meaning is the same.\" When we do that our writing goes from being like ABCDABCDABCD to AAABBBCCCDDD. I'm not saying one is better than the other overall, I'm only saying one lends itself more to verbal speech and the other lends itself better to the written word.\n\nI would also say though that these two styles are also more visible when talking about formal and informal speech, writing, videos, etc. ABCDABCDABCD is more common in informal settings, but AAABBBCCCDDD seems to be more common/efficient in formal settings.","timestamp":"2020-08-21T03:22:56+00:00","score":20}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f5cdaa3bf415e3a1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d71633715b10b899","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g2a58gl","thanks_reply_id":"g2aaxkd","post_score":44,"answer_score":29,"preferred_answer_is_top_level":true}} {"user_id":"anon_ceacfd41af803424","answerer_user_id":"anon_74765b541e3f64f2","subreddit":"programming","timestamp":"2020-09-04T08:21:37+00:00","post_id":"imc7cp","question":"What Every C Programmer Should Know About Undefined Behavior #2/3","preferred_answer":"And LLVM backs practically every language that generates native code, including Rust.\n\nI appreciate his work on optimizations, though I don't like his aggressive handling of UB. For better or worse, he practically dictates all native languages now. The fact that language choice can insulate anything at all is other language developers working actively to undo what they disagree with this guy, like Rust working around LLVM-level UB.","full_conversation":[{"role":"OP","user_id":"anon_ceacfd41af803424","comment_id":"imc7cp","kind":"post","text":"What Every C Programmer Should Know About Undefined Behavior #2/3","timestamp":"2020-09-04T08:21:37+00:00","score":370},{"role":"answerer","user_id":"anon_74765b541e3f64f2","comment_id":"g406mcd","kind":"comment","text":"And LLVM backs practically every language that generates native code, including Rust.\n\nI appreciate his work on optimizations, though I don't like his aggressive handling of UB. For better or worse, he practically dictates all native languages now. The fact that language choice can insulate anything at all is other language developers working actively to undo what they disagree with this guy, like Rust working around LLVM-level UB.","timestamp":"2020-09-04T16:33:07+00:00","score":3},{"role":"OP","user_id":"anon_ceacfd41af803424","comment_id":"g408uo8","kind":"comment","text":"> I appreciate his work on optimizations, though I don't like his aggressive handling of UB. \n\nWhat is the underlying conflict here? Is it only about speed / strict conformity? Would it make LLVM more complex to be more forgiving? Aren't strict definitions generally needed?","timestamp":"2020-09-04T16:45:26+00:00","score":1},{"role":"answerer","user_id":"anon_74765b541e3f64f2","comment_id":"g40b4pp","kind":"comment","text":"Because the aggressive UB stuff is only a small fraction of LLVM optimizations. For instance, LLVM's better NEON register allocation led to a 20% speedup over GCC on the important part of our code base. That's the key reason we use it even though we also type-pun a lot and had to `-fno-strict-aliasing` after switching.\n\nWhat's funny is that any naive allocator would have beaten GCC. I used less variables than there were registers and labeled all of them with `register`. There isn't a single common subexpression because I manually optimized them all. Yet GCC still spills.\n\nAnd that register allocation has nothing to do with UB. All involved code were platform-specific intrinsics. It's just implementation specific behavior, I think.","timestamp":"2020-09-04T16:59:14+00:00","score":4},{"role":"OP","user_id":"anon_ceacfd41af803424","comment_id":"g40bnt5","kind":"comment","text":"So, **why don't people demand that this is only activated with -O3, and use -O2 for their code**? \n\nIt sounds to me like people are shifting blame around. If *this specific* compiler does not what they want, why do they not use another one? If they want a safer language to be able to program easier, why are they not using a safer language? You can't tell me there is a shortage of languages...","timestamp":"2020-09-04T17:02:34+00:00","score":2},{"role":"answerer","user_id":"anon_74765b541e3f64f2","comment_id":"g40czqo","kind":"comment","text":"Good idea. I use -O2 for my code. I'll start demanding moving NULL optimization to -O3...\n\nAnyway, whatever compiler / language you blame, a part of that blame falls on the author here, since he contributed to all of them. It's not fair. I know. But when you post his blog... I just can't help but rant.","timestamp":"2020-09-04T17:09:55+00:00","score":1},{"role":"OP","user_id":"anon_ceacfd41af803424","comment_id":"g40mm4o","kind":"comment","text":"My understanding is that C is a powerful but also really sharp tool where one needs to know what he/she is doing. General awareness of this could be better. This is why I posted the blog.","timestamp":"2020-09-04T18:02:53+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_ceacfd41af803424","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_74765b541e3f64f2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g406mcd","thanks_reply_id":"g408uo8","post_score":370,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_78bf020f94ef8b98","answerer_user_id":"anon_aa06bb2e99eb188d","subreddit":"programming","timestamp":"2020-09-06T14:07:56+00:00","post_id":"inml6a","question":"I just created a 3D Visualization of Sorting Algorithms in Java. What could i improve?","preferred_answer":"This is not a visualization to be honest. Visualization is to try to make things easier to understand, and this rendering doesn't serve this purpose.","full_conversation":[{"role":"OP","user_id":"anon_78bf020f94ef8b98","comment_id":"inml6a","kind":"post","text":"I just created a 3D Visualization of Sorting Algorithms in Java. What could i improve?","timestamp":"2020-09-06T14:07:56+00:00","score":1328},{"role":"answerer","user_id":"anon_aa06bb2e99eb188d","comment_id":"g48tvcy","kind":"comment","text":"This is not a visualization to be honest. Visualization is to try to make things easier to understand, and this rendering doesn't serve this purpose.","timestamp":"2020-09-06T16:32:48+00:00","score":-1},{"role":"OP","user_id":"anon_78bf020f94ef8b98","comment_id":"g48u5i2","kind":"comment","text":"Thanks for knowing my purpose of doing this project better then me. I guess?\nNever intended to get anyone understand algs because of this.","timestamp":"2020-09-06T16:35:23+00:00","score":1},{"role":"answerer","user_id":"anon_aa06bb2e99eb188d","comment_id":"g48uoia","kind":"comment","text":"From [wiki](https://en.m.wikipedia.org/wiki/Visualization_(graphics)):\n> Visualization or visualisation (see spelling differences) is any technique for creating images, diagrams, or animations to communicate a message. Visualization through visual imagery has been an effective way to communicate both abstract and concrete ideas since the dawn of humanity.","timestamp":"2020-09-06T16:40:10+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_78bf020f94ef8b98","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_aa06bb2e99eb188d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g48tvcy","thanks_reply_id":"g48u5i2","post_score":1328,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_924fb09b8409a8d7","answerer_user_id":"anon_d752517b5bd9b3d7","subreddit":"programming","timestamp":"2020-09-08T07:39:12+00:00","post_id":"iopetz","question":"Why can't you connect Frontend directly to the Database? Video explanation","preferred_answer":"The answer is among others security but it actually depends on what you need and is much more subtle than what you mention. Things to keep in mind:\n\n\\- Database typically keep connections open, connectionless is desired in the case you want to connect your frontend directly to the database: [https://medium.com/swlh/databases-that-play-nice-with-your-serverless-backend-13eb7dc1e1c](https://medium.com/swlh/databases-that-play-nice-with-your-serverless-backend-13eb7dc1e1c), Databases typically don't behave like APIs, if they do.. what's the difference with calling a normal API?\n\n\\- If your database provides the security means to limit access (such as FaunaDB's ABAC system) then it's perfectly fine to connect your frontend to the database.\n\nHeavy lifting is IMO not a reason, connecting your database directly to the frontend does not stop you from still connecting your frontend **as well** to the backend to do heavy lifting. Or maybe the database can do all the heavy lifting already. \n\nThe best reasons imho to place a backend in between your database and frontend are being able to do more advanced rate-limiting and httpOnly cookies. There is however value in connecting your database directly since it removes that extra hop in which case you could opt for short-lived tokens that are stored in memory with a refresh flow (e.g. keep your auth flow on the backend, the rest or parts of the rest of the flows could go directly to the backend. As always in tech, the answer is not No or Yes.. it's **It depends.**","full_conversation":[{"role":"OP","user_id":"anon_924fb09b8409a8d7","comment_id":"iopetz","kind":"post","text":"Why can't you connect Frontend directly to the Database? Video explanation","timestamp":"2020-09-08T07:39:12+00:00","score":0},{"role":"answerer","user_id":"anon_d752517b5bd9b3d7","comment_id":"g4fr2v6","kind":"comment","text":"The answer is among others security but it actually depends on what you need and is much more subtle than what you mention. Things to keep in mind:\n\n\\- Database typically keep connections open, connectionless is desired in the case you want to connect your frontend directly to the database: [https://medium.com/swlh/databases-that-play-nice-with-your-serverless-backend-13eb7dc1e1c](https://medium.com/swlh/databases-that-play-nice-with-your-serverless-backend-13eb7dc1e1c), Databases typically don't behave like APIs, if they do.. what's the difference with calling a normal API?\n\n\\- If your database provides the security means to limit access (such as FaunaDB's ABAC system) then it's perfectly fine to connect your frontend to the database.\n\nHeavy lifting is IMO not a reason, connecting your database directly to the frontend does not stop you from still connecting your frontend **as well** to the backend to do heavy lifting. Or maybe the database can do all the heavy lifting already. \n\nThe best reasons imho to place a backend in between your database and frontend are being able to do more advanced rate-limiting and httpOnly cookies. There is however value in connecting your database directly since it removes that extra hop in which case you could opt for short-lived tokens that are stored in memory with a refresh flow (e.g. keep your auth flow on the backend, the rest or parts of the rest of the flows could go directly to the backend. As always in tech, the answer is not No or Yes.. it's **It depends.**","timestamp":"2020-09-08T13:02:30+00:00","score":2},{"role":"OP","user_id":"anon_924fb09b8409a8d7","comment_id":"g4frbk2","kind":"comment","text":"Thanks for the feedback, I really appreciate it and you explained stuff very well. I'll keep that in mind in the future!\n\nThis was more targeted towards the beginners to get the idea about the fronted and backend and how they're different","timestamp":"2020-09-08T13:05:15+00:00","score":1},{"role":"answerer","user_id":"anon_d752517b5bd9b3d7","comment_id":"g4g7rxr","kind":"comment","text":"You're welcome :) \nGreat to see that you direct your towards education, keep it up!","timestamp":"2020-09-08T15:41:38+00:00","score":2},{"role":"OP","user_id":"anon_924fb09b8409a8d7","comment_id":"g4g9s9n","kind":"comment","text":"I see this also as a way for me to learn more :)","timestamp":"2020-09-08T15:58:53+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_924fb09b8409a8d7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d752517b5bd9b3d7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g4fr2v6","thanks_reply_id":"g4frbk2","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_dd386f5f90d20585","answerer_user_id":"anon_8633228c566b6899","subreddit":"programming","timestamp":"2020-09-14T14:15:19+00:00","post_id":"islo0k","question":"MuON data format: thoughts?","preferred_answer":"I can see what your saying. But dont really agree with the post. I dont think that Yaml is perfect. But it is widely used and supported. Your format reminds me of: https://xkcd.com/927/ \nYou created a new format in a already bloated Field. You mention alot of them your self. \nMaybe I Will eat these Words if your projects rockets Up. \nThat said nice project ;) next time when someone asks why to use your project. Compare your projects strengths instead of sharing post which bashes the other project. It is Better to make your project look Better than the other Worse.","full_conversation":[{"role":"OP","user_id":"anon_dd386f5f90d20585","comment_id":"islo0k","kind":"post","text":"MuON data format: thoughts?","timestamp":"2020-09-14T14:15:19+00:00","score":0},{"role":"answerer","user_id":"anon_8633228c566b6899","comment_id":"g5958ak","kind":"comment","text":"I can see what your saying. But dont really agree with the post. I dont think that Yaml is perfect. But it is widely used and supported. Your format reminds me of: https://xkcd.com/927/ \nYou created a new format in a already bloated Field. You mention alot of them your self. \nMaybe I Will eat these Words if your projects rockets Up. \nThat said nice project ;) next time when someone asks why to use your project. Compare your projects strengths instead of sharing post which bashes the other project. It is Better to make your project look Better than the other Worse.","timestamp":"2020-09-14T17:17:11+00:00","score":2},{"role":"OP","user_id":"anon_dd386f5f90d20585","comment_id":"g59a2b7","kind":"comment","text":"Thanks, this is just a fun project for me. I have no expectations that it will become popular. I just wanted to share.\n\nI don't mean to bash YAML, in fact I didn't know anything about it until afterwards. But how do you stress the goal of simplicity without comparisons?","timestamp":"2020-09-14T17:44:25+00:00","score":1},{"role":"answerer","user_id":"anon_8633228c566b6899","comment_id":"g59blsl","kind":"comment","text":"I would compare with samples next to each other.","timestamp":"2020-09-14T17:53:13+00:00","score":1},{"role":"OP","user_id":"anon_dd386f5f90d20585","comment_id":"g59dafg","kind":"comment","text":"You mean like this? [https://github.com/muon-data/muon/blob/master/WHY.md](https://github.com/muon-data/muon/blob/master/WHY.md)","timestamp":"2020-09-14T18:02:44+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_dd386f5f90d20585","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8633228c566b6899","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g5958ak","thanks_reply_id":"g59a2b7","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_78bf020f94ef8b98","answerer_user_id":"anon_63532ba2735f2e89","subreddit":"programming","timestamp":"2020-09-21T18:20:09+00:00","post_id":"ix5zj9","question":"I Created a Visualization of 20 Sorting Algorithms with Java. Which one do you like most?","preferred_answer":"amazing work","full_conversation":[{"role":"OP","user_id":"anon_78bf020f94ef8b98","comment_id":"ix5zj9","kind":"post","text":"I Created a Visualization of 20 Sorting Algorithms with Java. Which one do you like most?","timestamp":"2020-09-21T18:20:09+00:00","score":1948},{"role":"answerer","user_id":"anon_63532ba2735f2e89","comment_id":"g65z0yv","kind":"comment","text":"amazing work","timestamp":"2020-09-22T00:12:24+00:00","score":2},{"role":"OP","user_id":"anon_78bf020f94ef8b98","comment_id":"g664eil","kind":"comment","text":"Thanks :)","timestamp":"2020-09-22T01:02:31+00:00","score":1},{"role":"answerer","user_id":"anon_63532ba2735f2e89","comment_id":"g666q17","kind":"comment","text":"do you think its possible to visualize neural networks with your method?","timestamp":"2020-09-22T01:24:12+00:00","score":1},{"role":"OP","user_id":"anon_78bf020f94ef8b98","comment_id":"g67l21s","kind":"comment","text":"What exactly do you want to visualize?","timestamp":"2020-09-22T13:12:41+00:00","score":1},{"role":"answerer","user_id":"anon_63532ba2735f2e89","comment_id":"g6cg0vv","kind":"comment","text":"Not quite sure. Can I get back to you on this, I will be swinging around to Deep learning stuff next month.","timestamp":"2020-09-23T18:54:14+00:00","score":2},{"role":"OP","user_id":"anon_78bf020f94ef8b98","comment_id":"g6ei4ot","kind":"comment","text":"sure","timestamp":"2020-09-24T08:10:35+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_78bf020f94ef8b98","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_63532ba2735f2e89","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g65z0yv","thanks_reply_id":"g664eil","post_score":1948,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_ed2f1e2a84e193fc","answerer_user_id":"anon_e980c421f9d6f668","subreddit":"programming","timestamp":"2020-10-03T21:44:14+00:00","post_id":"j4ndv3","question":"Why developers hate coding tests?","preferred_answer":"I hate them because they're a giant time sink or trivia which is easily looked up. \n\n\"What is the most efficient way to store a md5 hash in mysql?\" I dont need to know this off hand. I need to know how to find out. That applies to all trivia questions. \n\n\"Spend 5 hours writing code to move to a technical interview\" that means I can apply to at most 5 positions a week. Given that getting a job in software is a numbers game, where 90% of resumes are turfed for not using the most best correct words, or any other slight, that's an artificial constraint. \n\nI've been involved in hiring at several companies. I didnt do any of this shit. What I did do is write an ad to attract the kind of people we wanted, read their resumes, called the ten best experience matches to chat.\n\nIf it seemed like they'd be a good fit pulled them in to write code. It was always a joke project, something fun to do, and just hard enough that I don't expect them to finish without help. \n\nEnded up with a great team every time. The only time someone used a similar approach with me it was the best company I ever worked for.","full_conversation":[{"role":"OP","user_id":"anon_ed2f1e2a84e193fc","comment_id":"j4ndv3","kind":"post","text":"Why developers hate coding tests?","timestamp":"2020-10-03T21:44:14+00:00","score":0},{"role":"answerer","user_id":"anon_e980c421f9d6f668","comment_id":"g7oa762","kind":"comment","text":"I hate them because they're a giant time sink or trivia which is easily looked up. \n\n\"What is the most efficient way to store a md5 hash in mysql?\" I dont need to know this off hand. I need to know how to find out. That applies to all trivia questions. \n\n\"Spend 5 hours writing code to move to a technical interview\" that means I can apply to at most 5 positions a week. Given that getting a job in software is a numbers game, where 90% of resumes are turfed for not using the most best correct words, or any other slight, that's an artificial constraint. \n\nI've been involved in hiring at several companies. I didnt do any of this shit. What I did do is write an ad to attract the kind of people we wanted, read their resumes, called the ten best experience matches to chat.\n\nIf it seemed like they'd be a good fit pulled them in to write code. It was always a joke project, something fun to do, and just hard enough that I don't expect them to finish without help. \n\nEnded up with a great team every time. The only time someone used a similar approach with me it was the best company I ever worked for.","timestamp":"2020-10-04T12:56:41+00:00","score":4},{"role":"OP","user_id":"anon_ed2f1e2a84e193fc","comment_id":"g7ofaf0","kind":"comment","text":"Thanks for sharing your experience! \n\nWould you mind sharing how you compared the results of the folks who did a fun project? Was it some sort of an evaluation rubric or similar?\n\nAlso, what would be a good example of a fun project you gave them?","timestamp":"2020-10-04T13:32:45+00:00","score":2},{"role":"answerer","user_id":"anon_e980c421f9d6f668","comment_id":"g7ohe1o","kind":"comment","text":"It was really to see how they think, how they breakdown problems, and when they ask for help. \n\nMy favorite test was this one; we worked with robots responsible for safe flow of vehicular traffic. \n\nI would bring them in and sit them down with one, and get them roughly set up to be able to make it do things, in our usual work space. Basically ave them a cut down API that didn't provide motor control. \n\nThe first goal was to make it beep out arbitrary morse code and see how they implemented it. Where they broke down seperation of concerns, where they made tradeoffs, how accurately they implemented the spec, etc. \n\nThis was an intentional choice because 1) its clearly not useful in production, but more importantly 2) we dealt with a massive amount of regulatory compliance measures in terms of safety and rf emissions. \n\nPeoples lives literally depend on this equipment, and we were operating on a trial basis in many jurisdictions. A single failure was catastrophic to the business. (On a related note, I left this position due to the stress and the seemingly arbitrary technical decisions from non technical senior management.)\n\nThe second goal was to type arbitrary sentences into a shell and the machine beep back what you typed. This would show they could work with interconnected systems interacting over a common bus and at least muddle through several programming languages.\n\nThere was no rubric, it was much more subjective. If you could do both those things it really came down to who we liked personally. \n\nOverall it worked very well.","timestamp":"2020-10-04T13:48:39+00:00","score":3},{"role":"OP","user_id":"anon_ed2f1e2a84e193fc","comment_id":"g7pswhe","kind":"comment","text":"Thank you for sharing this.","timestamp":"2020-10-04T20:01:16+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ed2f1e2a84e193fc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e980c421f9d6f668","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g7oa762","thanks_reply_id":"g7ofaf0","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_10cda1d9f2999cf5","answerer_user_id":"anon_482413c9e91c73e6","subreddit":"programming","timestamp":"2020-10-10T05:46:40+00:00","post_id":"j8f6af","question":"Other than full-time university, where is the best place to learn to program?","preferred_answer":"Udemy and youtube are great resources for audio/visual learners. Freecodecamp is a good source as well. If you're looking for a well put together class with example projects and stuff I highly recommend udemy.","full_conversation":[{"role":"OP","user_id":"anon_10cda1d9f2999cf5","comment_id":"j8f6af","kind":"post","text":"Other than full-time university, where is the best place to learn to program?","timestamp":"2020-10-10T05:46:40+00:00","score":0},{"role":"answerer","user_id":"anon_482413c9e91c73e6","comment_id":"g8aj3wp","kind":"comment","text":"Udemy and youtube are great resources for audio/visual learners. Freecodecamp is a good source as well. If you're looking for a well put together class with example projects and stuff I highly recommend udemy.","timestamp":"2020-10-10T06:02:00+00:00","score":3},{"role":"OP","user_id":"anon_10cda1d9f2999cf5","comment_id":"g8ajj31","kind":"comment","text":"Thanks. I took a course in college about 8 years ago and loved learning Java. Udemy has a lot of courses. Where do you recommend starting? I'd like to get some skills that will get me into the military in a tech role.","timestamp":"2020-10-10T06:09:01+00:00","score":2},{"role":"answerer","user_id":"anon_482413c9e91c73e6","comment_id":"g8ank18","kind":"comment","text":"It depends on what role you're going for but if you're looking to start somewhere java is a good language to relearn, it's used a lot. I use C# for a lot of my programs now and it's really similar in syntax to java. It's a really popular and powerful language. Tim Corey has a lot of good videos on youtube about c#. If I was starting out I'd learn C# first, lots of jobs as well, just search for asp.net dev on indeed and see how many job listings there are, and the pay. If you search for courses on udemy you can probably find some good ones. Cyber security and networking might be a good entry point as well. It's not strictly programming but may be more useful in getting a tech role.","timestamp":"2020-10-10T07:17:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_10cda1d9f2999cf5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_482413c9e91c73e6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g8aj3wp","thanks_reply_id":"g8ajj31","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_3f1d10ab04b4ca84","answerer_user_id":"anon_882ba50989356f8e","subreddit":"programming","timestamp":"2020-10-17T10:21:30+00:00","post_id":"jcsqrd","question":"Can we have a thread about RCT being written completely in Assembly? What is your opinion regarding this?","preferred_answer":"Sure. As I recall, he extensively used MASM. You get out of the box helper macros for things like conditionals, loops, etc. You can further define arbitrary macros, just like in C. Functions/subs are supported, even.\n\nIt makes assembly coding much more like coding in a higher level language.","full_conversation":[{"role":"OP","user_id":"anon_3f1d10ab04b4ca84","comment_id":"jcsqrd","kind":"post","text":"Can we have a thread about RCT being written completely in Assembly? What is your opinion regarding this?","timestamp":"2020-10-17T10:21:30+00:00","score":1028},{"role":"answerer","user_id":"anon_882ba50989356f8e","comment_id":"g93fy58","kind":"comment","text":"Sure. As I recall, he extensively used MASM. You get out of the box helper macros for things like conditionals, loops, etc. You can further define arbitrary macros, just like in C. Functions/subs are supported, even.\n\nIt makes assembly coding much more like coding in a higher level language.","timestamp":"2020-10-17T11:56:32+00:00","score":133},{"role":"OP","user_id":"anon_3f1d10ab04b4ca84","comment_id":"g93hh7n","kind":"comment","text":"Thanks, i'm a complete noob on Assembly but your comment made it more understandable. I can confirm he used MASM, i read it somewhere as well (altough when i read it i didn't know what it was). I will be doing some googling on that.","timestamp":"2020-10-17T12:17:38+00:00","score":41},{"role":"answerer","user_id":"anon_882ba50989356f8e","comment_id":"g93mfmk","kind":"comment","text":"Macros are huge in assembly. The amount of code needed to do it manually, without macros, is most often far beyond what you're actually trying to accomplish. And it's prone to error.\n\nI've never coded anything remotely significant in assembly. Most of my knowledge around ASM is related to hacking other programs and debugging and looking at and comparing assembly produced from a higher level language via compilers.... I've also worked on parsers, interpreters - specifically scripting languages - but never actual native code compilation. Honestly, even with macros, thinking about coding a whole game in MASM blows my mind! And I loved these games growing up.\n\nI'll stick to higher level languages. I like my OOP, ya you know me!\n\n---\n\nIf anyone knows a good Android theme park game that doesn't do all this microtransaction crap, I'm open to suggestions. It was so much more rewarding when I built an awesome park that created it's own revenue rather than being railroaded into buying virtual currency.","timestamp":"2020-10-17T13:20:05+00:00","score":66},{"role":"OP","user_id":"anon_3f1d10ab04b4ca84","comment_id":"g93nfkl","kind":"comment","text":"These are the kind of opinions i wanted to hear, thanks. \n\nPC Games emulator and just play the original on your phone maybe? I'm not up to date with Android games","timestamp":"2020-10-17T13:30:11+00:00","score":9},{"role":"answerer","user_id":"anon_882ba50989356f8e","comment_id":"g93qm1p","kind":"comment","text":"I rather play some classic SNES RPGs than deal with most Android games. Currently replaying Breath of Fire on Snes9x EX+.\n\nThough, if you really want a good suggestion for a rogue-like game, Pixel Dungeon is great. Has many forks, and it's all game, no BS. Caves by 36dev is also pretty nice, which apparently has no ending, except when you die. The ads are kind of annoying, but that's what airplane mode is for.","timestamp":"2020-10-17T14:02:46+00:00","score":6}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_3f1d10ab04b4ca84","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_882ba50989356f8e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g93fy58","thanks_reply_id":"g93hh7n","post_score":1028,"answer_score":133,"preferred_answer_is_top_level":false}} {"user_id":"anon_3a6438671afd1403","answerer_user_id":"anon_79dd701af3006687","subreddit":"programming","timestamp":"2020-10-22T17:57:55+00:00","post_id":"jg4rkv","question":"How A Search Engine with 400 Million Records Literally Started From A Controller Class Test Method","preferred_answer":"This kind of post needs its own subreddit.","full_conversation":[{"role":"OP","user_id":"anon_3a6438671afd1403","comment_id":"jg4rkv","kind":"post","text":"How A Search Engine with 400 Million Records Literally Started From A Controller Class Test Method","timestamp":"2020-10-22T17:57:55+00:00","score":1234},{"role":"answerer","user_id":"anon_79dd701af3006687","comment_id":"g9q5t7l","kind":"comment","text":"This kind of post needs its own subreddit.","timestamp":"2020-10-23T03:53:29+00:00","score":9},{"role":"OP","user_id":"anon_3a6438671afd1403","comment_id":"g9qyoqn","kind":"comment","text":"Thanks.\n\nDid you mean like the evolution of the code replayed? Or like just code from early in a project's history?","timestamp":"2020-10-23T11:31:58+00:00","score":3},{"role":"answerer","user_id":"anon_79dd701af3006687","comment_id":"g9qz5rn","kind":"comment","text":"Replayed code. Though the best material would be from the beginning. Instead of being productive with my own code, I'd just watch this. It's oddly satisfying.","timestamp":"2020-10-23T11:38:41+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3a6438671afd1403","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_79dd701af3006687","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"g9q5t7l","thanks_reply_id":"g9qyoqn","post_score":1234,"answer_score":9,"preferred_answer_is_top_level":false}} {"user_id":"anon_42b65e8e75d8752d","answerer_user_id":"anon_4173704e8e696193","subreddit":"programming","timestamp":"2020-10-26T17:58:19+00:00","post_id":"jijhwa","question":"\"Generating Random Floating-Point Numbers by Dividing Integers: a Case Study\", or: Guess what, everybody dose it wrong?","preferred_answer":"1. This is (EDIT: one less bit than) the maximum amount of precision possible while maintaining uniformity (your scheme would be biased towards zero). (Trivial proof: next after 0.5 is 0.5+2^(-53).) (EDIT: actually, I think I'm missing 1 bit. Could be fixed by generating `rand_bit()` * 2^(-53) and adding it in.)\n2. Exponents are the same, so subtraction is trivially exact. (FP addition/subtraction is guaranteed to be exact and rounded correctly depending on the current rounding mode, but here it's always possible to represent exactly.)","full_conversation":[{"role":"OP","user_id":"anon_42b65e8e75d8752d","comment_id":"jijhwa","kind":"post","text":"\"Generating Random Floating-Point Numbers by Dividing Integers: a Case Study\", or: Guess what, everybody dose it wrong?","timestamp":"2020-10-26T17:58:19+00:00","score":69},{"role":"answerer","user_id":"anon_4173704e8e696193","comment_id":"ga8yil9","kind":"comment","text":"1. This is (EDIT: one less bit than) the maximum amount of precision possible while maintaining uniformity (your scheme would be biased towards zero). (Trivial proof: next after 0.5 is 0.5+2^(-53).) (EDIT: actually, I think I'm missing 1 bit. Could be fixed by generating `rand_bit()` * 2^(-53) and adding it in.)\n2. Exponents are the same, so subtraction is trivially exact. (FP addition/subtraction is guaranteed to be exact and rounded correctly depending on the current rounding mode, but here it's always possible to represent exactly.)","timestamp":"2020-10-27T06:06:39+00:00","score":2},{"role":"OP","user_id":"anon_42b65e8e75d8752d","comment_id":"ga8yy1m","kind":"comment","text":"Thx for clarifying the substraction part, but I disagree with your first statement. I'm not saying that it's easy, but you could generate all possible values uniformly by not giving each value the same probability. E.g. as suggested in http://prng.di.unimi.it/random_real.c to first generate a fixpoint number and that properly convert that to floating point. http://allendowney.com/research/rand/downey07randfloat.pdf has another solution, but I'm not certain if this does as advertised.","timestamp":"2020-10-27T06:13:32+00:00","score":2},{"role":"answerer","user_id":"anon_4173704e8e696193","comment_id":"ga8zy9d","kind":"comment","text":"Good point; I see what you mean. That's a very unintuitive but valid interpretation of what a uniform floating-point number means. (I was thinking the resulting distribution of floating-point numbers would also be uniform.) The idea is to sample a geometric distribution for the exponent and then reading in the mantissa (for once, denormals are easy to handle in this case). Second link basically does that (sampling the geometric distribution by observing a stream of random bits) but also corrects for rounding to nearest rather than always rounding down. (**EDIT:** I don't think this is a good idea. For the common case of comparing against a probability value, rounding down makes more sense, and the distribution being open on the 1 end also suggests that we should be rounding down.)\n\nI feel like there aren't that many practical applications that need more than 52 bits of randomness per call though.","timestamp":"2020-10-27T06:30:10+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_42b65e8e75d8752d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4173704e8e696193","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ga8yil9","thanks_reply_id":"ga8yy1m","post_score":69,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_826a63b57fe26563","answerer_user_id":"anon_cdae296214e54d07","subreddit":"programming","timestamp":"2020-11-15T17:56:30+00:00","post_id":"juq3bd","question":"Can't open apps on macOS: an OCSP disaster waiting to happen","preferred_answer":"> In other words, if developers want their apps to be trusted on macOS, they must sign them using a certificate keypair provided by Apple. Apple gives each developer a unique “Developer ID” certificate, which includes a private key for the developer to use, and a public key for distribution. The developer uses the private key to produce cryptographic signatures on their apps as part of their release process.\n\nThis is incorrect because it implies Apple generates the private key and sends it back to the developer. What actually happens is Keychain (via Xcode) generates a key pair and a certificate signing request (CSR). Only the CSR is transmitted to Apple, which results in a signed certificate. At no point is the private key shared with Apple.","full_conversation":[{"role":"OP","user_id":"anon_826a63b57fe26563","comment_id":"juq3bd","kind":"post","text":"Can't open apps on macOS: an OCSP disaster waiting to happen","timestamp":"2020-11-15T17:56:30+00:00","score":1883},{"role":"answerer","user_id":"anon_cdae296214e54d07","comment_id":"gcf42nc","kind":"comment","text":"> In other words, if developers want their apps to be trusted on macOS, they must sign them using a certificate keypair provided by Apple. Apple gives each developer a unique “Developer ID” certificate, which includes a private key for the developer to use, and a public key for distribution. The developer uses the private key to produce cryptographic signatures on their apps as part of their release process.\n\nThis is incorrect because it implies Apple generates the private key and sends it back to the developer. What actually happens is Keychain (via Xcode) generates a key pair and a certificate signing request (CSR). Only the CSR is transmitted to Apple, which results in a signed certificate. At no point is the private key shared with Apple.","timestamp":"2020-11-15T19:57:50+00:00","score":524},{"role":"OP","user_id":"anon_826a63b57fe26563","comment_id":"gcf4g29","kind":"comment","text":"That's a place where my wording definitely should be more specific. Thank you, I'll improve the article by elaborating that paragraph later.","timestamp":"2020-11-15T20:00:59+00:00","score":258},{"role":"answerer","user_id":"anon_cdae296214e54d07","comment_id":"gcfzr4l","kind":"comment","text":"Thanks for writing such a clear description of the scenario. While I took issue with that point, I also learned a lot.","timestamp":"2020-11-16T00:28:10+00:00","score":48}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_826a63b57fe26563","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cdae296214e54d07","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gcf42nc","thanks_reply_id":"gcf4g29","post_score":1883,"answer_score":524,"preferred_answer_is_top_level":true}} {"user_id":"anon_460039f19c7debdb","answerer_user_id":"anon_d87fe0d41ba95c60","subreddit":"programming","timestamp":"2020-11-17T11:53:05+00:00","post_id":"jvrpvj","question":"How Spotify Codes work","preferred_answer":"In addition to this, a code rate of 0.75 is by no means weak.","full_conversation":[{"role":"OP","user_id":"anon_460039f19c7debdb","comment_id":"jvrpvj","kind":"post","text":"How Spotify Codes work","timestamp":"2020-11-17T11:53:05+00:00","score":3443},{"role":"answerer","user_id":"anon_d87fe0d41ba95c60","comment_id":"gcm5nll","kind":"comment","text":"In addition to this, a code rate of 0.75 is by no means weak.","timestamp":"2020-11-17T15:05:55+00:00","score":47},{"role":"OP","user_id":"anon_460039f19c7debdb","comment_id":"gcmawz4","kind":"comment","text":"Thanks for the input. I'm a bit new to this. What would you classify as strong vs weak? Closer to 1 is weaker, I'm just curious what you would call weak?","timestamp":"2020-11-17T15:50:47+00:00","score":39},{"role":"answerer","user_id":"anon_d87fe0d41ba95c60","comment_id":"gcmrvh5","kind":"comment","text":"Well, I've not classified code rates like that, but it would depend on the BER (bit error rate) of the communications channel, how many errors your communication can tolerate, and the type of FEC you're doing. \n\nThe BER is the number of errors per bit, so it will necessarily be a number less than 1, at first glance. But actually, if you think about it, a BER of 1 doesn't make sense, because it means that every bit is inverted, which just means that the message itself is inverted, with a BER of 0. This means that the highest possible BER is 0.5, and anything higher than that is just an inverted message.\n\nIt's been a while since I studied this stuff, but if I remember correctly, BER rates are normally expressed as 10^x, where x is most commonly found to be between -3 and -9, depending on the type of communications channel. This would mean that most of the time, you will have between 1000 and 1000000000 correctly transmitted bits for each transmitted error.\n\nNow, depending on how you're doing your FEC, you could get fairly bulletproof error correction/detection with very few parity (error checking/correction) bits, provided you know that your channel has a low BER. For example, with a code like Hamming(255,247), you can correct 1 error in every 255 bit block with only 8 parity bits, which would put the code rate at around 0.97. With a BER of 10^(-1), that's terrible and most messages you send will have undetectable errors. On the other hand, with a BER of 10^(-6), it might be quite good. \n\nAnyway, I hope that sheds some light on why it's hard to say what is a weak/strong code rate. The reason I said that this particular case doesn't seem weak was just me eyeballing it.\n\nBy the way, I'm sorry if my original comment seemed negative. It was an interesting article, and I enjoyed reading it, but the years I've suffered studying electrical engineering have apparently made me quite grumpy.","timestamp":"2020-11-17T18:01:40+00:00","score":7},{"role":"OP","user_id":"anon_460039f19c7debdb","comment_id":"gcmtl0a","kind":"comment","text":"No I didn't think your comment was negative, I appreciated your input. Like I said, I haven't done much with this so I wasn't sure what strong or weak would be. Your comment and u/eyal0's are good context for how strong this code rate is.","timestamp":"2020-11-17T18:14:47+00:00","score":6}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_460039f19c7debdb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d87fe0d41ba95c60","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gcm5nll","thanks_reply_id":"gcmawz4","post_score":3443,"answer_score":47,"preferred_answer_is_top_level":false}} {"user_id":"anon_237c3bcf6e130eb9","answerer_user_id":"anon_845ce52063bd7892","subreddit":"programming","timestamp":"2020-12-02T16:20:41+00:00","post_id":"k5cbln","question":"How to Make Your Code Reviewer Fall in Love with You","preferred_answer":"Hi OP,\n\nI don't understand how to practically implement the advice in #6. Assuming you want to refactor and change the behavior of a code that has an existing test written, do you mean to split these changes into two PRs or two commits (changelist).\n\nIf the latter, I don't think my reviewers are looking at the code changes by moving up and down the commits. They're always reviewing the latest commit.\n\nEDIT: Looks like someone asked this as well","full_conversation":[{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"k5cbln","kind":"post","text":"How to Make Your Code Reviewer Fall in Love with You","timestamp":"2020-12-02T16:20:41+00:00","score":3107},{"role":"answerer","user_id":"anon_845ce52063bd7892","comment_id":"gegxe3e","kind":"comment","text":"Hi OP,\n\nI don't understand how to practically implement the advice in #6. Assuming you want to refactor and change the behavior of a code that has an existing test written, do you mean to split these changes into two PRs or two commits (changelist).\n\nIf the latter, I don't think my reviewers are looking at the code changes by moving up and down the commits. They're always reviewing the latest commit.\n\nEDIT: Looks like someone asked this as well","timestamp":"2020-12-03T08:42:08+00:00","score":2},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"gejf4ay","kind":"comment","text":"Thanks for reading!\n\n>Assuming you want to refactor and change the behavior of a code that has an existing test written, do you mean to split these changes into two PRs or two commits (changelist).\n\nI recommend two PRs, so the sequence looks like this:\n\n1. Send refactoring PR for review\n1. Merge the refactoring PR after review completes\n1. Rebase the behavior-change commit onto the main branch\n1. Send the behavior-change PR for review\n1. Merge the behavior-change PR after review completes","timestamp":"2020-12-03T22:59:24+00:00","score":1},{"role":"answerer","user_id":"anon_845ce52063bd7892","comment_id":"gejrwyf","kind":"comment","text":"What happens if the refactor changes is motivated behavioral change. You can imagine if a sole PR is just refactor changes, the reviewer might reject the PR because it provides no functional/readable purpose without the reviewer also knowing about the second PR for behavioral changes.","timestamp":"2020-12-04T00:59:03+00:00","score":1},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"gejsni7","kind":"comment","text":"You would explain the purpose of the refactoring in the changelist description. If the reviewer needs more context than that, you could show them the rough draft of the reformat + changes branch.","timestamp":"2020-12-04T01:08:10+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_237c3bcf6e130eb9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_845ce52063bd7892","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gegxe3e","thanks_reply_id":"gejf4ay","post_score":3107,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_9dc37de8392ee3eb","answerer_user_id":"anon_c6b508a7651ea1b1","subreddit":"programming","timestamp":"2020-12-03T19:55:03+00:00","post_id":"k64sjv","question":"What I wanted to know about software engineering twenty years before","preferred_answer":"> Always adapt processes to people and the situation, don’t try to do in reverse — it will not work optimally...Don’t be close-minded to use only one [methodology/project-management] approach. Combine parts of them, but mix up the cocktail wisely to satisfy everyone around.\n\nGreat advice! Don't go against the grain of the team and org. This is kind of a larger extension of Conway's Law.\n\nI'd like to add something to the experience mix: small units make for **better re-use** than large feature-heavy units. It's easier to recombine small units to fit new architectures than rework large contraptions. Prepare for the future using mix-and-match, not clever guessing, because there is no such thing. If you were good at predicting, you'd be in Warren Buffett's turf.","full_conversation":[{"role":"OP","user_id":"anon_9dc37de8392ee3eb","comment_id":"k64sjv","kind":"post","text":"What I wanted to know about software engineering twenty years before","timestamp":"2020-12-03T19:55:03+00:00","score":9},{"role":"answerer","user_id":"anon_c6b508a7651ea1b1","comment_id":"gelzwpe","kind":"comment","text":"> Always adapt processes to people and the situation, don’t try to do in reverse — it will not work optimally...Don’t be close-minded to use only one [methodology/project-management] approach. Combine parts of them, but mix up the cocktail wisely to satisfy everyone around.\n\nGreat advice! Don't go against the grain of the team and org. This is kind of a larger extension of Conway's Law.\n\nI'd like to add something to the experience mix: small units make for **better re-use** than large feature-heavy units. It's easier to recombine small units to fit new architectures than rework large contraptions. Prepare for the future using mix-and-match, not clever guessing, because there is no such thing. If you were good at predicting, you'd be in Warren Buffett's turf.","timestamp":"2020-12-04T16:50:28+00:00","score":2},{"role":"OP","user_id":"anon_9dc37de8392ee3eb","comment_id":"gemuej8","kind":"comment","text":"Thanks for your comment; I never linked Conway's Law with it. \n\nRegarding the integration, my opinion is \"it depends .\" Sometimes you can choose to integrate one big library which is doing five things, but you need only three of them. Or you can incorporate three small libraries. Integration of these 3 could be a more mess than to do it only once on a bigger scale. There are a lot of other aspects to consider. Probably a suitable theme for another blog ;-).","timestamp":"2020-12-04T20:54:51+00:00","score":1},{"role":"answerer","user_id":"anon_c6b508a7651ea1b1","comment_id":"genwy2m","kind":"comment","text":"You may need to indeed integrate the parts to make a decent framework, but one should also make sure the parts can be independent if and when needed. \n\nFor example, an API that generates lots of HTML that's based on composable strings is more flexible than one that requires composing with just the types/classes of the API (Div class, Input class, Span class, etc.), because the second creates a giant dependency web. This text recommendation reflects Unixes \"communicate via strings\" philosophy. Walled garden types limit mixing and matching.","timestamp":"2020-12-05T02:57:37+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9dc37de8392ee3eb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c6b508a7651ea1b1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gelzwpe","thanks_reply_id":"gemuej8","post_score":9,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_e61e2ef1cbd3379d","answerer_user_id":"anon_bc39a105021ab6ab","subreddit":"programming","timestamp":"2021-01-02T07:27:10+00:00","post_id":"kot98h","question":"Why Random Forest model will mostly outperform Decision Tree Machine Learning Model","preferred_answer":"This kind of video is the reason people think programming videos are bad. It's actually a blog post that you can't read at your own pace, can't quickly glance back at, can't highlight or copy text from, and is generally presented in a non-optimal form.\n\nIf you're the creator of the video reading this - I don't mean this as a personal attack on you. But if you want to improve your channel you should think presenting the content in a way that actually takes advantage of the medium. In the end you're making things that you want others to see and enjoy - but you're also asking them to give you their time. Make sure it's worth it for them to do that.","full_conversation":[{"role":"OP","user_id":"anon_e61e2ef1cbd3379d","comment_id":"kot98h","kind":"post","text":"Why Random Forest model will mostly outperform Decision Tree Machine Learning Model","timestamp":"2021-01-02T07:27:10+00:00","score":0},{"role":"answerer","user_id":"anon_bc39a105021ab6ab","comment_id":"ght9su4","kind":"comment","text":"This kind of video is the reason people think programming videos are bad. It's actually a blog post that you can't read at your own pace, can't quickly glance back at, can't highlight or copy text from, and is generally presented in a non-optimal form.\n\nIf you're the creator of the video reading this - I don't mean this as a personal attack on you. But if you want to improve your channel you should think presenting the content in a way that actually takes advantage of the medium. In the end you're making things that you want others to see and enjoy - but you're also asking them to give you their time. Make sure it's worth it for them to do that.","timestamp":"2021-01-02T09:01:05+00:00","score":13},{"role":"OP","user_id":"anon_e61e2ef1cbd3379d","comment_id":"ghuuhep","kind":"comment","text":"Hi Francis,\nThank you for watching my video. \nI appreciate the time you took to give the valuable feedback about the video.\nI will consider this as far as possible for my future videos or blog posts.\nRegards,\nDhiraj","timestamp":"2021-01-02T19:55:57+00:00","score":3},{"role":"answerer","user_id":"anon_bc39a105021ab6ab","comment_id":"ghuv75i","kind":"comment","text":"You are most welcome","timestamp":"2021-01-02T20:02:05+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e61e2ef1cbd3379d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bc39a105021ab6ab","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ght9su4","thanks_reply_id":"ghuuhep","post_score":0,"answer_score":13,"preferred_answer_is_top_level":true}} {"user_id":"anon_6950d2afdbdeb6d4","answerer_user_id":"anon_fe40e9ee3a27abc9","subreddit":"programming","timestamp":"2021-01-02T09:51:02+00:00","post_id":"kouxdh","question":"What is typescript and why it is inevitable to learn and adapt in 2021","preferred_answer":"Congrats on writing your first article!\n\nOne tip I'll give is to be a bit more consistent with your spelling. I saw \"Typescript\", \"TypeScript\", and \"typescript\". I would stick to \"TypeScript\", the same way I'd stick to writing \"JavaScript\".\n\nIt's not a take on the actual substance of your article. The reason I mention it is because inconsistencies like that, typos, and other issues with spelling doesn't read well.\n\nThey degrade the quality of your article, regardless of how good the substance might be.","full_conversation":[{"role":"OP","user_id":"anon_6950d2afdbdeb6d4","comment_id":"kouxdh","kind":"post","text":"What is typescript and why it is inevitable to learn and adapt in 2021","timestamp":"2021-01-02T09:51:02+00:00","score":0},{"role":"answerer","user_id":"anon_fe40e9ee3a27abc9","comment_id":"ghv1ojf","kind":"comment","text":"Congrats on writing your first article!\n\nOne tip I'll give is to be a bit more consistent with your spelling. I saw \"Typescript\", \"TypeScript\", and \"typescript\". I would stick to \"TypeScript\", the same way I'd stick to writing \"JavaScript\".\n\nIt's not a take on the actual substance of your article. The reason I mention it is because inconsistencies like that, typos, and other issues with spelling doesn't read well.\n\nThey degrade the quality of your article, regardless of how good the substance might be.","timestamp":"2021-01-02T20:57:18+00:00","score":3},{"role":"OP","user_id":"anon_6950d2afdbdeb6d4","comment_id":"ghv2j8d","kind":"comment","text":"Thanks for the feedback my friend, I am really grateful, I didn't notice the typos as I had other things in mind, I will stick to one notation and I will use grammar correction software to recheck my spelling and my overall article. you are the first person to congratulate me on writing a first article, you really made my day thanks again bro.","timestamp":"2021-01-02T21:04:41+00:00","score":2},{"role":"answerer","user_id":"anon_fe40e9ee3a27abc9","comment_id":"ghvcqjo","kind":"comment","text":"My pleasure. Good luck!","timestamp":"2021-01-02T22:33:15+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6950d2afdbdeb6d4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fe40e9ee3a27abc9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ghv1ojf","thanks_reply_id":"ghv2j8d","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_38e43ff056fe275e","answerer_user_id":"anon_50f90aa6f635b31c","subreddit":"programming","timestamp":"2021-02-02T21:01:50+00:00","post_id":"lb6bwi","question":"Strings in C... tiring and unsafe. So I just made this lib. Am I doing it right, Reddit ?","preferred_answer":"You're doing it right. I wrote a similar \"extants\" library in 1999 which took the same approach, but your implementation looks cleaner than mine, and more versatile.\n\nhttp://ciar.org/ttk/codecloset/extant/\n\nI got a lot of mileage out of extants when I was writing C for a living, and have no doubt your safe strings will serve you well (and hopefully other people, too).","full_conversation":[{"role":"OP","user_id":"anon_38e43ff056fe275e","comment_id":"lb6bwi","kind":"post","text":"Strings in C... tiring and unsafe. So I just made this lib. Am I doing it right, Reddit ?","timestamp":"2021-02-02T21:01:50+00:00","score":964},{"role":"answerer","user_id":"anon_50f90aa6f635b31c","comment_id":"gls72pa","kind":"comment","text":"You're doing it right. I wrote a similar \"extants\" library in 1999 which took the same approach, but your implementation looks cleaner than mine, and more versatile.\n\nhttp://ciar.org/ttk/codecloset/extant/\n\nI got a lot of mileage out of extants when I was writing C for a living, and have no doubt your safe strings will serve you well (and hopefully other people, too).","timestamp":"2021-02-02T21:19:41+00:00","score":72},{"role":"OP","user_id":"anon_38e43ff056fe275e","comment_id":"glsaexg","kind":"comment","text":"Thanks for the kind words.\n\nFrom skimming your lib's doc, I got that you build some sort of polymorphic array ? Would it be through union types ? Sorry if misled.","timestamp":"2021-02-02T21:40:05+00:00","score":21},{"role":"answerer","user_id":"anon_50f90aa6f635b31c","comment_id":"glt7ywq","kind":"comment","text":"You didn't mislead at all. Unions would have been a more elegant approach, but instead I went with a dumb brute-force solution and implemented nearly-identical functions for a variety of types (integers, pointers, generic structs, and chars which have some value-added to use as C strings).\n\nIt was 1999, and I hadn't heard of DRY yet .\n\nLike I said, your implementation looks better, to me, and a lot easier to use than some of the similar things out there (like GStrings). I expect anyone could look at your safe strings and start using them immediately, whereas GLib has something of a learning curve.\n\nI see a lot of naysayers and dimissive comments here, but don't take them too seriously. What you have is worth using, and worth sharing. Kudos to you :-)","timestamp":"2021-02-03T01:56:26+00:00","score":15}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_38e43ff056fe275e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_50f90aa6f635b31c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gls72pa","thanks_reply_id":"glsaexg","post_score":964,"answer_score":72,"preferred_answer_is_top_level":true}} {"user_id":"anon_595608819561f7d1","answerer_user_id":"anon_d7a5221f3a86d031","subreddit":"programming","timestamp":"2021-02-06T20:31:01+00:00","post_id":"le63q1","question":"Can this challenge be solved with recursion? I solved it with for loops, I am just curious. thanks","preferred_answer":"```\nfunction uniteUnique (...args){\n \n return uniteUniqueInner.apply(null,[[]].concat(args));\n}\n\nfunction uniteUniqueInner(sofar,first,...rest)\n{\n if(first.length <= 0) {\n if (rest.length <= 0) return sofar;\n \n return uniteUniqueInner.apply(null,[sofar].concat(rest))\n }\n if(!sofar.includes(first[0])) sofar.push(first[0]);\n return uniteUniqueInner.apply(null,[sofar,first.slice(1)].concat(rest));\n}\n```","full_conversation":[{"role":"OP","user_id":"anon_595608819561f7d1","comment_id":"le63q1","kind":"post","text":"Can this challenge be solved with recursion? I solved it with for loops, I am just curious. thanks","timestamp":"2021-02-06T20:31:01+00:00","score":0},{"role":"answerer","user_id":"anon_d7a5221f3a86d031","comment_id":"gmbxizo","kind":"comment","text":"```\nfunction uniteUnique (...args){\n \n return uniteUniqueInner.apply(null,[[]].concat(args));\n}\n\nfunction uniteUniqueInner(sofar,first,...rest)\n{\n if(first.length <= 0) {\n if (rest.length <= 0) return sofar;\n \n return uniteUniqueInner.apply(null,[sofar].concat(rest))\n }\n if(!sofar.includes(first[0])) sofar.push(first[0]);\n return uniteUniqueInner.apply(null,[sofar,first.slice(1)].concat(rest));\n}\n```","timestamp":"2021-02-07T03:27:23+00:00","score":1},{"role":"OP","user_id":"anon_595608819561f7d1","comment_id":"gmeo2wy","kind":"comment","text":"Cool ! Thank you very much.","timestamp":"2021-02-07T11:22:03+00:00","score":1},{"role":"answerer","user_id":"anon_d7a5221f3a86d031","comment_id":"gmmmtps","kind":"comment","text":"No Problem.\n\nI do strongly recommend that you take some other iterative solution you come up with and convert it to recursion (and vice-versa). Some problems are a better fit for recursion, some for iteration, and many don't really matter all that much. Solving problems both ways is one way to develop good intuition for telling between the two.","timestamp":"2021-02-08T21:50:43+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_595608819561f7d1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d7a5221f3a86d031","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gmbxizo","thanks_reply_id":"gmeo2wy","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_0af566feaef8212a","answerer_user_id":"anon_95ce4ceb8d991011","subreddit":"programming","timestamp":"2021-02-10T06:10:32+00:00","post_id":"lgngnd","question":"What file and text encryption should I use? Please help.","preferred_answer":"There is no \"best way\" it depends on how you want to implement it, AES would probably be the easiest to implement [this](https://nodejs.org/api/crypto.html) is a good starting place, also take a look at [this](https://medium.com/@brandonstilson/lets-encrypt-files-with-node-85037bea8c0e) medium.com article and [this](https://stackoverflow.com/questions/6953286/how-to-encrypt-data-that-needs-to-be-decrypted-in-node-js) StackOverflow question. But be careful because while there may not be a best way to do this there certainty is a bad way.\n\nEdit: Also this is not a support forum (rule 4) you should ask these kind of questions on r/learnprogramming and please include more info in your questions like","full_conversation":[{"role":"OP","user_id":"anon_0af566feaef8212a","comment_id":"lgngnd","kind":"post","text":"What file and text encryption should I use? Please help.","timestamp":"2021-02-10T06:10:32+00:00","score":0},{"role":"answerer","user_id":"anon_95ce4ceb8d991011","comment_id":"gmsoc84","kind":"comment","text":"There is no \"best way\" it depends on how you want to implement it, AES would probably be the easiest to implement [this](https://nodejs.org/api/crypto.html) is a good starting place, also take a look at [this](https://medium.com/@brandonstilson/lets-encrypt-files-with-node-85037bea8c0e) medium.com article and [this](https://stackoverflow.com/questions/6953286/how-to-encrypt-data-that-needs-to-be-decrypted-in-node-js) StackOverflow question. But be careful because while there may not be a best way to do this there certainty is a bad way.\n\nEdit: Also this is not a support forum (rule 4) you should ask these kind of questions on r/learnprogramming and please include more info in your questions like","timestamp":"2021-02-10T08:06:17+00:00","score":3},{"role":"OP","user_id":"anon_0af566feaef8212a","comment_id":"gmsom6d","kind":"comment","text":"Thanks, already pretty helpful links. \n\nBut would you use the same algorithm for the files and the text? \nSo you could use e.g. aes256 for both?\n\nThe crypto module looks pretty handy.","timestamp":"2021-02-10T08:10:25+00:00","score":2},{"role":"answerer","user_id":"anon_95ce4ceb8d991011","comment_id":"gmsoz4c","kind":"comment","text":"I think the only way to encrypt a file is to read its contents encrypt it and the write it back and no you don't need to buffer the whole file in memory","timestamp":"2021-02-10T08:15:48+00:00","score":3},{"role":"OP","user_id":"anon_0af566feaef8212a","comment_id":"gmspbbn","kind":"comment","text":">ly way to encrypt a file is to read its contents encrypt it and the write it back and no you don't need to buffer the whole file in \n\nThanks mate. That sounds pretty easy then.","timestamp":"2021-02-10T08:21:01+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0af566feaef8212a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_95ce4ceb8d991011","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gmsoc84","thanks_reply_id":"gmsom6d","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_69d451ebcf855a33","answerer_user_id":"anon_e606a4b5817593bd","subreddit":"programming","timestamp":"2021-02-16T14:52:14+00:00","post_id":"ll5ehd","question":"Help! Can anyone give me any information on a .ifm file format. Looks to be an older discontinued format. Believe it has to do with Shana, which has been bought out by IBM. File is already compiled and I need to open it up in an editor. Any editors known to support this file type? All info helpful.","preferred_answer":"Can't you download a shareware version of shanon filler? It should be able to open the form.","full_conversation":[{"role":"OP","user_id":"anon_69d451ebcf855a33","comment_id":"ll5ehd","kind":"post","text":"Help! Can anyone give me any information on a .ifm file format. Looks to be an older discontinued format. Believe it has to do with Shana, which has been bought out by IBM. File is already compiled and I need to open it up in an editor. Any editors known to support this file type? All info helpful.","timestamp":"2021-02-16T14:52:14+00:00","score":0},{"role":"answerer","user_id":"anon_e606a4b5817593bd","comment_id":"gnnnjht","kind":"comment","text":"Can't you download a shareware version of shanon filler? It should be able to open the form.","timestamp":"2021-02-16T15:50:57+00:00","score":2},{"role":"OP","user_id":"anon_69d451ebcf855a33","comment_id":"gnnp0xc","kind":"comment","text":"First of all, Thank you for your response. I am pretty new to this. How would I go about finding that version? Is this something where I can input the file and see the decompiled version? Be able to see the file's useful information?\n\nI am running on the knowledge of a computer science minor fresh out of college. My only experience with compiled languages being C. Figuring this out means landing a job for me, so any more help you have would be awesome!","timestamp":"2021-02-16T16:02:03+00:00","score":1},{"role":"answerer","user_id":"anon_e606a4b5817593bd","comment_id":"gnnq99y","kind":"comment","text":"I have no knowledge of the file per se. Maybe, if there's text inside you can just look at the contents via notepad or an other texteditor?\n\nI found a download of the programm here: https://www.for.gov.bc.ca/isb/forms/Shana-v350public.htm maybe that helps?","timestamp":"2021-02-16T16:11:27+00:00","score":2},{"role":"OP","user_id":"anon_69d451ebcf855a33","comment_id":"gnnt3wb","kind":"comment","text":"When opened up in notepad, It is all just jargin. Like opening a compiled program I imagine? I have both Mac OS and Windows 10 on my machine currently. When opened on my Mac OS, it looked like a long list of hexadecimals. Which makes me believe I need to have a special program to view it correctly or it needs decompiled somehow? Am I on the right track at all here?\n\nDownloaded and ran a few Inform Fillers, including the one you mentioned, but I receive this error message:\n\n [https://ibb.co/9tDbKhB](https://ibb.co/9tDbKhB)","timestamp":"2021-02-16T16:32:41+00:00","score":0},{"role":"answerer","user_id":"anon_e606a4b5817593bd","comment_id":"gnnub2q","kind":"comment","text":"As I understand it, if the file is indeed made by the Shana programm it should be able to decode it. Maybe it's damaged. Or you need some plugin as mentioned in the error message.\n\nMaybe the file contains something else entirely? So it is not made by this Shana program?","timestamp":"2021-02-16T16:41:29+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_69d451ebcf855a33","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e606a4b5817593bd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gnnnjht","thanks_reply_id":"gnnp0xc","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_bdc686b25ae61b0b","answerer_user_id":"anon_0124da63d7cd7407","subreddit":"programming","timestamp":"2021-03-05T16:30:17+00:00","post_id":"lyfn5t","question":"How do I create a Player for a Podcast using RSS Feed?","preferred_answer":"This isn't a good question for SO. You should reduce the code down to the one single issue you have. If its reading from an RSS feed, get rid of the video etc.","full_conversation":[{"role":"OP","user_id":"anon_bdc686b25ae61b0b","comment_id":"lyfn5t","kind":"post","text":"How do I create a Player for a Podcast using RSS Feed?","timestamp":"2021-03-05T16:30:17+00:00","score":0},{"role":"answerer","user_id":"anon_0124da63d7cd7407","comment_id":"gptg0cb","kind":"comment","text":"This isn't a good question for SO. You should reduce the code down to the one single issue you have. If its reading from an RSS feed, get rid of the video etc.","timestamp":"2021-03-05T21:12:29+00:00","score":2},{"role":"OP","user_id":"anon_bdc686b25ae61b0b","comment_id":"gput671","kind":"comment","text":"Hello, Thanks for answering, what do you mean reduce the code down to the one single issue? I just need to know a way to display the podcast audio player on the website and make it update every time there is a new episode, I might have to use RSS Feed but today I found that also you use an API but I don't understand how to resolve this problem. Do you know the best solution?","timestamp":"2021-03-06T03:01:48+00:00","score":1},{"role":"answerer","user_id":"anon_0124da63d7cd7407","comment_id":"gpuvaap","kind":"comment","text":"Stack overflow is more for like an issue with a library or a specific line of code, rather than multiple sweeping issues.","timestamp":"2021-03-06T03:14:35+00:00","score":2},{"role":"OP","user_id":"anon_bdc686b25ae61b0b","comment_id":"gpux9tv","kind":"comment","text":"I'm sorry if I did not use the tool correctly, I just want to find a solution for this problem, due to I have never worked with RSS feed or displaying a podcast player, I think if I would learn how to do it, that could really be enriching for me.","timestamp":"2021-03-06T03:26:59+00:00","score":1},{"role":"answerer","user_id":"anon_0124da63d7cd7407","comment_id":"gpuz80s","kind":"comment","text":"Maybe if you posted just the one thing rather than both. Definitely agree that it'll be good to learn, just need to refocus the question a bit.","timestamp":"2021-03-06T03:39:12+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_bdc686b25ae61b0b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0124da63d7cd7407","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gptg0cb","thanks_reply_id":"gput671","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_c8c347f25c2f6048","answerer_user_id":"anon_7d69db3ec54e0950","subreddit":"programming","timestamp":"2021-03-12T17:12:35+00:00","post_id":"m3m59z","question":"Is there a way of opening an NFC tag URL inside the app, instead of google/safari?","preferred_answer":"Look at the official doc: https://developer.android.com/guide/topics/connectivity/nfc/nfc","full_conversation":[{"role":"OP","user_id":"anon_c8c347f25c2f6048","comment_id":"m3m59z","kind":"post","text":"Is there a way of opening an NFC tag URL inside the app, instead of google/safari?","timestamp":"2021-03-12T17:12:35+00:00","score":0},{"role":"answerer","user_id":"anon_7d69db3ec54e0950","comment_id":"gqpkhx5","kind":"comment","text":"Look at the official doc: https://developer.android.com/guide/topics/connectivity/nfc/nfc","timestamp":"2021-03-12T17:20:55+00:00","score":1},{"role":"OP","user_id":"anon_c8c347f25c2f6048","comment_id":"gqplrmr","kind":"comment","text":"Thank you for your answer. I have read that documentation, both basic and advanced, but I do seem to lack an understanding of it. I cannot seem to make my app start whenever I tap the NFC tags.","timestamp":"2021-03-12T17:30:14+00:00","score":1},{"role":"answerer","user_id":"anon_7d69db3ec54e0950","comment_id":"gqpmjjy","kind":"comment","text":"Have you got an `intent-filter` set up in your manifest file? \nThe code snippet you provided is only your activity","timestamp":"2021-03-12T17:36:00+00:00","score":2},{"role":"OP","user_id":"anon_c8c347f25c2f6048","comment_id":"gqpmuof","kind":"comment","text":"[https://play.kotlinlang.org/#eyJ2ZXJzaW9uIjoiMS40LjMwIiwicGxhdGZvcm0iOiJqYXZhIiwiYXJncyI6IiIsImpzQ29kZSI6IiIsIm5vbmVNYXJrZXJzIjp0cnVlLCJ0aGVtZSI6ImlkZWEiLCJjb2RlIjoiLyoqXG4gKiBZb3UgY2FuIGVkaXQsIHJ1biwgYW5kIHNoYXJlIHRoaXMgY29kZS4gXG4gKiBwbGF5LmtvdGxpbmxhbmcub3JnIFxuICovXG5cbiA8aW50ZW50LWZpbHRlcj5cbiAgICAgICAgICAgICAgICA8YWN0aW9uIGFuZHJvaWQ6bmFtZT1cImFuZHJvaWQuaW50ZW50LmFjdGlvbi5NQUlOXCIgLz5cbiAgICAgICAgICAgICAgICA8YWN0aW9uIGFuZHJvaWQ6bmFtZT1cImFuZHJvaWQubmZjLmFjdGlvbi5OREVGX0RJU0NPVkVSRURcIi8+XG4gICAgICAgICAgICAgICAgPCEtLSBEZWZhdWx0IGNhdGVnb3J5IGlzIHJlcXVpcmVkIGZvciB0aGUgaW50ZW50IGZpbHRlciB0byB3b3JrIC0tPlxuICAgICAgICAgICAgICAgIDxjYXRlZ29yeSBhbmRyb2lkOm5hbWU9XCJhbmRyb2lkLmludGVudC5jYXRlZ29yeS5ERUZBVUxUXCIvPlxuICAgICAgICAgICAgICAgIDwhLS0gQnJvd3NhYmxlIGFsc28gZW5hYmxlcyBvcGVuaW5nIHRoaXMgYXBwIHRocm91Z2ggYSBsaW5rIG9uIGEgd2Vic2l0ZSAtLT5cbiAgICAgICAgICAgICAgICA8Y2F0ZWdvcnkgYW5kcm9pZDpuYW1lPVwiYW5kcm9pZC5pbnRlbnQuY2F0ZWdvcnkuQlJPV1NBQkxFXCIgLz5cbiAgICAgICAgICAgICAgICA8IS0tIEludGVudCBmaWx0ZXJzIHdpdGhvdXQgZGF0YSB3aWxsIG5ldmVyIGJlIHRyaWdnZXJlZCBvbiBORkMgZGV2aWNlcy5cbiAgICAgICAgICAgICAgICBBbHdheXMgZGVmaW5lIHRoZSBzcGVjaWZpYyBkYXRhIHlvdSBleHBlY3QgdG8gYmUgcHJlc2VudC4gLS0+XG4gICAgICAgICAgICAgICAgPGRhdGEgYW5kcm9pZDpzY2hlbWU9XCJodHRwc1wiIGFuZHJvaWQ6aG9zdD1cImRhaGNvci5jb21cIiBhbmRyb2lkOnBhdGhQcmVmaXg9XCIvcGFnZXNcIiAvPlxuICAgICAgICAgICAgICAgIDwhLS0gQWRkaXRpb25hbGx5IHN1cHBvcnQgaHR0cCBzY2hlbWUuIFNlZTpcbiAgICAgICAgICAgICAgICBodHRwczovL2RldmVsb3Blci5hbmRyb2lkLmNvbS90cmFpbmluZy9hcHAtbGlua3MvdmVyaWZ5LXNpdGUtYXNzb2NpYXRpb25zLmh0bWwgLS0+XG4gICAgICAgICAgICAgICAgPGRhdGEgYW5kcm9pZDpzY2hlbWU9XCJodHRwXCIgLz5cbiAgICAgICAgICAgICAgICA8Y2F0ZWdvcnkgYW5kcm9pZDpuYW1lPVwiYW5kcm9pZC5pbnRlbnQuY2F0ZWdvcnkuTEFVTkNIRVJcIiAvPlxuICAgICAgICAgICAgPC9pbnRlbnQtZmlsdGVyPiJ9](https://play.kotlinlang.org/#eyJ2ZXJzaW9uIjoiMS40LjMwIiwicGxhdGZvcm0iOiJqYXZhIiwiYXJncyI6IiIsImpzQ29kZSI6IiIsIm5vbmVNYXJrZXJzIjp0cnVlLCJ0aGVtZSI6ImlkZWEiLCJjb2RlIjoiLyoqXG4gKiBZb3UgY2FuIGVkaXQsIHJ1biwgYW5kIHNoYXJlIHRoaXMgY29kZS4gXG4gKiBwbGF5LmtvdGxpbmxhbmcub3JnIFxuICovXG5cbiA8aW50ZW50LWZpbHRlcj5cbiAgICAgICAgICAgICAgICA8YWN0aW9uIGFuZHJvaWQ6bmFtZT1cImFuZHJvaWQuaW50ZW50LmFjdGlvbi5NQUlOXCIgLz5cbiAgICAgICAgICAgICAgICA8YWN0aW9uIGFuZHJvaWQ6bmFtZT1cImFuZHJvaWQubmZjLmFjdGlvbi5OREVGX0RJU0NPVkVSRURcIi8+XG4gICAgICAgICAgICAgICAgPCEtLSBEZWZhdWx0IGNhdGVnb3J5IGlzIHJlcXVpcmVkIGZvciB0aGUgaW50ZW50IGZpbHRlciB0byB3b3JrIC0tPlxuICAgICAgICAgICAgICAgIDxjYXRlZ29yeSBhbmRyb2lkOm5hbWU9XCJhbmRyb2lkLmludGVudC5jYXRlZ29yeS5ERUZBVUxUXCIvPlxuICAgICAgICAgICAgICAgIDwhLS0gQnJvd3NhYmxlIGFsc28gZW5hYmxlcyBvcGVuaW5nIHRoaXMgYXBwIHRocm91Z2ggYSBsaW5rIG9uIGEgd2Vic2l0ZSAtLT5cbiAgICAgICAgICAgICAgICA8Y2F0ZWdvcnkgYW5kcm9pZDpuYW1lPVwiYW5kcm9pZC5pbnRlbnQuY2F0ZWdvcnkuQlJPV1NBQkxFXCIgLz5cbiAgICAgICAgICAgICAgICA8IS0tIEludGVudCBmaWx0ZXJzIHdpdGhvdXQgZGF0YSB3aWxsIG5ldmVyIGJlIHRyaWdnZXJlZCBvbiBORkMgZGV2aWNlcy5cbiAgICAgICAgICAgICAgICBBbHdheXMgZGVmaW5lIHRoZSBzcGVjaWZpYyBkYXRhIHlvdSBleHBlY3QgdG8gYmUgcHJlc2VudC4gLS0+XG4gICAgICAgICAgICAgICAgPGRhdGEgYW5kcm9pZDpzY2hlbWU9XCJodHRwc1wiIGFuZHJvaWQ6aG9zdD1cImRhaGNvci5jb21cIiBhbmRyb2lkOnBhdGhQcmVmaXg9XCIvcGFnZXNcIiAvPlxuICAgICAgICAgICAgICAgIDwhLS0gQWRkaXRpb25hbGx5IHN1cHBvcnQgaHR0cCBzY2hlbWUuIFNlZTpcbiAgICAgICAgICAgICAgICBodHRwczovL2RldmVsb3Blci5hbmRyb2lkLmNvbS90cmFpbmluZy9hcHAtbGlua3MvdmVyaWZ5LXNpdGUtYXNzb2NpYXRpb25zLmh0bWwgLS0+XG4gICAgICAgICAgICAgICAgPGRhdGEgYW5kcm9pZDpzY2hlbWU9XCJodHRwXCIgLz5cbiAgICAgICAgICAgICAgICA8Y2F0ZWdvcnkgYW5kcm9pZDpuYW1lPVwiYW5kcm9pZC5pbnRlbnQuY2F0ZWdvcnkuTEFVTkNIRVJcIiAvPlxuICAgICAgICAgICAgPC9pbnRlbnQtZmlsdGVyPiJ9) \n\n\nHere, this is my manifest","timestamp":"2021-03-12T17:38:20+00:00","score":1},{"role":"answerer","user_id":"anon_7d69db3ec54e0950","comment_id":"gqpnox1","kind":"comment","text":"Are you missing the `uses-permission` tag?\n```\n\n```\nshould be inside the `manifest` element, preferably at the top","timestamp":"2021-03-12T17:44:36+00:00","score":1},{"role":"OP","user_id":"anon_c8c347f25c2f6048","comment_id":"gqpnxpw","kind":"comment","text":"Nope, got the hardware one too. \n\n\n \n","timestamp":"2021-03-12T17:46:27+00:00","score":1},{"role":"answerer","user_id":"anon_7d69db3ec54e0950","comment_id":"gqpp4z3","kind":"comment","text":"Hmm, maybe remove the `android.intent.action.MAIN` action from your intent, it may be that these clash. \nOther than that I also wouldn't know right know what the problem could be","timestamp":"2021-03-12T17:55:22+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_c8c347f25c2f6048","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7d69db3ec54e0950","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gqpkhx5","thanks_reply_id":"gqplrmr","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_62e511352fed54cf","answerer_user_id":"anon_36406da07824e619","subreddit":"programming","timestamp":"2021-03-13T09:55:06+00:00","post_id":"m43bcj","question":"i am 2nd year student started solving data structures and algorithms.if i cant solve a question how much time i should work on it before giving up. and why cant i solve some questions ?","preferred_answer":"It's probably best to not give up. I'd just keep coming back to it until something clicks. Don't over engineer or other think it either, just get it working first then figure out how to make it better. Also what language are you using?","full_conversation":[{"role":"OP","user_id":"anon_62e511352fed54cf","comment_id":"m43bcj","kind":"post","text":"i am 2nd year student started solving data structures and algorithms.if i cant solve a question how much time i should work on it before giving up. and why cant i solve some questions ?","timestamp":"2021-03-13T09:55:06+00:00","score":0},{"role":"answerer","user_id":"anon_36406da07824e619","comment_id":"gqscbfh","kind":"comment","text":"It's probably best to not give up. I'd just keep coming back to it until something clicks. Don't over engineer or other think it either, just get it working first then figure out how to make it better. Also what language are you using?","timestamp":"2021-03-13T10:14:16+00:00","score":2},{"role":"OP","user_id":"anon_62e511352fed54cf","comment_id":"gqsdq72","kind":"comment","text":"thanks for you reply, i am using java, i dont know why i can solve some questions in one go, but some questions i can't no matter what if i saw the solution , i can do a similar question","timestamp":"2021-03-13T10:40:01+00:00","score":1},{"role":"answerer","user_id":"anon_36406da07824e619","comment_id":"gqsg1ea","kind":"comment","text":"Breaking it down into smaller steps can help a lot. Going off the problem you linked I would break it down as such: Stepping through the array, Looking at the current element and the next element as a 'pair', Calculating the abs difference between them, Checking if this value is equal to \\`k\\` If so increment a variable so we can store the number of pairs, Return the number of pairs.\n\n​\n\nHope this helps.\n\n​\n\nAnother note is that Python is really good for leetcode since you can just do things very quickly. You don't have to waste time with verbose syntax so you can get down to the actual technical issue.","timestamp":"2021-03-13T11:21:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_62e511352fed54cf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_36406da07824e619","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gqscbfh","thanks_reply_id":"gqsdq72","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_7df37e8c4902bd9f","answerer_user_id":"anon_3b0e3c42276163b7","subreddit":"programming","timestamp":"2021-03-14T07:37:27+00:00","post_id":"m4qohy","question":"What do you think of the future of Programming? .Do I need to work in Big Tech companies so I can get a decent amount of money?","preferred_answer":"> Do I need to work in Big Tech companies so I can get a decent amount of money?\n\nNo, you make decent money by developing your own ideas, not programming the ideas of others.\n\nEDIT: Who the f**k downvoted this obviously and provably true statement? I posted it because that is exactly how I [succeeded in this business](https://en.wikipedia.org/wiki/Apple_Writer), and how everyone else who succeeded did the same. Did Bill Gates become successful as a programmer? No, he became successful by hiring other people to program for him.\n\nSteve Wozniak is a programmer and hardware designer. Steve Jobs was a computer salesman (and I worked with both of them). Guess which one became spectacularly successful?","full_conversation":[{"role":"OP","user_id":"anon_7df37e8c4902bd9f","comment_id":"m4qohy","kind":"post","text":"What do you think of the future of Programming? .Do I need to work in Big Tech companies so I can get a decent amount of money?","timestamp":"2021-03-14T07:37:27+00:00","score":0},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"gqvsb2c","kind":"comment","text":"> Do I need to work in Big Tech companies so I can get a decent amount of money?\n\nNo, you make decent money by developing your own ideas, not programming the ideas of others.\n\nEDIT: Who the f**k downvoted this obviously and provably true statement? I posted it because that is exactly how I [succeeded in this business](https://en.wikipedia.org/wiki/Apple_Writer), and how everyone else who succeeded did the same. Did Bill Gates become successful as a programmer? No, he became successful by hiring other people to program for him.\n\nSteve Wozniak is a programmer and hardware designer. Steve Jobs was a computer salesman (and I worked with both of them). Guess which one became spectacularly successful?","timestamp":"2021-03-14T08:24:46+00:00","score":-4},{"role":"OP","user_id":"anon_7df37e8c4902bd9f","comment_id":"gqvtt2k","kind":"comment","text":"Thanks.\n\nu mean doing ur own apps and programs and selling them. right?","timestamp":"2021-03-14T08:50:13+00:00","score":1},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"gqvuwwm","kind":"comment","text":"> u mean doing ur own apps and programs and selling them. right?\n\nIt means finding out what kinds of programs people need, creating them, then not allowing people to cheat you on the business side of the project.\n\nI created all my commercially successful programs using this model, then I retired ... wait for it ... 45 years ago (at the age of 30). Now I write programs for the fun of it. I've always liked programming, but I no longer need to make money doing it, so I don't. My newer programs are all [free and open-source](https://play.google.com/store/apps/developer?id=Paul+Lutus&hl=en_US&gl=US).","timestamp":"2021-03-14T09:08:54+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7df37e8c4902bd9f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3b0e3c42276163b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gqvsb2c","thanks_reply_id":"gqvtt2k","post_score":0,"answer_score":-4,"preferred_answer_is_top_level":true}} {"user_id":"anon_352031773a0d886f","answerer_user_id":"anon_b545da16786bfe92","subreddit":"programming","timestamp":"2021-03-14T19:24:24+00:00","post_id":"m521u3","question":"Hey guys i just want to ask why do you need math in game development?","preferred_answer":"You should start off by reading documentations or/and by taking courses on udemy.","full_conversation":[{"role":"OP","user_id":"anon_352031773a0d886f","comment_id":"m521u3","kind":"post","text":"Hey guys i just want to ask why do you need math in game development?","timestamp":"2021-03-14T19:24:24+00:00","score":0},{"role":"answerer","user_id":"anon_b545da16786bfe92","comment_id":"gqxoyui","kind":"comment","text":"You should start off by reading documentations or/and by taking courses on udemy.","timestamp":"2021-03-14T20:00:09+00:00","score":2},{"role":"OP","user_id":"anon_352031773a0d886f","comment_id":"gqxp5dy","kind":"comment","text":"Ok thanks is there anything else?","timestamp":"2021-03-14T20:01:11+00:00","score":1},{"role":"answerer","user_id":"anon_b545da16786bfe92","comment_id":"gr007js","kind":"comment","text":"Nope, not really. Good luck!","timestamp":"2021-03-15T10:47:55+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_352031773a0d886f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b545da16786bfe92","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gqxoyui","thanks_reply_id":"gqxp5dy","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_5b84f44331a81680","answerer_user_id":"anon_2dd689b694c3eff6","subreddit":"programming","timestamp":"2021-03-25T16:02:15+00:00","post_id":"md1n7x","question":"Characteristics of a programmer — What makes a good programmer, and how to be better at it?","preferred_answer":"I think your making the assumption that everyone is like you. Programming is a broad field in which there are many many ways to be successful.\n\nWhat makes a good programmer? Someone who loves to write code. But I could be wrong.","full_conversation":[{"role":"OP","user_id":"anon_5b84f44331a81680","comment_id":"md1n7x","kind":"post","text":"Characteristics of a programmer — What makes a good programmer, and how to be better at it?","timestamp":"2021-03-25T16:02:15+00:00","score":5},{"role":"answerer","user_id":"anon_2dd689b694c3eff6","comment_id":"gs7wpol","kind":"comment","text":"I think your making the assumption that everyone is like you. Programming is a broad field in which there are many many ways to be successful.\n\nWhat makes a good programmer? Someone who loves to write code. But I could be wrong.","timestamp":"2021-03-25T21:14:52+00:00","score":2},{"role":"OP","user_id":"anon_5b84f44331a81680","comment_id":"gs9g5w6","kind":"comment","text":"Thank you for your reply.\nI admit that this is my subjective point of view. Either way, I base my opinion on the experience I've gathered over the years and claim that this is statistically correct. I mean, those are pretty good indicators, but I do not claim they are limited to what I wrote.\nDo you agree with at least that some of those traits are relevant? Again, math person or learning lover or working with joy. It is a pretty broad spectrum, in my opinion. Cheers!","timestamp":"2021-03-26T05:42:14+00:00","score":1},{"role":"answerer","user_id":"anon_2dd689b694c3eff6","comment_id":"gsa35zh","kind":"comment","text":"I don't like maths, I'm a lazy learner. I mostly just learn what I need to solve the business problem at hand... I love programming to death. At uni on summer break I wrote code. My fist job I had a 4 week holiday and wrote code. I used to play computer games, and wrote code for them. Well you get the point.\n\nSure if I was applying for a job at Google the maths and love of endless learning might come into play. But IMHO if that's the case that's at Google's detrement.\n\nI'm very much a top down person, I focus mostly on structure and modelling. I learn the business I am working for and can easily discuss all the issues with the stakeholders. I ran a 7 figure business that eventually got crushed by big corporate. Sure I can solve technical problems, but I generally don't become an expert on the subject. 20+ years in the business and im still bleeding edge.\n\nThat was a lot of blowing my own horn, but it was to make a point. Sure I could be an outlier. But from my point of view I've worked with some great developers, they were all very different. One thing they had in common was they all loved to write code.","timestamp":"2021-03-26T11:32:10+00:00","score":1},{"role":"OP","user_id":"anon_5b84f44331a81680","comment_id":"gsanxf1","kind":"comment","text":"I truly believe we are talking about the same things, only using different words. I am not going to argue that the love to code is not crucial here, but I tried to define where does it come from.\nI see this as a different perspective, but to elaborate on your experience, I would say that you may be great at solving technical problems even not liking it at all, you love to learn your own business and solutions, code is just the effect of it.\nWell, long story short, we may see this differently, but I do not think you are the outlier, but great, specific example of this broad spectrum.","timestamp":"2021-03-26T14:38:15+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5b84f44331a81680","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2dd689b694c3eff6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gs7wpol","thanks_reply_id":"gs9g5w6","post_score":5,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2ad03d7420d0fdec","answerer_user_id":"anon_fc1954bdc69e6102","subreddit":"programming","timestamp":"2021-03-26T09:40:41+00:00","post_id":"mdkzli","question":"How to implement a hash table (in C)","preferred_answer":"Please use const char *key;\n\nEdit - I don't know why I'm being downvoted, I was talking about use of const in the data structure; at the time I read the article (and now) it looked like this:\n\n```\ntypedef struct {\n char* key;\n int value;\n} item;\n```\n\nIt should be `const char* key;` (or `const char *key;` -- that's how I usually write it, but I don't care about formatting to that degree)","full_conversation":[{"role":"OP","user_id":"anon_2ad03d7420d0fdec","comment_id":"mdkzli","kind":"post","text":"How to implement a hash table (in C)","timestamp":"2021-03-26T09:40:41+00:00","score":740},{"role":"answerer","user_id":"anon_fc1954bdc69e6102","comment_id":"gsaqj6f","kind":"comment","text":"Please use const char *key;\n\nEdit - I don't know why I'm being downvoted, I was talking about use of const in the data structure; at the time I read the article (and now) it looked like this:\n\n```\ntypedef struct {\n char* key;\n int value;\n} item;\n```\n\nIt should be `const char* key;` (or `const char *key;` -- that's how I usually write it, but I don't care about formatting to that degree)","timestamp":"2021-03-26T14:57:42+00:00","score":-17},{"role":"OP","user_id":"anon_2ad03d7420d0fdec","comment_id":"gsbm31m","kind":"comment","text":"Thanks! I'd used `const char* key` in the function signatures, but forgotten it in the definitions of the `hti` and `ht_entry` structs. [Fixed](https://github.com/benhoyt/ht/commit/dd26f13d03fa4233df1c043ea8632a551e0e3646) -- will update the article soon.\n\nEdit: oh, were you referring to the position of the `*`? Yeah, I prefer the \"C++ style\" as it indicates the `*` is part of the type (conceptually, if not syntactically).","timestamp":"2021-03-26T18:50:38+00:00","score":2},{"role":"answerer","user_id":"anon_fc1954bdc69e6102","comment_id":"gsn5wlx","kind":"comment","text":"No I just meant use const","timestamp":"2021-03-29T01:53:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2ad03d7420d0fdec","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fc1954bdc69e6102","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gsaqj6f","thanks_reply_id":"gsbm31m","post_score":740,"answer_score":-17,"preferred_answer_is_top_level":true}} {"user_id":"anon_efbab61a039e66cd","answerer_user_id":"anon_1cc48ae04e546ce2","subreddit":"programming","timestamp":"2021-04-02T11:13:15+00:00","post_id":"mii6qj","question":"Windows 95 — How Does it Look Today?","preferred_answer":"Gopher will work\n\ngopher://magical.fish\n\ngopher://gopherddit.com\n\ngopher://sdf.org","full_conversation":[{"role":"OP","user_id":"anon_efbab61a039e66cd","comment_id":"mii6qj","kind":"post","text":"Windows 95 — How Does it Look Today?","timestamp":"2021-04-02T11:13:15+00:00","score":99},{"role":"answerer","user_id":"anon_1cc48ae04e546ce2","comment_id":"gt4pgp6","kind":"comment","text":"Gopher will work\n\ngopher://magical.fish\n\ngopher://gopherddit.com\n\ngopher://sdf.org","timestamp":"2021-04-02T11:17:41+00:00","score":12},{"role":"OP","user_id":"anon_efbab61a039e66cd","comment_id":"gt4vsmk","kind":"comment","text":">gopher://gopherddit.com\n\nThat's cool, thanks, I added a link to the article.","timestamp":"2021-04-02T12:40:29+00:00","score":8},{"role":"answerer","user_id":"anon_1cc48ae04e546ce2","comment_id":"gt4yqe3","kind":"comment","text":"Nice. Also, KernelEx will run software for modern protocols such as Jabber (maybe Pidgin *could* work), old Sumatra PDF releases; and, with a proper IRC client, you can connect it to some Bitlbee public servers in order to use modern chat protocols tunneled to that client.\n\nhttps://www.bitlbee.org/main.php/servers.html\n\nJoin the \"&bitlbee\" channel, and run the \"plugins\" commans on each server, one of them has several plugins to connect even to Discord.","timestamp":"2021-04-02T13:12:40+00:00","score":1},{"role":"OP","user_id":"anon_efbab61a039e66cd","comment_id":"gt55f4s","kind":"comment","text":"It's only partially working, the main page is working but subpages are not: \n[https://ibb.co/yqmR2D0](https://ibb.co/yqmR2D0)\n\nBut I was surprised that gopher links can be opened in IE at all.","timestamp":"2021-04-02T14:17:32+00:00","score":3},{"role":"answerer","user_id":"anon_1cc48ae04e546ce2","comment_id":"gt5sslo","kind":"comment","text":"IE5 or Netscape should work better.\nOpen gopher://sdf.org in nscape and search for wsgopher32 and some irc client at Veronica.\nConnect to some public bitlbee server and be amazed for being able to tweet/toot from w95.\n\nEDIT\n\nSome servers support Steam chat too, and if you set up your own bitlbee server with the libpurple build among the telegram-purple plugin, Telegram will work too. And any plugin libpurple supports, even some for Skype and Slack.","timestamp":"2021-04-02T17:33:05+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_efbab61a039e66cd","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1cc48ae04e546ce2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gt4pgp6","thanks_reply_id":"gt4vsmk","post_score":99,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_7191102501007328","answerer_user_id":"anon_85bc0852f54ee44a","subreddit":"programming","timestamp":"2021-04-13T01:17:31+00:00","post_id":"mprzgq","question":"How to turn an image black and white (the right way)","preferred_answer":"Would it make sense to also first convert for gamma correction? [https://en.wikipedia.org/wiki/Gamma\\_correction](https://en.wikipedia.org/wiki/Gamma_correction)\n\nThink the water in the example might look a bit better with it (paste in the code below into the code box if you want to try). Also the ketchup looks much more correct to me.\n\n`vec4 color = texture2D(uSampler, vTextureCoord);float luminance = 0.0;luminance += 0.2126 * pow(color.r,2.2);luminance += 0.7152 * pow(color.g,2.2);luminance += 0.0722 * pow(color.b,2.2);luminance = pow(luminance,1.0/2.2);color.rgb = vec3(luminance);gl_FragColor = color;`","full_conversation":[{"role":"OP","user_id":"anon_7191102501007328","comment_id":"mprzgq","kind":"post","text":"How to turn an image black and white (the right way)","timestamp":"2021-04-13T01:17:31+00:00","score":36},{"role":"answerer","user_id":"anon_85bc0852f54ee44a","comment_id":"gud01i0","kind":"comment","text":"Would it make sense to also first convert for gamma correction? [https://en.wikipedia.org/wiki/Gamma\\_correction](https://en.wikipedia.org/wiki/Gamma_correction)\n\nThink the water in the example might look a bit better with it (paste in the code below into the code box if you want to try). Also the ketchup looks much more correct to me.\n\n`vec4 color = texture2D(uSampler, vTextureCoord);float luminance = 0.0;luminance += 0.2126 * pow(color.r,2.2);luminance += 0.7152 * pow(color.g,2.2);luminance += 0.0722 * pow(color.b,2.2);luminance = pow(luminance,1.0/2.2);color.rgb = vec3(luminance);gl_FragColor = color;`","timestamp":"2021-04-13T11:53:04+00:00","score":9},{"role":"OP","user_id":"anon_7191102501007328","comment_id":"gud5bjm","kind":"comment","text":"Thank you so much for pointing this out and for the code snippet! You are right. I've added a correction at the end with your code snippet for readers to try. Let me know if you'd prefer I credit you in a different way! \n\nI think ideally I'd mention this at the beginning but I need to think a bit more about how to revise/rewrite some of this in.","timestamp":"2021-04-13T12:48:21+00:00","score":4},{"role":"answerer","user_id":"anon_85bc0852f54ee44a","comment_id":"gud6ndd","kind":"comment","text":"No credit needed. Was just curious since I remember it being necessary when I was playing around with Ray tracing.","timestamp":"2021-04-13T13:00:55+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7191102501007328","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_85bc0852f54ee44a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gud01i0","thanks_reply_id":"gud5bjm","post_score":36,"answer_score":9,"preferred_answer_is_top_level":true}} {"user_id":"anon_28bf0f7c57453fdb","answerer_user_id":"anon_0915c26c03e7c43f","subreddit":"programming","timestamp":"2021-04-20T13:34:35+00:00","post_id":"muqfmu","question":"How does Github store millions of repo and billions of files?","preferred_answer":"I wonder how long it takes them to move all the AWS stuff to Azure. I assume it would be worth it since github is owned my microsoft now.","full_conversation":[{"role":"OP","user_id":"anon_28bf0f7c57453fdb","comment_id":"muqfmu","kind":"post","text":"How does Github store millions of repo and billions of files?","timestamp":"2021-04-20T13:34:35+00:00","score":5},{"role":"answerer","user_id":"anon_0915c26c03e7c43f","comment_id":"gv86d8c","kind":"comment","text":"I wonder how long it takes them to move all the AWS stuff to Azure. I assume it would be worth it since github is owned my microsoft now.","timestamp":"2021-04-20T17:45:29+00:00","score":2},{"role":"OP","user_id":"anon_28bf0f7c57453fdb","comment_id":"gv876n0","kind":"comment","text":"Thanks for the comment. I am not sure which aws stuff you are talking about. GitHub doesn't AWS for file storage. \n\nAbout Azure, for any organisation, they are more concerned about the performance. GitHub figured out that using bare metal machines are far better and faster then aws or any other cloud storage for their use case. Yes, as GitHub is owned by Microsoft now, they might consider azure as an option.","timestamp":"2021-04-20T17:50:59+00:00","score":3},{"role":"answerer","user_id":"anon_0915c26c03e7c43f","comment_id":"gv88bdf","kind":"comment","text":"Oh I misread \"Github uses Rackspace over Amazon EC2\" as that were using rackspace inside of amazon EC2 somehow, not using rackspace instead of amazon ec2.","timestamp":"2021-04-20T17:58:36+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_28bf0f7c57453fdb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0915c26c03e7c43f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gv86d8c","thanks_reply_id":"gv876n0","post_score":5,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_8869ca95a9883379","answerer_user_id":"anon_b2b00fc1ee5967d7","subreddit":"programming","timestamp":"2021-04-23T18:05:22+00:00","post_id":"mx1aav","question":"I built a custom distributed system with Docker, React, .NET Core, Consul and RabbitMQ. Would anyone be willing to share some feedback?","preferred_answer":"1. README needs work. Go into a bit of detail on what each part of your stack is, and how you are using each tool. \n\nI don’t love that you’ve thrown virtually all of the “meat” into a single Common project and then imported it everywhere else. Some things belong in a common project, sure—the majority of your interfaces, for example. But defining domain-specific messages inside of your Common project? That’s a big no-no. \n\nTo me, the common project should provide the appropriate interfaces to the other, domain-specific projects to allow each to define the commands, queries, handlers, etc. it needs to function. \n\nReally great work though! I recently left the world of dotnet development for another opportunity, and reading this code made me miss C#. Such a pretty language. If only it weren’t so god damn verbose.","full_conversation":[{"role":"OP","user_id":"anon_8869ca95a9883379","comment_id":"mx1aav","kind":"post","text":"I built a custom distributed system with Docker, React, .NET Core, Consul and RabbitMQ. Would anyone be willing to share some feedback?","timestamp":"2021-04-23T18:05:22+00:00","score":0},{"role":"answerer","user_id":"anon_b2b00fc1ee5967d7","comment_id":"gvlmtsf","kind":"comment","text":"1. README needs work. Go into a bit of detail on what each part of your stack is, and how you are using each tool. \n\nI don’t love that you’ve thrown virtually all of the “meat” into a single Common project and then imported it everywhere else. Some things belong in a common project, sure—the majority of your interfaces, for example. But defining domain-specific messages inside of your Common project? That’s a big no-no. \n\nTo me, the common project should provide the appropriate interfaces to the other, domain-specific projects to allow each to define the commands, queries, handlers, etc. it needs to function. \n\nReally great work though! I recently left the world of dotnet development for another opportunity, and reading this code made me miss C#. Such a pretty language. If only it weren’t so god damn verbose.","timestamp":"2021-04-23T19:18:49+00:00","score":3},{"role":"OP","user_id":"anon_8869ca95a9883379","comment_id":"gvm0sft","kind":"comment","text":"Thanks for the feedback! \n\nIt's not the first time that I'm getting this feedback for the common. My initial idea was to reuse everything from there initially, and when the appilcation grows bigger, split it into smaller packages and distribute them either through NuGet or some other more efficient way which would not require rebuilding and redeploying every microservice if there is a change in common.","timestamp":"2021-04-23T21:05:02+00:00","score":2},{"role":"answerer","user_id":"anon_b2b00fc1ee5967d7","comment_id":"gvmr32v","kind":"comment","text":"My advice—keep inside common only that which is common. Resharper (and probably vanilla VS at this point, tbh) can show you a dependency graph per-class in Common to each project.","timestamp":"2021-04-24T00:49:42+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8869ca95a9883379","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b2b00fc1ee5967d7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gvlmtsf","thanks_reply_id":"gvm0sft","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_dad17b6cbf50c4f2","answerer_user_id":"anon_1fc7ab5191724af1","subreddit":"programming","timestamp":"2021-04-28T11:08:16+00:00","post_id":"n0cdsz","question":"What skills are required to make a game like this on the web?","preferred_answer":"It is actually not as hard as it looks. Even a hobbyist could produce something like this given enough time.\n\nA decent game engine, such as [Unity](https://unity.com/), would do a lot of the technical heavy lifting. You would just need to program the game logic and object behaviors using C# or some Visual Scripting tool. A lot of that comes down to using state machines, which can be easy or difficult depending on what you're trying to do. \n\nIn my opinion, as a general programmer, the most difficult and time consuming part is artwork. However, the artwork for a game like this is a little easier to do as it uses what is called cell shading, which gives it that stylized/cartoon look. \n\nYou'd need to know how to use some 3D modeling tool, such as [Blender](https://www.blender.org/), [Autodesk 3D Studio Max](https://www.autodesk.com/products/3ds-max), or [Autodesk Fusion 360](https://www.autodesk.com/products/fusion-360/). I personally prefer Blender for organic models, like characters and plants, and Fusion 360 for inorganic models, like furniture. \n\nAnimation is also generally handled in these 3D modeling programs, but can also be done inside most game engines, like Unity. [Adobe Mixamo](https://www.mixamo.com/#/) is an excellent source of motion captured character animations that can even rig up the animations to models you've created. \n\nFor texturing, knowing how to use [GIMP](https://www.gimp.org/) or [Adobe Photoshop](https://www.adobe.com/products/photoshop.html) is highly recommended. I would also highly recommend [Substance Painter](https://www.substance3d.com/products/substance-painter/), which simplifies the process, but can deliver amazing AAA quality results, even in the hands of a novice. Again, as a game like this uses cell-shading, you're really only concerned about general colors, not minute details, so this process is greatly simplified.\n\nIt is easy to get lost in these programs as they support a lot of complex operations and workflows, but anything is possible with time. Just ask yourself, \"What do I want?\" and then research how to do it. \n\nBeyond that, you start getting into general software development skills. . .such as client/server networking, managing databases of game information, saving the state of the game world, etc. \n\nOnce you have a completed game, there is marketing and publishing your game. Luckily, this is not as difficult as it sounds, and just requires a bit of research, engaging social media, and going through the process to get the game on Steam, Google Play, of the Apple App Store. However, you probably won't need to worry about all of that anytime soon, but good to keep it in mind.","full_conversation":[{"role":"OP","user_id":"anon_dad17b6cbf50c4f2","comment_id":"n0cdsz","kind":"post","text":"What skills are required to make a game like this on the web?","timestamp":"2021-04-28T11:08:16+00:00","score":0},{"role":"answerer","user_id":"anon_1fc7ab5191724af1","comment_id":"gw603tq","kind":"comment","text":"It is actually not as hard as it looks. Even a hobbyist could produce something like this given enough time.\n\nA decent game engine, such as [Unity](https://unity.com/), would do a lot of the technical heavy lifting. You would just need to program the game logic and object behaviors using C# or some Visual Scripting tool. A lot of that comes down to using state machines, which can be easy or difficult depending on what you're trying to do. \n\nIn my opinion, as a general programmer, the most difficult and time consuming part is artwork. However, the artwork for a game like this is a little easier to do as it uses what is called cell shading, which gives it that stylized/cartoon look. \n\nYou'd need to know how to use some 3D modeling tool, such as [Blender](https://www.blender.org/), [Autodesk 3D Studio Max](https://www.autodesk.com/products/3ds-max), or [Autodesk Fusion 360](https://www.autodesk.com/products/fusion-360/). I personally prefer Blender for organic models, like characters and plants, and Fusion 360 for inorganic models, like furniture. \n\nAnimation is also generally handled in these 3D modeling programs, but can also be done inside most game engines, like Unity. [Adobe Mixamo](https://www.mixamo.com/#/) is an excellent source of motion captured character animations that can even rig up the animations to models you've created. \n\nFor texturing, knowing how to use [GIMP](https://www.gimp.org/) or [Adobe Photoshop](https://www.adobe.com/products/photoshop.html) is highly recommended. I would also highly recommend [Substance Painter](https://www.substance3d.com/products/substance-painter/), which simplifies the process, but can deliver amazing AAA quality results, even in the hands of a novice. Again, as a game like this uses cell-shading, you're really only concerned about general colors, not minute details, so this process is greatly simplified.\n\nIt is easy to get lost in these programs as they support a lot of complex operations and workflows, but anything is possible with time. Just ask yourself, \"What do I want?\" and then research how to do it. \n\nBeyond that, you start getting into general software development skills. . .such as client/server networking, managing databases of game information, saving the state of the game world, etc. \n\nOnce you have a completed game, there is marketing and publishing your game. Luckily, this is not as difficult as it sounds, and just requires a bit of research, engaging social media, and going through the process to get the game on Steam, Google Play, of the Apple App Store. However, you probably won't need to worry about all of that anytime soon, but good to keep it in mind.","timestamp":"2021-04-28T12:52:51+00:00","score":5},{"role":"OP","user_id":"anon_dad17b6cbf50c4f2","comment_id":"gw62ic7","kind":"comment","text":"Thanks a lot that's the answer I was looking for, I have some knowledge in programming, javascript, reactjs, nodejs, but I had no clue where should I start from because I really want to build such a game so I can give 999999 resources to myself","timestamp":"2021-04-28T13:14:16+00:00","score":0},{"role":"answerer","user_id":"anon_1fc7ab5191724af1","comment_id":"gw63ko1","kind":"comment","text":"I'd highly recommend /r/gamedev, /r/unity3d, /r/unity2d, /r/unrealengine, and other related subs.\n\nJust watching how other developers approach problems and game design in general, can go a long way towards learning how to do these things yourself.\n\nHowever, manage your expectations and start small. I personally have worked on a couple of projects/ideas for 3-5 years with very little to show for it, simply because the scope was too big.","timestamp":"2021-04-28T13:23:19+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_dad17b6cbf50c4f2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1fc7ab5191724af1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gw603tq","thanks_reply_id":"gw62ic7","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_ceacfd41af803424","answerer_user_id":"anon_96b055446710167e","subreddit":"programming","timestamp":"2021-05-11T14:46:44+00:00","post_id":"n9yoa3","question":"Why Sleep Apnea Patients Rely on a CPAP Machine Hacker","preferred_answer":"This is not 100% accurate. Namely: \n\n * About 25% of people with sleep apnea do not snore, and a significant portion of people with Upper Airway Resistance Syndrome(which is what women, younger people, or milder male cases are instead of apnea) do not.\n\n * Major risk factors are dentofacial deformity(receded mandible, narrow palate), poor nasal breathing(including allergies or needing to mouth breathe outside of *heavy* physical activity), obesity, or anything else that impacts upper airways.\n\n * Instead of feeling tired, a lot of people feel fatigued or just very high strung for no obvious reason. Those people will often but not always feel sleepy but only if they relax, after bigger meals, or during the afternoon.\n\n * People with UARS especially will often experience low or normal blood pressure with cold hands&feet, and/or feeling dizzy when standing up instead of high blood pressure.\n\n * During sleep, 3+ sharper breaths signal a microarousal into shallow sleep and interrupted sleep. As do **any** body movements(periodic leg movements have a different cause but still signal sleep fragmentation), talking or groaning.\n\n * Insomnia and nightmares are also a symptom. Respectively of conditioning to be afraid of airway restriction when airway muscles relax on transition into shallow sleep, and of awareness of body struggling to breathing affecting dream content.\n\nThe problem is that traditional sleep studies only score prolonged pauses or reductions in breathing, they do not score sleep fragmentation caused by subtler flow limitations, which are almost always what causes most symptoms.","full_conversation":[{"role":"OP","user_id":"anon_ceacfd41af803424","comment_id":"n9yoa3","kind":"post","text":"Why Sleep Apnea Patients Rely on a CPAP Machine Hacker","timestamp":"2021-05-11T14:46:44+00:00","score":1288},{"role":"answerer","user_id":"anon_96b055446710167e","comment_id":"gxro6yn","kind":"comment","text":"This is not 100% accurate. Namely: \n\n * About 25% of people with sleep apnea do not snore, and a significant portion of people with Upper Airway Resistance Syndrome(which is what women, younger people, or milder male cases are instead of apnea) do not.\n\n * Major risk factors are dentofacial deformity(receded mandible, narrow palate), poor nasal breathing(including allergies or needing to mouth breathe outside of *heavy* physical activity), obesity, or anything else that impacts upper airways.\n\n * Instead of feeling tired, a lot of people feel fatigued or just very high strung for no obvious reason. Those people will often but not always feel sleepy but only if they relax, after bigger meals, or during the afternoon.\n\n * People with UARS especially will often experience low or normal blood pressure with cold hands&feet, and/or feeling dizzy when standing up instead of high blood pressure.\n\n * During sleep, 3+ sharper breaths signal a microarousal into shallow sleep and interrupted sleep. As do **any** body movements(periodic leg movements have a different cause but still signal sleep fragmentation), talking or groaning.\n\n * Insomnia and nightmares are also a symptom. Respectively of conditioning to be afraid of airway restriction when airway muscles relax on transition into shallow sleep, and of awareness of body struggling to breathing affecting dream content.\n\nThe problem is that traditional sleep studies only score prolonged pauses or reductions in breathing, they do not score sleep fragmentation caused by subtler flow limitations, which are almost always what causes most symptoms.","timestamp":"2021-05-11T19:47:49+00:00","score":26},{"role":"OP","user_id":"anon_ceacfd41af803424","comment_id":"gxtuyrs","kind":"comment","text":"Thanks for the addition!","timestamp":"2021-05-12T07:36:51+00:00","score":1},{"role":"answerer","user_id":"anon_96b055446710167e","comment_id":"gxtyvye","kind":"comment","text":"Hm I'd make the first into: \"One of: Snoring, moving during sleep, chronic insomnia, chronic fatigue or lack of drive\". Other than that it's pretty good for initial screening who could use a sleep study(now if only 95% of sleep studies weren't scored too poorly)","timestamp":"2021-05-12T08:38:50+00:00","score":1},{"role":"OP","user_id":"anon_ceacfd41af803424","comment_id":"gxu08af","kind":"comment","text":"Thanks! Seems to make sense - I changed it to that.","timestamp":"2021-05-12T09:00:45+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ceacfd41af803424","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_96b055446710167e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gxro6yn","thanks_reply_id":"gxtuyrs","post_score":1288,"answer_score":26,"preferred_answer_is_top_level":false}} {"user_id":"anon_397020a909093d4f","answerer_user_id":"anon_2b020ce74c3ee423","subreddit":"programming","timestamp":"2021-05-12T13:00:58+00:00","post_id":"nao3ts","question":"How we achieved write speeds of 1.4 million rows per second","preferred_answer":"Very interesting read, though I find the abbreviation from \"out-of-order\" to \"O3\" to be a tiny bit... Pointless and unnecessary, in my opinion","full_conversation":[{"role":"OP","user_id":"anon_397020a909093d4f","comment_id":"nao3ts","kind":"post","text":"How we achieved write speeds of 1.4 million rows per second","timestamp":"2021-05-12T13:00:58+00:00","score":1676},{"role":"answerer","user_id":"anon_2b020ce74c3ee423","comment_id":"gxvwn2q","kind":"comment","text":"Very interesting read, though I find the abbreviation from \"out-of-order\" to \"O3\" to be a tiny bit... Pointless and unnecessary, in my opinion","timestamp":"2021-05-12T18:47:49+00:00","score":24},{"role":"OP","user_id":"anon_397020a909093d4f","comment_id":"gxvx8mf","kind":"comment","text":"Thank you, we got this exact feedback before but frankly didn't have time to address it. One of Apache projects uses this terminology and we shamelessly ripped it off hoping this is something already a norm. We will think about this. out-of-order seemed verbose and everywhere in code we kept confusing 'ooo' with 'oo'. 'o3' seemed easier to work with.","timestamp":"2021-05-12T18:51:52+00:00","score":11},{"role":"answerer","user_id":"anon_2b020ce74c3ee423","comment_id":"gxvxhqz","kind":"comment","text":"Well, in code comments, sure. In a blog post to be read by the rest of the world, I would have probably taken the time to write it out just to be clear to anyone reading.","timestamp":"2021-05-12T18:53:35+00:00","score":7}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_397020a909093d4f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2b020ce74c3ee423","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gxvwn2q","thanks_reply_id":"gxvx8mf","post_score":1676,"answer_score":24,"preferred_answer_is_top_level":true}} {"user_id":"anon_27769dd029551176","answerer_user_id":"anon_94251fa33a7222aa","subreddit":"programming","timestamp":"2021-05-20T15:50:04+00:00","post_id":"nh3q6y","question":"How a Single Mistake Wasted 3 Years of My Data Science Journey","preferred_answer":"This was a good read. Self-paced courses are the Duolingo of CS. \n\nDo you have any specific recommendations for textbooks/materials that describe the correct uses and understanding behind ML algorithms?","full_conversation":[{"role":"OP","user_id":"anon_27769dd029551176","comment_id":"nh3q6y","kind":"post","text":"How a Single Mistake Wasted 3 Years of My Data Science Journey","timestamp":"2021-05-20T15:50:04+00:00","score":0},{"role":"answerer","user_id":"anon_94251fa33a7222aa","comment_id":"gyu3p83","kind":"comment","text":"This was a good read. Self-paced courses are the Duolingo of CS. \n\nDo you have any specific recommendations for textbooks/materials that describe the correct uses and understanding behind ML algorithms?","timestamp":"2021-05-20T15:56:43+00:00","score":1},{"role":"OP","user_id":"anon_27769dd029551176","comment_id":"gyu4sps","kind":"comment","text":"Thanks for reading the article. I usually prefer learning directly from the instructors who have industrial experience.","timestamp":"2021-05-20T16:04:23+00:00","score":2},{"role":"answerer","user_id":"anon_94251fa33a7222aa","comment_id":"gyu5x7m","kind":"comment","text":"Fair enough. I’m doing a CS degree but have found it difficult to talk to any of my instructors since we’re solely learning online and they rarely respond to emails.","timestamp":"2021-05-20T16:12:26+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_27769dd029551176","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_94251fa33a7222aa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gyu3p83","thanks_reply_id":"gyu4sps","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_a7071bfb85cf9cf6","answerer_user_id":"anon_7d3047fcdbd90a50","subreddit":"programming","timestamp":"2021-05-26T13:55:10+00:00","post_id":"nlhmcz","question":"Why is JRuby Slow?","preferred_answer":"It is as fast to start - as in it starts executing your Ruby code more quickly than MRI does. But when it's started executing your Ruby code, your Ruby code runs more slowly for the first few seconds.\n\nIf you app doesn't run for more than a few seconds, you don't get to see the benefit when it starts to run faster.","full_conversation":[{"role":"OP","user_id":"anon_a7071bfb85cf9cf6","comment_id":"nlhmcz","kind":"post","text":"Why is JRuby Slow?","timestamp":"2021-05-26T13:55:10+00:00","score":189},{"role":"answerer","user_id":"anon_7d3047fcdbd90a50","comment_id":"gzj1d9j","kind":"comment","text":"It is as fast to start - as in it starts executing your Ruby code more quickly than MRI does. But when it's started executing your Ruby code, your Ruby code runs more slowly for the first few seconds.\n\nIf you app doesn't run for more than a few seconds, you don't get to see the benefit when it starts to run faster.","timestamp":"2021-05-26T16:06:03+00:00","score":11},{"role":"OP","user_id":"anon_a7071bfb85cf9cf6","comment_id":"gzj40tq","kind":"comment","text":"Yeah, that makes sense, and thanks for reading the article. I wonder at what size of website the trade-offs would start to make sense? If my blog were 1000s of articles and 20 minutes to build with MRI Ruby would you expect it to be faster?","timestamp":"2021-05-26T16:24:18+00:00","score":2},{"role":"answerer","user_id":"anon_7d3047fcdbd90a50","comment_id":"gzjb1oe","kind":"comment","text":"It should get fast if it runs for a minute or so. Open a bug on TruffleRuby if you want to investigate more.","timestamp":"2021-05-26T17:12:43+00:00","score":2},{"role":"OP","user_id":"anon_a7071bfb85cf9cf6","comment_id":"gzjf7fu","kind":"comment","text":"Will do!","timestamp":"2021-05-26T17:41:32+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a7071bfb85cf9cf6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7d3047fcdbd90a50","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"gzj1d9j","thanks_reply_id":"gzj40tq","post_score":189,"answer_score":11,"preferred_answer_is_top_level":false}} {"user_id":"anon_f520b5be455b1329","answerer_user_id":"anon_3b0e3c42276163b7","subreddit":"programming","timestamp":"2021-06-02T17:23:34+00:00","post_id":"nqr4b6","question":"Can just only one person subscribe to my channel pleeeease","preferred_answer":"> I am actually about to give up on this hole idea\n\nYou could spend time reading a book, widening your horizons, acquiring the kind of real-world knowledge that may put this in perspective. And finding out that the word is \"whole\" not \"hole\".\n\nBut don't give up. Change tactics, learn more, try something else. YouTube videos don't define you or determine your personal worth.","full_conversation":[{"role":"OP","user_id":"anon_f520b5be455b1329","comment_id":"nqr4b6","kind":"post","text":"Can just only one person subscribe to my channel pleeeease","timestamp":"2021-06-02T17:23:34+00:00","score":0},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"h0c8zcm","kind":"comment","text":"> I am actually about to give up on this hole idea\n\nYou could spend time reading a book, widening your horizons, acquiring the kind of real-world knowledge that may put this in perspective. And finding out that the word is \"whole\" not \"hole\".\n\nBut don't give up. Change tactics, learn more, try something else. YouTube videos don't define you or determine your personal worth.","timestamp":"2021-06-02T17:52:41+00:00","score":2},{"role":"OP","user_id":"anon_f520b5be455b1329","comment_id":"h0c96mp","kind":"comment","text":"Ok mate thanks. Also English is my third language","timestamp":"2021-06-02T17:54:04+00:00","score":1},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"h0c9fh5","kind":"comment","text":"That's impressive. Maybe time spent creating videos is a waste of your talents. It's certainly true for many others.","timestamp":"2021-06-02T17:55:41+00:00","score":2},{"role":"OP","user_id":"anon_f520b5be455b1329","comment_id":"h0c9na7","kind":"comment","text":"I don't think so as i find teaching the best way to learn for my self","timestamp":"2021-06-02T17:57:11+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_f520b5be455b1329","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3b0e3c42276163b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h0c8zcm","thanks_reply_id":"h0c96mp","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_5339df70a4823eae","answerer_user_id":"anon_ab93b76eafe8f861","subreddit":"programming","timestamp":"2021-06-04T16:28:06+00:00","post_id":"ns9668","question":"How to CRUD with Node.js and MongoDB","preferred_answer":"You should check out postgrest, it’s awesome and you don’t have to write your own crud things","full_conversation":[{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"ns9668","kind":"post","text":"How to CRUD with Node.js and MongoDB","timestamp":"2021-06-04T16:28:06+00:00","score":0},{"role":"answerer","user_id":"anon_ab93b76eafe8f861","comment_id":"h0p5ija","kind":"comment","text":"You should check out postgrest, it’s awesome and you don’t have to write your own crud things","timestamp":"2021-06-05T16:01:01+00:00","score":2},{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"h0syd57","kind":"comment","text":"Interesting project, thanks for the link.\n\nIf there is a compelling reason to use a RDBMS that might be a helpful way to go, although I'm not thrilled about the complexity increase of running a web server to \"auto-generate\" a restful api around the datastore.\n\nI can't see it as the way of the future. (But I've been wrong before). Just using node+mongo as described in the article gives you a much simpler data access layer.\n\nEven with postgrest, you still have to write crud in your app, btw, you just do it against the restful api instead of sql.","timestamp":"2021-06-06T15:36:04+00:00","score":1},{"role":"answerer","user_id":"anon_ab93b76eafe8f861","comment_id":"h0tqjzz","kind":"comment","text":"I just directly use postgrest as my backend","timestamp":"2021-06-06T19:19:02+00:00","score":1},{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"h0twaj8","kind":"comment","text":"What do you use as your restful client to talk to the backend?","timestamp":"2021-06-06T20:03:34+00:00","score":1},{"role":"answerer","user_id":"anon_ab93b76eafe8f861","comment_id":"h0u2uo1","kind":"comment","text":"Just whatever app I write? The point is that it cuts out a component you have to write by hand, your server. The REST client you have to write regardless.","timestamp":"2021-06-06T20:54:18+00:00","score":1},{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"h11rzsx","kind":"comment","text":"So you are hitting the postgrest api from the front-end client directly. That is, you are serving a js client up that talks directly to your (api-wrapped) datastore.\n\nI think that is a workable design if the ootb postgrest capabilities are sufficient to your needs (ie, you don't end up finagling so much that just using your own server makes more sense) and if you are in a position, security-wise, where all your business logic can be sent to the client.","timestamp":"2021-06-08T17:02:56+00:00","score":1},{"role":"answerer","user_id":"anon_ab93b76eafe8f861","comment_id":"h12akwj","kind":"comment","text":"Indeed. Postgrest allows you to use roles for security and functions/views/triggers for light business logic (no need to put it in your app). This way you can also support JWT for authentication. Obviously this doesn’t scale to infinity, but for a lot of apps I would argue this is plenty.\n\nSome relevant resources:\n\n- https://postgrest.org/en/stable/api.html#custom-queries\n- https://postgrest.org/en/stable/auth.html\n- https://github.com/PostgREST/postgrest-docs/issues/71","timestamp":"2021-06-08T19:12:54+00:00","score":2},{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"h17664e","kind":"comment","text":"Yeah, it sounds like it can -- and *is --* working for you! :D\n\n(It reminds me of when I was working in a Java shop circa 2005 and this guy walks in and goes, we're doing away with Java and everything is going to be js hitting oracle with triggers. Not sure how that panned out though!)\n\nIt's cool that you are stoked with the tech and evangelizing it, thanks again for making me aware of it.\n\nBest luck on your projects.","timestamp":"2021-06-09T20:36:54+00:00","score":1}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_5339df70a4823eae","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ab93b76eafe8f861","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h0p5ija","thanks_reply_id":"h0syd57","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_8970f9258c067bf9","answerer_user_id":"anon_274d7e9af3cf7940","subreddit":"programming","timestamp":"2021-06-14T15:18:31+00:00","post_id":"nzp5is","question":"How to show native message boxes in Neutralinojs apps","preferred_answer":"Is this an advertisement for neutralino? I'm going with yes based off your history. I think a better way to advertise neutralino would be to post a writeup on why it's better than electron and other popular desktop frameworks.","full_conversation":[{"role":"OP","user_id":"anon_8970f9258c067bf9","comment_id":"nzp5is","kind":"post","text":"How to show native message boxes in Neutralinojs apps","timestamp":"2021-06-14T15:18:31+00:00","score":0},{"role":"answerer","user_id":"anon_274d7e9af3cf7940","comment_id":"h1qos79","kind":"comment","text":"Is this an advertisement for neutralino? I'm going with yes based off your history. I think a better way to advertise neutralino would be to post a writeup on why it's better than electron and other popular desktop frameworks.","timestamp":"2021-06-14T15:40:11+00:00","score":3},{"role":"OP","user_id":"anon_8970f9258c067bf9","comment_id":"h1qvv4c","kind":"comment","text":"Hey, Thanks for the idea. Btw please note that this is not an ad. Neutralinojs is a free and open-source framework. This is the latest video of its tutorial series :)","timestamp":"2021-06-14T16:33:06+00:00","score":1},{"role":"answerer","user_id":"anon_274d7e9af3cf7940","comment_id":"h1r1xnp","kind":"comment","text":"Yeah that's great but posting a random video tutorial doesn't show anyone its benefits. Most people don't even know what it is.","timestamp":"2021-06-14T17:17:27+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8970f9258c067bf9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_274d7e9af3cf7940","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h1qos79","thanks_reply_id":"h1qvv4c","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_74d6d3b6223f7b6f","answerer_user_id":"anon_275b1f30a44e8e63","subreddit":"programming","timestamp":"2021-06-26T02:54:44+00:00","post_id":"o82dfq","question":"Any programmer on here who knows BeamNG Drive who could help me add 3D models to the game like this YouTuber?","preferred_answer":"here is a [howto](https://wiki.beamng.com/Introduction_to_Vehicle_Creation) from their wiki, also there is a subreddit /r/BeamNGMods \n\n\nyou could probably pay someone to do it if you're desperate","full_conversation":[{"role":"OP","user_id":"anon_74d6d3b6223f7b6f","comment_id":"o82dfq","kind":"post","text":"Any programmer on here who knows BeamNG Drive who could help me add 3D models to the game like this YouTuber?","timestamp":"2021-06-26T02:54:44+00:00","score":0},{"role":"answerer","user_id":"anon_275b1f30a44e8e63","comment_id":"h36mpbm","kind":"comment","text":"here is a [howto](https://wiki.beamng.com/Introduction_to_Vehicle_Creation) from their wiki, also there is a subreddit /r/BeamNGMods \n\n\nyou could probably pay someone to do it if you're desperate","timestamp":"2021-06-27T05:27:24+00:00","score":2},{"role":"OP","user_id":"anon_74d6d3b6223f7b6f","comment_id":"h37c1fz","kind":"comment","text":"Thanks for replying!\n\nI’ve seen this wiki, but I know little to nothing about programming and didn’t know if modeling cars would be the same as modeling and importing figures like this YouTuber. I’ve read that you can find free models on sketchfab, import them to blender, then import that to BeamNG. Does that sound true? \n\nIf you know how to do this, I’d definitely pay to be shown how to do this.","timestamp":"2021-06-27T11:51:33+00:00","score":1},{"role":"answerer","user_id":"anon_275b1f30a44e8e63","comment_id":"h37f30a","kind":"comment","text":"Sounds true yeah.\n\nSkimming through the howto page gives me the impression that its quite a process for each car.\nIf you can't follow the page as is i doubt you will be able to pay someone to learn you how to do it.\n\nI can do it but it would probably take a few hours to get everything right.\n\nTry making a post on fiverr, that might give some yield.","timestamp":"2021-06-27T12:31:20+00:00","score":1},{"role":"OP","user_id":"anon_74d6d3b6223f7b6f","comment_id":"h37hac3","kind":"comment","text":"My hangup was getting the model from Blender to the game, so I may try again and then see what I can find on Fiverr, thanks for the help!\n\nIf I do go to Fiverr I’ll let you know. Thanks!","timestamp":"2021-06-27T12:56:57+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_74d6d3b6223f7b6f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_275b1f30a44e8e63","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h36mpbm","thanks_reply_id":"h37c1fz","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_ddb8f5a3c286fae0","answerer_user_id":"anon_63a8cde88724124b","subreddit":"programming","timestamp":"2021-07-09T06:08:06+00:00","post_id":"ogpipn","question":"How Can Symlink Cause An Outage? A small harmless convenience can become a significantly harmful inconvenience.","preferred_answer":"I don't agree with the statememt that symlink caused the issue. Deployment tests should have easily caught this problem.","full_conversation":[{"role":"OP","user_id":"anon_ddb8f5a3c286fae0","comment_id":"ogpipn","kind":"post","text":"How Can Symlink Cause An Outage? A small harmless convenience can become a significantly harmful inconvenience.","timestamp":"2021-07-09T06:08:06+00:00","score":4},{"role":"answerer","user_id":"anon_63a8cde88724124b","comment_id":"h4krboa","kind":"comment","text":"I don't agree with the statememt that symlink caused the issue. Deployment tests should have easily caught this problem.","timestamp":"2021-07-09T10:22:13+00:00","score":2},{"role":"OP","user_id":"anon_ddb8f5a3c286fae0","comment_id":"h4krf6a","kind":"comment","text":"What do you mean by deployment tests and how would that have solved the issue? I'm interested in this feedback","timestamp":"2021-07-09T10:23:37+00:00","score":3},{"role":"answerer","user_id":"anon_63a8cde88724124b","comment_id":"h4krwkl","kind":"comment","text":"I imagine that deployment tests should use the very same deployment method for testing that would be used for deployment on production as well.","timestamp":"2021-07-09T10:30:29+00:00","score":6},{"role":"OP","user_id":"anon_ddb8f5a3c286fae0","comment_id":"h4kt8pf","kind":"comment","text":"Have you ever done that kind of testing and did your team considered worth it from a cost/benefit perspective?\n\nI imagine you would have to pay another stack for testing which doesn't make sense for an early startup without VC funding.","timestamp":"2021-07-09T10:49:25+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_ddb8f5a3c286fae0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_63a8cde88724124b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h4krboa","thanks_reply_id":"h4krf6a","post_score":4,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_66394e14f4969547","answerer_user_id":"anon_ec81b777e678ec4b","subreddit":"programming","timestamp":"2021-07-12T20:41:57+00:00","post_id":"oizydp","question":"When Software Development Goes Wrong, Leaders Hide Under the Covers and Hope","preferred_answer":"I liked it till the estimates part. But it's a really good article IMO. There's one thing I'd advice the author tho: it's not the best idea to use a current global pandemic as your example; while a very good one technically, a great many fraction of people is burned out of thinking about COVID, so if you could find a different example you would save them a lot of stress from it also permeating into the technical articles they read. I mean, really, it is a great example to drive the point home and I do feel OK about that, but I think some peers would have lost their shit and missed on a good take.","full_conversation":[{"role":"OP","user_id":"anon_66394e14f4969547","comment_id":"oizydp","kind":"post","text":"When Software Development Goes Wrong, Leaders Hide Under the Covers and Hope","timestamp":"2021-07-12T20:41:57+00:00","score":0},{"role":"answerer","user_id":"anon_ec81b777e678ec4b","comment_id":"h4zvzqw","kind":"comment","text":"I liked it till the estimates part. But it's a really good article IMO. There's one thing I'd advice the author tho: it's not the best idea to use a current global pandemic as your example; while a very good one technically, a great many fraction of people is burned out of thinking about COVID, so if you could find a different example you would save them a lot of stress from it also permeating into the technical articles they read. I mean, really, it is a great example to drive the point home and I do feel OK about that, but I think some peers would have lost their shit and missed on a good take.","timestamp":"2021-07-13T03:04:13+00:00","score":1},{"role":"OP","user_id":"anon_66394e14f4969547","comment_id":"h52j9f9","kind":"comment","text":"Thanks for your comment and I agree that I should be careful using covid but I want to encourage people to keep safe from covid. The Delta variant is highly transmissable and people need to keep safe.\n\nLong covid is serious problem.\n\nthanks for the comment","timestamp":"2021-07-13T19:17:29+00:00","score":2},{"role":"answerer","user_id":"anon_ec81b777e678ec4b","comment_id":"h52le0m","kind":"comment","text":"Of course it is. I didn't mean it in a way \"we should deny the problem and be relaxed\", I was thinking more about people who are already too anxious or had someone close perish from it and want to have a break from thinking about it. In an article of this kind it may be popping up unexpectedly. But I really appreciate both your article and your reminder, so thanks!","timestamp":"2021-07-13T19:32:41+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_66394e14f4969547","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ec81b777e678ec4b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h4zvzqw","thanks_reply_id":"h52j9f9","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_200b3904fb2d4b2d","answerer_user_id":"anon_284a33ba068e79e7","subreddit":"programming","timestamp":"2021-07-23T00:37:47+00:00","post_id":"opqz3r","question":"Looking for virtual coding camp for my middle schooler. Any feedback, suggestions on what I've found so far? Details in comments.","preferred_answer":"Something I've seen done by my advisors when I was in college, was someone sent an email to the head of the CS department and the email basically said \n\n\"I'm looking for a CS student who would be willing to teach my 15 y/o son to code in python. He is completely new to coding, and would like to meet 2 -3 times a week for an 1-2 hours each. Meet on campus or online via Skype (this was before Rona so most people still used Skype). Pay is 18$ an hour. Would you forward this to your students and have any interested students get in touch with me?\"\n\nI asked my advisor if anyone responded and she said she got about 20 students interested and the guy was doing 3 trials with 3 students.\n\nJust find your nearest college or city college, find their directory and email the head of the department or an advisor and send them something similar, they might be able to help you even more (cause there's alot of student tutoring on campus they might just ask the tutors they already have)","full_conversation":[{"role":"OP","user_id":"anon_200b3904fb2d4b2d","comment_id":"opqz3r","kind":"post","text":"Looking for virtual coding camp for my middle schooler. Any feedback, suggestions on what I've found so far? Details in comments.","timestamp":"2021-07-23T00:37:47+00:00","score":0},{"role":"answerer","user_id":"anon_284a33ba068e79e7","comment_id":"h672uam","kind":"comment","text":"Something I've seen done by my advisors when I was in college, was someone sent an email to the head of the CS department and the email basically said \n\n\"I'm looking for a CS student who would be willing to teach my 15 y/o son to code in python. He is completely new to coding, and would like to meet 2 -3 times a week for an 1-2 hours each. Meet on campus or online via Skype (this was before Rona so most people still used Skype). Pay is 18$ an hour. Would you forward this to your students and have any interested students get in touch with me?\"\n\nI asked my advisor if anyone responded and she said she got about 20 students interested and the guy was doing 3 trials with 3 students.\n\nJust find your nearest college or city college, find their directory and email the head of the department or an advisor and send them something similar, they might be able to help you even more (cause there's alot of student tutoring on campus they might just ask the tutors they already have)","timestamp":"2021-07-23T01:16:30+00:00","score":1},{"role":"OP","user_id":"anon_200b3904fb2d4b2d","comment_id":"h6732on","kind":"comment","text":"Thank you so much this is great!!\n\nJust one more total newbie question...what does CS stand for?","timestamp":"2021-07-23T01:18:30+00:00","score":1},{"role":"answerer","user_id":"anon_284a33ba068e79e7","comment_id":"h6734ik","kind":"comment","text":"Computer science :)","timestamp":"2021-07-23T01:18:57+00:00","score":1},{"role":"OP","user_id":"anon_200b3904fb2d4b2d","comment_id":"h673bnr","kind":"comment","text":"ooooh. Yes, that makes way more sense than anything I was trying to come up with.","timestamp":"2021-07-23T01:20:38+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_200b3904fb2d4b2d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_284a33ba068e79e7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h672uam","thanks_reply_id":"h6732on","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_3843fce0f99e75fa","answerer_user_id":"anon_1ead12320698d8fc","subreddit":"programming","timestamp":"2021-07-28T16:24:27+00:00","post_id":"otdcql","question":"How I Pick Languages for My Programming Toolbox","preferred_answer":"Coming from a web dev background, I've found my three main languages of choice are Node/JS, PHP, and Python.\n\nPHP's synchronous way of doing everything plus its lack of need to be ran through something like grunt or webpack, makes it my language of choice for one-off scripts or small simple applications. \n\nNode and JS are my bread and butter, so I use them when I'm doing any kind of real dev.\n\nPython's terse syntax, useful standard library, and overall simplicity makes it my choice for very math-y things or highly complex things.","full_conversation":[{"role":"OP","user_id":"anon_3843fce0f99e75fa","comment_id":"otdcql","kind":"post","text":"How I Pick Languages for My Programming Toolbox","timestamp":"2021-07-28T16:24:27+00:00","score":19},{"role":"answerer","user_id":"anon_1ead12320698d8fc","comment_id":"h6uljur","kind":"comment","text":"Coming from a web dev background, I've found my three main languages of choice are Node/JS, PHP, and Python.\n\nPHP's synchronous way of doing everything plus its lack of need to be ran through something like grunt or webpack, makes it my language of choice for one-off scripts or small simple applications. \n\nNode and JS are my bread and butter, so I use them when I'm doing any kind of real dev.\n\nPython's terse syntax, useful standard library, and overall simplicity makes it my choice for very math-y things or highly complex things.","timestamp":"2021-07-28T16:50:55+00:00","score":2},{"role":"OP","user_id":"anon_3843fce0f99e75fa","comment_id":"h6unaoq","kind":"comment","text":"Thanks for sharing it! This choice is as valid as any other. But I'm curious, have you considered replacing PHP with Python in your toolbox? I strive to reduce the number of languages in mine, because my mental capacity is simply limited. So, I'm trying to find the minimal set that would cover all my daily needs with the smallest intersection possible. And coming from the web dev domain as well, I just use Python now for the tasks I'd use PHP in the past.","timestamp":"2021-07-28T17:02:45+00:00","score":4},{"role":"answerer","user_id":"anon_1ead12320698d8fc","comment_id":"h6uqrhw","kind":"comment","text":"As it stands I have no need to replace PHP with Python. As I continue on as a programmer, my preferences and knowledge base might change, thus making one language become better than the other for a given thing. But for now: \"if it ain't broke, don't fix it.\"","timestamp":"2021-07-28T17:26:33+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3843fce0f99e75fa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1ead12320698d8fc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h6uljur","thanks_reply_id":"h6unaoq","post_score":19,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_26b206a32474d6f2","answerer_user_id":"anon_fe3bba48519e37ab","subreddit":"programming","timestamp":"2021-08-19T19:38:32+00:00","post_id":"p7lz5t","question":"What scientists must know about hardware to write fast code","preferred_answer":"A good writeup. Very good. Some notes.\n\n> Allocations and immutability\n\n> Your operating system (OS) keeps track of which process have access to which memory. If every process had access to all memory, then it would be trivially easy to make a program that scans your RAM for secret data such as bank passwords - or for one program to accidentally overwrite the memory of another program.\n\nThis section is misleading. What this paragraph describes is virtual-memory, which is handled by the CPU's TLB-cache.\n\nAllocation / deallocation is a different concept all together. Once the OS has given you big fat pieces of (virtual) memory, malloc/free are used as helper functions to help organize the RAM for the programmer.\n\nThat is it. Malloc/free do not affect the OS's virtual memory (aside from... when you run out of virtual memory, malloc will ask the OS kindly for more virtual memory. Classically through the sbrk function call back in the 1980s, but modern OSes have better calls these days)\n\n> It is time yet again to update our simplified computer schematic. A CPU operates only on data present in registers. These are small, fixed size slots (e.g. 8 bytes in size) inside the CPU itself. A register is meant to hold one single piece of data, like an integer or a floating point number. As hinted in the section on assembly code, each instruction usually refers to one or two registers which contain the data the operation works on:\n\nRegisters are largely an implementation detail. I personally prefer to see the register space as \"the fastest RAM\" of a CPU, rather than anything special or different from any other kind of RAM. Just as the compiler and cache automatically choose what goes into DDR4 or L3 cache or L1 cache... the compiler also automatically chooses what goes into registers.\n\nIt turns out that the architectural registers are fake anyway. Modern CPUs like Skylake have over 192 integer registers (called the \"register file\"). An \"xor eax, eax\" instruction is more akin to a __malloc__, where the CPU requests from the register file a new register. This is so that the CPU can continue to operate on \"old eax\" values while also working on \"new eax\" values.\n\nThis is called \"Out of Order\" CPUs, and its implemented with the Tomasulo algorithm in practice. Register \"writes\" (aka: load from memory, or other write instructions like xor eax, eax) are glorified mallocs+frees (free the old register from the register file + malloc a new one).\n\nIf you run out of registers in the register file, the CPU waits until the parallel execution units within the core are done with their registers.\n\n---------\n\nThat's all I got. Otherwise a pretty good document.","full_conversation":[{"role":"OP","user_id":"anon_26b206a32474d6f2","comment_id":"p7lz5t","kind":"post","text":"What scientists must know about hardware to write fast code","timestamp":"2021-08-19T19:38:32+00:00","score":76},{"role":"answerer","user_id":"anon_fe3bba48519e37ab","comment_id":"h9pcyov","kind":"comment","text":"A good writeup. Very good. Some notes.\n\n> Allocations and immutability\n\n> Your operating system (OS) keeps track of which process have access to which memory. If every process had access to all memory, then it would be trivially easy to make a program that scans your RAM for secret data such as bank passwords - or for one program to accidentally overwrite the memory of another program.\n\nThis section is misleading. What this paragraph describes is virtual-memory, which is handled by the CPU's TLB-cache.\n\nAllocation / deallocation is a different concept all together. Once the OS has given you big fat pieces of (virtual) memory, malloc/free are used as helper functions to help organize the RAM for the programmer.\n\nThat is it. Malloc/free do not affect the OS's virtual memory (aside from... when you run out of virtual memory, malloc will ask the OS kindly for more virtual memory. Classically through the sbrk function call back in the 1980s, but modern OSes have better calls these days)\n\n> It is time yet again to update our simplified computer schematic. A CPU operates only on data present in registers. These are small, fixed size slots (e.g. 8 bytes in size) inside the CPU itself. A register is meant to hold one single piece of data, like an integer or a floating point number. As hinted in the section on assembly code, each instruction usually refers to one or two registers which contain the data the operation works on:\n\nRegisters are largely an implementation detail. I personally prefer to see the register space as \"the fastest RAM\" of a CPU, rather than anything special or different from any other kind of RAM. Just as the compiler and cache automatically choose what goes into DDR4 or L3 cache or L1 cache... the compiler also automatically chooses what goes into registers.\n\nIt turns out that the architectural registers are fake anyway. Modern CPUs like Skylake have over 192 integer registers (called the \"register file\"). An \"xor eax, eax\" instruction is more akin to a __malloc__, where the CPU requests from the register file a new register. This is so that the CPU can continue to operate on \"old eax\" values while also working on \"new eax\" values.\n\nThis is called \"Out of Order\" CPUs, and its implemented with the Tomasulo algorithm in practice. Register \"writes\" (aka: load from memory, or other write instructions like xor eax, eax) are glorified mallocs+frees (free the old register from the register file + malloc a new one).\n\nIf you run out of registers in the register file, the CPU waits until the parallel execution units within the core are done with their registers.\n\n---------\n\nThat's all I got. Otherwise a pretty good document.","timestamp":"2021-08-20T20:03:06+00:00","score":5},{"role":"OP","user_id":"anon_26b206a32474d6f2","comment_id":"h9pdj85","kind":"comment","text":"I had no idea. I will make sure to amend that part of the post. Thanks for the heads-up!","timestamp":"2021-08-20T20:07:05+00:00","score":1},{"role":"answerer","user_id":"anon_fe3bba48519e37ab","comment_id":"h9pei7v","kind":"comment","text":"Virtual memory is a bit difficult to understand, because its mind-boggling that modern CPUs do so much with a simple memory-dereference.\n\nThat \"link = link->next\" is __incredibly__ complicated.\n\nIf you think of it, pointers are just glorified integers. So \"link\" is just an integer like 0x8008000. (I purposefully chose this number because 32-bit Linux puts \"entry\" here for all programs, and \"main\" is close to it). Its nonsense to think that all processes have 0x8008000!!\n\nIndeed, program#1 (say, Apache) may think its in 0x8008000. But program#2 (lets say, Microsoft Word) also thinks its entry is 0x8008000. What's going on is that the OS has a list, called the page table. (In actuality, the page table is like 4 or 5 different tables-of-tables. But lets just assume they're all \"the page table\")\n\nEach page table is unique per process. For example, Apache's 0x8008000 is physically stored in physical-RAM #5000.\n\nWhile Microsoft Word's 0x8008000 is physically stored in physical-RAM #20000.\n\n-----------\n\nSo when you do \"link->\" (just the dereference part to read that memory address), the CPU interrupts, consults the page-table the OS set up for it. It performs a page-table walk (literally scanning the table) until it finds \"virtual memory 0x8008000\". Then, it goes \"Oh, that's stored in 5000\", and goes to physical location 5000.\n\n------\n\nThe TLB cache, is a few of these common locations stored inside the CPU-core itself. Instead of \"walking\" the directory each time, most memory dereferences can just go \"0x8008000 is in the TLB L1 cache. It says 5000\", and the CPU just carries on without a hiccup.\n\n----------\n\nObviously, if the TLB-cache doesn't have the table-entry, the CPU has to perform the big-expensive tablewalk. If address 0x8008000 fails to be in the table, we have a so called \"Page Fault\" (not an error yet). This happens most commonly with mmap'd files. At this point, Linux takes over, says \"Oh yeah, this memory doesn't really exist. I need to go to the Disk and read something first\". Once the disk is read, Linux puts the page into the directory table and the code continues.\n\nBack 2-decades ago, computers also had \"Swap Memory\", which is virtual-RAM that has been swapped to the disk. This is less commonly used today however.\n\nNow, if the Page Fault happens AND Linux says \"wtf? I never planned for this memory address to be used\", you have a \"segmentation fault\", which normally leads to your program crashing.\n\n-----------\n\nIt should be noted that virtual-memory is largely based in 1980s. Meaning... most pages are 4kB in size. So describing a 4GB process's memory will require 1-million entries (each describing 4kB). Each entry is just a 64-bit pointer to physical RAM, so that 4GB virtual memory you got there requires 8MBs of RAM to describe (!!!!).\n\nLinux/Windows + modern x86 processors have support for HugeTables, but HugeTables are rarely used today. A HugeTable is either of size 2MB or 1GB (so your 4GB described in 1GB huge-tables is just 4-entries of 8-bytes, or just 32-bytes).\n\nThis means that the huge-tables better fit in TLB-cache and accelerate the speed of the virtual-memory system. But there's all sorts of restrictions: Linux wasn't really designed for such large tables, and 1GB chunks run out very quickly in practice. Neither Linux nor Windows have a very good mechanism for handling 2MB or 1GB tables IMO, but if you can configure your system to use them correctly, you can often get a pretty sizable speed boost to all memory dereferences (like 10% to 20% faster).","timestamp":"2021-08-20T20:13:55+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_26b206a32474d6f2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fe3bba48519e37ab","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"h9pcyov","thanks_reply_id":"h9pdj85","post_score":76,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_b954d82dab0da491","answerer_user_id":"anon_1da48571c016b22f","subreddit":"programming","timestamp":"2021-09-22T11:21:07+00:00","post_id":"pt5f47","question":"Final projects idea ?","preferred_answer":"Yep. I agree. But I don't care to program something the 1000th time. \n\nTherefore I suggested the cryptographic lib.\n\nIt will teach you something in mathematics.\n\nYou might see performance issues (especially if you use it for example in video chat), so, you might need to go into profiling.\n\nAnd, if it's well done, it might be used later on by you (for example in a chat client or for you steganographic tool) or others.","full_conversation":[{"role":"OP","user_id":"anon_b954d82dab0da491","comment_id":"pt5f47","kind":"post","text":"Final projects idea ?","timestamp":"2021-09-22T11:21:07+00:00","score":0},{"role":"answerer","user_id":"anon_1da48571c016b22f","comment_id":"hdudiw9","kind":"comment","text":"Yep. I agree. But I don't care to program something the 1000th time. \n\nTherefore I suggested the cryptographic lib.\n\nIt will teach you something in mathematics.\n\nYou might see performance issues (especially if you use it for example in video chat), so, you might need to go into profiling.\n\nAnd, if it's well done, it might be used later on by you (for example in a chat client or for you steganographic tool) or others.","timestamp":"2021-09-22T13:45:47+00:00","score":1},{"role":"OP","user_id":"anon_b954d82dab0da491","comment_id":"hdudu6b","kind":"comment","text":"Ok thanks and have you knowledge in node electron etc ??","timestamp":"2021-09-22T13:48:12+00:00","score":1},{"role":"answerer","user_id":"anon_1da48571c016b22f","comment_id":"hduednq","kind":"comment","text":"I know it and used it but surely I'm no expert in that field.","timestamp":"2021-09-22T13:52:20+00:00","score":1},{"role":"OP","user_id":"anon_b954d82dab0da491","comment_id":"hduglzr","kind":"comment","text":"Because I have some issue while packing and nobody helps me","timestamp":"2021-09-22T14:09:05+00:00","score":1},{"role":"answerer","user_id":"anon_1da48571c016b22f","comment_id":"hduh5kb","kind":"comment","text":"I'd suggest you describe your problem and ask for help in one of the node subreddits: r/node, r/nodejs\n\nI really wouldn't be a big help.","timestamp":"2021-09-22T14:13:08+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_b954d82dab0da491","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1da48571c016b22f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hdudiw9","thanks_reply_id":"hdudu6b","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_798aaf39aadb6e28","answerer_user_id":"anon_b477753e11ef235b","subreddit":"programming","timestamp":"2021-09-27T10:19:53+00:00","post_id":"pwe3og","question":"Should We Follow The Open-Closed Principle?","preferred_answer":"Wow, someone who actually researched what OCP means instead of treating it like a blank check to do whatever they were going to do anyways. \n\nBring on the SOLID fanboys to downvote it into obscurity. They can't allow anyone to know that their emperor isn't wearing any clothes.","full_conversation":[{"role":"OP","user_id":"anon_798aaf39aadb6e28","comment_id":"pwe3og","kind":"post","text":"Should We Follow The Open-Closed Principle?","timestamp":"2021-09-27T10:19:53+00:00","score":3},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"hekjafa","kind":"comment","text":"Wow, someone who actually researched what OCP means instead of treating it like a blank check to do whatever they were going to do anyways. \n\nBring on the SOLID fanboys to downvote it into obscurity. They can't allow anyone to know that their emperor isn't wearing any clothes.","timestamp":"2021-09-28T07:33:08+00:00","score":5},{"role":"OP","user_id":"anon_798aaf39aadb6e28","comment_id":"helx17c","kind":"comment","text":"Thanks for the support :)","timestamp":"2021-09-28T15:54:40+00:00","score":2},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"helykpg","kind":"comment","text":"It amazes me how obsessed people are with saying that they are following SOLID. \n\nThey would literally prefer to change the definition of SOLID than to admit they aren't following it, even if that definition renders the principles meaningless.","timestamp":"2021-09-28T16:05:12+00:00","score":1},{"role":"OP","user_id":"anon_798aaf39aadb6e28","comment_id":"hem2m9b","kind":"comment","text":"I guess it's difficult to change one's beliefs in general. Changing is frightening, especially if it gets you expelled from a group. That's why tech change quickly (at least on the surface), but people don't change much.\n\nI've no idea :D","timestamp":"2021-09-28T16:32:57+00:00","score":2},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"hem5pij","kind":"comment","text":"That's why I call SOLID a religion. It's about about fitting in and prepetuating the movement, not the actual technical merits of the idea.","timestamp":"2021-09-28T16:54:06+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_798aaf39aadb6e28","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hekjafa","thanks_reply_id":"helx17c","post_score":3,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_f5de4a2ac58987c6","answerer_user_id":"anon_a34169039ccd6e92","subreddit":"programming","timestamp":"2021-10-04T13:46:37+00:00","post_id":"q15rdl","question":"How to not waste maintainer’s time during Hacktoberfest and still get your t-shirt.","preferred_answer":"Good article! Documentation is lacking in most projects, but its easy to write so seeing it pop up more would be amazing","full_conversation":[{"role":"OP","user_id":"anon_f5de4a2ac58987c6","comment_id":"q15rdl","kind":"post","text":"How to not waste maintainer’s time during Hacktoberfest and still get your t-shirt.","timestamp":"2021-10-04T13:46:37+00:00","score":15},{"role":"answerer","user_id":"anon_a34169039ccd6e92","comment_id":"hfd2hjh","kind":"comment","text":"Good article! Documentation is lacking in most projects, but its easy to write so seeing it pop up more would be amazing","timestamp":"2021-10-04T15:50:47+00:00","score":5},{"role":"OP","user_id":"anon_f5de4a2ac58987c6","comment_id":"hfdqxrr","kind":"comment","text":"Thank you! Yeah documentation is very important for so many different reasons and it’s still a pretty light way to get involved in a project and still actually be contributing instead of fixing typos or whatever other tiny “fixes” people have been doing during Hacktoberfest for the last few years.","timestamp":"2021-10-04T18:25:35+00:00","score":3},{"role":"answerer","user_id":"anon_a34169039ccd6e92","comment_id":"hfdt7ho","kind":"comment","text":"Wait wait, finding and replacing variable names and filing under “improved code readability” isn’t helping anyone?","timestamp":"2021-10-04T18:39:37+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f5de4a2ac58987c6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a34169039ccd6e92","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hfd2hjh","thanks_reply_id":"hfdqxrr","post_score":15,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_4d9cfefffd494f0c","answerer_user_id":"anon_804c165aff18af16","subreddit":"programming","timestamp":"2021-10-06T04:42:20+00:00","post_id":"q2d94u","question":"How to clone a webpage? I want to know a way to clone the design of a webpage other than using HTTrack. I want to clone the design and manipulate on my own terms. Could anyone please guide me to clone the design of my.act.org webpage? I’d really really appreciate it.","preferred_answer":"Lookup the `man` for `wget`","full_conversation":[{"role":"OP","user_id":"anon_4d9cfefffd494f0c","comment_id":"q2d94u","kind":"post","text":"How to clone a webpage? I want to know a way to clone the design of a webpage other than using HTTrack. I want to clone the design and manipulate on my own terms. Could anyone please guide me to clone the design of my.act.org webpage? I’d really really appreciate it.","timestamp":"2021-10-06T04:42:20+00:00","score":0},{"role":"answerer","user_id":"anon_804c165aff18af16","comment_id":"hflb419","kind":"comment","text":"Lookup the `man` for `wget`","timestamp":"2021-10-06T11:26:11+00:00","score":4},{"role":"OP","user_id":"anon_4d9cfefffd494f0c","comment_id":"hfliwkx","kind":"comment","text":"I’m not sure what you mean prime. I’d appreciate your clarification.","timestamp":"2021-10-06T12:45:20+00:00","score":0},{"role":"answerer","user_id":"anon_804c165aff18af16","comment_id":"hfllcdu","kind":"comment","text":"`wget` is a tool for retrieving data from the web. There are command line switches that will get you what you want, but it's been too long since I used it, and don't remember the exact switches. If you read the `man` page, you will figure out what switches you need. I would do it for you, but if teach someone to learn, they will figure it out.","timestamp":"2021-10-06T13:06:50+00:00","score":2},{"role":"OP","user_id":"anon_4d9cfefffd494f0c","comment_id":"hflp3o5","kind":"comment","text":"I’d really appreciate sir.♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️","timestamp":"2021-10-06T13:38:02+00:00","score":-2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_4d9cfefffd494f0c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_804c165aff18af16","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hflb419","thanks_reply_id":"hfliwkx","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_581e42d2b041316b","answerer_user_id":"anon_5187b867c8785970","subreddit":"programming","timestamp":"2021-10-12T13:52:33+00:00","post_id":"q6mnz1","question":"What is the Smallest Linux ELF Executable? (2021 Edition)","preferred_answer":"push 1\n pop rax\n\nis only 3 bytes, `6a 01 58`, a byte smaller than\n\n xor eax, eax\n inc eax\n\n(4 bytes, `31 c0 ff c0`)\n\nSimilarly, \n\n push message_length\n pop rdx\n\nis smaller than\n\n xor edx, edx\n mov dl, message_length\n\nOf course it doesn't matter, as the code is already stuck inside the headers, and making it shorter won't change the final file size.","full_conversation":[{"role":"OP","user_id":"anon_581e42d2b041316b","comment_id":"q6mnz1","kind":"post","text":"What is the Smallest Linux ELF Executable? (2021 Edition)","timestamp":"2021-10-12T13:52:33+00:00","score":138},{"role":"answerer","user_id":"anon_5187b867c8785970","comment_id":"hgdpee0","kind":"comment","text":"push 1\n pop rax\n\nis only 3 bytes, `6a 01 58`, a byte smaller than\n\n xor eax, eax\n inc eax\n\n(4 bytes, `31 c0 ff c0`)\n\nSimilarly, \n\n push message_length\n pop rdx\n\nis smaller than\n\n xor edx, edx\n mov dl, message_length\n\nOf course it doesn't matter, as the code is already stuck inside the headers, and making it shorter won't change the final file size.","timestamp":"2021-10-12T17:50:37+00:00","score":59},{"role":"OP","user_id":"anon_581e42d2b041316b","comment_id":"hgdpwu2","kind":"comment","text":"Dang, thanks for pointing it out. Even though it won't change the final 114 bytes, it goes against the principle of the thing to waste bytes on equivalent code! I'll update the article when I get a chance.","timestamp":"2021-10-12T17:54:08+00:00","score":41},{"role":"answerer","user_id":"anon_5187b867c8785970","comment_id":"hgehb9g","kind":"comment","text":"Also, since there's still some free space, what about splitting the message into two parts (so the chunks can fit into the header) and doing two write syscalls? With equal halves, it's just `add esi,X / lea esi,[esi+X]` and `syscall` more.","timestamp":"2021-10-12T21:00:10+00:00","score":7},{"role":"OP","user_id":"anon_581e42d2b041316b","comment_id":"hgfc0fg","kind":"comment","text":"Hm, that is a pretty good idea, and I'll investigate it a little. Unfortunately, there are a couple things that make me not confident that it will let me get rid of the 6 extra bytes in the full \"Hello, world\":\n\n - esi (rsi) is not guaranteed to be preserved across syscall invocations\n - rdx, with the string length, is also not guaranteed to be preserved\n - rax, with the syscall number, will not be preserved\n - solving these problems will require a `push` & `pop` instruction for each register: six one-byte instructions\n - The `syscall` instruction will add another 2 bytes\n - The string would need to be broken into two 7-byte halves so that popping rdx would restore the correct length\n - The `add esi, 7` instruction would still take 3 bytes.\n\nSo, these code changes would require 11 additional bytes, and even afterwards the string (halves) would need to be packed into two seven-byte sections of header, forcing code to be broken into smaller sections, using more `jmp` instructions.\n\nStill, it's a good point. I'll look into it a bit more, and update the page if I can find a way for it to work.","timestamp":"2021-10-13T00:48:18+00:00","score":9}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_581e42d2b041316b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5187b867c8785970","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hgdpee0","thanks_reply_id":"hgdpwu2","post_score":138,"answer_score":59,"preferred_answer_is_top_level":true}} {"user_id":"anon_44607db4f90f5b95","answerer_user_id":"anon_6dda2fe806c4d63d","subreddit":"programming","timestamp":"2021-10-16T19:40:51+00:00","post_id":"q9j0ux","question":"How to criticize code","preferred_answer":"Definately agree junior developers should do code reviews.. however, remembering my time as a.junior, I was more on the receiving end of code nitpickery than I was at giving it out. Just saying they probably wont understand the gist of your post.","full_conversation":[{"role":"OP","user_id":"anon_44607db4f90f5b95","comment_id":"q9j0ux","kind":"post","text":"How to criticize code","timestamp":"2021-10-16T19:40:51+00:00","score":142},{"role":"answerer","user_id":"anon_6dda2fe806c4d63d","comment_id":"hgxwel3","kind":"comment","text":"Definately agree junior developers should do code reviews.. however, remembering my time as a.junior, I was more on the receiving end of code nitpickery than I was at giving it out. Just saying they probably wont understand the gist of your post.","timestamp":"2021-10-17T03:15:36+00:00","score":7},{"role":"OP","user_id":"anon_44607db4f90f5b95","comment_id":"hgxxiaa","kind":"comment","text":"Appreciate the feedback. Maybe it'll wedge into the back of someone's brain and in a few years when they are more comfortable, they'll remember about how to gently and constructively critique code.\n\nMaybe?\n\nA guy can hope.","timestamp":"2021-10-17T03:25:19+00:00","score":2},{"role":"answerer","user_id":"anon_6dda2fe806c4d63d","comment_id":"hgxyfwj","kind":"comment","text":"Now that I think about it, I guess it is kinda true that junior developers can also be arrogant and think of their code as the best or only way of doing things. Its more about learning humility -- which is lacking at all levels of experience.","timestamp":"2021-10-17T03:33:34+00:00","score":2},{"role":"OP","user_id":"anon_44607db4f90f5b95","comment_id":"hgxzyy3","kind":"comment","text":"OMG, humility is critical. I wrote about the arrogance of software devs in 2004: [https://www.mooreds.com/wordpress/archives/134](https://www.mooreds.com/wordpress/archives/134) and we are still pretty arrogant.","timestamp":"2021-10-17T03:47:15+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_44607db4f90f5b95","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6dda2fe806c4d63d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hgxwel3","thanks_reply_id":"hgxxiaa","post_score":142,"answer_score":7,"preferred_answer_is_top_level":false}} {"user_id":"anon_53402e255a88b519","answerer_user_id":"anon_57d04c67d8dee587","subreddit":"programming","timestamp":"2021-10-20T16:20:24+00:00","post_id":"qc4mac","question":"Have you heard about the Seed7 programming language?","preferred_answer":"Nobody said that it's not a programming language. I said that this isn't a true compiler, but a transpiler - you're targeting other programming languages in your backend.\n\nYou have many of the functions of a compiler, but in your benchmarks you don't give a fair comparison.\n\nYour transpiler:\n\n* Provides different algorithms for things such as random number generation.\n* Effectively does LTO at the top level before emitting the transpiled results, which is why you can inline things like RNG trivially.\n\nYour benchmarks:\n\n* Do not have the proper optimization flags enabled.\n* Aren't all using the same algorithms, meaning you're testing algorithms rather than languages.\n* Don't use LTO (though to work well, your libc++ would need to be built for LTO support as well). If libc++ were built with LTO and you used `-flto`, you would see even C++'s random number generators inlined.\n* Have no results validation, but that makes sense because you don't use the same algorithms so the results aren't deterministic. And your seed is based on time, so, again, not deterministic.\n* `2.0 * rand() / RAND_MAX` is going to give some interestingly-narrow distributions on some systems, like Windows.\n* Don't really take advantage of the proper language features - the C++ benchmark is basically poor C made to compile in C++, but again poorly.\n\nAs proof, I actually improved the C++ dramatically, while keeping the broken distribution:\n\n #include \n #include \n #include \n \n using namespace std;\n using randgen_t = minstd_rand;\n using int32 = int_fast32_t;\n \n static constexpr const int32 N = 10'000'000;\n static constexpr const typename minstd_rand::result_type default_seed = 0xdeadbeef;\n \n int main (int argc, char *argv[]) {\n \trandgen_t rand_gen{default_seed};\n \n \tint32 n = 0;\n \tfor (int32 i = 0; i < N; ++i) {\n \t\tdouble x = (2.0 * rand_gen()) / randgen_t::max();\n \t\tdouble y = (1.0 * rand_gen()) / randgen_t::max();\n \t\tif (y < sin(x*x)) {\n \t\t\tn++;\n \t\t}\n \t}\n \t\n \tprintf(\"%f\\n\", (2.0 * n) / N);\n }\n\nOn my machine, your original version under g++ and under clang:\n\ng++: 0.625s\n\nclang: 0.331s\n\nMy version:\n\ng++: 0.518s\n\nclang: 0.220s\n\nSo... yeah. You're roughly matching C++ without any user optimizations like using your own random number generator.","full_conversation":[{"role":"OP","user_id":"anon_53402e255a88b519","comment_id":"qc4mac","kind":"post","text":"Have you heard about the Seed7 programming language?","timestamp":"2021-10-20T16:20:24+00:00","score":15},{"role":"answerer","user_id":"anon_57d04c67d8dee587","comment_id":"hhk8k77","kind":"comment","text":"Nobody said that it's not a programming language. I said that this isn't a true compiler, but a transpiler - you're targeting other programming languages in your backend.\n\nYou have many of the functions of a compiler, but in your benchmarks you don't give a fair comparison.\n\nYour transpiler:\n\n* Provides different algorithms for things such as random number generation.\n* Effectively does LTO at the top level before emitting the transpiled results, which is why you can inline things like RNG trivially.\n\nYour benchmarks:\n\n* Do not have the proper optimization flags enabled.\n* Aren't all using the same algorithms, meaning you're testing algorithms rather than languages.\n* Don't use LTO (though to work well, your libc++ would need to be built for LTO support as well). If libc++ were built with LTO and you used `-flto`, you would see even C++'s random number generators inlined.\n* Have no results validation, but that makes sense because you don't use the same algorithms so the results aren't deterministic. And your seed is based on time, so, again, not deterministic.\n* `2.0 * rand() / RAND_MAX` is going to give some interestingly-narrow distributions on some systems, like Windows.\n* Don't really take advantage of the proper language features - the C++ benchmark is basically poor C made to compile in C++, but again poorly.\n\nAs proof, I actually improved the C++ dramatically, while keeping the broken distribution:\n\n #include \n #include \n #include \n \n using namespace std;\n using randgen_t = minstd_rand;\n using int32 = int_fast32_t;\n \n static constexpr const int32 N = 10'000'000;\n static constexpr const typename minstd_rand::result_type default_seed = 0xdeadbeef;\n \n int main (int argc, char *argv[]) {\n \trandgen_t rand_gen{default_seed};\n \n \tint32 n = 0;\n \tfor (int32 i = 0; i < N; ++i) {\n \t\tdouble x = (2.0 * rand_gen()) / randgen_t::max();\n \t\tdouble y = (1.0 * rand_gen()) / randgen_t::max();\n \t\tif (y < sin(x*x)) {\n \t\t\tn++;\n \t\t}\n \t}\n \t\n \tprintf(\"%f\\n\", (2.0 * n) / N);\n }\n\nOn my machine, your original version under g++ and under clang:\n\ng++: 0.625s\n\nclang: 0.331s\n\nMy version:\n\ng++: 0.518s\n\nclang: 0.220s\n\nSo... yeah. You're roughly matching C++ without any user optimizations like using your own random number generator.","timestamp":"2021-10-22T00:45:56+00:00","score":0},{"role":"OP","user_id":"anon_53402e255a88b519","comment_id":"hhlcx0u","kind":"comment","text":"Thank you for providing an improved C++ example. I tested it and it runs much faster. It is almost ready to be added to the benchmarks page. There is just one issue:\n\nCan it be that the random number generator is always initialized with `0xdeadbeef`? Every run of the program seems to return `0.895267`. All the other examples return different results for every run.\n\nHow would the code look like, if the random number generator is initialized with something from the time or from some random source. What would you suggest?\n\nWith this change I will add it to the benchmarks page.","timestamp":"2021-10-22T07:17:37+00:00","score":2},{"role":"answerer","user_id":"anon_57d04c67d8dee587","comment_id":"hhld2hj","kind":"comment","text":"> Can it be that the random number generator is always initialized with 0xdeadbeef\n\nI mean, yes. Benchmarks should not be initialized by a random time value. They should be deterministic.\n\nIf you really wanted to seed it with the time, you'd include `` and seed it from `std::chrono::system_clock::now().time_since_epoch().count()`.","timestamp":"2021-10-22T07:19:39+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_53402e255a88b519","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_57d04c67d8dee587","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hhk8k77","thanks_reply_id":"hhlcx0u","post_score":15,"answer_score":0,"preferred_answer_is_top_level":false}} {"user_id":"anon_83a96d75b446fb35","answerer_user_id":"anon_f99b5dcb4e191838","subreddit":"programming","timestamp":"2021-10-23T11:13:41+00:00","post_id":"qe2xbs","question":"Does anyone know how to make a WhatsApp sender on your own either it's with coding or WordPress because i have tried so many apps and it's just send text msg ,and i want to add some pictures to send to my clients If you know any good apps or something i can use, i would appreciate it","preferred_answer":"Idk presume so","full_conversation":[{"role":"OP","user_id":"anon_83a96d75b446fb35","comment_id":"qe2xbs","kind":"post","text":"Does anyone know how to make a WhatsApp sender on your own either it's with coding or WordPress because i have tried so many apps and it's just send text msg ,and i want to add some pictures to send to my clients If you know any good apps or something i can use, i would appreciate it","timestamp":"2021-10-23T11:13:41+00:00","score":0},{"role":"answerer","user_id":"anon_f99b5dcb4e191838","comment_id":"hhqfvh8","kind":"comment","text":"Idk presume so","timestamp":"2021-10-23T12:06:02+00:00","score":2},{"role":"OP","user_id":"anon_83a96d75b446fb35","comment_id":"hhqhoot","kind":"comment","text":"I will try it now, thanks for the advice 💗","timestamp":"2021-10-23T12:26:31+00:00","score":2},{"role":"answerer","user_id":"anon_f99b5dcb4e191838","comment_id":"hhqhxg8","kind":"comment","text":"No problem. Good luck 🤞","timestamp":"2021-10-23T12:29:11+00:00","score":2},{"role":"OP","user_id":"anon_83a96d75b446fb35","comment_id":"hhrh1l8","kind":"comment","text":"❤️❤️","timestamp":"2021-10-23T17:44:07+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_83a96d75b446fb35","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f99b5dcb4e191838","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hhqfvh8","thanks_reply_id":"hhqhoot","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_03d9b791f2e0cabb","answerer_user_id":"anon_f9d901dcdf606e53","subreddit":"programming","timestamp":"2021-10-24T16:45:49+00:00","post_id":"qevxb8","question":"Anybody knows the \"dinosaur race\" problem/interview question? Heard about it but cannot find it...","preferred_answer":"[https://levelup.gitconnected.com/the-dinosaur-question-making-technical-interviews-more-engaging-and-informative-d961e0579e7e](https://levelup.gitconnected.com/the-dinosaur-question-making-technical-interviews-more-engaging-and-informative-d961e0579e7e) \n\n\nonly dinosaur related question I found but it seems to be more about classes than about race conditions","full_conversation":[{"role":"OP","user_id":"anon_03d9b791f2e0cabb","comment_id":"qevxb8","kind":"post","text":"Anybody knows the \"dinosaur race\" problem/interview question? Heard about it but cannot find it...","timestamp":"2021-10-24T16:45:49+00:00","score":0},{"role":"answerer","user_id":"anon_f9d901dcdf606e53","comment_id":"hhw18rd","kind":"comment","text":"[https://levelup.gitconnected.com/the-dinosaur-question-making-technical-interviews-more-engaging-and-informative-d961e0579e7e](https://levelup.gitconnected.com/the-dinosaur-question-making-technical-interviews-more-engaging-and-informative-d961e0579e7e) \n\n\nonly dinosaur related question I found but it seems to be more about classes than about race conditions","timestamp":"2021-10-24T18:14:11+00:00","score":3},{"role":"OP","user_id":"anon_03d9b791f2e0cabb","comment_id":"hhyo7kz","kind":"comment","text":"Thx, mate! Have to interview someone next week and wanted to steer away from the \"standard\" interview a little :)","timestamp":"2021-10-25T08:09:51+00:00","score":2},{"role":"answerer","user_id":"anon_f9d901dcdf606e53","comment_id":"hhzhif1","kind":"comment","text":"One of my favorites is the fuse problem, it's a relatively small one\n\n\"You have a lighter and two fuses that take exactly one hour to burn, but they don’t burn at a steady rate. For example, one fuse could take 59 minutes to burn the first inch and then burn the rest of the fuse in the last minute.\n\nHow would you use these two fuses to measure 45 minutes?\"\n\nSource: https://riddlesbrainteasers.com/two-fuses/","timestamp":"2021-10-25T13:53:44+00:00","score":1},{"role":"OP","user_id":"anon_03d9b791f2e0cabb","comment_id":"hhzn0cs","kind":"comment","text":"This reminds me of my fuel gauge, haha!","timestamp":"2021-10-25T14:36:10+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_03d9b791f2e0cabb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f9d901dcdf606e53","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hhw18rd","thanks_reply_id":"hhyo7kz","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_7cda3bbc35fdcbb7","answerer_user_id":"anon_d79c008eb78d74ce","subreddit":"programming","timestamp":"2021-11-01T23:48:51+00:00","post_id":"qkr7nm","question":"What sources are the best ways to learn to program for a beginner high school student looking to major in Comp sci? I have some experience with Java and Python but I am not confident with these languages. Can you recommend to me the best sources/ways to begin studying programming?","preferred_answer":"Any recommendation has to depend on how you like to learn. E.g., someone that learns by doing might find projects and tutorials to do, vs. someone that wants more structure might enjoy reading a book about a language from front to back.\n\nPersonally I would just find ideas / projects around coding that seem exciting to you, and try to have fun. Being in high school you still have a ton of time to learn, and you don't need to rush to push yourself into some formal preparation. If you don't yet, I would make an account on GitHub, and explore making a personal site or portfolio, and finding some open source projects with \"good first issues.\"","full_conversation":[{"role":"OP","user_id":"anon_7cda3bbc35fdcbb7","comment_id":"qkr7nm","kind":"post","text":"What sources are the best ways to learn to program for a beginner high school student looking to major in Comp sci? I have some experience with Java and Python but I am not confident with these languages. Can you recommend to me the best sources/ways to begin studying programming?","timestamp":"2021-11-01T23:48:51+00:00","score":0},{"role":"answerer","user_id":"anon_d79c008eb78d74ce","comment_id":"hj0crvk","kind":"comment","text":"Any recommendation has to depend on how you like to learn. E.g., someone that learns by doing might find projects and tutorials to do, vs. someone that wants more structure might enjoy reading a book about a language from front to back.\n\nPersonally I would just find ideas / projects around coding that seem exciting to you, and try to have fun. Being in high school you still have a ton of time to learn, and you don't need to rush to push yourself into some formal preparation. If you don't yet, I would make an account on GitHub, and explore making a personal site or portfolio, and finding some open source projects with \"good first issues.\"","timestamp":"2021-11-02T13:36:03+00:00","score":2},{"role":"OP","user_id":"anon_7cda3bbc35fdcbb7","comment_id":"hj1nwae","kind":"comment","text":"thanks will do, i like learning online do u have any courses that you know are good that I can enroll in?","timestamp":"2021-11-02T18:57:19+00:00","score":1},{"role":"answerer","user_id":"anon_d79c008eb78d74ce","comment_id":"hj2y5ql","kind":"comment","text":"You know, I've never taken a fully online course so I'm not sure I could recommend any! My favorite (passive) learning venues were always Khan Academy videos, and usually just to supplement actual course work in college. But if you want some online content, I'll make another recommendation - [https://exercism.org/](https://exercism.org/) lets you choose a language track and then do problems at increasing difficulty at your own pace, and you can get a mentor for free and get exposure to other concepts in CS / algorithms through that method.","timestamp":"2021-11-03T00:01:00+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7cda3bbc35fdcbb7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d79c008eb78d74ce","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hj0crvk","thanks_reply_id":"hj1nwae","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_976dcbc88f10fab9","answerer_user_id":"anon_2daad446388223a9","subreddit":"programming","timestamp":"2021-11-06T09:42:05+00:00","post_id":"qnwz5s","question":"Blog Post - Why does a code review have to be blocking?","preferred_answer":"> They were introduced and popularised through open source community,\n\nNot quite. Code reviews _by means of pull requests_ are a Github invention, I think. But code reviews as a part of process are much older, they were originally meeting where the author of the code and a few peers would go through the code line by line to criticize it. It's from the '70s, would be my guess, and never quite went away.","full_conversation":[{"role":"OP","user_id":"anon_976dcbc88f10fab9","comment_id":"qnwz5s","kind":"post","text":"Blog Post - Why does a code review have to be blocking?","timestamp":"2021-11-06T09:42:05+00:00","score":0},{"role":"answerer","user_id":"anon_2daad446388223a9","comment_id":"hjj67k2","kind":"comment","text":"> They were introduced and popularised through open source community,\n\nNot quite. Code reviews _by means of pull requests_ are a Github invention, I think. But code reviews as a part of process are much older, they were originally meeting where the author of the code and a few peers would go through the code line by line to criticize it. It's from the '70s, would be my guess, and never quite went away.","timestamp":"2021-11-06T09:50:42+00:00","score":12},{"role":"OP","user_id":"anon_976dcbc88f10fab9","comment_id":"hjj6rqj","kind":"comment","text":"Thanks for the review.. phrased it differently now\n“They, along with Pull Requests were further popularised through open source community…”","timestamp":"2021-11-06T09:58:06+00:00","score":1},{"role":"answerer","user_id":"anon_2daad446388223a9","comment_id":"hjj727x","kind":"comment","text":"Sorry for only reacting to the first line though, it's an annoying habit of mine.","timestamp":"2021-11-06T10:01:54+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_976dcbc88f10fab9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2daad446388223a9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hjj67k2","thanks_reply_id":"hjj6rqj","post_score":0,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_be11b298e8d84e53","answerer_user_id":"anon_834837d87699cc1d","subreddit":"programming","timestamp":"2021-11-09T03:29:03+00:00","post_id":"qpuq18","question":"Google/DDG haven't produced many recent results on \"reasons to use one RDBMS (MySQL/PostgreSQL/MariaDB) over another\". For whatever reason, 2017 seemed to be a hot year on this topic. What's the latest in 2021? Seems like they've all grown up and are usable for basically any startup project?","preferred_answer":"I think the state of things hasn't really changed much, in terms of comparative rankings. \nEverything has gotten faster, and had new features added. \nMariadb is still better than mysql. \nPostgres still implements more modern SQL features than mariadb. \nMssql and oracle are still popular with enterprises. \n\nMy two cents is to use postgres, because it's still the nicest, and least prone to inducing rage. \nAnd it can technically scale quite far, if you get to that point.","full_conversation":[{"role":"OP","user_id":"anon_be11b298e8d84e53","comment_id":"qpuq18","kind":"post","text":"Google/DDG haven't produced many recent results on \"reasons to use one RDBMS (MySQL/PostgreSQL/MariaDB) over another\". For whatever reason, 2017 seemed to be a hot year on this topic. What's the latest in 2021? Seems like they've all grown up and are usable for basically any startup project?","timestamp":"2021-11-09T03:29:03+00:00","score":8},{"role":"answerer","user_id":"anon_834837d87699cc1d","comment_id":"hjw8mx9","kind":"comment","text":"I think the state of things hasn't really changed much, in terms of comparative rankings. \nEverything has gotten faster, and had new features added. \nMariadb is still better than mysql. \nPostgres still implements more modern SQL features than mariadb. \nMssql and oracle are still popular with enterprises. \n\nMy two cents is to use postgres, because it's still the nicest, and least prone to inducing rage. \nAnd it can technically scale quite far, if you get to that point.","timestamp":"2021-11-09T03:58:55+00:00","score":11},{"role":"OP","user_id":"anon_be11b298e8d84e53","comment_id":"hjy1mhl","kind":"comment","text":"Thanks, that's basically what I took away from the research I did. The only nuance with Postgres is the whole database/schema thing. It's very similar to Oracle as far as I can tell, which takes some getting used to.","timestamp":"2021-11-09T15:32:07+00:00","score":1},{"role":"answerer","user_id":"anon_834837d87699cc1d","comment_id":"hjy4u9q","kind":"comment","text":"Honestly, it's something you *can* do interesting things with, but it's not something that you actually *have* to use. \n\nI've used postgres quite a bit, and for any use case that I would consider \"an app with a database\", just putting everything in the public schema and never referencing schemas again has been 100% functional.","timestamp":"2021-11-09T15:54:13+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_be11b298e8d84e53","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_834837d87699cc1d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hjw8mx9","thanks_reply_id":"hjy1mhl","post_score":8,"answer_score":11,"preferred_answer_is_top_level":false}} {"user_id":"anon_2884f28b2e503503","answerer_user_id":"anon_9b47017f00f77e02","subreddit":"programming","timestamp":"2021-11-12T11:17:57+00:00","post_id":"qs91i9","question":"How to permanently remove a file from Git history","preferred_answer":">1. If the file involved some secrets, revoke them immediately\n\nYES!!! Quoted for truth! It's **not enough** to clean your Git history. If you pushed it to GitHub or anywhere, you must assume it was immediately compromised and take steps to rectify that **before** fixing your git history. Well done to the author for not omitting this crucial step.","full_conversation":[{"role":"OP","user_id":"anon_2884f28b2e503503","comment_id":"qs91i9","kind":"post","text":"How to permanently remove a file from Git history","timestamp":"2021-11-12T11:17:57+00:00","score":385},{"role":"answerer","user_id":"anon_9b47017f00f77e02","comment_id":"hkbm9fz","kind":"comment","text":">1. If the file involved some secrets, revoke them immediately\n\nYES!!! Quoted for truth! It's **not enough** to clean your Git history. If you pushed it to GitHub or anywhere, you must assume it was immediately compromised and take steps to rectify that **before** fixing your git history. Well done to the author for not omitting this crucial step.","timestamp":"2021-11-12T11:52:25+00:00","score":328},{"role":"OP","user_id":"anon_2884f28b2e503503","comment_id":"hkboffu","kind":"comment","text":"Thanks. If it was posted even for a few seconds on the internet, it could have been cached somewhere, so it definitely should be the first step to avoid a security nightmare.","timestamp":"2021-11-12T12:17:00+00:00","score":79},{"role":"answerer","user_id":"anon_9b47017f00f77e02","comment_id":"hkbpa6w","kind":"comment","text":"Absolutely, and there are certainly bots listening to whatever public feeds there are available from GitHub, Bitbucket, etc. (basically anywhere somebody might accidentally share their secrets), specifically to sniff those secrets out and exploit them.","timestamp":"2021-11-12T12:25:56+00:00","score":41}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2884f28b2e503503","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9b47017f00f77e02","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hkbm9fz","thanks_reply_id":"hkboffu","post_score":385,"answer_score":328,"preferred_answer_is_top_level":true}} {"user_id":"anon_afdb8b0f9d39e9e2","answerer_user_id":"anon_8c77d6f7ddcd9e91","subreddit":"programming","timestamp":"2021-12-21T16:03:58+00:00","post_id":"rlhrin","question":"Why C# goes well with TypeScript","preferred_answer":"It really is nice. However, the font size/spacing is *way* too big on mobile - resulting in having to scroll horizontally way too much.\n\nI really like the related styles of the codeblock from [this blog](https://leerob.io/blog/mysql-planetscale#migrating-existing-data).\n\nJust a suggestion, it's great anyhow!","full_conversation":[{"role":"OP","user_id":"anon_afdb8b0f9d39e9e2","comment_id":"rlhrin","kind":"post","text":"Why C# goes well with TypeScript","timestamp":"2021-12-21T16:03:58+00:00","score":202},{"role":"answerer","user_id":"anon_8c77d6f7ddcd9e91","comment_id":"hpiuc83","kind":"comment","text":"It really is nice. However, the font size/spacing is *way* too big on mobile - resulting in having to scroll horizontally way too much.\n\nI really like the related styles of the codeblock from [this blog](https://leerob.io/blog/mysql-planetscale#migrating-existing-data).\n\nJust a suggestion, it's great anyhow!","timestamp":"2021-12-22T05:25:27+00:00","score":3},{"role":"OP","user_id":"anon_afdb8b0f9d39e9e2","comment_id":"hpiws79","kind":"comment","text":"Thanks for your feedback! You're right. I just reduced the font size of the code blocks and tables on mobile to reduce the amount of horizontal scrolling needed.","timestamp":"2021-12-22T05:49:55+00:00","score":5},{"role":"answerer","user_id":"anon_8c77d6f7ddcd9e91","comment_id":"hpix5w1","kind":"comment","text":"Fantastic.","timestamp":"2021-12-22T05:53:53+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_afdb8b0f9d39e9e2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8c77d6f7ddcd9e91","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hpiuc83","thanks_reply_id":"hpiws79","post_score":202,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_a7a69e45de3950d9","answerer_user_id":"anon_e30f6357182d7c7a","subreddit":"programming","timestamp":"2021-12-23T14:49:52+00:00","post_id":"rmx8tj","question":"What problems do you face when creating projects from boilerplate or in general? I have created a CLI tool that creates projects of any language or framework easily and quickly from boilerplate, adds other utilities such as initializing with git, adds a license, etc.","preferred_answer":"Just a quick note after randomly looking at utils/git/gitDownload.go, you should support the XDG base directory specification (https://wiki.archlinux.org/title/XDG_Base_Directory).\n\nI hate it when different tools create folders in my home directory, when I‘ve specified that application files should go under ~/.local/share/ (or .config).\n\n( I specifically mean creating a ~/.bare folder in the home directory, you should respect the env variable XDG_DATA_HOME / XDG_CONFIG_HOME / etc..).\n\nSorry for the formatting, I‘m on mobile.","full_conversation":[{"role":"OP","user_id":"anon_a7a69e45de3950d9","comment_id":"rmx8tj","kind":"post","text":"What problems do you face when creating projects from boilerplate or in general? I have created a CLI tool that creates projects of any language or framework easily and quickly from boilerplate, adds other utilities such as initializing with git, adds a license, etc.","timestamp":"2021-12-23T14:49:52+00:00","score":1},{"role":"answerer","user_id":"anon_e30f6357182d7c7a","comment_id":"hppasg2","kind":"comment","text":"Just a quick note after randomly looking at utils/git/gitDownload.go, you should support the XDG base directory specification (https://wiki.archlinux.org/title/XDG_Base_Directory).\n\nI hate it when different tools create folders in my home directory, when I‘ve specified that application files should go under ~/.local/share/ (or .config).\n\n( I specifically mean creating a ~/.bare folder in the home directory, you should respect the env variable XDG_DATA_HOME / XDG_CONFIG_HOME / etc..).\n\nSorry for the formatting, I‘m on mobile.","timestamp":"2021-12-23T17:07:28+00:00","score":5},{"role":"OP","user_id":"anon_a7a69e45de3950d9","comment_id":"hppvu72","kind":"comment","text":"Thanks for your reply.\n\nI didn't know about these env variables, thanks for pointing this out. I will surely include this variable while creating \"bare\" folder, and if they are unassigned then should it create the folder at `home`?","timestamp":"2021-12-23T19:34:40+00:00","score":3},{"role":"answerer","user_id":"anon_e30f6357182d7c7a","comment_id":"hppx09t","kind":"comment","text":"I am actually not sure. According to the arch wiki, these vars have a default value, so they should, at least under Linux, never be unset, but that’s just an assumption.\n\nPersonally I would always create config directories under .config, store application data under .local/share/ and temporary downloads under /tmp. I am not sure about .local/share but I assume it‘s present on all Linux distros, but I could be wrong.\n\nUnder windows I would use AppData of the respective user, but I have never programmed anything for windows, so don’t rely on my assumptions.\n\nEdit: under windows it should be AppData/local","timestamp":"2021-12-23T19:43:00+00:00","score":2},{"role":"OP","user_id":"anon_a7a69e45de3950d9","comment_id":"hq4my4v","kind":"comment","text":"These env variables were not set in my PC.","timestamp":"2021-12-27T09:06:22+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a7a69e45de3950d9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e30f6357182d7c7a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hppasg2","thanks_reply_id":"hppvu72","post_score":1,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_34ca297a7cdfdb13","answerer_user_id":"anon_b547d925903e0706","subreddit":"programming","timestamp":"2021-12-25T14:49:04+00:00","post_id":"rob2a3","question":"How I Ask Questions as a Software Engineer","preferred_answer":"Great topic, thanks for sharing.","full_conversation":[{"role":"OP","user_id":"anon_34ca297a7cdfdb13","comment_id":"rob2a3","kind":"post","text":"How I Ask Questions as a Software Engineer","timestamp":"2021-12-25T14:49:04+00:00","score":60},{"role":"answerer","user_id":"anon_b547d925903e0706","comment_id":"hpxjrh3","kind":"comment","text":"Great topic, thanks for sharing.","timestamp":"2021-12-25T17:03:58+00:00","score":3},{"role":"OP","user_id":"anon_34ca297a7cdfdb13","comment_id":"hpxkyuw","kind":"comment","text":"Thank you for reading!\n\nWhat do you think would be the most helpful takeaway for you?","timestamp":"2021-12-25T17:14:08+00:00","score":3},{"role":"answerer","user_id":"anon_b547d925903e0706","comment_id":"hpxlugg","kind":"comment","text":"Probably the section on vague precise questions, this is a trap I see early-mid level developers making. And great to emphasize that asking good questions is a skill - ultimately programming is about communication skills with both the computer and our fellow maintainers. Both are essential to shipping good products that are meant to last more than a couple months.","timestamp":"2021-12-25T17:21:28+00:00","score":3},{"role":"OP","user_id":"anon_34ca297a7cdfdb13","comment_id":"hpzr7oj","kind":"comment","text":"I think this becomes especially important since we are working remotely these days. I haven't worked as a software engineer in an office. And I work with people in different time zones. So, most of the questions becomes async. It becomes more important that your questions be precise and can be answered in one go without having to chat through it. It is a skill for sure.","timestamp":"2021-12-26T04:40:05+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_34ca297a7cdfdb13","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b547d925903e0706","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hpxjrh3","thanks_reply_id":"hpxkyuw","post_score":60,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_1ac47bc48c7dbc1d","answerer_user_id":"anon_8e7961020b5d37c2","subreddit":"programming","timestamp":"2021-12-29T04:32:05+00:00","post_id":"rqz6wh","question":"Why blockchains are better than traditional databases for digital art (NFTs).","preferred_answer":"I’m going to ignore the use of a twitter thread to post that amount of text. While kinda dumb it’s not a big deal since we only have 23 posts. If it was say > 100 I would have a much harsher critique.\n\nI think the most obvious problem is the blockchain is not actually storing the digital art in the majority of cases. Only a url which points to some third party server. I’m sure you can see why this is a problem. See: https://www.youtube.com/watch?v=i_VsgT5gfMc","full_conversation":[{"role":"OP","user_id":"anon_1ac47bc48c7dbc1d","comment_id":"rqz6wh","kind":"post","text":"Why blockchains are better than traditional databases for digital art (NFTs).","timestamp":"2021-12-29T04:32:05+00:00","score":0},{"role":"answerer","user_id":"anon_8e7961020b5d37c2","comment_id":"hqgj6gy","kind":"comment","text":"I’m going to ignore the use of a twitter thread to post that amount of text. While kinda dumb it’s not a big deal since we only have 23 posts. If it was say > 100 I would have a much harsher critique.\n\nI think the most obvious problem is the blockchain is not actually storing the digital art in the majority of cases. Only a url which points to some third party server. I’m sure you can see why this is a problem. See: https://www.youtube.com/watch?v=i_VsgT5gfMc","timestamp":"2021-12-29T21:07:08+00:00","score":5},{"role":"OP","user_id":"anon_1ac47bc48c7dbc1d","comment_id":"hqgkbp3","kind":"comment","text":"Ah, finally, a person having a level headed discussion - appreciate not getting worked up on a Twitter thread, they are very common, allow for Twitter distribution to a following. My thread on RNDR is 23 posts and got 450,000 views (that wouldn't happen in a blog equivalent post). \n\nYour point about the blockchain not storing the image is a right one. That's why the standard now is moving towards storing a pointer on something like ethereum or solana with some metadata. But then storing the actual files on a decentralized network designed for that like filecoin or arweave.","timestamp":"2021-12-29T21:14:32+00:00","score":1},{"role":"answerer","user_id":"anon_8e7961020b5d37c2","comment_id":"hqgoep5","kind":"comment","text":"Until this changes the blockchain is not even close to being better than a traditional database. Even when it does there are many trade offs and that is another discussion altogether.\n\nRight now though it’s just a scam. No other way to put it.","timestamp":"2021-12-29T21:40:38+00:00","score":5},{"role":"OP","user_id":"anon_1ac47bc48c7dbc1d","comment_id":"hqgpcr9","kind":"comment","text":"Oh to be clear, this already changed. All new NFTs get stored on a decentralized storage platform(filecoin/arweave). On chains like Solana it's built into the open source standard. \n\nAnd I agree that there are tradeoffs, 90% of the time, you don't need a blockchain, but 10% of the time a blockchain makes sense. Fill in with whatever %s.","timestamp":"2021-12-29T21:46:49+00:00","score":1},{"role":"answerer","user_id":"anon_8e7961020b5d37c2","comment_id":"hqgyxve","kind":"comment","text":"Alright. This might be going in the right direction. Though a blockchain probably isn’t needed for something like this either.\n\nI’m also skeptical of having a bunch of unknown actors each maintaining their storage medium.","timestamp":"2021-12-29T22:50:31+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_1ac47bc48c7dbc1d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8e7961020b5d37c2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hqgj6gy","thanks_reply_id":"hqgkbp3","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_98d89d54e551fa1d","answerer_user_id":"anon_c75b9f0a1a12103f","subreddit":"programming","timestamp":"2022-01-06T21:30:17+00:00","post_id":"rxpif2","question":"What's the catch to wordpress.org?","preferred_answer":"This isn't really programming but anyway.\n\nwordpress.org = you download the PHP codebase and figure out how to run it and host it somewhere.\n\nwordpress.com = you pay them to run it and host it, and you just have to sign in and write blogs.\n\nIf you're going to run WP then you absolutely want to pay somebody for hosting. WP has security vulnerabilities all the freaking time and it needs constant updates and patches, and you don't want to be responsible for doing that. You need a service where they update it for you. (and there's tons of hosting options out there)","full_conversation":[{"role":"OP","user_id":"anon_98d89d54e551fa1d","comment_id":"rxpif2","kind":"post","text":"What's the catch to wordpress.org?","timestamp":"2022-01-06T21:30:17+00:00","score":0},{"role":"answerer","user_id":"anon_c75b9f0a1a12103f","comment_id":"hrjqqen","kind":"comment","text":"This isn't really programming but anyway.\n\nwordpress.org = you download the PHP codebase and figure out how to run it and host it somewhere.\n\nwordpress.com = you pay them to run it and host it, and you just have to sign in and write blogs.\n\nIf you're going to run WP then you absolutely want to pay somebody for hosting. WP has security vulnerabilities all the freaking time and it needs constant updates and patches, and you don't want to be responsible for doing that. You need a service where they update it for you. (and there's tons of hosting options out there)","timestamp":"2022-01-06T21:41:32+00:00","score":1},{"role":"OP","user_id":"anon_98d89d54e551fa1d","comment_id":"hrjrzhs","kind":"comment","text":"Thanks for the advice, I'm a complete novice to programming and web dev, so could you enlighten me as to which are the best hosting services in terms of cost and quality? From my limited understanding, it seems like I'd need to a. buy a domain, b. use wordpress to make my site, and c. pay someone to host my site? My understanding of c is the least substantial so I'd appreciate you explaining that a bit more. Would they automatically update the site to cover security vulnerabilities and potential crashes?","timestamp":"2022-01-06T21:49:12+00:00","score":2},{"role":"answerer","user_id":"anon_c75b9f0a1a12103f","comment_id":"hrjte64","kind":"comment","text":"> the best hosting services in terms of cost and quality?\n\nDon't know which one is the best but I worked for a company using WPengine and I have a friend using Bluehost and they both worked fine.\n\n> buy a domain\n\nYup that's right. There are some services where you can buy the domain and the WP hosting at the same time (looks like wordpress.com does this). But also it's not too hard to buy the domain separately (maybe through Google Domains) and then hook it up to your blog later. (the blog service will have instructions for this).\n\n> pay someone to host my site\n\nYeah, most services charge you a monthly fee to keep your blog running (and doing security updates too). They will probably have different payment levels based on how much usage and traffic you plan to get.","timestamp":"2022-01-06T21:57:40+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_98d89d54e551fa1d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c75b9f0a1a12103f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hrjqqen","thanks_reply_id":"hrjrzhs","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_bc58680c9a487d11","answerer_user_id":"anon_d52097b0e0f055d1","subreddit":"programming","timestamp":"2022-01-30T20:18:15+00:00","post_id":"sghupa","question":"Hey does anybody know how to set up bots where when I launch a game or app on a gaming console it automatically sends out a tweet saying what game or app I started and when?","preferred_answer":"Seemingly. I'm not going to give you the answer, but I've spent a lot of time trying to teach you how to go about getting the answer. I'm giving up now though. Best of luck with this approach.","full_conversation":[{"role":"OP","user_id":"anon_bc58680c9a487d11","comment_id":"sghupa","kind":"post","text":"Hey does anybody know how to set up bots where when I launch a game or app on a gaming console it automatically sends out a tweet saying what game or app I started and when?","timestamp":"2022-01-30T20:18:15+00:00","score":0},{"role":"answerer","user_id":"anon_d52097b0e0f055d1","comment_id":"huwk56a","kind":"comment","text":"Seemingly. I'm not going to give you the answer, but I've spent a lot of time trying to teach you how to go about getting the answer. I'm giving up now though. Best of luck with this approach.","timestamp":"2022-01-30T21:20:46+00:00","score":1},{"role":"OP","user_id":"anon_bc58680c9a487d11","comment_id":"huwlaft","kind":"comment","text":"Thanks for not helping me because I'm not familiar with this your really using your knowledge to help i hope you know that. I guess your name is TheEvillPenguin for a reason right?","timestamp":"2022-01-30T21:27:32+00:00","score":1},{"role":"answerer","user_id":"anon_d52097b0e0f055d1","comment_id":"huwmy0d","kind":"comment","text":"I've given you a lot of help, you just aren't able to see it.\n\nThe effort to get you up and running would be more like an extended one on one tutorial, which I can't do, but even if I could you'd be up against the same problem next time you need help.\n\nYou can swallow your pride, wait a bit and try again following the advice, or you can keep acting the victim and get nowhere.","timestamp":"2022-01-30T21:37:32+00:00","score":1},{"role":"OP","user_id":"anon_bc58680c9a487d11","comment_id":"huwnaot","kind":"comment","text":"Hmm I won't give up i will never give up I just have to learn and push through until I do it.","timestamp":"2022-01-30T21:39:48+00:00","score":3},{"role":"answerer","user_id":"anon_d52097b0e0f055d1","comment_id":"huwpqv7","kind":"comment","text":"That's the attitude. Sorry if I came across as harsh. It should be able to be done, and honestly I hope you figure it out.\n\nIf you make some progress and get stuck on a specific thing you're more likely to have some luck here, or even StackOverflow if you're brave and have thick skin. Programmers love a puzzle and helping people who have put in the effort and got stuck, but there are so many questions that end up being thankless time sinks.\n\nAsking a question is also a skill that takes time to learn. Make sure to explain both the problem you're trying to solve, your approach so far, and what isn't working. Google \"XY problem\".\n\nAnd never post a screenshot of code, always paste and fix formatting.","timestamp":"2022-01-30T21:55:24+00:00","score":2},{"role":"OP","user_id":"anon_bc58680c9a487d11","comment_id":"huwre20","kind":"comment","text":"Thank you for trying to show me that I have to do things myself sometimes and that I act helpless even though I'm not and showing me right path/right way and thanks for the advice I appreciate that I just gotta keep believing and pushing through and learn we all have a brain that can learn for a reason so that's what I will do and continue to do and I know you didn't mean to be harsh a one hundred percent understand I forgive you for that I hope I figure this out because it seems there is no actual answer to my problem online yet so if I figure this out and post it online it could help other people that want to do that stuff like me so thank you.","timestamp":"2022-01-30T22:05:39+00:00","score":2}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_bc58680c9a487d11","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d52097b0e0f055d1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"huwk56a","thanks_reply_id":"huwlaft","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_03f82f338fdb84f0","answerer_user_id":"anon_e4cab37f24fa0488","subreddit":"programming","timestamp":"2022-01-31T01:17:29+00:00","post_id":"sgoe8p","question":"What is L2 cache optimization? (mentioned in link, could explain in comprehensive words?)","preferred_answer":"BEWARE: i'm not an expert, i only know the basics so it might be a bunch of stuff you know already\n\nyou arrange data structures and access patterns so they fit snuggly in cache lines and work well with standard prefetching algorithms.\n\nL1 very small&very fast, L2 small&fast, L3 kinda small&kinda fast, RAM big&slow\n\nprefetch -> computer automatically preload (before you ask for it) bursts of data that the it thinks you will need, so you don't have to stall and wait for the RAM to do it's thing when you call for the data.\n\nSo the basic way to do that is to arrange your data to have big arrays of things that fit tightly in cache lines, and to make sure that these do not overlap between different caches for each CPU (or if they do it's read only).\n\n[https://people.freebsd.org/\\~lstewart/articles/cpumemory.pdf](https://people.freebsd.org/~lstewart/articles/cpumemory.pdf)\n\nmodern cpu cache sizes etc.\n\n[https://en.wikipedia.org/wiki/Ryzen](https://en.wikipedia.org/wiki/Ryzen)\n\nmore details\n\n[https://www.hardwaretimes.com/difference-between-l1-l2-and-l3-cache-how-does-cpu-cache-work/](https://www.hardwaretimes.com/difference-between-l1-l2-and-l3-cache-how-does-cpu-cache-work/)\n\n[https://www.extremetech.com/extreme/188776-how-l1-and-l2-cpu-caches-work-and-why-theyre-an-essential-part-of-modern-chips](https://www.extremetech.com/extreme/188776-how-l1-and-l2-cpu-caches-work-and-why-theyre-an-essential-part-of-modern-chips)","full_conversation":[{"role":"OP","user_id":"anon_03f82f338fdb84f0","comment_id":"sgoe8p","kind":"post","text":"What is L2 cache optimization? (mentioned in link, could explain in comprehensive words?)","timestamp":"2022-01-31T01:17:29+00:00","score":18},{"role":"answerer","user_id":"anon_e4cab37f24fa0488","comment_id":"huxol6m","kind":"comment","text":"BEWARE: i'm not an expert, i only know the basics so it might be a bunch of stuff you know already\n\nyou arrange data structures and access patterns so they fit snuggly in cache lines and work well with standard prefetching algorithms.\n\nL1 very small&very fast, L2 small&fast, L3 kinda small&kinda fast, RAM big&slow\n\nprefetch -> computer automatically preload (before you ask for it) bursts of data that the it thinks you will need, so you don't have to stall and wait for the RAM to do it's thing when you call for the data.\n\nSo the basic way to do that is to arrange your data to have big arrays of things that fit tightly in cache lines, and to make sure that these do not overlap between different caches for each CPU (or if they do it's read only).\n\n[https://people.freebsd.org/\\~lstewart/articles/cpumemory.pdf](https://people.freebsd.org/~lstewart/articles/cpumemory.pdf)\n\nmodern cpu cache sizes etc.\n\n[https://en.wikipedia.org/wiki/Ryzen](https://en.wikipedia.org/wiki/Ryzen)\n\nmore details\n\n[https://www.hardwaretimes.com/difference-between-l1-l2-and-l3-cache-how-does-cpu-cache-work/](https://www.hardwaretimes.com/difference-between-l1-l2-and-l3-cache-how-does-cpu-cache-work/)\n\n[https://www.extremetech.com/extreme/188776-how-l1-and-l2-cpu-caches-work-and-why-theyre-an-essential-part-of-modern-chips](https://www.extremetech.com/extreme/188776-how-l1-and-l2-cpu-caches-work-and-why-theyre-an-essential-part-of-modern-chips)","timestamp":"2022-01-31T01:39:44+00:00","score":16},{"role":"OP","user_id":"anon_03f82f338fdb84f0","comment_id":"huycyg7","kind":"comment","text":"thx for answer!\n\nbasically the essence is that the data structures must match well with the cache sizes to obtain an extra boost in performance\n\n*(in gamedev it links directly with the \"previous/current/next\" frame thing in the game loop)*","timestamp":"2022-01-31T04:35:27+00:00","score":1},{"role":"answerer","user_id":"anon_e4cab37f24fa0488","comment_id":"huydn39","kind":"comment","text":"and access patterns\n\nbasically you want cpu cache line aligned blocks of tightly correlated data in linearily aligned blocks (arrays)\n\nyou don't want the cpu to chase pointers in too many locations for cpu intensive tasks (at least for common infrastructures that you would see in gaming)","timestamp":"2022-01-31T04:41:18+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_03f82f338fdb84f0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e4cab37f24fa0488","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"huxol6m","thanks_reply_id":"huycyg7","post_score":18,"answer_score":16,"preferred_answer_is_top_level":true}} {"user_id":"anon_9ed82b2568a5285f","answerer_user_id":"anon_5876c297250e070b","subreddit":"programming","timestamp":"2022-01-31T05:22:33+00:00","post_id":"sgtaj7","question":"How I reversed a NodeJS malware and found the author","preferred_answer":"gotta love all the short medium articles with a cool rotated html template as cover image","full_conversation":[{"role":"OP","user_id":"anon_9ed82b2568a5285f","comment_id":"sgtaj7","kind":"post","text":"How I reversed a NodeJS malware and found the author","timestamp":"2022-01-31T05:22:33+00:00","score":1199},{"role":"answerer","user_id":"anon_5876c297250e070b","comment_id":"huyyggg","kind":"comment","text":"gotta love all the short medium articles with a cool rotated html template as cover image","timestamp":"2022-01-31T08:24:38+00:00","score":522},{"role":"OP","user_id":"anon_9ed82b2568a5285f","comment_id":"huyyzl6","kind":"comment","text":"Hello, thanks for the good laugh! I have to admit I could have found a better cover image. I will do better next time 😄","timestamp":"2022-01-31T08:31:37+00:00","score":179},{"role":"answerer","user_id":"anon_5876c297250e070b","comment_id":"huyzxg1","kind":"comment","text":"tbf it's extremely hard picking covers for programming articles, there isn't really much to use besides maybe some stylized picture of source code. nothing bad intended, good luck with your article!","timestamp":"2022-01-31T08:43:55+00:00","score":202},{"role":"OP","user_id":"anon_9ed82b2568a5285f","comment_id":"huz1bdo","kind":"comment","text":"Hey, thanks for the feedback! I'm really happy with the feedback of the community. I hope to post more soon !","timestamp":"2022-01-31T09:02:39+00:00","score":10}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_9ed82b2568a5285f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5876c297250e070b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"huyyggg","thanks_reply_id":"huyyzl6","post_score":1199,"answer_score":522,"preferred_answer_is_top_level":true}} {"user_id":"anon_91b532974a9903cf","answerer_user_id":"anon_603451608c41fa3d","subreddit":"programming","timestamp":"2022-02-01T18:59:31+00:00","post_id":"si2kxd","question":"How I hacked my SONOS to play YouTube videos on it.","preferred_answer":"Awesome work. Thanks for the nice write-up.","full_conversation":[{"role":"OP","user_id":"anon_91b532974a9903cf","comment_id":"si2kxd","kind":"post","text":"How I hacked my SONOS to play YouTube videos on it.","timestamp":"2022-02-01T18:59:31+00:00","score":63},{"role":"answerer","user_id":"anon_603451608c41fa3d","comment_id":"hv6atgn","kind":"comment","text":"Awesome work. Thanks for the nice write-up.","timestamp":"2022-02-01T19:44:27+00:00","score":4},{"role":"OP","user_id":"anon_91b532974a9903cf","comment_id":"hv6ayj6","kind":"comment","text":"Thank you very much ! 😊","timestamp":"2022-02-01T19:45:04+00:00","score":1},{"role":"answerer","user_id":"anon_603451608c41fa3d","comment_id":"hv71gxs","kind":"comment","text":"You should post this to r/reverseengineering","timestamp":"2022-02-01T22:29:47+00:00","score":2},{"role":"OP","user_id":"anon_91b532974a9903cf","comment_id":"hv71tgl","kind":"comment","text":"It's already done ;)\n\nhttps://www.reddit.com/r/ReverseEngineering/comments/shzko6/how\\_i\\_reversed\\_engineered\\_my\\_sonos\\_to\\_play/","timestamp":"2022-02-01T22:32:00+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_91b532974a9903cf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_603451608c41fa3d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hv6atgn","thanks_reply_id":"hv6ayj6","post_score":63,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_3654a81d9c13ed28","answerer_user_id":"anon_e272ae2edd7e381e","subreddit":"programming","timestamp":"2022-02-04T08:45:53+00:00","post_id":"sk8k67","question":"PostgreSQL query builder for Go, thoughts?","preferred_answer":"compliments on making this work.\n\ncould you please specify exactly what makes this better than just including the SQL as a string?","full_conversation":[{"role":"OP","user_id":"anon_3654a81d9c13ed28","comment_id":"sk8k67","kind":"post","text":"PostgreSQL query builder for Go, thoughts?","timestamp":"2022-02-04T08:45:53+00:00","score":4},{"role":"answerer","user_id":"anon_e272ae2edd7e381e","comment_id":"hvjheib","kind":"comment","text":"compliments on making this work.\n\ncould you please specify exactly what makes this better than just including the SQL as a string?","timestamp":"2022-02-04T09:10:18+00:00","score":7},{"role":"OP","user_id":"anon_3654a81d9c13ed28","comment_id":"hvjifh1","kind":"comment","text":"Hey thanks buddy, some time ago I was a laravel developer before moving to Go and always loved the query builder, sure I can just use strings but having a builder allows for flexibility such as programmatically adding in query conditions before calling build.","timestamp":"2022-02-04T09:23:59+00:00","score":4},{"role":"answerer","user_id":"anon_e272ae2edd7e381e","comment_id":"hvjjv92","kind":"comment","text":"thanks for explaining. Can you please add a sample of \"programmatically adding query conditions\"?\nPlease show how you programmatically add a combination of \"and\" and \"or\" conditions. (\"weight < 200 and hair='blonde' or height > 178\")\n\n(please know that I struggle with query builders - if the same or higher number of characters than the final SQL is needed, I always ask \"why\")","timestamp":"2022-02-04T09:43:15+00:00","score":7},{"role":"OP","user_id":"anon_3654a81d9c13ed28","comment_id":"hvjk7em","kind":"comment","text":"I sure will buddy not to worry, I reckon I could convince you yet, even if it’s more chars in the end haha.\n\nI’ll give you a bump when I have rolled it out ;-)","timestamp":"2022-02-04T09:47:47+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3654a81d9c13ed28","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e272ae2edd7e381e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hvjheib","thanks_reply_id":"hvjifh1","post_score":4,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_e0c8230a182be4eb","answerer_user_id":"anon_ba82a6387178d2f5","subreddit":"programming","timestamp":"2022-02-08T15:43:15+00:00","post_id":"snn7pr","question":"PayPal Donation Button Minimum donation amount, why are users saying this solution is \"dangerous” or easy to work around?","preferred_answer":"Users can just edit the webpage to remove the check. This is true for all client side code, you need server side validation for security.\n\nThere's no real *danger* here, the worst that can happen is that someone donates less than the minimum amount.","full_conversation":[{"role":"OP","user_id":"anon_e0c8230a182be4eb","comment_id":"snn7pr","kind":"post","text":"PayPal Donation Button Minimum donation amount, why are users saying this solution is \"dangerous” or easy to work around?","timestamp":"2022-02-08T15:43:15+00:00","score":0},{"role":"answerer","user_id":"anon_ba82a6387178d2f5","comment_id":"hw3ftky","kind":"comment","text":"Users can just edit the webpage to remove the check. This is true for all client side code, you need server side validation for security.\n\nThere's no real *danger* here, the worst that can happen is that someone donates less than the minimum amount.","timestamp":"2022-02-08T15:58:43+00:00","score":2},{"role":"OP","user_id":"anon_e0c8230a182be4eb","comment_id":"hw3iv2z","kind":"comment","text":"Thanks for the info. The danger would be many bad actors making $0.01 payments, each of which incurs a $0.49 transaction fee on the recipient side.","timestamp":"2022-02-08T16:17:54+00:00","score":5},{"role":"answerer","user_id":"anon_ba82a6387178d2f5","comment_id":"hw3vxye","kind":"comment","text":"Wait what? I find it hard to believe that's actually possible.","timestamp":"2022-02-08T17:37:36+00:00","score":-1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e0c8230a182be4eb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ba82a6387178d2f5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hw3ftky","thanks_reply_id":"hw3iv2z","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_4d6ed66281f6a606","answerer_user_id":"anon_dde1c646392d7a9e","subreddit":"programming","timestamp":"2022-02-10T20:01:58+00:00","post_id":"spfl6x","question":"Help! Having such a hard time trying to do something so simple! Im relatively new to programming and having a really hard time understanding how to do the simple things, as some may describe this. I want to try and mess around with a tool called aws nuke but having a hard time understanding the ext","preferred_answer":"On Linux `tar xvf [filename]`.\n\nOn Windows `7z x [filename]`, make sure you have 7-zip installed first and restart your command prompt.\n\nProbably best to use the GUI to unzip things to begin with, it's motivation-sapping to get stuck on a small hurdle when attempting to try something out.","full_conversation":[{"role":"OP","user_id":"anon_4d6ed66281f6a606","comment_id":"spfl6x","kind":"post","text":"Help! Having such a hard time trying to do something so simple! Im relatively new to programming and having a really hard time understanding how to do the simple things, as some may describe this. I want to try and mess around with a tool called aws nuke but having a hard time understanding the ext","timestamp":"2022-02-10T20:01:58+00:00","score":0},{"role":"answerer","user_id":"anon_dde1c646392d7a9e","comment_id":"hwflvq7","kind":"comment","text":"On Linux `tar xvf [filename]`.\n\nOn Windows `7z x [filename]`, make sure you have 7-zip installed first and restart your command prompt.\n\nProbably best to use the GUI to unzip things to begin with, it's motivation-sapping to get stuck on a small hurdle when attempting to try something out.","timestamp":"2022-02-10T23:21:13+00:00","score":2},{"role":"OP","user_id":"anon_4d6ed66281f6a606","comment_id":"hwwzu4a","kind":"comment","text":"this helped alot thank you! also thank you for not roasting me on this simple ask, im clearly a noob but trying to connect with people or groups that have more experience around programming, cloud and tech","timestamp":"2022-02-14T15:18:15+00:00","score":1},{"role":"answerer","user_id":"anon_dde1c646392d7a9e","comment_id":"hwxu9o0","kind":"comment","text":"No problem, happy to help. Just remember to bring all of the details about your system, the steps you have tried so far and the output of the commands/actions those steps produced when you are asking for help.\n\nPeople won't want to connect with you if you ask vague questions then provide no details at all, it's an energy drain and people quickly lose interest.\n\nOut of curiosity- what is your interest in aws-nuke? I haven't used it before but know of it and don't know why a beginner would be interested in it apart from maybe running through AWS lab exercises and needing to fully clean out an account before each exercise.","timestamp":"2022-02-14T18:47:16+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4d6ed66281f6a606","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dde1c646392d7a9e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hwflvq7","thanks_reply_id":"hwwzu4a","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_3711a49c55f3f6eb","answerer_user_id":"anon_0c9d89674c203e63","subreddit":"programming","timestamp":"2022-03-02T05:45:49+00:00","post_id":"t4t219","question":"Guys I made this tshirt design and want from you to confirm is this how you write a comment?","preferred_answer":"Those are html comments, not really a programming language. I think the most common comment format would be:\n\n/*\nyour comment\n*/\n\nC family, Java, JavaScript, GO, PHP...","full_conversation":[{"role":"OP","user_id":"anon_3711a49c55f3f6eb","comment_id":"t4t219","kind":"post","text":"Guys I made this tshirt design and want from you to confirm is this how you write a comment?","timestamp":"2022-03-02T05:45:49+00:00","score":0},{"role":"answerer","user_id":"anon_0c9d89674c203e63","comment_id":"hz0nmel","kind":"comment","text":"Those are html comments, not really a programming language. I think the most common comment format would be:\n\n/*\nyour comment\n*/\n\nC family, Java, JavaScript, GO, PHP...","timestamp":"2022-03-02T06:14:19+00:00","score":2},{"role":"OP","user_id":"anon_3711a49c55f3f6eb","comment_id":"hz0p6lo","kind":"comment","text":"great, thank you so much for your help, I will edit the design, thanks again","timestamp":"2022-03-02T06:31:20+00:00","score":2},{"role":"answerer","user_id":"anon_0c9d89674c203e63","comment_id":"hz0t23x","kind":"comment","text":"happy to help, let me know when updated, since i co-authored it I'll order one 😀. Are t-shirts soft and good quality?","timestamp":"2022-03-02T07:15:14+00:00","score":1},{"role":"OP","user_id":"anon_3711a49c55f3f6eb","comment_id":"hz3jttf","kind":"comment","text":"Oh, Thank you 😀, to be honest i never checked the quality of the tshirt because i have a merch by amazon account, im responsible just for the design and the tshirt is from amazon, here the new design, waiting for your confirmation is that how it should be wrote? thanks for your time and your help https://www.amazon.com/dp/B09TS1R766","timestamp":"2022-03-02T20:57:01+00:00","score":1},{"role":"answerer","user_id":"anon_0c9d89674c203e63","comment_id":"hz47d7n","kind":"comment","text":"looks good, i did many code reviews in my career never thought I'd do one like this 😀","timestamp":"2022-03-02T23:45:59+00:00","score":1},{"role":"OP","user_id":"anon_3711a49c55f3f6eb","comment_id":"hzbkxob","kind":"comment","text":"Ohh, i saw on my dashboard you bought one, your the best, thank you so much for helped me one the design, God bless you!","timestamp":"2022-03-04T14:44:54+00:00","score":2}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_3711a49c55f3f6eb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0c9d89674c203e63","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"hz0nmel","thanks_reply_id":"hz0p6lo","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0b4eba4d3471e34f","answerer_user_id":"anon_240dadaa2e7a93b9","subreddit":"programming","timestamp":"2022-03-10T22:11:32+00:00","post_id":"tbacqn","question":"Hi, I'm 30 years old and I want to learn to program, is it a good idea to start here?","preferred_answer":"It depends on what it is you would like to build. If you want to learn about web development, it looks like you found what you were looking for.\n\nIf you are interested, here is a link to [exercism](https://exercism.org/). A collection of free, exercise guided courses in many programming languages.","full_conversation":[{"role":"OP","user_id":"anon_0b4eba4d3471e34f","comment_id":"tbacqn","kind":"post","text":"Hi, I'm 30 years old and I want to learn to program, is it a good idea to start here?","timestamp":"2022-03-10T22:11:32+00:00","score":0},{"role":"answerer","user_id":"anon_240dadaa2e7a93b9","comment_id":"i0616hy","kind":"comment","text":"It depends on what it is you would like to build. If you want to learn about web development, it looks like you found what you were looking for.\n\nIf you are interested, here is a link to [exercism](https://exercism.org/). A collection of free, exercise guided courses in many programming languages.","timestamp":"2022-03-10T22:41:03+00:00","score":2},{"role":"OP","user_id":"anon_0b4eba4d3471e34f","comment_id":"i0622he","kind":"comment","text":"thanks, I saw the link, goes from junior to advanced?","timestamp":"2022-03-10T22:47:11+00:00","score":1},{"role":"answerer","user_id":"anon_240dadaa2e7a93b9","comment_id":"i063s1j","kind":"comment","text":"Yes, as one would expect, exercises start out relatively easy and get increasingly more difficult. Covering different programming themes and patterns as you go.\nAfter each exercise you get to see what others did to solve the problem. You can also opt to be mentored!","timestamp":"2022-03-10T22:59:07+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0b4eba4d3471e34f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_240dadaa2e7a93b9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"i0616hy","thanks_reply_id":"i0622he","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_0a2c2b46200fba65","answerer_user_id":"anon_f16a7b51abc93982","subreddit":"programming","timestamp":"2022-04-02T06:37:16+00:00","post_id":"tucgk3","question":"What is r/place written in? I also want to create something like that just for fun.","preferred_answer":"[Reddit did a detailed technical writeup on the technology behind it last time.](https://www.redditinc.com/blog/how-we-built-rplace) There's probably been some evolution the second time around, but it should still be helpful. Reddit itself (the \"application\" in those diagrams) is written in Python.","full_conversation":[{"role":"OP","user_id":"anon_0a2c2b46200fba65","comment_id":"tucgk3","kind":"post","text":"What is r/place written in? I also want to create something like that just for fun.","timestamp":"2022-04-02T06:37:16+00:00","score":0},{"role":"answerer","user_id":"anon_f16a7b51abc93982","comment_id":"i32zuup","kind":"comment","text":"[Reddit did a detailed technical writeup on the technology behind it last time.](https://www.redditinc.com/blog/how-we-built-rplace) There's probably been some evolution the second time around, but it should still be helpful. Reddit itself (the \"application\" in those diagrams) is written in Python.","timestamp":"2022-04-02T07:07:14+00:00","score":7},{"role":"OP","user_id":"anon_0a2c2b46200fba65","comment_id":"i32zznw","kind":"comment","text":"thanks! But how they manage to put it on the website? \n\nI don't understand this","timestamp":"2022-04-02T07:09:08+00:00","score":-8},{"role":"answerer","user_id":"anon_f16a7b51abc93982","comment_id":"i331ora","kind":"comment","text":"I mean, did you read the article? It goes into pretty thorough detail on how they store it, how they communicate the state to clients, how they render it in the browser, everything. If you don't have enough experience in programming / web development to understand the article, that's perfectly fine, but a real-time massively-multiplayer interactive experience like r\\/place is not the best way to get your toes wet. Start with a simple JavaScript game tutorial or something.","timestamp":"2022-04-02T07:33:18+00:00","score":6},{"role":"OP","user_id":"anon_0a2c2b46200fba65","comment_id":"i331rh6","kind":"comment","text":"oops, didn't read the article before replying. Got it now","timestamp":"2022-04-02T07:34:24+00:00","score":-7}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0a2c2b46200fba65","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f16a7b51abc93982","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"i32zuup","thanks_reply_id":"i32zznw","post_score":0,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_6caef53231909c27","answerer_user_id":"anon_2562392fa741effb","subreddit":"programming","timestamp":"2022-04-06T15:22:12+00:00","post_id":"txomm9","question":"How to read code, better","preferred_answer":"Not a very insightful post imo. Tldr is get good by practicing a lot (split out by some specific things). Doing things a lot tends to make you better at it.. Not a big revelation.","full_conversation":[{"role":"OP","user_id":"anon_6caef53231909c27","comment_id":"txomm9","kind":"post","text":"How to read code, better","timestamp":"2022-04-06T15:22:12+00:00","score":0},{"role":"answerer","user_id":"anon_2562392fa741effb","comment_id":"i3n1263","kind":"comment","text":"Not a very insightful post imo. Tldr is get good by practicing a lot (split out by some specific things). Doing things a lot tends to make you better at it.. Not a big revelation.","timestamp":"2022-04-06T15:49:40+00:00","score":2},{"role":"OP","user_id":"anon_6caef53231909c27","comment_id":"i3n8vhm","kind":"comment","text":"Thanks for the feedback. This was my first try at writing a tech related article on Medium. \nWill try doing better next time.","timestamp":"2022-04-06T16:39:26+00:00","score":3},{"role":"answerer","user_id":"anon_2562392fa741effb","comment_id":"i3nynu3","kind":"comment","text":"The writing is good, so is the topic. But my advice would be to pick a single cool thing you do and elaborate on it, rather than shallowly list 3 or 4 things. \n\nPlease don't take my comment too harshly, I don't want to discourage you. Maybe I am just not the target audience for this post.","timestamp":"2022-04-06T19:18:54+00:00","score":2},{"role":"OP","user_id":"anon_6caef53231909c27","comment_id":"i3pj57j","kind":"comment","text":"I understand your point. There are thousands of shallow lists on the internet. I just wanted to put something out there to start with.\nI will focus on something specific for my future articles.","timestamp":"2022-04-07T01:49:17+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6caef53231909c27","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2562392fa741effb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"i3n1263","thanks_reply_id":"i3n8vhm","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a5bea7d5875b968a","answerer_user_id":"anon_bddb46ce0c4218f0","subreddit":"programming","timestamp":"2022-04-25T19:56:35+00:00","post_id":"ubtvyf","question":"I want to assemble a computer for programming. I don't understand my hardware. What parts are important when building a computer? Is the i7 any good? What processor and parts would you recommend?","preferred_answer":"/r/buildapc is probably the right sub for this.","full_conversation":[{"role":"OP","user_id":"anon_a5bea7d5875b968a","comment_id":"ubtvyf","kind":"post","text":"I want to assemble a computer for programming. I don't understand my hardware. What parts are important when building a computer? Is the i7 any good? What processor and parts would you recommend?","timestamp":"2022-04-25T19:56:35+00:00","score":0},{"role":"answerer","user_id":"anon_bddb46ce0c4218f0","comment_id":"i66awvu","kind":"comment","text":"/r/buildapc is probably the right sub for this.","timestamp":"2022-04-25T20:10:57+00:00","score":11},{"role":"OP","user_id":"anon_a5bea7d5875b968a","comment_id":"i66cmsd","kind":"comment","text":"u are right. thanks.","timestamp":"2022-04-25T20:22:07+00:00","score":1},{"role":"answerer","user_id":"anon_bddb46ce0c4218f0","comment_id":"i66cxyg","kind":"comment","text":"No problem! Hopefully you'll find what you need.","timestamp":"2022-04-25T20:24:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a5bea7d5875b968a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bddb46ce0c4218f0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"i66awvu","thanks_reply_id":"i66cmsd","post_score":0,"answer_score":11,"preferred_answer_is_top_level":true}} {"user_id":"anon_44774bc524f1fa64","answerer_user_id":"anon_ccd42e3e5962f43e","subreddit":"programming","timestamp":"2022-05-24T03:18:42+00:00","post_id":"uwhhv7","question":"Is Full Sail university a good choice going the tech route","preferred_answer":"It sounds like you're already ready to go. Python is sufficient for many jobs. Entry level test automation jobs aren't that hard and if you're willing to work for less than usual you should be able to get past the initial interview. However, I notice that your typing is hasty and your spelling isn't perfect, so you will need to slow down and present your best self when you talk to companies.\n\nEveryone is hiring remote today. Everyone is short of staff and money is always tight. That all works in your favor. Look for internships, entry level roles, and any company that you can send a nice email directly to the hiring manager. Introduce yourself, describe your projects and interests, explain that you'd like to start working on the lowest level stuff, and ask if they're willing to do on the job training if you're willing to work for below market.\n\nIt won't be easy to find the job but start now and try to apply to a new company every single day, no exceptions. Within a few months you should be able to find a place to slide in. If you really want to get going quickly, go to a Python bootcamp that offers job placement assistance. Totally worth your money.","full_conversation":[{"role":"OP","user_id":"anon_44774bc524f1fa64","comment_id":"uwhhv7","kind":"post","text":"Is Full Sail university a good choice going the tech route","timestamp":"2022-05-24T03:18:42+00:00","score":0},{"role":"answerer","user_id":"anon_ccd42e3e5962f43e","comment_id":"i9uj85h","kind":"comment","text":"It sounds like you're already ready to go. Python is sufficient for many jobs. Entry level test automation jobs aren't that hard and if you're willing to work for less than usual you should be able to get past the initial interview. However, I notice that your typing is hasty and your spelling isn't perfect, so you will need to slow down and present your best self when you talk to companies.\n\nEveryone is hiring remote today. Everyone is short of staff and money is always tight. That all works in your favor. Look for internships, entry level roles, and any company that you can send a nice email directly to the hiring manager. Introduce yourself, describe your projects and interests, explain that you'd like to start working on the lowest level stuff, and ask if they're willing to do on the job training if you're willing to work for below market.\n\nIt won't be easy to find the job but start now and try to apply to a new company every single day, no exceptions. Within a few months you should be able to find a place to slide in. If you really want to get going quickly, go to a Python bootcamp that offers job placement assistance. Totally worth your money.","timestamp":"2022-05-24T20:03:32+00:00","score":2},{"role":"OP","user_id":"anon_44774bc524f1fa64","comment_id":"i9umowq","kind":"comment","text":"Thanks so much man I’m going to try your advice and see where it gets me. Tbh I’m not worried much about the time since I just graduated but just waisting my time isn’t something I like to do.C++ and python in high school was a challenge to wrap my head around but now all I gotta focus on is just that.Vex robotics was my only coding experience what can I do with that?","timestamp":"2022-05-24T20:27:58+00:00","score":1},{"role":"answerer","user_id":"anon_ccd42e3e5962f43e","comment_id":"i9uslva","kind":"comment","text":"Think of your experience so far as proof that you are able to learn. Don’t worry about what comes next or how to use the experience; that will depend on each job you apply for.\n\nBtw it’s “waste” and “wasting” ;)","timestamp":"2022-05-24T21:09:53+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_44774bc524f1fa64","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ccd42e3e5962f43e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"i9uj85h","thanks_reply_id":"i9umowq","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_b712e8f15e8bcf36","answerer_user_id":"anon_f56c71b66448c676","subreddit":"programming","timestamp":"2022-06-17T18:45:46+00:00","post_id":"ven2os","question":"How to Master Programming Interview Concepts","preferred_answer":"I think you'll get more attention if you post that to /r/cscarrerangst.","full_conversation":[{"role":"OP","user_id":"anon_b712e8f15e8bcf36","comment_id":"ven2os","kind":"post","text":"How to Master Programming Interview Concepts","timestamp":"2022-06-17T18:45:46+00:00","score":0},{"role":"answerer","user_id":"anon_f56c71b66448c676","comment_id":"icquw9g","kind":"comment","text":"I think you'll get more attention if you post that to /r/cscarrerangst.","timestamp":"2022-06-17T18:49:13+00:00","score":3},{"role":"OP","user_id":"anon_b712e8f15e8bcf36","comment_id":"icqwxna","kind":"comment","text":"Thanks although was there a type in that? I can't find the subreddit","timestamp":"2022-06-17T19:04:10+00:00","score":1},{"role":"answerer","user_id":"anon_f56c71b66448c676","comment_id":"icr1t1c","kind":"comment","text":"It was a freudiean slip. /r/cscarrerquestions","timestamp":"2022-06-17T19:40:05+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b712e8f15e8bcf36","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f56c71b66448c676","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"icquw9g","thanks_reply_id":"icqwxna","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_b881ebf5ac1267ba","answerer_user_id":"anon_0124da63d7cd7407","subreddit":"programming","timestamp":"2022-06-20T20:34:16+00:00","post_id":"vgv3el","question":"Can someone please help me with a leetcode 1185. problem I have added link to my code and leetcode problem","preferred_answer":"Can you break down your code, and what its doing line by line in a reddit comment here? Telling us what you expect the result of each line would help us diagnose what is going wrong.","full_conversation":[{"role":"OP","user_id":"anon_b881ebf5ac1267ba","comment_id":"vgv3el","kind":"post","text":"Can someone please help me with a leetcode 1185. problem I have added link to my code and leetcode problem","timestamp":"2022-06-20T20:34:16+00:00","score":0},{"role":"answerer","user_id":"anon_0124da63d7cd7407","comment_id":"id6np2c","kind":"comment","text":"Can you break down your code, and what its doing line by line in a reddit comment here? Telling us what you expect the result of each line would help us diagnose what is going wrong.","timestamp":"2022-06-21T14:19:50+00:00","score":1},{"role":"OP","user_id":"anon_b881ebf5ac1267ba","comment_id":"id8vayb","kind":"comment","text":"Thank you so much for your comment I already added comments to the code if you check the link you will see it","timestamp":"2022-06-22T00:23:07+00:00","score":1},{"role":"answerer","user_id":"anon_0124da63d7cd7407","comment_id":"id8wzho","kind":"comment","text":"I was hoping you'd be able to explain each line here in your own words, it's a powerful debugging tool","timestamp":"2022-06-22T00:36:59+00:00","score":2},{"role":"OP","user_id":"anon_b881ebf5ac1267ba","comment_id":"idbyxkb","kind":"comment","text":"Thank you I will do it as soon as I get an opportunity to do so","timestamp":"2022-06-22T18:05:43+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b881ebf5ac1267ba","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0124da63d7cd7407","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"id6np2c","thanks_reply_id":"id8vayb","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_f64cfe4c663e867a","answerer_user_id":"anon_3b0e3c42276163b7","subreddit":"programming","timestamp":"2022-06-28T02:58:37+00:00","post_id":"vmcr2b","question":"Does anyone know how to create an app or software that lets you change patterns on dresses by choosing and clicking on a pattern from a list. I created a sample app using adobe animate *just a sample* the download link for the app is in the description. I can't figure out how to add a menu though.","preferred_answer":"I have to tell you, this is not how computer programs are written.\n\nA top-down approach would set out the overall design and program goals, then choose an appropriate programming language, learn how to use it, then write specific modules to achieve project goals. Then knit them together into a coherent whole. Then test the result for internal consistency.\n\nAlso, people aren't going to tell you how to solve a specific programming issue without any evidence that you're personally involved in the project.\n\n> I created a sample app using adobe animate \n\nChances are that's not the right environment for your project. Just saying. There are any number of Web-oriented development environments that would be easier to use, would have more depth and future potential.","full_conversation":[{"role":"OP","user_id":"anon_f64cfe4c663e867a","comment_id":"vmcr2b","kind":"post","text":"Does anyone know how to create an app or software that lets you change patterns on dresses by choosing and clicking on a pattern from a list. I created a sample app using adobe animate *just a sample* the download link for the app is in the description. I can't figure out how to add a menu though.","timestamp":"2022-06-28T02:58:37+00:00","score":0},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"ie0ee8h","kind":"comment","text":"I have to tell you, this is not how computer programs are written.\n\nA top-down approach would set out the overall design and program goals, then choose an appropriate programming language, learn how to use it, then write specific modules to achieve project goals. Then knit them together into a coherent whole. Then test the result for internal consistency.\n\nAlso, people aren't going to tell you how to solve a specific programming issue without any evidence that you're personally involved in the project.\n\n> I created a sample app using adobe animate \n\nChances are that's not the right environment for your project. Just saying. There are any number of Web-oriented development environments that would be easier to use, would have more depth and future potential.","timestamp":"2022-06-28T03:11:51+00:00","score":3},{"role":"OP","user_id":"anon_f64cfe4c663e867a","comment_id":"ie0iwzh","kind":"comment","text":"Thanks for those tips, I just started in the programming world. and still a total noob. and I'm sure flash is the worst environment to create the app. And I will dig more into what i need to do. But thanks.","timestamp":"2022-06-28T03:52:56+00:00","score":0},{"role":"answerer","user_id":"anon_3b0e3c42276163b7","comment_id":"ie0k3pf","kind":"comment","text":"> and I'm sure flash is the worst environment to create the app.\n\nTrue. Adobe Flash is being removed/discarded, because it's deprecated for security reasons. Its use is strongly discouraged.\n\n[Adobe Flash Player End-Of-Life (EOL)](https://www.adobe.com/products/flashplayer/end-of-life.html) : \"Since Adobe no longer supports Flash Player after December 31, 2020 and blocked Flash content from running in Flash Player beginning January 12, 2021, Adobe strongly recommends all users immediately uninstall Flash Player to help protect their systems.\"","timestamp":"2022-06-28T04:04:23+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f64cfe4c663e867a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3b0e3c42276163b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ie0ee8h","thanks_reply_id":"ie0iwzh","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_c0dd9772a5f6c950","answerer_user_id":"anon_9923c7b15630a191","subreddit":"programming","timestamp":"2022-07-02T13:57:14+00:00","post_id":"vpsd0u","question":"Is Your Project Manager A Sith Lord? Three Ways To Find Out.","preferred_answer":"Yeah I found that really off-putting.\n\nJust say \"they\", it's been in common use as a singular gender-neutral pronoun since the 14th century. Using \"he\" as the default second-person pronoun is jarring in this day/age.","full_conversation":[{"role":"OP","user_id":"anon_c0dd9772a5f6c950","comment_id":"vpsd0u","kind":"post","text":"Is Your Project Manager A Sith Lord? Three Ways To Find Out.","timestamp":"2022-07-02T13:57:14+00:00","score":935},{"role":"answerer","user_id":"anon_9923c7b15630a191","comment_id":"ieogps5","kind":"comment","text":"Yeah I found that really off-putting.\n\nJust say \"they\", it's been in common use as a singular gender-neutral pronoun since the 14th century. Using \"he\" as the default second-person pronoun is jarring in this day/age.","timestamp":"2022-07-03T09:28:51+00:00","score":1},{"role":"OP","user_id":"anon_c0dd9772a5f6c950","comment_id":"ieokr8i","kind":"comment","text":"Thanks for bringing this up! I just updated the article. Would you mind reviewing it to see if my use of \"they\" is alright? I haven't used it too often so far.","timestamp":"2022-07-03T10:27:44+00:00","score":7},{"role":"answerer","user_id":"anon_9923c7b15630a191","comment_id":"ieovjt2","kind":"comment","text":"Thanks so much mate, that means a lot to me.\n\nWith this sentence:\n\n> Your team is working overtime, weekends and holidays, just to meet their unrealistic goals.\n\nI'd suggest instead writing\n\n> Your team is working overtime, weekends and holidays, just to meet the manager's unrealistic goals.\n\nSince the use of \"they\" is otherwise ambiguous in this sentence, it could refer to the team.\n\nAlso in your closing paragraph it still says \"there’s a good chance he’s a Sith Lord\", I think you might want to change that one too.\n\nI'm really glad you've made these changes, inclusive language makes a really big difference for some of us.","timestamp":"2022-07-03T12:40:16+00:00","score":6},{"role":"OP","user_id":"anon_c0dd9772a5f6c950","comment_id":"iep43v2","kind":"comment","text":"Thanks for the review. I updated those. Cheers!","timestamp":"2022-07-03T13:59:39+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c0dd9772a5f6c950","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9923c7b15630a191","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ieogps5","thanks_reply_id":"ieokr8i","post_score":935,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_de497459c728d1cb","answerer_user_id":"anon_f65e150510ba197e","subreddit":"programming","timestamp":"2022-08-02T16:07:17+00:00","post_id":"wefn4f","question":"How I Used DALL·E 2 to Generate The Logo for OctoSQL","preferred_answer":"Do you want me to do a vector and cleanup pass of the logo?","full_conversation":[{"role":"OP","user_id":"anon_de497459c728d1cb","comment_id":"wefn4f","kind":"post","text":"How I Used DALL·E 2 to Generate The Logo for OctoSQL","timestamp":"2022-08-02T16:07:17+00:00","score":342},{"role":"answerer","user_id":"anon_f65e150510ba197e","comment_id":"iipq91a","kind":"comment","text":"Do you want me to do a vector and cleanup pass of the logo?","timestamp":"2022-08-02T23:49:35+00:00","score":8},{"role":"OP","user_id":"anon_de497459c728d1cb","comment_id":"iipthtj","kind":"comment","text":"Hey! Thanks, but that won't be necessary for now.\n\nBut I appreciate the offer!","timestamp":"2022-08-03T00:13:04+00:00","score":7},{"role":"answerer","user_id":"anon_f65e150510ba197e","comment_id":"iiptq2v","kind":"comment","text":"🤙","timestamp":"2022-08-03T00:14:46+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_de497459c728d1cb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f65e150510ba197e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iipq91a","thanks_reply_id":"iipthtj","post_score":342,"answer_score":8,"preferred_answer_is_top_level":false}} {"user_id":"anon_a8a8051dc59770b0","answerer_user_id":"anon_ccd42e3e5962f43e","subreddit":"programming","timestamp":"2022-08-10T18:22:40+00:00","post_id":"wl4pmn","question":"What's the difference between C, C++, Objective-C, and C#? I'm trying to learn one of these, but I'm getting confused since I can't seem to find the difference between them all. Can someone explain the main advantages of each? Thanks. I didn't have any URL to specify, so I just put a link to Reddit.","preferred_answer":"Ok but that’s a little like saying that you’re going to do something amazing outdoors, want to pick the best possible car to learn to drive, choosing a drag racer, and then maybe finding out that you were hoping to experience Van Life.\n\nAll programming languages are equivalent (Turing’s Completeness Theory), just like all combustion engine cars are equivalent. But you’ll spend a lot less time messing around if you decide where you want to go, how often, how fast, and how expensively you are willing to travel.\n\nC++ is truly a nightmare language. Many features are pointless (multiple inheritance, for example, is pretty much awful) and the language is bent around the axle of being backward compatible with existing C programs. I’ve written a lot of it and I’m going to wager that I will never use it again for the rest of my life. The juice isn’t worth the squeeze, to me, after 30 years professional development. It’s like one of Musk’s Boring Machines: it does stuff real well but not much of what you want to do.\n\nBy comparison C# is post C++, post Java, and took a ton of the lessons learned from each. When it was first released into beta I gave it a shot on a scoreboard program I was writing. I had about 10 weeks of C++ written and things were going OK. I started checking out C# at noon and by 10pm I rewrote the whole project and finished it. Maybe 15-20 weeks of work in my most preferred language (at that time) and I replaced it on my first day with C#. C# is like a Tesla; it’s sleek enough and fast enough and feature rich enough that you probably don’t need another car or language until you have a specific job to do.\n\nObjective-C is a pre-C++ language that just doesn’t feel right most of the time. It’s maybe like a Dodge Dart. Yes it works and yes it drives you to work, but it only works for Apple and Swift does it all much better. Swift is like the C# of Objective-C.\n\nFinally, C is a bit like a work truck. Yeah it looks like crap. Yeah it’s bigger effort than you want (you have to do a LOT of the shifting manually). It can lift any load. It never gets in your way. If you want to drive off a cliff, C won’t even complain until the crash. C is for being deeply nerdy. It’s my language of choice today because I’ve done a lot of it and I can just get to work without learning a bunch of new updates to my language and tools.\n\nSo if you plan on programming little Arduino or Raspberry Pi devices then focus on C. If you plan on being an Apple star, get Swift. Otherwise, I think C# gets the most output per input effort.","full_conversation":[{"role":"OP","user_id":"anon_a8a8051dc59770b0","comment_id":"wl4pmn","kind":"post","text":"What's the difference between C, C++, Objective-C, and C#? I'm trying to learn one of these, but I'm getting confused since I can't seem to find the difference between them all. Can someone explain the main advantages of each? Thanks. I didn't have any URL to specify, so I just put a link to Reddit.","timestamp":"2022-08-10T18:22:40+00:00","score":0},{"role":"answerer","user_id":"anon_ccd42e3e5962f43e","comment_id":"ijsc9ia","kind":"comment","text":"Ok but that’s a little like saying that you’re going to do something amazing outdoors, want to pick the best possible car to learn to drive, choosing a drag racer, and then maybe finding out that you were hoping to experience Van Life.\n\nAll programming languages are equivalent (Turing’s Completeness Theory), just like all combustion engine cars are equivalent. But you’ll spend a lot less time messing around if you decide where you want to go, how often, how fast, and how expensively you are willing to travel.\n\nC++ is truly a nightmare language. Many features are pointless (multiple inheritance, for example, is pretty much awful) and the language is bent around the axle of being backward compatible with existing C programs. I’ve written a lot of it and I’m going to wager that I will never use it again for the rest of my life. The juice isn’t worth the squeeze, to me, after 30 years professional development. It’s like one of Musk’s Boring Machines: it does stuff real well but not much of what you want to do.\n\nBy comparison C# is post C++, post Java, and took a ton of the lessons learned from each. When it was first released into beta I gave it a shot on a scoreboard program I was writing. I had about 10 weeks of C++ written and things were going OK. I started checking out C# at noon and by 10pm I rewrote the whole project and finished it. Maybe 15-20 weeks of work in my most preferred language (at that time) and I replaced it on my first day with C#. C# is like a Tesla; it’s sleek enough and fast enough and feature rich enough that you probably don’t need another car or language until you have a specific job to do.\n\nObjective-C is a pre-C++ language that just doesn’t feel right most of the time. It’s maybe like a Dodge Dart. Yes it works and yes it drives you to work, but it only works for Apple and Swift does it all much better. Swift is like the C# of Objective-C.\n\nFinally, C is a bit like a work truck. Yeah it looks like crap. Yeah it’s bigger effort than you want (you have to do a LOT of the shifting manually). It can lift any load. It never gets in your way. If you want to drive off a cliff, C won’t even complain until the crash. C is for being deeply nerdy. It’s my language of choice today because I’ve done a lot of it and I can just get to work without learning a bunch of new updates to my language and tools.\n\nSo if you plan on programming little Arduino or Raspberry Pi devices then focus on C. If you plan on being an Apple star, get Swift. Otherwise, I think C# gets the most output per input effort.","timestamp":"2022-08-10T23:19:19+00:00","score":2},{"role":"OP","user_id":"anon_a8a8051dc59770b0","comment_id":"ijschwk","kind":"comment","text":"Nice. Thanks.","timestamp":"2022-08-10T23:20:58+00:00","score":2},{"role":"answerer","user_id":"anon_ccd42e3e5962f43e","comment_id":"ijsdkp0","kind":"comment","text":"Yep! Once you have one language down, the rest get easier and easier. I like starting on the easy end for that reason. You’ll get to your first 10,000 hours sooner if you can succeed earlier and more often.","timestamp":"2022-08-10T23:28:46+00:00","score":2},{"role":"OP","user_id":"anon_a8a8051dc59770b0","comment_id":"ijsdop4","kind":"comment","text":"Nice. I’m looking forward to it!","timestamp":"2022-08-10T23:29:33+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a8a8051dc59770b0","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ccd42e3e5962f43e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ijsc9ia","thanks_reply_id":"ijschwk","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_9bffc770c06299ea","answerer_user_id":"anon_278600e0a4336145","subreddit":"programming","timestamp":"2022-08-12T06:51:14+00:00","post_id":"wmef59","question":"How your one-week free trial is being used for three months","preferred_answer":"Well it depends on your product. Typically you want to give the user full functionality but then limit resource usage (e.g. disk space, users) so they can fully enjoy the product for their test projects and then upgrade when it's actually worth it.\n\n1. Notion -> limited total text blocks until you upgrade. I'm not going to split my content over several accounts to circumvent this.\n\n2. Miro -> limited number of boards and users sharing them. You can get away with the free version for personal use, but if you start using it for consulting etc. it makes sense to upgrade.\n\n3. Dropbox -> free amount of space... now it's just a shame they won't offer intermediate storage amounts otherwise I would have been their customer for 10 years instead of 0. Again, I'm not going to log-in/out of multiple accounts unless I'm dedicated to avoiding costs.","full_conversation":[{"role":"OP","user_id":"anon_9bffc770c06299ea","comment_id":"wmef59","kind":"post","text":"How your one-week free trial is being used for three months","timestamp":"2022-08-12T06:51:14+00:00","score":0},{"role":"answerer","user_id":"anon_278600e0a4336145","comment_id":"ijz2zr8","kind":"comment","text":"Well it depends on your product. Typically you want to give the user full functionality but then limit resource usage (e.g. disk space, users) so they can fully enjoy the product for their test projects and then upgrade when it's actually worth it.\n\n1. Notion -> limited total text blocks until you upgrade. I'm not going to split my content over several accounts to circumvent this.\n\n2. Miro -> limited number of boards and users sharing them. You can get away with the free version for personal use, but if you start using it for consulting etc. it makes sense to upgrade.\n\n3. Dropbox -> free amount of space... now it's just a shame they won't offer intermediate storage amounts otherwise I would have been their customer for 10 years instead of 0. Again, I'm not going to log-in/out of multiple accounts unless I'm dedicated to avoiding costs.","timestamp":"2022-08-12T09:35:30+00:00","score":2},{"role":"OP","user_id":"anon_9bffc770c06299ea","comment_id":"ijz3pdy","kind":"comment","text":"Yea thanks for your thoughts. I agree it depends a lot on the particular business. \n\n4. Netflix ( or similar) -> free entertainment or knowledge. It's easy to roll new accounts to continue the free ride. \n\n5. Uber eats ( or similar) -> free or heavily discounted food. Make a new account and get another free meal.\n\nIf the benefit or the resource isn't somehow tied to the life of the account then its vulnerable to this type of issue.","timestamp":"2022-08-12T09:45:00+00:00","score":3},{"role":"answerer","user_id":"anon_278600e0a4336145","comment_id":"ijz6tgq","kind":"comment","text":">If the benefit or the resource isn't somehow tied to the life of the account then its vulnerable to this type of issue.\n\nYeah I guess that's the crux of it. \n\nA lot of these trials end up tied to a phone number or credit card, making it harder to spin up new accounts. Perhaps it'd make sense to do this (although would put off some potential users).","timestamp":"2022-08-12T10:24:27+00:00","score":2},{"role":"OP","user_id":"anon_9bffc770c06299ea","comment_id":"ijz76nq","kind":"comment","text":"Yea, phone and card numbers are good signals of a user's real identity, but they have challenges and can be difficult to implement. At upollo we're making this easier.","timestamp":"2022-08-12T10:29:00+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_9bffc770c06299ea","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_278600e0a4336145","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ijz2zr8","thanks_reply_id":"ijz3pdy","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_a7a0aadab7049da9","answerer_user_id":"anon_d2b855e9a41668ad","subreddit":"programming","timestamp":"2022-08-14T06:41:48+00:00","post_id":"wnzoan","question":"What could be the reason why you would still chose REST over GraphQL or gRPC for your API?","preferred_answer":"The showstopper I can think of is lack of support for gRPC in the browser. But I would prefer gRPC for non-user-facing microservices, limiting REST to user-facing ones, or not even bothering and making the user-facing app a traditional webapp (or at least “traditional” if an SPA is “traditional.”)","full_conversation":[{"role":"OP","user_id":"anon_a7a0aadab7049da9","comment_id":"wnzoan","kind":"post","text":"What could be the reason why you would still chose REST over GraphQL or gRPC for your API?","timestamp":"2022-08-14T06:41:48+00:00","score":272},{"role":"answerer","user_id":"anon_d2b855e9a41668ad","comment_id":"ik861ji","kind":"comment","text":"The showstopper I can think of is lack of support for gRPC in the browser. But I would prefer gRPC for non-user-facing microservices, limiting REST to user-facing ones, or not even bothering and making the user-facing app a traditional webapp (or at least “traditional” if an SPA is “traditional.”)","timestamp":"2022-08-14T07:03:44+00:00","score":26},{"role":"OP","user_id":"anon_a7a0aadab7049da9","comment_id":"ik868hj","kind":"comment","text":"Thanks for gRPC and why REST over GraphQL for front intended API?","timestamp":"2022-08-14T07:06:09+00:00","score":-3},{"role":"answerer","user_id":"anon_d2b855e9a41668ad","comment_id":"ik86d7i","kind":"comment","text":"I haven’t seen a compelling use case for GraphQL.","timestamp":"2022-08-14T07:07:49+00:00","score":46}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a7a0aadab7049da9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d2b855e9a41668ad","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ik861ji","thanks_reply_id":"ik868hj","post_score":272,"answer_score":26,"preferred_answer_is_top_level":true}} {"user_id":"anon_f6c2e01bc8a458a8","answerer_user_id":"anon_00a52fdf4e8ac632","subreddit":"programming","timestamp":"2022-08-24T17:49:57+00:00","post_id":"wwpzj5","question":"How playing on guitar can help you to be a better developer?","preferred_answer":"i was having trouble finding the content in there due to the style. do you have a TL;DR for this so i know its worth trying again?","full_conversation":[{"role":"OP","user_id":"anon_f6c2e01bc8a458a8","comment_id":"wwpzj5","kind":"post","text":"How playing on guitar can help you to be a better developer?","timestamp":"2022-08-24T17:49:57+00:00","score":0},{"role":"answerer","user_id":"anon_00a52fdf4e8ac632","comment_id":"ilmrwax","kind":"comment","text":"i was having trouble finding the content in there due to the style. do you have a TL;DR for this so i know its worth trying again?","timestamp":"2022-08-24T19:08:48+00:00","score":1},{"role":"OP","user_id":"anon_f6c2e01bc8a458a8","comment_id":"ilmst7t","kind":"comment","text":"Thanks, I appreciate the honest feedback. If you want TLDR, You can jump directly to the final 6 points. I think they gather the main message.","timestamp":"2022-08-24T19:14:35+00:00","score":1},{"role":"answerer","user_id":"anon_00a52fdf4e8ac632","comment_id":"ilmua1j","kind":"comment","text":"Ok i read it. thanks for your response. \n\ni think you make a couple good points (learning hard stuff requires a cyclical approach; variety in activities is good), but the first half doesn’t relate that much to the 2nd and i think undermines your message. \n\nAlso, there are a few sentences where i have no idea what you mean, and clarity suffers. like\n\n>\tThe second time I did not become a musician was one I signed to the local music library.","timestamp":"2022-08-24T19:23:49+00:00","score":2},{"role":"OP","user_id":"anon_f6c2e01bc8a458a8","comment_id":"ilmvsch","kind":"comment","text":"Yes, mostly it's about trying different things, not over-motivating and rushing too much. Also the final point about finding some manual hobby is IMHO important. \n\n\nThanks for the feedback about style; I'll check what I can do to make the message clearer. Regarding the last point. At that time, there were music libraries. You could go there and borrow CDs or Cassettes and listen to it at your house. So like a regular library with books but for music. So I wanted to start my music education by that, but I missed the right music and also postponed it for some time. That's also kinda relation to programming sometimes trying too far technologies or programming languages from your experience may leave you wrong generalised conclusions.","timestamp":"2022-08-24T19:33:20+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_f6c2e01bc8a458a8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_00a52fdf4e8ac632","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ilmrwax","thanks_reply_id":"ilmst7t","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_b584c91b86ca8e84","answerer_user_id":"anon_da8a32566ab33975","subreddit":"programming","timestamp":"2022-08-26T01:16:07+00:00","post_id":"wxvdn0","question":"Does my universities course catalog for my major look good enough to land a job after graduating if I go above and beyond? Paying 60k a year and I just heard from an alumni member they had to apply for 400 jobs to get one across the country.","preferred_answer":"Is there a proper CS degree? CIS is a more general degree (its actually what I have).\n\nThat being said, the thing that will show you can program is your portfolio and how well you can describe what you did and why.\n\nFrom a new graduate I would want to see at least a basic website of any sort. How complicated would be up to you. This gives us something concrete to talk about, so I can see what you have learned, and shows me you can investigate problems and find solutions working on your own, which is the most important quality of a programmer in my eyes.","full_conversation":[{"role":"OP","user_id":"anon_b584c91b86ca8e84","comment_id":"wxvdn0","kind":"post","text":"Does my universities course catalog for my major look good enough to land a job after graduating if I go above and beyond? Paying 60k a year and I just heard from an alumni member they had to apply for 400 jobs to get one across the country.","timestamp":"2022-08-26T01:16:07+00:00","score":0},{"role":"answerer","user_id":"anon_da8a32566ab33975","comment_id":"ilt9np7","kind":"comment","text":"Is there a proper CS degree? CIS is a more general degree (its actually what I have).\n\nThat being said, the thing that will show you can program is your portfolio and how well you can describe what you did and why.\n\nFrom a new graduate I would want to see at least a basic website of any sort. How complicated would be up to you. This gives us something concrete to talk about, so I can see what you have learned, and shows me you can investigate problems and find solutions working on your own, which is the most important quality of a programmer in my eyes.","timestamp":"2022-08-26T01:20:42+00:00","score":1},{"role":"OP","user_id":"anon_b584c91b86ca8e84","comment_id":"iltc0a4","kind":"comment","text":"Yes, there is, I think I may be transferring over to that program instead, and thank you so much for the reply, it really dampened a lot of my worries, and gave me new insight. \n\nThe university does not offer CTF or hackathons events though, do you think that those would be big losses to my portfolio? Or would I be able to manage with a lot of personal projects and research through the university?","timestamp":"2022-08-26T01:38:32+00:00","score":1},{"role":"answerer","user_id":"anon_da8a32566ab33975","comment_id":"ilte0c9","kind":"comment","text":"I look for extracurricular self-guided projects because that tells me more about the person.","timestamp":"2022-08-26T01:53:42+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b584c91b86ca8e84","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_da8a32566ab33975","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ilt9np7","thanks_reply_id":"iltc0a4","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_3ecaa008e7f24f4f","answerer_user_id":"anon_f56731192468c45a","subreddit":"programming","timestamp":"2022-09-01T11:57:49+00:00","post_id":"x35qdx","question":"Should programming businesses to cold outreach?","preferred_answer":"The statements on this site are literally incomprehensible","full_conversation":[{"role":"OP","user_id":"anon_3ecaa008e7f24f4f","comment_id":"x35qdx","kind":"post","text":"Should programming businesses to cold outreach?","timestamp":"2022-09-01T11:57:49+00:00","score":0},{"role":"answerer","user_id":"anon_f56731192468c45a","comment_id":"imnkh9o","kind":"comment","text":"The statements on this site are literally incomprehensible","timestamp":"2022-09-01T13:00:30+00:00","score":5},{"role":"OP","user_id":"anon_3ecaa008e7f24f4f","comment_id":"imopsda","kind":"comment","text":"Thank you for the feedback. \nIn which sense are they incomprehensible from your point of view?","timestamp":"2022-09-01T17:35:54+00:00","score":0},{"role":"answerer","user_id":"anon_f56731192468c45a","comment_id":"imorzrg","kind":"comment","text":"It effectively reads as question answer pairs of poorly written english pulled from either a twitter bot or non native speakers feed, with emojis sporadically thrown throughout. It makes it difficult to understand your core points (if there are any at all)","timestamp":"2022-09-01T17:49:49+00:00","score":2},{"role":"OP","user_id":"anon_3ecaa008e7f24f4f","comment_id":"imrtpju","kind":"comment","text":"Non native speakers feed is completely correct.👌 \nI am very grateful that you take the time to share your opinion.🤗","timestamp":"2022-09-02T08:37:11+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3ecaa008e7f24f4f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f56731192468c45a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"imnkh9o","thanks_reply_id":"imopsda","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_f264e7e29c371f19","answerer_user_id":"anon_0c62e0aca082b62c","subreddit":"programming","timestamp":"2022-09-23T12:33:43+00:00","post_id":"xlwbos","question":"Why I work Part-Time (and how I find work)","preferred_answer":"You should make it clear that the employer pays for introductions they accept rather than all received.","full_conversation":[{"role":"OP","user_id":"anon_f264e7e29c371f19","comment_id":"xlwbos","kind":"post","text":"Why I work Part-Time (and how I find work)","timestamp":"2022-09-23T12:33:43+00:00","score":104},{"role":"answerer","user_id":"anon_0c62e0aca082b62c","comment_id":"ipn7sbc","kind":"comment","text":"You should make it clear that the employer pays for introductions they accept rather than all received.","timestamp":"2022-09-23T21:35:08+00:00","score":7},{"role":"OP","user_id":"anon_f264e7e29c371f19","comment_id":"ipnaul0","kind":"comment","text":"I will! Thanks!","timestamp":"2022-09-23T21:57:49+00:00","score":2},{"role":"answerer","user_id":"anon_0c62e0aca082b62c","comment_id":"ipnonfx","kind":"comment","text":"Aye! Poke me when yall launch, I'll gladly join the platform","timestamp":"2022-09-23T23:48:24+00:00","score":3},{"role":"OP","user_id":"anon_f264e7e29c371f19","comment_id":"ipp2fgc","kind":"comment","text":"Thanks, I will do that — and thanks again for the thoughtful feedback!\n\n(Also if you’re a developer you can sign up now. There’s 30 candidate searches in there so you might match with something)","timestamp":"2022-09-24T08:31:37+00:00","score":1},{"role":"answerer","user_id":"anon_0c62e0aca082b62c","comment_id":"ippazgd","kind":"comment","text":"Huh, it wasn't in the menu. Thought I couldn't sign up. \n\nOh man, the sign up process is a mess. Most of those questions make little sense. And those that do - i don't care about them.","timestamp":"2022-09-24T10:36:41+00:00","score":0},{"role":"OP","user_id":"anon_f264e7e29c371f19","comment_id":"ippbnsh","kind":"comment","text":"Did you do the developer flow (the homepage) or the employer flow (/search)?\n\nThe developer onboarding has something like a 35% conversion rate (although only ~800 developers have signed up so that’s still a small sample size). The search flow is pretty untested. \n\nWhat questions would you like to see instead? What do you care about?","timestamp":"2022-09-24T10:45:50+00:00","score":1},{"role":"answerer","user_id":"anon_0c62e0aca082b62c","comment_id":"ippcwcn","kind":"comment","text":"I did the employee flow. \n\nAngellist has or had a good questionnaire. \n\nIt had languages, tech, and timezones one works in. \n\nCos tbh, for me the only thing I care about the company is pay. Rest is optional. \nI don't care if it's a startup or a huge corporation, I just want money.","timestamp":"2022-09-24T11:02:17+00:00","score":0},{"role":"OP","user_id":"anon_f264e7e29c371f19","comment_id":"ippe84j","kind":"comment","text":"Cool — we just grab the time zone from your browser for now (obviously breaks if you’re on a VPN or traveling). I think we could get away with a much shorter set of questions, leaving many of them as optional.\n\nTech choices were originally in there but were moved to the actual match request flow (so you could say “I don’t want to work here because Fortran”) because those questions had a big drop off. \n\nI think a handful of high value questions (pay, schedule, etc) with the rest optional makes sense.","timestamp":"2022-09-24T11:18:55+00:00","score":2},{"role":"answerer","user_id":"anon_0c62e0aca082b62c","comment_id":"ipqf89d","kind":"comment","text":"What if I'm European but want to work for a US company cos the timezone works better for me? )\nOr I can adjust to several. \n\n\nI'd just add a list of tech one doesn't wanna work with. \n\n\n\nAlso tbh, it's pretty passive for the dev. I don't know if I matched anything. Seems like I'll just forget about the service","timestamp":"2022-09-24T16:36:46+00:00","score":1}],"n_turns":10,"n_turns_after_thanks":7,"op_metadata":{"user_id":"anon_f264e7e29c371f19","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0c62e0aca082b62c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ipn7sbc","thanks_reply_id":"ipnaul0","post_score":104,"answer_score":7,"preferred_answer_is_top_level":false}} {"user_id":"anon_f53892209cf97db7","answerer_user_id":"anon_79cd088596b89718","subreddit":"programming","timestamp":"2022-09-27T13:46:06+00:00","post_id":"xph8dg","question":"Is there a way to use Warp terminal on windows ?","preferred_answer":"Not yet, still in the works. It’s behind in the line before the 3 upcoming feature they plan to release and moving it to Linux. Gonna be a bit my guy","full_conversation":[{"role":"OP","user_id":"anon_f53892209cf97db7","comment_id":"xph8dg","kind":"post","text":"Is there a way to use Warp terminal on windows ?","timestamp":"2022-09-27T13:46:06+00:00","score":0},{"role":"answerer","user_id":"anon_79cd088596b89718","comment_id":"iujkjs1","kind":"comment","text":"Not yet, still in the works. It’s behind in the line before the 3 upcoming feature they plan to release and moving it to Linux. Gonna be a bit my guy","timestamp":"2022-10-31T20:31:42+00:00","score":1},{"role":"OP","user_id":"anon_f53892209cf97db7","comment_id":"iujoebx","kind":"comment","text":"Oh well , I guess I'll just have to wait , thanks for the information 👍🏻","timestamp":"2022-10-31T20:58:07+00:00","score":1},{"role":"answerer","user_id":"anon_79cd088596b89718","comment_id":"iukfooo","kind":"comment","text":"Yeah, I was bummed too. I messaged the devs because I use a mac at home but windows for work and missed warp.","timestamp":"2022-11-01T00:28:24+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f53892209cf97db7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_79cd088596b89718","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iujkjs1","thanks_reply_id":"iujoebx","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_00b24268e593d8a4","answerer_user_id":"anon_ff2d3bf34b02477f","subreddit":"programming","timestamp":"2022-09-28T11:20:52+00:00","post_id":"xq9zu6","question":"Why are there so few women on Stack Overflow? Only 5% female users participated in their 2022 annual survey.","preferred_answer":"Hello, I am a Brazilian girl and in Brazil there is a lot of Facebook, telegram, discord and whatsapp only-girls programming groups, I found The groups searching in web. In my College they tried to create a group for girls when I was studying there, but in my college, in my course there was only 5 girls (2 in my class and the another 3 girls in another class), so it did not happened... \n\nIf you speak portuguese, I can put you in theses only-girls groups, but I really don't know no one only-english group...","full_conversation":[{"role":"OP","user_id":"anon_00b24268e593d8a4","comment_id":"xq9zu6","kind":"post","text":"Why are there so few women on Stack Overflow? Only 5% female users participated in their 2022 annual survey.","timestamp":"2022-09-28T11:20:52+00:00","score":557},{"role":"answerer","user_id":"anon_ff2d3bf34b02477f","comment_id":"iq8ohf0","kind":"comment","text":"Hello, I am a Brazilian girl and in Brazil there is a lot of Facebook, telegram, discord and whatsapp only-girls programming groups, I found The groups searching in web. In my College they tried to create a group for girls when I was studying there, but in my college, in my course there was only 5 girls (2 in my class and the another 3 girls in another class), so it did not happened... \n\nIf you speak portuguese, I can put you in theses only-girls groups, but I really don't know no one only-english group...","timestamp":"2022-09-28T14:42:32+00:00","score":10},{"role":"OP","user_id":"anon_00b24268e593d8a4","comment_id":"iq8qiff","kind":"comment","text":"Thanks. It’s nice to hear these kind of groups exist! I wonder if they have a different „tone\" than other communities?\n\nI'd guess that just because everyone is on a more or less similar level there must be different kinds of questions being asked and less \"this already has been asked here, don't repeat the question\"?","timestamp":"2022-09-28T14:56:17+00:00","score":1},{"role":"answerer","user_id":"anon_ff2d3bf34b02477f","comment_id":"iq8sg12","kind":"comment","text":"Yeessss, it just sucks when you ask a question on a forum and they close ur question and put a link with a answer that YOU ALREADY TRIED AND IT DID NOT WORK. In only girls groups there are a lot of help not just in code, if a girl share her linkedin profile and asks for comments in her post, we are going to help and comment","timestamp":"2022-09-28T15:09:19+00:00","score":2},{"role":"OP","user_id":"anon_00b24268e593d8a4","comment_id":"iq8sztb","kind":"comment","text":"Sounds really like a lovely community 👍","timestamp":"2022-09-28T15:13:05+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_00b24268e593d8a4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ff2d3bf34b02477f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iq8ohf0","thanks_reply_id":"iq8qiff","post_score":557,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_c2ba89840ab63a2f","answerer_user_id":"anon_c1deae88100e71b9","subreddit":"programming","timestamp":"2022-09-30T01:30:05+00:00","post_id":"xropns","question":"Can anyone offer their assistance in this. I was able to so set 1 easily but I couldn't understand sets 2 and 3. I am supposed to use for and while loops.","preferred_answer":"You can construct the string in memory and then print at the end. (You can add line breaks to a string with `\\n`.)\n\nI think you’re using Java: https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html\n\nFor the second and third one, a hint is if you use a for loop you have access to the iteration variable. Think about what that value is as you run the loop and how that relates to each line. A second hint: Loops can be nested, you may find you want two.","full_conversation":[{"role":"OP","user_id":"anon_c2ba89840ab63a2f","comment_id":"xropns","kind":"post","text":"Can anyone offer their assistance in this. I was able to so set 1 easily but I couldn't understand sets 2 and 3. I am supposed to use for and while loops.","timestamp":"2022-09-30T01:30:05+00:00","score":0},{"role":"answerer","user_id":"anon_c1deae88100e71b9","comment_id":"iqg2oim","kind":"comment","text":"You can construct the string in memory and then print at the end. (You can add line breaks to a string with `\\n`.)\n\nI think you’re using Java: https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html\n\nFor the second and third one, a hint is if you use a for loop you have access to the iteration variable. Think about what that value is as you run the loop and how that relates to each line. A second hint: Loops can be nested, you may find you want two.","timestamp":"2022-09-30T01:48:24+00:00","score":2},{"role":"OP","user_id":"anon_c2ba89840ab63a2f","comment_id":"iqgd045","kind":"comment","text":"Thanks for your help. I got the second set done: \n\nfor (int k = 1; k < 6; k ++) { \n\t\tfor (int i = 0; i < 5; i++) { \n\t\t\tif(i == k) System.out.print(\"#\"); \n\t\t\t} \n\t\t\t \n\t\t\t \n\t\tSystem.out.println(\"\");\n\nbut i'm stuck on set 3. I have an idea on how to do it but it won't execute it as I want it to. \n\nfor (int k = 1; k < 6; k ++) { \n\t\tfor (int i = 0; i < 5; i++) { \n\t\t\tif(i == k) System.out.print(\"#\"); \n\t\t\t \n\t\t\t} \n\tSystem.out.println(\"\");\n\nI'm trying to build off of set 2 and put an else statement but it comes up as a syntax error.","timestamp":"2022-09-30T03:07:48+00:00","score":2},{"role":"answerer","user_id":"anon_c1deae88100e71b9","comment_id":"iquly4b","kind":"comment","text":"```java\n for (int k = 1; k < 6; k ++) {\n for (int i = 0; i < 5; i++) {\n if(i == k)\n {\n\t\t System.out.print(”#”);\n }\n else{\n …\n }\n }\n}\n```\n\nI think you were missing the braces for your if. \n\nRemember the restriction though that you can only have one print statement written. You will need to do something other than having another print statement in the else.\n\nAlso to format code in markdown like I did in this comment surround the code with three back ticks “`” to start and end.","timestamp":"2022-10-03T05:20:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c2ba89840ab63a2f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c1deae88100e71b9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iqg2oim","thanks_reply_id":"iqgd045","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_772f6efacb9891af","answerer_user_id":"anon_660f760057c23211","subreddit":"programming","timestamp":"2022-10-10T12:43:26+00:00","post_id":"y0dusy","question":"Why is being “Done” in Agile teams so tragically misunderstood?","preferred_answer":"1000% this. I wrote an article on a particular aspect of all this shit too: https://www.lloydatkinson.net/posts/2022/one-teams-eight-points-is-another-teams-two-points/","full_conversation":[{"role":"OP","user_id":"anon_772f6efacb9891af","comment_id":"y0dusy","kind":"post","text":"Why is being “Done” in Agile teams so tragically misunderstood?","timestamp":"2022-10-10T12:43:26+00:00","score":60},{"role":"answerer","user_id":"anon_660f760057c23211","comment_id":"irsgzlh","kind":"comment","text":"1000% this. I wrote an article on a particular aspect of all this shit too: https://www.lloydatkinson.net/posts/2022/one-teams-eight-points-is-another-teams-two-points/","timestamp":"2022-10-10T18:16:30+00:00","score":9},{"role":"OP","user_id":"anon_772f6efacb9891af","comment_id":"irsq9ii","kind":"comment","text":"Good post with many similar themes to mine. Thanks for sharing.","timestamp":"2022-10-10T19:19:20+00:00","score":5},{"role":"answerer","user_id":"anon_660f760057c23211","comment_id":"irsri6k","kind":"comment","text":"Thank you, glad you like it, yours is good too!","timestamp":"2022-10-10T19:27:50+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_772f6efacb9891af","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_660f760057c23211","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"irsgzlh","thanks_reply_id":"irsq9ii","post_score":60,"answer_score":9,"preferred_answer_is_top_level":false}} {"user_id":"anon_d0e140441e03afc8","answerer_user_id":"anon_41b2cb7ed95aedf0","subreddit":"programming","timestamp":"2022-10-11T08:40:08+00:00","post_id":"y13q8x","question":"How can I program the text loading animation that occurs at the end of the mission in metal gear rising revengeance when the game shows you the stats? Any C, C++ or python program or function for this effect? (Repost because I got no Reply)","preferred_answer":"Here's a C# (which is NOT C!) implementation I just wrote:\n\n\tWriteString(\"Hello world\");\n\tWriteString(\"I learned something new today!\");\n\n\tstatic void WriteString(string value)\n\t{\n\t\tvar currentstring = new string(' ', value.Length); // Initialize an empty string of same length as input\n\t\tvar currentchars = currentstring.ToCharArray(); // Initialize a char array of same length as input\n\t\tvar rng = new Random(42); // Random number generator with fixed seed so animations are deterministic\n\n\t\tvar (cp_left, cp_top) = Console.GetCursorPosition(); // Get cursor position before we do anything\n\n\t\twhile (!currentstring.Equals(value)) // Keep going until current string equals input\n\t\t{\n\t\t\tConsole.SetCursorPosition(cp_left, cp_top); // Return cursor to position where we first found it at\n\t\t\tThread.Sleep(1); // Slow down 'animation'\n\n\t\t\tfor (var i = 0; i < value.Length; i++) // Randomize string by iterating each letter\n\t\t\t{\n\n\t\t\t\tif (currentchars[i] != value[i]) // If a char in position i is not already the correct char... \n\t\t\t\t{\n\t\t\t\t\tcurrentchars[i] = (char)rng.Next(32, 127); // ...change it to another random letter (look up \"ASCII table\")\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcurrentstring = new string(currentchars); // Create a new string from the chars\n\n\t\t\tConsole.WriteLine(currentstring); // Output string\n\t\t}\n\t}\n\n\"Translate\" it into C and there you go.\n\nThe \"problem\" with random numbers is ... that they're random. So, by chance, it MAY take a while before the correct letter is generated. For this you could keep another array with (randomized) counters per letter which you decrease every iteration and when that counter reaches 0 just put the correct letter.\n\n WriteString(\"Hello world\");\n WriteString(\"I learned something new today!\");\n\n static void WriteString(string value, int maxiterations = 50)\n {\n var rng = new Random(42); // Random number generator with fixed seed so animations are deterministic\n var currentstring = new string(' ', value.Length); // Initialize an empty string of same length as input\n var currentchars = currentstring.ToCharArray(); // Initialize a char array of same length as input\n var counters = currentchars\n .Select(c => rng.Next(maxiterations)).ToArray(); // Randomize letter counters\n\n var (cp_left, cp_top) = Console.GetCursorPosition(); // Get cursor position before we do anything\n\n while (!currentstring.Equals(value)) // Keep going until we're finished (i.e. current string equals input)\n {\n Console.SetCursorPosition(cp_left, cp_top); // Return cursor to position where we first found it at\n Thread.Sleep(1); // Slow down 'animation'\n\n for (var i = 0; i < value.Length; i++) // Randomize string by iterating each letter\n {\n if (currentchars[i] != value[i]) // If a char in position i is not already the correct char... \n {\n currentchars[i] = counters[i] <= 0 // Counter at 0 or less?\n ? value[i] // Pick actual letter from string\n : (char)rng.Next(32, 127); // Pick random letter (look up \"ASCII table\")\n counters[i]--; // Decrease letter counter\n }\n }\n\n currentstring = new string(currentchars); // Create a new string from the chars\n\n Console.WriteLine(currentstring); // Output string\n }\n }\n\nThere's lots of ways to improve this. Input validation for example: if you pass in non-ASCII characters, this function will never return! Another thing you could do is hide the cursor during the 'animation'. Anyway, this should get you started. \n\nYou can play with it [here](https://dotnetfiddle.net/Lbzxu7) - I changed it to not overwrite the string each iteration but to put them under eachother so you can see what happens. So the cursor positioning stuff is removed.","full_conversation":[{"role":"OP","user_id":"anon_d0e140441e03afc8","comment_id":"y13q8x","kind":"post","text":"How can I program the text loading animation that occurs at the end of the mission in metal gear rising revengeance when the game shows you the stats? Any C, C++ or python program or function for this effect? (Repost because I got no Reply)","timestamp":"2022-10-11T08:40:08+00:00","score":0},{"role":"answerer","user_id":"anon_41b2cb7ed95aedf0","comment_id":"irzyx23","kind":"comment","text":"Here's a C# (which is NOT C!) implementation I just wrote:\n\n\tWriteString(\"Hello world\");\n\tWriteString(\"I learned something new today!\");\n\n\tstatic void WriteString(string value)\n\t{\n\t\tvar currentstring = new string(' ', value.Length); // Initialize an empty string of same length as input\n\t\tvar currentchars = currentstring.ToCharArray(); // Initialize a char array of same length as input\n\t\tvar rng = new Random(42); // Random number generator with fixed seed so animations are deterministic\n\n\t\tvar (cp_left, cp_top) = Console.GetCursorPosition(); // Get cursor position before we do anything\n\n\t\twhile (!currentstring.Equals(value)) // Keep going until current string equals input\n\t\t{\n\t\t\tConsole.SetCursorPosition(cp_left, cp_top); // Return cursor to position where we first found it at\n\t\t\tThread.Sleep(1); // Slow down 'animation'\n\n\t\t\tfor (var i = 0; i < value.Length; i++) // Randomize string by iterating each letter\n\t\t\t{\n\n\t\t\t\tif (currentchars[i] != value[i]) // If a char in position i is not already the correct char... \n\t\t\t\t{\n\t\t\t\t\tcurrentchars[i] = (char)rng.Next(32, 127); // ...change it to another random letter (look up \"ASCII table\")\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcurrentstring = new string(currentchars); // Create a new string from the chars\n\n\t\t\tConsole.WriteLine(currentstring); // Output string\n\t\t}\n\t}\n\n\"Translate\" it into C and there you go.\n\nThe \"problem\" with random numbers is ... that they're random. So, by chance, it MAY take a while before the correct letter is generated. For this you could keep another array with (randomized) counters per letter which you decrease every iteration and when that counter reaches 0 just put the correct letter.\n\n WriteString(\"Hello world\");\n WriteString(\"I learned something new today!\");\n\n static void WriteString(string value, int maxiterations = 50)\n {\n var rng = new Random(42); // Random number generator with fixed seed so animations are deterministic\n var currentstring = new string(' ', value.Length); // Initialize an empty string of same length as input\n var currentchars = currentstring.ToCharArray(); // Initialize a char array of same length as input\n var counters = currentchars\n .Select(c => rng.Next(maxiterations)).ToArray(); // Randomize letter counters\n\n var (cp_left, cp_top) = Console.GetCursorPosition(); // Get cursor position before we do anything\n\n while (!currentstring.Equals(value)) // Keep going until we're finished (i.e. current string equals input)\n {\n Console.SetCursorPosition(cp_left, cp_top); // Return cursor to position where we first found it at\n Thread.Sleep(1); // Slow down 'animation'\n\n for (var i = 0; i < value.Length; i++) // Randomize string by iterating each letter\n {\n if (currentchars[i] != value[i]) // If a char in position i is not already the correct char... \n {\n currentchars[i] = counters[i] <= 0 // Counter at 0 or less?\n ? value[i] // Pick actual letter from string\n : (char)rng.Next(32, 127); // Pick random letter (look up \"ASCII table\")\n counters[i]--; // Decrease letter counter\n }\n }\n\n currentstring = new string(currentchars); // Create a new string from the chars\n\n Console.WriteLine(currentstring); // Output string\n }\n }\n\nThere's lots of ways to improve this. Input validation for example: if you pass in non-ASCII characters, this function will never return! Another thing you could do is hide the cursor during the 'animation'. Anyway, this should get you started. \n\nYou can play with it [here](https://dotnetfiddle.net/Lbzxu7) - I changed it to not overwrite the string each iteration but to put them under eachother so you can see what happens. So the cursor positioning stuff is removed.","timestamp":"2022-10-12T08:47:05+00:00","score":2},{"role":"OP","user_id":"anon_d0e140441e03afc8","comment_id":"is4af4y","kind":"comment","text":"Thank you!\n\nI will try this then get back to you.","timestamp":"2022-10-13T04:56:01+00:00","score":1},{"role":"answerer","user_id":"anon_41b2cb7ed95aedf0","comment_id":"is9kbc9","kind":"comment","text":"See [here](https://gist.github.com/RobThree/3f8f768514d04e7d306c7e43fe2522ce) for an even more elaborate version.","timestamp":"2022-10-14T08:33:33+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d0e140441e03afc8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_41b2cb7ed95aedf0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"irzyx23","thanks_reply_id":"is4af4y","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_f79fe6c5dd8b31ff","answerer_user_id":"anon_0446fb16e58f9e31","subreddit":"programming","timestamp":"2022-10-12T20:45:10+00:00","post_id":"y2ez9j","question":"How I debugged and fixed git-grep macOS UTF-8 support","preferred_answer":"The author mentions `git blame` which is indeed an important tool but in more complex codebases it's entire possible the original introduction would require several steps because the code was refactored since. For this, `git blameall` is a wonderful and almost completely unknown utility. https://github.com/gnddev/git-blameall Yours truly did a quick Python 3 port this January, mostly using the automated toolset for it and the author, much to my surprise, committed it in a week despite the last commit was in 2013. So the project is not dead :)","full_conversation":[{"role":"OP","user_id":"anon_f79fe6c5dd8b31ff","comment_id":"y2ez9j","kind":"post","text":"How I debugged and fixed git-grep macOS UTF-8 support","timestamp":"2022-10-12T20:45:10+00:00","score":45},{"role":"answerer","user_id":"anon_0446fb16e58f9e31","comment_id":"is48bw2","kind":"comment","text":"The author mentions `git blame` which is indeed an important tool but in more complex codebases it's entire possible the original introduction would require several steps because the code was refactored since. For this, `git blameall` is a wonderful and almost completely unknown utility. https://github.com/gnddev/git-blameall Yours truly did a quick Python 3 port this January, mostly using the automated toolset for it and the author, much to my surprise, committed it in a week despite the last commit was in 2013. So the project is not dead :)","timestamp":"2022-10-13T04:33:48+00:00","score":6},{"role":"OP","user_id":"anon_f79fe6c5dd8b31ff","comment_id":"is4le0f","kind":"comment","text":"Thanks for the pointer. Seeing all lines with \\`git blameall\\` could become confusing, no? What I typically do is if a change I see on a line isn't the one I'm looking after, I run \\`git blame SHA\\~1\\`, where SHA is the change I'm not interested in.","timestamp":"2022-10-13T07:11:50+00:00","score":1},{"role":"answerer","user_id":"anon_0446fb16e58f9e31","comment_id":"is4mx54","kind":"comment","text":"It's not at all confusing once you get used to reading it. Try it :)","timestamp":"2022-10-13T07:33:23+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f79fe6c5dd8b31ff","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0446fb16e58f9e31","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"is48bw2","thanks_reply_id":"is4le0f","post_score":45,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_75cb501bafcf40cb","answerer_user_id":"anon_9b99af5077e6e2a7","subreddit":"programming","timestamp":"2022-10-16T07:59:09+00:00","post_id":"y5b0p4","question":"Finite State Machines\n\nI really love this particular chapter of this book and read it again from time to time, whenever I need to write some FSM myself. Are there other articles like this, explaining specifically topics with such good examples and pedagogical?","preferred_answer":"If you're really interested in FSM (aka automata) and similar topics, you should start reading this book: Introduction to Automata Theory, Languages and computation (Ullman, Hopcroft).\nIt's the standard book used to introduce automata in BSc courses.\nThe approach may be theoretical, but it is necessary to fully understand the meaning of the automata.","full_conversation":[{"role":"OP","user_id":"anon_75cb501bafcf40cb","comment_id":"y5b0p4","kind":"post","text":"Finite State Machines\n\nI really love this particular chapter of this book and read it again from time to time, whenever I need to write some FSM myself. Are there other articles like this, explaining specifically topics with such good examples and pedagogical?","timestamp":"2022-10-16T07:59:09+00:00","score":12},{"role":"answerer","user_id":"anon_9b99af5077e6e2a7","comment_id":"isn4j89","kind":"comment","text":"If you're really interested in FSM (aka automata) and similar topics, you should start reading this book: Introduction to Automata Theory, Languages and computation (Ullman, Hopcroft).\nIt's the standard book used to introduce automata in BSc courses.\nThe approach may be theoretical, but it is necessary to fully understand the meaning of the automata.","timestamp":"2022-10-17T05:41:27+00:00","score":2},{"role":"OP","user_id":"anon_75cb501bafcf40cb","comment_id":"isn6lln","kind":"comment","text":"Thanks! What I was looking for was really something similar to this article/book chapter that explains a topic in such a clear way. I understand it is not fully comprehensive and there's a lot beyond the surface, but it is a really nice introduction in real word concepts.","timestamp":"2022-10-17T06:07:09+00:00","score":1},{"role":"answerer","user_id":"anon_9b99af5077e6e2a7","comment_id":"isn8a8v","kind":"comment","text":"The book contains also some examples (here the table of contents: http://infolab.stanford.edu/~ullman/pub/ialctoc.txt).\nAnyway, it depends on your interests. The FSM are used in almost every field in computer science, since they are a fundamental concept: consider that any program is a FSM.\nMaybe, you can start from the text detection using regular expressions (usually its realization is a straight-forward implementation of a FSM).","timestamp":"2022-10-17T06:29:02+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_75cb501bafcf40cb","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9b99af5077e6e2a7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"isn4j89","thanks_reply_id":"isn6lln","post_score":12,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_392bca30c8450c08","answerer_user_id":"anon_ead1be29be46ad99","subreddit":"programming","timestamp":"2022-10-26T12:18:43+00:00","post_id":"ydwp3f","question":"Who in your organization is responsible for writing the technical documentation?","preferred_answer":"Find the guy who wrote a PhD thesis.\n\nOk more seriously, found a PhD who worked in GxP. They document every damn thing 👍","full_conversation":[{"role":"OP","user_id":"anon_392bca30c8450c08","comment_id":"ydwp3f","kind":"post","text":"Who in your organization is responsible for writing the technical documentation?","timestamp":"2022-10-26T12:18:43+00:00","score":30},{"role":"answerer","user_id":"anon_ead1be29be46ad99","comment_id":"ituxvqx","kind":"comment","text":"Find the guy who wrote a PhD thesis.\n\nOk more seriously, found a PhD who worked in GxP. They document every damn thing 👍","timestamp":"2022-10-26T14:29:13+00:00","score":7},{"role":"OP","user_id":"anon_392bca30c8450c08","comment_id":"itv41q1","kind":"comment","text":"Thanks, so you're saying if we use a tech writer he needs to be really good.","timestamp":"2022-10-26T15:11:03+00:00","score":2},{"role":"answerer","user_id":"anon_ead1be29be46ad99","comment_id":"itvkejy","kind":"comment","text":"Ideally, you want everyone on your team to be good.\n\n You may want someone who has written e.g. a technical 'methods' section of a paper, likes/ won't mind to write documentation, and is actually willing to invest time and effort in writing.","timestamp":"2022-10-26T16:58:09+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_392bca30c8450c08","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ead1be29be46ad99","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ituxvqx","thanks_reply_id":"itv41q1","post_score":30,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_9aaf5a39eeaa2926","answerer_user_id":"anon_61e49241286ec672","subreddit":"programming","timestamp":"2022-11-08T17:34:47+00:00","post_id":"ypszcn","question":"can i become a web developer or get a job by just learning computer languages and get some certification oam gonna let you know that iam from a civil engineer background and can civil engineer become a software developer by just learning coding?","preferred_answer":"Yeah, it's possible, but expect the first part to be very tough. Once you get the first job and a little experience, it completely changes.\n\nFor the first part, I recommend doing various tutorials, certifications and test projects (make a GitHub account you can link to recruiters so you can show your progress). Search for an internship at first so you can prove your worth, and hopefully get a full position after that.\n\nYou basically need to first prove to the recruiter that you are serious in this job change, and that you have the skills and wish to learn. The good part about software development is that you can do a lot of self learning with projects to prove it.","full_conversation":[{"role":"OP","user_id":"anon_9aaf5a39eeaa2926","comment_id":"ypszcn","kind":"post","text":"can i become a web developer or get a job by just learning computer languages and get some certification oam gonna let you know that iam from a civil engineer background and can civil engineer become a software developer by just learning coding?","timestamp":"2022-11-08T17:34:47+00:00","score":0},{"role":"answerer","user_id":"anon_61e49241286ec672","comment_id":"ivktsw8","kind":"comment","text":"Yeah, it's possible, but expect the first part to be very tough. Once you get the first job and a little experience, it completely changes.\n\nFor the first part, I recommend doing various tutorials, certifications and test projects (make a GitHub account you can link to recruiters so you can show your progress). Search for an internship at first so you can prove your worth, and hopefully get a full position after that.\n\nYou basically need to first prove to the recruiter that you are serious in this job change, and that you have the skills and wish to learn. The good part about software development is that you can do a lot of self learning with projects to prove it.","timestamp":"2022-11-08T18:26:20+00:00","score":2},{"role":"OP","user_id":"anon_9aaf5a39eeaa2926","comment_id":"ivku1ey","kind":"comment","text":"Thanks mate that helps alot i literally have 0 knowledge in computer science","timestamp":"2022-11-08T18:27:49+00:00","score":1},{"role":"answerer","user_id":"anon_61e49241286ec672","comment_id":"ivkuhua","kind":"comment","text":"I had very little myself when I first started (studied geophysics, had a little programming there), but managed to show my interest to a recruiter who gave me a week to make a test project related to something they were doing, I did so and they were impressed, gave me internship that turned into full time job.\n\n8 years later and I now have a quite well paying job.","timestamp":"2022-11-08T18:30:40+00:00","score":2},{"role":"OP","user_id":"anon_9aaf5a39eeaa2926","comment_id":"ivkvu6m","kind":"comment","text":"How much on average do u make?","timestamp":"2022-11-08T18:39:08+00:00","score":0},{"role":"answerer","user_id":"anon_61e49241286ec672","comment_id":"ivkxena","kind":"comment","text":"Above 100k euro a year (Scandinavia).","timestamp":"2022-11-08T18:49:01+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_9aaf5a39eeaa2926","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_61e49241286ec672","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ivktsw8","thanks_reply_id":"ivku1ey","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a6bda11330a5a164","answerer_user_id":"anon_418356a87ee13600","subreddit":"programming","timestamp":"2022-11-08T18:27:56+00:00","post_id":"ypue0z","question":"Does anybody know how this works???","preferred_answer":"* LED strip\n* Piano VFX","full_conversation":[{"role":"OP","user_id":"anon_a6bda11330a5a164","comment_id":"ypue0z","kind":"post","text":"Does anybody know how this works???","timestamp":"2022-11-08T18:27:56+00:00","score":0},{"role":"answerer","user_id":"anon_418356a87ee13600","comment_id":"ivkueg6","kind":"comment","text":"* LED strip\n* Piano VFX","timestamp":"2022-11-08T18:30:05+00:00","score":5},{"role":"OP","user_id":"anon_a6bda11330a5a164","comment_id":"ivl0biz","kind":"comment","text":"godsend thanks so much!!","timestamp":"2022-11-08T19:07:23+00:00","score":3},{"role":"answerer","user_id":"anon_418356a87ee13600","comment_id":"ivl0how","kind":"comment","text":"You're welcome","timestamp":"2022-11-08T19:08:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a6bda11330a5a164","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_418356a87ee13600","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ivkueg6","thanks_reply_id":"ivl0biz","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_d61bad1b83571723","answerer_user_id":"anon_55f47e0d7daca0f6","subreddit":"programming","timestamp":"2022-11-15T03:56:20+00:00","post_id":"yvm42y","question":"Where does Salesforce (as a development platform) stand today, or in the near future? As a career path Is it better to stick with them or try and find something more \"traditional\" (js, java, python etc. )?","preferred_answer":"Ok, so serious answer, I hear a lot of chatter about Salesforce, and I've tried it myself with GIS applications and related usage, but to be honest it's an over-hyped sales management platform. I mean, honestly, a lot of what makes up Salesforce could be built internally with basic visualization tools like Tableau and PowerBI. Salesforce gets its selling point because people in big companies don't want to take the time to build things themselves and want to be spoon-fed dashboards.","full_conversation":[{"role":"OP","user_id":"anon_d61bad1b83571723","comment_id":"yvm42y","kind":"post","text":"Where does Salesforce (as a development platform) stand today, or in the near future? As a career path Is it better to stick with them or try and find something more \"traditional\" (js, java, python etc. )?","timestamp":"2022-11-15T03:56:20+00:00","score":0},{"role":"answerer","user_id":"anon_55f47e0d7daca0f6","comment_id":"iwflevc","kind":"comment","text":"Ok, so serious answer, I hear a lot of chatter about Salesforce, and I've tried it myself with GIS applications and related usage, but to be honest it's an over-hyped sales management platform. I mean, honestly, a lot of what makes up Salesforce could be built internally with basic visualization tools like Tableau and PowerBI. Salesforce gets its selling point because people in big companies don't want to take the time to build things themselves and want to be spoon-fed dashboards.","timestamp":"2022-11-15T07:01:44+00:00","score":4},{"role":"OP","user_id":"anon_d61bad1b83571723","comment_id":"iwfnx8i","kind":"comment","text":"Thanks for your honest response!\n\n i guess my main question is do you you reckon it would be enough in demand in a few years that its worth to stay put and invest in that?","timestamp":"2022-11-15T07:35:41+00:00","score":2},{"role":"answerer","user_id":"anon_55f47e0d7daca0f6","comment_id":"iwfoeu7","kind":"comment","text":"There's so many factors that can go into answering that, which for you would be totally different than the person next to you. I think you need to identify for yourself a couple of things: what do you want to do in life that makes you tick, not just a paycheck. Second, what's most likely to be around in a few years or are you okay with changing fast. Third, don't peg your career on something sticking around, you'll always mis-time it. Focus on what you're good at and do better than others, and excel in that. The work will come your way as a result - a little self-marketing helps a lot too.","timestamp":"2022-11-15T07:42:32+00:00","score":5},{"role":"OP","user_id":"anon_d61bad1b83571723","comment_id":"iwfojr5","kind":"comment","text":"Cheers mate thats very helpful!","timestamp":"2022-11-15T07:44:26+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d61bad1b83571723","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_55f47e0d7daca0f6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iwflevc","thanks_reply_id":"iwfnx8i","post_score":0,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_1c0a479ea0ae8e69","answerer_user_id":"anon_1774bd7450bdae51","subreddit":"programming","timestamp":"2022-11-17T01:13:53+00:00","post_id":"yxc95l","question":"Is there a language that supports this natively? (Notice this is not float128 bit, but a different definition which apparently helps to prevent some roundoff errors as the delta is a number easier to deduce about(a base 10 multiply)).","preferred_answer":"Looks like there's a third party crate (library) for it in Rust. Termed d128 when you use it (vs f64 or i32 or u8 for example).\n\nhttps://crates.io/crates/decimal\n\nDue to how Rust works, this is basically as good as native support. Rust makes it easier yet more correct than any other language imo to grab a library to do something, and the std library is very small to support this. There's a wide swath of \"standard\" libraries that act as pieces of a bigger stdlib, but thus more modular.\n\nBiggest \"annoyance\" is that you'll need to use macros for literals. Which still ends up better than other languages using strings to specify stuff.\n\n let x = d128!(1.234);\n let y = d128!(1.111);\n let z = d128!(2.345);\n assert_eq(x + y, z);\n\nCombine that with it being very common in Rust to wrap primitives in other types with zero overhead, to make sure you only have valid data (e.g. can't add dollars and euros), and it should make it incredibly convenient to program in.\n\nAnd as fast as C++ and C, but better, yadda yadda. Go find someone else to give you the full Rust spiel.\n\nHowever, it's plausible you may want to shop around. [This crate](https://crates.io/crates/rust_decimal) isn't quite what you're looking for, but seems better supported. (In that it's 96 bit fixed decimal.) Although, Rust lets libraries just be finished, it looks like the one I linked first might have some small papercuts?","full_conversation":[{"role":"OP","user_id":"anon_1c0a479ea0ae8e69","comment_id":"yxc95l","kind":"post","text":"Is there a language that supports this natively? (Notice this is not float128 bit, but a different definition which apparently helps to prevent some roundoff errors as the delta is a number easier to deduce about(a base 10 multiply)).","timestamp":"2022-11-17T01:13:53+00:00","score":38},{"role":"answerer","user_id":"anon_1774bd7450bdae51","comment_id":"iworrmb","kind":"comment","text":"Looks like there's a third party crate (library) for it in Rust. Termed d128 when you use it (vs f64 or i32 or u8 for example).\n\nhttps://crates.io/crates/decimal\n\nDue to how Rust works, this is basically as good as native support. Rust makes it easier yet more correct than any other language imo to grab a library to do something, and the std library is very small to support this. There's a wide swath of \"standard\" libraries that act as pieces of a bigger stdlib, but thus more modular.\n\nBiggest \"annoyance\" is that you'll need to use macros for literals. Which still ends up better than other languages using strings to specify stuff.\n\n let x = d128!(1.234);\n let y = d128!(1.111);\n let z = d128!(2.345);\n assert_eq(x + y, z);\n\nCombine that with it being very common in Rust to wrap primitives in other types with zero overhead, to make sure you only have valid data (e.g. can't add dollars and euros), and it should make it incredibly convenient to program in.\n\nAnd as fast as C++ and C, but better, yadda yadda. Go find someone else to give you the full Rust spiel.\n\nHowever, it's plausible you may want to shop around. [This crate](https://crates.io/crates/rust_decimal) isn't quite what you're looking for, but seems better supported. (In that it's 96 bit fixed decimal.) Although, Rust lets libraries just be finished, it looks like the one I linked first might have some small papercuts?","timestamp":"2022-11-17T05:26:13+00:00","score":6},{"role":"OP","user_id":"anon_1c0a479ea0ae8e69","comment_id":"iwpaot2","kind":"comment","text":"It looks great! thanks.\n\nI noticed that some things Rust got much better than C/C++ is for example full Unicode support. to print emoji of 32 bit in C++ was so frustrating, and I tried to copy bit hacks from StackOverflow, all kinds of incantations to the compiler, then in Rust I just copied it from the web and posted it inside Println! . Is I think really the advantage they built a language good from the go learning from mistakes. And I think Julia too follows that principle too of learning from past mistakes (I just discovered they have a Decimal library).","timestamp":"2022-11-17T09:38:37+00:00","score":1},{"role":"answerer","user_id":"anon_1774bd7450bdae51","comment_id":"iwq1fen","kind":"comment","text":"Rust is all about correctness. Yet also being fast and efficient. It's pretty cool.\n\nWhat might blow your mind even more is how Rust makes sure filesystem strings are handled correctly too.\n\nOther languages like Python also have byte strings and Unicode strings. But Rust goes even further and has an OsString type. Because on Windows, they use UTF-16. Or rather an extended version also containing broken characters, known as WTF-8 iirc. And then Linux file system strings are just a list of bytes that don't contain a slash of nul byte. So Rust abstracts over all of that if you're interacting with OS.\n\nVersus e.g. Python, where you're boned mostly if it's not a normal Unicode string.\n\nThere's such a culture of making sure to do things correctly, it's such a pleasant environment to code in. And yet still program without overhead, when possible.\n\nI love it.","timestamp":"2022-11-17T14:29:13+00:00","score":2},{"role":"OP","user_id":"anon_1c0a479ea0ae8e69","comment_id":"iwqvl20","kind":"comment","text":"Hi Green,\n\nI do love Rust, however there were some things I found a little hard to handle:\n\n1. The immutability and referencing - I guess it takes time to get used to, and if you follow the compiler (which is more helpful by far than cl, clang, gcc) you will nail it, but it feels a bit like hacking around. \n2. It seems to me that to be most effective in Rust it is better to learn to use more functional style and make half imperative/half functional programs, am I right? I think it's what Rust is most efficient at. And currently of course it seems to me that to learn to code some numerical algorithm functiona it is easier to look for a book in some other language and import. Any suggestion how I can improve more on that, maybe learn from OCaml books and port some ideas? \n\nI think definitely Rust and Julia are 2 of the most interesting newer languages right now (some will say Clojure, it's less my thing personally) that really found a sweet spot of succeeding in creating something that was needed versus just making a language extension which will bloat an already too big system (paraphrasing a YouTube video I saw \"Stop Writing Dead Programs\" though he is a bit too extreme).\n\nRon","timestamp":"2022-11-17T17:53:36+00:00","score":1},{"role":"answerer","user_id":"anon_1774bd7450bdae51","comment_id":"iwqwpfh","kind":"comment","text":"Did you mean to send this as a PM? In your other comment, you didn't have the salutations and sign-off.\n\nI'll respond in a different comment.","timestamp":"2022-11-17T18:00:51+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_1c0a479ea0ae8e69","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1774bd7450bdae51","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iworrmb","thanks_reply_id":"iwpaot2","post_score":38,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_e89ee00e186efb09","answerer_user_id":"anon_47da2df896e222e6","subreddit":"programming","timestamp":"2022-11-18T00:29:20+00:00","post_id":"yy6b33","question":"Is this monitor good for programming? Is 4K good for it in general or is too much?","preferred_answer":"27\" 4k may be too small to comfortably read. Other than that it seems a good panel. At least on paper. \n\nLook for 1440p in the 24-27\" range. But definitely IPS (or rather: not TN)\n\nAlso 1440p is easier on the gpu if you want to play on it.","full_conversation":[{"role":"OP","user_id":"anon_e89ee00e186efb09","comment_id":"yy6b33","kind":"post","text":"Is this monitor good for programming? Is 4K good for it in general or is too much?","timestamp":"2022-11-18T00:29:20+00:00","score":0},{"role":"answerer","user_id":"anon_47da2df896e222e6","comment_id":"iwtxfr5","kind":"comment","text":"27\" 4k may be too small to comfortably read. Other than that it seems a good panel. At least on paper. \n\nLook for 1440p in the 24-27\" range. But definitely IPS (or rather: not TN)\n\nAlso 1440p is easier on the gpu if you want to play on it.","timestamp":"2022-11-18T09:12:59+00:00","score":2},{"role":"OP","user_id":"anon_e89ee00e186efb09","comment_id":"iwusolt","kind":"comment","text":"Hey, thank you for your feedback! I ended up buying this one because it was on Black Friday sale at 219€ instead of 299€, just for the sake of trying it. It is sold and shipped by Amazon, so even if I end up not liking how it looks I can safely return it.","timestamp":"2022-11-18T14:48:51+00:00","score":1},{"role":"answerer","user_id":"anon_47da2df896e222e6","comment_id":"iww4vug","kind":"comment","text":"Check for defect pixels. The last cheap-at-the-time 4k IPS LG I bought was like looking in the night sky due to always lit subpixels.","timestamp":"2022-11-18T20:17:45+00:00","score":1},{"role":"OP","user_id":"anon_e89ee00e186efb09","comment_id":"iwxa4ls","kind":"comment","text":"Thank you for the heads-up!","timestamp":"2022-11-19T01:25:19+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_e89ee00e186efb09","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_47da2df896e222e6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iwtxfr5","thanks_reply_id":"iwusolt","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_3c48769c42b2c571","answerer_user_id":"anon_fc37d5a54787dc00","subreddit":"programming","timestamp":"2022-12-04T03:25:26+00:00","post_id":"zbz54e","question":"Question about this college web program. Is this similar to a web dev boot camp? Can I get web dev jobs with this certificate?","preferred_answer":"Seems strange to include a course on Python and Data Science for Web Programming. SQL has always been my bread and butter, even doing web programming, because you are always going to have a database. \n\nAnyway, web programming can involve a wide range of expertise these days, even if CSS, HTML, and JavaScript are still the core skills. More often that not, I'm asked to work with an API to get shipping rates.","full_conversation":[{"role":"OP","user_id":"anon_3c48769c42b2c571","comment_id":"zbz54e","kind":"post","text":"Question about this college web program. Is this similar to a web dev boot camp? Can I get web dev jobs with this certificate?","timestamp":"2022-12-04T03:25:26+00:00","score":0},{"role":"answerer","user_id":"anon_fc37d5a54787dc00","comment_id":"iyu29mq","kind":"comment","text":"Seems strange to include a course on Python and Data Science for Web Programming. SQL has always been my bread and butter, even doing web programming, because you are always going to have a database. \n\nAnyway, web programming can involve a wide range of expertise these days, even if CSS, HTML, and JavaScript are still the core skills. More often that not, I'm asked to work with an API to get shipping rates.","timestamp":"2022-12-04T03:58:56+00:00","score":1},{"role":"OP","user_id":"anon_3c48769c42b2c571","comment_id":"iyu4g2k","kind":"comment","text":"Ok thanks. What do you need for front end and back end? So far I've just been doing some self learning on html/css/js online, but I feel like I hit a bottleneck and I'm trying to get some more structured education. So I've look around and found this school near me that offers a web program at less than half the price of a bootcamp.","timestamp":"2022-12-04T04:19:02+00:00","score":1},{"role":"answerer","user_id":"anon_fc37d5a54787dc00","comment_id":"iyu6kri","kind":"comment","text":"Let's take React as an example. I started to learn this front end because it is used for crypto decentralized applications. First I copied everything from Tutorialspoint into my notes. Then everything from W3Schools. Then I read the book \"React Explained\" and now I'm reading the book \"React Cookbook\". So basically I am relying on books. At this point, I feel I need more \"cookbook\" style books because I got the basics but I need to learn how to do anything a project might require.\n\nThere are hundreds of frameworks you could learn. For example, Drupal is a great content management system you could use to create a web site with almost no custom coding. But all of the complexity is in its back-end administration. I used to be an expert at ASP dot NET but then Microsoft added so many options that there was no telling what sort of technology stack a .NET web site might be using.","timestamp":"2022-12-04T04:38:47+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3c48769c42b2c571","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fc37d5a54787dc00","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iyu29mq","thanks_reply_id":"iyu4g2k","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_7663478269df13ba","answerer_user_id":"anon_1da48571c016b22f","subreddit":"programming","timestamp":"2022-12-04T13:19:46+00:00","post_id":"zc9nu9","question":"is there a way to change the text format like in the given link","preferred_answer":"If you're on a UNIX / Linux then yes. With regards to Windows I'm a total noob.","full_conversation":[{"role":"OP","user_id":"anon_7663478269df13ba","comment_id":"zc9nu9","kind":"post","text":"is there a way to change the text format like in the given link","timestamp":"2022-12-04T13:19:46+00:00","score":0},{"role":"answerer","user_id":"anon_1da48571c016b22f","comment_id":"iyvczkr","kind":"comment","text":"If you're on a UNIX / Linux then yes. With regards to Windows I'm a total noob.","timestamp":"2022-12-04T13:36:13+00:00","score":1},{"role":"OP","user_id":"anon_7663478269df13ba","comment_id":"iyvd8f7","kind":"comment","text":"could i send you the text file and you can do it for me ? if its possible ? \n\nthank you","timestamp":"2022-12-04T13:38:39+00:00","score":-2},{"role":"answerer","user_id":"anon_1da48571c016b22f","comment_id":"iyvfr6v","kind":"comment","text":"I'm on phone in the nowhere. \n\nThere are tools online available, e.g. this one: https://jsonformatter.curiousconcept.com/#\n\nJust Google for: \"json formatter online\"","timestamp":"2022-12-04T14:03:07+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7663478269df13ba","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1da48571c016b22f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"iyvczkr","thanks_reply_id":"iyvd8f7","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_9fe12c9e6cea075b","answerer_user_id":"anon_3c3a739c71f4a557","subreddit":"programming","timestamp":"2022-12-12T00:21:50+00:00","post_id":"zjg55w","question":"Hello guy, how can I make such an App like this guy?","preferred_answer":"The chances that such an app would work are really low. There's a reason comments on that video are disabled.\n\nAlso, r/programming is not a support forum; try r/learnprogramming instead.","full_conversation":[{"role":"OP","user_id":"anon_9fe12c9e6cea075b","comment_id":"zjg55w","kind":"post","text":"Hello guy, how can I make such an App like this guy?","timestamp":"2022-12-12T00:21:50+00:00","score":0},{"role":"answerer","user_id":"anon_3c3a739c71f4a557","comment_id":"izvta5e","kind":"comment","text":"The chances that such an app would work are really low. There's a reason comments on that video are disabled.\n\nAlso, r/programming is not a support forum; try r/learnprogramming instead.","timestamp":"2022-12-12T05:22:40+00:00","score":5},{"role":"OP","user_id":"anon_9fe12c9e6cea075b","comment_id":"izwd2e6","kind":"comment","text":"I appreciate your answer. But why is it hard to make such an App work? At the end of the day it is just a replica, that is programmed differently.","timestamp":"2022-12-12T09:33:39+00:00","score":0},{"role":"answerer","user_id":"anon_3c3a739c71f4a557","comment_id":"izwho50","kind":"comment","text":"The app would be quite easy to build and design as far as apps go because it is only frontend. However, the chances that the scammer would pay the fee are almost zero.","timestamp":"2022-12-12T10:41:00+00:00","score":3},{"role":"OP","user_id":"anon_9fe12c9e6cea075b","comment_id":"izxffyt","kind":"comment","text":"Good point","timestamp":"2022-12-12T15:53:00+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_9fe12c9e6cea075b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3c3a739c71f4a557","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"izvta5e","thanks_reply_id":"izwd2e6","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_24efb863c56b0899","answerer_user_id":"anon_652c6a2caa7fcb1f","subreddit":"programming","timestamp":"2022-12-31T20:32:46+00:00","post_id":"1002zhe","question":"is there a way to program a number generator but the number aren't random like ,2,3,4, and so if yes is there a tutorial on YouTube and can I use it in websites and can I make it like stop when it finds a specific name or Number like 100 has the name Jesus if yes can i use it on a website","preferred_answer":"r/titlegore","full_conversation":[{"role":"OP","user_id":"anon_24efb863c56b0899","comment_id":"1002zhe","kind":"post","text":"is there a way to program a number generator but the number aren't random like ,2,3,4, and so if yes is there a tutorial on YouTube and can I use it in websites and can I make it like stop when it finds a specific name or Number like 100 has the name Jesus if yes can i use it on a website","timestamp":"2022-12-31T20:32:46+00:00","score":0},{"role":"answerer","user_id":"anon_652c6a2caa7fcb1f","comment_id":"j2fi8wg","kind":"comment","text":"r/titlegore","timestamp":"2022-12-31T22:03:57+00:00","score":10},{"role":"OP","user_id":"anon_24efb863c56b0899","comment_id":"j2fj8k5","kind":"comment","text":"I don't know if you're mocking me but thanks \n\n​\n\n​\n\nhappy new year","timestamp":"2022-12-31T22:11:14+00:00","score":5},{"role":"answerer","user_id":"anon_652c6a2caa7fcb1f","comment_id":"j2fk8kw","kind":"comment","text":"homie, you've got multiple questions in the form of incomplete sentences, all strung together with no punctuation and seemingly random capitalization. that shit is borderline *unreadable.*","timestamp":"2022-12-31T22:18:44+00:00","score":17},{"role":"OP","user_id":"anon_24efb863c56b0899","comment_id":"j2fo7ab","kind":"comment","text":"thanks, going to try to write better next time","timestamp":"2022-12-31T22:47:52+00:00","score":4}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_24efb863c56b0899","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_652c6a2caa7fcb1f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j2fi8wg","thanks_reply_id":"j2fj8k5","post_score":0,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_cc2ae239d476bd4a","answerer_user_id":"anon_56b787405f0f4fa4","subreddit":"programming","timestamp":"2023-01-02T16:29:42+00:00","post_id":"101gqen","question":"Hey all, super baby beginner here, I have literally no idea about coding/programming!! I am trying to do this thing (not sure what it is) and just don't know what anything is. Can somebody help?","preferred_answer":"You could look here: https://wiki.python.org/moin/BeginnersGuide/NonProgrammers","full_conversation":[{"role":"OP","user_id":"anon_cc2ae239d476bd4a","comment_id":"101gqen","kind":"post","text":"Hey all, super baby beginner here, I have literally no idea about coding/programming!! I am trying to do this thing (not sure what it is) and just don't know what anything is. Can somebody help?","timestamp":"2023-01-02T16:29:42+00:00","score":0},{"role":"answerer","user_id":"anon_56b787405f0f4fa4","comment_id":"j2ngpkp","kind":"comment","text":"You could look here: https://wiki.python.org/moin/BeginnersGuide/NonProgrammers","timestamp":"2023-01-02T17:16:00+00:00","score":2},{"role":"OP","user_id":"anon_cc2ae239d476bd4a","comment_id":"j2ngtzz","kind":"comment","text":"Thanks man, will look into this 💪","timestamp":"2023-01-02T17:16:47+00:00","score":3},{"role":"answerer","user_id":"anon_56b787405f0f4fa4","comment_id":"j2njvl2","kind":"comment","text":"Keep in mind that python has some peculiarities compared to more traditional programming languages like Java and C#. But the *idea* of variables, loops, control (if else) and arrays are the same. It's just that python has different ways of writing those instructions.","timestamp":"2023-01-02T17:36:33+00:00","score":1},{"role":"OP","user_id":"anon_cc2ae239d476bd4a","comment_id":"j2nlfeh","kind":"comment","text":"I still have no idea what these things are. I’ll be using python to start off because it seems to be the easiest to learn","timestamp":"2023-01-02T17:46:29+00:00","score":1},{"role":"answerer","user_id":"anon_56b787405f0f4fa4","comment_id":"j2qtpv7","kind":"comment","text":"Programming is giving detailed step by step instructions to a computer.\n\nVariables are things you store in the computer memory during the run of a program. They can be things like a number, a text, an image or whatever (note, this is not something stored on your harddrive).\n\nIf/else are used for instructions that are conditional: \"if this is the case, then do this. Otherwise do that\"\n\nLoops are for repeating instructions, like: \"do this ten times\" or \"do this until that happens\"","timestamp":"2023-01-03T08:02:42+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_cc2ae239d476bd4a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_56b787405f0f4fa4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j2ngpkp","thanks_reply_id":"j2ngtzz","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_8d075ca734f1a2db","answerer_user_id":"anon_5695d50e9af2ca95","subreddit":"programming","timestamp":"2023-01-07T23:19:14+00:00","post_id":"1062vz7","question":"Are you using ChatGPT at work yet?","preferred_answer":"Try something like \"write jest unit tests for this typescript function _____\"\n\nYou'll need to set up the imports and such but it'll likely do the rest for you.\n\nYou can probably specify the mocking framework too. It's kind of insane what it can do","full_conversation":[{"role":"OP","user_id":"anon_8d075ca734f1a2db","comment_id":"1062vz7","kind":"post","text":"Are you using ChatGPT at work yet?","timestamp":"2023-01-07T23:19:14+00:00","score":0},{"role":"answerer","user_id":"anon_5695d50e9af2ca95","comment_id":"j3ek1h5","kind":"comment","text":"Try something like \"write jest unit tests for this typescript function _____\"\n\nYou'll need to set up the imports and such but it'll likely do the rest for you.\n\nYou can probably specify the mocking framework too. It's kind of insane what it can do","timestamp":"2023-01-08T00:27:24+00:00","score":6},{"role":"OP","user_id":"anon_8d075ca734f1a2db","comment_id":"j3ekq7g","kind":"comment","text":"I am going to check this out. Thanks. Even if it just gives me all the code paths to test that would be handy. Writing tests is so important and yet so very tedious sometimes.","timestamp":"2023-01-08T00:32:21+00:00","score":2},{"role":"answerer","user_id":"anon_5695d50e9af2ca95","comment_id":"j3el4lt","kind":"comment","text":"I've been very impressed with what it's been able to come up with. As you get better at feeding it prompts or suggesting that it change the prior prompt, it will feel more like pair programing","timestamp":"2023-01-08T00:35:13+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8d075ca734f1a2db","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5695d50e9af2ca95","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j3ek1h5","thanks_reply_id":"j3ekq7g","post_score":0,"answer_score":6,"preferred_answer_is_top_level":false}} {"user_id":"anon_f0d6d7a5f5036801","answerer_user_id":"anon_873f92593aded8a2","subreddit":"programming","timestamp":"2023-01-16T21:23:01+00:00","post_id":"10dsjn8","question":"How Memory Safety Approaches Speed Up and Slow Down Development Velocity","preferred_answer":"If you don't want to read everything, read the last section.\n\n----\n\n> Years of 7DRL challenges has taught me that development velocity is the most important thing to optimize for. It doesn't matter how perfect your code is if it doesn't make it into the hands of the players in time.\n\nSo speed of development is the most important thing to optimize for. Says who? You.\n\n----\n\n> Modern non-memory-safe languages can use recent techniques to zero in on memory errors so quickly, that they can be fast to develop in. \n\nI see no measurement in the original page, let alone a reference to a proper study.\n\n\n----\n\n> Reference counting has a hidden superpower that can help track down logic problems.\n\nPeas help with rheumatism... Yep, I too can assert random stuff.\n\n----\n\n> A company needs to reduce costs to stay in business, including reducing development costs. \n\nSays who? You. I'm sure if you think a second about it, you'll think of examples of companies happy to maintain costs as they are and companies who need to increase costs to stay relevant (if only because they are in their growth phase, or if only because of inflation).\n\n----\n\n> Some napkin math[...] As you can see, software development can be much more expensive than power usage, so it makes sense to primarily optimize for development velocity.\n\nOh hang on, so because Google arguably pay more its devs than its electricity, then a company needs to reduce costs to stay in business? You have literally written that, only starting by the other end, i.e. a company needs to reduce costs to stay in business because Google arguably pay more its devs than its electricity.\n\nDo you see what I mean by unfocused and shallow?\n\n----\n\n> But by the end of this, you'll have a much better idea of which is best for a particular situation, whether it be a game development challenge, web server, or anything else. \n\nHang on, you have 4 points and you explain only 3, I feel lied to! Do you see what I mean by unfocused and shallow? Even the structure has problems.\n\n----\n\n> What Actually Is Developer Velocity?\n\nFinally, it's coming! That think you have been referring to without even saying what it is!\n\n> Development velocity is a nebulous concept\n\nNooooooo! I'm so disappointed! I thought, with the title, that we would come somewhere!\n\nOh hang on!\n\n> **I** would say it's how fast we can expand, modify, and maintain our codebase to deliver value to the user and not cause too much collateral damage.\n\nHum, there is indeed a concept there, it's very well known and not how it's called... The rest of the definition is as unfocused and vague.\n\n----\n\n> Manual Memory Management\n\nSo here you spend the first half saying MMM is hard and in your second part you are still saying it is hard but there's a bit of tooling to do controlled damage... (besides C++... but RAII has little to do with malloc/free, it's a technique that guarantees object consistency when they are, allocated or freed but it does not help with said object's allocation or freeing). \n\n----\n\n> Address Sanitizer increases run-time by 73%. This makes it almost as slow as garbage collection\n\nGood a source. But the source says it's the cost of instrumentation, so not something that stays in the final executable.\n\nSame thing exactly for your last citation about garbage collection... One does not estimate the cost of garbage collection by measuring the difference in execution time of 3 different languages with garbage collectors. There are too many non-GC related factors for them to be related.\n\nSo good, 2 citations, none used appropriately.\n\n(also you missed the fact that basically all the methods you talked about don't increase \"developer velocity\" because they don't solve the initial problem at all and they are heuristic, basically if you do something wrong but your test code does not cover it, your program will crash; so you can't count on them, so you need to be extra careful, so you are basically **always** on the \"slow\" path and you just hope that if something is subtly wrong that valgrind and co will capture it through your set of tests)\n\n----\n\n> Google Earth proved that this strategy can work well. In an average Google Earth quarter, only 3-5% of bug reports were traceable to memory safety problems, and Address Sanitizer made them trivial to reproduce in development mode. \n\nLiterally citation needed. \n\nThough interesting... and subtly wrong: the address sanitizer makes trivial detecting a memory management bug when you have a reproducer. That's why people need to report bugs first, they say how it happens, Google engineers do the same operations to reproduce the bug with AS activated and they get a nice report. If it were the opposite, the bug would never have been shipped in the first place.\n\n----\n\n> Some say that Rust is terrible language for prototyping, it makes draft coding very difficult, and that other languages are much faster to change. \n\n> Once you're done prototyping, it can be difficult to change your program, like moving through molasses. Refactoring can be a massive pain, especially if you change the way you store some data. \n\nHearsay! Who cares what john26toothstroker thinks of brainfuck's quaffablity?\n\nI'm not going to continue for ages, I think I illustrated my point enough.\n\n\n----\n\n----\n\n\n\n\n**In all seriousness now**, I'm not going to delve more into this. I can see you have not started a long time ago and you need time for things to consolidate in you head. And writing articles is probably a way to help you doing that. It is fine.\n\nYour writing here is unfocused (as in \"not easy to follow\"), pointless (as in \"we don't see where you wanna bring us\", shallow (as in \"most things are vague, sometimes not quite correct, sometimes wrong and your understanding does not seem deep enough (yet) to talk about the actual nuances of what you talk about\") and grandiloquent (as in \"your style is heavy (useless adverbs and repetitions) and flowery (choice of words) which becomes a big problem when you speak about existing concepts without knowing it\").\n\nThe only way to get better is to write more (and actively learn more) so it's tough now but it'll become easier.\n\nRegarding papers and measurements that could be worth it, here are a few random ones...\n\nhttps://link.springer.com/article/10.1007/s10664-017-9508-2\nhttps://link.springer.com/chapter/10.1007/978-3-642-27207-3_28\nhttps://peerj.com/articles/cs-406/\nhttps://thork.net/posts/20211015_how_effective_prototyping_euler50/\n\nIf you follow the citations, you should quickly get a larger understanding of how things are.","full_conversation":[{"role":"OP","user_id":"anon_f0d6d7a5f5036801","comment_id":"10dsjn8","kind":"post","text":"How Memory Safety Approaches Speed Up and Slow Down Development Velocity","timestamp":"2023-01-16T21:23:01+00:00","score":0},{"role":"answerer","user_id":"anon_873f92593aded8a2","comment_id":"j4o8d3s","kind":"comment","text":"If you don't want to read everything, read the last section.\n\n----\n\n> Years of 7DRL challenges has taught me that development velocity is the most important thing to optimize for. It doesn't matter how perfect your code is if it doesn't make it into the hands of the players in time.\n\nSo speed of development is the most important thing to optimize for. Says who? You.\n\n----\n\n> Modern non-memory-safe languages can use recent techniques to zero in on memory errors so quickly, that they can be fast to develop in. \n\nI see no measurement in the original page, let alone a reference to a proper study.\n\n\n----\n\n> Reference counting has a hidden superpower that can help track down logic problems.\n\nPeas help with rheumatism... Yep, I too can assert random stuff.\n\n----\n\n> A company needs to reduce costs to stay in business, including reducing development costs. \n\nSays who? You. I'm sure if you think a second about it, you'll think of examples of companies happy to maintain costs as they are and companies who need to increase costs to stay relevant (if only because they are in their growth phase, or if only because of inflation).\n\n----\n\n> Some napkin math[...] As you can see, software development can be much more expensive than power usage, so it makes sense to primarily optimize for development velocity.\n\nOh hang on, so because Google arguably pay more its devs than its electricity, then a company needs to reduce costs to stay in business? You have literally written that, only starting by the other end, i.e. a company needs to reduce costs to stay in business because Google arguably pay more its devs than its electricity.\n\nDo you see what I mean by unfocused and shallow?\n\n----\n\n> But by the end of this, you'll have a much better idea of which is best for a particular situation, whether it be a game development challenge, web server, or anything else. \n\nHang on, you have 4 points and you explain only 3, I feel lied to! Do you see what I mean by unfocused and shallow? Even the structure has problems.\n\n----\n\n> What Actually Is Developer Velocity?\n\nFinally, it's coming! That think you have been referring to without even saying what it is!\n\n> Development velocity is a nebulous concept\n\nNooooooo! I'm so disappointed! I thought, with the title, that we would come somewhere!\n\nOh hang on!\n\n> **I** would say it's how fast we can expand, modify, and maintain our codebase to deliver value to the user and not cause too much collateral damage.\n\nHum, there is indeed a concept there, it's very well known and not how it's called... The rest of the definition is as unfocused and vague.\n\n----\n\n> Manual Memory Management\n\nSo here you spend the first half saying MMM is hard and in your second part you are still saying it is hard but there's a bit of tooling to do controlled damage... (besides C++... but RAII has little to do with malloc/free, it's a technique that guarantees object consistency when they are, allocated or freed but it does not help with said object's allocation or freeing). \n\n----\n\n> Address Sanitizer increases run-time by 73%. This makes it almost as slow as garbage collection\n\nGood a source. But the source says it's the cost of instrumentation, so not something that stays in the final executable.\n\nSame thing exactly for your last citation about garbage collection... One does not estimate the cost of garbage collection by measuring the difference in execution time of 3 different languages with garbage collectors. There are too many non-GC related factors for them to be related.\n\nSo good, 2 citations, none used appropriately.\n\n(also you missed the fact that basically all the methods you talked about don't increase \"developer velocity\" because they don't solve the initial problem at all and they are heuristic, basically if you do something wrong but your test code does not cover it, your program will crash; so you can't count on them, so you need to be extra careful, so you are basically **always** on the \"slow\" path and you just hope that if something is subtly wrong that valgrind and co will capture it through your set of tests)\n\n----\n\n> Google Earth proved that this strategy can work well. In an average Google Earth quarter, only 3-5% of bug reports were traceable to memory safety problems, and Address Sanitizer made them trivial to reproduce in development mode. \n\nLiterally citation needed. \n\nThough interesting... and subtly wrong: the address sanitizer makes trivial detecting a memory management bug when you have a reproducer. That's why people need to report bugs first, they say how it happens, Google engineers do the same operations to reproduce the bug with AS activated and they get a nice report. If it were the opposite, the bug would never have been shipped in the first place.\n\n----\n\n> Some say that Rust is terrible language for prototyping, it makes draft coding very difficult, and that other languages are much faster to change. \n\n> Once you're done prototyping, it can be difficult to change your program, like moving through molasses. Refactoring can be a massive pain, especially if you change the way you store some data. \n\nHearsay! Who cares what john26toothstroker thinks of brainfuck's quaffablity?\n\nI'm not going to continue for ages, I think I illustrated my point enough.\n\n\n----\n\n----\n\n\n\n\n**In all seriousness now**, I'm not going to delve more into this. I can see you have not started a long time ago and you need time for things to consolidate in you head. And writing articles is probably a way to help you doing that. It is fine.\n\nYour writing here is unfocused (as in \"not easy to follow\"), pointless (as in \"we don't see where you wanna bring us\", shallow (as in \"most things are vague, sometimes not quite correct, sometimes wrong and your understanding does not seem deep enough (yet) to talk about the actual nuances of what you talk about\") and grandiloquent (as in \"your style is heavy (useless adverbs and repetitions) and flowery (choice of words) which becomes a big problem when you speak about existing concepts without knowing it\").\n\nThe only way to get better is to write more (and actively learn more) so it's tough now but it'll become easier.\n\nRegarding papers and measurements that could be worth it, here are a few random ones...\n\nhttps://link.springer.com/article/10.1007/s10664-017-9508-2\nhttps://link.springer.com/chapter/10.1007/978-3-642-27207-3_28\nhttps://peerj.com/articles/cs-406/\nhttps://thork.net/posts/20211015_how_effective_prototyping_euler50/\n\nIf you follow the citations, you should quickly get a larger understanding of how things are.","timestamp":"2023-01-17T02:33:13+00:00","score":4},{"role":"OP","user_id":"anon_f0d6d7a5f5036801","comment_id":"j4obg08","kind":"comment","text":"I wish you happiness, my friend. Thanks for taking the time.","timestamp":"2023-01-17T02:54:50+00:00","score":1},{"role":"answerer","user_id":"anon_873f92593aded8a2","comment_id":"j4ql76v","kind":"comment","text":"Oh what an emotional roller coaster. At first I thought you were one of those karma farming, low effort poster. Then it occurred to me that you might just be a junior trying to produce something so I started to feel bad. But now, having given indication of what needed citations, what was blatantly wrong and a few papers to start actually referencing good, proven stuff, you just ignore it. Karma farming it is then. Really wasted my time.","timestamp":"2023-01-17T16:06:56+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f0d6d7a5f5036801","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_873f92593aded8a2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j4o8d3s","thanks_reply_id":"j4obg08","post_score":0,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_7775f85dedbb8374","answerer_user_id":"anon_b0cc1f45bc604ae0","subreddit":"programming","timestamp":"2023-01-23T11:20:14+00:00","post_id":"10ja5w6","question":"Is learning JavaScript for Web Dev still a good choice for getting a job even if ChatGpt can do most anything ?","preferred_answer":"You are overthinking based on hype. ChatGPT is just a database of categorized information that a system has been designed to scrape the internet for in order to regurgitate something with some semblance of value based on a algorithm that is really good at classifying what it has scrapped based on the query you give it. It is not AI and it is not creating anything new on its own. Its just clever algorithms. Learn what you want, its your life to live. Dont get stuck in indecision purgatory.","full_conversation":[{"role":"OP","user_id":"anon_7775f85dedbb8374","comment_id":"10ja5w6","kind":"post","text":"Is learning JavaScript for Web Dev still a good choice for getting a job even if ChatGpt can do most anything ?","timestamp":"2023-01-23T11:20:14+00:00","score":0},{"role":"answerer","user_id":"anon_b0cc1f45bc604ae0","comment_id":"j5kh3xb","kind":"comment","text":"You are overthinking based on hype. ChatGPT is just a database of categorized information that a system has been designed to scrape the internet for in order to regurgitate something with some semblance of value based on a algorithm that is really good at classifying what it has scrapped based on the query you give it. It is not AI and it is not creating anything new on its own. Its just clever algorithms. Learn what you want, its your life to live. Dont get stuck in indecision purgatory.","timestamp":"2023-01-23T17:29:13+00:00","score":8},{"role":"OP","user_id":"anon_7775f85dedbb8374","comment_id":"j5l6zve","kind":"comment","text":"thank u bro im not stopping learning I just want to switch the learning path to get on this new AI revolution and I don't know how","timestamp":"2023-01-23T20:10:19+00:00","score":0},{"role":"answerer","user_id":"anon_b0cc1f45bc604ae0","comment_id":"j5lgfzf","kind":"comment","text":"Learn any programming languange, doesnt matter which. Understand the concepts.\n\nA few years back AI and ML techniques were applied in natrual language processing before they ultimetly became better known for AI and ML. After you learn a programing language look into what information is available out there for Classification algorithms for data. K-means clustering is one I remember from way back but there are more now. Then look into Neural networks and how they work.\n\nAfter that you will have a rought surface level grasp on what AI and ML **REALLY IS. IT IS NOT A SENTIENT BEING. ITS JUST CLEVER GROUPING AND CLASSIFYING OF INFORMATION THAT ALREADY EXISTS AND IT JUST GETS BETTER AT CONVERGING ON ANSWERS THE MORE TIMES IT REPEATS THIS TASK.**\n\nIts all just complicated techniques for classifying data, It is not self aware computers. Many people on the internet just want to come off like knowledgable gurus when in reallity they are preying on FUD. Dont fall for that shit.","timestamp":"2023-01-23T21:08:42+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7775f85dedbb8374","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b0cc1f45bc604ae0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j5kh3xb","thanks_reply_id":"j5l6zve","post_score":0,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_0302f951e4542bf2","answerer_user_id":"anon_e7b4323db6bd4b69","subreddit":"programming","timestamp":"2023-01-25T02:10:12+00:00","post_id":"10kn9oe","question":"Is web scraping Amazon legal and safe? (Further details in comment section)","preferred_answer":"Don't sweat the legality. What you are doing is not illegal in any way.\n\nThe worst you'd be doing with something like this would be violating terms of service. In this case, I doubt that would matter at all either.","full_conversation":[{"role":"OP","user_id":"anon_0302f951e4542bf2","comment_id":"10kn9oe","kind":"post","text":"Is web scraping Amazon legal and safe? (Further details in comment section)","timestamp":"2023-01-25T02:10:12+00:00","score":3},{"role":"answerer","user_id":"anon_e7b4323db6bd4b69","comment_id":"j5rp3yf","kind":"comment","text":"Don't sweat the legality. What you are doing is not illegal in any way.\n\nThe worst you'd be doing with something like this would be violating terms of service. In this case, I doubt that would matter at all either.","timestamp":"2023-01-25T02:16:05+00:00","score":3},{"role":"OP","user_id":"anon_0302f951e4542bf2","comment_id":"j5rqnoz","kind":"comment","text":"Thanks for your input. I'm now wondering about the login issue.","timestamp":"2023-01-25T02:27:20+00:00","score":1},{"role":"answerer","user_id":"anon_e7b4323db6bd4b69","comment_id":"j5rrxxm","kind":"comment","text":"Do you have some reason not to trust this programmer? You have to be logged in to view the pages you want to view.","timestamp":"2023-01-25T02:36:46+00:00","score":1},{"role":"OP","user_id":"anon_0302f951e4542bf2","comment_id":"j5rtckj","kind":"comment","text":"Well from his video demonstration, his program requires me to input my credentials directly into his program instead of doing that through Amazon's website. I raised that issue with him, and he found another solution which involved inputting the Amazon login page link into his program's \"entry field\". I'm wondering if any of that poses a security issue for me being that I'm still accessing the Amazon login page, just through his program. I don't know if it collects my login info, which is the scary part.","timestamp":"2023-01-25T02:47:03+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0302f951e4542bf2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e7b4323db6bd4b69","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j5rp3yf","thanks_reply_id":"j5rqnoz","post_score":3,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_eed88521797ac799","answerer_user_id":"anon_bc3d142713f0663d","subreddit":"programming","timestamp":"2023-01-30T08:34:07+00:00","post_id":"10owwxp","question":"Trying to install instant-ngp on windows and keep getting build errors, pastebin of VS command prompt output linked","preferred_answer":"Lo and behold: [https://github.com/NVlabs/instant-ngp/issues/198](https://github.com/NVlabs/instant-ngp/issues/198)\n\nIt's 2023 and still, no developer should dare uses spaces in paths.","full_conversation":[{"role":"OP","user_id":"anon_eed88521797ac799","comment_id":"10owwxp","kind":"post","text":"Trying to install instant-ngp on windows and keep getting build errors, pastebin of VS command prompt output linked","timestamp":"2023-01-30T08:34:07+00:00","score":1},{"role":"answerer","user_id":"anon_bc3d142713f0663d","comment_id":"j6hiul9","kind":"comment","text":"Lo and behold: [https://github.com/NVlabs/instant-ngp/issues/198](https://github.com/NVlabs/instant-ngp/issues/198)\n\nIt's 2023 and still, no developer should dare uses spaces in paths.","timestamp":"2023-01-30T10:56:28+00:00","score":2},{"role":"OP","user_id":"anon_eed88521797ac799","comment_id":"j6mfzai","kind":"comment","text":"Thanks, and that's interesting, I wouldn't have thought that mattered in windows...\n\nnow I'm getting another set of issues where it looks like it can't copy things? I've tried unchecking the \"read-only\" attribute but I can't get it to change? I'm also not 100% sure it's actually the problem though, but it doesn't look like I'm unable to manually move the files...\n\nthis is the new output: https://pastebin.com/0mAZtJ2b","timestamp":"2023-01-31T10:59:57+00:00","score":1},{"role":"answerer","user_id":"anon_bc3d142713f0663d","comment_id":"j6rua4a","kind":"comment","text":"Whoever implemented that error reporting should be tracked and given a stern look.\n\nI don't know for sure what's happening there, but I think instant-ngp.vcxproj tries to execute a post-build step (copy files), and it's getting confused. The read-only attribute is unlikely to be relevant here. Possible causes: the double path delimiter before nvngx_dlss.dll, cudart64_12.dll or nvngx_dlss.dll are not found at their respective locations, or there is a missing variable/filename after H:/AI_projects/ns (in the vcxproj). I would say that this might be a known bug (solvable by switching to a newer/older version), or you forgot to change some paths or manually deploy some files.\n\nWhen things go wrong you must always use -j 1, as it has better chances of making the problem more obvious. Also, I hope you nuked everything and started from scratch after renaming AI_Projects, otherwise there might be some stale artifacts there.","timestamp":"2023-02-01T13:28:10+00:00","score":1},{"role":"OP","user_id":"anon_eed88521797ac799","comment_id":"j6w91h8","kind":"comment","text":"I wouldn't be surprised, it could also be because my card is a 2k series instead of 3k or up and I've installed the wrong cuda files for it or something... and Kind of, I deleted the contents of the build folder... I might completely start everything all over again and just suck it up...","timestamp":"2023-02-02T09:30:27+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_eed88521797ac799","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bc3d142713f0663d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j6hiul9","thanks_reply_id":"j6mfzai","post_score":1,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_a16e3e52e9de2532","answerer_user_id":"anon_1dee51978b731e21","subreddit":"programming","timestamp":"2023-01-30T16:15:00+00:00","post_id":"10p6qg9","question":"When Do I Need Microservices?","preferred_answer":"I feel like the most common time that I see people asking \"should we be using microservices\" is if they have one monolithic deployment that handles everything, and there is a consideration for splitting it up. I don't feel like your article really addresses this, as it is mostly about choosing microservices for scalability, but there's nothing stopping a person from containerizing and scaling the monolithic deployment in the same way.","full_conversation":[{"role":"OP","user_id":"anon_a16e3e52e9de2532","comment_id":"10p6qg9","kind":"post","text":"When Do I Need Microservices?","timestamp":"2023-01-30T16:15:00+00:00","score":589},{"role":"answerer","user_id":"anon_1dee51978b731e21","comment_id":"j6j2lcf","kind":"comment","text":"I feel like the most common time that I see people asking \"should we be using microservices\" is if they have one monolithic deployment that handles everything, and there is a consideration for splitting it up. I don't feel like your article really addresses this, as it is mostly about choosing microservices for scalability, but there's nothing stopping a person from containerizing and scaling the monolithic deployment in the same way.","timestamp":"2023-01-30T18:13:36+00:00","score":7},{"role":"OP","user_id":"anon_a16e3e52e9de2532","comment_id":"j6jpq6z","kind":"comment","text":"Thanks for the feedback! You highlight a situation when people ask this question.\n\nIn the article, I state that a condition of implementing microservices must be that you are \"Unable to be horizontally scale through active-active load balancing (i.e cloning the monolith)\". How can I reword this point in a manner that indicates that a monolithic architecture can be scaled through the containerization of the monolith?","timestamp":"2023-01-30T20:36:51+00:00","score":1},{"role":"answerer","user_id":"anon_1dee51978b731e21","comment_id":"j6kevam","kind":"comment","text":"The line you quoted points out that a monolithic service is also a possibility, but kind of treats it like the reader should be able to identify when load balancing a monolith isn't a favorable choice. I think that's the main question that an article called \"when do I need microservices\" should be answering, and you don't really get into how someone should make that determination.\n\nI think additionally, there might be other scenarios where it is a little more ambiguous. What if the monolith scales fine with load balancing? Is there still a point where I should consider shifting to microservices? I can think of some scenarios where the answer is yes, and I can think of some where the answer is no. These are the types of things I would've expected the article to tackle. \n\nI also agree with /u/captcrax that the \"Conceptualization of Microservices\" section really just applies to services in general. I don't really see anything in that section that applies specifically to microservices.","timestamp":"2023-01-30T23:16:36+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a16e3e52e9de2532","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1dee51978b731e21","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j6j2lcf","thanks_reply_id":"j6jpq6z","post_score":589,"answer_score":7,"preferred_answer_is_top_level":false}} {"user_id":"anon_a45a5a24c89369dc","answerer_user_id":"anon_b99e8a43eab7d785","subreddit":"programming","timestamp":"2023-01-31T04:34:37+00:00","post_id":"10pom5o","question":"Which one should I learn if I want to find a front end job in the shortest time? CSS? HTML? JavaScript? Any suggestions?","preferred_answer":"You should learn HTML, then CSS, then JS, as the minimum essentials. Then learn some frameworks.","full_conversation":[{"role":"OP","user_id":"anon_a45a5a24c89369dc","comment_id":"10pom5o","kind":"post","text":"Which one should I learn if I want to find a front end job in the shortest time? CSS? HTML? JavaScript? Any suggestions?","timestamp":"2023-01-31T04:34:37+00:00","score":0},{"role":"answerer","user_id":"anon_b99e8a43eab7d785","comment_id":"j6ngbqg","kind":"comment","text":"You should learn HTML, then CSS, then JS, as the minimum essentials. Then learn some frameworks.","timestamp":"2023-01-31T16:05:15+00:00","score":1},{"role":"OP","user_id":"anon_a45a5a24c89369dc","comment_id":"j6q7sg5","kind":"comment","text":"Thanks for suggestions. What frameworks you think I need to learn","timestamp":"2023-02-01T02:50:37+00:00","score":1},{"role":"answerer","user_id":"anon_b99e8a43eab7d785","comment_id":"j6q9dw0","kind":"comment","text":"The two most popular ones as a start.","timestamp":"2023-02-01T03:02:20+00:00","score":1},{"role":"OP","user_id":"anon_a45a5a24c89369dc","comment_id":"j6q9fjz","kind":"comment","text":"For example?","timestamp":"2023-02-01T03:02:41+00:00","score":1},{"role":"answerer","user_id":"anon_b99e8a43eab7d785","comment_id":"j6rr4dp","kind":"comment","text":"I'd say React.js (Facebook) and Angular (Google) are the two most popular.\n\nThe older version of Angular is Angular.js which is written in JavaScript. The newer version is just called Angular and is written in TypeScript. Typescript is a language you should learn after having used JavaScript for a while. It fixes some of the problems with JavaScript and compiles to JavaScript.","timestamp":"2023-02-01T13:00:31+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_a45a5a24c89369dc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b99e8a43eab7d785","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j6ngbqg","thanks_reply_id":"j6q7sg5","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_95c4f263e5069982","answerer_user_id":"anon_08b45e552a60bec6","subreddit":"programming","timestamp":"2023-02-02T11:07:25+00:00","post_id":"10rnbtu","question":"Why I don't use the Else clause","preferred_answer":"Why are there no examples? Something like this I'd want to see code showing HOW you remove them and what you do instead; why that way is clearer. Are you just ending `then` blocks with `return`? What about languages that don't have the ternaries you mentioned? What about `default:` in a `switch`?","full_conversation":[{"role":"OP","user_id":"anon_95c4f263e5069982","comment_id":"10rnbtu","kind":"post","text":"Why I don't use the Else clause","timestamp":"2023-02-02T11:07:25+00:00","score":0},{"role":"answerer","user_id":"anon_08b45e552a60bec6","comment_id":"j6wgkjr","kind":"comment","text":"Why are there no examples? Something like this I'd want to see code showing HOW you remove them and what you do instead; why that way is clearer. Are you just ending `then` blocks with `return`? What about languages that don't have the ternaries you mentioned? What about `default:` in a `switch`?","timestamp":"2023-02-02T11:16:20+00:00","score":23},{"role":"OP","user_id":"anon_95c4f263e5069982","comment_id":"j70wi9j","kind":"comment","text":"Sorry I'm new to writing articles and the idea is still being developed. I appreciate your feedback. \n\n\nu/AteYngNghymraeg example would be what I would do with languages without ternaries. Switch statements are a lot harder to refactor.\n\nEdit: I added some examples that might help illustrate the point.","timestamp":"2023-02-03T07:15:54+00:00","score":1},{"role":"answerer","user_id":"anon_08b45e552a60bec6","comment_id":"j71abur","kind":"comment","text":"OK you've added some examples, but I don't think they help your case much. You talk repeatedly about how `else`s are extra lines that add nothing to the code, then just replace them with `return`. It seems that you've just swapped one keyword for another one, somehow claiming that that second one is more meaningful and less costly.\n\nNow while some people argue against early returns in all cases, I'm fine with using them, especially for guard clauses and similar. But when two branches of code have equal weighting because it is a simple decision and not just checking that parameters are correct I'll always use `else` instead of `return` in those cases because it makes it much more explicit that the two branches are considered main paths not simple pre-checks.","timestamp":"2023-02-03T10:26:22+00:00","score":2},{"role":"OP","user_id":"anon_95c4f263e5069982","comment_id":"j71dct4","kind":"comment","text":"I’m not sure I understand what you mean by “two branches of code with equal weight” \n\nIf you could elaborate with an example I’d appreciate it. Do you mean simple variable assignment or two completely separate execution paths with equal weight in the same execution cycle? Or maybe something different","timestamp":"2023-02-03T11:07:12+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_95c4f263e5069982","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_08b45e552a60bec6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j6wgkjr","thanks_reply_id":"j70wi9j","post_score":0,"answer_score":23,"preferred_answer_is_top_level":true}} {"user_id":"anon_0bd0adaff243cb4f","answerer_user_id":"anon_69ed451acfefc9f7","subreddit":"programming","timestamp":"2023-02-08T15:37:33+00:00","post_id":"10x0wgt","question":"I love CODING and MOVIES. The Oscar Awards are coming next month. So I built a fun game of Oscar votes using Nextjs, TailwindCSS, Supabase. People started voting. Who do you want to win it this year?","preferred_answer":"Cool project!","full_conversation":[{"role":"OP","user_id":"anon_0bd0adaff243cb4f","comment_id":"10x0wgt","kind":"post","text":"I love CODING and MOVIES. The Oscar Awards are coming next month. So I built a fun game of Oscar votes using Nextjs, TailwindCSS, Supabase. People started voting. Who do you want to win it this year?","timestamp":"2023-02-08T15:37:33+00:00","score":0},{"role":"answerer","user_id":"anon_69ed451acfefc9f7","comment_id":"j7pwz6n","kind":"comment","text":"Cool project!","timestamp":"2023-02-08T16:02:20+00:00","score":3},{"role":"OP","user_id":"anon_0bd0adaff243cb4f","comment_id":"j7px4nt","kind":"comment","text":"thank you so much, this means a lot to me you have no idea, i appreciate that <3\n\nare you also a fan of movies?","timestamp":"2023-02-08T16:03:20+00:00","score":2},{"role":"answerer","user_id":"anon_69ed451acfefc9f7","comment_id":"j7pycna","kind":"comment","text":"I am. Denis Villeneuve is my favourite director.","timestamp":"2023-02-08T16:11:19+00:00","score":1},{"role":"OP","user_id":"anon_0bd0adaff243cb4f","comment_id":"j7pyzz1","kind":"comment","text":"I also love his movies. My favourite one till now is Prisoners. A really dark and emotional movie with outstanding acting performances. The script was also so good.","timestamp":"2023-02-08T16:15:36+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0bd0adaff243cb4f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_69ed451acfefc9f7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j7pwz6n","thanks_reply_id":"j7px4nt","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_65cc95dad90de798","answerer_user_id":"anon_1ac07c89ff3ee0c3","subreddit":"programming","timestamp":"2023-02-09T01:57:15+00:00","post_id":"10xi27d","question":"HELP\n\nHi guys, I'm 15 years old and I've been wanting to start programming since I was 13, but for that I've always been waiting for the moment to build my own computer, at that time my family had a reasonable condition so I could buy a xeon kit but it's been 2 years and no it was not possible to buy any more parts, from then on fear set in, I want to leave high school programming but without a pc there is no way my aunt worried about me gave me a humble notebook, I thanked her a lot for 3 days for that, but the notebook is pretty bad It's an np-150 but even so I really appreciate it, even knowing the limitation of the note I researched lighter operating systems and discovered linux tyni core and wanted to know if it was possible to program with it, and since the note is very weak I think of using it with python (please someone help me I don't want to finish high school unemployed!!!!!!!","preferred_answer":"Games are one type of software development that may need more computing power, but only to run the game to test what you're working on. A good way to start doing game dev is to pick a game that 1) you enjoy and 2) has a moding community. Then start making mods for it. \n\nIf you mean getting job when you say making programs for companies, that may be hard without any experience. I don't know what your situation is or what it's like where you are, but 15 is young for a job even if it's an internship. It's a great time to start learning though. If you really want a job ASAP, look up job postings in your area and see what they are looking for. Focus on learning that. When you first start going on interviews you will likely do poorly. Use this as a chance to learn. Keep track of what questions they asked that you struggled with. Ask them if there are any areas you should know better. Getting started is the hard part but it if you keep learning, you'll get something eventually. Software development pays well. You may not be making money soon but the time you take to learn will pay for it self.\n\nIn general, working on some free tutorials you find online is a great place to start. This course may be a good fit for you. It's a free Python course. https://learn.udacity.com/courses/ud1110 There is nothing stopping you from writing your first bits of code in the next hour or two if you start that course now","full_conversation":[{"role":"OP","user_id":"anon_65cc95dad90de798","comment_id":"10xi27d","kind":"post","text":"HELP\n\nHi guys, I'm 15 years old and I've been wanting to start programming since I was 13, but for that I've always been waiting for the moment to build my own computer, at that time my family had a reasonable condition so I could buy a xeon kit but it's been 2 years and no it was not possible to buy any more parts, from then on fear set in, I want to leave high school programming but without a pc there is no way my aunt worried about me gave me a humble notebook, I thanked her a lot for 3 days for that, but the notebook is pretty bad It's an np-150 but even so I really appreciate it, even knowing the limitation of the note I researched lighter operating systems and discovered linux tyni core and wanted to know if it was possible to program with it, and since the note is very weak I think of using it with python (please someone help me I don't want to finish high school unemployed!!!!!!!","timestamp":"2023-02-09T01:57:15+00:00","score":0},{"role":"answerer","user_id":"anon_1ac07c89ff3ee0c3","comment_id":"j7sxzrl","kind":"comment","text":"Games are one type of software development that may need more computing power, but only to run the game to test what you're working on. A good way to start doing game dev is to pick a game that 1) you enjoy and 2) has a moding community. Then start making mods for it. \n\nIf you mean getting job when you say making programs for companies, that may be hard without any experience. I don't know what your situation is or what it's like where you are, but 15 is young for a job even if it's an internship. It's a great time to start learning though. If you really want a job ASAP, look up job postings in your area and see what they are looking for. Focus on learning that. When you first start going on interviews you will likely do poorly. Use this as a chance to learn. Keep track of what questions they asked that you struggled with. Ask them if there are any areas you should know better. Getting started is the hard part but it if you keep learning, you'll get something eventually. Software development pays well. You may not be making money soon but the time you take to learn will pay for it self.\n\nIn general, working on some free tutorials you find online is a great place to start. This course may be a good fit for you. It's a free Python course. https://learn.udacity.com/courses/ud1110 There is nothing stopping you from writing your first bits of code in the next hour or two if you start that course now","timestamp":"2023-02-09T04:18:37+00:00","score":2},{"role":"OP","user_id":"anon_65cc95dad90de798","comment_id":"j7szafc","kind":"comment","text":"I thank you very much, I just have a doubt, does python work in nano or in vim?","timestamp":"2023-02-09T04:29:48+00:00","score":1},{"role":"answerer","user_id":"anon_1ac07c89ff3ee0c3","comment_id":"j7t2j89","kind":"comment","text":"Don't doubt your self. You have a lot to learn but lots of time to learn it. Just jump in and start learning. You'll be surprised with how far you can get once you get started.\n\n\n>does python work in nano or in vim?\n\nBefore I answer this you should know that the class I linked to can run their Python examples from a web browser so you don't even need any of this yet. \n\nThe answer is yes and no. Those are text editors. You can write code in them for any language, including Python, but you don't run it from there. Once you write your code, save it as a file ending in \".py\" like \"MyHelloWorld.py\". Then you can use a command like \"python3 MyHelloWorld.py\" to run it. \n\nI would recommend an IDE instead of a text editor though. IDEs are big fancy text editors that can color your code and point out some errors for you. You can run your code from inside that. https://www.programiz.com/python-programming/online-compiler/ is an web browser IDE you can use right now to run Python code free of charge. In the long run I would recommend something like the community version of https://www.jetbrains.com/pycharm/download/. That is much more complex then a simple text editor but it's what I would use, but I've been a developer for many, many years. There are lots of other IDEs out there too. https://www.programiz.com/python-programming/ide","timestamp":"2023-02-09T04:59:44+00:00","score":1},{"role":"OP","user_id":"anon_65cc95dad90de798","comment_id":"j7tqwti","kind":"comment","text":"Thank you very much I will put this into practice as soon as I can change the operating system","timestamp":"2023-02-09T09:55:12+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_65cc95dad90de798","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1ac07c89ff3ee0c3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j7sxzrl","thanks_reply_id":"j7szafc","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_b52cc38e246a005c","answerer_user_id":"anon_6eebadcb42eec6ee","subreddit":"programming","timestamp":"2023-02-12T18:37:50+00:00","post_id":"110mt4u","question":"Is there a community that can help a non profit organizations/charity create an app. I have a non profit organization that wants to implement an idea that would help low income families afford food. Our main issue is finding a developer/creator to help us create an app for this.","preferred_answer":"Salesforce nonprofit is worth checking. You need to find somebody to make a configuration, but there is no need for coding skills.","full_conversation":[{"role":"OP","user_id":"anon_b52cc38e246a005c","comment_id":"110mt4u","kind":"post","text":"Is there a community that can help a non profit organizations/charity create an app. I have a non profit organization that wants to implement an idea that would help low income families afford food. Our main issue is finding a developer/creator to help us create an app for this.","timestamp":"2023-02-12T18:37:50+00:00","score":1},{"role":"answerer","user_id":"anon_6eebadcb42eec6ee","comment_id":"j8cr9x0","kind":"comment","text":"Salesforce nonprofit is worth checking. You need to find somebody to make a configuration, but there is no need for coding skills.","timestamp":"2023-02-13T09:53:46+00:00","score":2},{"role":"OP","user_id":"anon_b52cc38e246a005c","comment_id":"j8cwf02","kind":"comment","text":"Thank you for your reply. What do you mean by \"configuration\". \n\n​\n\nThe only thing I know about salesforce is its a database, but it can also be used like an app? Sorry for my lack of knowledge in this","timestamp":"2023-02-13T11:08:33+00:00","score":2},{"role":"answerer","user_id":"anon_6eebadcb42eec6ee","comment_id":"j8d95w6","kind":"comment","text":"Salesforce is CRM, it has also customer/partner/employee facing portal named Experience Cloud. If you meet license requirements for non profit you will get a really powerful tool for free.","timestamp":"2023-02-13T13:28:31+00:00","score":2},{"role":"OP","user_id":"anon_b52cc38e246a005c","comment_id":"j8dkpyq","kind":"comment","text":"Thank you for sharing. I did not know it was easy to receive salesforce CRM support. I will look into it.\n\n​\n\nDo you know if they accept International non profit's?","timestamp":"2023-02-13T14:59:56+00:00","score":1},{"role":"answerer","user_id":"anon_6eebadcb42eec6ee","comment_id":"j8dlw5o","kind":"comment","text":"Yes they do. I have some examples from Central Europe and Nordics. They will validate your organization to check if you meet license requirements.\n\nOfficial site:\n\nhttps://www.salesforce.org/nonprofit/\n\nHere are some tutorials:\n\n[https://trailhead.salesforce.com/content/learn/modules/nonprofit-cloud-basics/learn-about-salesforceorg-nonprofit-cloud](https://trailhead.salesforce.com/content/learn/modules/nonprofit-cloud-basics/learn-about-salesforceorg-nonprofit-cloud)\n\nYou can expose public site and have CRM under the hood. If you dont need customization then basic knowledge and configuration skills are enough to make setup.","timestamp":"2023-02-13T15:08:26+00:00","score":1},{"role":"OP","user_id":"anon_b52cc38e246a005c","comment_id":"j8dm605","kind":"comment","text":"Thank you for this information and taking the time to write this. In your experience, if we are able to fund a developer to create an app via fundraising (IOS and Android). In your opinion would Salesforce still be some use for us?","timestamp":"2023-02-13T15:10:21+00:00","score":1},{"role":"answerer","user_id":"anon_6eebadcb42eec6ee","comment_id":"j8dqv4z","kind":"comment","text":"If you don't need a crm to be integrated with your app then you can forget about it.","timestamp":"2023-02-13T15:43:11+00:00","score":1}],"n_turns":8,"n_turns_after_thanks":5,"op_metadata":{"user_id":"anon_b52cc38e246a005c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6eebadcb42eec6ee","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j8cr9x0","thanks_reply_id":"j8cwf02","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_c142e5d112e286e8","answerer_user_id":"anon_216ce3c15b68d8c8","subreddit":"programming","timestamp":"2023-02-16T22:31:28+00:00","post_id":"11435b5","question":"What Type of Programmer Would Have the Most Extensive Knowledge of DNS?","preferred_answer":">For posting job listings, please visit /r/forhire or /r/jobbit.\n\nYou may find experience in building DNS systems and managing things as a CTO may be orthogonal sets of responsibilities.\n\nAre you using job boards and specifying the need experience with building or working on DNS systems?","full_conversation":[{"role":"OP","user_id":"anon_c142e5d112e286e8","comment_id":"11435b5","kind":"post","text":"What Type of Programmer Would Have the Most Extensive Knowledge of DNS?","timestamp":"2023-02-16T22:31:28+00:00","score":0},{"role":"answerer","user_id":"anon_216ce3c15b68d8c8","comment_id":"j8u1vv9","kind":"comment","text":">For posting job listings, please visit /r/forhire or /r/jobbit.\n\nYou may find experience in building DNS systems and managing things as a CTO may be orthogonal sets of responsibilities.\n\nAre you using job boards and specifying the need experience with building or working on DNS systems?","timestamp":"2023-02-16T23:08:28+00:00","score":8},{"role":"OP","user_id":"anon_c142e5d112e286e8","comment_id":"j8u55ss","kind":"comment","text":"Thanks for the tips. And no, we've just started searching and are currently ironing out the skillset needed for the position.\n\nBecause our project heavily involves DNS I figured it'd only make sense to hire someone experienced working with DNS systems to oversee development.\n\nWhy do you believe the skill sets may be orthogonal?","timestamp":"2023-02-16T23:30:58+00:00","score":3},{"role":"answerer","user_id":"anon_216ce3c15b68d8c8","comment_id":"j8ubek8","kind":"comment","text":"Managing people and building tech are different skillsets is all. For a startup, there won't be much to manage at first. Just a handful of people working closely. So probably not a big deal until you start growing, which is a much later problem than getting up and running.\n\nFor a DNS client, rather than an authoritative or recursive server, you'll probably mostly just need to watch out for cache poisoning and make sure you pin addresses.\n\nA browser can just defer to regular C libraries until it needs to do something special. If you're trying to wedge certificates into DNS or something similar, then you will need to do it yourself.\n\nDNS is a giant read-heavy distributed database with millions of operators, stacks of transparent caches, and oodles of fun ways for attackers to break it. If you want to do fun things like serve records from the same IP via different locations around the planet, you'll need to get appropriate hosting, buy connections into higher tier network operators and setup BGP on your nodes as well.\n\nhttps://github.com/knome/kyoss/blob/master/FRACTAL-001--DNS\n\n>certificate authorities\n\nAside from CAA records allowing you to specify who can sign your site's certificate, this one isn't really related to DNS. There are sets of trusted root certificates that can sign intermediaries that eventually sign certs for websites or email or whatever. Any of the trusted roots can sign for any site, so browsers are usually pretty harsh on any of them found to be irresponsible. I've seen a few authorities stripped of trust over time ( which amounts to the browsers removing them in their next update so none of their certificates are trusted anymore, and the website operators will need to acquire new ones ).\n\nThere's a whole social networking thing to getting into being trusted as a public CA, showing you're personally trustworthy, you have working safe systems, audits, etc. So getting removed is basically the end of your business in that field. They won't invite you in to mess it up a second time.\n\nFor just a browser, however, you should just need to verify that a given cert has signed a value and walk back to make sure it's signed by something signed by something that you trust. Peek at the CAA to make sure the root cert is good. Certs will have revocation lists you can check to see if they're still valid as well. I don't think any do it actively, just pushing collections of revocations alongside updates to the browser. Major revocations should be rare, and most individual sites aren't worth a browser's time.","timestamp":"2023-02-17T00:14:57+00:00","score":5},{"role":"OP","user_id":"anon_c142e5d112e286e8","comment_id":"j8ux153","kind":"comment","text":"Wow, those were some extremely useful points, thanks!","timestamp":"2023-02-17T02:57:46+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c142e5d112e286e8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_216ce3c15b68d8c8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j8u1vv9","thanks_reply_id":"j8u55ss","post_score":0,"answer_score":8,"preferred_answer_is_top_level":false}} {"user_id":"anon_9af0073099f3bdd4","answerer_user_id":"anon_6446bc3a76c4f631","subreddit":"programming","timestamp":"2023-02-23T14:52:04+00:00","post_id":"119zj5f","question":"What to do with python Libraries","preferred_answer":"Well, form my experience I’m used to reading the docs when I’m working with a new library or using one I haven’t used in awhile.\n\nSome libraries, like functools, can be helpful because you can replace common patterns with functions like groupby.\n\nBut I don’t think people generally learn libraries first. I typically work on a project, maybe research which libraries re popular and recommended, then use that. \n\nFor future projects, I can come back and refresh when needed. Knowing which library to use is important, but I’m always reviewing things I haven’t used in awhile. \n\nSo that’s my advice, just build stuff and read books. You’ll run across the key libraries. \n\nFollow big projects and participate in communities. You’ll see what others like to us.","full_conversation":[{"role":"OP","user_id":"anon_9af0073099f3bdd4","comment_id":"119zj5f","kind":"post","text":"What to do with python Libraries","timestamp":"2023-02-23T14:52:04+00:00","score":0},{"role":"answerer","user_id":"anon_6446bc3a76c4f631","comment_id":"j9p91a6","kind":"comment","text":"Well, form my experience I’m used to reading the docs when I’m working with a new library or using one I haven’t used in awhile.\n\nSome libraries, like functools, can be helpful because you can replace common patterns with functions like groupby.\n\nBut I don’t think people generally learn libraries first. I typically work on a project, maybe research which libraries re popular and recommended, then use that. \n\nFor future projects, I can come back and refresh when needed. Knowing which library to use is important, but I’m always reviewing things I haven’t used in awhile. \n\nSo that’s my advice, just build stuff and read books. You’ll run across the key libraries. \n\nFollow big projects and participate in communities. You’ll see what others like to us.","timestamp":"2023-02-23T16:31:41+00:00","score":2},{"role":"OP","user_id":"anon_9af0073099f3bdd4","comment_id":"j9pd642","kind":"comment","text":"Thankyou :). By communities do you mean the ones that maintain the libraries or , anything else on mind?","timestamp":"2023-02-23T16:57:08+00:00","score":1},{"role":"answerer","user_id":"anon_6446bc3a76c4f631","comment_id":"j9pf9vg","kind":"comment","text":"I was thinking r/python or r/learnpython.\n\nActually, if you go search in those subs you will see many, many discussions if people talking about their favorite libraries or good libraries to learn. I suggest searching for those posts and reading before posting a new one.","timestamp":"2023-02-23T17:10:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9af0073099f3bdd4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6446bc3a76c4f631","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"j9p91a6","thanks_reply_id":"j9pd642","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_0bd0adaff243cb4f","answerer_user_id":"anon_3ce1c039f53e8ce4","subreddit":"programming","timestamp":"2023-03-01T21:27:52+00:00","post_id":"11finlp","question":"Worked so hard on my last side project to release this new UI design and \"My Votes\" sidebar feature to save the votes you made for the next Oscar Awards. Wanna give it a try?","preferred_answer":"Looks great! Love how easy it is to use. UI/UX also looks modern and wasy to navigate","full_conversation":[{"role":"OP","user_id":"anon_0bd0adaff243cb4f","comment_id":"11finlp","kind":"post","text":"Worked so hard on my last side project to release this new UI design and \"My Votes\" sidebar feature to save the votes you made for the next Oscar Awards. Wanna give it a try?","timestamp":"2023-03-01T21:27:52+00:00","score":0},{"role":"answerer","user_id":"anon_3ce1c039f53e8ce4","comment_id":"jakjfxc","kind":"comment","text":"Looks great! Love how easy it is to use. UI/UX also looks modern and wasy to navigate","timestamp":"2023-03-02T02:08:52+00:00","score":2},{"role":"OP","user_id":"anon_0bd0adaff243cb4f","comment_id":"jalpwt0","kind":"comment","text":"thank you so much! did you have a chance to create your voter account and make votes?","timestamp":"2023-03-02T09:22:42+00:00","score":1},{"role":"answerer","user_id":"anon_3ce1c039f53e8ce4","comment_id":"jami5dj","kind":"comment","text":"I sure did! Enjoyed it too. Good work","timestamp":"2023-03-02T14:24:39+00:00","score":2},{"role":"OP","user_id":"anon_0bd0adaff243cb4f","comment_id":"jamlyta","kind":"comment","text":"Awesome! Thanks for giving it a try. Could you see your votes on the sidebar?","timestamp":"2023-03-02T14:52:00+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0bd0adaff243cb4f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3ce1c039f53e8ce4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jakjfxc","thanks_reply_id":"jalpwt0","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_193bad7efafc110d","answerer_user_id":"anon_99486e834bc45cbc","subreddit":"programming","timestamp":"2023-03-02T07:35:36+00:00","post_id":"11fwjly","question":"Why does this function in C returning the worng value","preferred_answer":"Because you're passing a pointer into a function, and pointers don't store/carry the size of the pointed-to object.\n\nThe size of the array is only available in the scope where the array itself exists, so use a macro instead - `#define arraylen(x) (sizeof(x) / sizeof(x[0]))`","full_conversation":[{"role":"OP","user_id":"anon_193bad7efafc110d","comment_id":"11fwjly","kind":"post","text":"Why does this function in C returning the worng value","timestamp":"2023-03-02T07:35:36+00:00","score":0},{"role":"answerer","user_id":"anon_99486e834bc45cbc","comment_id":"jalisuu","kind":"comment","text":"Because you're passing a pointer into a function, and pointers don't store/carry the size of the pointed-to object.\n\nThe size of the array is only available in the scope where the array itself exists, so use a macro instead - `#define arraylen(x) (sizeof(x) / sizeof(x[0]))`","timestamp":"2023-03-02T07:44:31+00:00","score":6},{"role":"OP","user_id":"anon_193bad7efafc110d","comment_id":"jalj22g","kind":"comment","text":"Thanks a lot. I have more questions. Can we pass a whole array to a function?\nI'm just a beginner at programming, so my apologies if it sounds very basic.","timestamp":"2023-03-02T07:47:52+00:00","score":1},{"role":"answerer","user_id":"anon_99486e834bc45cbc","comment_id":"jalkzzq","kind":"comment","text":"> Can we pass a whole array to a function?\n\nC doesn't work like this under the hood.\n\nIf you use the syntax for passing an array (like your example, `int len(int x[])`), it actually just passes a pointer to the first item (ie same as `int len(int* x)`).\n\nConversely, you can treat pointers like an array eg `int* x; … myvar = x[37];` which is basically identical to `myvar = *(x + 37);`\n\nFurthermore, C doesn't even attempt to stop you walking right off the end of an array into memory used for other things - which is part of the reason that \"managed\" languages like C# and rust are popular, and why buffer overflow vulnerabilities are so common with C/C++ code.\n\nIf your function wants to know the size/length of the array, that has to be passed separately - which may explain why many string-handling functions are the way they are, eg `sprintf` vs `snprintf` or even `main()`'s prototype being `int main(int argc, char** argv)` (or `char* argv[]` or `char argv[][]`, all the same)\n\nThink of it this way :-\n\nYour friend asks you how to drive to another city, so you tell them where the entrance to the appropriate highway is - but you *don't* describe every junction on the highway or where to get off because you assume they can work that out for themselves. \nHowever, if they need to get off after a specific time/distance and it's poorly signposted, you might tell them that *after* describing where the appropriate on-ramp is.\n\nC array handling is very much like this.\n\nIf you want an array that carries its length with it, see C++'s `std::vector`, or make your own struct eg `typedef struct { size_t length; mytype* items; } mytype_array;` or so and wrap some management functions around it.","timestamp":"2023-03-02T08:13:42+00:00","score":9},{"role":"OP","user_id":"anon_193bad7efafc110d","comment_id":"jallhjc","kind":"comment","text":"Thanks a lot! It's really helpful.\nWhen we pass an int or a float or a char to a function's argument(s) they won't taken as pointers, right?","timestamp":"2023-03-02T08:20:22+00:00","score":2},{"role":"answerer","user_id":"anon_99486e834bc45cbc","comment_id":"jallx8l","kind":"comment","text":"> When we pass an int or a float or a char to a function's argument(s) they won't taken as pointers, right?\n\nNo.\n\nThe first few arguments are passed in CPU registers, further arguments get passed on the stack.\n\nThe specific registers used and the threshold where the stack starts being used depends on the target ABI (calling convention) that you're using, and different systems use different ABIs - [here's a wikipedia article about it](https://en.wikipedia.org/wiki/X86_calling_conventions#x86-64_calling_conventions)","timestamp":"2023-03-02T08:26:13+00:00","score":4}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_193bad7efafc110d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_99486e834bc45cbc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jalisuu","thanks_reply_id":"jalj22g","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_170810f2f572a419","answerer_user_id":"anon_c074ba3ddd7778f1","subreddit":"programming","timestamp":"2023-03-05T22:08:19+00:00","post_id":"11jfhhb","question":"Help pushing in right direction of someone that can help create something similar to this.","preferred_answer":"I would start at your local hardware store for framing-lumber, but they may have a pre-built shed that would suffice.","full_conversation":[{"role":"OP","user_id":"anon_170810f2f572a419","comment_id":"11jfhhb","kind":"post","text":"Help pushing in right direction of someone that can help create something similar to this.","timestamp":"2023-03-05T22:08:19+00:00","score":0},{"role":"answerer","user_id":"anon_c074ba3ddd7778f1","comment_id":"jb3ljgh","kind":"comment","text":"I would start at your local hardware store for framing-lumber, but they may have a pre-built shed that would suffice.","timestamp":"2023-03-06T04:12:00+00:00","score":1},{"role":"OP","user_id":"anon_170810f2f572a419","comment_id":"jb3spt2","kind":"comment","text":"I appreciate the reply, however I’m\nposting in programming because I need the software created for my company.","timestamp":"2023-03-06T05:22:15+00:00","score":2},{"role":"answerer","user_id":"anon_c074ba3ddd7778f1","comment_id":"jb3vmb4","kind":"comment","text":"Probably looking for [babylonjs](https://www.babylonjs.com/) help.\n\nI found this using \"inspect element\" on the web page.","timestamp":"2023-03-06T05:53:59+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_170810f2f572a419","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c074ba3ddd7778f1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jb3ljgh","thanks_reply_id":"jb3spt2","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_bba69d71aaec3ae9","answerer_user_id":"anon_6442f9cf86f292b4","subreddit":"programming","timestamp":"2023-03-10T11:15:57+00:00","post_id":"11nmccf","question":"What a good debugger can do","preferred_answer":"It does leverage determinism so that it doesn't record every register for every instruction. I think on average it's like half a bit per instruction. Most traces I used to capture a bug were 2-40 GB.","full_conversation":[{"role":"OP","user_id":"anon_bba69d71aaec3ae9","comment_id":"11nmccf","kind":"post","text":"What a good debugger can do","timestamp":"2023-03-10T11:15:57+00:00","score":993},{"role":"answerer","user_id":"anon_6442f9cf86f292b4","comment_id":"jbpfwly","kind":"comment","text":"It does leverage determinism so that it doesn't record every register for every instruction. I think on average it's like half a bit per instruction. Most traces I used to capture a bug were 2-40 GB.","timestamp":"2023-03-10T18:35:55+00:00","score":22},{"role":"OP","user_id":"anon_bba69d71aaec3ae9","comment_id":"jbpp6k3","kind":"comment","text":"Thanks for pointing that out, using an emulator is an interesting approach! How much effort was it to write the emulator compared to the rest of project?\n\nFwiw `rr` can record multithreaded programs too, it was designed for Firefox after all. However it runs all threads on the same core, so there's a slowdown. It also has a [chaos mode](https://robert.ocallahan.org/2016/02/introducing-rr-chaos-mode.html), where it forces the context switches at random moments to trigger race conditions.","timestamp":"2023-03-10T19:36:01+00:00","score":18},{"role":"answerer","user_id":"anon_6442f9cf86f292b4","comment_id":"jbptaz1","kind":"comment","text":"> Fwiw rr can record multithreaded programs too\n\nGood point! I should have said \"trace multiple threads simultaneously on separate cores\"\n\n> How much effort was it to write the emulator compared to the rest of project?\n\nThe emulator was a pretty big chunk of work, but made easier by the fact that you still have the ability to \"fall back\" on the CPU for rare instructions. E.g. execute them in a single stepping mode (or other ways of isolating a single instruction) and observe the results, which works for most instructions. So we could start with something that emulated 10% of instructions (which would be ~95% of instructions actually executed), and then you get incrementally better performance as you implement emulation for the long tail. So we had something working with many programs in maybe a month, and then I think within 3-4 months we had something with reasonable performance and decent compatibility.","timestamp":"2023-03-10T20:02:59+00:00","score":14}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bba69d71aaec3ae9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6442f9cf86f292b4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jbpfwly","thanks_reply_id":"jbpp6k3","post_score":993,"answer_score":22,"preferred_answer_is_top_level":false}} {"user_id":"anon_ede8c392404e8831","answerer_user_id":"anon_6446bc3a76c4f631","subreddit":"programming","timestamp":"2023-03-13T21:01:55+00:00","post_id":"11qlmq1","question":"How I burnt out in FAANG, but it is not what you think","preferred_answer":"After my initial cheeky criticisms of the headline (making snarky comments on headlines is a bit of a past time), I read the article and I quote likes it.\n\nFirst of all, we have more in common than I expected. Wanting to design nuclear reactors as children, having deadlifts plateau, and needing help from a therapist to figure it all out….\n\nETA: \n\nBut I’ve reached a similar conclusion as yours. When looking for a job with more money, I realized that my current gig actually has great work life balance and pays enough. So I realized I didn’t need more money to be happy, but less work so I could do stuff I really like.\n\nI hope you find what ignites your passion and get paid to do it!","full_conversation":[{"role":"OP","user_id":"anon_ede8c392404e8831","comment_id":"11qlmq1","kind":"post","text":"How I burnt out in FAANG, but it is not what you think","timestamp":"2023-03-13T21:01:55+00:00","score":0},{"role":"answerer","user_id":"anon_6446bc3a76c4f631","comment_id":"jc47u0w","kind":"comment","text":"After my initial cheeky criticisms of the headline (making snarky comments on headlines is a bit of a past time), I read the article and I quote likes it.\n\nFirst of all, we have more in common than I expected. Wanting to design nuclear reactors as children, having deadlifts plateau, and needing help from a therapist to figure it all out….\n\nETA: \n\nBut I’ve reached a similar conclusion as yours. When looking for a job with more money, I realized that my current gig actually has great work life balance and pays enough. So I realized I didn’t need more money to be happy, but less work so I could do stuff I really like.\n\nI hope you find what ignites your passion and get paid to do it!","timestamp":"2023-03-13T22:35:19+00:00","score":3},{"role":"OP","user_id":"anon_ede8c392404e8831","comment_id":"jc65z9j","kind":"comment","text":"Thanks mate! Did you grow up reading a ton of science fiction as well by any chance? xD\nI hope you find your \"happy place\" as well!","timestamp":"2023-03-14T09:52:26+00:00","score":1},{"role":"answerer","user_id":"anon_6446bc3a76c4f631","comment_id":"jc7117j","kind":"comment","text":"I did! Lots of start trek TNG as well. \n\nI enjoyed books like Dune, Ender’s Game, and others. Also a fair bit of non fiction science stuff, like books on space and time. It was good to grow up in a place where science, knowledge, exploration and such was celebrated!","timestamp":"2023-03-14T14:46:51+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ede8c392404e8831","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6446bc3a76c4f631","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jc47u0w","thanks_reply_id":"jc65z9j","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_36734cc2ce767a07","answerer_user_id":"anon_e0f23a180b41c124","subreddit":"programming","timestamp":"2023-03-17T03:10:25+00:00","post_id":"11tffev","question":"Hi. this is a sample website for a project I have received. howmuch would you charge to build a website like this in the US?","preferred_answer":"Go for a hourly rate, they 100% will want over 9000 changes on what you make initially.","full_conversation":[{"role":"OP","user_id":"anon_36734cc2ce767a07","comment_id":"11tffev","kind":"post","text":"Hi. this is a sample website for a project I have received. howmuch would you charge to build a website like this in the US?","timestamp":"2023-03-17T03:10:25+00:00","score":0},{"role":"answerer","user_id":"anon_e0f23a180b41c124","comment_id":"jciuba5","kind":"comment","text":"Go for a hourly rate, they 100% will want over 9000 changes on what you make initially.","timestamp":"2023-03-17T03:26:33+00:00","score":5},{"role":"OP","user_id":"anon_36734cc2ce767a07","comment_id":"jciuiud","kind":"comment","text":"Okay. Thanks a lot. Howmuch do you recommend should I charge per hour please? I have no experience. It's my first paid project. \n\nAlso, howmuch would you be willing to accept as a programmer yourself, assuming the customer was going to be okay with the initial version?","timestamp":"2023-03-17T03:28:26+00:00","score":1},{"role":"answerer","user_id":"anon_e0f23a180b41c124","comment_id":"jciwp3u","kind":"comment","text":"Rates typically depend on your experience and location. This doesn't look like a very complex website and with minimal experience I'd probably go for something like €30-40 per hour in the Netherlands. But depending on where you are in the US this may not even cover your cost of living so I would recommend trying to find out what other people near you charge.","timestamp":"2023-03-17T03:48:16+00:00","score":2},{"role":"OP","user_id":"anon_36734cc2ce767a07","comment_id":"jciwxst","kind":"comment","text":"Hi. Thanks for you reply. Are you saying Building a website like this would only cost about 30-40 euros for the entire job in the Netherlands? How is that possible?","timestamp":"2023-03-17T03:50:32+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_36734cc2ce767a07","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e0f23a180b41c124","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jciuba5","thanks_reply_id":"jciuiud","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_4d320f6e04d3990a","answerer_user_id":"anon_bd42443e8bb24c2e","subreddit":"programming","timestamp":"2023-03-18T20:24:43+00:00","post_id":"11uzecm","question":"Not native english speaker : is my README clear ?","preferred_answer":"That is one heck of a README file, well done! I didn't read the entire document to be honest, just scanned through it quickly. Overall it is looking very nice. But I could not find a section in regard to _contributing_. At least the following questions should be answered:\n\n1. Are you open for pull requests?\n2. What is your branching strategy? Do you use GitFlow or..? Most important part here is, what is your active development branch and what is your stable/production-ready branch.\n3. Maybe some code guidelines?\n\nOn top of that I think it would really be helpful if there was a section for examples. The explanation is good but I got nothing to compare it with. Just some links to a folder in your repo containing some basic setups would be really useful. I for one would like to see an example for:\n\n* A very basic REST API with and without authentication and an endpoint per HTTP method following the OpenAPI standard for example.\n* Some examples with an GET endpoint which retrieves data from a DB and an POST endpoint which adds data to a DB\n* You speak of middleware and such, showcase those things too! :)\n* And give examples per feature.","full_conversation":[{"role":"OP","user_id":"anon_4d320f6e04d3990a","comment_id":"11uzecm","kind":"post","text":"Not native english speaker : is my README clear ?","timestamp":"2023-03-18T20:24:43+00:00","score":0},{"role":"answerer","user_id":"anon_bd42443e8bb24c2e","comment_id":"jcqpnsa","kind":"comment","text":"That is one heck of a README file, well done! I didn't read the entire document to be honest, just scanned through it quickly. Overall it is looking very nice. But I could not find a section in regard to _contributing_. At least the following questions should be answered:\n\n1. Are you open for pull requests?\n2. What is your branching strategy? Do you use GitFlow or..? Most important part here is, what is your active development branch and what is your stable/production-ready branch.\n3. Maybe some code guidelines?\n\nOn top of that I think it would really be helpful if there was a section for examples. The explanation is good but I got nothing to compare it with. Just some links to a folder in your repo containing some basic setups would be really useful. I for one would like to see an example for:\n\n* A very basic REST API with and without authentication and an endpoint per HTTP method following the OpenAPI standard for example.\n* Some examples with an GET endpoint which retrieves data from a DB and an POST endpoint which adds data to a DB\n* You speak of middleware and such, showcase those things too! :)\n* And give examples per feature.","timestamp":"2023-03-18T20:43:51+00:00","score":4},{"role":"OP","user_id":"anon_4d320f6e04d3990a","comment_id":"jcqtmio","kind":"comment","text":"Thank you. Yeah you're right, I should add a *Contributing* section, I'll check that !\n\nI didn't want a too big README and let the developer tries, remove, change things so I didn't add a lot of examples but yeah I guess I can add a section with some simple examples.\n\nIn any case, thank you a lot for your feedback and you time !","timestamp":"2023-03-18T21:12:38+00:00","score":3},{"role":"answerer","user_id":"anon_bd42443e8bb24c2e","comment_id":"jcqy5h4","kind":"comment","text":"Hey, you are welcome!\n\n> I didn't want a too big README and let the developer tries, remove, change things so I didn't add a lot of examples but yeah I guess I can add a section with some simple examples.\n\nDevs aren't going to do that. Most-likely they come across your repo after a Google search and they just want to decide quickly if your project is suitable as a solution for their needs or if they need to continue searching. \n\nInvesting time into something you are not even sure is the right solution is not worth it if there are other possible solutions out there which may or may not suit better to your needs.","timestamp":"2023-03-18T21:46:23+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_4d320f6e04d3990a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bd42443e8bb24c2e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jcqpnsa","thanks_reply_id":"jcqtmio","post_score":0,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_b71aaeaf53dbc257","answerer_user_id":"anon_bc39a105021ab6ab","subreddit":"programming","timestamp":"2023-03-27T09:31:48+00:00","post_id":"123hlp3","question":"Do you think it is a good idea to promote yourself through social media when you are a tech person?","preferred_answer":"I mean sure, but being an \"influencer\" isn't the same thing as promoting yourself online.","full_conversation":[{"role":"OP","user_id":"anon_b71aaeaf53dbc257","comment_id":"123hlp3","kind":"post","text":"Do you think it is a good idea to promote yourself through social media when you are a tech person?","timestamp":"2023-03-27T09:31:48+00:00","score":0},{"role":"answerer","user_id":"anon_bc39a105021ab6ab","comment_id":"jdv3vzm","kind":"comment","text":"I mean sure, but being an \"influencer\" isn't the same thing as promoting yourself online.","timestamp":"2023-03-27T12:47:52+00:00","score":13},{"role":"OP","user_id":"anon_b71aaeaf53dbc257","comment_id":"jdv42mz","kind":"comment","text":"I see what do you mean. Thank you!","timestamp":"2023-03-27T12:49:29+00:00","score":1},{"role":"answerer","user_id":"anon_bc39a105021ab6ab","comment_id":"jdv82cv","kind":"comment","text":"I thinks it's a pretty important distinction, too. As someone with a modest YouTube channel, occasionally writes blog posts, and maintains some open source libraries, I am definitely someone who \"promotes\" myself (or rather, my work), through social media. The difference is that I'm not doing it to try and get people to do things, think like me, or buy specific products; I just want to share the things I like doing with other like-minded people.\n\nOn top of that, it's definitely been a mostly positive experience to do that overall. I've been able to skip coding interviews and take home projects because I have a large body of work out there in public that people can look to in order to see how I operate. The channel has been a great way to get to know other people (including other \"YouTubers\") who are in the same kind of domain, and it's also been one of the things that sets me apart from other candidates in job interviews. Also I've been able to learn a lot more, because there are always people to tell me that I've done something wrong, or misunderstood something! At first I'm not sure I would have said that was something I'd necessarily want to throw myself out in front of, but it's a great way to grow and let go of some ego.\n\nBut yeah, I don't even remotely consider myself an \"influencer\", which is the reason I asked why the question was connected to the post in the first place.","timestamp":"2023-03-27T13:22:49+00:00","score":3},{"role":"OP","user_id":"anon_b71aaeaf53dbc257","comment_id":"jdxhb12","kind":"comment","text":"Great point. I like it. Social media is our daily basis routing with no aiming to influence. Influencer not good word to use in this context.","timestamp":"2023-03-27T22:19:11+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b71aaeaf53dbc257","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bc39a105021ab6ab","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jdv3vzm","thanks_reply_id":"jdv42mz","post_score":0,"answer_score":13,"preferred_answer_is_top_level":false}} {"user_id":"anon_a830bf17f72b0a09","answerer_user_id":"anon_16669cb8a3358c77","subreddit":"programming","timestamp":"2023-03-27T19:25:51+00:00","post_id":"123xgri","question":"There is just one repo written in Ruby that allows access to a mysql database using http protocol. Since the repo is outdated, how do I go about building something similar in node.js?","preferred_answer":"Create your own package.","full_conversation":[{"role":"OP","user_id":"anon_a830bf17f72b0a09","comment_id":"123xgri","kind":"post","text":"There is just one repo written in Ruby that allows access to a mysql database using http protocol. Since the repo is outdated, how do I go about building something similar in node.js?","timestamp":"2023-03-27T19:25:51+00:00","score":0},{"role":"answerer","user_id":"anon_16669cb8a3358c77","comment_id":"je0rvb6","kind":"comment","text":"Create your own package.","timestamp":"2023-03-28T16:16:26+00:00","score":1},{"role":"OP","user_id":"anon_a830bf17f72b0a09","comment_id":"je1156c","kind":"comment","text":"This should be the right and generic answer for any question on stack overflow. Thank you, you have been very helpful.","timestamp":"2023-03-28T17:15:12+00:00","score":1},{"role":"answerer","user_id":"anon_16669cb8a3358c77","comment_id":"je1tjyn","kind":"comment","text":"What did you expect? That there will be a package for every imaginable problem?","timestamp":"2023-03-28T20:11:11+00:00","score":1},{"role":"OP","user_id":"anon_a830bf17f72b0a09","comment_id":"je3nprh","kind":"comment","text":"I expected a better answer, not an amateurish \" build your own package\". My post exactly asked the same question, how do I go about doing it.infacr, look at other comments to my post.I presume you must not know shit, just a show off in this group.","timestamp":"2023-03-29T04:21:12+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a830bf17f72b0a09","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_16669cb8a3358c77","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"je0rvb6","thanks_reply_id":"je1156c","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_f9036b1e9d6dd854","answerer_user_id":"anon_abc88991f6b8dbec","subreddit":"programming","timestamp":"2023-03-29T05:13:35+00:00","post_id":"125dw7m","question":"Has anybody else also faced issues with GitHub Development since the keys were changed?","preferred_answer":"can you make a new repo, set up all new keys (token/ssh/whatever) and sync that repo from the command line? ssh vs http? I would figure out something that works and then iterate works vs fails to narrow it down.","full_conversation":[{"role":"OP","user_id":"anon_f9036b1e9d6dd854","comment_id":"125dw7m","kind":"post","text":"Has anybody else also faced issues with GitHub Development since the keys were changed?","timestamp":"2023-03-29T05:13:35+00:00","score":0},{"role":"answerer","user_id":"anon_abc88991f6b8dbec","comment_id":"je78hr7","kind":"comment","text":"can you make a new repo, set up all new keys (token/ssh/whatever) and sync that repo from the command line? ssh vs http? I would figure out something that works and then iterate works vs fails to narrow it down.","timestamp":"2023-03-29T22:26:47+00:00","score":1},{"role":"OP","user_id":"anon_f9036b1e9d6dd854","comment_id":"jf0onw5","kind":"comment","text":"Thanks for your reply. No, we can't make new repo, I have updated the post as we have tried many solutions , if you could take a look it would be appreciated.","timestamp":"2023-04-05T05:48:01+00:00","score":1},{"role":"answerer","user_id":"anon_abc88991f6b8dbec","comment_id":"jf13919","kind":"comment","text":"you can't create a test repo on git? make something work, troubleshoot","timestamp":"2023-04-05T09:13:34+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f9036b1e9d6dd854","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_abc88991f6b8dbec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"je78hr7","thanks_reply_id":"jf0onw5","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_46248130a4a0b32b","answerer_user_id":"anon_db40cbbd4e93ba18","subreddit":"programming","timestamp":"2023-03-30T20:45:16+00:00","post_id":"126yqrk","question":"Quick Question about programming, What do these attack names mean in terms of coding? The general theme of the character is that It's a malfunctioning robot and the names are based on error codes, but what do these errors mean for someone not used to programming, dood?","preferred_answer":"There are no obvious references that I saw in there. \n\nIn general, you might see something like call 4CC in a program written in some flavor of Assembly. Call means that the program knows to jump to a different part of the code, labeled 4CC in this case and then once that code is complete go back to where the call was initially found. This concept exists in most programming languages but it's written in different ways. If the 4CC and other such labels are references to something, it's well over my head.","full_conversation":[{"role":"OP","user_id":"anon_46248130a4a0b32b","comment_id":"126yqrk","kind":"post","text":"Quick Question about programming, What do these attack names mean in terms of coding? The general theme of the character is that It's a malfunctioning robot and the names are based on error codes, but what do these errors mean for someone not used to programming, dood?","timestamp":"2023-03-30T20:45:16+00:00","score":0},{"role":"answerer","user_id":"anon_db40cbbd4e93ba18","comment_id":"jed5atc","kind":"comment","text":"There are no obvious references that I saw in there. \n\nIn general, you might see something like call 4CC in a program written in some flavor of Assembly. Call means that the program knows to jump to a different part of the code, labeled 4CC in this case and then once that code is complete go back to where the call was initially found. This concept exists in most programming languages but it's written in different ways. If the 4CC and other such labels are references to something, it's well over my head.","timestamp":"2023-03-31T03:34:58+00:00","score":2},{"role":"OP","user_id":"anon_46248130a4a0b32b","comment_id":"jedzppm","kind":"comment","text":"Thanks for the reply!\n\nWhile there may be no reference to any direct work with the moves, I was more so Really curious what the names even mean. Mean in the sense of what 'Call' means and what the number after it means in terms of programming. \nAre commands/lines like this used in programming and if so would they look like this naturally \"call 0x$1.00\" or would \"0x$1.00\" be scrambled numbers due to the malfunctions. \n\n\nMight seem silly but this character really got me curious about programming and hungry to look into it, Dood! ◠‿╹)\\~★","timestamp":"2023-03-31T09:53:33+00:00","score":1},{"role":"answerer","user_id":"anon_db40cbbd4e93ba18","comment_id":"jeenzr2","kind":"comment","text":"So whether or not it's scrambled really depends on the language being used; different languages will represent concepts in different ways. In general, 0x will be used to signify that the number is in base 16 (hexadecimal) rather than base 10 (decimal). In x86, which is a specific version of Assembly, the dollar sign will be a reference to the current position of the program, so in theory, 0x$1.00 could be a hexadecimal number that starts with the current position and then has 1.00 just slapped on the end of it. The syntax isn't quite correct but I don't really think they were going for accuracy in this case.\n\nWe find inspiration in many ways and if this is how you get into programming then good for you! It's been quite a while since I learned programming so I can't really point you to any resources that I've personally tried, but r/learnprogramming should be a good place to start. It can be a difficult road at times, but I do believe it's a worthwhile endeavor. Best of luck!","timestamp":"2023-03-31T13:49:05+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_46248130a4a0b32b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_db40cbbd4e93ba18","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jed5atc","thanks_reply_id":"jedzppm","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_609b7ef062b665d9","answerer_user_id":"anon_282d921182da792b","subreddit":"programming","timestamp":"2023-03-31T22:36:43+00:00","post_id":"128262n","question":"How do I read or understand anything about the twitter algorithm that's up on Github. Where do I start?","preferred_answer":"No. It would take years to read all of this code to a sufficient level of understanding, and that's with 5+ years of experience. You also need to understand machine learning. Realistically, probably not many people in the world know all of the codebase (including in the team), and you will never be able to understand it all unless you become a machine learning engineer. With your background, you will probably not be able to understand the simpler parts, I would read blog posts and learn coding instead.","full_conversation":[{"role":"OP","user_id":"anon_609b7ef062b665d9","comment_id":"128262n","kind":"post","text":"How do I read or understand anything about the twitter algorithm that's up on Github. Where do I start?","timestamp":"2023-03-31T22:36:43+00:00","score":0},{"role":"answerer","user_id":"anon_282d921182da792b","comment_id":"jen7vcj","kind":"comment","text":"No. It would take years to read all of this code to a sufficient level of understanding, and that's with 5+ years of experience. You also need to understand machine learning. Realistically, probably not many people in the world know all of the codebase (including in the team), and you will never be able to understand it all unless you become a machine learning engineer. With your background, you will probably not be able to understand the simpler parts, I would read blog posts and learn coding instead.","timestamp":"2023-04-02T10:08:16+00:00","score":1},{"role":"OP","user_id":"anon_609b7ef062b665d9","comment_id":"jen8qhg","kind":"comment","text":"Thanks for your in depth response. I have tried to learn programming a few times and tried to do it the right way (starting from html), and I never went past it. \nCan I just jump to what interests me and see where that takes me?","timestamp":"2023-04-02T10:20:47+00:00","score":1},{"role":"answerer","user_id":"anon_282d921182da792b","comment_id":"jen9vmp","kind":"comment","text":"Yes, it makes sense. You can try and you will definitely learn a lot.\nJust start reading and learn as you go, but don't expect to understand what's going on there (you will learn programming basics though).\n\nIt's a challenging codebase, so maybe it's better to use another one for this purpose. I am doing ML for years and following some of it is challenging (there are many moving parts, and some mess).","timestamp":"2023-04-02T10:37:15+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_609b7ef062b665d9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_282d921182da792b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jen7vcj","thanks_reply_id":"jen8qhg","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_de159de698657f08","answerer_user_id":"anon_76dc33abab8de47b","subreddit":"programming","timestamp":"2023-04-04T22:10:27+00:00","post_id":"12byhpt","question":"Help..\n\nWell, I’am a freshman software engineering student in turkey .. and the thing is that we took “ C “ in the first semester and now we are taking “ Java “ .\nAnd i feel lost somehow we didn’t cover all the topics in C before we go into Java\nWe just took loops and if-else statement and as well switch case , arrays and some fundamentals like variables\nAnd this is making me go crazy how would a be a great programmer and be able to make big program with only these things\nBtw I’m a beginner in programming world C was my first language.. \nso i need a suggestion or a road map or course to kick off a real start because I guess i will not depend on the university anymore to get knowledge…","preferred_answer":"You will not learn everything you need during college for your professional career. \nYou will need to take initiative and learn things on your own. \nThere are plenty of websites with explanations, walkthroughs, and examples.\nCode Academy for example, but there are too many to name honestly.","full_conversation":[{"role":"OP","user_id":"anon_de159de698657f08","comment_id":"12byhpt","kind":"post","text":"Help..\n\nWell, I’am a freshman software engineering student in turkey .. and the thing is that we took “ C “ in the first semester and now we are taking “ Java “ .\nAnd i feel lost somehow we didn’t cover all the topics in C before we go into Java\nWe just took loops and if-else statement and as well switch case , arrays and some fundamentals like variables\nAnd this is making me go crazy how would a be a great programmer and be able to make big program with only these things\nBtw I’m a beginner in programming world C was my first language.. \nso i need a suggestion or a road map or course to kick off a real start because I guess i will not depend on the university anymore to get knowledge…","timestamp":"2023-04-04T22:10:27+00:00","score":0},{"role":"answerer","user_id":"anon_76dc33abab8de47b","comment_id":"jez7o85","kind":"comment","text":"You will not learn everything you need during college for your professional career. \nYou will need to take initiative and learn things on your own. \nThere are plenty of websites with explanations, walkthroughs, and examples.\nCode Academy for example, but there are too many to name honestly.","timestamp":"2023-04-04T22:29:06+00:00","score":2},{"role":"OP","user_id":"anon_de159de698657f08","comment_id":"jf1gwka","kind":"comment","text":"Thanks, is there a specific website you would suggest?","timestamp":"2023-04-05T11:59:55+00:00","score":1},{"role":"answerer","user_id":"anon_76dc33abab8de47b","comment_id":"jf30gv0","kind":"comment","text":"I like W3schools for Java, as it gives good examples of the features Java offers","timestamp":"2023-04-05T18:23:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_de159de698657f08","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_76dc33abab8de47b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jez7o85","thanks_reply_id":"jf1gwka","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2b9cbf0c66e03d27","answerer_user_id":"anon_f506407af92cc96f","subreddit":"programming","timestamp":"2023-04-12T04:15:25+00:00","post_id":"12j9l29","question":"Best roadmap for teenager with strong math(calculus) and wants to make a career out of coding. Any thoughts or suggestions about the roadmap below if I want to go into backend developing?","preferred_answer":"If your goal is backend development (which is what I focused on as well) then you can safely skip all of the frontend stuff. Just being familiar with the existence of frontend technologies is sufficient without actually spending time using them as you can always research them if it ever becomes a need. Any frontend technologies that you use will probably be replaced with something else by the time you get a job so don't waste your time as these change often.\n\nFirst thing you need is the computer science fundamentals like algorithms, data structures, analysis, and structuring your code. Although there are benefits in some scenarios, don't waste your time with extreme functional programming (eg. monads) as most companies don't use that style.\n\nFor backend, you'll want strong database knowledge, both in designing the data model and also in best practices for working with it. Experience with a few ORM systems since most companies use them, experience with non-ORM approaches, experience creating APIs (rest endpoint, service layer, query layer), experience with asynchronous tasks like queueing jobs and job handlers, dealing with pagination, dealing with idempotence. Caching, etc.\n\nMost of the above experience can be accomplished with side projects (I recommend targetting AWS) and that will make it easy to get your foot in the door.\n\nAlthough this can seem overwhelming at first, take it one step at a time. You need to get comfortable with learning new things on your own as this is the most important skill that you'll be relying on for your entire career as technologies constantly change.","full_conversation":[{"role":"OP","user_id":"anon_2b9cbf0c66e03d27","comment_id":"12j9l29","kind":"post","text":"Best roadmap for teenager with strong math(calculus) and wants to make a career out of coding. Any thoughts or suggestions about the roadmap below if I want to go into backend developing?","timestamp":"2023-04-12T04:15:25+00:00","score":0},{"role":"answerer","user_id":"anon_f506407af92cc96f","comment_id":"jfxlu2h","kind":"comment","text":"If your goal is backend development (which is what I focused on as well) then you can safely skip all of the frontend stuff. Just being familiar with the existence of frontend technologies is sufficient without actually spending time using them as you can always research them if it ever becomes a need. Any frontend technologies that you use will probably be replaced with something else by the time you get a job so don't waste your time as these change often.\n\nFirst thing you need is the computer science fundamentals like algorithms, data structures, analysis, and structuring your code. Although there are benefits in some scenarios, don't waste your time with extreme functional programming (eg. monads) as most companies don't use that style.\n\nFor backend, you'll want strong database knowledge, both in designing the data model and also in best practices for working with it. Experience with a few ORM systems since most companies use them, experience with non-ORM approaches, experience creating APIs (rest endpoint, service layer, query layer), experience with asynchronous tasks like queueing jobs and job handlers, dealing with pagination, dealing with idempotence. Caching, etc.\n\nMost of the above experience can be accomplished with side projects (I recommend targetting AWS) and that will make it easy to get your foot in the door.\n\nAlthough this can seem overwhelming at first, take it one step at a time. You need to get comfortable with learning new things on your own as this is the most important skill that you'll be relying on for your entire career as technologies constantly change.","timestamp":"2023-04-12T06:25:33+00:00","score":3},{"role":"OP","user_id":"anon_2b9cbf0c66e03d27","comment_id":"jfyoky9","kind":"comment","text":"Thanks! But before data structures and algorithms, any specific programs you recommend I learn first?","timestamp":"2023-04-12T13:48:55+00:00","score":1},{"role":"answerer","user_id":"anon_f506407af92cc96f","comment_id":"jfyvelk","kind":"comment","text":"You'll need to use the standard tools:\n\n* Git\n* GitHub Desktop\n* A shell like Bash\n* An IDE like IntelliJ Idea community edition\n* A database visualizer\n* etc.\n\nHowever, I would only spend the minimal time on these just enough to get started as knowledge will come naturally as you use them.","timestamp":"2023-04-12T14:36:45+00:00","score":0},{"role":"OP","user_id":"anon_2b9cbf0c66e03d27","comment_id":"jfywcl1","kind":"comment","text":"Oh ok so I shouldn't be focusing on starting with Java or python or such? That is kind of the reason I was confused in the first place, as I didn't know what to do after learning one language and becoming proficient in it. Are you saying I should learn git and GitHub and the others before starting with DSA? What is the mini roadmap before the first step you described? Thanks!","timestamp":"2023-04-12T14:43:10+00:00","score":1},{"role":"answerer","user_id":"anon_f506407af92cc96f","comment_id":"jfyyeeu","kind":"comment","text":"Oh, you meant what language rather than program. Yeah, you'll need to use a programming language while learning the computer science fundamentals.\n\nPython is an easy way to learn at first and then you'll want to transition to Java as that's the most popular choice for backend.\n\nI recommend learning the language at the same time as you're learning algorithms and data structures so that you can start practicing your language knowledge as you learn it.\n\nPersonally, I use Kotlin for backend as it's technically superior to Java but it's not as popular so maybe only learn this after you get your foot in the door.","timestamp":"2023-04-12T14:56:50+00:00","score":0},{"role":"OP","user_id":"anon_2b9cbf0c66e03d27","comment_id":"jg0z0ez","kind":"comment","text":"Very helpful! Thank you","timestamp":"2023-04-12T23:39:24+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_2b9cbf0c66e03d27","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f506407af92cc96f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jfxlu2h","thanks_reply_id":"jfyoky9","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_fc5d14310a14a3c5","answerer_user_id":"anon_2c3083459bae9446","subreddit":"programming","timestamp":"2023-04-16T10:15:02+00:00","post_id":"12o3qt0","question":"I built an AI avatar generator app using NestJS and Next.js [4 months of coding]. What do you think?","preferred_answer":"I think nobody needs to pay for this.","full_conversation":[{"role":"OP","user_id":"anon_fc5d14310a14a3c5","comment_id":"12o3qt0","kind":"post","text":"I built an AI avatar generator app using NestJS and Next.js [4 months of coding]. What do you think?","timestamp":"2023-04-16T10:15:02+00:00","score":5},{"role":"answerer","user_id":"anon_2c3083459bae9446","comment_id":"jggse9x","kind":"comment","text":"I think nobody needs to pay for this.","timestamp":"2023-04-16T10:19:50+00:00","score":33},{"role":"OP","user_id":"anon_fc5d14310a14a3c5","comment_id":"jgguu20","kind":"comment","text":"Thank you for sharing your opinion. I am sorry you feel this way. 💔\n\nI understand that not everyone may see the value in paying for this app, but I believe there are people who would find it useful. 😊","timestamp":"2023-04-16T10:53:12+00:00","score":9},{"role":"answerer","user_id":"anon_2c3083459bae9446","comment_id":"jghtys6","kind":"comment","text":"I see the value in paying for it. I think everyone here agrees you did a good job especially with how you give the model additional training and are giving access to an API.\n\nBut the ethical problems cannot be avoided. I could use this but I simply wouldn't due to my personal views. \n\nA business is less likely to be burdened by this ethical question, so I believe you will find success with a B2B product.\n\nI am a technical writer who documents APIs so my views on AI generation are very mixed. It saves me time as someone doing boilerplate coding and documentation. \n\nBut, when it comes to digital portraits I lament the loss of opportunity for artistic expression, interpretation, novelty, and ownership. Opting for one of these generated images feels a lot like scaffolding code instead, putting aside the artistry for consistency and readability.","timestamp":"2023-04-16T15:59:11+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fc5d14310a14a3c5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2c3083459bae9446","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jggse9x","thanks_reply_id":"jgguu20","post_score":5,"answer_score":33,"preferred_answer_is_top_level":true}} {"user_id":"anon_41b82eda8b9b1f04","answerer_user_id":"anon_15bc98666c7bd975","subreddit":"programming","timestamp":"2023-04-18T12:35:14+00:00","post_id":"12qlllf","question":"How Go fixed everything that was wrong with programming","preferred_answer":"To the author: \"golden mean\" is the English translation you want.","full_conversation":[{"role":"OP","user_id":"anon_41b82eda8b9b1f04","comment_id":"12qlllf","kind":"post","text":"How Go fixed everything that was wrong with programming","timestamp":"2023-04-18T12:35:14+00:00","score":0},{"role":"answerer","user_id":"anon_15bc98666c7bd975","comment_id":"jgr0ul3","kind":"comment","text":"To the author: \"golden mean\" is the English translation you want.","timestamp":"2023-04-18T14:42:55+00:00","score":5},{"role":"OP","user_id":"anon_41b82eda8b9b1f04","comment_id":"jgr3k2a","kind":"comment","text":"Awesome, thanks! Didn't know there was an English equivalent. I checked Google Translate, Oxford Dictionary and even asked ChatGPT.","timestamp":"2023-04-18T15:01:07+00:00","score":2},{"role":"answerer","user_id":"anon_15bc98666c7bd975","comment_id":"jgr4imt","kind":"comment","text":"Yeah, it's an idiom, not a word, so I can understand the dictionaries not having it. But ChatGPT? Tsk, tsk, tsk.","timestamp":"2023-04-18T15:07:34+00:00","score":3},{"role":"OP","user_id":"anon_41b82eda8b9b1f04","comment_id":"jgr4mva","kind":"comment","text":"That's how desperate I was, even tried ChatGipity ;)","timestamp":"2023-04-18T15:08:21+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_41b82eda8b9b1f04","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_15bc98666c7bd975","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jgr0ul3","thanks_reply_id":"jgr3k2a","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_181302b0e5b0a9d7","answerer_user_id":"anon_866357e5b5d5fdc4","subreddit":"programming","timestamp":"2023-04-26T10:56:51+00:00","post_id":"12zdvhf","question":"Multi URL QR code with conditional redirects?\n\nHello,\n\nTo quickly preface - I'm not a programmer myself, but have a question I hope this community can answer. Thank you for reading.\n\n>> Background\nI'm rolling out a new Intranet site at work.\n\nAs part of the launch, I want to use QR codes that link to the site on certain communications.\n\nThe issue is, my employer's (a bank) intranet only works MS Edge and Chrome.\n\nThis being the case, a QR code based on the site URL works fine for Android users. For IOS users, however, we need to add an MS edge prefix ('microsoft-edge-') in order to create a QR code that works, as the IOS default browser is Safari.\n\nAt this stage, it's looking like we will need to use two QR codes on the comms. Not ideal and rather clumsy.\n\nAfter some Googling, I came across multi URL QR codes with conditional redirection that can be based on operating system (see link).\n\nThis sounds like a solution to my issue - i.e. it could link to both the plain site URL and the prefxied version, and redirect users based on their OS.\n\n>> Questions \n- Am I understanding correctly here? \n- If yes, could anyone recommend code generators with this functionality? \n- Can InDesign (or any graphic design software) create codes with this functionality?\n\nThank you for reading. I'm meeting with some digital folk shortly, and would like to wrap my head around this beforehand.","preferred_answer":"~~No link~~\n\nEdit: oops, it's a link post!","full_conversation":[{"role":"OP","user_id":"anon_181302b0e5b0a9d7","comment_id":"12zdvhf","kind":"post","text":"Multi URL QR code with conditional redirects?\n\nHello,\n\nTo quickly preface - I'm not a programmer myself, but have a question I hope this community can answer. Thank you for reading.\n\n>> Background\nI'm rolling out a new Intranet site at work.\n\nAs part of the launch, I want to use QR codes that link to the site on certain communications.\n\nThe issue is, my employer's (a bank) intranet only works MS Edge and Chrome.\n\nThis being the case, a QR code based on the site URL works fine for Android users. For IOS users, however, we need to add an MS edge prefix ('microsoft-edge-') in order to create a QR code that works, as the IOS default browser is Safari.\n\nAt this stage, it's looking like we will need to use two QR codes on the comms. Not ideal and rather clumsy.\n\nAfter some Googling, I came across multi URL QR codes with conditional redirection that can be based on operating system (see link).\n\nThis sounds like a solution to my issue - i.e. it could link to both the plain site URL and the prefxied version, and redirect users based on their OS.\n\n>> Questions \n- Am I understanding correctly here? \n- If yes, could anyone recommend code generators with this functionality? \n- Can InDesign (or any graphic design software) create codes with this functionality?\n\nThank you for reading. I'm meeting with some digital folk shortly, and would like to wrap my head around this beforehand.","timestamp":"2023-04-26T10:56:51+00:00","score":1},{"role":"answerer","user_id":"anon_866357e5b5d5fdc4","comment_id":"jhrtb4t","kind":"comment","text":"~~No link~~\n\nEdit: oops, it's a link post!","timestamp":"2023-04-26T11:33:52+00:00","score":2},{"role":"OP","user_id":"anon_181302b0e5b0a9d7","comment_id":"jhrth5p","kind":"comment","text":"Here is it, thanks!\n\nhttps://support.scanova.io/hc/en-us/articles/6711114050457-What-is-Conditional-Redirection-in-a-Website-URL-QR-Code-","timestamp":"2023-04-26T11:35:36+00:00","score":1},{"role":"answerer","user_id":"anon_866357e5b5d5fdc4","comment_id":"jhru94q","kind":"comment","text":"They don't go into implementation details there.\n\nIf I was going to implement a similar feature I would generate a standard QR code with a URL linking to one of their servers a bit like a link shortening service.\n\nThen when that a request is made to that URL their server could analyse the IP address or request headers and redirect to wherever they want. Pretty much anything they need to know could be found by interpreting the user agent string.\n\nIf their implementation is similar then the magic is on their server, it's not a feature of the QR standard.","timestamp":"2023-04-26T11:43:25+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_181302b0e5b0a9d7","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_866357e5b5d5fdc4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jhrtb4t","thanks_reply_id":"jhrth5p","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_441ce7926380b464","answerer_user_id":"anon_f8411592a9a69587","subreddit":"programming","timestamp":"2023-04-28T22:22:25+00:00","post_id":"132bmuh","question":"Is a 4K monitor worth it for programming ?","preferred_answer":"All preference\n\nI used to have an UltraWide 1440p, it sure was an upgrade from a regular monitor with decent pixel ratio. But i found myself still needing another monitor sometimes.\n\nNow im on a 55” OLED (custom power settings), and ill never go back haha. Soo much real estate on 4k 100% scale, got windows for all screen sizes, google, and other small widgets with no head turn GG","full_conversation":[{"role":"OP","user_id":"anon_441ce7926380b464","comment_id":"132bmuh","kind":"post","text":"Is a 4K monitor worth it for programming ?","timestamp":"2023-04-28T22:22:25+00:00","score":0},{"role":"answerer","user_id":"anon_f8411592a9a69587","comment_id":"ji479dx","kind":"comment","text":"All preference\n\nI used to have an UltraWide 1440p, it sure was an upgrade from a regular monitor with decent pixel ratio. But i found myself still needing another monitor sometimes.\n\nNow im on a 55” OLED (custom power settings), and ill never go back haha. Soo much real estate on 4k 100% scale, got windows for all screen sizes, google, and other small widgets with no head turn GG","timestamp":"2023-04-28T23:03:30+00:00","score":3},{"role":"OP","user_id":"anon_441ce7926380b464","comment_id":"ji47y7n","kind":"comment","text":"Hi. Thanks for your reply !\n\nHow far do you keep your monitor from your eyes ? I can't imagine using a 55\" screen 2ft from my eyes, or I'd get neck/back pain lol.\n\nAbout OLED : is it comfortable to look at (bright and dark scenes) for a long time ?","timestamp":"2023-04-28T23:08:56+00:00","score":1},{"role":"answerer","user_id":"anon_f8411592a9a69587","comment_id":"ji4f06p","kind":"comment","text":"Sure, i sit around 3ft back but definitely always in a bright room and low brightness/low whites during work. Ergo chair and my main windows at eye level so no health issues. BUT\n\nGaming, turn that bad boy to 120fps gaming settings and i get best of both worlds.","timestamp":"2023-04-29T00:02:30+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_441ce7926380b464","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f8411592a9a69587","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ji479dx","thanks_reply_id":"ji47y7n","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_f108e69a07880ae3","answerer_user_id":"anon_fce49318ac2689df","subreddit":"programming","timestamp":"2023-05-04T02:00:32+00:00","post_id":"1376m56","question":"I am an experienced developer with years of coding experience. Is there a way to make your code not work when you want it to? Essentially place a bug in your code that you can toggle on and off to protect it in case someone tries to steal and use it?","preferred_answer":"A company I once worked for had a \"time bomb\", that needed to be reset by a technician on site, because some customers wouldn't pay after we delivered.\n\n[https://en.wikipedia.org/wiki/Time\\_bomb\\_(software)](https://en.wikipedia.org/wiki/Time_bomb_(software))","full_conversation":[{"role":"OP","user_id":"anon_f108e69a07880ae3","comment_id":"1376m56","kind":"post","text":"I am an experienced developer with years of coding experience. Is there a way to make your code not work when you want it to? Essentially place a bug in your code that you can toggle on and off to protect it in case someone tries to steal and use it?","timestamp":"2023-05-04T02:00:32+00:00","score":0},{"role":"answerer","user_id":"anon_fce49318ac2689df","comment_id":"jisk9q1","kind":"comment","text":"A company I once worked for had a \"time bomb\", that needed to be reset by a technician on site, because some customers wouldn't pay after we delivered.\n\n[https://en.wikipedia.org/wiki/Time\\_bomb\\_(software)](https://en.wikipedia.org/wiki/Time_bomb_(software))","timestamp":"2023-05-04T04:33:12+00:00","score":3},{"role":"OP","user_id":"anon_f108e69a07880ae3","comment_id":"jisklh4","kind":"comment","text":"Thank you, this is exactly what I was looking for (although not malicious). Just to protect being paid for independent work","timestamp":"2023-05-04T04:36:37+00:00","score":2},{"role":"answerer","user_id":"anon_fce49318ac2689df","comment_id":"jiu8vop","kind":"comment","text":"I don't know the legality of this. Our device would just stop working and the customer had no idea why.","timestamp":"2023-05-04T15:15:10+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f108e69a07880ae3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fce49318ac2689df","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jisk9q1","thanks_reply_id":"jisklh4","post_score":0,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_3a2a9cacfeea0b3a","answerer_user_id":"anon_dd11e3dcd2c3b294","subreddit":"programming","timestamp":"2023-05-07T02:50:49+00:00","post_id":"13aajtx","question":"Experienced programmers, how do you differenciate a junior dev from a dev ?","preferred_answer":"Dev can spell differentiate.","full_conversation":[{"role":"OP","user_id":"anon_3a2a9cacfeea0b3a","comment_id":"13aajtx","kind":"post","text":"Experienced programmers, how do you differenciate a junior dev from a dev ?","timestamp":"2023-05-07T02:50:49+00:00","score":0},{"role":"answerer","user_id":"anon_dd11e3dcd2c3b294","comment_id":"jj6c61l","kind":"comment","text":"Dev can spell differentiate.","timestamp":"2023-05-07T04:48:52+00:00","score":-1},{"role":"OP","user_id":"anon_3a2a9cacfeea0b3a","comment_id":"jj6gfey","kind":"comment","text":"Yeah! Sorry that English is not my mother tongue. \n\nAnd thank you for the condescending tone! You're so cool!","timestamp":"2023-05-07T05:37:12+00:00","score":1},{"role":"answerer","user_id":"anon_dd11e3dcd2c3b294","comment_id":"jj6r3gr","kind":"comment","text":"Awesome answer. 🤓","timestamp":"2023-05-07T07:59:16+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3a2a9cacfeea0b3a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dd11e3dcd2c3b294","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jj6c61l","thanks_reply_id":"jj6gfey","post_score":0,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_746a165c8ad3ab10","answerer_user_id":"anon_9ac0c473b5ebd6c0","subreddit":"programming","timestamp":"2023-05-11T01:47:13+00:00","post_id":"13e9srq","question":"I Want to start a programming career\n\nSo I want to start a programming career and there are many courses online that provide these certifications. For example SheCodes. How important are these certifications? Do you think they are worth it and can help you secure a job in the industry?","preferred_answer":"Can be useful, not terribly necessary. Curiosity and critical thinking are more important than any code academy certification. Start working on your own little projects or following tutorial projects on a language or framework you're interested in.\n\nNo one will hire a totally new programmer who doesn't even have something of their own to show as a side project or something they did just to try out a language or framework, no matter how well they do on a technical interview.","full_conversation":[{"role":"OP","user_id":"anon_746a165c8ad3ab10","comment_id":"13e9srq","kind":"post","text":"I Want to start a programming career\n\nSo I want to start a programming career and there are many courses online that provide these certifications. For example SheCodes. How important are these certifications? Do you think they are worth it and can help you secure a job in the industry?","timestamp":"2023-05-11T01:47:13+00:00","score":0},{"role":"answerer","user_id":"anon_9ac0c473b5ebd6c0","comment_id":"jjosh1d","kind":"comment","text":"Can be useful, not terribly necessary. Curiosity and critical thinking are more important than any code academy certification. Start working on your own little projects or following tutorial projects on a language or framework you're interested in.\n\nNo one will hire a totally new programmer who doesn't even have something of their own to show as a side project or something they did just to try out a language or framework, no matter how well they do on a technical interview.","timestamp":"2023-05-11T02:12:55+00:00","score":5},{"role":"OP","user_id":"anon_746a165c8ad3ab10","comment_id":"jjostbq","kind":"comment","text":"Thanks for the advice! Really appreciate it. Any recommendations on where to learn programming online? Free is possible?","timestamp":"2023-05-11T02:15:27+00:00","score":1},{"role":"answerer","user_id":"anon_9ac0c473b5ebd6c0","comment_id":"jjox181","kind":"comment","text":"I believe MIT has its entire computer science coursework online, including lectures and whatnot. Besides that, I don't have any personal recommendations that I'd put over any others. This is where curiosity plays a role. Start googling and just go","timestamp":"2023-05-11T02:47:37+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_746a165c8ad3ab10","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9ac0c473b5ebd6c0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jjosh1d","thanks_reply_id":"jjostbq","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_3ddd3fc656768298","answerer_user_id":"anon_e7b4323db6bd4b69","subreddit":"programming","timestamp":"2023-05-12T17:14:09+00:00","post_id":"13fr58u","question":"Should I open issues on my open source project to get more contributors?\n\nHey r/programming,\n\nI’m working on an open source React project, and I’d love some community help on some items.\n\nIn your experience, will opening issues on GitHub help to find developers who want to knock things out, or will I look stupid? \n\n\nThank you in advance! ✌️😃","preferred_answer":"I do think it'd be good for adoption. Prospective adopters are very often looking for a) a road map and b) a sense of activity on open source projects. They want to adopt a project that is going to continue to be maintained, and will continue to improve in the future. Issues can be evidence of both of those facets -- that you have future plans, and that you're actively opening and closing tickets. Don't leave them open too long without some kind of response from you the maintainer. It's better to say no and close a ticket than leave it unanswered.\n\nJust my 2c as a long-time FOSS maintainer with a GitHub presence.","full_conversation":[{"role":"OP","user_id":"anon_3ddd3fc656768298","comment_id":"13fr58u","kind":"post","text":"Should I open issues on my open source project to get more contributors?\n\nHey r/programming,\n\nI’m working on an open source React project, and I’d love some community help on some items.\n\nIn your experience, will opening issues on GitHub help to find developers who want to knock things out, or will I look stupid? \n\n\nThank you in advance! ✌️😃","timestamp":"2023-05-12T17:14:09+00:00","score":10},{"role":"answerer","user_id":"anon_e7b4323db6bd4b69","comment_id":"jjwc3lm","kind":"comment","text":"I do think it'd be good for adoption. Prospective adopters are very often looking for a) a road map and b) a sense of activity on open source projects. They want to adopt a project that is going to continue to be maintained, and will continue to improve in the future. Issues can be evidence of both of those facets -- that you have future plans, and that you're actively opening and closing tickets. Don't leave them open too long without some kind of response from you the maintainer. It's better to say no and close a ticket than leave it unanswered.\n\nJust my 2c as a long-time FOSS maintainer with a GitHub presence.","timestamp":"2023-05-12T17:27:33+00:00","score":10},{"role":"OP","user_id":"anon_3ddd3fc656768298","comment_id":"jjwd3i3","kind":"comment","text":"Great feedback! Thank you, I really appreciate it 🙂\n\nWhat you are saying makes complete sense! I had the perspective that I might look silly and incompetent if I was opening issues to track my progress lol.. The word “Issues” is a bit misleading to me.\n\nI realized that it may be a good idea for me to track my own internal progress using GitHub issues after I read the Next.js release notes recently. I noticed that Vercel included an issue number with each release note. That kind of changed my thinking a little bit. \n\nWhat do you think?","timestamp":"2023-05-12T17:34:21+00:00","score":2},{"role":"answerer","user_id":"anon_e7b4323db6bd4b69","comment_id":"jjwf1yw","kind":"comment","text":"I think the common understanding of the word \"issues\" is just a way to track potential or ongoing changes to the software. Some of them are bug reports, some of them are random questions from the community, some of them are feature requests or planned features. That word should not have a negative connotation at all. In practice, the issue tracker functions like a community forum.\n\nIt's fine and often helpful for release notes to point back to issues, as that can provide more context in a simple way. My opinion is that you should generate release notes by hand rather than trying to markup your commit messages and auto-generate them from that, but that may be a controversial opinion.","timestamp":"2023-05-12T17:47:39+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3ddd3fc656768298","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e7b4323db6bd4b69","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jjwc3lm","thanks_reply_id":"jjwd3i3","post_score":10,"answer_score":10,"preferred_answer_is_top_level":true}} {"user_id":"anon_b5bf479cd45ea870","answerer_user_id":"anon_1e29d348f46af89c","subreddit":"programming","timestamp":"2023-05-16T22:31:25+00:00","post_id":"13jjdwv","question":"How To Use Postgres as a Message Queue","preferred_answer":"There is a battle-tested message queue for postgres, [PGQ](https://wiki.postgresql.org/wiki/PGQ_Tutorial), originally developed at Skype. It's a clever hack that leverages postgres MVCC internals in its implementation. That said, no RDBMS-based message queue is going to perform reasonably compared to a system built for purpose.","full_conversation":[{"role":"OP","user_id":"anon_b5bf479cd45ea870","comment_id":"13jjdwv","kind":"post","text":"How To Use Postgres as a Message Queue","timestamp":"2023-05-16T22:31:25+00:00","score":0},{"role":"answerer","user_id":"anon_1e29d348f46af89c","comment_id":"jkfr6nc","kind":"comment","text":"There is a battle-tested message queue for postgres, [PGQ](https://wiki.postgresql.org/wiki/PGQ_Tutorial), originally developed at Skype. It's a clever hack that leverages postgres MVCC internals in its implementation. That said, no RDBMS-based message queue is going to perform reasonably compared to a system built for purpose.","timestamp":"2023-05-17T00:20:20+00:00","score":6},{"role":"OP","user_id":"anon_b5bf479cd45ea870","comment_id":"jkfsm9a","kind":"comment","text":"TIL about PGQ. Thanks.\n\nYup, agree that performance wise it won’t be as good as Rabbit/Kafka.","timestamp":"2023-05-17T00:30:07+00:00","score":5},{"role":"answerer","user_id":"anon_1e29d348f46af89c","comment_id":"jkftdy6","kind":"comment","text":"RabbitMQ is actually fairly mediocre in performance compared to Kafka, GNATS or NSQ. And back in the day, Sybase Replication Server was the best message queue we had benchmarked by a wide margin, specially compared to IBM MQSeries, but it was its own thing that did not use the Sybase RDBMS as backing store.\n\nPGQ has good throughput, but terrible latency. It's better understood as a microbatching system.","timestamp":"2023-05-17T00:35:38+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b5bf479cd45ea870","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1e29d348f46af89c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jkfr6nc","thanks_reply_id":"jkfsm9a","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_de7ca9ed2df51bd2","answerer_user_id":"anon_9f9fd6ab644be73f","subreddit":"programming","timestamp":"2023-05-18T00:29:37+00:00","post_id":"13kj7np","question":"Question: How many points do you deliver at the end of the sprint as a jr dev?\n\nI’m a jr developer and kinda insecure about how good programmer I am. So answer this to help me:\n\nIn a sprint of 2 weeks, based on the scrum method to categorize the difficulty of a task by points, how many points can you deliver?","preferred_answer":"Points change wildly depending on who estimates them. I'm a senior dev, let me ask you this ... are you ever feeling like you aren't achieving anything ... with no clarity on what to do next? Me too. How do you recover from it? \n\nIf you keep looking for ways to ensure forward momentum you're doing what you need to be doing. As a junior sometimes that means another Google search, sometimes that means asking for help (don't wait too long before asking for help, if you're stuck for more than a day without a heads up, that's bad). As you keep growing in your career the Google searches get more likely than the asking for help.\nIf my juniors are able to deliver a story per sprint, I'm good with that. If they miss a sprint and have to split every once in a while, I'm good with that too. What I'm looking for is clean code or a willingness to learn why their code isn't clean if it doesn't meet standards. Learning will eventually lead to growth. Your growth is the most important thing for all involved.","full_conversation":[{"role":"OP","user_id":"anon_de7ca9ed2df51bd2","comment_id":"13kj7np","kind":"post","text":"Question: How many points do you deliver at the end of the sprint as a jr dev?\n\nI’m a jr developer and kinda insecure about how good programmer I am. So answer this to help me:\n\nIn a sprint of 2 weeks, based on the scrum method to categorize the difficulty of a task by points, how many points can you deliver?","timestamp":"2023-05-18T00:29:37+00:00","score":0},{"role":"answerer","user_id":"anon_9f9fd6ab644be73f","comment_id":"jkkpele","kind":"comment","text":"Points change wildly depending on who estimates them. I'm a senior dev, let me ask you this ... are you ever feeling like you aren't achieving anything ... with no clarity on what to do next? Me too. How do you recover from it? \n\nIf you keep looking for ways to ensure forward momentum you're doing what you need to be doing. As a junior sometimes that means another Google search, sometimes that means asking for help (don't wait too long before asking for help, if you're stuck for more than a day without a heads up, that's bad). As you keep growing in your career the Google searches get more likely than the asking for help.\nIf my juniors are able to deliver a story per sprint, I'm good with that. If they miss a sprint and have to split every once in a while, I'm good with that too. What I'm looking for is clean code or a willingness to learn why their code isn't clean if it doesn't meet standards. Learning will eventually lead to growth. Your growth is the most important thing for all involved.","timestamp":"2023-05-18T00:46:01+00:00","score":6},{"role":"OP","user_id":"anon_de7ca9ed2df51bd2","comment_id":"jkkq6m0","kind":"comment","text":"This is a great answer. Thank you!","timestamp":"2023-05-18T00:51:49+00:00","score":5},{"role":"answerer","user_id":"anon_9f9fd6ab644be73f","comment_id":"jkkqt44","kind":"comment","text":"Seemed like you needed a pep talk. Bottom line here, we all face imposter syndrome, chin up. At least you care enough to care, that's a good sign.","timestamp":"2023-05-18T00:56:21+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_de7ca9ed2df51bd2","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9f9fd6ab644be73f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jkkpele","thanks_reply_id":"jkkq6m0","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_93098d625073cf13","answerer_user_id":"anon_a76479f70154823c","subreddit":"programming","timestamp":"2023-06-08T06:05:24+00:00","post_id":"14410gc","question":"Tiny URL + IP Lookup + user-agent\n\nMade a URL shortener (classic project). It supports filtering users based on geographical data and categories extracted from the user-agent.\n\nIt can also pass the viewer data along to you with token replacement, example.com/[COUNTRY_CODE]\n\nhttps://clickable.me/tokens\n\nSimple redirects are cached through a CDN so it delivers pretty fast - actually beats some of more popular url shorteners. Does not require an account.\n\nFeel free to play around with it - a quick alternative to tiny.url or bit.ly 😅 I am working on getting a better domain. I have href.at, 302.name, 307.name and clickable.me so far - all pretty neardy though. Short URLs are hard to find in this day and age 🙃\n\nThe region detection is not great on mobile data in my experience (tested in Canada and Denmark).\n\nAny fun extensions that makes sense to add?","preferred_answer":"Gotcha, that is indeed a very simple but efficient setup. Nice project, I hope you keep improving upon it :)","full_conversation":[{"role":"OP","user_id":"anon_93098d625073cf13","comment_id":"14410gc","kind":"post","text":"Tiny URL + IP Lookup + user-agent\n\nMade a URL shortener (classic project). It supports filtering users based on geographical data and categories extracted from the user-agent.\n\nIt can also pass the viewer data along to you with token replacement, example.com/[COUNTRY_CODE]\n\nhttps://clickable.me/tokens\n\nSimple redirects are cached through a CDN so it delivers pretty fast - actually beats some of more popular url shorteners. Does not require an account.\n\nFeel free to play around with it - a quick alternative to tiny.url or bit.ly 😅 I am working on getting a better domain. I have href.at, 302.name, 307.name and clickable.me so far - all pretty neardy though. Short URLs are hard to find in this day and age 🙃\n\nThe region detection is not great on mobile data in my experience (tested in Canada and Denmark).\n\nAny fun extensions that makes sense to add?","timestamp":"2023-06-08T06:05:24+00:00","score":232},{"role":"answerer","user_id":"anon_a76479f70154823c","comment_id":"jnhgf36","kind":"comment","text":"Gotcha, that is indeed a very simple but efficient setup. Nice project, I hope you keep improving upon it :)","timestamp":"2023-06-09T03:20:46+00:00","score":1},{"role":"OP","user_id":"anon_93098d625073cf13","comment_id":"jni0uhp","kind":"comment","text":"Thanks :) Changed the redirector URL to be [href.at](https://href.at) \\+ 2-3 characters (shorter) \nBefore it was [clickable.me](https://clickable.me/) \\+ 3-4 characters","timestamp":"2023-06-09T06:57:46+00:00","score":1},{"role":"answerer","user_id":"anon_a76479f70154823c","comment_id":"jnoq4qn","kind":"comment","text":"Haha that's a pretty good domain. Maybe let them select which domain they want to use and point them all to the same server.","timestamp":"2023-06-10T18:29:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_93098d625073cf13","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a76479f70154823c","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jnhgf36","thanks_reply_id":"jni0uhp","post_score":232,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_0268d1847807d045","answerer_user_id":"anon_3f8a0db639cfd676","subreddit":"programming","timestamp":"2023-06-10T21:46:56+00:00","post_id":"146c3nj","question":"Hello programming friends I am 27 I studied business in college and didn’t learn nothing and did master in e-commerceI want to learn something programming related so i can have financial freedom. What languages do you recommend i learn. Do you recommend i do a bootcamp? Is it to late at my age?\n\nAny feedback helps","preferred_answer":"But they're not high ~~payed~~ paid jobs. They might even be in part replaced by AI in the near future. The most entry level jobs in that field, at least.\n\nI don't really know what's really high ~~payed~~ paid, but they always say that you can make good money in COBOL. That's an old archaic language that nobody knows anymore and those who do don't like it. But banks often have their old software written in it and really need people to maintain it and thus pay well. You said you have a financial background or something? I'm sure that would be great in that context.","full_conversation":[{"role":"OP","user_id":"anon_0268d1847807d045","comment_id":"146c3nj","kind":"post","text":"Hello programming friends I am 27 I studied business in college and didn’t learn nothing and did master in e-commerceI want to learn something programming related so i can have financial freedom. What languages do you recommend i learn. Do you recommend i do a bootcamp? Is it to late at my age?\n\nAny feedback helps","timestamp":"2023-06-10T21:46:56+00:00","score":0},{"role":"answerer","user_id":"anon_3f8a0db639cfd676","comment_id":"jnptnvl","kind":"comment","text":"But they're not high ~~payed~~ paid jobs. They might even be in part replaced by AI in the near future. The most entry level jobs in that field, at least.\n\nI don't really know what's really high ~~payed~~ paid, but they always say that you can make good money in COBOL. That's an old archaic language that nobody knows anymore and those who do don't like it. But banks often have their old software written in it and really need people to maintain it and thus pay well. You said you have a financial background or something? I'm sure that would be great in that context.","timestamp":"2023-06-10T23:26:03+00:00","score":1},{"role":"OP","user_id":"anon_0268d1847807d045","comment_id":"jnptvk7","kind":"comment","text":"Thank you friend","timestamp":"2023-06-10T23:27:50+00:00","score":1},{"role":"answerer","user_id":"anon_3f8a0db639cfd676","comment_id":"jnrakr9","kind":"comment","text":"In that context you might also want to learn Java (*not* JavaScript, that's something completely different), because some of those jobs are porting old COBOL code to Java. But inform yourself in more detail about this, if that's really all still the case.","timestamp":"2023-06-11T08:30:04+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0268d1847807d045","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3f8a0db639cfd676","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jnptnvl","thanks_reply_id":"jnptvk7","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_e476693bacc6e52f","answerer_user_id":"anon_bc3d142713f0663d","subreddit":"programming","timestamp":"2023-07-05T16:38:45+00:00","post_id":"14rfyay","question":"Would anyone be able to help with this please? 😭 can’t quite figure it out why it’s not working","preferred_answer":"Hmm, might it be because materialcolorpicker version 1.3.1 does not exist?\n\nThe highest version in JCenter is 1.2.5 and in Spring it's 1.2.3.\n\nhttps://mvnrepository.com/artifact/com.pes.materialcolorpicker/library?repo=jcenter","full_conversation":[{"role":"OP","user_id":"anon_e476693bacc6e52f","comment_id":"14rfyay","kind":"post","text":"Would anyone be able to help with this please? 😭 can’t quite figure it out why it’s not working","timestamp":"2023-07-05T16:38:45+00:00","score":0},{"role":"answerer","user_id":"anon_bc3d142713f0663d","comment_id":"jqrz7uf","kind":"comment","text":"Hmm, might it be because materialcolorpicker version 1.3.1 does not exist?\n\nThe highest version in JCenter is 1.2.5 and in Spring it's 1.2.3.\n\nhttps://mvnrepository.com/artifact/com.pes.materialcolorpicker/library?repo=jcenter","timestamp":"2023-07-05T16:53:04+00:00","score":2},{"role":"OP","user_id":"anon_e476693bacc6e52f","comment_id":"jqs0p2a","kind":"comment","text":"Unfortunately the same issues turns up 😭 but appreciate your help 🙌🏽","timestamp":"2023-07-05T17:02:45+00:00","score":1},{"role":"answerer","user_id":"anon_bc3d142713f0663d","comment_id":"jqs35x8","kind":"comment","text":"Apparently you might also need to add library somewhere in the middle:\n\nimplementation 'com.pes.materialcolorpicker:***library***:1.2.5'\n\nKeep trying to use lower versions, and make sure that the JCenter or Spring repositories are also configured in your project. At least the error message should change, if the setting is picked up.","timestamp":"2023-07-05T17:18:53+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e476693bacc6e52f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_bc3d142713f0663d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jqrz7uf","thanks_reply_id":"jqs0p2a","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_bd2b09cb011a9a77","answerer_user_id":"anon_995b322fbe0a4fc5","subreddit":"programming","timestamp":"2023-07-07T13:38:11+00:00","post_id":"14t7lcv","question":"Solving ODE using GSL C\n\nHey guys,\n\nI am trying to write a program to solve ode on C using GSL build in functions (basically transfer matlab's ode23s to C) because I have heavy FLI calculations to do and C is faster.\n\nNevertheless I am really struggling on C and havent found any helpful source.\n\nHas anyone done it before ? What guide can I use ?","preferred_answer":"If you can use C++, there is an ODE package in boost library.","full_conversation":[{"role":"OP","user_id":"anon_bd2b09cb011a9a77","comment_id":"14t7lcv","kind":"post","text":"Solving ODE using GSL C\n\nHey guys,\n\nI am trying to write a program to solve ode on C using GSL build in functions (basically transfer matlab's ode23s to C) because I have heavy FLI calculations to do and C is faster.\n\nNevertheless I am really struggling on C and havent found any helpful source.\n\nHas anyone done it before ? What guide can I use ?","timestamp":"2023-07-07T13:38:11+00:00","score":19},{"role":"answerer","user_id":"anon_995b322fbe0a4fc5","comment_id":"jr1gexe","kind":"comment","text":"If you can use C++, there is an ODE package in boost library.","timestamp":"2023-07-07T16:16:07+00:00","score":2},{"role":"OP","user_id":"anon_bd2b09cb011a9a77","comment_id":"jy4yfb6","kind":"comment","text":"just finished my internship and i used boost because of you and it worked ! thanks !","timestamp":"2023-08-28T20:22:46+00:00","score":1},{"role":"answerer","user_id":"anon_995b322fbe0a4fc5","comment_id":"jy4ysft","kind":"comment","text":"Nice! Glad I could help!","timestamp":"2023-08-28T20:25:00+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bd2b09cb011a9a77","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_995b322fbe0a4fc5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jr1gexe","thanks_reply_id":"jy4yfb6","post_score":19,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_6ea6f72c7b2b5495","answerer_user_id":"anon_c58c00eb7090355f","subreddit":"programming","timestamp":"2023-07-09T09:23:10+00:00","post_id":"14uu25n","question":"Is this worth? more in comments","preferred_answer":"Honestly, not if you're serious about learning to program. These books are garbage.\n\nBut if you're interested in exploring the topic about if you would like to learn to program, this is a gold mine. You'll get to crack a book and see a condensed version of the stuff you'll need to learn.","full_conversation":[{"role":"OP","user_id":"anon_6ea6f72c7b2b5495","comment_id":"14uu25n","kind":"post","text":"Is this worth? more in comments","timestamp":"2023-07-09T09:23:10+00:00","score":0},{"role":"answerer","user_id":"anon_c58c00eb7090355f","comment_id":"jr9zrfj","kind":"comment","text":"Honestly, not if you're serious about learning to program. These books are garbage.\n\nBut if you're interested in exploring the topic about if you would like to learn to program, this is a gold mine. You'll get to crack a book and see a condensed version of the stuff you'll need to learn.","timestamp":"2023-07-09T14:02:54+00:00","score":1},{"role":"OP","user_id":"anon_6ea6f72c7b2b5495","comment_id":"jra1cay","kind":"comment","text":"I think in more in the 2nd point. Thanks for you comment :)","timestamp":"2023-07-09T14:15:20+00:00","score":1},{"role":"answerer","user_id":"anon_c58c00eb7090355f","comment_id":"jrafx3h","kind":"comment","text":"Well, it's worth donating $25 to charity then, in that case. I have a few thousand of Humbles I've never even opened just because the money is going to a cause I care about.","timestamp":"2023-07-09T16:00:58+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6ea6f72c7b2b5495","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c58c00eb7090355f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jr9zrfj","thanks_reply_id":"jra1cay","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_9576c0167991a51e","answerer_user_id":"anon_fe8c6020c1e341bb","subreddit":"programming","timestamp":"2023-07-19T14:36:15+00:00","post_id":"153wsrt","question":"Should I say please and thank you while raising and after merging PR every time ?\n\nI’m a full stack developer and working in a fast growing company where I alone raise 5-10 PRs everyday. \n\nSo when I raise PR I say please in my slack message.\nAlso after merging PR I say Thank you.\n\nShould I say that or not every time?","preferred_answer":"Just say it like Swanson, ie. all in one go: \"Can you review this PR, please & thank you?\".","full_conversation":[{"role":"OP","user_id":"anon_9576c0167991a51e","comment_id":"153wsrt","kind":"post","text":"Should I say please and thank you while raising and after merging PR every time ?\n\nI’m a full stack developer and working in a fast growing company where I alone raise 5-10 PRs everyday. \n\nSo when I raise PR I say please in my slack message.\nAlso after merging PR I say Thank you.\n\nShould I say that or not every time?","timestamp":"2023-07-19T14:36:15+00:00","score":0},{"role":"answerer","user_id":"anon_fe8c6020c1e341bb","comment_id":"jsmhzeq","kind":"comment","text":"Just say it like Swanson, ie. all in one go: \"Can you review this PR, please & thank you?\".","timestamp":"2023-07-19T18:40:16+00:00","score":1},{"role":"OP","user_id":"anon_9576c0167991a51e","comment_id":"jsmigvj","kind":"comment","text":"“Please review this PR, thank you “\nJust some reformatting","timestamp":"2023-07-19T18:43:17+00:00","score":1},{"role":"answerer","user_id":"anon_fe8c6020c1e341bb","comment_id":"jsmj80t","kind":"comment","text":"Well, yes, but that is not the Swanson way: https://youtube.com/clip/UgkxyTcS60CQao9L5Ab1EAYvoqo1r4YeZZWx","timestamp":"2023-07-19T18:47:58+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9576c0167991a51e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fe8c6020c1e341bb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jsmhzeq","thanks_reply_id":"jsmigvj","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_6bf502fdb3b68c6b","answerer_user_id":"anon_3f8a0db639cfd676","subreddit":"programming","timestamp":"2023-07-29T14:02:58+00:00","post_id":"15ct3z2","question":"Has c changed since 1994?\n\nIm teaching myself c before my classes for computer science start in the fall using my moms old programming textbook from when she was going to school, I understand that this field updates particularly fast, i was wondering if the information in this book is obsolete, or if it can really give me strong fundamentals in c.","preferred_answer":"`7` is not the EOF \"character\". The manpage* to ASCII says the ASCII code 7 is \"bell\". EOF is `-1` (and it isn't a character). Better just use the `EOF` macro/constant. You enter EOF (close stdin) on Lunx/Unix via Ctrl+D (not sure if its the same under macOS and no idea what it is under Windows, that web page seems to support CTRL+D). The Linux manpage to `getchar()` says (paraphrased):\n\n> getchar() reads the next character from stdin and returns it as an unsigned char cast to an int, or EOF on end of file or error.\n\nThey say character, but it is just a byte these days, since characters can be more than one byte. Meaning it returns a value from 0 to 255 on success or -1 (EOF) on error or end of file.\n\nI've tried to run your program and then hit Ctrl+D, which just caused it to loop forever because it didn't handle EOF correctly.\n\nHere is a fixed (and reformatted) version:\nhttps://replit.com/@panzi/Chap-4-switches-practice#main.c\n\n* Manpages are \"manual pages\" and can be read on the command line. E.g. enter \"man getchar\" or \"man ascii\" to read the manual page to these topics. There are also online versions on the web available.","full_conversation":[{"role":"OP","user_id":"anon_6bf502fdb3b68c6b","comment_id":"15ct3z2","kind":"post","text":"Has c changed since 1994?\n\nIm teaching myself c before my classes for computer science start in the fall using my moms old programming textbook from when she was going to school, I understand that this field updates particularly fast, i was wondering if the information in this book is obsolete, or if it can really give me strong fundamentals in c.","timestamp":"2023-07-29T14:02:58+00:00","score":0},{"role":"answerer","user_id":"anon_3f8a0db639cfd676","comment_id":"ju0bky5","kind":"comment","text":"`7` is not the EOF \"character\". The manpage* to ASCII says the ASCII code 7 is \"bell\". EOF is `-1` (and it isn't a character). Better just use the `EOF` macro/constant. You enter EOF (close stdin) on Lunx/Unix via Ctrl+D (not sure if its the same under macOS and no idea what it is under Windows, that web page seems to support CTRL+D). The Linux manpage to `getchar()` says (paraphrased):\n\n> getchar() reads the next character from stdin and returns it as an unsigned char cast to an int, or EOF on end of file or error.\n\nThey say character, but it is just a byte these days, since characters can be more than one byte. Meaning it returns a value from 0 to 255 on success or -1 (EOF) on error or end of file.\n\nI've tried to run your program and then hit Ctrl+D, which just caused it to loop forever because it didn't handle EOF correctly.\n\nHere is a fixed (and reformatted) version:\nhttps://replit.com/@panzi/Chap-4-switches-practice#main.c\n\n* Manpages are \"manual pages\" and can be read on the command line. E.g. enter \"man getchar\" or \"man ascii\" to read the manual page to these topics. There are also online versions on the web available.","timestamp":"2023-07-29T23:43:50+00:00","score":1},{"role":"OP","user_id":"anon_6bf502fdb3b68c6b","comment_id":"ju0lmxl","kind":"comment","text":"Thank you for you insight, i am very very new to this sort of thing, im unaware of how coding is applied on the scale you evidently are aware of. Can you tell me more about what a shell is and whats my relationship to it as someone who types code?","timestamp":"2023-07-30T01:02:15+00:00","score":1},{"role":"answerer","user_id":"anon_3f8a0db639cfd676","comment_id":"ju0r8mu","kind":"comment","text":"A shell is the program that runs in a terminal (or terminal emulator). The most common shell under Unix(-like) operating systems (Linux, macOS, ...) is bash, although macOS replaced bash with zsh in recent releases. A shell is used to run commands, but you can also write very simple programs (shell scripts) in them.\n\n*Technically* a shell is the interface between the operating system and the user, so under Windows the Windows GUI (desktop, explorer, start menu, system settings) can be called a graphical shell, but nobody does that. If you say \"shell\" everyone just assumes the text based shell. The way you have to escape command line arguments is defined by the shell (under Unix(-like) OSes). Things like auto-completion are done by the shell (if your shell supports that).\n\nThe terminal emulator is the window in which the shell runs. It's the thing that has tabs and renders the ANSI escape sequences that are printed by any running program as colorful letters. It's called a terminal *emulator* because originally a real terminal is a hardware device, more or less a monitor and keyboard connected to the real computer over some cable based connection.\n\nMaybe also note worthy in that context are remote shells, like ssh (secure shell). ssh is a program to connect to a remote computer via an encrypted connection and login there as if you would run a terminal session on that remote computer. It is used to manage servers. Instead of starting a remote terminal session that runs e.g. bash on the remote server you can also just run another single command via ssh. git can be used via ssh, meaning any ssh server that has git on it can automatically be used as a git server (same is true for many other source version control systems). Related to that is scp (secure copy), that lets you copy files from/to ssh servers (that support scp, which they usually all do). ssh uses similar encryption methods to HTTPS.\n\nSee also:\n\n* https://en.wikipedia.org/wiki/Unix_shell\n* https://en.wikipedia.org/wiki/Terminal_emulator\n* https://en.wikipedia.org/wiki/Computer_terminal#Dumb_terminals\n* https://en.wikipedia.org/wiki/Secure_Shell","timestamp":"2023-07-30T01:47:04+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6bf502fdb3b68c6b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_3f8a0db639cfd676","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ju0bky5","thanks_reply_id":"ju0lmxl","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_8f87d2081e3195ae","answerer_user_id":"anon_45da35ebed17df86","subreddit":"programming","timestamp":"2023-08-09T19:07:41+00:00","post_id":"15modnw","question":"What do you recommend for this problem?","preferred_answer":"I would start with an easier language like javascript or python for this kind of development then move on after you’ve mastered it","full_conversation":[{"role":"OP","user_id":"anon_8f87d2081e3195ae","comment_id":"15modnw","kind":"post","text":"What do you recommend for this problem?","timestamp":"2023-08-09T19:07:41+00:00","score":0},{"role":"answerer","user_id":"anon_45da35ebed17df86","comment_id":"jvhflwr","kind":"comment","text":"I would start with an easier language like javascript or python for this kind of development then move on after you’ve mastered it","timestamp":"2023-08-09T19:26:26+00:00","score":0},{"role":"OP","user_id":"anon_8f87d2081e3195ae","comment_id":"jvhhtqk","kind":"comment","text":"Thank you but I already know Python (as it says in the link)","timestamp":"2023-08-09T19:39:47+00:00","score":-2},{"role":"answerer","user_id":"anon_45da35ebed17df86","comment_id":"jvidn6z","kind":"comment","text":"do you know JS or C++ I use python mainly but I learned how to be proficient because of object oriented programming","timestamp":"2023-08-09T23:05:44+00:00","score":0}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8f87d2081e3195ae","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_45da35ebed17df86","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jvhflwr","thanks_reply_id":"jvhhtqk","post_score":0,"answer_score":0,"preferred_answer_is_top_level":true}} {"user_id":"anon_cbccb90e4788a89f","answerer_user_id":"anon_c2bc4e73cb7c0bf4","subreddit":"programming","timestamp":"2023-08-19T09:36:26+00:00","post_id":"15vbob5","question":"How We Achieved Minimal Downtime During Our PostgreSQL Database Upgrade","preferred_answer":"> Since Dcard’s architecture is based on microservices, there are also other services that directly connect to the PG 9.6 Cluster.\n\nIsn’t it considered bad practice for multiple services to connect to the same DB? I thought each service was supposed to use its own storage backend and communicate via an API or messaging system","full_conversation":[{"role":"OP","user_id":"anon_cbccb90e4788a89f","comment_id":"15vbob5","kind":"post","text":"How We Achieved Minimal Downtime During Our PostgreSQL Database Upgrade","timestamp":"2023-08-19T09:36:26+00:00","score":30},{"role":"answerer","user_id":"anon_c2bc4e73cb7c0bf4","comment_id":"jwvycya","kind":"comment","text":"> Since Dcard’s architecture is based on microservices, there are also other services that directly connect to the PG 9.6 Cluster.\n\nIsn’t it considered bad practice for multiple services to connect to the same DB? I thought each service was supposed to use its own storage backend and communicate via an API or messaging system","timestamp":"2023-08-19T17:55:23+00:00","score":3},{"role":"OP","user_id":"anon_cbccb90e4788a89f","comment_id":"jwz1ta1","kind":"comment","text":"u/xnode79 Thank you for your explanation. Indeed, we have a situation where there are multiple databases on our Postgres Cluster. On the other hand, we have another service that is dedicated to read-only operations, and it sources its data from the underlying Postgres Cluster. \nWhile in the design of microservices, it would be preferable for each service to have its own database, the consideration of transactional issues makes it not always feasible to split things so cleanly.","timestamp":"2023-08-20T08:20:56+00:00","score":3},{"role":"answerer","user_id":"anon_c2bc4e73cb7c0bf4","comment_id":"jwz5j2x","kind":"comment","text":"Yeah I didn’t mean to imply that your architecture is wrong, I just know this is a controversial topic in micro service design, so I was wondering about it myself. If it works for your org then that’s great","timestamp":"2023-08-20T09:10:12+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_cbccb90e4788a89f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c2bc4e73cb7c0bf4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jwvycya","thanks_reply_id":"jwz1ta1","post_score":30,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_d79a5bf2ef7f859a","answerer_user_id":"anon_77ae7b275b1492cc","subreddit":"programming","timestamp":"2023-08-19T16:39:37+00:00","post_id":"15vkyea","question":"Github Codespace (with Copilot) VS CodeSandBox (with Boxy): which of those full-stack programming services do you think offers the best product? I have a feeling that GitHub Copilot has maybe an edge because it might have more code to back it up, but both seem to offer comparable. What do you think?","preferred_answer":"Yes, and I use Chrome to make into an \"App\" so it opens in its own window without the browser decorators. The end result is a desktop app experience, completely remote, that works anywhere. I'll use my iPad + keyboard to code on the go, and switch to my desktop, and just keep going from there.\n\nThe best part is offloading all the CPU work remotely, which means I can allocate more power as needed to dev. I can also run services concurrently in the same pod, such that I have code server, cockroachdb, nats, etc all running at the same time, and can dev on localhost like I would if I were using it natively.\n\nBeen doing this for maybe 3 years now, I could never go back.","full_conversation":[{"role":"OP","user_id":"anon_d79a5bf2ef7f859a","comment_id":"15vkyea","kind":"post","text":"Github Codespace (with Copilot) VS CodeSandBox (with Boxy): which of those full-stack programming services do you think offers the best product? I have a feeling that GitHub Copilot has maybe an edge because it might have more code to back it up, but both seem to offer comparable. What do you think?","timestamp":"2023-08-19T16:39:37+00:00","score":0},{"role":"answerer","user_id":"anon_77ae7b275b1492cc","comment_id":"jwvrbuw","kind":"comment","text":"Yes, and I use Chrome to make into an \"App\" so it opens in its own window without the browser decorators. The end result is a desktop app experience, completely remote, that works anywhere. I'll use my iPad + keyboard to code on the go, and switch to my desktop, and just keep going from there.\n\nThe best part is offloading all the CPU work remotely, which means I can allocate more power as needed to dev. I can also run services concurrently in the same pod, such that I have code server, cockroachdb, nats, etc all running at the same time, and can dev on localhost like I would if I were using it natively.\n\nBeen doing this for maybe 3 years now, I could never go back.","timestamp":"2023-08-19T17:11:42+00:00","score":2},{"role":"OP","user_id":"anon_d79a5bf2ef7f859a","comment_id":"jwvtu45","kind":"comment","text":"Thanks for your time, I tried a quick search. I know well Docker, but not Kubernetes. Do you have to run a pre-packaged IDE-like app or something like that?","timestamp":"2023-08-19T17:27:30+00:00","score":1},{"role":"answerer","user_id":"anon_77ae7b275b1492cc","comment_id":"jwvuewi","kind":"comment","text":"Yep, take a look at [this repo for code-server.](https://github.com/coder/code-server) It works just fine in docker directly as well, I just use Kubernetes because I have clusters of machines I can use.","timestamp":"2023-08-19T17:31:04+00:00","score":2},{"role":"OP","user_id":"anon_d79a5bf2ef7f859a","comment_id":"jww19wz","kind":"comment","text":"Well I see. It seems to be still a service that you need to pay for extend possibilities, but you seem to make the most of it with the simple free basic pack. At least with chatGPT 3.5, it a nice free solution for home starter [https://sourceforge.net/software/compare/CodeSandbox-vs-Coder-vs-Codespaces/](https://sourceforge.net/software/compare/CodeSandbox-vs-Coder-vs-Codespaces/)","timestamp":"2023-08-19T18:13:00+00:00","score":0},{"role":"answerer","user_id":"anon_77ae7b275b1492cc","comment_id":"jww2fg6","kind":"comment","text":"No, you don't pay for it. It's free and open source, and you can run it yourself and do whatever you want with it.\n\nThe company does have a paid offering that does all the hard work for you, which is where paying comes in.\n\nAdding copilot or chatgpt is trivial to do in your own self hosted environment, as I do both.","timestamp":"2023-08-19T18:19:50+00:00","score":2}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_d79a5bf2ef7f859a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_77ae7b275b1492cc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jwvrbuw","thanks_reply_id":"jwvtu45","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_bd2f83032ff09da9","answerer_user_id":"anon_012d2bf54893b647","subreddit":"programming","timestamp":"2023-08-25T18:06:05+00:00","post_id":"1616jtg","question":"Am I underthinking this project? *Project Diagram*","preferred_answer":"Speech to text isn't exactly perfect and will make errors a lot of the time. If you're thinking of this as a toy for children would you have a subscription service as all of those things on the webserver end will cost. On top of that, the toy will have to be connected to wifi in some way. You'd also have to take into account the LLM token limit per session.","full_conversation":[{"role":"OP","user_id":"anon_bd2f83032ff09da9","comment_id":"1616jtg","kind":"post","text":"Am I underthinking this project? *Project Diagram*","timestamp":"2023-08-25T18:06:05+00:00","score":0},{"role":"answerer","user_id":"anon_012d2bf54893b647","comment_id":"jxq7wbf","kind":"comment","text":"Speech to text isn't exactly perfect and will make errors a lot of the time. If you're thinking of this as a toy for children would you have a subscription service as all of those things on the webserver end will cost. On top of that, the toy will have to be connected to wifi in some way. You'd also have to take into account the LLM token limit per session.","timestamp":"2023-08-25T18:30:54+00:00","score":2},{"role":"OP","user_id":"anon_bd2f83032ff09da9","comment_id":"jxqboz8","kind":"comment","text":"Thanks for your reply! My plan was to program an Arduino with a wifi antenna to stuff into a toy for my kid for fun. I'll program something more helpful in the future. I haven't run the costs, but I could cap the requests and have it auto respond when I've hit the cap. I could also have it have cap request complexity. But it looks like a few bucks will get it pretty far.","timestamp":"2023-08-25T18:54:45+00:00","score":1},{"role":"answerer","user_id":"anon_012d2bf54893b647","comment_id":"jxqc9wd","kind":"comment","text":"Oh yeah if this is just a personal project then yeah, I think you have a pretty solid plan there.","timestamp":"2023-08-25T18:58:23+00:00","score":1},{"role":"OP","user_id":"anon_bd2f83032ff09da9","comment_id":"jxqcggf","kind":"comment","text":"You're the bomb dude. Thanks.","timestamp":"2023-08-25T18:59:33+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_bd2f83032ff09da9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_012d2bf54893b647","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jxq7wbf","thanks_reply_id":"jxqboz8","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_5b92ecaf48410166","answerer_user_id":"anon_29b593d4c21a02bf","subreddit":"programming","timestamp":"2023-08-30T11:55:01+00:00","post_id":"165clqv","question":"What laptop should I get for game programming and design?\n\nI just started my freshman year a few weeks ago and I definitely need to get a new laptop for programming and coding (I’m taking Bachelor of Science in Entertainment and Multimedia Computing: major in Game Development and Animation) btw I’m still quite new to the world of programming so I have little knowledge about these stuff yet.\n\nDoes anyone know which laptops are best for Game Programming as a student? I’ve done some research and it’s usually Macbooks or a really good gaming laptop but I’m not too sure about mac cuz it’s not windows so I don’t really know yet. Does anyone have suggestions? budget ones would also be nice or I could get second hand ones so it’s cheaper","preferred_answer":"Yes, I'd say the m1 MacBook is currently the best developer laptop you can use.","full_conversation":[{"role":"OP","user_id":"anon_5b92ecaf48410166","comment_id":"165clqv","kind":"post","text":"What laptop should I get for game programming and design?\n\nI just started my freshman year a few weeks ago and I definitely need to get a new laptop for programming and coding (I’m taking Bachelor of Science in Entertainment and Multimedia Computing: major in Game Development and Animation) btw I’m still quite new to the world of programming so I have little knowledge about these stuff yet.\n\nDoes anyone know which laptops are best for Game Programming as a student? I’ve done some research and it’s usually Macbooks or a really good gaming laptop but I’m not too sure about mac cuz it’s not windows so I don’t really know yet. Does anyone have suggestions? budget ones would also be nice or I could get second hand ones so it’s cheaper","timestamp":"2023-08-30T11:55:01+00:00","score":0},{"role":"answerer","user_id":"anon_29b593d4c21a02bf","comment_id":"jydl3ln","kind":"comment","text":"Yes, I'd say the m1 MacBook is currently the best developer laptop you can use.","timestamp":"2023-08-30T14:12:09+00:00","score":1},{"role":"OP","user_id":"anon_5b92ecaf48410166","comment_id":"jydnndq","kind":"comment","text":"Oh okay, thank you! I was also wondering if it’s possible to run windows on macbooks? I think it was called bootcamp or something, does it still work well today?","timestamp":"2023-08-30T14:28:28+00:00","score":1},{"role":"answerer","user_id":"anon_29b593d4c21a02bf","comment_id":"jydsiwx","kind":"comment","text":"Boot camp doesn't exist for newer Mac's. You best bet is virtualization.\n\nhttps://support.microsoft.com/en-us/windows/options-for-using-windows-11-with-mac-computers-with-apple-m1-and-m2-chips-cd15fd62-9b34-4b78-b0bc-121baa3c568c","timestamp":"2023-08-30T14:58:53+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5b92ecaf48410166","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_29b593d4c21a02bf","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jydl3ln","thanks_reply_id":"jydnndq","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_d254c6f13283b20a","answerer_user_id":"anon_78817f652f734416","subreddit":"programming","timestamp":"2023-08-30T14:33:04+00:00","post_id":"165geao","question":"Ideas to make our website mobile-compatible?","preferred_answer":"I played with the site for all of 5 minutes, so grain of salt and all that jazz. \n\n1. I am impressed with the functionality. I like being able to create a chart using a spreadsheet interface. Kinda like doing UML without the special symbols. I could see teaching an administrator how to use this without their eyes glazing over, whereas I wouldn’t attempt the same with raw MermaidJS. \n\n2. Your conundrum. I think you’re right that a read only mode would have limited use. But I do think it would _have_ use. So definitely implement it. Even if a person just needs to review a chart they made but didn’t export out into a presentation or something would probably increase the usability of the product quite a bit. \n\n2.1 for actual interactivity I would suggest taking each of your interface panes and making them full screen tabs on mobile. E.g. “view chart” “view process”, etc. this way a user who is comfortable with the system could edit the spreadsheet interface full screen on their phone. Then flip over to the chart view to see the generated chart. Don’t be afraid to make functionality limited, especially at first. Simple add, edit, delete functionality for rows on the spreadsheet interface is fine.\n\n2.2 get a little fancier _after_ you’ve got the basic interface. Allow a “jump to” mode on either screen. So if I had a complicated chart with many steps let me click on the item in the flowchart to jump to that item in the spreadsheet interface, and vice-versa.","full_conversation":[{"role":"OP","user_id":"anon_d254c6f13283b20a","comment_id":"165geao","kind":"post","text":"Ideas to make our website mobile-compatible?","timestamp":"2023-08-30T14:33:04+00:00","score":0},{"role":"answerer","user_id":"anon_78817f652f734416","comment_id":"jydvjfc","kind":"comment","text":"I played with the site for all of 5 minutes, so grain of salt and all that jazz. \n\n1. I am impressed with the functionality. I like being able to create a chart using a spreadsheet interface. Kinda like doing UML without the special symbols. I could see teaching an administrator how to use this without their eyes glazing over, whereas I wouldn’t attempt the same with raw MermaidJS. \n\n2. Your conundrum. I think you’re right that a read only mode would have limited use. But I do think it would _have_ use. So definitely implement it. Even if a person just needs to review a chart they made but didn’t export out into a presentation or something would probably increase the usability of the product quite a bit. \n\n2.1 for actual interactivity I would suggest taking each of your interface panes and making them full screen tabs on mobile. E.g. “view chart” “view process”, etc. this way a user who is comfortable with the system could edit the spreadsheet interface full screen on their phone. Then flip over to the chart view to see the generated chart. Don’t be afraid to make functionality limited, especially at first. Simple add, edit, delete functionality for rows on the spreadsheet interface is fine.\n\n2.2 get a little fancier _after_ you’ve got the basic interface. Allow a “jump to” mode on either screen. So if I had a complicated chart with many steps let me click on the item in the flowchart to jump to that item in the spreadsheet interface, and vice-versa.","timestamp":"2023-08-30T15:17:43+00:00","score":2},{"role":"OP","user_id":"anon_d254c6f13283b20a","comment_id":"jyhyat3","kind":"comment","text":"This is an excellent comment – Thank you! I worked on the app overnight and just deployed a limited mobile version, in large part based on your suggestions.","timestamp":"2023-08-31T09:47:17+00:00","score":1},{"role":"answerer","user_id":"anon_78817f652f734416","comment_id":"jyj9ywq","kind":"comment","text":"Glad you found it helpful. Good luck with the project!","timestamp":"2023-08-31T15:53:13+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d254c6f13283b20a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_78817f652f734416","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jydvjfc","thanks_reply_id":"jyhyat3","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_078a98dc4f945533","answerer_user_id":"anon_cbb8b3687657de41","subreddit":"programming","timestamp":"2023-09-03T23:22:31+00:00","post_id":"169bo7i","question":"Which step should I follow next?\n\nSo, I took a course about programming for companies, where I developed some skills in HTML, PHP, CSS, C and VB.NET.\nAll I can say is I've got very disappointed because PHP, C and VB.NET (winforms) is getting very deprecated. PHP is desapearing slowly, as many people are moving on to other frameworks. C is very old, and people nowadays uses C++ or C#. VB.NET (winforms) runs very poor in performance comparated to Java and others languages...\n\nIn your honest opinion, what should I follow next? I really want to develop some cool desktop apps with good performance. Using winforms is very easy, and I customize the form very well to the modern standards. I think Java could be a good one, but It seems kinda hard to learn compared to VB.NET.\nMAUI seems to be a bit complex to start.\nWhat would you do in my place?","preferred_answer":">VB.NET (winforms) runs very poor in performance comparated to Java and others languages...\n\nNo it does not, it's performance is comparable to C#.","full_conversation":[{"role":"OP","user_id":"anon_078a98dc4f945533","comment_id":"169bo7i","kind":"post","text":"Which step should I follow next?\n\nSo, I took a course about programming for companies, where I developed some skills in HTML, PHP, CSS, C and VB.NET.\nAll I can say is I've got very disappointed because PHP, C and VB.NET (winforms) is getting very deprecated. PHP is desapearing slowly, as many people are moving on to other frameworks. C is very old, and people nowadays uses C++ or C#. VB.NET (winforms) runs very poor in performance comparated to Java and others languages...\n\nIn your honest opinion, what should I follow next? I really want to develop some cool desktop apps with good performance. Using winforms is very easy, and I customize the form very well to the modern standards. I think Java could be a good one, but It seems kinda hard to learn compared to VB.NET.\nMAUI seems to be a bit complex to start.\nWhat would you do in my place?","timestamp":"2023-09-03T23:22:31+00:00","score":0},{"role":"answerer","user_id":"anon_cbb8b3687657de41","comment_id":"jz24kep","kind":"comment","text":">VB.NET (winforms) runs very poor in performance comparated to Java and others languages...\n\nNo it does not, it's performance is comparable to C#.","timestamp":"2023-09-04T06:02:30+00:00","score":2},{"role":"OP","user_id":"anon_078a98dc4f945533","comment_id":"jz29pr3","kind":"comment","text":"Thanks for the info m8! Tho, by talking about performance, I know there are other languages (or platforms??) which perform significantly better. It's comparable to C# if we are comparing winforms on each other, so winforms runs very poor.\n\nI see some limitations in PHP. Tho, I think I should invest time learning on using PHP and JavaScript maybe?\n\nDesktop apps is what I most like, but we can't have what we want ig.. Web development is way more popular nowadays, and I can't stick just to desktop apps anymore.","timestamp":"2023-09-04T06:56:43+00:00","score":2},{"role":"answerer","user_id":"anon_cbb8b3687657de41","comment_id":"jz48qol","kind":"comment","text":">Desktop apps is what I most like, but we can't have what we want ig\n\nEverything is a web app nowadays, even on mobile..","timestamp":"2023-09-04T17:05:43+00:00","score":1},{"role":"OP","user_id":"anon_078a98dc4f945533","comment_id":"jz4csvg","kind":"comment","text":"Local appss are disappearing very fast. I really need to start joining in the web world","timestamp":"2023-09-04T17:31:33+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_078a98dc4f945533","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cbb8b3687657de41","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jz24kep","thanks_reply_id":"jz29pr3","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_09fffad8dfb6d793","answerer_user_id":"anon_5052554bbe9115da","subreddit":"programming","timestamp":"2023-09-08T18:33:33+00:00","post_id":"16dibga","question":"Is there anyone to review my CV for me?\n\nI am sorry if this is not the right platform for this but there seem to be a lot of programmers here and I guessed they are the right persons to critique my CV. \n\nOnce again, I apologize. I will appreciate any person who offers me valuable advice. I am a bit down at the moment as I need a job badly. Thank you.","preferred_answer":"I look at a lot of CVs. I don’t hate this one because it does show a bit of passion and self selling which many lack. Some points of critique:\n\n* It makes a lot of entrepreneurial nouse rather than technical excellence. That might work if I was looking for a client facing solutions person, but I do was looking a solid engineer, I’d like to hear more about your technical contributions.\n* Your skills are not linked to the roles. This makes it very difficult for me to tell what you’re really good at. Ideally each role should give me an idea of what primary skill was associated with it. A list of skills at the end isn’t all that helpful, especially if it’s long.\n* You’ve got some grammar errors and in some places mix up past and present tense. E.g. “Offer advise” rather than “Offered advice”. That kind of stuff matters on CV because people use it as a proxy for how good a communicator you might be. A CV should basically have flawless grammar and spelling.","full_conversation":[{"role":"OP","user_id":"anon_09fffad8dfb6d793","comment_id":"16dibga","kind":"post","text":"Is there anyone to review my CV for me?\n\nI am sorry if this is not the right platform for this but there seem to be a lot of programmers here and I guessed they are the right persons to critique my CV. \n\nOnce again, I apologize. I will appreciate any person who offers me valuable advice. I am a bit down at the moment as I need a job badly. Thank you.","timestamp":"2023-09-08T18:33:33+00:00","score":0},{"role":"answerer","user_id":"anon_5052554bbe9115da","comment_id":"jzpww7g","kind":"comment","text":"I look at a lot of CVs. I don’t hate this one because it does show a bit of passion and self selling which many lack. Some points of critique:\n\n* It makes a lot of entrepreneurial nouse rather than technical excellence. That might work if I was looking for a client facing solutions person, but I do was looking a solid engineer, I’d like to hear more about your technical contributions.\n* Your skills are not linked to the roles. This makes it very difficult for me to tell what you’re really good at. Ideally each role should give me an idea of what primary skill was associated with it. A list of skills at the end isn’t all that helpful, especially if it’s long.\n* You’ve got some grammar errors and in some places mix up past and present tense. E.g. “Offer advise” rather than “Offered advice”. That kind of stuff matters on CV because people use it as a proxy for how good a communicator you might be. A CV should basically have flawless grammar and spelling.","timestamp":"2023-09-08T19:56:07+00:00","score":12},{"role":"OP","user_id":"anon_09fffad8dfb6d793","comment_id":"jzpy9wu","kind":"comment","text":"Wow! This is very elaborate. Thank you so much for your wonderful input. Your comment does it for me. I will amend the CV quickly based on your suggestions. You are my hero.","timestamp":"2023-09-08T20:04:31+00:00","score":7},{"role":"answerer","user_id":"anon_5052554bbe9115da","comment_id":"jzpyjeo","kind":"comment","text":"No problem 😉","timestamp":"2023-09-08T20:06:06+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_09fffad8dfb6d793","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5052554bbe9115da","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"jzpww7g","thanks_reply_id":"jzpy9wu","post_score":0,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_6572749514b5a769","answerer_user_id":"anon_f6590183efbad5eb","subreddit":"programming","timestamp":"2023-09-11T08:45:42+00:00","post_id":"16fq3bb","question":"does it seem only to me, but programmers need to know a lot of things, I mean a looot\n\nYou have to know multiple languages, frameworks, libraries, stacks, math, algorithms and etc.","preferred_answer":"The logic processes of programming can be used in many languages, so its easy to transfer between languages if you know at least one.\n\nMath and algorithms you learn over time as you do new projects that require different ways of doing things.\n\nFrameworks and libraries, nobody remembers them, we just look at the documentation and take what we need and ignore the rest.","full_conversation":[{"role":"OP","user_id":"anon_6572749514b5a769","comment_id":"16fq3bb","kind":"post","text":"does it seem only to me, but programmers need to know a lot of things, I mean a looot\n\nYou have to know multiple languages, frameworks, libraries, stacks, math, algorithms and etc.","timestamp":"2023-09-11T08:45:42+00:00","score":0},{"role":"answerer","user_id":"anon_f6590183efbad5eb","comment_id":"k09oruf","kind":"comment","text":"The logic processes of programming can be used in many languages, so its easy to transfer between languages if you know at least one.\n\nMath and algorithms you learn over time as you do new projects that require different ways of doing things.\n\nFrameworks and libraries, nobody remembers them, we just look at the documentation and take what we need and ignore the rest.","timestamp":"2023-09-12T15:28:43+00:00","score":2},{"role":"OP","user_id":"anon_6572749514b5a769","comment_id":"k09u0rd","kind":"comment","text":"I guess I get scred because of university. They are giving all at once. Thank you for the response, appreciate it 😇","timestamp":"2023-09-12T15:59:23+00:00","score":2},{"role":"answerer","user_id":"anon_f6590183efbad5eb","comment_id":"k09xela","kind":"comment","text":"Yes university is very hard because they are giving you it all at once. Its best to learn on your own at your own pace beforehand and then use uni to fill any gaps in knowledge.\n\nEither way though, once you start understanding how everything fits together it will not be as hard, possibly even fun.","timestamp":"2023-09-12T16:19:14+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_6572749514b5a769","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f6590183efbad5eb","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"k09oruf","thanks_reply_id":"k09u0rd","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_84ea4a9da30293a1","answerer_user_id":"anon_ad54eb51202aab08","subreddit":"programming","timestamp":"2023-09-23T15:25:20+00:00","post_id":"16q7aue","question":"Does anyone know Super-Forth 64? Doug Sharp found the disks for the original Forth source code to Commodore 64 ChipWits!","preferred_answer":"Here’s a link to a [manual](https://commodore.software/downloads/download/211-application-manuals/14011-superforth-64-user-manual) that might be somewhat useful?","full_conversation":[{"role":"OP","user_id":"anon_84ea4a9da30293a1","comment_id":"16q7aue","kind":"post","text":"Does anyone know Super-Forth 64? Doug Sharp found the disks for the original Forth source code to Commodore 64 ChipWits!","timestamp":"2023-09-23T15:25:20+00:00","score":156},{"role":"answerer","user_id":"anon_ad54eb51202aab08","comment_id":"k1va97q","kind":"comment","text":"Here’s a link to a [manual](https://commodore.software/downloads/download/211-application-manuals/14011-superforth-64-user-manual) that might be somewhat useful?","timestamp":"2023-09-23T16:06:00+00:00","score":17},{"role":"OP","user_id":"anon_84ea4a9da30293a1","comment_id":"k1vfrak","kind":"comment","text":"Thanks, u/wizzzarrd! Indeed that manual is helpful!","timestamp":"2023-09-23T16:40:52+00:00","score":9},{"role":"answerer","user_id":"anon_ad54eb51202aab08","comment_id":"k1wcm81","kind":"comment","text":"Happy to help!","timestamp":"2023-09-23T20:07:01+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_84ea4a9da30293a1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ad54eb51202aab08","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"k1va97q","thanks_reply_id":"k1vfrak","post_score":156,"answer_score":17,"preferred_answer_is_top_level":true}} {"user_id":"anon_d20acd83e962128d","answerer_user_id":"anon_46af99a47fb047ea","subreddit":"programming","timestamp":"2023-09-25T02:16:05+00:00","post_id":"16rfsf7","question":"I have a ton of free compute... why won't anybody use it?","preferred_answer":"cool concept! IMO the promotion should use `1000x` over `100x` :)","full_conversation":[{"role":"OP","user_id":"anon_d20acd83e962128d","comment_id":"16rfsf7","kind":"post","text":"I have a ton of free compute... why won't anybody use it?","timestamp":"2023-09-25T02:16:05+00:00","score":46},{"role":"answerer","user_id":"anon_46af99a47fb047ea","comment_id":"k24p82y","kind":"comment","text":"cool concept! IMO the promotion should use `1000x` over `100x` :)","timestamp":"2023-09-25T12:57:55+00:00","score":2},{"role":"OP","user_id":"anon_d20acd83e962128d","comment_id":"k24vatl","kind":"comment","text":"Thanks for the feedback, I really appreciate it!","timestamp":"2023-09-25T13:41:59+00:00","score":1},{"role":"answerer","user_id":"anon_46af99a47fb047ea","comment_id":"k24vqhi","kind":"comment","text":"btw shared it with the AI team at work today, initial reactions are positive! (I'm not in the AI team)","timestamp":"2023-09-25T13:44:58+00:00","score":2},{"role":"OP","user_id":"anon_d20acd83e962128d","comment_id":"k24vyrj","kind":"comment","text":"Thanks for sharing it with your AI team! If you hear any other additional feedback feel free to share :)","timestamp":"2023-09-25T13:46:34+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_d20acd83e962128d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_46af99a47fb047ea","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"k24p82y","thanks_reply_id":"k24vatl","post_score":46,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_67720ebf6ada1764","answerer_user_id":"anon_2d793eee94ad3456","subreddit":"programming","timestamp":"2023-10-12T07:56:15+00:00","post_id":"1761hjj","question":"How to make free CDN deploy with auto update?\n\nHi guys. I’m developing JS/CSS framework. I have a file in my GitHub repository, but I can’t use it in the HTML (cause of git raw). Do you know some good methods to make some CDN (or idk how does it called) to make possible to use this file by direct link from the main branch?\n\nNote: it has to be free","preferred_answer":"It seems like your library/framework is open source, so you could probably using something like https://www.jsdelivr.com/github","full_conversation":[{"role":"OP","user_id":"anon_67720ebf6ada1764","comment_id":"1761hjj","kind":"post","text":"How to make free CDN deploy with auto update?\n\nHi guys. I’m developing JS/CSS framework. I have a file in my GitHub repository, but I can’t use it in the HTML (cause of git raw). Do you know some good methods to make some CDN (or idk how does it called) to make possible to use this file by direct link from the main branch?\n\nNote: it has to be free","timestamp":"2023-10-12T07:56:15+00:00","score":0},{"role":"answerer","user_id":"anon_2d793eee94ad3456","comment_id":"k4jd4l0","kind":"comment","text":"It seems like your library/framework is open source, so you could probably using something like https://www.jsdelivr.com/github","timestamp":"2023-10-12T08:50:07+00:00","score":2},{"role":"OP","user_id":"anon_67720ebf6ada1764","comment_id":"k4jyg6p","kind":"comment","text":"Okay, thanks. I will try. By the way, what is this raw in GitHub, simply? Why we need to use CDN to bypass it?","timestamp":"2023-10-12T12:38:41+00:00","score":1},{"role":"answerer","user_id":"anon_2d793eee94ad3456","comment_id":"k4li08d","kind":"comment","text":"Github is not a file serving service, it's a version control system. They don't want people to hotlink to the raw files because if everyone did that, it would cause a lot of strain on their infrastructure.\n\njsdelivr focuses on the file serving part of operation and can only downloads the Github file once, then serves it from their internal CDN network afterwards, making sure no additional strain is placed on the Github servers.","timestamp":"2023-10-12T18:30:22+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_67720ebf6ada1764","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":"dark"},"answerer_metadata":{"user_id":"anon_2d793eee94ad3456","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"k4jd4l0","thanks_reply_id":"k4jyg6p","post_score":0,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_5c228465996fada4","answerer_user_id":"anon_668302c3c80d71bf","subreddit":"programming","timestamp":"2023-10-20T16:42:36+00:00","post_id":"17cfn5w","question":"How do I know if Web Development is for me?\n\nAround 4 months ago I started learning Web Development with HTML, CSS and JavaScript.\nI learnt the fundamentals and I used to practice with simple and small projects, from getting data from APIs to experiment new layouts and new stuff with CSS. I focused more on JavaScript, because I realised that I like to code more logic-oriented stuff.\n\nRecently I decided to give a go to a big project, but when I started to build it, I felt so bad because I started to stress a lot in HTML and CSS mainly. I realised that the only aspect of web development that I liked was the logic part, but I hated using HTML and CSS. I only enjoy coding when I code in JavaScript.\n\nI'm still trying to figure out, but how do I know if this is really for me or I should just look into another aspect of coding and leave apart Web Development? What are some questions that I can ask myself to decide? What would you suggest?\n\nThanks for everything.","preferred_answer":"Sounds like you'd enjoy doing the backend side of web development instead of the frontend. Things like fetching data from API's/databases, applying business logic to that data etc. I don't do much web development since I primarily work as a data engineer but you should be able to take some of your javascript skills and maybe look into playing around with some backend JS frameworks like Node, Express, Next etc. and see if you like them. Play around with learning things like how asynchronous vs synchronous requests work which gets into some interesting problem solving with race conditions and dealing with multiple network calls. I personally find myself really in love with backend/difficult logic problems and get bored to death with frontend.\n\nDid you do this big project with just raw HTML/CSS/JS files or did you use some sort of framework for the backend/frontend? That's where those frameworks become more and more useful but there's a lot more to learn with things like architecture, routing, etc when using them as opposed to just basic flat files.\n\nYou could also look into learning non web development stuff like building CLI tools, game development, big data, embedded systems, kernel development etc however I'd imagine the learning curve is going to be much much higher doing those things than just working on backend web stuff if you've just learned HTML, CSS, and JS.","full_conversation":[{"role":"OP","user_id":"anon_5c228465996fada4","comment_id":"17cfn5w","kind":"post","text":"How do I know if Web Development is for me?\n\nAround 4 months ago I started learning Web Development with HTML, CSS and JavaScript.\nI learnt the fundamentals and I used to practice with simple and small projects, from getting data from APIs to experiment new layouts and new stuff with CSS. I focused more on JavaScript, because I realised that I like to code more logic-oriented stuff.\n\nRecently I decided to give a go to a big project, but when I started to build it, I felt so bad because I started to stress a lot in HTML and CSS mainly. I realised that the only aspect of web development that I liked was the logic part, but I hated using HTML and CSS. I only enjoy coding when I code in JavaScript.\n\nI'm still trying to figure out, but how do I know if this is really for me or I should just look into another aspect of coding and leave apart Web Development? What are some questions that I can ask myself to decide? What would you suggest?\n\nThanks for everything.","timestamp":"2023-10-20T16:42:36+00:00","score":0},{"role":"answerer","user_id":"anon_668302c3c80d71bf","comment_id":"k5ppdpb","kind":"comment","text":"Sounds like you'd enjoy doing the backend side of web development instead of the frontend. Things like fetching data from API's/databases, applying business logic to that data etc. I don't do much web development since I primarily work as a data engineer but you should be able to take some of your javascript skills and maybe look into playing around with some backend JS frameworks like Node, Express, Next etc. and see if you like them. Play around with learning things like how asynchronous vs synchronous requests work which gets into some interesting problem solving with race conditions and dealing with multiple network calls. I personally find myself really in love with backend/difficult logic problems and get bored to death with frontend.\n\nDid you do this big project with just raw HTML/CSS/JS files or did you use some sort of framework for the backend/frontend? That's where those frameworks become more and more useful but there's a lot more to learn with things like architecture, routing, etc when using them as opposed to just basic flat files.\n\nYou could also look into learning non web development stuff like building CLI tools, game development, big data, embedded systems, kernel development etc however I'd imagine the learning curve is going to be much much higher doing those things than just working on backend web stuff if you've just learned HTML, CSS, and JS.","timestamp":"2023-10-20T17:03:57+00:00","score":1},{"role":"OP","user_id":"anon_5c228465996fada4","comment_id":"k5pqwaj","kind":"comment","text":"Hi and thanks for the answer.\n\nI didn't touch any framework because I wanted to make sure I got to a proficient level of the basics first.\n\nAlso I was wondering, because it has been told to me that a backend developer should know how to work with the frontend as well.\n\nI also heard that people don't hire junior backed developers, my goal would eventually be to get a job one day.\n\nWhat do you suggest? I'm also open to exploring other areas of programming, what do you think might be suitable for me?\n\nThanks a lot.","timestamp":"2023-10-20T17:13:16+00:00","score":2},{"role":"answerer","user_id":"anon_668302c3c80d71bf","comment_id":"k5q09xj","kind":"comment","text":"No problem. This definitely is one of those there is no way for me to know what would be good for you type of answers. I'm self taught as well not just in programming but lots of other things and the thing I always find is try different things (which will feel very difficult at times) and see which ones you notice you have a natural enthusiasm for. Enthusiasm makes learning effortless, and the way I'd go about learning would be to just try all kinds of different projects. \n\nThings like a simple MVC app that interacts with a database, maybe a page where you can input some data into a text box and then you call a few different public API's to return data (stupid example but something like was it raining on the release date of a movie could poll a weather api and IMDB api and then join that data in some sensible way), etc. Just experiment with different things and find your enthusiasms. Frontend can be absurdly simple in this example like just a bare bones HTML form that takes a value all the way to much more complicated like using something like React (which would be way overkill). \n\nI'd also recommend maybe following a course or youtube playlist for big projects so you can see how others do it. I did this with Java when I was learning it and it was pretty helpful. Also maybe consider a coding bootcamp if you have the means and are serious enough, people will question the value of bootcamps but in my opinion what you get out of it is what you put into it. Happy to answer any other questions you might have I know it's super hard when you're new to this stuff","timestamp":"2023-10-20T18:10:43+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_5c228465996fada4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_668302c3c80d71bf","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"k5ppdpb","thanks_reply_id":"k5pqwaj","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_c638e0868419d52f","answerer_user_id":"anon_572a3efb899fa324","subreddit":"programming","timestamp":"2023-10-27T06:15:55+00:00","post_id":"17hh38g","question":"Very unfaithful about starting programming. Any tips/knowledge?\n\nIdk if this is the right place to posy something like this, but I'm very unfaithful about trying to work with programming.\n\nTo be honest, my dream is to create games, or go to hacking areas, but to start I learned Python, Javascript, HTML, CSS, a bit of C and C++, and also Gamemaker. But because I don't have any work, I can't start working (at least 1 year of working with x area and superior degree complete), even because I don't have a superior degree, I learn alone.\n\nI just wanted to work somewhere, may it be we've design, RPA, games, back-end, but it seems that I need to be a fullstack with a portfolio of 3 or more complete projects and work for free for some time. Is that correct?\n\nWhat else do I need to learn to be able to get a job? I'm tired of being an telemarketing operator gaining the equivalent of U$220,00 per month, more or less (i live in brazil). Please, share some knowledge about how did you guys start, and somethings that you wish you knew when where starting.","preferred_answer":"Hi, if you want to work on games you need to get familiar with the tools professional game developers are using. If you manage to write a game that is fun to play, having that on your resume would dramatically increase your chances.\nGoing to university would only give you basic knowledge of Computer Science unless you could find one which offers Game Development specialization, but I believe that's going to be very hard to find in Brazil (I am brazilian too, but have lived overseas for more than 20 years)... so even then, you may have trouble.\nIf you can attend some programming course that has credibility in your region, that should also help, but it's rarely enough.\nSo, get at least some education in programming, even if it's just a 1-year bootcamp, learn as much as you can, develop something you can show to potential employers (have at least one in mind and see what they're looking for) and you may just be able to get something.","full_conversation":[{"role":"OP","user_id":"anon_c638e0868419d52f","comment_id":"17hh38g","kind":"post","text":"Very unfaithful about starting programming. Any tips/knowledge?\n\nIdk if this is the right place to posy something like this, but I'm very unfaithful about trying to work with programming.\n\nTo be honest, my dream is to create games, or go to hacking areas, but to start I learned Python, Javascript, HTML, CSS, a bit of C and C++, and also Gamemaker. But because I don't have any work, I can't start working (at least 1 year of working with x area and superior degree complete), even because I don't have a superior degree, I learn alone.\n\nI just wanted to work somewhere, may it be we've design, RPA, games, back-end, but it seems that I need to be a fullstack with a portfolio of 3 or more complete projects and work for free for some time. Is that correct?\n\nWhat else do I need to learn to be able to get a job? I'm tired of being an telemarketing operator gaining the equivalent of U$220,00 per month, more or less (i live in brazil). Please, share some knowledge about how did you guys start, and somethings that you wish you knew when where starting.","timestamp":"2023-10-27T06:15:55+00:00","score":0},{"role":"answerer","user_id":"anon_572a3efb899fa324","comment_id":"k6necj5","kind":"comment","text":"Hi, if you want to work on games you need to get familiar with the tools professional game developers are using. If you manage to write a game that is fun to play, having that on your resume would dramatically increase your chances.\nGoing to university would only give you basic knowledge of Computer Science unless you could find one which offers Game Development specialization, but I believe that's going to be very hard to find in Brazil (I am brazilian too, but have lived overseas for more than 20 years)... so even then, you may have trouble.\nIf you can attend some programming course that has credibility in your region, that should also help, but it's rarely enough.\nSo, get at least some education in programming, even if it's just a 1-year bootcamp, learn as much as you can, develop something you can show to potential employers (have at least one in mind and see what they're looking for) and you may just be able to get something.","timestamp":"2023-10-27T06:37:33+00:00","score":1},{"role":"OP","user_id":"anon_c638e0868419d52f","comment_id":"k6pb84v","kind":"comment","text":"Doesn't it means \"sem fé\"? Kkkkk\nBut thanks anyways, you're helping me a lot friend\nI said \"unfaithful\" because I lost my faith in trying to go to that area. Its a long time since im studying without any significant results, u know","timestamp":"2023-10-27T16:47:20+00:00","score":1},{"role":"answerer","user_id":"anon_572a3efb899fa324","comment_id":"k6pd6pp","kind":"comment","text":"Unfaithful is normally used when you have sex with someone other than your partner :D Language is like that, just because you \"lost faith\" doesn't mean you're unfaithful :D\n\nhttps://dictionary.cambridge.org/dictionary/english/unfaithful\n\n\"Sem fé\" in this case can be translated as \"disillusioned\" or \"doubtful\", not sure what exactly you mean.\n\nOne more thing, don't use \"kkk\" for laughter in English LOL: https://en.wikipedia.org/wiki/Ku_Klux_Klan","timestamp":"2023-10-27T16:59:06+00:00","score":1},{"role":"OP","user_id":"anon_c638e0868419d52f","comment_id":"k6phntg","kind":"comment","text":"Loooool sorry, I didn't know that. Thanks again man","timestamp":"2023-10-27T17:26:07+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c638e0868419d52f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_572a3efb899fa324","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"k6necj5","thanks_reply_id":"k6pb84v","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_e77f0b5cc041b6a8","answerer_user_id":"anon_2d756e20eedf3f15","subreddit":"programming","timestamp":"2023-11-05T17:54:39+00:00","post_id":"17ohgam","question":"Why Cities: Skylines 2 performs poorly","preferred_answer":"Nice read, but fix the mobile layout on your blog, it's very hard to read. Add the right margin to the page and don't justify align. Left align is much easier to read.","full_conversation":[{"role":"OP","user_id":"anon_e77f0b5cc041b6a8","comment_id":"17ohgam","kind":"post","text":"Why Cities: Skylines 2 performs poorly","timestamp":"2023-11-05T17:54:39+00:00","score":2599},{"role":"answerer","user_id":"anon_2d756e20eedf3f15","comment_id":"k7z8xpw","kind":"comment","text":"Nice read, but fix the mobile layout on your blog, it's very hard to read. Add the right margin to the page and don't justify align. Left align is much easier to read.","timestamp":"2023-11-05T20:52:48+00:00","score":3},{"role":"OP","user_id":"anon_e77f0b5cc041b6a8","comment_id":"k7za3f0","kind":"comment","text":"Thanks for the feedback! Just pushed some mobile fixes to production. There was even padding on the sides but some styles on my footer forced an unnecessary minimum width which caused horizontal scrollbars on smaller phones. I also disabled justify on mobile, though I'm still keeping it on desktop for the time being.","timestamp":"2023-11-05T20:59:40+00:00","score":13},{"role":"answerer","user_id":"anon_2d756e20eedf3f15","comment_id":"k7zb9ti","kind":"comment","text":"Nice. Much better IMO, thank you!\n\nBTW\n> the game’s implementation still has some teething issues\n\nGolf clap.","timestamp":"2023-11-05T21:06:40+00:00","score":15}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_e77f0b5cc041b6a8","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2d756e20eedf3f15","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"k7z8xpw","thanks_reply_id":"k7za3f0","post_score":2599,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_274bdf4d31ae056a","answerer_user_id":"anon_9ee376a0be74bede","subreddit":"programming","timestamp":"2023-11-22T09:10:34+00:00","post_id":"1815172","question":"Do you have a hard time understanding Docker?","preferred_answer":"\"How to use correct grammar?\"\n\nPet peeve of mine. Most of those headings should not have question marks at the end, as they are not questions (or even sentences).\n\nBut ignoring my pedantry, great writeup!","full_conversation":[{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"1815172","kind":"post","text":"Do you have a hard time understanding Docker?","timestamp":"2023-11-22T09:10:34+00:00","score":514},{"role":"answerer","user_id":"anon_9ee376a0be74bede","comment_id":"kac66qj","kind":"comment","text":"\"How to use correct grammar?\"\n\nPet peeve of mine. Most of those headings should not have question marks at the end, as they are not questions (or even sentences).\n\nBut ignoring my pedantry, great writeup!","timestamp":"2023-11-22T19:10:20+00:00","score":1},{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"kac9klj","kind":"comment","text":"Thanks, can you point out which headings should not have question marks? Most of them have \"how\" or \"what\" in them, indicating a question. Am I wrong?","timestamp":"2023-11-22T19:31:15+00:00","score":1},{"role":"answerer","user_id":"anon_9ee376a0be74bede","comment_id":"kaccn35","kind":"comment","text":"Basically all of the ones that start with \"How to\". E.g. the first one should be \"How to create a Dockerfile\" (no question mark), because you are explaining \"how to create a Dockerfile\".\n\nOne quick way to gauge if it's a valid question is to pretend you're asking someone (e.g. in your head, or say it out loud). If you went up to someone and asked \"How to ride a bike?\" that would be pretty weird. (Understandable if you're ESL, but it's definitely not valid grammar). You would say something like \"How do I ride a bike?\" or \"What are the steps to ride a bike?\"","timestamp":"2023-11-22T19:50:19+00:00","score":2},{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"kacdnr7","kind":"comment","text":"Thank you. You are completely right. I'll fix that. Questions are good for SEO purposes, that's why I choose that format. But in general, it is acceptable for titles to have questions. Am I right? I am not a native speaker, that's why I am asking.","timestamp":"2023-11-22T19:56:37+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_274bdf4d31ae056a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9ee376a0be74bede","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kac66qj","thanks_reply_id":"kac9klj","post_score":514,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_90a00bab28e218a3","answerer_user_id":"anon_c75df0aa329e11d4","subreddit":"programming","timestamp":"2023-11-22T16:39:46+00:00","post_id":"181dh7f","question":"\"Change Data Capture Breaks Encapsulation\". Does it, though?","preferred_answer":"That was a great article. I agree with the earlier comment on how under-utilized CDC is.\n\nWe just implemented it in a legacy displacement initiative creating a bi-directional sync capability. We used Debezium, Spring Boot and SQS. There was a fair amount of kerfuffle packaging `ChangeEvent`s into transactions and managing the offset files. Next time, we'll move to a Kafka Connect architecture with a Kafka broker. Seeing Flink be used in this article also makes me think that would be a much more effective solution to the transaction packaging problem and the follow-on transformations into canonical events.\n\nThanks again for posting.","full_conversation":[{"role":"OP","user_id":"anon_90a00bab28e218a3","comment_id":"181dh7f","kind":"post","text":"\"Change Data Capture Breaks Encapsulation\". Does it, though?","timestamp":"2023-11-22T16:39:46+00:00","score":12},{"role":"answerer","user_id":"anon_c75df0aa329e11d4","comment_id":"kagx9h6","kind":"comment","text":"That was a great article. I agree with the earlier comment on how under-utilized CDC is.\n\nWe just implemented it in a legacy displacement initiative creating a bi-directional sync capability. We used Debezium, Spring Boot and SQS. There was a fair amount of kerfuffle packaging `ChangeEvent`s into transactions and managing the offset files. Next time, we'll move to a Kafka Connect architecture with a Kafka broker. Seeing Flink be used in this article also makes me think that would be a much more effective solution to the transaction packaging problem and the follow-on transformations into canonical events.\n\nThanks again for posting.","timestamp":"2023-11-23T18:37:16+00:00","score":2},{"role":"OP","user_id":"anon_90a00bab28e218a3","comment_id":"kakx9e4","kind":"comment","text":"Thank you so much for the nice feedback, really appreciate it!\n\nIn regards to ways of deploying Debezium, yes Kafka Connect is the most commonly used and typically easier approach. On Flink and transactional buffering, yepp, highly relevant topic, stay tuned for some news around that in the hopefully not too distant future :)","timestamp":"2023-11-24T16:30:24+00:00","score":2},{"role":"answerer","user_id":"anon_c75df0aa329e11d4","comment_id":"kakz1o4","kind":"comment","text":">On Flink and transactional buffering, yepp, highly relevant topic, stay tuned for some news around that in the hopefully not too distant future :)\n\nI'm interested! I imagine transaction buffering is a pretty common requirement for CDC solutions.","timestamp":"2023-11-24T16:42:44+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_90a00bab28e218a3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c75df0aa329e11d4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kagx9h6","thanks_reply_id":"kakx9e4","post_score":12,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_2d06877b912c32a6","answerer_user_id":"anon_6debf5b03f98127b","subreddit":"programming","timestamp":"2023-12-25T10:04:10+00:00","post_id":"18qfvhg","question":"Why you should kick idle users out of your website","preferred_answer":"Thanks for sharing, but please stop using Medium, when doing a static website hosted for free is like 30 minutes of work for any average developer. I cannot see any good reason for that.","full_conversation":[{"role":"OP","user_id":"anon_2d06877b912c32a6","comment_id":"18qfvhg","kind":"post","text":"Why you should kick idle users out of your website","timestamp":"2023-12-25T10:04:10+00:00","score":1},{"role":"answerer","user_id":"anon_6debf5b03f98127b","comment_id":"kev129g","kind":"comment","text":"Thanks for sharing, but please stop using Medium, when doing a static website hosted for free is like 30 minutes of work for any average developer. I cannot see any good reason for that.","timestamp":"2023-12-25T13:39:07+00:00","score":62},{"role":"OP","user_id":"anon_2d06877b912c32a6","comment_id":"kevcfny","kind":"comment","text":"Thanks for the suggestion, can you suggest any simple static blog generator? I didn't like Hugo and GitHub/jekyll","timestamp":"2023-12-25T15:26:31+00:00","score":1},{"role":"answerer","user_id":"anon_6debf5b03f98127b","comment_id":"kevcrll","kind":"comment","text":"Here we are: https://github.com/collections/static-site-generators","timestamp":"2023-12-25T15:29:21+00:00","score":16}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2d06877b912c32a6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6debf5b03f98127b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kev129g","thanks_reply_id":"kevcfny","post_score":1,"answer_score":62,"preferred_answer_is_top_level":true}} {"user_id":"anon_6f3e8f650f3b8391","answerer_user_id":"anon_24ba2ea989c87018","subreddit":"programming","timestamp":"2023-12-30T19:16:53+00:00","post_id":"18un85a","question":"Why you should only use TypeScript ☝️","preferred_answer":"IMO, If you are writing an article about TypeScript you are already talking to people that know about JavaScript. You can avoid the intro that talks about the history of it. \n\nArticles that don’t get to the point fast drive me nuts.","full_conversation":[{"role":"OP","user_id":"anon_6f3e8f650f3b8391","comment_id":"18un85a","kind":"post","text":"Why you should only use TypeScript ☝️","timestamp":"2023-12-30T19:16:53+00:00","score":1},{"role":"answerer","user_id":"anon_24ba2ea989c87018","comment_id":"kfp47eu","kind":"comment","text":"IMO, If you are writing an article about TypeScript you are already talking to people that know about JavaScript. You can avoid the intro that talks about the history of it. \n\nArticles that don’t get to the point fast drive me nuts.","timestamp":"2023-12-31T13:51:50+00:00","score":6},{"role":"OP","user_id":"anon_6f3e8f650f3b8391","comment_id":"kfp4fdl","kind":"comment","text":"Thank you for the feedback. Appreciate that! :)","timestamp":"2023-12-31T13:53:45+00:00","score":2},{"role":"answerer","user_id":"anon_24ba2ea989c87018","comment_id":"kfp63zt","kind":"comment","text":"Also don’t take the criticism here too seriously. \n\nMostly people are feed up because every 20 articles published, 19 are just done with Chat GPT and bring no value. Most of us don’t ever read them anymore.","timestamp":"2023-12-31T14:08:12+00:00","score":3},{"role":"OP","user_id":"anon_6f3e8f650f3b8391","comment_id":"kfp6gzz","kind":"comment","text":"Too bad for people like me, that really love to write blogs and share these stuff","timestamp":"2023-12-31T14:11:17+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6f3e8f650f3b8391","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_24ba2ea989c87018","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kfp47eu","thanks_reply_id":"kfp4fdl","post_score":1,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_0737803c1a9c279a","answerer_user_id":"anon_27dd8dfc38665ca6","subreddit":"programming","timestamp":"2023-12-31T18:19:29+00:00","post_id":"18vdmq5","question":"How I destroyed the company's DB (Stupid SQL mistake)","preferred_answer":"I have to admit, I read the whole article and still had now idea what was wrong. The author uses the word \"row\" instead of \"line\".\n\n> The program I used (DBeaver) saw the empty 3rd **row**, and ignored the 4th row\n\nI thought they were referring to the 3rd row in the database, not 3rd \"line\" of code. If the author sees this, I would suggest changing that to say line and not row.","full_conversation":[{"role":"OP","user_id":"anon_0737803c1a9c279a","comment_id":"18vdmq5","kind":"post","text":"How I destroyed the company's DB (Stupid SQL mistake)","timestamp":"2023-12-31T18:19:29+00:00","score":428},{"role":"answerer","user_id":"anon_27dd8dfc38665ca6","comment_id":"kfqdpxa","kind":"comment","text":"I have to admit, I read the whole article and still had now idea what was wrong. The author uses the word \"row\" instead of \"line\".\n\n> The program I used (DBeaver) saw the empty 3rd **row**, and ignored the 4th row\n\nI thought they were referring to the 3rd row in the database, not 3rd \"line\" of code. If the author sees this, I would suggest changing that to say line and not row.","timestamp":"2023-12-31T18:58:08+00:00","score":639},{"role":"OP","user_id":"anon_0737803c1a9c279a","comment_id":"kfrt4af","kind":"comment","text":"Thanks a lot! I fixed it. English is not my native tongue, and I didn't know I could just use both of them interchangeably :)","timestamp":"2024-01-01T00:29:14+00:00","score":33},{"role":"answerer","user_id":"anon_27dd8dfc38665ca6","comment_id":"kfrukd3","kind":"comment","text":"If you're talking about code and databases together usually you refer to \"lines\" of code and \"rows\" or \"records\" in a database. That's why it was confusing when you used the word rows for lines of code since that usually means rows in a database.","timestamp":"2024-01-01T00:39:24+00:00","score":6}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0737803c1a9c279a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_27dd8dfc38665ca6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kfqdpxa","thanks_reply_id":"kfrt4af","post_score":428,"answer_score":639,"preferred_answer_is_top_level":true}} {"user_id":"anon_5d1f41383a609ce6","answerer_user_id":"anon_fa7c1aae19aaf067","subreddit":"programming","timestamp":"2024-01-01T12:09:01+00:00","post_id":"18vvip6","question":"I'm in a weird position, I need some advice. I quit school for a while and now I'm 23 years old. Would I be able to find a job as a C# junior developer with 12 grades but without the final year exam? If I pass all the interviews and have many projects on my cv to compensate?","preferred_answer":"> i just wanted to show that I've worked with unreal engine for 3 years and unity for 2 years casually as i wrote in the description but didn't had any other options to show it then just as work history because i could also link the projects i've made, what would be a better way to list those experiences?\n\nSo the issue is you _don't_ have 3 years experience with Unreal. When someone says in context of a CV they have 3 years experience with a thing, that means \"I've spent ~40 hrs/week doing this thing, for x years\", whereas what you mean is \"there are 3 years where some knowledge of this thing has been in my brain and I've used it sometimes\".\n\nIf you got a job at a studio that used Unreal you would probably learn more in 3 months than you've learned in the previous 3 years partly as a function of being a lot more task-focused, and partly for just putting in more raw hours.\n\nAgain none of this is a dig at you or to belittle what you currently know, it's just phrasing that's the problem.\n\nAs for the better way to list those experiences, I genuinely think your best bet is to get off LinkedIn and go put together a regular CV. LinkedIn is great for finding job listings and companies that are hiring, but it's not so great for actually applying. I'd put together a CV that's one page max that focuses on motivations and has a couple paragraphs/bullet points mentioning things you've done worked on. Don't think of the CV as being a total representation of your person and knowledge, think of it as cue cards for stuff you'd love to talk about in an interview.\n\nFor example I personally dropped out of university and a big part of what got me my first serious job was discussing a couple Django projects that I had built for a gaming community I was in. They weren't particularly impressive and I was careful to dispel any notion they were, but it gave me a springboard in the interview to talk about the problems I'd identified, how I'd been handling bug fixes and long-term support, all the stuff it forced me to learn about hosting, prioritisation of feature requests, etc. All generic big picture software development stuff.","full_conversation":[{"role":"OP","user_id":"anon_5d1f41383a609ce6","comment_id":"18vvip6","kind":"post","text":"I'm in a weird position, I need some advice. I quit school for a while and now I'm 23 years old. Would I be able to find a job as a C# junior developer with 12 grades but without the final year exam? If I pass all the interviews and have many projects on my cv to compensate?","timestamp":"2024-01-01T12:09:01+00:00","score":1},{"role":"answerer","user_id":"anon_fa7c1aae19aaf067","comment_id":"kfu0vg7","kind":"comment","text":"> i just wanted to show that I've worked with unreal engine for 3 years and unity for 2 years casually as i wrote in the description but didn't had any other options to show it then just as work history because i could also link the projects i've made, what would be a better way to list those experiences?\n\nSo the issue is you _don't_ have 3 years experience with Unreal. When someone says in context of a CV they have 3 years experience with a thing, that means \"I've spent ~40 hrs/week doing this thing, for x years\", whereas what you mean is \"there are 3 years where some knowledge of this thing has been in my brain and I've used it sometimes\".\n\nIf you got a job at a studio that used Unreal you would probably learn more in 3 months than you've learned in the previous 3 years partly as a function of being a lot more task-focused, and partly for just putting in more raw hours.\n\nAgain none of this is a dig at you or to belittle what you currently know, it's just phrasing that's the problem.\n\nAs for the better way to list those experiences, I genuinely think your best bet is to get off LinkedIn and go put together a regular CV. LinkedIn is great for finding job listings and companies that are hiring, but it's not so great for actually applying. I'd put together a CV that's one page max that focuses on motivations and has a couple paragraphs/bullet points mentioning things you've done worked on. Don't think of the CV as being a total representation of your person and knowledge, think of it as cue cards for stuff you'd love to talk about in an interview.\n\nFor example I personally dropped out of university and a big part of what got me my first serious job was discussing a couple Django projects that I had built for a gaming community I was in. They weren't particularly impressive and I was careful to dispel any notion they were, but it gave me a springboard in the interview to talk about the problems I'd identified, how I'd been handling bug fixes and long-term support, all the stuff it forced me to learn about hosting, prioritisation of feature requests, etc. All generic big picture software development stuff.","timestamp":"2024-01-01T14:13:00+00:00","score":16},{"role":"OP","user_id":"anon_5d1f41383a609ce6","comment_id":"kfu2ohv","kind":"comment","text":"Ah i understand, thanks, i modified my LinkedIn page and i will make a cv when i finish the other projects I'm working on.\n\nThis is really helpful, thank you a lot kind stranger.","timestamp":"2024-01-01T14:29:06+00:00","score":6},{"role":"answerer","user_id":"anon_fa7c1aae19aaf067","comment_id":"kfuc5sy","kind":"comment","text":"I hope it goes well! :)","timestamp":"2024-01-01T15:42:54+00:00","score":2},{"role":"OP","user_id":"anon_5d1f41383a609ce6","comment_id":"kfupjsz","kind":"comment","text":":)) \nMersi","timestamp":"2024-01-01T17:10:51+00:00","score":3}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5d1f41383a609ce6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fa7c1aae19aaf067","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kfu0vg7","thanks_reply_id":"kfu2ohv","post_score":1,"answer_score":16,"preferred_answer_is_top_level":false}} {"user_id":"anon_5cc599bb8058edc9","answerer_user_id":"anon_070246ebbecda0a5","subreddit":"programming","timestamp":"2024-01-02T10:44:05+00:00","post_id":"18wmlpi","question":"What I've Learned About Flow Fields So Far.","preferred_answer":"Nice writeup.\n\nFor the optimization I have a little lib that I used for this and related sketches: [https://openprocessing.org/sketch/1533577](https://openprocessing.org/sketch/1533577)\n\nThe lib itself: [https://openprocessing-usercontent.s3.amazonaws.com/files/user277594/visual1533577/hc6e8a0069aef21df9b44bee986845464/CirclePacker.js](https://openprocessing-usercontent.s3.amazonaws.com/files/user277594/visual1533577/hc6e8a0069aef21df9b44bee986845464/circlepacker.js)\n\nYou can simply use the \\`tryToAddCircle\\` method as you draw the lines. This is super optimized using subgrids to make it faster. I think using a quadtree is probably even faster but I've never gone that far as it ... confuses me :D","full_conversation":[{"role":"OP","user_id":"anon_5cc599bb8058edc9","comment_id":"18wmlpi","kind":"post","text":"What I've Learned About Flow Fields So Far.","timestamp":"2024-01-02T10:44:05+00:00","score":1},{"role":"answerer","user_id":"anon_070246ebbecda0a5","comment_id":"kgyc3i0","kind":"comment","text":"Nice writeup.\n\nFor the optimization I have a little lib that I used for this and related sketches: [https://openprocessing.org/sketch/1533577](https://openprocessing.org/sketch/1533577)\n\nThe lib itself: [https://openprocessing-usercontent.s3.amazonaws.com/files/user277594/visual1533577/hc6e8a0069aef21df9b44bee986845464/CirclePacker.js](https://openprocessing-usercontent.s3.amazonaws.com/files/user277594/visual1533577/hc6e8a0069aef21df9b44bee986845464/circlepacker.js)\n\nYou can simply use the \\`tryToAddCircle\\` method as you draw the lines. This is super optimized using subgrids to make it faster. I think using a quadtree is probably even faster but I've never gone that far as it ... confuses me :D","timestamp":"2024-01-08T21:17:04+00:00","score":1},{"role":"OP","user_id":"anon_5cc599bb8058edc9","comment_id":"kgym7ay","kind":"comment","text":"Thanks! I'm getting permission problems on your s3 link unfortunately so I can't check it out.\n\nBut yes, there are a lot of optimizations to be made! I tried to keep it at a fairly high level since the article was already so long. But I plan on diving a bit deeper and might touch on circle packing and some other fun circle related things to illustrate some fun variations that can be achieved.\n\nI remember using quad trees in one of my DSA classes super long ago but that felt way too data science-y for a generative art piece.","timestamp":"2024-01-08T22:13:25+00:00","score":2},{"role":"answerer","user_id":"anon_070246ebbecda0a5","comment_id":"kgynom4","kind":"comment","text":"Ah sorry. Seems URL directly doesn't work - there's a complex way to access but here is a PasteBin for ease:\n\n \n[https://pastebin.com/TfLPU9we](https://pastebin.com/tflpu9we)","timestamp":"2024-01-08T22:21:55+00:00","score":1},{"role":"OP","user_id":"anon_5cc599bb8058edc9","comment_id":"kh0rltc","kind":"comment","text":"Haha that link worked, I'll check it out as soon as I'm by the computer again. Thanks for sharing it!","timestamp":"2024-01-09T07:01:17+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_5cc599bb8058edc9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_070246ebbecda0a5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kgyc3i0","thanks_reply_id":"kgym7ay","post_score":1,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_bea5b09e0c375850","answerer_user_id":"anon_aca2e1e981152fef","subreddit":"programming","timestamp":"2024-01-03T18:55:14+00:00","post_id":"18xqta4","question":"Programm languages\n\nWhat's the appropriate programming language for beginners?","preferred_answer":"C, once you learn the basics of C, the others will be easier to learn.","full_conversation":[{"role":"OP","user_id":"anon_bea5b09e0c375850","comment_id":"18xqta4","kind":"post","text":"Programm languages\n\nWhat's the appropriate programming language for beginners?","timestamp":"2024-01-03T18:55:14+00:00","score":1},{"role":"answerer","user_id":"anon_aca2e1e981152fef","comment_id":"kg5yl2i","kind":"comment","text":"C, once you learn the basics of C, the others will be easier to learn.","timestamp":"2024-01-03T19:10:15+00:00","score":-1},{"role":"OP","user_id":"anon_bea5b09e0c375850","comment_id":"kg5ytt0","kind":"comment","text":"Thank u so much🩵🩵🩵","timestamp":"2024-01-03T19:11:37+00:00","score":2},{"role":"answerer","user_id":"anon_aca2e1e981152fef","comment_id":"kg5z7f6","kind":"comment","text":"Nope. It will help you to learn logic. Its a friendly language. If you start with python for example, youll have a hard time when you move to another language. C isnt the easiest, but isnt hard at all. Success!","timestamp":"2024-01-03T19:13:45+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_bea5b09e0c375850","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_aca2e1e981152fef","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kg5yl2i","thanks_reply_id":"kg5ytt0","post_score":1,"answer_score":-1,"preferred_answer_is_top_level":true}} {"user_id":"anon_0c7fd538dadfcbbc","answerer_user_id":"anon_df6d9a01dd735839","subreddit":"programming","timestamp":"2024-01-09T10:44:18+00:00","post_id":"192bxi9","question":"How techies missed what’s wrong with Horizon, how that lead to multiple deaths and what can we learn from it all?","preferred_answer":"> This was an infrastructure problem. If you don't believe me, believe Steven Murdoch saying the same thing:\n\nYour logical fallacy is [Appeal to Authority](https://yourlogicalfallacyis.com/appeal-to-authority).","full_conversation":[{"role":"OP","user_id":"anon_0c7fd538dadfcbbc","comment_id":"192bxi9","kind":"post","text":"How techies missed what’s wrong with Horizon, how that lead to multiple deaths and what can we learn from it all?","timestamp":"2024-01-09T10:44:18+00:00","score":1},{"role":"answerer","user_id":"anon_df6d9a01dd735839","comment_id":"kh215w2","kind":"comment","text":"> This was an infrastructure problem. If you don't believe me, believe Steven Murdoch saying the same thing:\n\nYour logical fallacy is [Appeal to Authority](https://yourlogicalfallacyis.com/appeal-to-authority).","timestamp":"2024-01-09T14:42:43+00:00","score":4},{"role":"OP","user_id":"anon_0c7fd538dadfcbbc","comment_id":"kh21q2t","kind":"comment","text":"No. This is exactly what the article explains, namely how our industry standards lead to the problems explained by Murdoch. I'm saying that you should listen to what we have to say as there's merit to it. If you don't believe that it does, maybe the fact that he's one of them most eminent computer scientists in the UK might change your mind. Nobody expects you to believe anything just because of his position, but you should definitely listen to what he has to say about a subject he knows a lot about.","timestamp":"2024-01-09T14:46:20+00:00","score":-1},{"role":"answerer","user_id":"anon_df6d9a01dd735839","comment_id":"kh21x84","kind":"comment","text":"> maybe the fact that he's one of them most eminent computer scientists in the UK might change your mind.\n\nYou appealed to authority while defending your appeal to authority. \n\nWell done.","timestamp":"2024-01-09T14:47:36+00:00","score":5},{"role":"OP","user_id":"anon_0c7fd538dadfcbbc","comment_id":"kh22m7u","kind":"comment","text":"Asking you to listen to an explanation from a specialist isn't an appeal to authority. Telling you to believe something even though he's clearly lacking good evidence is. Who do you listen to when you want to read about the subject to formulate your opinion about climate change? Articles from climate scientists or your GP?\n\nYou're more than welcome to dig into all the sources I've linked in my article or find ones that disagree with what I'm saying.","timestamp":"2024-01-09T14:52:00+00:00","score":1},{"role":"answerer","user_id":"anon_df6d9a01dd735839","comment_id":"kh22s59","kind":"comment","text":"The appeal is saying I should believe you because he knows what he’s talking about.","timestamp":"2024-01-09T14:53:02+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_0c7fd538dadfcbbc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_df6d9a01dd735839","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kh215w2","thanks_reply_id":"kh21q2t","post_score":1,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_dd2d6df4b9b84f30","answerer_user_id":"anon_04ef36fc618876d9","subreddit":"programming","timestamp":"2024-01-13T20:35:28+00:00","post_id":"195xhto","question":"How To Use Backwards Promises","preferred_answer":"If you need to do this *very* often, then sure, a utility class may be useful, but in most cases, you can just do this inline with a promise constructor:\n\n async function doStuff(){\n await new Promise(resolve => addEventListener(\"keydown\", resolve, { once: true }))\n console.log(\"cool message\");\n };\n\nYou also don't need to keep a list of all promises, you can just send back the same promise every time:\n\n sender(){\n const result = this.trapped.apply(this, arguments);\n if (this.prom) {\n this.resolve(result);\n this.prom = null;\n this.resolve = null;\n }\n }\n receive(){\n this.prom ||= new Promise(resolve => {\n this.resolve = resolve;\n });\n return this.prom;\n }","full_conversation":[{"role":"OP","user_id":"anon_dd2d6df4b9b84f30","comment_id":"195xhto","kind":"post","text":"How To Use Backwards Promises","timestamp":"2024-01-13T20:35:28+00:00","score":1},{"role":"answerer","user_id":"anon_04ef36fc618876d9","comment_id":"khsawro","kind":"comment","text":"If you need to do this *very* often, then sure, a utility class may be useful, but in most cases, you can just do this inline with a promise constructor:\n\n async function doStuff(){\n await new Promise(resolve => addEventListener(\"keydown\", resolve, { once: true }))\n console.log(\"cool message\");\n };\n\nYou also don't need to keep a list of all promises, you can just send back the same promise every time:\n\n sender(){\n const result = this.trapped.apply(this, arguments);\n if (this.prom) {\n this.resolve(result);\n this.prom = null;\n this.resolve = null;\n }\n }\n receive(){\n this.prom ||= new Promise(resolve => {\n this.resolve = resolve;\n });\n return this.prom;\n }","timestamp":"2024-01-14T07:05:36+00:00","score":3},{"role":"OP","user_id":"anon_dd2d6df4b9b84f30","comment_id":"ki1rce2","kind":"comment","text":"Oh, thanks for the advice. I think I was originally intending to return the same promise between calls of `sender`. I don't know why I ended up doing the whole multiple promises thing.\n\nAnd yeah, you can just make promises inline. I just don't like having the event listener set up INSIDE the async function, and I wanted a more generic (and somewhat less stable) way to wait for any function (not just an event listener).\n\nNonetheless, thanks for the feedback. I was afriad that noone would read what I wrote.","timestamp":"2024-01-16T00:17:02+00:00","score":1},{"role":"answerer","user_id":"anon_04ef36fc618876d9","comment_id":"ki2st37","kind":"comment","text":"My pleasure!","timestamp":"2024-01-16T04:06:41+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_dd2d6df4b9b84f30","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_04ef36fc618876d9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"khsawro","thanks_reply_id":"ki1rce2","post_score":1,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_a95f9afe56397ebc","answerer_user_id":"anon_4479ca1bb710bb19","subreddit":"programming","timestamp":"2024-01-24T21:20:36+00:00","post_id":"19ernk2","question":"How Apple accidentally broke my Spotify client","preferred_answer":"Nice to know that Spotify will fix it.\n\nI have not figured out what is going on on my macbook. I don't see the override in /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist either or there is some extra layer of caching (I only restarted mDNSResponder, not the OS). Maybe there is something else consuming the search domain list. I also had a Cisco DNS Proxy filter installed, which I initially blamed for the problem, and removing it seemed to have helped initially, but then the problem returned.\n\nI have confirmed that removing the /etc/hosts override makes the problem come back.","full_conversation":[{"role":"OP","user_id":"anon_a95f9afe56397ebc","comment_id":"19ernk2","kind":"post","text":"How Apple accidentally broke my Spotify client","timestamp":"2024-01-24T21:20:36+00:00","score":188},{"role":"answerer","user_id":"anon_4479ca1bb710bb19","comment_id":"kjp0jl2","kind":"comment","text":"Nice to know that Spotify will fix it.\n\nI have not figured out what is going on on my macbook. I don't see the override in /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist either or there is some extra layer of caching (I only restarted mDNSResponder, not the OS). Maybe there is something else consuming the search domain list. I also had a Cisco DNS Proxy filter installed, which I initially blamed for the problem, and removing it seemed to have helped initially, but then the problem returned.\n\nI have confirmed that removing the /etc/hosts override makes the problem come back.","timestamp":"2024-01-26T18:43:44+00:00","score":1},{"role":"OP","user_id":"anon_a95f9afe56397ebc","comment_id":"kk3xhzn","kind":"comment","text":"Right! Thanks a lot for following up. That makes a lot of sense and I didn't think to check for appearances of this value in configuration profiles. Sounds like it's time for you to bug the owner of the profile to get rid of that!","timestamp":"2024-01-29T14:37:47+00:00","score":1},{"role":"answerer","user_id":"anon_4479ca1bb710bb19","comment_id":"kk5fk4l","kind":"comment","text":"Well, there is a reason it's set in the profile, it lets us use shorthand names and have them resolve in DNS, even if multi-label. \n\nBut shouldn't that only be the fallback when the shorthand name doesn't resolve (regardless of AlwaysAppendSearchDomains name)? Seems like it does, outside of the reachability api.","timestamp":"2024-01-29T19:48:11+00:00","score":1},{"role":"OP","user_id":"anon_a95f9afe56397ebc","comment_id":"kk65fm4","kind":"comment","text":"Ah yes - of course - if it's something you folks actually need then there's not much you can do, short of using a custom DNS resolver that would do the job.\n\nYour understanding is correct and the flag should indeed do that. This bug should affect only consumers of mDNSResponder that pass the `kDNSServiceFlagsAllowExpiredAnswers` flag, so there's probably very few of those outside `SCNetworkReachability`!","timestamp":"2024-01-29T22:12:43+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_a95f9afe56397ebc","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4479ca1bb710bb19","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kjp0jl2","thanks_reply_id":"kk3xhzn","post_score":188,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_4659a549b87b266f","answerer_user_id":"anon_37cb67ae26587844","subreddit":"programming","timestamp":"2024-01-29T17:43:59+00:00","post_id":"1ae1852","question":"How to Interview programmers - Gladiator style","preferred_answer":"I read it all and it was quite nice, even if convoluted at times. I don't see why you had to post this in r/programming specifically and I don't see this used soon by anyone else especially in the corporate world of inflated egos.","full_conversation":[{"role":"OP","user_id":"anon_4659a549b87b266f","comment_id":"1ae1852","kind":"post","text":"How to Interview programmers - Gladiator style","timestamp":"2024-01-29T17:43:59+00:00","score":1},{"role":"answerer","user_id":"anon_37cb67ae26587844","comment_id":"kk5sfuf","kind":"comment","text":"I read it all and it was quite nice, even if convoluted at times. I don't see why you had to post this in r/programming specifically and I don't see this used soon by anyone else especially in the corporate world of inflated egos.","timestamp":"2024-01-29T20:59:46+00:00","score":5},{"role":"OP","user_id":"anon_4659a549b87b266f","comment_id":"kk5u22k","kind":"comment","text":"Thank you for reading. I appreciate the feedback on being convoluted, in will think about it in future.  I put it in programming as I use it primarily to interview programmers. I’m sure some here must interview at times, and this may be a good technique to suggest if some parties are not listened to.","timestamp":"2024-01-29T21:08:43+00:00","score":2},{"role":"answerer","user_id":"anon_37cb67ae26587844","comment_id":"kk5uewl","kind":"comment","text":"I'm currently doing interviews, it was nice reading the tips for candidates (although anecdotal, still good examples of what not to do), thank you to for sharing.","timestamp":"2024-01-29T21:10:41+00:00","score":2},{"role":"OP","user_id":"anon_4659a549b87b266f","comment_id":"kk5ury5","kind":"comment","text":"Ah that’s good to hear. I have seen a lot of bad examples, but they are three that still stand out.","timestamp":"2024-01-29T21:12:40+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_4659a549b87b266f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_37cb67ae26587844","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kk5sfuf","thanks_reply_id":"kk5u22k","post_score":1,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_188e1c3ae9971077","answerer_user_id":"anon_0a4146725a2930e4","subreddit":"programming","timestamp":"2024-02-03T14:11:27+00:00","post_id":"1ahwyx2","question":"How I reduced the size of my very first published docker image by 40% - A lesson in dockerizing shell scripts","preferred_answer":"All this time to save ~3MB. Interesting, but not worth it. Also, by using SCRATCH the additive/layer benefits of docker images are lost.","full_conversation":[{"role":"OP","user_id":"anon_188e1c3ae9971077","comment_id":"1ahwyx2","kind":"post","text":"How I reduced the size of my very first published docker image by 40% - A lesson in dockerizing shell scripts","timestamp":"2024-02-03T14:11:27+00:00","score":520},{"role":"answerer","user_id":"anon_0a4146725a2930e4","comment_id":"koqubb2","kind":"comment","text":"All this time to save ~3MB. Interesting, but not worth it. Also, by using SCRATCH the additive/layer benefits of docker images are lost.","timestamp":"2024-02-03T15:21:06+00:00","score":15},{"role":"OP","user_id":"anon_188e1c3ae9971077","comment_id":"koqwl9k","kind":"comment","text":"Would like some context regarding this, any resources?\n\nThanks","timestamp":"2024-02-03T15:36:07+00:00","score":20},{"role":"answerer","user_id":"anon_0a4146725a2930e4","comment_id":"kor4yl5","kind":"comment","text":"My post is an opinion. I'm saying that I would have stopped at the 3rd attempt in your article. In a vacuum the SCRATCH approach is absolutely the most optimized. However, in reality it's likely that you already have other images on your system that are importing that alpine image. If you already have the base alpine layer present (with musl and all those other libraries that you duplicated into the SCRATCH image), you end up using more space on your system.","timestamp":"2024-02-03T16:29:27+00:00","score":36},{"role":"OP","user_id":"anon_188e1c3ae9971077","comment_id":"kor6cs0","kind":"comment","text":"Interesting, thanks for clearing the context.","timestamp":"2024-02-03T16:38:12+00:00","score":17}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_188e1c3ae9971077","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0a4146725a2930e4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"koqubb2","thanks_reply_id":"koqwl9k","post_score":520,"answer_score":15,"preferred_answer_is_top_level":true}} {"user_id":"anon_00f05a40c5cb924c","answerer_user_id":"anon_a034799674429029","subreddit":"programming","timestamp":"2024-02-05T19:44:07+00:00","post_id":"1ajpj4l","question":"Why do people write data access / persistence inside loops?\n\nSeems like a very common bad practice in all the legacy code I’m maintaining at the moment.\n\nGets exponentially worse with nested loops and as your dataset size increases. See N+1 problem.\n\nI cannot fathom how / why people would write code in this way, and then be surprised when their application is so slow.\n\nIs it just an ease of execution thing? Like it takes deeper thought to extract and flatten data, to then be processed in bulk / batches etc.\n\nI understand “keeping it simple”, but surely these kinds of approaches don’t actually solve a problem, therefore it’s not “the simplest possible solution”. It’s pure technical debt in my eyes.\n\nCurious what others think, or if anyone has encountered similar frustrations with what feels like a common bad practice.\n\nHas anyone actually encountered a good justification / scenario for doing this?","preferred_answer":"This is *usually* the confluence of three things:\n\n* \"global\" database connections and on-the-spot data fetching\n* composition of features\n* no/little performance specifications\n\nLooking up the data you need as you discover you need it isn't *inherently* a bad practice. But pair that with \"the database as a global variable\" and now every single method you call could potentially be querying data. It's nearly impossible to avoid writing this stuff in this scenario.\n\nAs for \"how do people ship it\", because there's not really anything pushing them *not to*. Local dev often/usually can't \"see\" an N+1 query because it has absolute bare minimum data to operate on anyways. If you're not setting any kinds of requirements on how something performs, you've got nothing pushing you to come back to it beyond \"customers are writing tickets\".\n\nLooking at justifications for this: often you end up with pages or API responses that rely on a variety of associated data but *can be cached* against a single record or set of records. If that cache is at all successful, you actually *don't* want to bulk query all the associations. Realistically you'd want to figure out what is cached and what isn't, and *only* run your queries to populate actually needed data. I'm not aware of a system that makes that reasonable or possible, though.","full_conversation":[{"role":"OP","user_id":"anon_00f05a40c5cb924c","comment_id":"1ajpj4l","kind":"post","text":"Why do people write data access / persistence inside loops?\n\nSeems like a very common bad practice in all the legacy code I’m maintaining at the moment.\n\nGets exponentially worse with nested loops and as your dataset size increases. See N+1 problem.\n\nI cannot fathom how / why people would write code in this way, and then be surprised when their application is so slow.\n\nIs it just an ease of execution thing? Like it takes deeper thought to extract and flatten data, to then be processed in bulk / batches etc.\n\nI understand “keeping it simple”, but surely these kinds of approaches don’t actually solve a problem, therefore it’s not “the simplest possible solution”. It’s pure technical debt in my eyes.\n\nCurious what others think, or if anyone has encountered similar frustrations with what feels like a common bad practice.\n\nHas anyone actually encountered a good justification / scenario for doing this?","timestamp":"2024-02-05T19:44:07+00:00","score":1},{"role":"answerer","user_id":"anon_a034799674429029","comment_id":"kp2rre5","kind":"comment","text":"This is *usually* the confluence of three things:\n\n* \"global\" database connections and on-the-spot data fetching\n* composition of features\n* no/little performance specifications\n\nLooking up the data you need as you discover you need it isn't *inherently* a bad practice. But pair that with \"the database as a global variable\" and now every single method you call could potentially be querying data. It's nearly impossible to avoid writing this stuff in this scenario.\n\nAs for \"how do people ship it\", because there's not really anything pushing them *not to*. Local dev often/usually can't \"see\" an N+1 query because it has absolute bare minimum data to operate on anyways. If you're not setting any kinds of requirements on how something performs, you've got nothing pushing you to come back to it beyond \"customers are writing tickets\".\n\nLooking at justifications for this: often you end up with pages or API responses that rely on a variety of associated data but *can be cached* against a single record or set of records. If that cache is at all successful, you actually *don't* want to bulk query all the associations. Realistically you'd want to figure out what is cached and what isn't, and *only* run your queries to populate actually needed data. I'm not aware of a system that makes that reasonable or possible, though.","timestamp":"2024-02-05T20:34:51+00:00","score":7},{"role":"OP","user_id":"anon_00f05a40c5cb924c","comment_id":"kp2smlx","kind":"comment","text":"That justification is really interesting, thankyou. Do you know where I might read up on that kind of thing? Like what the pattern is called.","timestamp":"2024-02-05T20:39:38+00:00","score":2},{"role":"answerer","user_id":"anon_a034799674429029","comment_id":"kp2tlif","kind":"comment","text":"The overall cache style is called \"fragment caching\". Often you'll see fragment caches handled by including all of the relevant cache keys in a single piece of data.\n\nIn the Rails world, they call this aggressive use of it \"[Russian Doll caching](https://blog.appsignal.com/2018/04/03/russian-doll-caching-in-rails.html)\". There it generally relies on cascading timestamp updates to make sure that \"outer\" caches are invalidated when the association data they contain changes.","timestamp":"2024-02-05T20:45:02+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_00f05a40c5cb924c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a034799674429029","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kp2rre5","thanks_reply_id":"kp2smlx","post_score":1,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_cbd86c6923bcf794","answerer_user_id":"anon_2990a043e447b944","subreddit":"programming","timestamp":"2024-02-11T07:09:45+00:00","post_id":"1ao255z","question":"Why Functional Programming Should Be the Future of Software Development","preferred_answer":"Says the one using emojis 😏\n\nAnd apparently you can't 🤡\n\n\n\n... 🤡","full_conversation":[{"role":"OP","user_id":"anon_cbd86c6923bcf794","comment_id":"1ao255z","kind":"post","text":"Why Functional Programming Should Be the Future of Software Development","timestamp":"2024-02-11T07:09:45+00:00","score":1},{"role":"answerer","user_id":"anon_2990a043e447b944","comment_id":"kq5jhr8","kind":"comment","text":"Says the one using emojis 😏\n\nAnd apparently you can't 🤡\n\n\n\n... 🤡","timestamp":"2024-02-12T23:08:47+00:00","score":1},{"role":"OP","user_id":"anon_cbd86c6923bcf794","comment_id":"kq5r1ss","kind":"comment","text":"Thanks for your keen insights, I can tell you're a really deep thinker!","timestamp":"2024-02-12T23:57:22+00:00","score":1},{"role":"answerer","user_id":"anon_2990a043e447b944","comment_id":"kq63h2m","kind":"comment","text":"I'll be here all week. But next time, 🤫 let the adults do the talking","timestamp":"2024-02-13T01:19:09+00:00","score":1},{"role":"OP","user_id":"anon_cbd86c6923bcf794","comment_id":"kq6icpt","kind":"comment","text":"By all means, don't let me stop you! I hear echo chambers are very fashionable these days.","timestamp":"2024-02-13T02:58:03+00:00","score":1},{"role":"answerer","user_id":"anon_2990a043e447b944","comment_id":"kq6j7e6","kind":"comment","text":"Is that where you spend most of your time? Touch grass and breathe air some more. It might heal your brain deficiencies","timestamp":"2024-02-13T03:03:54+00:00","score":1},{"role":"OP","user_id":"anon_cbd86c6923bcf794","comment_id":"kq6o296","kind":"comment","text":"Got it, anyone who doesn't agree with you is a clown and has brain deficiencies. So simple! I wonder why no one ever thought of this before.","timestamp":"2024-02-13T03:38:14+00:00","score":1},{"role":"answerer","user_id":"anon_2990a043e447b944","comment_id":"kq6or4y","kind":"comment","text":"😂 so mad, because I'm the one not agreeing with your opinions. Face it, your ideas are not the answer to everything. Yet here you are spamming the entire thread because you're mad at the world. Good luck working with teammates. I shudder to see what your Slack or other chat apps look like 💀","timestamp":"2024-02-13T03:43:12+00:00","score":1},{"role":"OP","user_id":"anon_cbd86c6923bcf794","comment_id":"kq6v38y","kind":"comment","text":"Face what? So far I've seen only cartoonish insults and personal attacks? And zero actual response to my points.\n\nFriend, I've been around for a while so playground insults don't really get a rise out of me. Keep fantasizing about how everyone who disagrees with you is a clown, or mad, or a bad colleague, and surround yourself with like-minded folks. Don't worry about what FP people are accomplishing, it doesn't exist if you just close your eyes, cover your ears, and repeatedly shout 'nyah, nyah, I can't hear you!'","timestamp":"2024-02-13T04:32:05+00:00","score":1},{"role":"answerer","user_id":"anon_2990a043e447b944","comment_id":"kq72qbw","kind":"comment","text":"Dude, no one here is saying FP is wrong. It's the fact that you can't come to the sense that there's more to programming than FP. Seeing how you're getting mad at everyone or disagreeing with others in the chat is proof. Don't lie, I saw you further down the thread. You're the one coming here with snappy comebacks for people who disagree with you and throwing insults that apparently you can't take but you can dish all day. No wonder you get downvoted\n\nYou wanna get serious? Ok, take a seat, troll, and show some respect for the thousands of programmers who came before you and paved the path you walk today. There are people out there who are genius programmers who lost their job due to layoffs but you're happy to take cheap shots at people behind your computer because apparently this is all you do in your spare time. Go get another job and prove us wrong if you think your coding is even half special. Pathetic that you're out here spewing nonsense 😐","timestamp":"2024-02-13T05:39:28+00:00","score":1}],"n_turns":10,"n_turns_after_thanks":7,"op_metadata":{"user_id":"anon_cbd86c6923bcf794","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2990a043e447b944","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kq5jhr8","thanks_reply_id":"kq5r1ss","post_score":1,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_0737803c1a9c279a","answerer_user_id":"anon_22276b9dcd6409a1","subreddit":"programming","timestamp":"2024-02-14T11:39:07+00:00","post_id":"1aqkw7n","question":"Why most developers stop learning SQL at subqueries - a 5-minute guide for PARTITION BY and CTEs","preferred_answer":"If you're like me and cursing OP for not including copy and paste text to follow along, note that he included a very subtle link to this Google doc w/ the text to copy and paste: https://docs.google.com/document/d/115tLhR2WSp76vw_nL9Gbg5Wn6ODsD2Y_jnUBKv81bdM/edit","full_conversation":[{"role":"OP","user_id":"anon_0737803c1a9c279a","comment_id":"1aqkw7n","kind":"post","text":"Why most developers stop learning SQL at subqueries - a 5-minute guide for PARTITION BY and CTEs","timestamp":"2024-02-14T11:39:07+00:00","score":765},{"role":"answerer","user_id":"anon_22276b9dcd6409a1","comment_id":"kqdvyns","kind":"comment","text":"If you're like me and cursing OP for not including copy and paste text to follow along, note that he included a very subtle link to this Google doc w/ the text to copy and paste: https://docs.google.com/document/d/115tLhR2WSp76vw_nL9Gbg5Wn6ODsD2Y_jnUBKv81bdM/edit","timestamp":"2024-02-14T14:05:53+00:00","score":20},{"role":"OP","user_id":"anon_0737803c1a9c279a","comment_id":"kqfmwlz","kind":"comment","text":"Thanks u/dweezil22! I initially posted all the SQL as text, but it was not visually appealing, and I assumed 99% of the people won't be interested, so I moved it to the doc, but didn't make it visible enough.\n\n​\n\nI added a much more visible link to it","timestamp":"2024-02-14T20:24:09+00:00","score":4},{"role":"answerer","user_id":"anon_22276b9dcd6409a1","comment_id":"kqg1cet","kind":"comment","text":"Thanks I actually ran the code b/c I was like \"Why isn't he just using `Group By` in the initial problem\"? (And running the code clarifies that a group by will not give you a complete answer b/c it ignores ties).\n\nI think you did a great job finding the right balance of depth of explanation, and not wasting too many words on pedantry that would cause people to give up before they got to the important part.","timestamp":"2024-02-14T21:47:07+00:00","score":3},{"role":"OP","user_id":"anon_0737803c1a9c279a","comment_id":"kqi7vyl","kind":"comment","text":"Thanks u/dweezil22, I appreciate it. good feedback is rare on Reddit :)","timestamp":"2024-02-15T07:38:48+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_0737803c1a9c279a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_22276b9dcd6409a1","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kqdvyns","thanks_reply_id":"kqfmwlz","post_score":765,"answer_score":20,"preferred_answer_is_top_level":true}} {"user_id":"anon_d41e17d55cad9b38","answerer_user_id":"anon_d4eb6a4aa301747a","subreddit":"programming","timestamp":"2024-02-21T14:09:01+00:00","post_id":"1awcwxw","question":"Why are non-DRY specs more maintainable?","preferred_answer":"> First, keeping relevant code in the same context makes it much easier for generative AI to \"understand\" and make useful suggestions\n\nI don't think this will be an issue for long. Context windows are going to get big enough that AIs can fit an entire codebase into their memory (or at least the important parts). I imagine we're probably headed towards setting up semi-fine tuned models along with out lint and build configs per project.","full_conversation":[{"role":"OP","user_id":"anon_d41e17d55cad9b38","comment_id":"1awcwxw","kind":"post","text":"Why are non-DRY specs more maintainable?","timestamp":"2024-02-21T14:09:01+00:00","score":127},{"role":"answerer","user_id":"anon_d4eb6a4aa301747a","comment_id":"krgdup4","kind":"comment","text":"> First, keeping relevant code in the same context makes it much easier for generative AI to \"understand\" and make useful suggestions\n\nI don't think this will be an issue for long. Context windows are going to get big enough that AIs can fit an entire codebase into their memory (or at least the important parts). I imagine we're probably headed towards setting up semi-fine tuned models along with out lint and build configs per project.","timestamp":"2024-02-21T14:46:30+00:00","score":5},{"role":"OP","user_id":"anon_d41e17d55cad9b38","comment_id":"krgfvxt","kind":"comment","text":"This is exactly the situation described in the post. The locality of code makes it faster and easier for future programmers (and, in this case, AI) to understand and change confidently.","timestamp":"2024-02-21T14:58:48+00:00","score":1},{"role":"answerer","user_id":"anon_d4eb6a4aa301747a","comment_id":"krgga5p","kind":"comment","text":"Personally I disagree with some of the premise behind the argument, but we'll see in a couple years.","timestamp":"2024-02-21T15:01:13+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_d41e17d55cad9b38","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d4eb6a4aa301747a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"krgdup4","thanks_reply_id":"krgfvxt","post_score":127,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_3f7d964e9a8c4853","answerer_user_id":"anon_68557c374360ca8a","subreddit":"programming","timestamp":"2024-02-28T15:27:37+00:00","post_id":"1b28orp","question":"What I learned building GPT Pilot - LLM based dev tool that builds web apps from start to finish (research + examples)","preferred_answer":"Very cool. Sorry there are so many grumpy people in the comments about this, but that seems to be par for the course in this sub, and this feels akin to John Henry seeing a protype rail driver.","full_conversation":[{"role":"OP","user_id":"anon_3f7d964e9a8c4853","comment_id":"1b28orp","kind":"post","text":"What I learned building GPT Pilot - LLM based dev tool that builds web apps from start to finish (research + examples)","timestamp":"2024-02-28T15:27:37+00:00","score":36},{"role":"answerer","user_id":"anon_68557c374360ca8a","comment_id":"ksmq0fa","kind":"comment","text":"Very cool. Sorry there are so many grumpy people in the comments about this, but that seems to be par for the course in this sub, and this feels akin to John Henry seeing a protype rail driver.","timestamp":"2024-02-29T01:41:55+00:00","score":-12},{"role":"OP","user_id":"anon_3f7d964e9a8c4853","comment_id":"ksmqiu7","kind":"comment","text":"Hey, thanks man, I really appreciate it. Don't remember when I got so many negative comments.","timestamp":"2024-02-29T01:45:09+00:00","score":3},{"role":"answerer","user_id":"anon_68557c374360ca8a","comment_id":"ksmqy3y","kind":"comment","text":"I had this exact idea a few months back and was surprised that I hadn't heard of anyone else already making it happen. Looks like someone did! I'm going to play around with this. :)","timestamp":"2024-02-29T01:47:50+00:00","score":-5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_3f7d964e9a8c4853","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_68557c374360ca8a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ksmq0fa","thanks_reply_id":"ksmqiu7","post_score":36,"answer_score":-12,"preferred_answer_is_top_level":true}} {"user_id":"anon_c38164c5d7d049e5","answerer_user_id":"anon_5b4f0ce94c98d3de","subreddit":"programming","timestamp":"2024-03-09T00:04:32+00:00","post_id":"1ba3ldv","question":"Iphone Cursor\n\nI don’t know much about coding, but I am interested in an app or program that can run a cursor on ios. Just an icon that can sense touch and superficially follow your finger (without really doing anything). Is this possible and would anybody be interested in creating it?","preferred_answer":"I don't know why you wouldn't want to learn 10,000 things. You can build whatever you want at any time you want if you did, and wouldn't rely on a group who would charge for it to hopefully find someone who wants to do free work.\n\nIt's possible. I haven't used iOS since the iPhone 6, but after a quick jailbreak, it would just be a single view where a single element listens for touch events and moves an image to that position.","full_conversation":[{"role":"OP","user_id":"anon_c38164c5d7d049e5","comment_id":"1ba3ldv","kind":"post","text":"Iphone Cursor\n\nI don’t know much about coding, but I am interested in an app or program that can run a cursor on ios. Just an icon that can sense touch and superficially follow your finger (without really doing anything). Is this possible and would anybody be interested in creating it?","timestamp":"2024-03-09T00:04:32+00:00","score":1},{"role":"answerer","user_id":"anon_5b4f0ce94c98d3de","comment_id":"ku3bu1b","kind":"comment","text":"I don't know why you wouldn't want to learn 10,000 things. You can build whatever you want at any time you want if you did, and wouldn't rely on a group who would charge for it to hopefully find someone who wants to do free work.\n\nIt's possible. I haven't used iOS since the iPhone 6, but after a quick jailbreak, it would just be a single view where a single element listens for touch events and moves an image to that position.","timestamp":"2024-03-09T16:50:48+00:00","score":2},{"role":"OP","user_id":"anon_c38164c5d7d049e5","comment_id":"ku3gwx9","kind":"comment","text":"okay, I appreciate you for helping. If you don’t mind just one more thing. If I do it on my own, can I have any advice on how to quickly get started? A resource? or a program I need? Website? \n\nAnd I want the cursor to be able to function on the homescreen/everywhere on the phone. I don’t know how that makes it more or less complicated, bc making an app that has a cursor would be easy.","timestamp":"2024-03-09T17:19:13+00:00","score":1},{"role":"answerer","user_id":"anon_5b4f0ce94c98d3de","comment_id":"ku3lc5d","kind":"comment","text":"You need a Mac for iOS development, because Apple has it locked down. You'd write the code in Xcode. You'd probably use Swift and SwiftUI. There are lots of YouTube videos about those available. You'll want to play around with it before building what you want, just to get comfortable and learn what to Google. Honestly, I've been writing software for 15 years, and most of what I do is Google things like \"how to move image SwuftUI\" when I don't know something.\n\nIf you don't have a Mac, it's going to be a little tougher, but there are virtual machines you can run on your computer to run Mac inside Windows/Linux and there's also for-rent remote Mac instances.","timestamp":"2024-03-09T17:43:22+00:00","score":2},{"role":"OP","user_id":"anon_c38164c5d7d049e5","comment_id":"ku3odf5","kind":"comment","text":"Thank you, this was helpful\n\nI don’t have Mac, but I’ve downloaded virtual machines before so i’ll most likely do that 🙏","timestamp":"2024-03-09T18:00:15+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_c38164c5d7d049e5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5b4f0ce94c98d3de","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ku3bu1b","thanks_reply_id":"ku3gwx9","post_score":1,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_274bdf4d31ae056a","answerer_user_id":"anon_56a5b40a75c027c0","subreddit":"programming","timestamp":"2024-03-19T15:58:06+00:00","post_id":"1binnvg","question":"Experience With Locust? What Programs Do You Use For Load Tests?","preferred_answer":"I used Locust about 4 years ago when I inherited an e-commerce app with some very serious performance issues.\n\nI found it easy to get up and running, and was helpful for checking that the changes we were making did actually improve the performance.","full_conversation":[{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"1binnvg","kind":"post","text":"Experience With Locust? What Programs Do You Use For Load Tests?","timestamp":"2024-03-19T15:58:06+00:00","score":1},{"role":"answerer","user_id":"anon_56a5b40a75c027c0","comment_id":"kvllpiv","kind":"comment","text":"I used Locust about 4 years ago when I inherited an e-commerce app with some very serious performance issues.\n\nI found it easy to get up and running, and was helpful for checking that the changes we were making did actually improve the performance.","timestamp":"2024-03-19T16:36:42+00:00","score":2},{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"kvlmakl","kind":"comment","text":"Thank you for the info. Did you used it in an autmated setup? I see they have a headlessmode where you can run the tests via a CLI.","timestamp":"2024-03-19T16:40:00+00:00","score":1},{"role":"answerer","user_id":"anon_56a5b40a75c027c0","comment_id":"kvlpfsv","kind":"comment","text":"I don't think we ever did. I think it was just manually run while devs were working on specific areas. But based on the manual part, I'm sure the CI/CD part is great.","timestamp":"2024-03-19T16:57:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_274bdf4d31ae056a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_56a5b40a75c027c0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kvllpiv","thanks_reply_id":"kvlmakl","post_score":1,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_690a0bd75d318027","answerer_user_id":"anon_d24d49c7f6331576","subreddit":"programming","timestamp":"2024-03-21T10:15:46+00:00","post_id":"1bk36mz","question":"How to keep your product alive: poor man's SRE","preferred_answer":"If this is your blog the table of contents goes over the text on my narrow screen\n\nhttps://i.imgur.com/zr4qI72.png","full_conversation":[{"role":"OP","user_id":"anon_690a0bd75d318027","comment_id":"1bk36mz","kind":"post","text":"How to keep your product alive: poor man's SRE","timestamp":"2024-03-21T10:15:46+00:00","score":59},{"role":"answerer","user_id":"anon_d24d49c7f6331576","comment_id":"kvvfazd","kind":"comment","text":"If this is your blog the table of contents goes over the text on my narrow screen\n\nhttps://i.imgur.com/zr4qI72.png","timestamp":"2024-03-21T11:19:58+00:00","score":17},{"role":"OP","user_id":"anon_690a0bd75d318027","comment_id":"kvw0c4f","kind":"comment","text":"Thanks! what's your device and screen resolution?","timestamp":"2024-03-21T13:56:21+00:00","score":5},{"role":"answerer","user_id":"anon_d24d49c7f6331576","comment_id":"kvw71x7","kind":"comment","text":"It is a 1920x1080 in portrait mode.","timestamp":"2024-03-21T14:36:53+00:00","score":4}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_690a0bd75d318027","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d24d49c7f6331576","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kvvfazd","thanks_reply_id":"kvw0c4f","post_score":59,"answer_score":17,"preferred_answer_is_top_level":true}} {"user_id":"anon_373f658ddfd40bd9","answerer_user_id":"anon_9b59ce77af48b286","subreddit":"programming","timestamp":"2024-03-23T17:03:24+00:00","post_id":"1blx434","question":"How I Recreated A $7,000,000,000 Website","preferred_answer":"TL;DR: tried recreating a discontinued mini game from the Ney York Times. \n\nIt looks actually kind of fun. I think using a database might have been useful to store some game states, but at the same time could you not generate a random game each time? \n\nGenerate six random numbers, throw the operators around randomly until you the result.\n\nThis might result in some unsatisfying solutions, but with a few tweaks and rules in the generation it could work pretty well. This would also get rid of the hard coded setups in the code.","full_conversation":[{"role":"OP","user_id":"anon_373f658ddfd40bd9","comment_id":"1blx434","kind":"post","text":"How I Recreated A $7,000,000,000 Website","timestamp":"2024-03-23T17:03:24+00:00","score":1},{"role":"answerer","user_id":"anon_9b59ce77af48b286","comment_id":"kw7zi4k","kind":"comment","text":"TL;DR: tried recreating a discontinued mini game from the Ney York Times. \n\nIt looks actually kind of fun. I think using a database might have been useful to store some game states, but at the same time could you not generate a random game each time? \n\nGenerate six random numbers, throw the operators around randomly until you the result.\n\nThis might result in some unsatisfying solutions, but with a few tweaks and rules in the generation it could work pretty well. This would also get rid of the hard coded setups in the code.","timestamp":"2024-03-23T17:22:50+00:00","score":16},{"role":"OP","user_id":"anon_373f658ddfd40bd9","comment_id":"kw815ru","kind":"comment","text":"Thanks for the feedback! I could generate new ones each time(which I may do now), but at the time I was trying to keep up the same thing as the original which has daily puzzles.","timestamp":"2024-03-23T17:32:48+00:00","score":1},{"role":"answerer","user_id":"anon_9b59ce77af48b286","comment_id":"kw81box","kind":"comment","text":"Nice, I'd love to try it. Looks really fun and I never saw the NYT one.","timestamp":"2024-03-23T17:33:47+00:00","score":1},{"role":"OP","user_id":"anon_373f658ddfd40bd9","comment_id":"kw81ipy","kind":"comment","text":"In the comments and description of the video I put the link, so if you want you can check that out","timestamp":"2024-03-23T17:34:57+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_373f658ddfd40bd9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_9b59ce77af48b286","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kw7zi4k","thanks_reply_id":"kw815ru","post_score":1,"answer_score":16,"preferred_answer_is_top_level":true}} {"user_id":"anon_4e061a39adbc096b","answerer_user_id":"anon_a992cae6171b34e9","subreddit":"programming","timestamp":"2024-03-24T22:38:10+00:00","post_id":"1bmxpax","question":"Why I love the way C++ sucks","preferred_answer":"If you consider that to be fun, then yeah, type masturbation is probably a good term for it. Good programmers don't have time to guess which c++ idiom the maintainers decided to hijack on any typical day","full_conversation":[{"role":"OP","user_id":"anon_4e061a39adbc096b","comment_id":"1bmxpax","kind":"post","text":"Why I love the way C++ sucks","timestamp":"2024-03-24T22:38:10+00:00","score":102},{"role":"answerer","user_id":"anon_a992cae6171b34e9","comment_id":"kwep8gg","kind":"comment","text":"If you consider that to be fun, then yeah, type masturbation is probably a good term for it. Good programmers don't have time to guess which c++ idiom the maintainers decided to hijack on any typical day","timestamp":"2024-03-24T23:02:58+00:00","score":61},{"role":"OP","user_id":"anon_4e061a39adbc096b","comment_id":"kwf32v3","kind":"comment","text":"Thanks for reading the post, and yeah I figured as much. But as far as I’m still “lead developer of 1”, I’ll still go for the fun option.\n\nC# is also amazing tho, for different reasons.","timestamp":"2024-03-25T00:32:26+00:00","score":14},{"role":"answerer","user_id":"anon_a992cae6171b34e9","comment_id":"kwf3rfg","kind":"comment","text":"I'm also a solo lead dev on a software product, but i still do my civic duty of leaving a maintainable product behind once I leave. Alas, life is short and most good efforts get thrown out every decade or so anyway.","timestamp":"2024-03-25T00:36:50+00:00","score":16},{"role":"OP","user_id":"anon_4e061a39adbc096b","comment_id":"kwf42vb","kind":"comment","text":"I’d have grown super bored of most of my projects if I did all of them that way, but I cannot dispute you reasoning. Thanks again for reading!","timestamp":"2024-03-25T00:38:53+00:00","score":-4}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_4e061a39adbc096b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a992cae6171b34e9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kwep8gg","thanks_reply_id":"kwf32v3","post_score":102,"answer_score":61,"preferred_answer_is_top_level":true}} {"user_id":"anon_274bdf4d31ae056a","answerer_user_id":"anon_c7b5157b7a12da95","subreddit":"programming","timestamp":"2024-03-25T10:01:03+00:00","post_id":"1bn9vo7","question":"Is GPT-4 getting worse and worse?","preferred_answer":"Before using AI code assistants, consider the long-term implications for your codebase.\n\n[https://stackoverflow.blog/2024/03/22/is-ai-making-your-code-worse/](https://stackoverflow.blog/2024/03/22/is-ai-making-your-code-worse/)","full_conversation":[{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"1bn9vo7","kind":"post","text":"Is GPT-4 getting worse and worse?","timestamp":"2024-03-25T10:01:03+00:00","score":754},{"role":"answerer","user_id":"anon_c7b5157b7a12da95","comment_id":"kwh12k0","kind":"comment","text":"Before using AI code assistants, consider the long-term implications for your codebase.\n\n[https://stackoverflow.blog/2024/03/22/is-ai-making-your-code-worse/](https://stackoverflow.blog/2024/03/22/is-ai-making-your-code-worse/)","timestamp":"2024-03-25T11:47:03+00:00","score":58},{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"kwh19qw","kind":"comment","text":"I mostly use it for problem solving and not for writing code, but thanks for pointing out. i also think you can not write code with AI without understanding what the code actually means.","timestamp":"2024-03-25T11:48:47+00:00","score":42},{"role":"answerer","user_id":"anon_c7b5157b7a12da95","comment_id":"kwh1gnl","kind":"comment","text":"Oh, I disagree. I used to be a script kiddy back in the day. A lot of code I copy pasted from Visual Basic discussion boards. I paste it, I try it, it works, I move on.\n\nLet's just say I was NOT a great programmer.","timestamp":"2024-03-25T11:50:27+00:00","score":18},{"role":"OP","user_id":"anon_274bdf4d31ae056a","comment_id":"kwh1qw1","kind":"comment","text":"But that is actually the same problem, if you just copy and paste from formus it is not different from copy and pasting from GPT. So in both cases the codebase is getting worse. \n\nIn both cases when you do not understand what the code actually does, your codebase will suffer ;)","timestamp":"2024-03-25T11:52:53+00:00","score":53}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_274bdf4d31ae056a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c7b5157b7a12da95","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kwh12k0","thanks_reply_id":"kwh19qw","post_score":754,"answer_score":58,"preferred_answer_is_top_level":true}} {"user_id":"anon_fc872a070e43b4b1","answerer_user_id":"anon_1549f08f91da93f6","subreddit":"programming","timestamp":"2024-03-26T12:40:03+00:00","post_id":"1bo6wm1","question":"What Computers Cannot Do: The Consequences of Turing-Completeness","preferred_answer":"Again, they are the standard. It means whatever they want it to mean, because it only exists to serve a purpose. C++, whether you like it or not, has decided that performance is their goal.\n\nAnd if your code is being deleted as a result of invoking UB, and this is somehow the correct and intended behavior (\\[X\\] Doubt), then turn off the optimizations and get on with it. Also, write better code.","full_conversation":[{"role":"OP","user_id":"anon_fc872a070e43b4b1","comment_id":"1bo6wm1","kind":"post","text":"What Computers Cannot Do: The Consequences of Turing-Completeness","timestamp":"2024-03-26T12:40:03+00:00","score":197},{"role":"answerer","user_id":"anon_1549f08f91da93f6","comment_id":"kwpyuq2","kind":"comment","text":"Again, they are the standard. It means whatever they want it to mean, because it only exists to serve a purpose. C++, whether you like it or not, has decided that performance is their goal.\n\nAnd if your code is being deleted as a result of invoking UB, and this is somehow the correct and intended behavior (\\[X\\] Doubt), then turn off the optimizations and get on with it. Also, write better code.","timestamp":"2024-03-26T23:30:54+00:00","score":5},{"role":"OP","user_id":"anon_fc872a070e43b4b1","comment_id":"kwpz98w","kind":"comment","text":"I love C, but this is exactly the attitude that will get C and C++ banned by law.","timestamp":"2024-03-26T23:33:25+00:00","score":-6},{"role":"answerer","user_id":"anon_1549f08f91da93f6","comment_id":"kwq3sp9","kind":"comment","text":"The only code being \"ruined\" by UB, is code that is broken by poor design. In specific instances, the assumption of *the absence of UB* (which, critically, is distinct from *UB itself)* can lead to optimization benefits deemed worthwhile by the C++ committee and compiler developers. That's it. They aren't \"deleting stuff\" just because they can, they are defining what is and is not universally guaranteed behavior. YOU choose the compiler and optimization settings. Don't use the settings you don't like/understand.","timestamp":"2024-03-27T00:01:20+00:00","score":9},{"role":"OP","user_id":"anon_fc872a070e43b4b1","comment_id":"kwqdp8u","kind":"comment","text":"Some programmers, who ship source code to other people, *can't* choose what settings to use.\n\nWhen programmers have no real recourse to check for signed overflow because every option results in UB, and so every check they could make for UB is deleted because compiler authors claim hegemony over UB, the compiler authors are at fault.\n\nIn Rig, I have 0 signed math, within rounding error. Why? Because I cannot do any UB checks that won't get deleted *somewhere* because I can't control the settings my users choose.\n\nWhen signed math is so broken and exploited that programmers actively avoid it and simulate two's-compliment with unsigned types, compilers have jumped the shark.\n\nYou claim I don't understand, that I should just not make mistakes. Well, I have, by avoiding signed math. Don't claim I am ignorant until you look at my code.","timestamp":"2024-03-27T01:02:30+00:00","score":2},{"role":"answerer","user_id":"anon_1549f08f91da93f6","comment_id":"kwv98q2","kind":"comment","text":">Some programmers, who ship source code to other people, *can't* choose what settings to use.\n\nThen your users are compiling your code with the incorrect settings. And/or you wrote incorrect code. Do you know what the word \"undefined\" means? It means \"Not defined\". It literally means that anything can happen. The C++ committee didn't change that. They didn't decide it means \"delete your code\". It means what it has always meant: Anything can happen. So, DO NOT USE IF YOU DON'T UNDERSTAND YOUR ENVIRONMENT. It's called UB for a reason. It could not be any more clear. It's undefined. If you have any expectations at all for how it \"should\" behave on another system, then you don't know what undefined means.\n\n>I have, by avoiding signed math and other sources of UB.\n\nI learned to avoid == when using floats. You know what I didn't do? Write a blog post about how the IEEE754 is trying to \"impose its worldview\" on real numbers.","timestamp":"2024-03-27T22:17:56+00:00","score":2},{"role":"OP","user_id":"anon_fc872a070e43b4b1","comment_id":"kwvj12y","kind":"comment","text":"> Then your users are compiling your code with the incorrect settings.\n\nAnd even though I tell them the correct settings, who do they blame when the compiler murders my code? Me.\n\n> They didn't decide it means \"delete your code\"\n\nYes, they did. They could have easily accepted that humans make mistakes, that UB will always happen, and that compilers should act in good faith in such situations and assume UB could happen.\n\nInstead, they decided that humans writing C and C++ are perfect, that they never make mistakes, and if they do, they deserve to be punished by having the compiler *maliciously* assume that UB will never happen despite mounds of evidence to the contrary.\n\nAnd despite your claims that I do not understand the environment, I do. I do understand that compiler writers claim the right to murder my code should I make the *slightest* mistake, and I act accordingly.\n\nMay I suggest that *you and compiler writers* do not understand the environment because the environment includes imperfect people who write imperfect programs.\n\nOne of the greatest, and most damaging, marketing successes of our industry is that every programmer *but* compiler writers has to be perfect, and if they are not, it is their fault, not the fault of the compiler that changed from underneath them! Because new compiler versions do break *preexisting* code all the time.\n\nAnd I would bet my whole life savings that if you have wriiten C or C++, your code has executed UB. So you do not understand the environment. Or you have been brainwashed into accepting the gaslighting by compiler authors that tells you to blame yourself even after all you could do.\n\n> I learned to avoid == when using floats.\n\nYou know the funny thing about == for floats? It's well-defined!\n\nBut that is not equivalent at all.\n\nThe equivalent thing would be if compilers changed your fuzzy float equality check to always return false because you used a slightly wrong epsilon value.\n\n> You know what I didn't do? Write a blog post about how the IEEE754 is trying to \"impose its worldview\" on real numbers.\n\nIf it was wrong to express my opinion, then you expressing your opinion to me is just as wrong. And you did write a bunch of Reddit posts about how I am trying to impose my worldview on compilers.","timestamp":"2024-03-27T23:17:01+00:00","score":1},{"role":"answerer","user_id":"anon_1549f08f91da93f6","comment_id":"kx679co","kind":"comment","text":">they deserve to be punished by having the compiler *maliciously* assume that UB will never happen despite mounds of evidence to the contrary.\n\nCompiler developers are not acting maliciously and are not trying to punish you. If you genuinely believe this then you are insane.\n\nCompiler developers assume that C++ programmers know the rules of C++ and know to avoid UB unless they know exactly what they are doing. The compiler assumes you know what you are doing, and acts to *optimize* your code. \n\nIf this makes an error, then the fault lies with the programmer. C++ may not be the language for you.","timestamp":"2024-03-29T22:18:16+00:00","score":1},{"role":"OP","user_id":"anon_fc872a070e43b4b1","comment_id":"kx7h60v","kind":"comment","text":"> Compiler developers are not acting maliciously and are not trying to punish you. If you genuinely believe this then you are insane.\n\nChoosing benchmark performance over correctness is just as malicious as choosing to extract value over providing value.\n\nI will let you judge whether they are malicious or not.","timestamp":"2024-03-30T03:32:03+00:00","score":1}],"n_turns":9,"n_turns_after_thanks":6,"op_metadata":{"user_id":"anon_fc872a070e43b4b1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1549f08f91da93f6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kwpyuq2","thanks_reply_id":"kwpz98w","post_score":197,"answer_score":5,"preferred_answer_is_top_level":false}} {"user_id":"anon_7a2f6989caf1d2d6","answerer_user_id":"anon_eaf0b5f7073b87b7","subreddit":"programming","timestamp":"2024-03-29T16:54:36+00:00","post_id":"1bqu4x3","question":"How to design a README file to help newcomers to contribute? Modern solutions for open-source projects.\n\nI remember my feelings when I started committing my first open source project 15 years ago. In 6 words: it was github, it was hard. What resources are available to lower the threshold for entering open source today? Something modern and inspired?\n\nI'd like to turn my READMEs into a better style to help people make their first commits easier.","preferred_answer":"Please document the global project structure. It's so awful having to basically engineer the project to find out where a functionality is implemented.","full_conversation":[{"role":"OP","user_id":"anon_7a2f6989caf1d2d6","comment_id":"1bqu4x3","kind":"post","text":"How to design a README file to help newcomers to contribute? Modern solutions for open-source projects.\n\nI remember my feelings when I started committing my first open source project 15 years ago. In 6 words: it was github, it was hard. What resources are available to lower the threshold for entering open source today? Something modern and inspired?\n\nI'd like to turn my READMEs into a better style to help people make their first commits easier.","timestamp":"2024-03-29T16:54:36+00:00","score":6},{"role":"answerer","user_id":"anon_eaf0b5f7073b87b7","comment_id":"kx8gax7","kind":"comment","text":"Please document the global project structure. It's so awful having to basically engineer the project to find out where a functionality is implemented.","timestamp":"2024-03-30T10:06:02+00:00","score":3},{"role":"OP","user_id":"anon_7a2f6989caf1d2d6","comment_id":"kx8hupo","kind":"comment","text":"I took note, thank you.","timestamp":"2024-03-30T10:25:14+00:00","score":2},{"role":"answerer","user_id":"anon_eaf0b5f7073b87b7","comment_id":"kx8ia6a","kind":"comment","text":"Here is a good link about it: https://matklad.github.io//2021/02/06/ARCHITECTURE.md.html","timestamp":"2024-03-30T10:30:26+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7a2f6989caf1d2d6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_eaf0b5f7073b87b7","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kx8gax7","thanks_reply_id":"kx8hupo","post_score":6,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_7d3f4a86695d1ccf","answerer_user_id":"anon_770f95419fb95bec","subreddit":"programming","timestamp":"2024-03-30T15:41:11+00:00","post_id":"1brksex","question":"How to find an SD job in 1 month….I’m broke?\n\nI previously worked as an intern with a reputable product-based company, earning a stipend of 40k per month, but when my internship ended in June last year, I did not pursue the permanent position because I thought I wanted to start my own business. However, after nine months of attempting to launch a business without success and facing financial constraints, I find myself uncertain about my next steps. With the current recession in the IT market and the emergence of AI technologies like Devin, I feel overwhelmed and confused about what to do now.\n\nPlease Guide \n\nP.S I have a masters degree in computer application and 1.5 that includes 4 months of training and 11 months of internship but sadly it down counts as experience","preferred_answer":"cscareerquestions is probably a better place to ask","full_conversation":[{"role":"OP","user_id":"anon_7d3f4a86695d1ccf","comment_id":"1brksex","kind":"post","text":"How to find an SD job in 1 month….I’m broke?\n\nI previously worked as an intern with a reputable product-based company, earning a stipend of 40k per month, but when my internship ended in June last year, I did not pursue the permanent position because I thought I wanted to start my own business. However, after nine months of attempting to launch a business without success and facing financial constraints, I find myself uncertain about my next steps. With the current recession in the IT market and the emergence of AI technologies like Devin, I feel overwhelmed and confused about what to do now.\n\nPlease Guide \n\nP.S I have a masters degree in computer application and 1.5 that includes 4 months of training and 11 months of internship but sadly it down counts as experience","timestamp":"2024-03-30T15:41:11+00:00","score":1},{"role":"answerer","user_id":"anon_770f95419fb95bec","comment_id":"kx9lrls","kind":"comment","text":"cscareerquestions is probably a better place to ask","timestamp":"2024-03-30T15:46:36+00:00","score":16},{"role":"OP","user_id":"anon_7d3f4a86695d1ccf","comment_id":"kx9n7n3","kind":"comment","text":"Ah, I see! Thanks for letting me know. I’m still getting the hang of Reddit","timestamp":"2024-03-30T15:55:33+00:00","score":1},{"role":"answerer","user_id":"anon_770f95419fb95bec","comment_id":"kxa68z1","kind":"comment","text":"No problem, I think you’ll get better answers over there :)","timestamp":"2024-03-30T17:52:11+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_7d3f4a86695d1ccf","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_770f95419fb95bec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"kx9lrls","thanks_reply_id":"kx9n7n3","post_score":1,"answer_score":16,"preferred_answer_is_top_level":true}} {"user_id":"anon_f1357ac57d9e8760","answerer_user_id":"anon_b539d41afbbd14a4","subreddit":"programming","timestamp":"2024-04-26T18:16:58+00:00","post_id":"1cdsgmx","question":"Why you should be a builder instead of a coder","preferred_answer":"Good video OP. This sub can react awfully to anything that isn't trendy or Rust or Microservices, don't be bothered by the replies you get. Try to aim for YouTube algorithm success.","full_conversation":[{"role":"OP","user_id":"anon_f1357ac57d9e8760","comment_id":"1cdsgmx","kind":"post","text":"Why you should be a builder instead of a coder","timestamp":"2024-04-26T18:16:58+00:00","score":0},{"role":"answerer","user_id":"anon_b539d41afbbd14a4","comment_id":"l1e9pw4","kind":"comment","text":"Good video OP. This sub can react awfully to anything that isn't trendy or Rust or Microservices, don't be bothered by the replies you get. Try to aim for YouTube algorithm success.","timestamp":"2024-04-26T19:19:38+00:00","score":-17},{"role":"OP","user_id":"anon_f1357ac57d9e8760","comment_id":"l1eoj2d","kind":"comment","text":"appreciate the kind words 🙏","timestamp":"2024-04-26T20:45:44+00:00","score":-10},{"role":"answerer","user_id":"anon_b539d41afbbd14a4","comment_id":"l1goknz","kind":"comment","text":"It's the truth, the /new page of this sub is gatekeeped by junior *coders* with 5 years of experience who think they're seniors already for thinking \"OOP bad\". They live in an echo chamber with each other and only let the \"microservices good\" blog posts through their downvotes, while the real senior devs have no time to hang around on reddit because they have real jobs and families. And it happens to *every* sub, they are all controlled by the people who just got \"super interested\" in the topic after one or two years of doing it and now want to start teaching others how things should be done.\n\nThe good news is, once a post reaches the frontpage of the sub, the real developers chime in and rhe sentiment changes. I've had multiple comments go from -10 votes initially to +100 votes as the post reached the frontpage.","timestamp":"2024-04-27T05:22:31+00:00","score":-2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_f1357ac57d9e8760","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b539d41afbbd14a4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"l1e9pw4","thanks_reply_id":"l1eoj2d","post_score":0,"answer_score":-17,"preferred_answer_is_top_level":true}} {"user_id":"anon_846ec77f8bffc7f3","answerer_user_id":"anon_7cdf0dd67e5a3d12","subreddit":"programming","timestamp":"2024-05-13T18:14:51+00:00","post_id":"1cr66xj","question":"How structure-padding in C/C++ actually works","preferred_answer":"Then it would be time to put a bit more effort into it, start here please:\n\n[https://en.cppreference.com/w/c/language/object](https://en.cppreference.com/w/c/language/object)\n\n[https://en.cppreference.com/w/cpp/language/alignas](https://en.cppreference.com/w/cpp/language/alignas)\n\nYou can specify the alignment of various structures, not just setting it globally with a pragma.","full_conversation":[{"role":"OP","user_id":"anon_846ec77f8bffc7f3","comment_id":"1cr66xj","kind":"post","text":"How structure-padding in C/C++ actually works","timestamp":"2024-05-13T18:14:51+00:00","score":0},{"role":"answerer","user_id":"anon_7cdf0dd67e5a3d12","comment_id":"l3vzcb7","kind":"comment","text":"Then it would be time to put a bit more effort into it, start here please:\n\n[https://en.cppreference.com/w/c/language/object](https://en.cppreference.com/w/c/language/object)\n\n[https://en.cppreference.com/w/cpp/language/alignas](https://en.cppreference.com/w/cpp/language/alignas)\n\nYou can specify the alignment of various structures, not just setting it globally with a pragma.","timestamp":"2024-05-13T18:38:41+00:00","score":10},{"role":"OP","user_id":"anon_846ec77f8bffc7f3","comment_id":"l3w0vas","kind":"comment","text":"I was really not aware of this feature 😳\n\nThank you so much for pointing out 😁","timestamp":"2024-05-13T18:47:19+00:00","score":-2},{"role":"answerer","user_id":"anon_7cdf0dd67e5a3d12","comment_id":"l3w2s5w","kind":"comment","text":"I think this is a very basic feature when you are to play with such things.\n\nAnd it's worth to note these alignment adjustments are very often being used when bitbanging through some binary stuff, to create a tightly packed representation in memory of the serialized data, then you can easily access it (apart from the occasional endianness flipping parts).\n\nNot really pure C++ style, but for an example mmaping part of the file to suchly declared structures can be quite efficient at times. Then from that you can easily create your proper (CPU-optimized) representation of the data, that you are actually working with efficiently at runtime.","timestamp":"2024-05-13T18:58:09+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_846ec77f8bffc7f3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7cdf0dd67e5a3d12","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"l3vzcb7","thanks_reply_id":"l3w0vas","post_score":0,"answer_score":10,"preferred_answer_is_top_level":false}} {"user_id":"anon_fc872a070e43b4b1","answerer_user_id":"anon_d1dc7a03d7d2293e","subreddit":"programming","timestamp":"2024-05-22T22:00:10+00:00","post_id":"1cyclvy","question":"What Rust Got Wrong on Formal Verification","preferred_answer":"In all good faith, this is what I'd do to clean up the top of this website for mobile. Don't over index on what people say about your colors / theme. It's not super pretty, but it's perfectly fine.... except red titles.\n\n0. Title should not be red. A neutral color would be a big improvement.\n1. Limit your SEO/tags at the top to one visible line.\n2. TOC is between toggles and warnings. VERY awkward placement. I'd put it right above the first section heading.\n3. Put your sitewide disclaimer in your footer, not the header. If you must keep it in the header, combine it with the AD disclaimer and limit it to 1-2 lines of text total.\n4. You have a table of contents. We don't need a warning about length.\n5. Cut your ad disclaimer down to \"this post is partially an ad\". Your audience should know what to do if they don't like that.\n6. Collapse your notes to 1 line audience and 1 line epistemic status by default. Tap to expand if you want to say more.\n7. Remove the warnings and notes toggle switches. They're too big for the space they'll save after the other suggestions.","full_conversation":[{"role":"OP","user_id":"anon_fc872a070e43b4b1","comment_id":"1cyclvy","kind":"post","text":"What Rust Got Wrong on Formal Verification","timestamp":"2024-05-22T22:00:10+00:00","score":153},{"role":"answerer","user_id":"anon_d1dc7a03d7d2293e","comment_id":"l5a15z8","kind":"comment","text":"In all good faith, this is what I'd do to clean up the top of this website for mobile. Don't over index on what people say about your colors / theme. It's not super pretty, but it's perfectly fine.... except red titles.\n\n0. Title should not be red. A neutral color would be a big improvement.\n1. Limit your SEO/tags at the top to one visible line.\n2. TOC is between toggles and warnings. VERY awkward placement. I'd put it right above the first section heading.\n3. Put your sitewide disclaimer in your footer, not the header. If you must keep it in the header, combine it with the AD disclaimer and limit it to 1-2 lines of text total.\n4. You have a table of contents. We don't need a warning about length.\n5. Cut your ad disclaimer down to \"this post is partially an ad\". Your audience should know what to do if they don't like that.\n6. Collapse your notes to 1 line audience and 1 line epistemic status by default. Tap to expand if you want to say more.\n7. Remove the warnings and notes toggle switches. They're too big for the space they'll save after the other suggestions.","timestamp":"2024-05-23T04:22:28+00:00","score":17},{"role":"OP","user_id":"anon_fc872a070e43b4b1","comment_id":"l5a3fck","kind":"comment","text":"I will see what I can do. Thank you.","timestamp":"2024-05-23T04:43:15+00:00","score":6},{"role":"answerer","user_id":"anon_d1dc7a03d7d2293e","comment_id":"l5x94ds","kind":"comment","text":"I finally got around to reading the post. You make some interesting points. It's a good read.\n\nIt also looks like you took the feedback and took action on a lot of the suggestions. That's great! I think that your site is looking a whole lot better now :)\n\nThank you!","timestamp":"2024-05-27T19:24:21+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_fc872a070e43b4b1","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d1dc7a03d7d2293e","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"l5a15z8","thanks_reply_id":"l5a3fck","post_score":153,"answer_score":17,"preferred_answer_is_top_level":false}} {"user_id":"anon_29ce562f301b577d","answerer_user_id":"anon_270ad2a6a391e4a6","subreddit":"programming","timestamp":"2024-06-20T15:52:36+00:00","post_id":"1dkf0xn","question":"Is NoSQL more scalable than SQL? Well, depends on how you define the scale","preferred_answer":"Not much content. Talking about different kinds of scaling without offering very robust analytical information. More philosophical than anything else.\n\nIt lacks examples, numbers and maths, concepts, architectures...\n\nNot even an introduction to the subject.","full_conversation":[{"role":"OP","user_id":"anon_29ce562f301b577d","comment_id":"1dkf0xn","kind":"post","text":"Is NoSQL more scalable than SQL? Well, depends on how you define the scale","timestamp":"2024-06-20T15:52:36+00:00","score":0},{"role":"answerer","user_id":"anon_270ad2a6a391e4a6","comment_id":"l9hmxo2","kind":"comment","text":"Not much content. Talking about different kinds of scaling without offering very robust analytical information. More philosophical than anything else.\n\nIt lacks examples, numbers and maths, concepts, architectures...\n\nNot even an introduction to the subject.","timestamp":"2024-06-20T17:12:36+00:00","score":12},{"role":"OP","user_id":"anon_29ce562f301b577d","comment_id":"l9hq4hg","kind":"comment","text":"Thanks for the feedback. It is indeed more philosophical, however i tried to put a practical application on when to choose NoSQL vs SQL.","timestamp":"2024-06-20T17:29:46+00:00","score":1},{"role":"answerer","user_id":"anon_270ad2a6a391e4a6","comment_id":"l9huxrf","kind":"comment","text":"I guess by practical you define when to choose SQL over nosql: sometimes it's because your complexity needs to scale, sometimes it's the number of the user requests...\n\nTo be honest, I started to read and when I came to the end I was like: uh ? Already ?\n\nYou open the discussion but that's merely a start. SQL sure has structures and relationships that help in managing complexity. Sure nosql is simple in the data structure but fast at the querying. But what about a mix of the two to handle multiple scaling problems?\n\nWhat I mean, here, is that it's bold, IMO, to write 5 paragraphs on a subject that requires multiple books to talk about it. You don't have to go to such an extent I guess but at least dive into something. Showing the potential of your idea.\n\nI have shorter slack threads with more info in them.","timestamp":"2024-06-20T17:55:40+00:00","score":3},{"role":"OP","user_id":"anon_29ce562f301b577d","comment_id":"l9ik28a","kind":"comment","text":"Thanks again for a broader piece of feedback. The way I write it is chosen intentionally, though I understand people may want something else. \nRegarding very deep dive into the topic (book size). It is useful for people being long enough in the field and wanting to go deeper into database stuff. But to choose a db for the project you do not need to know that much of nuances of different databases. \nFor long read article - it would be one of tons of already existing common comparisons between NoSQL and SQL solutions, which seasoned developers are already well aware about. \nSo I've chosen a size that is really small, and meant to cut off the hype driven choice. And help people to question their intention to have a scalable database. And i believe it is good to be mindful about what you really want to achieve and then switch to weighting pros and cons for your particular situation.","timestamp":"2024-06-20T20:14:23+00:00","score":0},{"role":"answerer","user_id":"anon_270ad2a6a391e4a6","comment_id":"l9lme02","kind":"comment","text":"I hope my feedback helps you find a way :)\n\nGood luck, thanks for trying. Sorry for having such honest words.","timestamp":"2024-06-21T11:24:36+00:00","score":1},{"role":"OP","user_id":"anon_29ce562f301b577d","comment_id":"l9qygbc","kind":"comment","text":"Really appreciate you for putting these words, thank you 👍I need to find a form of writing that is helpful for the people as well as the right audience that would benefit from what i have to share","timestamp":"2024-06-22T11:14:44+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_29ce562f301b577d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_270ad2a6a391e4a6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"l9hmxo2","thanks_reply_id":"l9hq4hg","post_score":0,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_2ca8e549bd04c83f","answerer_user_id":"anon_885750f165bac35a","subreddit":"programming","timestamp":"2024-09-10T18:20:32+00:00","post_id":"1fdow27","question":"Why I Prefer Exceptions to Error Values","preferred_answer":"> Rust returns std::Result\n\nNot that it *super* matters, but it's `std::result::Result` (missing the extra module there), but since it's in the prelude, you can also refer to it as `Result`.","full_conversation":[{"role":"OP","user_id":"anon_2ca8e549bd04c83f","comment_id":"1fdow27","kind":"post","text":"Why I Prefer Exceptions to Error Values","timestamp":"2024-09-10T18:20:32+00:00","score":252},{"role":"answerer","user_id":"anon_885750f165bac35a","comment_id":"lmhc2oz","kind":"comment","text":"> Rust returns std::Result\n\nNot that it *super* matters, but it's `std::result::Result` (missing the extra module there), but since it's in the prelude, you can also refer to it as `Result`.","timestamp":"2024-09-10T18:52:14+00:00","score":31},{"role":"OP","user_id":"anon_2ca8e549bd04c83f","comment_id":"lmhi25b","kind":"comment","text":"Ah, you're right! Thanks for mentioning it. Should be fixed now.","timestamp":"2024-09-10T19:23:57+00:00","score":11},{"role":"answerer","user_id":"anon_885750f165bac35a","comment_id":"lmhk704","kind":"comment","text":"You're welcome!","timestamp":"2024-09-10T19:35:10+00:00","score":21}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2ca8e549bd04c83f","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_885750f165bac35a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"lmhc2oz","thanks_reply_id":"lmhi25b","post_score":252,"answer_score":31,"preferred_answer_is_top_level":true}} {"user_id":"anon_707b55564d620b09","answerer_user_id":"anon_7ab9cd0b1cbceee6","subreddit":"programming","timestamp":"2024-09-20T17:43:18+00:00","post_id":"1flhwyx","question":"How Sound Works on the NES","preferred_answer":"I am so impressed with this series. Everyone, including myself, is guilty of starting some well meaning series, getting a few posts deep then letting it fall off. I've been watching yours go for quite a while. Well done.\n\nI also like how small and targeted each post is.","full_conversation":[{"role":"OP","user_id":"anon_707b55564d620b09","comment_id":"1flhwyx","kind":"post","text":"How Sound Works on the NES","timestamp":"2024-09-20T17:43:18+00:00","score":57},{"role":"answerer","user_id":"anon_7ab9cd0b1cbceee6","comment_id":"lo39u4a","kind":"comment","text":"I am so impressed with this series. Everyone, including myself, is guilty of starting some well meaning series, getting a few posts deep then letting it fall off. I've been watching yours go for quite a while. Well done.\n\nI also like how small and targeted each post is.","timestamp":"2024-09-20T18:28:52+00:00","score":17},{"role":"OP","user_id":"anon_707b55564d620b09","comment_id":"lo3b85p","kind":"comment","text":"Thank you! Seeing that people enjoy the articles helps motivate me to keep writing.","timestamp":"2024-09-20T18:36:26+00:00","score":8},{"role":"answerer","user_id":"anon_7ab9cd0b1cbceee6","comment_id":"lo3zuls","kind":"comment","text":"Before you, I hadn't delved into NES hardware (except when looking into the software, since you're working fairly close to the metal), just the software. NES is a monument to software hackery. I remember the thrill of learning just about the implications of their palette restrictions.\n\nEach sprite is a 2-bit map. You can define up to 3 colors and the other is always transparent.\n\nResult 1: this is why so many characters/enemies are palette swaps of each other, and why Mario's hills and clouds are the same. No additional sprites -- it's free.\n\nResult 2: If your sprite is always on a black background, you can cheat and use transparent pixels for black. See the famous Zelda 'it's dangerous to go alone' screen. Link has 3 colors; the old man has 4 because one is black. They do this in Final Fantasy too but when you take combat damage, the black background blinks -- so everyone's eyes do too.\n\nMy favorite: Megaman's face uses peach, white, black, (and obv transparent). His body had a different palette which used the same maps but different color palettes for each power. This also meant that his face was actually its own a disembodied sprite hovering over that part of his body, kept in sync with code.\n\nGreat memories.","timestamp":"2024-09-20T20:51:24+00:00","score":2},{"role":"OP","user_id":"anon_707b55564d620b09","comment_id":"lo4ihvt","kind":"comment","text":"Wow, I hadn't thought of the clouds as palette swapped hills before. Very cool.","timestamp":"2024-09-20T22:40:27+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_707b55564d620b09","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7ab9cd0b1cbceee6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"lo39u4a","thanks_reply_id":"lo3b85p","post_score":57,"answer_score":17,"preferred_answer_is_top_level":true}} {"user_id":"anon_fe2fbd69b3967fc9","answerer_user_id":"anon_6ca57393cf10b3b2","subreddit":"programming","timestamp":"2024-09-21T15:29:11+00:00","post_id":"1fm5kq6","question":"Why Good Programmers fail Interview","preferred_answer":"I think some programmers fail interviews because they don't have the soft skills to properly interact with non-programmers.","full_conversation":[{"role":"OP","user_id":"anon_fe2fbd69b3967fc9","comment_id":"1fm5kq6","kind":"post","text":"Why Good Programmers fail Interview","timestamp":"2024-09-21T15:29:11+00:00","score":0},{"role":"answerer","user_id":"anon_6ca57393cf10b3b2","comment_id":"lo8nqdp","kind":"comment","text":"I think some programmers fail interviews because they don't have the soft skills to properly interact with non-programmers.","timestamp":"2024-09-21T17:46:41+00:00","score":12},{"role":"OP","user_id":"anon_fe2fbd69b3967fc9","comment_id":"lo8o43s","kind":"comment","text":"You lack communication but solved the problem then you would have a good chance. \n\nIt's overhyped over communication.","timestamp":"2024-09-21T17:48:40+00:00","score":-9},{"role":"answerer","user_id":"anon_6ca57393cf10b3b2","comment_id":"lo8oxrn","kind":"comment","text":"I wouldn't hire you if you can't communicate.  Without communication you cannot do site visits, work directly with customers or even properly do requirements gathering.  \n\n\nI am not hiring a grunt to lock in a basement and write lines of code.","timestamp":"2024-09-21T17:53:01+00:00","score":10},{"role":"OP","user_id":"anon_fe2fbd69b3967fc9","comment_id":"lo8p6nk","kind":"comment","text":"But software engineers are not meant for that, this is the work of product manager and business side people","timestamp":"2024-09-21T17:54:20+00:00","score":-11},{"role":"answerer","user_id":"anon_6ca57393cf10b3b2","comment_id":"lo8pj6e","kind":"comment","text":"This is dependent on the organization.  In a small org or small team you will inevitably have to do all of these things.","timestamp":"2024-09-21T17:56:15+00:00","score":5},{"role":"OP","user_id":"anon_fe2fbd69b3967fc9","comment_id":"lo8pnot","kind":"comment","text":"True","timestamp":"2024-09-21T17:56:58+00:00","score":0}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_fe2fbd69b3967fc9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6ca57393cf10b3b2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"lo8nqdp","thanks_reply_id":"lo8o43s","post_score":0,"answer_score":12,"preferred_answer_is_top_level":true}} {"user_id":"anon_619db99663979d7e","answerer_user_id":"anon_462def323115ed09","subreddit":"programming","timestamp":"2024-09-24T11:19:45+00:00","post_id":"1foa0p1","question":"Functional vs. Object-Oriented Programming: What’s the Difference?","preferred_answer":"These kinds of articles bother me way too much—they present both paradigms wrong. Like, OOP doesn’t depend on classes, and doesn’t rely on mutable state at all. OOP done right is just as immutable as FP.\n\nI also never understand why OOP gets credit for encapsulation and abstraction. FP just creates abstractions around the computation itself instead of the domain types, although it doesn’t need to avoid domain abstractions. Anyone who’s looking into patterns around Functors and Monads is going to find all the abstraction their heart desires. And you’re never going to find anything that encapsulates data better than a closure.","full_conversation":[{"role":"OP","user_id":"anon_619db99663979d7e","comment_id":"1foa0p1","kind":"post","text":"Functional vs. Object-Oriented Programming: What’s the Difference?","timestamp":"2024-09-24T11:19:45+00:00","score":0},{"role":"answerer","user_id":"anon_462def323115ed09","comment_id":"loobdll","kind":"comment","text":"These kinds of articles bother me way too much—they present both paradigms wrong. Like, OOP doesn’t depend on classes, and doesn’t rely on mutable state at all. OOP done right is just as immutable as FP.\n\nI also never understand why OOP gets credit for encapsulation and abstraction. FP just creates abstractions around the computation itself instead of the domain types, although it doesn’t need to avoid domain abstractions. Anyone who’s looking into patterns around Functors and Monads is going to find all the abstraction their heart desires. And you’re never going to find anything that encapsulates data better than a closure.","timestamp":"2024-09-24T11:40:35+00:00","score":29},{"role":"OP","user_id":"anon_619db99663979d7e","comment_id":"looesrf","kind":"comment","text":"Thank you very much for the feedback, will be much more careful!","timestamp":"2024-09-24T12:06:20+00:00","score":0},{"role":"answerer","user_id":"anon_462def323115ed09","comment_id":"loof6e9","kind":"comment","text":"When I teach this stuff, I start by talking about the design process and how they involve planning with a different mindset—then I connect the common patterns back to that core mindset. My experience is that that order helps students realize how incidental the patterns are and they don’t loose the forest for the trees and think about design patterns as the defining aspect of the paradigm as a whole.","timestamp":"2024-09-24T12:09:08+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_619db99663979d7e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_462def323115ed09","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"loobdll","thanks_reply_id":"looesrf","post_score":0,"answer_score":29,"preferred_answer_is_top_level":true}} {"user_id":"anon_561375f369bf614d","answerer_user_id":"anon_fb2c77f414851c35","subreddit":"programming","timestamp":"2024-10-08T12:01:46+00:00","post_id":"1fyy2b2","question":"Why you should be using Makefiles\n\nHere are some benefits:\n\n🔄 Consistency: Simplifies repetitive tasks by providing a standard way to manage builds and commands across various languages and projects.\n🤖 Automation: Automatically handles the building, running, and cleaning of projects, reducing manual effort.\n🚀 Efficiency: Keeps your project organized and ensures tasks are executed in the correct order, boosting productivity.\n👥 Team Integration: Provides a clear structure for new team members, helping them understand the workflow quickly.\n\nMakefiles can transform how you handle tasks, making your development process smoother and more scalable!\n\n👉 Read more here. Have you used Makefiles in your projects?","preferred_answer":"I´ve been more or less forced to use them in the devops space for years and I hate them with a passion, with their quirks and failure modes. Their inflexibility and old school verbosity and weirdness. \n\nMakefiles are used wrongly for the task of executing shell scripts associated to labels. For that purpose there are so much better tools. And one of them is Just (https://github.com/casey/just). It's almost the same syntax, but without none of the madness. Still has some of the quirks of makefiles to be able to be mostly compatible, but it's leagues ahead of it in not wanting to off yourself when you have to deal with it.\n\nAnother aspect that I hate of Make is the dogma and cult around it from my work colleagues, but that's to be expected in this industry.","full_conversation":[{"role":"OP","user_id":"anon_561375f369bf614d","comment_id":"1fyy2b2","kind":"post","text":"Why you should be using Makefiles\n\nHere are some benefits:\n\n🔄 Consistency: Simplifies repetitive tasks by providing a standard way to manage builds and commands across various languages and projects.\n🤖 Automation: Automatically handles the building, running, and cleaning of projects, reducing manual effort.\n🚀 Efficiency: Keeps your project organized and ensures tasks are executed in the correct order, boosting productivity.\n👥 Team Integration: Provides a clear structure for new team members, helping them understand the workflow quickly.\n\nMakefiles can transform how you handle tasks, making your development process smoother and more scalable!\n\n👉 Read more here. Have you used Makefiles in your projects?","timestamp":"2024-10-08T12:01:46+00:00","score":0},{"role":"answerer","user_id":"anon_fb2c77f414851c35","comment_id":"lqxg11g","kind":"comment","text":"I´ve been more or less forced to use them in the devops space for years and I hate them with a passion, with their quirks and failure modes. Their inflexibility and old school verbosity and weirdness. \n\nMakefiles are used wrongly for the task of executing shell scripts associated to labels. For that purpose there are so much better tools. And one of them is Just (https://github.com/casey/just). It's almost the same syntax, but without none of the madness. Still has some of the quirks of makefiles to be able to be mostly compatible, but it's leagues ahead of it in not wanting to off yourself when you have to deal with it.\n\nAnother aspect that I hate of Make is the dogma and cult around it from my work colleagues, but that's to be expected in this industry.","timestamp":"2024-10-08T12:22:25+00:00","score":16},{"role":"OP","user_id":"anon_561375f369bf614d","comment_id":"lqxgoo8","kind":"comment","text":"Thanks for your comment, I didn’t know about just. \n\nWhile Makefiles may not be perfect, I believe they are sufficient for this particular use case: building and running simple projects.\n\nIf someone needs a more powerful solution, they can always choose Python or other scripting languages.","timestamp":"2024-10-08T12:27:16+00:00","score":-1},{"role":"answerer","user_id":"anon_fb2c77f414851c35","comment_id":"lqxh445","kind":"comment","text":"I didn't intend to be dismissing of your article. Thanks for creating and sharing it, good job :) I may have come out too strongly about what is mostly an opinion. Feelings born mostly out of frustration. But Makefiles certainly can help in managing a project. Specially ones that don't already have good package managers, or to build simple CI pipelines.","timestamp":"2024-10-08T12:30:23+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_561375f369bf614d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_fb2c77f414851c35","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"lqxg11g","thanks_reply_id":"lqxgoo8","post_score":0,"answer_score":16,"preferred_answer_is_top_level":true}} {"user_id":"anon_000f1913fe5b5c63","answerer_user_id":"anon_6d8b6fdb7fba30b8","subreddit":"programming","timestamp":"2024-11-13T11:32:30+00:00","post_id":"1gqaujf","question":"How Distributed Systems Avoid Race Conditions using Pessimistic Locking?","preferred_answer":"Do the ones you see usually have the title as a question, too? You might see more success if this had been titled \"How do...?\" Instead of what it currently is, because it's a statement with a question mark instead of being structured as a question, which is what I usually see in those kinds of articles.","full_conversation":[{"role":"OP","user_id":"anon_000f1913fe5b5c63","comment_id":"1gqaujf","kind":"post","text":"How Distributed Systems Avoid Race Conditions using Pessimistic Locking?","timestamp":"2024-11-13T11:32:30+00:00","score":38},{"role":"answerer","user_id":"anon_6d8b6fdb7fba30b8","comment_id":"lx1e6ix","kind":"comment","text":"Do the ones you see usually have the title as a question, too? You might see more success if this had been titled \"How do...?\" Instead of what it currently is, because it's a statement with a question mark instead of being structured as a question, which is what I usually see in those kinds of articles.","timestamp":"2024-11-14T04:26:21+00:00","score":3},{"role":"OP","user_id":"anon_000f1913fe5b5c63","comment_id":"lx1kkid","kind":"comment","text":"Good feedback. Thanks. I updated the article's title. Unfortunately, edits to Reddit posts are not allowed.","timestamp":"2024-11-14T05:15:50+00:00","score":2},{"role":"answerer","user_id":"anon_6d8b6fdb7fba30b8","comment_id":"lx1pbmx","kind":"comment","text":"Awesome!\n\nAnd yeah haha, that reddit post title issue is one that catches a lot of people - sometimes people get posts removed on subs that require the post title to match the article title.","timestamp":"2024-11-14T05:55:58+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_000f1913fe5b5c63","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6d8b6fdb7fba30b8","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"lx1e6ix","thanks_reply_id":"lx1kkid","post_score":38,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_06f164832666df51","answerer_user_id":"anon_51bd80de40e80dad","subreddit":"programming","timestamp":"2024-11-27T03:57:47+00:00","post_id":"1h0vh2w","question":"Why no one comments their code?\n\nHow the meme of \"clean code has no comments\" became a cancer in software engineering","preferred_answer":"Yes this I totally agree. But that’s why it’s so odd the article was motivated from this. I wonder if an analogy would help:\n\nI want to know why so many A list movie actors are skinny. So I looked at my audition/casting pool and saw people are skinny too! Let me draw conclusions from that.\n\nWell… famous actors are likely rich and can afford dietitians and trainers, and are also paid to stay fit for some roles.\n\nMeanwhile audition pools likely have people struggling to pay rent, often irregular meal schedules running between side gigs, and smoking for stress relief.\n\nTrying to draw conclusions between the two populations would be weird, no?","full_conversation":[{"role":"OP","user_id":"anon_06f164832666df51","comment_id":"1h0vh2w","kind":"post","text":"Why no one comments their code?\n\nHow the meme of \"clean code has no comments\" became a cancer in software engineering","timestamp":"2024-11-27T03:57:47+00:00","score":0},{"role":"answerer","user_id":"anon_51bd80de40e80dad","comment_id":"lz740xe","kind":"comment","text":"Yes this I totally agree. But that’s why it’s so odd the article was motivated from this. I wonder if an analogy would help:\n\nI want to know why so many A list movie actors are skinny. So I looked at my audition/casting pool and saw people are skinny too! Let me draw conclusions from that.\n\nWell… famous actors are likely rich and can afford dietitians and trainers, and are also paid to stay fit for some roles.\n\nMeanwhile audition pools likely have people struggling to pay rent, often irregular meal schedules running between side gigs, and smoking for stress relief.\n\nTrying to draw conclusions between the two populations would be weird, no?","timestamp":"2024-11-27T04:59:26+00:00","score":2},{"role":"OP","user_id":"anon_06f164832666df51","comment_id":"lz74kit","kind":"comment","text":"Thanks for the comment. It makes sense.\n\nI view the intro more as a framing device, in order to get people curious: \"why are people writing no comments\". And if the reader is one of those, than maybe their mind can be changed.\n\nAs to my personal motivation, it's deeper from a broader analysis working with young devs. I do feel \"Clean Code\" has fried their brain and I would like to revert it. Maybe it's only on my bubble and devs are large have their brains intact.","timestamp":"2024-11-27T05:03:44+00:00","score":1},{"role":"answerer","user_id":"anon_51bd80de40e80dad","comment_id":"lz77ttg","kind":"comment","text":"People are writing comments though. That’s why your intro was relevant. It’s the only evidential motivation for anything here. Look on high traffic projects on GitHub. Plenty of comments, docs, tests. That’s why I think the reader might struggle to see which coders and what code you’re referring to. Context matters.","timestamp":"2024-11-27T05:30:24+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_06f164832666df51","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_51bd80de40e80dad","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"lz740xe","thanks_reply_id":"lz74kit","post_score":0,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_766da84f2bcd80d6","answerer_user_id":"anon_c6e4a2e966869e4b","subreddit":"programming","timestamp":"2024-12-03T01:45:52+00:00","post_id":"1h5c3zr","question":"How Freenet handles consistency in a highly distributed system (with interactive illustrations)","preferred_answer":"great visualizations. i am don't have any experience with this stuff but noticed there is a tree structure. is the network actually tree structured? is that root node not a single point of failure type thing?","full_conversation":[{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"1h5c3zr","kind":"post","text":"How Freenet handles consistency in a highly distributed system (with interactive illustrations)","timestamp":"2024-12-03T01:45:52+00:00","score":13},{"role":"answerer","user_id":"anon_c6e4a2e966869e4b","comment_id":"m0526hd","kind":"comment","text":"great visualizations. i am don't have any experience with this stuff but noticed there is a tree structure. is the network actually tree structured? is that root node not a single point of failure type thing?","timestamp":"2024-12-03T02:36:35+00:00","score":3},{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"m053opk","kind":"comment","text":"Thank you!\n\nThe network is not tree structured, but nodes in the network can subscribe to individual contract states and this forms a tree structure for that state. The top of the tree is the closest node to the state but it will be replaced immediately if it fails. \n\nThere is a link to \"small world\" in the doc, follow that for an explanation of the overall network topology (it also has visualizations ;)","timestamp":"2024-12-03T02:45:53+00:00","score":4},{"role":"answerer","user_id":"anon_c6e4a2e966869e4b","comment_id":"m054jd6","kind":"comment","text":"thanks, i had read that sentence in the post itself but didnt fully grok it. is it sort of like a minimum spanning tree?","timestamp":"2024-12-03T02:51:08+00:00","score":1},{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"m055l9m","kind":"comment","text":"Well, it's a tree - not sure if there is a direct connection to MSTs.","timestamp":"2024-12-03T02:57:36+00:00","score":1},{"role":"answerer","user_id":"anon_c6e4a2e966869e4b","comment_id":"m055xxr","kind":"comment","text":"gotcha. i am just throwing out silly jargon i have heard like minimum spanning tree, but the point is taken that you can induce a tree from a graph structure!","timestamp":"2024-12-03T02:59:48+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_766da84f2bcd80d6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c6e4a2e966869e4b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"m0526hd","thanks_reply_id":"m053opk","post_score":13,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_c2824fa898550343","answerer_user_id":"anon_1774bd7450bdae51","subreddit":"programming","timestamp":"2024-12-23T02:01:00+00:00","post_id":"1hkdion","question":"Is programming still the profession of the future?\n\nI'm 14 years old and I love programming, obviously I have a lot to learn, but is it worth continuing to invest in programming, isn't it too saturated?","preferred_answer":"Every profession is both simultaneously too saturated and too empty. They're always talking about a labor shortage, but also about how it's overcrowded.\n\nThere's multiple economic cycles that overlap, and no one cycle fully explains it.\n\nYou have the 2010-2020 boom. Killer times to be a programmer. But I only finished school and got a programming job right towards the end of it -- and COVID messed with everything.\n\nSo you have years of people being pushed to go into CS. But with ever rising pay, too. Causing even more people to go into it, even if they don't care about programming or even never care to learn.\n\nYou also have a cycle of interest rates. Interest rates and tax favor ability meant that tons of VC investment occurred, tons and tons in software development. Jobs and money. Even for so many things that wouldn't create a profit. Often obviously so.\n\nThere's also a cycle of offshoring. That is, e.g. US devs being fired in favor of e.g. Indian devs. Often for the same e.g. 5 WITCH companies (that's an acronym of 5 big Indian companies known for this). Where execs hear the promise of drastically reduced dev and IT prices, by firing US employees and hiring contractors that work in India, that can be massively cheaper.\n\nBut then they realize that even if you can get by the timezone communication issues, the incentive issue (contractors not being the company owning the work, so they don't care, and actually want to increase prices), culture and other communication issues, and the informational transfer issues (quickly forcefully transferring over easily lost institutional knowledge), you still have another big problem. If those devs working at those companies were any good, they'd work for a company that paid more and charged more. That is, the same price as US devs.\n\nAnd so the company wastes billions of dollars, loses tons of unwritten knowledge, and loses their competitive edge by handing all that knowledge to a different company and different country. And gets a non-working product, sometimes never even launched.\n\nSo then jobs get moved back.\n\nThat's three cycles: hype, interest rates, and offshoring. And right now they're all converged in a way that makes things crappy for existing devs.\n\nIn 2021 you had good interest rates, not as much offshoring yet, and tons of hype.\n\nBut then companies though, \"if our employees can work remote in the US, why can't we have remote employees in India, South America, Eastern Europe, or the Philippines?\" That is, cheap places of living with enough education to have some dev base to hire remotely. So fire employees and hire them. If devs were identical that's massive cost savings.\n\nAnd then we had interest rates increase. Essentially, companies couldn't throw money around as much on long shots or things that wouldn't make a profit. Companies couldn't just hire devs to have numbers under them and maybe get something out of it, and keep those smart devs out of competitor's hands. They had to be *worth* it. And if they laid people off, they could rehire them all across the different companies but lay less in total. Because the devs were desperate and ok with lower pay, due to the layoffs.\n\nAnd particularly recently, the last two years, the hype has been different. It's not been devs creating the Internet or smartphones or the cloud or crypto. It's AI. AI that creates text, like a human wrote it. For super cheap, vs hiring a human. And paying the humans is the most expensive part of a business.\n\nSo what if we replaced all the developers with AI? After all, that's what devs do all day, type text write? (Nevermind communicating with users and figuring out the design and typing the right thing, with there not really being one right answer.) So fire them all and replace them with AI. What do you mean our feature development rate has gone down?\n\nSo 2024 has been ass.\n\nMaybe things will get better. Lower interest rates and companies needing to produce something instead of starving themselves. AI not delivering on its promises and so devs must be hired. Outsourced devs being worse and ultimately too expensive vs just having local devs.\n\nMaybe some of things get better instead of all.\n\nOr maybe they don't. Maybe AI can let companies have 10% devs for the same output and quality. Maybe we enter stagflation with high interest and high inflation, with a depression with high unemployment and few open positions, especially for junior devs. Maybe big drivers of new value aren't stuff that devs produce.\n\nOr maybe it does get bad but gets reasonable in a few years, when you'd enter the job market. It was bad to graduate college and enter the job market in the 2008 recession. But leave just as we came out of it and you would've made bank during the 2010s.\n\nThe future is unknown. Ultimately, you need flexibility at your age. And even through college, even having picked some major. Being able to adjust to the conditions of reality is super important.\n\nAssuming AI can't replace development anytime soon, I still the software development is a good idea. It's a hyper scale job. You create so much money very quickly for very little expense. Jobs like doctors are super valuable but way more work and stress, and aren't hyperscale. Same with lawyers.\n\nSo I recommend being good across all your classes. But it's also fine to follow an interest. Remember, passion and interest comes from time spent, not vice versa. Find something that's interesting enough that isn't too dangerous money-wise -- e.g. you don't want to rely on music or writing as your only ability. But don't force yourself to do what you hate. Follow the specifically interesting bits and you can get far, and expand your ability.\n\nBut don't focus too hard on future money making either. You also need to stay mentally sane. Life shouldn't be about the pursuit of money, as much as it forces you to.\n\nDon't put your eggs in one basket. Don't put your self worth in one basket either.\n\nAs a dev with a job, make sure to be a person who can communicate and work in a team. While it is real nice to have a coworker who can actually understand and write code and navigate computers, you need to be a pleasant person to be around. And you've gotta be able to navigate bosses.\n\nIt sucks, but even in a world without scarcity and money and politics, software is ultimately to help people with something. So you gotta focus on people. No matter that many of us entered this field to not talk to people.\n\nGood luck. I hope this helped.","full_conversation":[{"role":"OP","user_id":"anon_c2824fa898550343","comment_id":"1hkdion","kind":"post","text":"Is programming still the profession of the future?\n\nI'm 14 years old and I love programming, obviously I have a lot to learn, but is it worth continuing to invest in programming, isn't it too saturated?","timestamp":"2024-12-23T02:01:00+00:00","score":0},{"role":"answerer","user_id":"anon_1774bd7450bdae51","comment_id":"m3dqmw4","kind":"comment","text":"Every profession is both simultaneously too saturated and too empty. They're always talking about a labor shortage, but also about how it's overcrowded.\n\nThere's multiple economic cycles that overlap, and no one cycle fully explains it.\n\nYou have the 2010-2020 boom. Killer times to be a programmer. But I only finished school and got a programming job right towards the end of it -- and COVID messed with everything.\n\nSo you have years of people being pushed to go into CS. But with ever rising pay, too. Causing even more people to go into it, even if they don't care about programming or even never care to learn.\n\nYou also have a cycle of interest rates. Interest rates and tax favor ability meant that tons of VC investment occurred, tons and tons in software development. Jobs and money. Even for so many things that wouldn't create a profit. Often obviously so.\n\nThere's also a cycle of offshoring. That is, e.g. US devs being fired in favor of e.g. Indian devs. Often for the same e.g. 5 WITCH companies (that's an acronym of 5 big Indian companies known for this). Where execs hear the promise of drastically reduced dev and IT prices, by firing US employees and hiring contractors that work in India, that can be massively cheaper.\n\nBut then they realize that even if you can get by the timezone communication issues, the incentive issue (contractors not being the company owning the work, so they don't care, and actually want to increase prices), culture and other communication issues, and the informational transfer issues (quickly forcefully transferring over easily lost institutional knowledge), you still have another big problem. If those devs working at those companies were any good, they'd work for a company that paid more and charged more. That is, the same price as US devs.\n\nAnd so the company wastes billions of dollars, loses tons of unwritten knowledge, and loses their competitive edge by handing all that knowledge to a different company and different country. And gets a non-working product, sometimes never even launched.\n\nSo then jobs get moved back.\n\nThat's three cycles: hype, interest rates, and offshoring. And right now they're all converged in a way that makes things crappy for existing devs.\n\nIn 2021 you had good interest rates, not as much offshoring yet, and tons of hype.\n\nBut then companies though, \"if our employees can work remote in the US, why can't we have remote employees in India, South America, Eastern Europe, or the Philippines?\" That is, cheap places of living with enough education to have some dev base to hire remotely. So fire employees and hire them. If devs were identical that's massive cost savings.\n\nAnd then we had interest rates increase. Essentially, companies couldn't throw money around as much on long shots or things that wouldn't make a profit. Companies couldn't just hire devs to have numbers under them and maybe get something out of it, and keep those smart devs out of competitor's hands. They had to be *worth* it. And if they laid people off, they could rehire them all across the different companies but lay less in total. Because the devs were desperate and ok with lower pay, due to the layoffs.\n\nAnd particularly recently, the last two years, the hype has been different. It's not been devs creating the Internet or smartphones or the cloud or crypto. It's AI. AI that creates text, like a human wrote it. For super cheap, vs hiring a human. And paying the humans is the most expensive part of a business.\n\nSo what if we replaced all the developers with AI? After all, that's what devs do all day, type text write? (Nevermind communicating with users and figuring out the design and typing the right thing, with there not really being one right answer.) So fire them all and replace them with AI. What do you mean our feature development rate has gone down?\n\nSo 2024 has been ass.\n\nMaybe things will get better. Lower interest rates and companies needing to produce something instead of starving themselves. AI not delivering on its promises and so devs must be hired. Outsourced devs being worse and ultimately too expensive vs just having local devs.\n\nMaybe some of things get better instead of all.\n\nOr maybe they don't. Maybe AI can let companies have 10% devs for the same output and quality. Maybe we enter stagflation with high interest and high inflation, with a depression with high unemployment and few open positions, especially for junior devs. Maybe big drivers of new value aren't stuff that devs produce.\n\nOr maybe it does get bad but gets reasonable in a few years, when you'd enter the job market. It was bad to graduate college and enter the job market in the 2008 recession. But leave just as we came out of it and you would've made bank during the 2010s.\n\nThe future is unknown. Ultimately, you need flexibility at your age. And even through college, even having picked some major. Being able to adjust to the conditions of reality is super important.\n\nAssuming AI can't replace development anytime soon, I still the software development is a good idea. It's a hyper scale job. You create so much money very quickly for very little expense. Jobs like doctors are super valuable but way more work and stress, and aren't hyperscale. Same with lawyers.\n\nSo I recommend being good across all your classes. But it's also fine to follow an interest. Remember, passion and interest comes from time spent, not vice versa. Find something that's interesting enough that isn't too dangerous money-wise -- e.g. you don't want to rely on music or writing as your only ability. But don't force yourself to do what you hate. Follow the specifically interesting bits and you can get far, and expand your ability.\n\nBut don't focus too hard on future money making either. You also need to stay mentally sane. Life shouldn't be about the pursuit of money, as much as it forces you to.\n\nDon't put your eggs in one basket. Don't put your self worth in one basket either.\n\nAs a dev with a job, make sure to be a person who can communicate and work in a team. While it is real nice to have a coworker who can actually understand and write code and navigate computers, you need to be a pleasant person to be around. And you've gotta be able to navigate bosses.\n\nIt sucks, but even in a world without scarcity and money and politics, software is ultimately to help people with something. So you gotta focus on people. No matter that many of us entered this field to not talk to people.\n\nGood luck. I hope this helped.","timestamp":"2024-12-23T02:46:00+00:00","score":11},{"role":"OP","user_id":"anon_c2824fa898550343","comment_id":"m3drtg8","kind":"comment","text":"Wow, thanks for this whole text, I spent a while reading it, but it was worth it, I really want to pursue computer science, and thanks for the tips. Regarding AI replacing programmers and such, I don't think it will replace it anytime soon, but it is definitely already removing the need for people in different roles, not eliminating it, but reducing it.","timestamp":"2024-12-23T02:54:05+00:00","score":1},{"role":"answerer","user_id":"anon_1774bd7450bdae51","comment_id":"m3dwa8h","kind":"comment","text":"In my personal experience, any time I actually use AI to try and help with my dev work or anything else, it's never actually helpful and always a waste of time. E.g. I ask a programming question and it just spits out what I entered in, phrased as an answer.\n\nThe biggest actual usecase and \"value\" generation is spam. Or, to put it differently, cheap and quick creation of human-like content.\n\nLLMs are an evolution of text auto complete, to the point where they pass the turing text. But they're ultimately like the language part of your brain alone, and not any of the rest.\n\nThat is, you know how when you're tired, you can talk/write and you just produce nonsense? Or produce something with some thoughts in it, but not much? Just blabber that could have meaning, but if you think about it, really doesn't?\n\nThat's what LLMs are. Our brain's ability to think and do logic and what not is completely separate from the language part. And the language part can go far without having many ideas to actually communicate.\n\nLikewise with image and audio generation. Though audio is more limited in scope, with voices especially, so fake voices are especially convincing. And doesn't have as much idea space to communicate, so it's more obviously useful. But notice how there's not much in terms of really all the complexity in emotion and other physical bits that go with speaking and audio gen. It's just text, mostly.\n\nAnd images make something out of very little, but require a lot to be right. And even more so with video.\n\nBut it's all around copying the medium itself on the surface level. There's not much additional idea production and connection occurring. Some, because all inherently ideas. But mostly in looking like the thing it's trained on.\n\nPoint being, we now have a way to cheaply generate human looking context with no actual meaning/ideas embedded into it.\n\nPerfect for spam bots. Perfect for some corporate art. Perfect for text no one will read but other bots. Or perfect if the content doesn't matter, only that it looks like there's something there.\n\nPerfect for causing difficulty in combing through real creations. Because you still need a human to think on the idea to check, and that's harder than a human doing a turing test on the content.\n\nSo it isn't actually replacing too much, afaik. But it does mean many people get fired because people *think* it can replace the work. Or that the value of that work mostly was only in that there was anything at all. Or maybe that it's more profitable to fire people and let the thing crumble, with AI merely preventing immediate crumble.\n\nOr maybe it's the same workers doing a greater amount of work with some amount of lower quality.\n\nRealistically it's all of these, just depends on the situation.\n\nBut will this hold in the future? Idk. We're in a worse state than we were before with this information. Figuring out what was real was always possible, and the level of human output was never too high. Now? Impossible to comb through. And any AI used to make it easier to spot AI can then be used to generate more realistic looking content.\n\nAnd consuming content that an AI wrote is ridiculous, at least right now. Nothing there communicating an idea. Just words and images that look like they mean something at first glance.\n\nBut it's cheap and makes money. Pandora's box has been opened.\n\nMeanwhile, the work we wanted to replace was the physical work, the work that injuries people, the real bottlenecks of society. Not art and communication.","timestamp":"2024-12-23T03:25:44+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_c2824fa898550343","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1774bd7450bdae51","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"m3dqmw4","thanks_reply_id":"m3drtg8","post_score":0,"answer_score":11,"preferred_answer_is_top_level":true}} {"user_id":"anon_295b13af01c77214","answerer_user_id":"anon_27fe32615ff3baf6","subreddit":"programming","timestamp":"2024-12-28T09:28:52+00:00","post_id":"1ho29ue","question":"What I learned in my 4 years of open source development.","preferred_answer":"Protip: [LanguageTool](https://languagetool.org/services#browsers) provides good spellchecking for your browser (been using it since 2018 - it's been good since then).","full_conversation":[{"role":"OP","user_id":"anon_295b13af01c77214","comment_id":"1ho29ue","kind":"post","text":"What I learned in my 4 years of open source development.","timestamp":"2024-12-28T09:28:52+00:00","score":137},{"role":"answerer","user_id":"anon_27fe32615ff3baf6","comment_id":"m46yn24","kind":"comment","text":"Protip: [LanguageTool](https://languagetool.org/services#browsers) provides good spellchecking for your browser (been using it since 2018 - it's been good since then).","timestamp":"2024-12-28T14:04:49+00:00","score":2},{"role":"OP","user_id":"anon_295b13af01c77214","comment_id":"m46zyub","kind":"comment","text":"Thank you","timestamp":"2024-12-28T14:14:31+00:00","score":1},{"role":"answerer","user_id":"anon_27fe32615ff3baf6","comment_id":"m4f0lpw","kind":"comment","text":"RE: `learnt` - I was wrong! It's actually British vs American English. Since you're British, `learnt` is A-OK!","timestamp":"2024-12-29T21:20:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_295b13af01c77214","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_27fe32615ff3baf6","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"m46yn24","thanks_reply_id":"m46zyub","post_score":137,"answer_score":2,"preferred_answer_is_top_level":false}} {"user_id":"anon_6debf5b03f98127b","answerer_user_id":"anon_d37e13bafebb2f1d","subreddit":"programming","timestamp":"2025-01-04T23:27:44+00:00","post_id":"1htrk6o","question":"Docker on MacOS is still slow ?","preferred_answer":"Why isn't OrbStack (https://orbstack.dev) included? It's supposed to mop the floor with Docker For Desktop.","full_conversation":[{"role":"OP","user_id":"anon_6debf5b03f98127b","comment_id":"1htrk6o","kind":"post","text":"Docker on MacOS is still slow ?","timestamp":"2025-01-04T23:27:44+00:00","score":365},{"role":"answerer","user_id":"anon_d37e13bafebb2f1d","comment_id":"m5fnd97","kind":"comment","text":"Why isn't OrbStack (https://orbstack.dev) included? It's supposed to mop the floor with Docker For Desktop.","timestamp":"2025-01-04T23:36:39+00:00","score":128},{"role":"OP","user_id":"anon_6debf5b03f98127b","comment_id":"m5fo4qv","kind":"comment","text":"Thanks for your comment! I've used what was tested two years ago, plus an open-source project, Lima. I have never used Orbstack, but if it's worth it, I can update the article with this in the next few days.","timestamp":"2025-01-04T23:41:03+00:00","score":45},{"role":"answerer","user_id":"anon_d37e13bafebb2f1d","comment_id":"m5fotzk","kind":"comment","text":"Totally fair, those tests must take quite a bit of time to set up, I just wanted to mention OrbStack because I'm using it for my personal projects and only have good things to say about it so far, including that it feels pretty fast compared to DFD, it would be nice to put real numbers on that impression :)","timestamp":"2025-01-04T23:45:04+00:00","score":27},{"role":"OP","user_id":"anon_6debf5b03f98127b","comment_id":"m5fp9so","kind":"comment","text":"I’ll do it and I’ll keep you posted.","timestamp":"2025-01-04T23:47:34+00:00","score":19}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_6debf5b03f98127b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_d37e13bafebb2f1d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"m5fnd97","thanks_reply_id":"m5fo4qv","post_score":365,"answer_score":128,"preferred_answer_is_top_level":true}} {"user_id":"anon_026d850c54c30c6a","answerer_user_id":"anon_877ab04470a8f749","subreddit":"programming","timestamp":"2025-01-26T10:17:03+00:00","post_id":"1iaazm7","question":"🔒 What's OAuth2, anyway?","preferred_answer":"I'd say this is a good article covering the detail of the source material. \n\nHaving spent the last two years establishing good OAuth2 practices at my company; I feel a bit sad that on the old days we'd just throw up user name and password auth in exchange for a session token and be done with it. \n\nTrying to pick up OAuth2 from scratch can be mind bogglingly complex in itself before you get to other project requirements.","full_conversation":[{"role":"OP","user_id":"anon_026d850c54c30c6a","comment_id":"1iaazm7","kind":"post","text":"🔒 What's OAuth2, anyway?","timestamp":"2025-01-26T10:17:03+00:00","score":223},{"role":"answerer","user_id":"anon_877ab04470a8f749","comment_id":"m991bji","kind":"comment","text":"I'd say this is a good article covering the detail of the source material. \n\nHaving spent the last two years establishing good OAuth2 practices at my company; I feel a bit sad that on the old days we'd just throw up user name and password auth in exchange for a session token and be done with it. \n\nTrying to pick up OAuth2 from scratch can be mind bogglingly complex in itself before you get to other project requirements.","timestamp":"2025-01-26T11:26:40+00:00","score":116},{"role":"OP","user_id":"anon_026d850c54c30c6a","comment_id":"m991nor","kind":"comment","text":"u/Markavian thank you for giving it a look!\n\nCurious to hear more about your experience adopting OAuth2 👀 Does your company provide a resource server & authorization server for other parties to use?","timestamp":"2025-01-26T11:29:54+00:00","score":27},{"role":"answerer","user_id":"anon_877ab04470a8f749","comment_id":"m992azv","kind":"comment","text":"Sure, some more details: I've been building out a control plane for internal employees, and an external portal for customers.\n\nBecause we support Dev / UAT / Prod environments, we set up equivalent OAuth servers branded as \"CompanyName Identity\".\n\nOur customers can register their own SSO credentials via our portal, so that they can login their own users.\n\nInternally, the Employee Auth maps to our desktop login provider, so it's basically password less SSO.\n\nTo my stakeholders; I sold it as \"gold standard security for our business\", and with third-party SSO support, \"a maturation point for our product and as a company\" - there were multi-million $ constracts on the line that we couldn't win without OAuth support built in to our product.\n\nSo not easy to plan and implement, but we're there now as a business, and the dev team have had plenty of training.","timestamp":"2025-01-26T11:36:08+00:00","score":23},{"role":"OP","user_id":"anon_026d850c54c30c6a","comment_id":"m993fmn","kind":"comment","text":"u/Markavian sounds like an exciting and impactful project 💪 Congratulations on getting that done!\n\nA few more questions if you can talk about this:\n\n* What did you end up using as the authoritzation server? Did you take one of the OSS servers or implemented a custom one?\n* I'm curious how SSO providers were married with OAuth2? I have never had a change to integrate with SSO like OKTA.","timestamp":"2025-01-26T11:46:55+00:00","score":6}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_026d850c54c30c6a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_877ab04470a8f749","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"m991bji","thanks_reply_id":"m991nor","post_score":223,"answer_score":116,"preferred_answer_is_top_level":true}} {"user_id":"anon_a5c175c5d2b04288","answerer_user_id":"anon_70138f8ed228ae2a","subreddit":"programming","timestamp":"2025-02-14T11:20:22+00:00","post_id":"1ip8es7","question":"Why the Importance of Diversity in Tech Can’t Be Ignored","preferred_answer":"I love the stupid people looking over the fence image socialists use when they want to pitch equity. It pretends that all you are doing is giving the less fortunate a step stool out of thin air. It takes no account for where it came from. Reality is you dig a hole under the tall guy and force him to stand on it so you can give the dirt to the small one. Worst part is, your only judgement on who gets a hole dig under them is what their skin color is, what genitals you have, or who they like to put said genitals in. Things that no one can control and not merit based\n\nCongrats, you’ve managed to be racist, sexist and make your whole company dumber in the process. \n\nDei needs to die.","full_conversation":[{"role":"OP","user_id":"anon_a5c175c5d2b04288","comment_id":"1ip8es7","kind":"post","text":"Why the Importance of Diversity in Tech Can’t Be Ignored","timestamp":"2025-02-14T11:20:22+00:00","score":0},{"role":"answerer","user_id":"anon_70138f8ed228ae2a","comment_id":"mcpsh64","kind":"comment","text":"I love the stupid people looking over the fence image socialists use when they want to pitch equity. It pretends that all you are doing is giving the less fortunate a step stool out of thin air. It takes no account for where it came from. Reality is you dig a hole under the tall guy and force him to stand on it so you can give the dirt to the small one. Worst part is, your only judgement on who gets a hole dig under them is what their skin color is, what genitals you have, or who they like to put said genitals in. Things that no one can control and not merit based\n\nCongrats, you’ve managed to be racist, sexist and make your whole company dumber in the process. \n\nDei needs to die.","timestamp":"2025-02-14T11:44:02+00:00","score":18},{"role":"OP","user_id":"anon_a5c175c5d2b04288","comment_id":"mcq9c9y","kind":"comment","text":"I appreciate your view on equity. It can be really difficult to give up something that you have worked hard for and have earned to give to someone else that may not \"deserve\" it.\n\n\nI would be interested in your perspective on the actions we could take to be an ally in the workspace. Are there any of those in that section that you disagree with or have arguments against?","timestamp":"2025-02-14T13:45:48+00:00","score":-4},{"role":"answerer","user_id":"anon_70138f8ed228ae2a","comment_id":"mcqxwzp","kind":"comment","text":"Being an \"Ally in the workspace\" is inherently the issue. By definition, it means that just because of someones race, ethnicity, gender, etc they need you as an ally because they can't do it without your help. If you do this you are pushing your predjudice onto others assuming we all only see things through this same shallow lense. We don't, we don't care who you sleep or what you look like. You are a name on slack and a voice in huddles.","timestamp":"2025-02-14T15:59:24+00:00","score":7}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a5c175c5d2b04288","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_70138f8ed228ae2a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mcpsh64","thanks_reply_id":"mcq9c9y","post_score":0,"answer_score":18,"preferred_answer_is_top_level":true}} {"user_id":"anon_456374762f4bda89","answerer_user_id":"anon_2d19afe6b0bd2883","subreddit":"programming","timestamp":"2025-02-28T15:56:09+00:00","post_id":"1j0ax3p","question":"How To Nest Ternaries","preferred_answer":"My best advice on how to nest ternaries... Try to avoid it altogether. I lean heavily in favor of [\"avoid the else\"](https://williamdurand.fr/2013/06/03/object-calisthenics/#2-dont-use-the-else-keyword). How does that work? Let's use your examples.\n\nLet's look at the first one...\n\n int result = 0;\n if (cond1) {\n if (cond2) {\n result = 2;\n } else {\n result = 10;\n }\n }\n\nNot too difficult to avoid the `else` and a ternary...\n\n int result = 10;\n if (cond1 && cond2) {\n result = 2;\n }\n\nThis now reads as \"My result is 10. If X and Y are true, my result is 2 instead.\"\n\nThe last example is an interesting one.\n\n int result = 0;\n if (cond1) {\n if (cond2) {\n result = 2;\n } else {\n result = 10;\n }\n } else {\n if (cond2) {\n result = 50; // Blog post has a typo and omits the = here...\n } else {\n result = 80;\n }\n }\n\nThe first example had a clear starting result of 10. Here, you could use either 10 or 80. Let's use 80 to be different.\n\n int result = 80;\n if (cond1 && cond2) {\n result = 2;\n }\n if (cond1) {\n result = 10;\n }\n if (cond2) {\n result = 50;\n }\n\nNo nesting of either ternaries or `else`. Easy to read and edit for the next dev or future you who hasn't looked at this code in months.","full_conversation":[{"role":"OP","user_id":"anon_456374762f4bda89","comment_id":"1j0ax3p","kind":"post","text":"How To Nest Ternaries","timestamp":"2025-02-28T15:56:09+00:00","score":0},{"role":"answerer","user_id":"anon_2d19afe6b0bd2883","comment_id":"mfcmumu","kind":"comment","text":"My best advice on how to nest ternaries... Try to avoid it altogether. I lean heavily in favor of [\"avoid the else\"](https://williamdurand.fr/2013/06/03/object-calisthenics/#2-dont-use-the-else-keyword). How does that work? Let's use your examples.\n\nLet's look at the first one...\n\n int result = 0;\n if (cond1) {\n if (cond2) {\n result = 2;\n } else {\n result = 10;\n }\n }\n\nNot too difficult to avoid the `else` and a ternary...\n\n int result = 10;\n if (cond1 && cond2) {\n result = 2;\n }\n\nThis now reads as \"My result is 10. If X and Y are true, my result is 2 instead.\"\n\nThe last example is an interesting one.\n\n int result = 0;\n if (cond1) {\n if (cond2) {\n result = 2;\n } else {\n result = 10;\n }\n } else {\n if (cond2) {\n result = 50; // Blog post has a typo and omits the = here...\n } else {\n result = 80;\n }\n }\n\nThe first example had a clear starting result of 10. Here, you could use either 10 or 80. Let's use 80 to be different.\n\n int result = 80;\n if (cond1 && cond2) {\n result = 2;\n }\n if (cond1) {\n result = 10;\n }\n if (cond2) {\n result = 50;\n }\n\nNo nesting of either ternaries or `else`. Easy to read and edit for the next dev or future you who hasn't looked at this code in months.","timestamp":"2025-03-01T00:30:40+00:00","score":1},{"role":"OP","user_id":"anon_456374762f4bda89","comment_id":"mff3qs9","kind":"comment","text":"I fixed the typo thanks. \nIn your last example, the one that fixes the nesting on both side of the first branch, your solution will never reach 2. Both 10 and 50 overwrite it. You'll need an else on those","timestamp":"2025-03-01T12:07:39+00:00","score":1},{"role":"answerer","user_id":"anon_2d19afe6b0bd2883","comment_id":"mffhqnt","kind":"comment","text":"True but fixable by reordering the blocks. Still can avoid the else. To each their own. I've found thinking through avoiding else, nested ternaries, etc. a useful exercise to write better code through the years. YMMV","timestamp":"2025-03-01T13:50:05+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_456374762f4bda89","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_2d19afe6b0bd2883","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mfcmumu","thanks_reply_id":"mff3qs9","post_score":0,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_237c3bcf6e130eb9","answerer_user_id":"anon_a4a84f5584015514","subreddit":"programming","timestamp":"2025-03-07T13:35:42+00:00","post_id":"1j5nvm5","question":"How to Write Useful Commit Messages","preferred_answer":"Sorry, but your Usefuly Commit Message is actually a very, very BAD one in my book. \n\nNo commit message should take 20 lines! \n\nA good, useful commit message should pack the **most necessary information** into as **little text as possible**. \n\nNobody has time to read through your wall of text.","full_conversation":[{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"1j5nvm5","kind":"post","text":"How to Write Useful Commit Messages","timestamp":"2025-03-07T13:35:42+00:00","score":32},{"role":"answerer","user_id":"anon_a4a84f5584015514","comment_id":"mgmm7hv","kind":"comment","text":"Sorry, but your Usefuly Commit Message is actually a very, very BAD one in my book. \n\nNo commit message should take 20 lines! \n\nA good, useful commit message should pack the **most necessary information** into as **little text as possible**. \n\nNobody has time to read through your wall of text.","timestamp":"2025-03-08T03:28:33+00:00","score":4},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"mgo08jo","kind":"comment","text":"Thanks for reading!\n\nWhich parts of the example commit message do you think should be removed/shortened?","timestamp":"2025-03-08T11:03:45+00:00","score":1},{"role":"answerer","user_id":"anon_a4a84f5584015514","comment_id":"mgpf0xh","kind":"comment","text":"Useful comment would be \nAbsolutely minimal one:\n> When deleting posts, delete associated comments","timestamp":"2025-03-08T16:37:49+00:00","score":0},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"mgptbyq","kind":"comment","text":"> Absolutely minimal one:\n> \n> When deleting posts, delete associated comments\n\nBut then it leaves out the details about the database migrations and foreign key, both of which are important to the commit.\n\n>If you really want all the rest of the information - add ticket number to the bug/ discussion\n\nWhy is it better to capture that information in the bug tracker rather than the code itself? The commit message is closer to the code and persists even if you switch git hosting vendors, whereas if you switch bug trackers, you likely will break all historical ticket links in your source history.\n\n>should never be present in the commit message even if you want to be as verbose as possible since all this information is contained in the commit itself - the only thing it does is create possibility of discrepancies/bugs if reader decides to look at the message and not the actual code.\n\nWhy should the commit message not summarize the effects of the commit? If you want to avoid duplicating information that's discoverable from the code, should most commit messages just be blank?\n\nIt seems like your disagreement is about [the purpose of a commit message](https://refactoringenglish.com/chapters/commit-messages/#whats-the-point-of-a-commit-message).","timestamp":"2025-03-08T17:51:26+00:00","score":1},{"role":"answerer","user_id":"anon_a4a84f5584015514","comment_id":"mgswbn4","kind":"comment","text":"How do you use commit messages? \nYou see HUNDREDS of them at the same time and look for one that you need. \nLogic behind why the commit is not relevant to their usage. \n> Why is it better to capture that information in the bug tracker rather than the code itself?\n\nBecause those can be as verbose as possible - having multiple attachments, scientific papers, reddit discussions, etc.\n\n> Why should the commit message not summarize the effects of the commit?\n\nBecause you risk having message say A while the actual effects of the commit are completely opposite B.","timestamp":"2025-03-09T04:29:08+00:00","score":0}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_237c3bcf6e130eb9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a4a84f5584015514","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mgmm7hv","thanks_reply_id":"mgo08jo","post_score":32,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_2f98d58f83f58fee","answerer_user_id":"anon_7c893c3ab93627d2","subreddit":"programming","timestamp":"2025-03-31T06:49:48+00:00","post_id":"1jnx6uh","question":"To run Llama 3.1-8B-instruct model on a local CPU with 4 GB ram without quantization. By Loading and Running a LLaMA Model on CPU with Disk-based Layer Loading.\n\nI am trying to run 3.1 8B llama instruct model [https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) on a 4GB ram laptop. The idea I'm using is to load and run one layer at a time. \nI have a class. \nIt initializes key components of the LLaMA architecture: \nLlamaTokenEmbed: Handles token embeddings. \nLlamaLayer: Represents a transformer block. \nLlamaFinalLayerNorm: Normalizes the output before final predictions. \nLlamaFinalLayerHead: Generates final token probabilities.\n\nRunning Inference (run method) \nIt processes the tokens through the embedding layer. \nThen, it iterates over 32 transformer layers (LlamaLayer) by Loading the corresponding layer weights from disk. Runs the layer on the input tensor x. \nAfter all layers are processed, the final normalization and output head compute the final model output. \nHere's the code\n\n     \n class LlamaCpuDiskRun():\n     def __init__(self,config):\n         self.config = config\n         self.freqs_complex = precompute_theta_pos_frequencies(self.config.dim // self.config.n_heads, self.config.max_position_embeddings * 2, device = self.config.device)\n         self.llamatoken = LlamaTokenEmbed(self.config)\n         self.llamalayer = LlamaLayer(self.config,self.freqs_complex)\n         self.llamafinalnorm = LlamaFinalLayerNorm(self.config)\n         self.llamafinallmhead = LlamaFinalLayerHead(self.config)\n         prev_time = time.time()\n         self.llamatoken.load_state_dict(load_file(config.model_dir + \"/separated_weights/embed_tokens.safetensors\"), strict=True)\n         print(time.time() - prev_time)\n         self.llamafinalnorm.load_state_dict(load_file(config.model_dir + \"/separated_weights/norm.safetensors\"), strict=True)\n         self.llamafinallmhead.load_state_dict(load_file(config.model_dir + \"/separated_weights/lm_head.safetensors\"), strict=True)\n \n     def run(self,tokens : torch.Tensor, curr_pos: int):\n         total_time = time.time()\n         x = self.llamatoken(tokens)\n         layer_time_avg = 0\n         layer_load_t_avg = 0\n         for i in range(0,32):\n             print(f\"layer{i}\")\n             prev_time = time.time()\n             self.llamalayer.load_state_dict(load_file(self.config.model_dir + f\"/separated_weights/layers{i}.safetensors\"), strict=True)\n             t = time.time() - prev_time\n             layer_load_t_avg += t\n             print(t)\n             prev_time = time.time()\n             x = self.llamalayer(x,curr_pos)\n             t = time.time() - prev_time\n             layer_time_avg += t\n             print(t)\n         print(\"final layers\")\n         prev_time = time.time()\n         x = self.llamafinallmhead(self.llamafinalnorm(x))\n         print(time.time() - prev_time)\n         print(x.shape)\n         print(\"total time\")\n         print(time.time() - total_time)\n         print(f\"average layer compute and load time:{layer_time_avg/32},{layer_load_t_avg/32}\" )\n \n     \n class LlamaCpuDiskRun():\n     def __init__(self,config):\n         self.config = config\n         self.freqs_complex = precompute_theta_pos_frequencies(self.config.dim // self.config.n_heads, self.config.max_position_embeddings * 2, device = self.config.device)\n         self.llamatoken = LlamaTokenEmbed(self.config)\n         self.llamalayer = LlamaLayer(self.config,self.freqs_complex)\n         self.llamafinalnorm = LlamaFinalLayerNorm(self.config)\n         self.llamafinallmhead = LlamaFinalLayerHead(self.config)\n         prev_time = time.time()\n         self.llamatoken.load_state_dict(load_file(config.model_dir + \"/separated_weights/embed_tokens.safetensors\"), strict=True)\n         print(time.time() - prev_time)\n         self.llamafinalnorm.load_state_dict(load_file(config.model_dir + \"/separated_weights/norm.safetensors\"), strict=True)\n         self.llamafinallmhead.load_state_dict(load_file(config.model_dir + \"/separated_weights/lm_head.safetensors\"), strict=True)\n \n \n     def run(self,tokens : torch.Tensor, curr_pos: int):\n         total_time = time.time()\n         x = self.llamatoken(tokens)\n         layer_time_avg = 0\n         layer_load_t_avg = 0\n         for i in range(0,32):\n             print(f\"layer{i}\")\n             prev_time = time.time()\n             self.llamalayer.load_state_dict(load_file(self.config.model_dir + f\"/separated_weights/layers{i}.safetensors\"), strict=True)\n             t = time.time() - prev_time\n             layer_load_t_avg += t\n             print(t)\n             prev_time = time.time()\n             x = self.llamalayer(x,curr_pos)\n             t = time.time() - prev_time\n             layer_time_avg += t\n             print(t)\n         print(\"final layers\")\n         prev_time = time.time()\n         x = self.llamafinallmhead(self.llamafinalnorm(x))\n         print(time.time() - prev_time)\n         print(x.shape)\n         print(\"total time\")\n         print(time.time() - total_time)\n         print(f\"average layer compute and load time:{layer_time_avg/32},{layer_load_t_avg/32}\" )\n \n Output:\n total time\n 27.943154096603394\n average layer compute and load time:0.03721388429403305,0.8325831741094589\n\nThe weights loading part takes most of the time 0.832\\*32 = 26.624 seconds, compute takes 0.037 \\* 32 = 1.18 seconds.\n\nThe compute is 22 times faster than loading the weights part.\n\nI am looking for ideas to minimize the weights loading time. Any idea on how I can improve this?","preferred_answer":"Are the weights compressed? If not do so and load them on a second thread. I/O-bound operations don’t get penalized by the GIL.","full_conversation":[{"role":"OP","user_id":"anon_2f98d58f83f58fee","comment_id":"1jnx6uh","kind":"post","text":"To run Llama 3.1-8B-instruct model on a local CPU with 4 GB ram without quantization. By Loading and Running a LLaMA Model on CPU with Disk-based Layer Loading.\n\nI am trying to run 3.1 8B llama instruct model [https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) on a 4GB ram laptop. The idea I'm using is to load and run one layer at a time. \nI have a class. \nIt initializes key components of the LLaMA architecture: \nLlamaTokenEmbed: Handles token embeddings. \nLlamaLayer: Represents a transformer block. \nLlamaFinalLayerNorm: Normalizes the output before final predictions. \nLlamaFinalLayerHead: Generates final token probabilities.\n\nRunning Inference (run method) \nIt processes the tokens through the embedding layer. \nThen, it iterates over 32 transformer layers (LlamaLayer) by Loading the corresponding layer weights from disk. Runs the layer on the input tensor x. \nAfter all layers are processed, the final normalization and output head compute the final model output. \nHere's the code\n\n     \n class LlamaCpuDiskRun():\n     def __init__(self,config):\n         self.config = config\n         self.freqs_complex = precompute_theta_pos_frequencies(self.config.dim // self.config.n_heads, self.config.max_position_embeddings * 2, device = self.config.device)\n         self.llamatoken = LlamaTokenEmbed(self.config)\n         self.llamalayer = LlamaLayer(self.config,self.freqs_complex)\n         self.llamafinalnorm = LlamaFinalLayerNorm(self.config)\n         self.llamafinallmhead = LlamaFinalLayerHead(self.config)\n         prev_time = time.time()\n         self.llamatoken.load_state_dict(load_file(config.model_dir + \"/separated_weights/embed_tokens.safetensors\"), strict=True)\n         print(time.time() - prev_time)\n         self.llamafinalnorm.load_state_dict(load_file(config.model_dir + \"/separated_weights/norm.safetensors\"), strict=True)\n         self.llamafinallmhead.load_state_dict(load_file(config.model_dir + \"/separated_weights/lm_head.safetensors\"), strict=True)\n \n     def run(self,tokens : torch.Tensor, curr_pos: int):\n         total_time = time.time()\n         x = self.llamatoken(tokens)\n         layer_time_avg = 0\n         layer_load_t_avg = 0\n         for i in range(0,32):\n             print(f\"layer{i}\")\n             prev_time = time.time()\n             self.llamalayer.load_state_dict(load_file(self.config.model_dir + f\"/separated_weights/layers{i}.safetensors\"), strict=True)\n             t = time.time() - prev_time\n             layer_load_t_avg += t\n             print(t)\n             prev_time = time.time()\n             x = self.llamalayer(x,curr_pos)\n             t = time.time() - prev_time\n             layer_time_avg += t\n             print(t)\n         print(\"final layers\")\n         prev_time = time.time()\n         x = self.llamafinallmhead(self.llamafinalnorm(x))\n         print(time.time() - prev_time)\n         print(x.shape)\n         print(\"total time\")\n         print(time.time() - total_time)\n         print(f\"average layer compute and load time:{layer_time_avg/32},{layer_load_t_avg/32}\" )\n \n     \n class LlamaCpuDiskRun():\n     def __init__(self,config):\n         self.config = config\n         self.freqs_complex = precompute_theta_pos_frequencies(self.config.dim // self.config.n_heads, self.config.max_position_embeddings * 2, device = self.config.device)\n         self.llamatoken = LlamaTokenEmbed(self.config)\n         self.llamalayer = LlamaLayer(self.config,self.freqs_complex)\n         self.llamafinalnorm = LlamaFinalLayerNorm(self.config)\n         self.llamafinallmhead = LlamaFinalLayerHead(self.config)\n         prev_time = time.time()\n         self.llamatoken.load_state_dict(load_file(config.model_dir + \"/separated_weights/embed_tokens.safetensors\"), strict=True)\n         print(time.time() - prev_time)\n         self.llamafinalnorm.load_state_dict(load_file(config.model_dir + \"/separated_weights/norm.safetensors\"), strict=True)\n         self.llamafinallmhead.load_state_dict(load_file(config.model_dir + \"/separated_weights/lm_head.safetensors\"), strict=True)\n \n \n     def run(self,tokens : torch.Tensor, curr_pos: int):\n         total_time = time.time()\n         x = self.llamatoken(tokens)\n         layer_time_avg = 0\n         layer_load_t_avg = 0\n         for i in range(0,32):\n             print(f\"layer{i}\")\n             prev_time = time.time()\n             self.llamalayer.load_state_dict(load_file(self.config.model_dir + f\"/separated_weights/layers{i}.safetensors\"), strict=True)\n             t = time.time() - prev_time\n             layer_load_t_avg += t\n             print(t)\n             prev_time = time.time()\n             x = self.llamalayer(x,curr_pos)\n             t = time.time() - prev_time\n             layer_time_avg += t\n             print(t)\n         print(\"final layers\")\n         prev_time = time.time()\n         x = self.llamafinallmhead(self.llamafinalnorm(x))\n         print(time.time() - prev_time)\n         print(x.shape)\n         print(\"total time\")\n         print(time.time() - total_time)\n         print(f\"average layer compute and load time:{layer_time_avg/32},{layer_load_t_avg/32}\" )\n \n Output:\n total time\n 27.943154096603394\n average layer compute and load time:0.03721388429403305,0.8325831741094589\n\nThe weights loading part takes most of the time 0.832\\*32 = 26.624 seconds, compute takes 0.037 \\* 32 = 1.18 seconds.\n\nThe compute is 22 times faster than loading the weights part.\n\nI am looking for ideas to minimize the weights loading time. Any idea on how I can improve this?","timestamp":"2025-03-31T06:49:48+00:00","score":6},{"role":"answerer","user_id":"anon_7c893c3ab93627d2","comment_id":"mktakyq","kind":"comment","text":"Are the weights compressed? If not do so and load them on a second thread. I/O-bound operations don’t get penalized by the GIL.","timestamp":"2025-04-01T05:39:15+00:00","score":2},{"role":"OP","user_id":"anon_2f98d58f83f58fee","comment_id":"mktiibg","kind":"comment","text":"The weights are not compressed. Thanks for the idea. I will try to compress them and load the it via second thread. \nThe thing is I don't want to loose any information regarding my weights(That is why I didn't do quantization). Do you any compression technique which I could look into based on what I said? \nThanks for the reply!!","timestamp":"2025-04-01T07:01:17+00:00","score":1},{"role":"answerer","user_id":"anon_7c893c3ab93627d2","comment_id":"mktqxbl","kind":"comment","text":"GZIP at high compression ratio?","timestamp":"2025-04-01T08:37:08+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_2f98d58f83f58fee","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7c893c3ab93627d2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mktakyq","thanks_reply_id":"mktiibg","post_score":6,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a1a542523aa6f0c3","answerer_user_id":"anon_e18956c7a853abba","subreddit":"programming","timestamp":"2025-04-10T10:23:50+00:00","post_id":"1jvujzu","question":"How to spoof a Pokémon Red Trade (with Go)\n\nThis is a write up of some notes I took when I tried to spoof a Pokémon trade as a weekend project. Maybe someone here finds this interesting. :)","preferred_answer":"You might want to post this to r/emulation, they love any type of emulation stuff. This is fascinating. \n\nTechnically the TAS community might be interested in this too, but I have no idea where to find them :)","full_conversation":[{"role":"OP","user_id":"anon_a1a542523aa6f0c3","comment_id":"1jvujzu","kind":"post","text":"How to spoof a Pokémon Red Trade (with Go)\n\nThis is a write up of some notes I took when I tried to spoof a Pokémon trade as a weekend project. Maybe someone here finds this interesting. :)","timestamp":"2025-04-10T10:23:50+00:00","score":369},{"role":"answerer","user_id":"anon_e18956c7a853abba","comment_id":"mmf88x4","kind":"comment","text":"You might want to post this to r/emulation, they love any type of emulation stuff. This is fascinating. \n\nTechnically the TAS community might be interested in this too, but I have no idea where to find them :)","timestamp":"2025-04-10T17:33:42+00:00","score":7},{"role":"OP","user_id":"anon_a1a542523aa6f0c3","comment_id":"mmg71lz","kind":"comment","text":"Thanks!\n\nI don't think it's future proofing, as the games of this generation didn't really do this kind of thing, especially the Pokemon games. \nMaybe I'll take a look at it again with Emulicious and take a deeper dive.","timestamp":"2025-04-10T20:22:59+00:00","score":3},{"role":"answerer","user_id":"anon_e18956c7a853abba","comment_id":"mmgud51","kind":"comment","text":"Is Emulicious debugger any good? I did a couple things with both Ghidra (painful, but more because the task I was doing) and PCSX2 (amazing possibly because of the task I was doing) But didn't love the tools when I was messing with a Genesis Rom. \n\nJust curious if Emulicious is useful if I want to take a look at some older architectures.","timestamp":"2025-04-10T22:23:44+00:00","score":1},{"role":"OP","user_id":"anon_a1a542523aa6f0c3","comment_id":"mmixgvo","kind":"comment","text":"My experience with Emulicious and Ghidra is *very* limited but Emulicious was super helpful, if you have a symbol table at hand (or, I guess, if you're cracked out on SM83 assembly).\n\nEmulicious was surprisingly easy to use.","timestamp":"2025-04-11T07:14:13+00:00","score":1},{"role":"answerer","user_id":"anon_e18956c7a853abba","comment_id":"mmj5rn4","kind":"comment","text":"Symbols? Assembly or we riot! \n\n(As long as it has good breakpoints I'd be happy. Oh and a clear way to modify the hex code)","timestamp":"2025-04-11T08:43:13+00:00","score":1},{"role":"OP","user_id":"anon_a1a542523aa6f0c3","comment_id":"mmj8avr","kind":"comment","text":"You can load this file: [https://github.com/pret/pokered/blob/symbols/pokered.sym](https://github.com/pret/pokered/blob/symbols/pokered.sym) into Emulicious. \n \nIt's just a bunch of reverse engineered names for the addresses in the rom, so you don't step through CALL $1337, but CALL TradeCenterNPC.TradeAgain :D","timestamp":"2025-04-11T09:10:27+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_a1a542523aa6f0c3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e18956c7a853abba","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mmf88x4","thanks_reply_id":"mmg71lz","post_score":369,"answer_score":7,"preferred_answer_is_top_level":true}} {"user_id":"anon_690ccf92e4904674","answerer_user_id":"anon_f70c43a48cdb0afa","subreddit":"programming","timestamp":"2025-05-20T21:10:26+00:00","post_id":"1krgbf7","question":"Why Good Programmers Use Bad AI","preferred_answer":"There’s a small typo: \n\n\n> \nAsk delibrately\n\nYou’re a heavy-vibe coder and didn’t ask your model for a review of ... your prose? \n\n\nJokes aside, interesting writing!","full_conversation":[{"role":"OP","user_id":"anon_690ccf92e4904674","comment_id":"1krgbf7","kind":"post","text":"Why Good Programmers Use Bad AI","timestamp":"2025-05-20T21:10:26+00:00","score":74},{"role":"answerer","user_id":"anon_f70c43a48cdb0afa","comment_id":"mtdc9wj","kind":"comment","text":"There’s a small typo: \n\n\n> \nAsk delibrately\n\nYou’re a heavy-vibe coder and didn’t ask your model for a review of ... your prose? \n\n\nJokes aside, interesting writing!","timestamp":"2025-05-20T21:48:15+00:00","score":70},{"role":"OP","user_id":"anon_690ccf92e4904674","comment_id":"mtegh5p","kind":"comment","text":"Thanks for pointing this out, fixed!\n\nAI generated content looks like it's written for robots. I don't like how it washes away my style so I don't use it.","timestamp":"2025-05-21T01:39:40+00:00","score":11},{"role":"answerer","user_id":"anon_f70c43a48cdb0afa","comment_id":"mteiguw","kind":"comment","text":"I'll write an article on how to use it to fix typos and not use it for vibe literature or how it's necessary today though.\n\nI've even got the title in mind, let say : \"Why Good Writers Use Bad AI\"\n\nAn idea on which cub to post it, maybe ? ;-)","timestamp":"2025-05-21T01:51:22+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_690ccf92e4904674","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f70c43a48cdb0afa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mtdc9wj","thanks_reply_id":"mtegh5p","post_score":74,"answer_score":70,"preferred_answer_is_top_level":true}} {"user_id":"anon_96da9dcf75a68ba5","answerer_user_id":"anon_cb6a779dc9353881","subreddit":"programming","timestamp":"2025-05-22T17:57:10+00:00","post_id":"1ksxbdi","question":"Fork Union: Beyond OpenMP in C++ and Rust?","preferred_answer":"(copied from my comment on the /r/rust crosspost)\n\nhttps://github.com/ashvardanian/fork_union/blob/cd885f3811bc7ff09c7132af4acbcc723aca36a2/fork_union.rs#L116\n\nthis is undefined behavior. casting a & to a &mut is never allowed (other than for zero sized types)\n\nunsynchronized read\nhttps://github.com/ashvardanian/fork_union/blob/cd885f3811bc7ff09c7132af4acbcc723aca36a2/fork_union.rs#L439\n\nunsynchronized write\nhttps://github.com/ashvardanian/fork_union/blob/cd885f3811bc7ff09c7132af4acbcc723aca36a2/fork_union.rs#L367\n\n\nthis is a data race, which is undefined behavior\n\nthere's plenty of other data races. you should run your tests with miri","full_conversation":[{"role":"OP","user_id":"anon_96da9dcf75a68ba5","comment_id":"1ksxbdi","kind":"post","text":"Fork Union: Beyond OpenMP in C++ and Rust?","timestamp":"2025-05-22T17:57:10+00:00","score":2},{"role":"answerer","user_id":"anon_cb6a779dc9353881","comment_id":"mtq5pkw","kind":"comment","text":"(copied from my comment on the /r/rust crosspost)\n\nhttps://github.com/ashvardanian/fork_union/blob/cd885f3811bc7ff09c7132af4acbcc723aca36a2/fork_union.rs#L116\n\nthis is undefined behavior. casting a & to a &mut is never allowed (other than for zero sized types)\n\nunsynchronized read\nhttps://github.com/ashvardanian/fork_union/blob/cd885f3811bc7ff09c7132af4acbcc723aca36a2/fork_union.rs#L439\n\nunsynchronized write\nhttps://github.com/ashvardanian/fork_union/blob/cd885f3811bc7ff09c7132af4acbcc723aca36a2/fork_union.rs#L367\n\n\nthis is a data race, which is undefined behavior\n\nthere's plenty of other data races. you should run your tests with miri","timestamp":"2025-05-22T21:18:04+00:00","score":3},{"role":"OP","user_id":"anon_96da9dcf75a68ba5","comment_id":"mtq712s","kind":"comment","text":"Thank you for the pointers! Do you mean [this Miri](https://github.com/rust-lang/miri)?\n\nLet me double check that condition. There should hopefully be a way to avoid turning it into an atomic operation 🤔","timestamp":"2025-05-22T21:24:53+00:00","score":2},{"role":"answerer","user_id":"anon_cb6a779dc9353881","comment_id":"mtq7ct6","kind":"comment","text":"yeah, if your project is cargo-managed, you can just cargo miri test (or cargo +nightly miri test)","timestamp":"2025-05-22T21:26:34+00:00","score":1},{"role":"OP","user_id":"anon_96da9dcf75a68ba5","comment_id":"mtq7w66","kind":"comment","text":"It is, so this should work, epic!","timestamp":"2025-05-22T21:29:21+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_96da9dcf75a68ba5","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_cb6a779dc9353881","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mtq5pkw","thanks_reply_id":"mtq712s","post_score":2,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_b1e7f7a72dd9981b","answerer_user_id":"anon_4a580d6616bd72b0","subreddit":"programming","timestamp":"2025-06-13T16:38:55+00:00","post_id":"1lakl07","question":"Everything Multiplayer\n\nI spent the last year learning everything I could about multiplayer. I go from basic socket programming to complex state synchronization, to creating a backend. My goal was to create a mega resource for making multiplayer games. It's a very long and dense video, so feel free to watch at x2.\n\nThis was a massive project for me, so I'm really happy to have finally finished it. I've been sharing it around to people, and have been having really good conversations with industry veterans from it. Is there anything I missed, or points you disagree with?","preferred_answer":"The spatial tree structure you came up with R-trees is quite common in Geospatial indexing. I can't remember the name of it unfortunately, I ran into the same structure from a research paper in 19xx studying Geospatial clustering when writing my bachelor's thesis. Thus you could probably apply techniques such as indexing from that problem domain to this.\n\n\nPS: Also why multiplying and dividing by 8 rather than bit shifting? Does C# not support bit shifting?","full_conversation":[{"role":"OP","user_id":"anon_b1e7f7a72dd9981b","comment_id":"1lakl07","kind":"post","text":"Everything Multiplayer\n\nI spent the last year learning everything I could about multiplayer. I go from basic socket programming to complex state synchronization, to creating a backend. My goal was to create a mega resource for making multiplayer games. It's a very long and dense video, so feel free to watch at x2.\n\nThis was a massive project for me, so I'm really happy to have finally finished it. I've been sharing it around to people, and have been having really good conversations with industry veterans from it. Is there anything I missed, or points you disagree with?","timestamp":"2025-06-13T16:38:55+00:00","score":17},{"role":"answerer","user_id":"anon_4a580d6616bd72b0","comment_id":"mxxnopk","kind":"comment","text":"The spatial tree structure you came up with R-trees is quite common in Geospatial indexing. I can't remember the name of it unfortunately, I ran into the same structure from a research paper in 19xx studying Geospatial clustering when writing my bachelor's thesis. Thus you could probably apply techniques such as indexing from that problem domain to this.\n\n\nPS: Also why multiplying and dividing by 8 rather than bit shifting? Does C# not support bit shifting?","timestamp":"2025-06-15T16:51:23+00:00","score":2},{"role":"OP","user_id":"anon_b1e7f7a72dd9981b","comment_id":"mxxy6b4","kind":"comment","text":"Thanks, I was hitting a dead end on my research, but adding geospacial indexing got me a bunch of new results. \n\nAlso c# has bit shifting, but coords are floats, which don't have bitwise operators. I only want to \"bit shift\" the mantissa so that I can pull out an int, and the easiest way to do that is with multiplication. The alternative is to use bit converter to do the c style pointer magic float to int direct conversion, and then bit mask the mantissa. I haven't measured if one is better than the other, but the multiplication one was the only one I saw in the sources I looked at.","timestamp":"2025-06-15T17:44:00+00:00","score":2},{"role":"answerer","user_id":"anon_4a580d6616bd72b0","comment_id":"mxy2js4","kind":"comment","text":"Ah that makes sense","timestamp":"2025-06-15T18:06:00+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_b1e7f7a72dd9981b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_4a580d6616bd72b0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mxxnopk","thanks_reply_id":"mxxy6b4","post_score":17,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_9ca2108780229057","answerer_user_id":"anon_6dd10646f60f2c0a","subreddit":"programming","timestamp":"2025-06-17T01:49:22+00:00","post_id":"1ldb16m","question":"Why Generative AI Coding Tools and Agents Do Not Work For Me","preferred_answer":"If you are talking about your expert opinion and present only a simple problem you solved, that's all on you mate.","full_conversation":[{"role":"OP","user_id":"anon_9ca2108780229057","comment_id":"1ldb16m","kind":"post","text":"Why Generative AI Coding Tools and Agents Do Not Work For Me","timestamp":"2025-06-17T01:49:22+00:00","score":248},{"role":"answerer","user_id":"anon_6dd10646f60f2c0a","comment_id":"my819an","kind":"comment","text":"If you are talking about your expert opinion and present only a simple problem you solved, that's all on you mate.","timestamp":"2025-06-17T06:57:15+00:00","score":9},{"role":"OP","user_id":"anon_9ca2108780229057","comment_id":"my825ep","kind":"comment","text":"What have you solved that's harder than what I presented?","timestamp":"2025-06-17T07:05:44+00:00","score":1},{"role":"answerer","user_id":"anon_6dd10646f60f2c0a","comment_id":"my84g6n","kind":"comment","text":"Don't know, i'm just being lazy here. That's why i did not directly accuse you and am just reacting to the earlier comment. If it's wrong my comment will be based on wrong assumptions and i'm not going to deny that.","timestamp":"2025-06-17T07:28:01+00:00","score":5}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9ca2108780229057","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_6dd10646f60f2c0a","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"my819an","thanks_reply_id":"my825ep","post_score":248,"answer_score":9,"preferred_answer_is_top_level":false}} {"user_id":"anon_31419749d5b0a506","answerer_user_id":"anon_c4e7a0c48b542c93","subreddit":"programming","timestamp":"2025-06-25T07:51:35+00:00","post_id":"1ljzod0","question":"Backend Permission Design: Should You Check in Middleware or in Handlers?","preferred_answer":"I check in the application layer, so the authorization is protocol agnostic.\n\nThe authentication however is injected during the middlewares","full_conversation":[{"role":"OP","user_id":"anon_31419749d5b0a506","comment_id":"1ljzod0","kind":"post","text":"Backend Permission Design: Should You Check in Middleware or in Handlers?","timestamp":"2025-06-25T07:51:35+00:00","score":43},{"role":"answerer","user_id":"anon_c4e7a0c48b542c93","comment_id":"mznszh8","kind":"comment","text":"I check in the application layer, so the authorization is protocol agnostic.\n\nThe authentication however is injected during the middlewares","timestamp":"2025-06-25T07:54:28+00:00","score":13},{"role":"OP","user_id":"anon_31419749d5b0a506","comment_id":"mznybdo","kind":"comment","text":"Thanks! That makes sense. I'm exploring a middleware-based permission model that uses route + method → permission code mapping, and auto-checks based on user roles. \nCurious: in your approach, how do you prevent missing or inconsistent authorization checks across large codebases?","timestamp":"2025-06-25T08:47:44+00:00","score":1},{"role":"answerer","user_id":"anon_c4e7a0c48b542c93","comment_id":"mznz3qz","kind":"comment","text":"I program in Go, so there is no black magic annotation or macros, you explicitly check authorization.\n\nThat + auth mock and tests that ensure authorization is required for the test cases","timestamp":"2025-06-25T08:55:27+00:00","score":3},{"role":"OP","user_id":"anon_31419749d5b0a506","comment_id":"mznzf8p","kind":"comment","text":"You're right — sometimes being explicit just makes things simpler and easier to reason about.","timestamp":"2025-06-25T08:58:31+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_31419749d5b0a506","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c4e7a0c48b542c93","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"mznszh8","thanks_reply_id":"mznybdo","post_score":43,"answer_score":13,"preferred_answer_is_top_level":true}} {"user_id":"anon_1bbd250e2c63655c","answerer_user_id":"anon_e55938bd7419da18","subreddit":"programming","timestamp":"2025-07-10T13:30:09+00:00","post_id":"1lwcrw6","question":"We stopped relying on bloom filters and now sort our ClickHouse primary key on a resource fingerprint. It cut our log query scans to 0.85% of blocks.\n\nHey folks,\nMy team and I have been working on a performance optimization and wanted to share the results. We managed to cut log-query scanning from nearly all data blocks down to less than 1% by reorganizing how logs are stored in ClickHouse.\n\nInstead of relying on bloom-filter skip indexes, we generate a deterministic “resource fingerprint” (a hash of cluster + namespace + pod, etc.) for every log source and now sort the table by this fingerprint in the ORDER BY clause of the primary key. This packs logs from the same pod/service contiguously, letting ClickHouse’s sparse primary-key index skip over irrelevant data blocks entirely.\n\nThe result: a filter on a single namespace now reads just 222 out of 26,135 blocks (0.85%), slashing I/O and latency.\n\nNext up, we're tackling GROUP BY performance. We're currently working on using ClickHouse's new native JSON column type, which should let us eliminate an expensive data materialization step and improve performance drastically.\n\nThis approach worked well for us, but I'm want to hear from others. Is sorting on a high-cardinality fingerprint like this a common pattern, or is there a more efficient way to achieve this data locality that we might have missed?","preferred_answer":"When you have cramer matrix, you basically will see clusters in it containing multiple columns. All cluster columns are interconnected, meaning they already have data locality and you can use just about any of them and ignore all other, cause, well they will be there by definition. It definitely can be used alongside any approach. Cramer is useful not particularly on logs, but on data which has contract, but can be used on logs too, because logs are often is just set of templates with values engraved in them.","full_conversation":[{"role":"OP","user_id":"anon_1bbd250e2c63655c","comment_id":"1lwcrw6","kind":"post","text":"We stopped relying on bloom filters and now sort our ClickHouse primary key on a resource fingerprint. It cut our log query scans to 0.85% of blocks.\n\nHey folks,\nMy team and I have been working on a performance optimization and wanted to share the results. We managed to cut log-query scanning from nearly all data blocks down to less than 1% by reorganizing how logs are stored in ClickHouse.\n\nInstead of relying on bloom-filter skip indexes, we generate a deterministic “resource fingerprint” (a hash of cluster + namespace + pod, etc.) for every log source and now sort the table by this fingerprint in the ORDER BY clause of the primary key. This packs logs from the same pod/service contiguously, letting ClickHouse’s sparse primary-key index skip over irrelevant data blocks entirely.\n\nThe result: a filter on a single namespace now reads just 222 out of 26,135 blocks (0.85%), slashing I/O and latency.\n\nNext up, we're tackling GROUP BY performance. We're currently working on using ClickHouse's new native JSON column type, which should let us eliminate an expensive data materialization step and improve performance drastically.\n\nThis approach worked well for us, but I'm want to hear from others. Is sorting on a high-cardinality fingerprint like this a common pattern, or is there a more efficient way to achieve this data locality that we might have missed?","timestamp":"2025-07-10T13:30:09+00:00","score":99},{"role":"answerer","user_id":"anon_e55938bd7419da18","comment_id":"n2qcedf","kind":"comment","text":"When you have cramer matrix, you basically will see clusters in it containing multiple columns. All cluster columns are interconnected, meaning they already have data locality and you can use just about any of them and ignore all other, cause, well they will be there by definition. It definitely can be used alongside any approach. Cramer is useful not particularly on logs, but on data which has contract, but can be used on logs too, because logs are often is just set of templates with values engraved in them.","timestamp":"2025-07-12T14:18:43+00:00","score":1},{"role":"OP","user_id":"anon_1bbd250e2c63655c","comment_id":"n4vth7q","kind":"comment","text":"Thanks bro, you have opened some opportunities for us. \\[Here are my notes\\](https://www.notion.so/signoz/Cramer-s-Index-239fcc6bcd1980b39496ee3eaab7a52b?source=copy\\_link) on what I have understood so far. If you get some time, would love your thought :)","timestamp":"2025-07-24T11:48:19+00:00","score":2},{"role":"answerer","user_id":"anon_e55938bd7419da18","comment_id":"n4wa4th","kind":"comment","text":"Very well written example! Your greedy approach is especially interesting, might need to go deeper to understand it and come back later =)","timestamp":"2025-07-24T13:25:36+00:00","score":2},{"role":"OP","user_id":"anon_1bbd250e2c63655c","comment_id":"n4ws6bp","kind":"comment","text":"I am aware of Markov chain. I'll keep digging deeper too :)","timestamp":"2025-07-24T14:54:51+00:00","score":1},{"role":"answerer","user_id":"anon_e55938bd7419da18","comment_id":"n4wsdj3","kind":"comment","text":"Don't forget to checkout z curves. They might give us what we want )))","timestamp":"2025-07-24T14:55:46+00:00","score":2},{"role":"OP","user_id":"anon_1bbd250e2c63655c","comment_id":"n4x1a4t","kind":"comment","text":"Thank you :) I'll get back!","timestamp":"2025-07-24T15:36:36+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_1bbd250e2c63655c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e55938bd7419da18","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"n2qcedf","thanks_reply_id":"n4vth7q","post_score":99,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_0751872ad285c2f3","answerer_user_id":"anon_797283502fbed1ec","subreddit":"programming","timestamp":"2025-07-12T02:00:38+00:00","post_id":"1lxota6","question":"Why are all ML-type languages so hard to get started with?!\n\nNote that I am, in fact, not really a \"real\" programmer---I wish I was, but I procrastinated for years & then the bottom fell out of the job-market (from all I'm hearing) right as I discovered that I *actually really did* enjoy coding, heh. Hence, I probably had a lot of trouble with things that anyone competent would be able to handle in a couple seconds, and (also hence) this isn't to be taken as any real criticism of the languages (F#, OCaml, Haskell) or tools mentioned...\n\n...rather, I just thought that it was sort of humorous/interesting, that *for some reason,* out of all the languages I've tried, it has been specifically all (& only) these \"ML-family\" languages that have felt like they had the most unwelcoming & difficult set-up/configuration/tooling. (Well, F# wasn't so bad---but it really seems like it's aimed only at experienced C# / .NET devs, and not at all the novice.)\n\n***\n\nI'd be interested to hear the opinions of *actual* programmers, as to whether my perception was correct & these languages are not exactly novice-friendly... or whether it's probably just that I'm too dumb to be worthy of Haskell, OCaml, & co. (also quite possible).","preferred_answer":"Elm is super easy to learn. It’s also dead. Last release was in 2019. The creator will tell you that it’s not dead, but he’s not working on it or passing the torch.\n\nThe parent suggested that you try Erlang or Elixir which are not ML languages, but still are functional. Erlang has some very interesting ideas about resilience and concurency. And Elixir was created to give you all that goodness, but it a friendlier language. It compiles to the same bytecode, so of the two, pick Elixir.","full_conversation":[{"role":"OP","user_id":"anon_0751872ad285c2f3","comment_id":"1lxota6","kind":"post","text":"Why are all ML-type languages so hard to get started with?!\n\nNote that I am, in fact, not really a \"real\" programmer---I wish I was, but I procrastinated for years & then the bottom fell out of the job-market (from all I'm hearing) right as I discovered that I *actually really did* enjoy coding, heh. Hence, I probably had a lot of trouble with things that anyone competent would be able to handle in a couple seconds, and (also hence) this isn't to be taken as any real criticism of the languages (F#, OCaml, Haskell) or tools mentioned...\n\n...rather, I just thought that it was sort of humorous/interesting, that *for some reason,* out of all the languages I've tried, it has been specifically all (& only) these \"ML-family\" languages that have felt like they had the most unwelcoming & difficult set-up/configuration/tooling. (Well, F# wasn't so bad---but it really seems like it's aimed only at experienced C# / .NET devs, and not at all the novice.)\n\n***\n\nI'd be interested to hear the opinions of *actual* programmers, as to whether my perception was correct & these languages are not exactly novice-friendly... or whether it's probably just that I'm too dumb to be worthy of Haskell, OCaml, & co. (also quite possible).","timestamp":"2025-07-12T02:00:38+00:00","score":0},{"role":"answerer","user_id":"anon_797283502fbed1ec","comment_id":"n2nz7do","kind":"comment","text":"Elm is super easy to learn. It’s also dead. Last release was in 2019. The creator will tell you that it’s not dead, but he’s not working on it or passing the torch.\n\nThe parent suggested that you try Erlang or Elixir which are not ML languages, but still are functional. Erlang has some very interesting ideas about resilience and concurency. And Elixir was created to give you all that goodness, but it a friendlier language. It compiles to the same bytecode, so of the two, pick Elixir.","timestamp":"2025-07-12T02:53:48+00:00","score":3},{"role":"OP","user_id":"anon_0751872ad285c2f3","comment_id":"n2o16gn","kind":"comment","text":"D'oh---thanks for spotting that (and for the advice). I've heard a lot about Erlang & concurrency (although I am somewhat unclear about *what,* exactly, it does to make it so well-suited to massively parallel operations; something something message-passing?); didn't realize that Elixir was essentially a \"friendlier Erlang\"!","timestamp":"2025-07-12T03:07:02+00:00","score":1},{"role":"answerer","user_id":"anon_797283502fbed1ec","comment_id":"n2o9zb0","kind":"comment","text":"The same way that Kotlin compiles to exactly the same bytecode as Java. Though Kotlin is much more similar to Java’s syntax than Elixir is to Erlang. Erlang was created in the 80s and kept proprietary until the turn of the century. So it didn’t get to influence the syntax of other languages and its syntax feels just weird now. For instance any variable needs to start with an uppercase, otherwise it’s a symbol.\n\n> what, exactly, it does to make it so well-suited to massively parallel operations; something something message-passing?);\n\n[Check this presentation then](https://www.youtube.com/watch?v=JvBT4XBdoUE), it will blow your mind.","timestamp":"2025-07-12T04:07:38+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_0751872ad285c2f3","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_797283502fbed1ec","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"n2nz7do","thanks_reply_id":"n2o16gn","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_5339df70a4823eae","answerer_user_id":"anon_afc5f830e2d768ea","subreddit":"programming","timestamp":"2025-07-12T17:39:54+00:00","post_id":"1ly6as5","question":"How AI is actually making programmers more essential\n\nHere's a humble little article I wrote that you may now swat as self-promotion but I really feel strongly about these issues and would at least appreciate a smattering of old-school BBS snark as it survives on Reddit before hand.","preferred_answer":"What are the odds we don't find this new paradigm, then? Now that AI is good enough that it's useful, we're not going to see another winter.","full_conversation":[{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"1ly6as5","kind":"post","text":"How AI is actually making programmers more essential\n\nHere's a humble little article I wrote that you may now swat as self-promotion but I really feel strongly about these issues and would at least appreciate a smattering of old-school BBS snark as it survives on Reddit before hand.","timestamp":"2025-07-12T17:39:54+00:00","score":305},{"role":"answerer","user_id":"anon_afc5f830e2d768ea","comment_id":"n2rwbil","kind":"comment","text":"What are the odds we don't find this new paradigm, then? Now that AI is good enough that it's useful, we're not going to see another winter.","timestamp":"2025-07-12T19:09:53+00:00","score":-2},{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"n2rzmbl","kind":"comment","text":"This is exactly the kind of thinking that makes me go, we must be near the cycle end: \"we're not going to see another winter\".\n\nShow me any process in the universe that goes in a straight, linear path. Just one single example.\n\n\"Winter is coming.\" :)","timestamp":"2025-07-12T19:27:51+00:00","score":2},{"role":"answerer","user_id":"anon_afc5f830e2d768ea","comment_id":"n2s0k8c","kind":"comment","text":"Everything goes in a straight line, if there's nothing around... what the fuck are you talking about?","timestamp":"2025-07-12T19:33:00+00:00","score":2},{"role":"OP","user_id":"anon_5339df70a4823eae","comment_id":"n2si98i","kind":"comment","text":"Really? Everything goes in a straight line? The seasons? Life and death? My friend, I am reading your comments and I have to reassure you, you are not just a pile of senseless molecules. Its one of the strangest experiences to watch a conscious being use their conscious to believe they are based on something unconscious. Its weird.","timestamp":"2025-07-12T21:07:48+00:00","score":-1},{"role":"answerer","user_id":"anon_afc5f830e2d768ea","comment_id":"n2sjzr4","kind":"comment","text":"It's sad to watch computers not realize they are computers...","timestamp":"2025-07-12T21:17:26+00:00","score":1}],"n_turns":6,"n_turns_after_thanks":3,"op_metadata":{"user_id":"anon_5339df70a4823eae","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_afc5f830e2d768ea","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"n2rwbil","thanks_reply_id":"n2rzmbl","post_score":305,"answer_score":-2,"preferred_answer_is_top_level":false}} {"user_id":"anon_3d3fd64d39aa3e57","answerer_user_id":"anon_216d53d7ca381c8d","subreddit":"programming","timestamp":"2025-09-03T13:08:24+00:00","post_id":"1n7eckc","question":"Applying Functional Programming to a Complex Domain: A Practical Game Engine PoC\n\nHey r/programming,\n\nAs a front-end developer with a background in the JavaScript, React, and Redux ecosystem, I've always been intrigued by the idea of applying FP to a complex, real-world domain. Even though JavaScript is a multi-paradigm language, I've been leveraging its functional features to build a game engine as a side project, and I'm happy with the results so far so I wanted to share them with the community and gather some feedback.\n\nWhat I've found is that FP's core principles make it surprisingly straightforward to implement the architectural features that modern, high-performance game engines rely on.\n\n**The Perks I Found**\n\nI was able to naturally implement these core architectural features with FP:\n\n* **Data-Oriented Programming:** My entire game state is a single, immutable JavaScript object. This gives me a \"single source of truth,\" which is a perfect fit for the data-oriented design paradigm.\n* **Entity-Component-System Architecture:** Each entity is a plain data object, and its behavior is defined by composing pure functions. This feels incredibly natural and avoids the boilerplate of classes.\n* **Composition Over Inheritance:** My engine uses a decorator pattern to compose behaviors on the fly, which is far more flexible than relying on rigid class hierarchies.\n\nAnd all of this comes with the inherent benefits of functional programming:\n\n* **Predictability:** The same input always produces the same output.\n* **Testability:** Pure functions are easy to test in isolation.\n* **Debuggability:** I can trace state changes frame-by-frame and even enable time-travel debugging.\n* **Networkability:** Multiplayer becomes easier with simple event synchronization.\n* **Performance:** Immutability with structural sharing enables efficient rendering and change detection.\n\nI've created a PoC, and I'm really enjoying the process. Here is the link to my GitHub repo: https://github.com/IngloriousCoderz/inglorious-engine. You can also find the documentation here: https://inglorious-engine.vercel.app/.\n\nSo, when and where will my PoC hit a wall and tell me: \"You were wrong all along, FP is not the way for game engines\"?","preferred_answer":"Hey OP, your writeup (and comments) are very eh from a writing perspective.\nYou underexplain interesting bits while wasting words on unhelpful little tidbits.\nIt reads like AI in the worst way: Wordy and devoid of thought or character.\n\nIt's irrelevant to the quality of your programming work, but if you want to continue sharing your journey(s), I urge you to spend some time critically engaging with writing.","full_conversation":[{"role":"OP","user_id":"anon_3d3fd64d39aa3e57","comment_id":"1n7eckc","kind":"post","text":"Applying Functional Programming to a Complex Domain: A Practical Game Engine PoC\n\nHey r/programming,\n\nAs a front-end developer with a background in the JavaScript, React, and Redux ecosystem, I've always been intrigued by the idea of applying FP to a complex, real-world domain. Even though JavaScript is a multi-paradigm language, I've been leveraging its functional features to build a game engine as a side project, and I'm happy with the results so far so I wanted to share them with the community and gather some feedback.\n\nWhat I've found is that FP's core principles make it surprisingly straightforward to implement the architectural features that modern, high-performance game engines rely on.\n\n**The Perks I Found**\n\nI was able to naturally implement these core architectural features with FP:\n\n* **Data-Oriented Programming:** My entire game state is a single, immutable JavaScript object. This gives me a \"single source of truth,\" which is a perfect fit for the data-oriented design paradigm.\n* **Entity-Component-System Architecture:** Each entity is a plain data object, and its behavior is defined by composing pure functions. This feels incredibly natural and avoids the boilerplate of classes.\n* **Composition Over Inheritance:** My engine uses a decorator pattern to compose behaviors on the fly, which is far more flexible than relying on rigid class hierarchies.\n\nAnd all of this comes with the inherent benefits of functional programming:\n\n* **Predictability:** The same input always produces the same output.\n* **Testability:** Pure functions are easy to test in isolation.\n* **Debuggability:** I can trace state changes frame-by-frame and even enable time-travel debugging.\n* **Networkability:** Multiplayer becomes easier with simple event synchronization.\n* **Performance:** Immutability with structural sharing enables efficient rendering and change detection.\n\nI've created a PoC, and I'm really enjoying the process. Here is the link to my GitHub repo: https://github.com/IngloriousCoderz/inglorious-engine. You can also find the documentation here: https://inglorious-engine.vercel.app/.\n\nSo, when and where will my PoC hit a wall and tell me: \"You were wrong all along, FP is not the way for game engines\"?","timestamp":"2025-09-03T13:08:24+00:00","score":3},{"role":"answerer","user_id":"anon_216d53d7ca381c8d","comment_id":"nc93hny","kind":"comment","text":"Hey OP, your writeup (and comments) are very eh from a writing perspective.\nYou underexplain interesting bits while wasting words on unhelpful little tidbits.\nIt reads like AI in the worst way: Wordy and devoid of thought or character.\n\nIt's irrelevant to the quality of your programming work, but if you want to continue sharing your journey(s), I urge you to spend some time critically engaging with writing.","timestamp":"2025-09-03T20:04:57+00:00","score":8},{"role":"OP","user_id":"anon_3d3fd64d39aa3e57","comment_id":"nc95d1b","kind":"comment","text":"Hey there, thanks for the feedback! I'm sorry if I write like AI. I have to admit that sometimes I make AI proof-read my writing because English is not my first language, but the content is all mine. Beep-boop.\n\nCould you please help me identify which writing is eh? Are you talking about the post and the comments only, or are the docs that I linked underwhelming too? Which are in your opinion the interesting bits I'm skipping and which are the unhelpful parts I'm over-explaining? That would help me very much improve my ability to convey the message.","timestamp":"2025-09-03T20:13:58+00:00","score":-1},{"role":"answerer","user_id":"anon_216d53d7ca381c8d","comment_id":"ncag27e","kind":"comment","text":"Okay so, focusing on specifically the post writeup:\nThe list of benefits is introduced as a showcase of how easy it is to implement features with FP, but then focuses on the comparison to OOP. This is in itself fine, but it lacks the depth to be valuable. It comes across as needlessly derogatory. If FP is as good as you claim, you don't need to talk down OOP to make it shine, and if you want to compare the options, it needs more substance. The list would be improved just by throwing out the comments about OOP.\n\nThe second list is what makes this seem so much like AI-slop. The points barely fit together thematically, don't really *explain* anything, and read purely like an ad script.\n\"Networkability\" for example: What is Event Synchronization? How does it help? Why is it inherent to FP?\n\nThat's what I mean by 'devoid of substance', I didn't learn anything, I just got buzzwords thrown at me. If I knew what exactly they meant, I wouldn't need to be told about them.\n\nNow, you can make a list like that good. If each of those points linked to an article going into the topic, it'd be a helpful hub to learn about FP, and that without the burden of having to write it out yourself. If it sketched out how these benefits materialize by showing a little (pseudo-)code, even better.\n\nI would like to contrast that to the Readme of the repository, specifically the State Management section. It provides just enough context and just enough substance to sketch out what exactly is meant, while still being concise. Do you get what I mean?\n\nFinally, your writeup overall *hints* at all the cool things you learned, but we don't get to *see* any of them. It's too long to be a quick \"hey I made this cool thing check it out :)\" and too shallow to actually learn from it. It seems like the Readme answers these things, but the text doesn't manage to give the impression that it will.\n\nTo summarize: This writeup doesn't really impart any knowledge, and also doesn't really manage to point to the (at first glance really good looking!) Readme. I think it should either be a really short, highest level overview over what you did and point to the Readme (the first paragraph is decent for that), or go way more into depth to actually teach a thing about the subject matter.","timestamp":"2025-09-04T00:22:52+00:00","score":2},{"role":"OP","user_id":"anon_3d3fd64d39aa3e57","comment_id":"ncbxq7d","kind":"comment","text":"Alright, thanks for the detailed explanation. I'll definitely try my best next time to write a more informative post, although I have a few considerations on this one:\n\n1. Never have I compared FP to OOP. There isn't one occurrence of the word \"OOP\" in the whole post. The first list basically says: \"All good game engines do this and that: I was able to achieve the same with not much effort, thanks to FP.\" I don't think this is talking down OOP.\n2. The benefits of FP are clear to anyone who knows a bit of FP. I could have made a dissertation on how FP works in this post, and you would have learned something from it, but it would be a bit off-topic since my purpose was exploring a game engine written with FP concepts in mind. If you don't get Event Synchronization it's fine, but maybe then this post is not for you. At least not at this moment. You could learn a bit of FP, I could help you with that, and then come back here and understand and appreciate the post much more. Here, I googled for you an article that explains some of the points of that second list: [https://medium.com/twodigits/advantages-and-disadvantages-of-functional-programming-52a81c8bf446](https://medium.com/twodigits/advantages-and-disadvantages-of-functional-programming-52a81c8bf446)\n3. If I saw an infinitely scolling post on Reddit, with am introductory lesson on FP, a thorough explanation of the architecture and code examples, I would skip it myself. Life is too short, TLDR. The post hints on purpose. If you want to know more then you can check the docs, which I linked at the bottom. If you don't even like the hints then you can just move on.\n4. You said my README is well written: thanks. I could have copy-pasted the README here, but why should I if I can just link it?\n\nTo summarize, I feel like you and I had different expectations on my post: you wanted to learn something and maybe to defend OOP against FP's attacks. I wanted to get the expert opinion of someone who already knows the topics of game engine development and FP and can tell me what's wrong with my approach.","timestamp":"2025-09-04T06:44:22+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_3d3fd64d39aa3e57","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_216d53d7ca381c8d","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nc93hny","thanks_reply_id":"nc95d1b","post_score":3,"answer_score":8,"preferred_answer_is_top_level":true}} {"user_id":"anon_cdb52967e9d68aa6","answerer_user_id":"anon_8c01da9963b41ccc","subreddit":"programming","timestamp":"2025-09-09T05:31:39+00:00","post_id":"1ncan42","question":"Can a tiny server running FastAPI/SQLite survive the hug of death?\n\nI run tiny indie apps on a Linux box. On a good day, I get \\~300 visitors. But what if I hit a lot of traffic? Could my box survive the *hug of death*?\n\nSo I load tested it:\n\n* Reads? 100 RPS with no errors.\n* Writes? Fine after enabling WAL.\n* Search? Broke… until I switched to SQLite FTS5.","preferred_answer":"Really enjoyed the article and I'm impressed with how much you got out of a cheap VPS. Just a heads up though, you link to an RSS feed that doesn't exist","full_conversation":[{"role":"OP","user_id":"anon_cdb52967e9d68aa6","comment_id":"1ncan42","kind":"post","text":"Can a tiny server running FastAPI/SQLite survive the hug of death?\n\nI run tiny indie apps on a Linux box. On a good day, I get \\~300 visitors. But what if I hit a lot of traffic? Could my box survive the *hug of death*?\n\nSo I load tested it:\n\n* Reads? 100 RPS with no errors.\n* Writes? Fine after enabling WAL.\n* Search? Broke… until I switched to SQLite FTS5.","timestamp":"2025-09-09T05:31:39+00:00","score":298},{"role":"answerer","user_id":"anon_8c01da9963b41ccc","comment_id":"nde6lsx","kind":"comment","text":"Really enjoyed the article and I'm impressed with how much you got out of a cheap VPS. Just a heads up though, you link to an RSS feed that doesn't exist","timestamp":"2025-09-10T04:40:32+00:00","score":2},{"role":"OP","user_id":"anon_cdb52967e9d68aa6","comment_id":"ndfkp4l","kind":"comment","text":"Thank you very much. \nWhat RSS feed are you referring to?","timestamp":"2025-09-10T12:01:13+00:00","score":1},{"role":"answerer","user_id":"anon_8c01da9963b41ccc","comment_id":"ndjxo34","kind":"comment","text":"Your pages have the meta tag: \\`\\` saying the RSS feed should be at [https://rafaelviana.com/feed.xml](https://rafaelviana.com/feed.xml) but that address returns a 404","timestamp":"2025-09-11T00:52:10+00:00","score":2},{"role":"OP","user_id":"anon_cdb52967e9d68aa6","comment_id":"nds7yka","kind":"comment","text":"🤦‍♂️ total oversight on my part. \nthanks for pointing it out.\n\n[https://rafaelviana.com/feed.xml](https://rafaelviana.com/feed.xml) should work now.","timestamp":"2025-09-12T08:47:34+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_cdb52967e9d68aa6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8c01da9963b41ccc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nde6lsx","thanks_reply_id":"ndfkp4l","post_score":298,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_a48507cdeaba27ad","answerer_user_id":"anon_72cd398e82c4d253","subreddit":"programming","timestamp":"2025-09-11T19:28:59+00:00","post_id":"1nei4ig","question":"The Real Reasons Why Developers Burnout\n\nWhen people talk about “developer burnout,” the assumption is usually that engineers are working too many hours, drowning in code. But after 20+ years in this industry, I’ve rarely seen burnout caused by too much coding.\n\nInstead, developers burn out because of the environment around coding:\n\n\\* Unclear priorities — constant shifting goals, wasted effort.\n\n\\* Constant interruptions — meetings, Slack pings, context switching.\n\n\\* Politics — decisions driven by ego instead of merit.\n\nCode complexity can be hard, but it’s logical. You can refactor it, test it, improve it. Chaos is different. You can’t debug interruptions, or refactor unclear priorities. And chaos amplifies complexity, making hard problems feel impossible.\n\nMy recommendations for developers stuck in these environments:\n\n\\* Protect blocks of deep work time.\n\n\\* Push for written, stable priorities.\n\n\\* Reduce nonessential notifications/meetings.\n\n\\* Build allies who also value focus.\n\n\\* Track and show the costs of interruptions and shifting goals.\n\n\\* Know when to walk away from cultures that won’t change.\n\n\n\nThoughts?","preferred_answer":"Lesson learned for next time. I saw the obvious GPT summary and ignored the post. If I opened the post and saw an AI image for the hero I'd also skip it.","full_conversation":[{"role":"OP","user_id":"anon_a48507cdeaba27ad","comment_id":"1nei4ig","kind":"post","text":"The Real Reasons Why Developers Burnout\n\nWhen people talk about “developer burnout,” the assumption is usually that engineers are working too many hours, drowning in code. But after 20+ years in this industry, I’ve rarely seen burnout caused by too much coding.\n\nInstead, developers burn out because of the environment around coding:\n\n\\* Unclear priorities — constant shifting goals, wasted effort.\n\n\\* Constant interruptions — meetings, Slack pings, context switching.\n\n\\* Politics — decisions driven by ego instead of merit.\n\nCode complexity can be hard, but it’s logical. You can refactor it, test it, improve it. Chaos is different. You can’t debug interruptions, or refactor unclear priorities. And chaos amplifies complexity, making hard problems feel impossible.\n\nMy recommendations for developers stuck in these environments:\n\n\\* Protect blocks of deep work time.\n\n\\* Push for written, stable priorities.\n\n\\* Reduce nonessential notifications/meetings.\n\n\\* Build allies who also value focus.\n\n\\* Track and show the costs of interruptions and shifting goals.\n\n\\* Know when to walk away from cultures that won’t change.\n\n\n\nThoughts?","timestamp":"2025-09-11T19:28:59+00:00","score":0},{"role":"answerer","user_id":"anon_72cd398e82c4d253","comment_id":"ndp2y40","kind":"comment","text":"Lesson learned for next time. I saw the obvious GPT summary and ignored the post. If I opened the post and saw an AI image for the hero I'd also skip it.","timestamp":"2025-09-11T20:14:50+00:00","score":3},{"role":"OP","user_id":"anon_a48507cdeaba27ad","comment_id":"ndp3eji","kind":"comment","text":"Interesting. Thanks for the feedback. I suck at photoshop, and I thought an AI generated image would be better than stock image, but maybe I was wrong.\n\nAnd true.. the summary here was lazy, lesson learned!","timestamp":"2025-09-11T20:17:02+00:00","score":2},{"role":"answerer","user_id":"anon_72cd398e82c4d253","comment_id":"ndpe9je","kind":"comment","text":"I try to use free stock images off unsplash or similar - I can usually find one with a couple of minutes of effort.\n\nSeems kind of ironic to say \"put in more effort\" on a blog post about burnout 😅","timestamp":"2025-09-11T21:09:55+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_a48507cdeaba27ad","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_72cd398e82c4d253","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ndp2y40","thanks_reply_id":"ndp3eji","post_score":0,"answer_score":3,"preferred_answer_is_top_level":false}} {"user_id":"anon_4ed026de1136bcaa","answerer_user_id":"anon_32a48ec459fded45","subreddit":"programming","timestamp":"2025-09-28T19:24:10+00:00","post_id":"1nsx4o8","question":"My early years as a programmer: 1997-2002\n\nI am a software industry veteran of soon to be 20 years. Here is part one of a series of blog posts where I share my journey in tech starting as a teenager in the late 90s starting on a graphing calculator.\n\nHow did you get your start in programming?","preferred_answer":"Thanks for sharing, I really enjoy these types of articles and comparing against my own experiences (I started a little bit earlier). Looking forward to reading the sequels.","full_conversation":[{"role":"OP","user_id":"anon_4ed026de1136bcaa","comment_id":"1nsx4o8","kind":"post","text":"My early years as a programmer: 1997-2002\n\nI am a software industry veteran of soon to be 20 years. Here is part one of a series of blog posts where I share my journey in tech starting as a teenager in the late 90s starting on a graphing calculator.\n\nHow did you get your start in programming?","timestamp":"2025-09-28T19:24:10+00:00","score":22},{"role":"answerer","user_id":"anon_32a48ec459fded45","comment_id":"ngqqjov","kind":"comment","text":"Thanks for sharing, I really enjoy these types of articles and comparing against my own experiences (I started a little bit earlier). Looking forward to reading the sequels.","timestamp":"2025-09-28T23:57:32+00:00","score":2},{"role":"OP","user_id":"anon_4ed026de1136bcaa","comment_id":"ngr4us8","kind":"comment","text":"Thank you for your kind words! Were you already in the industry during the dot com bubble?","timestamp":"2025-09-29T01:23:28+00:00","score":1},{"role":"answerer","user_id":"anon_32a48ec459fded45","comment_id":"ngr6x9m","kind":"comment","text":"Yes, I got my first development job in 1990 and retired at the start of this year - so 35 years of what feels like repetitive boom and bust cycles.\n\nThe Y2K issue was probably my first one, the dot com bubble didn't have as big an impact in Australia, there weren't a lot of jobs around that in the regional area where I lived.\n\nMy first jobs were in industrial control and embedded systems which provided fairly consistent work regardless of what particular trend was in play at the time.","timestamp":"2025-09-29T01:35:52+00:00","score":2},{"role":"OP","user_id":"anon_4ed026de1136bcaa","comment_id":"ngrdzmi","kind":"comment","text":"Congrats on your retirement! Must be a relief to not have to deal with the turmoil and changes brought on by AI.","timestamp":"2025-09-29T02:16:55+00:00","score":1},{"role":"answerer","user_id":"anon_32a48ec459fded45","comment_id":"ngrgugm","kind":"comment","text":"Thanks! Took a little while to adapt to the change but it's so nice to go back to what I got into computers for in the first place - working on interesting and challenging problems because I want to, not just to squeeze another 3c/month revenue out of each user.\n\nMy views on AI are complicated, it's an amazing technology with a lot of promise (and extremely useful already) but it's also incredibly over hyped. What management thinks it can do now is completely unrealistic, I think there is going to be a glut of unresolved technical debt in the near future that will cause major security and stability issues. AI proponents say that improvements in the technology will help resolve them but I don't see that myself.\n\nWhat I do enjoy is having something like Copilot or Cursor agent as a 24/7 pair programming buddy to work with on my personal projects. Not 'vibe coding' but considering alternative implementations, helping me understand unfamiliar frameworks and libraries and generating the boring boiler plate code. I get so much more done while still understanding all the code and why it's there.\n\nAnyway, I got off track a bit. Thanks again for the blog link, you've inspired me to start writing about my own experiences.","timestamp":"2025-09-29T02:33:57+00:00","score":2},{"role":"OP","user_id":"anon_4ed026de1136bcaa","comment_id":"ngtgkfr","kind":"comment","text":"Let me know when you have some stuff written-up!","timestamp":"2025-09-29T12:38:10+00:00","score":1}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_4ed026de1136bcaa","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_32a48ec459fded45","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ngqqjov","thanks_reply_id":"ngr4us8","post_score":22,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_8e7ca21db4f45021","answerer_user_id":"anon_1148c4df26b9cdba","subreddit":"programming","timestamp":"2025-10-12T03:36:11+00:00","post_id":"1o4ex3p","question":"Why I built the same REST API in 5 languages (C#, Java, Go, TypeScript, Python)","preferred_answer":"This would be more interesting if you'd posted some insights or opinions about your experience. Which framework did you use? Was the experience significantly different between languages? Were there any challenges particular to each language? Where did each language excel?","full_conversation":[{"role":"OP","user_id":"anon_8e7ca21db4f45021","comment_id":"1o4ex3p","kind":"post","text":"Why I built the same REST API in 5 languages (C#, Java, Go, TypeScript, Python)","timestamp":"2025-10-12T03:36:11+00:00","score":0},{"role":"answerer","user_id":"anon_1148c4df26b9cdba","comment_id":"nj1xmnu","kind":"comment","text":"This would be more interesting if you'd posted some insights or opinions about your experience. Which framework did you use? Was the experience significantly different between languages? Were there any challenges particular to each language? Where did each language excel?","timestamp":"2025-10-12T04:21:20+00:00","score":5},{"role":"OP","user_id":"anon_8e7ca21db4f45021","comment_id":"nj3mcjl","kind":"comment","text":"Thanks for your feedback. Post updated.","timestamp":"2025-10-12T13:34:40+00:00","score":2},{"role":"answerer","user_id":"anon_1148c4df26b9cdba","comment_id":"nj3p8mn","kind":"comment","text":"I appreciate the update. It's a commendable effort to re-implement the same API in multiple languages. Well done.","timestamp":"2025-10-12T13:52:43+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_8e7ca21db4f45021","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1148c4df26b9cdba","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nj1xmnu","thanks_reply_id":"nj3mcjl","post_score":0,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_237c3bcf6e130eb9","answerer_user_id":"anon_e0aafd7113d215da","subreddit":"programming","timestamp":"2025-11-03T13:38:25+00:00","post_id":"1onbzch","question":"How to Get Meaningful Feedback on Your Design Document","preferred_answer":"This is a great article. Definitely worth reading, regardless of career level.\n\nIn terms of where to do these documents, Confluence is surprisingly good. It has both comments and version history. Strongly prefer MediaWiki for everything else, but it succeeds in this niche.","full_conversation":[{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"1onbzch","kind":"post","text":"How to Get Meaningful Feedback on Your Design Document","timestamp":"2025-11-03T13:38:25+00:00","score":6},{"role":"answerer","user_id":"anon_e0aafd7113d215da","comment_id":"nmwyiz4","kind":"comment","text":"This is a great article. Definitely worth reading, regardless of career level.\n\nIn terms of where to do these documents, Confluence is surprisingly good. It has both comments and version history. Strongly prefer MediaWiki for everything else, but it succeeds in this niche.","timestamp":"2025-11-03T17:46:32+00:00","score":3},{"role":"OP","user_id":"anon_237c3bcf6e130eb9","comment_id":"nmxosnb","kind":"comment","text":"Thanks for reading! I've only used Confluence at one job,but I found it pretty awkward to work with. Maybe because it was a German-run server, and so it sometimes the UI accidentally defaulted to German even though I set it to English. I haven't tried MediaWiki for this, but that's a good tip!","timestamp":"2025-11-03T19:53:48+00:00","score":2},{"role":"answerer","user_id":"anon_e0aafd7113d215da","comment_id":"nmxwpcx","kind":"comment","text":"This definitely isn’t a plug for Confluence. Overall I find it to be pretty mediocre, but checks all 3 of your boxes for design review software.\n\nI don’t think MediaWiki has any comment functionality, so I don’t think it would work at all.","timestamp":"2025-11-03T20:31:46+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_237c3bcf6e130eb9","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_e0aafd7113d215da","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nmwyiz4","thanks_reply_id":"nmxosnb","post_score":6,"answer_score":3,"preferred_answer_is_top_level":true}} {"user_id":"anon_4824c2f144b9379e","answerer_user_id":"anon_7e029239f33f11fc","subreddit":"programming","timestamp":"2025-11-09T22:37:56+00:00","post_id":"1osx289","question":"What do noise functions sound like?","preferred_answer":"There's some crazy crackle on the brown noise, I think because it's clipping too much. Maybe the `decay` isn't leaky enough?\n\n[Here's a reference brown noise.](https://www.audiocheck.net/testtones_brownnoise.php)\n\nIn the audio world, it's also common to produce brown noise by generating white noise and putting a 1-pole low pass filter on it to get the characteristic -6 dB/oct, instead of doing an actual random walk.","full_conversation":[{"role":"OP","user_id":"anon_4824c2f144b9379e","comment_id":"1osx289","kind":"post","text":"What do noise functions sound like?","timestamp":"2025-11-09T22:37:56+00:00","score":22},{"role":"answerer","user_id":"anon_7e029239f33f11fc","comment_id":"no433df","kind":"comment","text":"There's some crazy crackle on the brown noise, I think because it's clipping too much. Maybe the `decay` isn't leaky enough?\n\n[Here's a reference brown noise.](https://www.audiocheck.net/testtones_brownnoise.php)\n\nIn the audio world, it's also common to produce brown noise by generating white noise and putting a 1-pole low pass filter on it to get the characteristic -6 dB/oct, instead of doing an actual random walk.","timestamp":"2025-11-10T14:46:36+00:00","score":1},{"role":"OP","user_id":"anon_4824c2f144b9379e","comment_id":"no5bnuy","kind":"comment","text":"Ooh, thanks for pointing that out. I'll fix that","timestamp":"2025-11-10T18:26:00+00:00","score":2},{"role":"answerer","user_id":"anon_7e029239f33f11fc","comment_id":"no5d6hd","kind":"comment","text":"Np!\n\nSide-note: I've been kicking around the idea recently of implementing some audio generators for some of these noises that aren't super common in audio contexts (basically everything below Brownian in your post), so this was a well-timed post for me, haha","timestamp":"2025-11-10T18:33:17+00:00","score":1},{"role":"OP","user_id":"anon_4824c2f144b9379e","comment_id":"no6s4p0","kind":"comment","text":"I got it fixed, the brown noise sounds much better now. Thanks again!","timestamp":"2025-11-10T22:53:58+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_4824c2f144b9379e","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7e029239f33f11fc","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"no433df","thanks_reply_id":"no5bnuy","post_score":22,"answer_score":1,"preferred_answer_is_top_level":true}} {"user_id":"anon_7bf7ca8cac3f2930","answerer_user_id":"anon_dc508fac12a3fbd9","subreddit":"programming","timestamp":"2025-11-13T12:19:31+00:00","post_id":"1ovzlnp","question":"TidesDB vs RocksDB: Which Storage Engine is Faster?","preferred_answer":"The whole of Facebook runs on MyRocks (a MySQL storage engine built on top of RocksDB). Getting a 10-15% performance boost on their core database layer would be a project of a lifetime. You're claiming close to 2x performance improvements under \"most\" (for your arbitrary definition of \"most\") workloads, in a project that's just over a year old.\n\nThat by itself makes me doubtful, but I'd be willing to consider it from somebody with a proven track record... which you don't have. Not one single position in a large system of any description.\n\nStill, I'd be willing to give you the benefit of the doubt if you provided some sort of architecture review where you clearly explained why your design is so damned fast... except you don't have any sort of technical overview _at all_.\n\nThe cherry on top is your test rig. You're using spinning platter HDDs, on a cache-starved consumer CPU, with fairly little RAM, and you're benchmarking a storage system that was designed specifically for fast storage on server hardware. Don't get me wrong — we work with the hardware we have, there's no criticism there. But it's a completely unrealistic test setup, and your measurements are completely useless for real world workloads.","full_conversation":[{"role":"OP","user_id":"anon_7bf7ca8cac3f2930","comment_id":"1ovzlnp","kind":"post","text":"TidesDB vs RocksDB: Which Storage Engine is Faster?","timestamp":"2025-11-13T12:19:31+00:00","score":0},{"role":"answerer","user_id":"anon_dc508fac12a3fbd9","comment_id":"nonxnt1","kind":"comment","text":"The whole of Facebook runs on MyRocks (a MySQL storage engine built on top of RocksDB). Getting a 10-15% performance boost on their core database layer would be a project of a lifetime. You're claiming close to 2x performance improvements under \"most\" (for your arbitrary definition of \"most\") workloads, in a project that's just over a year old.\n\nThat by itself makes me doubtful, but I'd be willing to consider it from somebody with a proven track record... which you don't have. Not one single position in a large system of any description.\n\nStill, I'd be willing to give you the benefit of the doubt if you provided some sort of architecture review where you clearly explained why your design is so damned fast... except you don't have any sort of technical overview _at all_.\n\nThe cherry on top is your test rig. You're using spinning platter HDDs, on a cache-starved consumer CPU, with fairly little RAM, and you're benchmarking a storage system that was designed specifically for fast storage on server hardware. Don't get me wrong — we work with the hardware we have, there's no criticism there. But it's a completely unrealistic test setup, and your measurements are completely useless for real world workloads.","timestamp":"2025-11-13T17:30:25+00:00","score":4},{"role":"OP","user_id":"anon_7bf7ca8cac3f2930","comment_id":"nop6tov","kind":"comment","text":"Harsh but I appreciate the comment. I will continue to strive to everyone’s ideals! Have a great day.","timestamp":"2025-11-13T21:13:25+00:00","score":0},{"role":"answerer","user_id":"anon_dc508fac12a3fbd9","comment_id":"nopmd3s","kind":"comment","text":"You're right, sorry, my tone was too harsh. You happened to pick on a system I'm personally familiar with, and I overreacted.\n\nTo be a bit more constructive, and put things in perspective: While I was at Facebook, I worked on [Scribe](https://engineering.fb.com/2019/10/07/core-infra/scribe/), which is their internal Kafka-like message queue. Here's one particularly interesting architectural change we made back then.\n\nFor context, we were one of the few teams whose storage were prohibitively expensive to meet with SSDs, so we were stuck with HDD-based storage nodes. The problem is, HDDs are IOPS-starved, so, to keep up with our throughput needs (we were doing around 1.5TB/s when I left, the article quotes around 2.5TB/s ingestion at time of writing), so we ended up having to use loads of nodes, while sitting on a bunch of unused disk space.\n\nBeing IOPS starved means that random seeks are impractical, so all writes are append-only, into as few different files as possible. But that means that deleting expired records and then compacting the files requires a whole bunch of seeking...\n\nThe trade-off we discussed, and that [the storage team](https://engineering.fb.com/2017/08/31/core-infra/logdevice-a-distributed-data-store-for-logs/) ended up implementing, was: we can afford to waste a bunch of disk space, if that saves us IOPS.\n\nHow this worked in practice: We aggressively reduced the number of options our users had in terms of retention policies for their topics (so data that lasted a day or two before would now last a week, that sort of thing), and we tweaked the routing layer so it would specifically co-locate data with similar retention policies. So now we're storing more data, but trimming expired records becomes a simple matter of either deleting or truncating files, and those are, comparatively, _extremely_ cheap operations.","timestamp":"2025-11-13T22:32:39+00:00","score":2},{"role":"OP","user_id":"anon_7bf7ca8cac3f2930","comment_id":"nopxk3b","kind":"comment","text":"I agree with you. I love the passion, you’re talking to another passionate one. Thank you for the story and info, it’s good to know these things and from many people to think about future optimizations, tests, benchmarks, what to try to break etc. Heads will collide. My next revisions I’ll try to include many disk type, and more io, it’s expensive for little old me currently but I’m working towards it the only ways I know how!! Cheers","timestamp":"2025-11-13T23:35:31+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_7bf7ca8cac3f2930","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_dc508fac12a3fbd9","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nonxnt1","thanks_reply_id":"nop6tov","post_score":0,"answer_score":4,"preferred_answer_is_top_level":false}} {"user_id":"anon_b477753e11ef235b","answerer_user_id":"anon_85e35bffd3133f57","subreddit":"programming","timestamp":"2025-11-24T16:48:52+00:00","post_id":"1p5m5n2","question":"Why Electronic Voting is a BAD Idea - Why you can't program your way to election integrity","preferred_answer":"Lmao, love seeing you dig your heels in deeper. Your argument is that you don't know what human error is and need us to explain it to you?\n\nYou're intentionally deluding yourself, and maybe even need help.","full_conversation":[{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"1p5m5n2","kind":"post","text":"Why Electronic Voting is a BAD Idea - Why you can't program your way to election integrity","timestamp":"2025-11-24T16:48:52+00:00","score":799},{"role":"answerer","user_id":"anon_85e35bffd3133f57","comment_id":"nql6auc","kind":"comment","text":"Lmao, love seeing you dig your heels in deeper. Your argument is that you don't know what human error is and need us to explain it to you?\n\nYou're intentionally deluding yourself, and maybe even need help.","timestamp":"2025-11-24T20:21:32+00:00","score":1},{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"nqlb6pm","kind":"comment","text":"I'm still waiting for a specific example of user error that is solved with a electronic voting machine. And I'll wait forever because you don't have an argument.","timestamp":"2025-11-24T20:45:56+00:00","score":3},{"role":"answerer","user_id":"anon_85e35bffd3133f57","comment_id":"nqlzn94","kind":"comment","text":"I present to you u/developer-mike's Razor:\n\nWhen one demands proof of the obvious, their demands can obviously be ignored.\n\nYou're waiting for proof of something obvious and I'm happy for you to waste your time waiting rather than admitting you're wrong.","timestamp":"2025-11-24T22:51:24+00:00","score":0},{"role":"OP","user_id":"anon_b477753e11ef235b","comment_id":"nqmbjvp","kind":"comment","text":"If it was so obvious, you would have actually offered an example by now. But at this point it's clear that you're just bluffing and are just wasting my time.","timestamp":"2025-11-25T00:01:33+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_85e35bffd3133f57","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nql6auc","thanks_reply_id":"nqlb6pm","post_score":799,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_30e1ab444019eb5a","answerer_user_id":"anon_489ece2dad3600fa","subreddit":"programming","timestamp":"2025-11-29T06:58:30+00:00","post_id":"1p9icgh","question":"What do programmers actually do besides typing code?\n\nI’ve been thinking about this. When people say “programmer,” it sounds like our job is just typing code all day. But that feels way too shallow.\nWhat are we actually doing behind the scenes? How would you describe the real work of programming beyond just writing code?","preferred_answer":"You should always see code as a liability. The less of it you write the better. If you can spend time in a meeting making people realize that what they want can be had with a small change to something else or an off the shelf solution - that's the will spent.","full_conversation":[{"role":"OP","user_id":"anon_30e1ab444019eb5a","comment_id":"1p9icgh","kind":"post","text":"What do programmers actually do besides typing code?\n\nI’ve been thinking about this. When people say “programmer,” it sounds like our job is just typing code all day. But that feels way too shallow.\nWhat are we actually doing behind the scenes? How would you describe the real work of programming beyond just writing code?","timestamp":"2025-11-29T06:58:30+00:00","score":0},{"role":"answerer","user_id":"anon_489ece2dad3600fa","comment_id":"nrciwj9","kind":"comment","text":"You should always see code as a liability. The less of it you write the better. If you can spend time in a meeting making people realize that what they want can be had with a small change to something else or an off the shelf solution - that's the will spent.","timestamp":"2025-11-29T07:34:30+00:00","score":1},{"role":"OP","user_id":"anon_30e1ab444019eb5a","comment_id":"nrcksee","kind":"comment","text":"So its true\n\nUsually people have some problems to understand my prospective\n\nThanks for understanding","timestamp":"2025-11-29T07:53:12+00:00","score":1},{"role":"answerer","user_id":"anon_489ece2dad3600fa","comment_id":"nrcrr53","kind":"comment","text":"It even extends to comments on code. I think this is advice coming from \"clean code\". Comments are only good if they are relevant, concise and up to date. Otherwise they don't improve your code, they make it worse. If you see guidelines such as \"every function should be commented\" and this is mindlessly enforced - run. It means the guidelines have been made by either juniors or non-coders and, worse yet, the seniors are not empowered to improve them.","timestamp":"2025-11-29T09:03:29+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_30e1ab444019eb5a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_489ece2dad3600fa","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nrciwj9","thanks_reply_id":"nrcksee","post_score":0,"answer_score":1,"preferred_answer_is_top_level":false}} {"user_id":"anon_eaba8484bdfe52be","answerer_user_id":"anon_1cbdb17c3e2ceaf4","subreddit":"programming","timestamp":"2025-12-25T06:40:28+00:00","post_id":"1pv7at5","question":"How Email Actually Works","preferred_answer":"Your \"RCPT TO\" section has the wrong code (HELO instead of RCPT TO)","full_conversation":[{"role":"OP","user_id":"anon_eaba8484bdfe52be","comment_id":"1pv7at5","kind":"post","text":"How Email Actually Works","timestamp":"2025-12-25T06:40:28+00:00","score":46},{"role":"answerer","user_id":"anon_1cbdb17c3e2ceaf4","comment_id":"nvu7eis","kind":"comment","text":"Your \"RCPT TO\" section has the wrong code (HELO instead of RCPT TO)","timestamp":"2025-12-25T07:08:21+00:00","score":4},{"role":"OP","user_id":"anon_eaba8484bdfe52be","comment_id":"nvu7mx7","kind":"comment","text":"Thanks for telling mate. I've fixed it.","timestamp":"2025-12-25T07:10:38+00:00","score":2},{"role":"answerer","user_id":"anon_1cbdb17c3e2ceaf4","comment_id":"nvu7vb5","kind":"comment","text":"Nice! Interesting read so far, thanks for the writeup","timestamp":"2025-12-25T07:13:00+00:00","score":3}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_eaba8484bdfe52be","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_1cbdb17c3e2ceaf4","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nvu7eis","thanks_reply_id":"nvu7mx7","post_score":46,"answer_score":4,"preferred_answer_is_top_level":true}} {"user_id":"anon_9e3f220af3c91249","answerer_user_id":"anon_ed4bc92c046a26cd","subreddit":"programming","timestamp":"2026-01-03T15:56:54+00:00","post_id":"1q2y2hc","question":"Who Owns the Memory? Part 1: What is an Object?","preferred_answer":"Eric Rescola did a pretty similar series:\n\n - [Understanding Memory Management, Part 1: C](https://educatedguesswork.org/posts/memory-management-1/)\n - [Understanding Memory Management, Part 2: C++ and RAII](https://educatedguesswork.org/posts/memory-management-2/)\n - [Understanding Memory Management, Part 3: C++ Smart Pointers](https://educatedguesswork.org/posts/memory-management-3/)\n - [Understanding Memory Management, Part 4: Rust Ownership and Borrowing\n](https://educatedguesswork.org/posts/memory-management-4/)\n - [Understanding Memory Management, Part 5: Fighting with Rust](https://educatedguesswork.org/posts/memory-management-5/)\n - [Understanding Memory Management, Part 6: Basic Garbage Collection](https://educatedguesswork.org/posts/memory-management-6/)\n - [Understanding Memory Management, Part 7: Advanced Garbage Collection](https://educatedguesswork.org/posts/memory-management-7/)","full_conversation":[{"role":"OP","user_id":"anon_9e3f220af3c91249","comment_id":"1q2y2hc","kind":"post","text":"Who Owns the Memory? Part 1: What is an Object?","timestamp":"2026-01-03T15:56:54+00:00","score":188},{"role":"answerer","user_id":"anon_ed4bc92c046a26cd","comment_id":"nxj2bev","kind":"comment","text":"Eric Rescola did a pretty similar series:\n\n - [Understanding Memory Management, Part 1: C](https://educatedguesswork.org/posts/memory-management-1/)\n - [Understanding Memory Management, Part 2: C++ and RAII](https://educatedguesswork.org/posts/memory-management-2/)\n - [Understanding Memory Management, Part 3: C++ Smart Pointers](https://educatedguesswork.org/posts/memory-management-3/)\n - [Understanding Memory Management, Part 4: Rust Ownership and Borrowing\n](https://educatedguesswork.org/posts/memory-management-4/)\n - [Understanding Memory Management, Part 5: Fighting with Rust](https://educatedguesswork.org/posts/memory-management-5/)\n - [Understanding Memory Management, Part 6: Basic Garbage Collection](https://educatedguesswork.org/posts/memory-management-6/)\n - [Understanding Memory Management, Part 7: Advanced Garbage Collection](https://educatedguesswork.org/posts/memory-management-7/)","timestamp":"2026-01-03T23:31:08+00:00","score":24},{"role":"OP","user_id":"anon_9e3f220af3c91249","comment_id":"nxlgplv","kind":"comment","text":"Wow, very cool. Didn't know its existence, thanks for sharing it","timestamp":"2026-01-04T08:51:09+00:00","score":5},{"role":"answerer","user_id":"anon_ed4bc92c046a26cd","comment_id":"nxpc7ku","kind":"comment","text":"Yours is heaps good too, look forward to the next part.","timestamp":"2026-01-04T21:56:24+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_9e3f220af3c91249","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_ed4bc92c046a26cd","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nxj2bev","thanks_reply_id":"nxlgplv","post_score":188,"answer_score":24,"preferred_answer_is_top_level":true}} {"user_id":"anon_ef44a90a0b14ba2c","answerer_user_id":"anon_7f6ca3f62484eda0","subreddit":"programming","timestamp":"2026-01-04T06:16:27+00:00","post_id":"1q3igl6","question":"Is the World Ready for Another Programming Language in 2026, Now That LLM Writes Code?\n\nI am coming up a new Language called Come ;) \nIt’s 2026. Yes, LLM writes code now. This is still happening.\n\nCome(C Object and Module Extensions) is a systems programming language inspired by C. It preserves C’s mental model while removing common pitfalls.\n\nI’m sharing **one demo file (**`come_demo.co`**)**, no spec. \nIf the language needs a manual to be readable, that’s already a failure.\n\nWhat you’ll see in the demo:\n\n* Explicit `module` , no hidden globals\n* Grouped `const / import / export / alias`\n* `const enum` with auto-increment (and explicit starts)\n* C-style functions with **multiple return values**\n* `var` for local type inference (still static)\n* `switch` with **no accidental fallthrough**\n* UTF-8 strings that are just… strings\n* map , array, string, struct, union composite type etc\n* method support for struct/union\n* No pointer\n* No malloc , use ubyte array.resize() instead\n\nGoal: **C-like performance** so we burn fewer watts in the AI era \ninstead of throwing more GPUs at problems we could’ve solved in C and hopefully save some **head-scratching** along the way.\n\nDemo attached. \nIf this makes sense without docs, that’s a win. \nIf not—tell me where it falls apart.\n\ncome\\_demo.co\n\n module main // Every source file must specify it's own module\n \n /**\n * Grouped declarations \n * New in Come: Syntactic symmetry across these 4 keywords: const, import, export, alias.\n */\n const PI = 3.14\n \n // const enum: Support for multi-item and auto-incrementing enums\n const ( \n RED = enum,\n YELLOW,\n GREEN,\n UNKNOWN,\n HL_RED = enum(8),\n HL_YELLOW,\n HL_GREEN, //tolerate extra ,\n )\n \n import (std, string) //multi items in one line\n \n // multi items in multi lines\n // Any variable and function is local until exported\n export (\n PI, \n Point, \n int add(int a, int b) \n )\n \n // alias: Unified syntax for typedefs and defines\n alias (\n tcpport_t = ushort, // Alias as typedef\n Point = struct Point, // Alias as typedef\n MAX_ARRAY = 10, // Alias as constant define\n SQUARE(x) = ((x) * (x)) // Alias as macro define\n )\n \n // Module variable: Local to module unless exported\n int module_arr[]\n \n // Union: Standard C-style memory overlap\n union TwoBytes {\n short signed_s\n ushort unsigned_s\n byte first_byte\n }\n \n // Struct: Standard composite type\n struct Rect {\n int w\n int h\n }\n \n /**\n * struct methods\n * New in Come: Define behavior directly on structs.\n * 'self' is a new keyword representing the instance itself\n */\n int Rect.area() {\n return self.w * self.h \n }\n \n int main(string args[]) {\n struct Rect r = { .w = 10, .h = 5}\n \n /**\n * New in Come: string and array are headed buffer objects.\n * .length() and .tol() are methods provided by array/string object.\n */\n \n if (args.length() > 2) {\n // .tol() is a string method replacing C's strtol()\n int w = (int) args[1].tol()\n if (ERR.no() > 0) { //ERR is a global object with .no() and .str() method\n std.err.printf(\"string %s tol error:%s\\n\", args[1], ERR.str())\n } else r.w = w\n \n int h = (int) args[2].tol();\n if (ERR.no() > 0) {\n std.err.printf(\"string %s tol error:%s\\n\", args[2], ERR.str())\n } else r.h = h\n }\n \n \n std.out.printf(\"Rect area: %d\\n\", r.area())\n \n demo_types()\n \n string pass_in = \"hello, world\"\n int r_val = demo(pass_in)\n std.out.printf(\"pass_in is [%s] now\\n\", pass_in)\n return r_val\n }\n \n void demo_types() {\n // Primitive types\n bool flag = true\n wchar w = '字' //unicode char\n byte b = 'A'\n short s = -3\n int i = 42\n long l = 1000\n i8 b1 = 'B'\n i16 s1 = -7\n i32 i1 = 412\n i64 l1 = 10000\n \n ubyte ub = 'C'\n ushort us = 9000\n uint ui = 4230000\n ulong ul = 10'000'000'000 // ' can be used as digit separator\n \n u8 ub1 = 'D'\n u16 us1 = 9001\n u32 ui1 = 4230001\n u64 ul1 = 10'000'000'001 // ' can be used as digit separator\n \n float f = 3.14\n double d = 2.718\n \n // var is a new type keyword\n // var type is realized on the first assignment\n var late_var \n late_var = s //late_var is a short now\n \n /**\n * array is for dynamic memory\n * arrays are Headered Buffers. .resize() replaces malloc/realloc.\n */\n int arr[5] = {1, 2, 3, 4, 5}\n arr.resize(MAX_ARRAY) //adjust array size \n for (int j = 5; j < MAX_ARRAY; j++) {\n arr[j] = j + 1\n }\n \n struct Rect r = { .w = 10, .h = 3 }\n \n union TwoBytes tb\n tb.unsigned_s = 0x1234;\n \n std.out.printf(\"Types: %c, %d, %f, byte: %d\\n\", b, i, d, tb.first_byte)\n \n // Print unused variables to avoid warnings\n std.out.printf(\"Unused: %d, %lc, %ld, %d, %d, %d, %ld\\n\", flag, w, l, b1, s1, i1, l1)\n std.out.printf(\"Unused unsigned: %d, %d, %d, %lu, %d, %d, %d, %lu\\n\", ub, us, ui, ul, ub1, us1, ui1, ul1)\n std.out.printf(\"Unused float/var: %f, %d, %d\\n\", f, late_var, r.w )\n }\n \n int demo(string pass_ref) //composite type is always passed by reference\n {\n pass_ref.upper()\n /**\n * switch & fallthrough: defaut is break for switch\n * 'fallthrough' is a new explicit keyword \n */\n var color = YELLOW\n switch (color) {\n case RED: std.out.printf(\"Red\\n\")\n case GREEN: std.out.printf(\"Green\\n\")\n case UNKNOWN:\n fallthrough \n default:\n std.out.printf(\"Color code: %d\\n\", color)\n }\n \n int k = 0\n while (k < 3) { k++; }\n do { k-- } while (k > 0)\n \n // Arithmetic, relational, logical, bitwise\n int x = 5\n int y = 2\n int res = (x + y) * (x - y)\n res &= 7 // bitwise AND\n res |= 2 // bitwise OR\n res ^= 1 // bitwise XOR\n res = ~res // bitwise NOT\n res <<= 1 // left shift\n res >>= 1 // right shift\n \n alias printf = std.out.printf\n \n if ((res > 0) && (res != 10)) {\n printf(\"res = %d\\n\", res)\n }\n \n printf(\"%d + %d = %d\\n\", x, y, add(x, y))\n /**\n * multiple return values\n * New in Come: Return and destructure tuples directly.\n */\n var (sum, msg) = add_n_compare(10, 20)\n printf(\"%s: %d\\n\", msg, sum)\n \n return 0\n }\n \n int add(int a, int b) {\n return a + b\n }\n \n // Multi-return function definition\n (int, string) add_n_compare(int a, int b) {\n return (a + b), (a > b) ? \"Greater\" : \"Lesser/Equal\"\n }","preferred_answer":"> Yes, LLM writes code now.\n\nIt's funny how defensive that sounds. Almost as if the AI believers desperately need to repeat it like a mantra, lest the illusion shatters.","full_conversation":[{"role":"OP","user_id":"anon_ef44a90a0b14ba2c","comment_id":"1q3igl6","kind":"post","text":"Is the World Ready for Another Programming Language in 2026, Now That LLM Writes Code?\n\nI am coming up a new Language called Come ;) \nIt’s 2026. Yes, LLM writes code now. This is still happening.\n\nCome(C Object and Module Extensions) is a systems programming language inspired by C. It preserves C’s mental model while removing common pitfalls.\n\nI’m sharing **one demo file (**`come_demo.co`**)**, no spec. \nIf the language needs a manual to be readable, that’s already a failure.\n\nWhat you’ll see in the demo:\n\n* Explicit `module` , no hidden globals\n* Grouped `const / import / export / alias`\n* `const enum` with auto-increment (and explicit starts)\n* C-style functions with **multiple return values**\n* `var` for local type inference (still static)\n* `switch` with **no accidental fallthrough**\n* UTF-8 strings that are just… strings\n* map , array, string, struct, union composite type etc\n* method support for struct/union\n* No pointer\n* No malloc , use ubyte array.resize() instead\n\nGoal: **C-like performance** so we burn fewer watts in the AI era \ninstead of throwing more GPUs at problems we could’ve solved in C and hopefully save some **head-scratching** along the way.\n\nDemo attached. \nIf this makes sense without docs, that’s a win. \nIf not—tell me where it falls apart.\n\ncome\\_demo.co\n\n module main // Every source file must specify it's own module\n \n /**\n * Grouped declarations \n * New in Come: Syntactic symmetry across these 4 keywords: const, import, export, alias.\n */\n const PI = 3.14\n \n // const enum: Support for multi-item and auto-incrementing enums\n const ( \n RED = enum,\n YELLOW,\n GREEN,\n UNKNOWN,\n HL_RED = enum(8),\n HL_YELLOW,\n HL_GREEN, //tolerate extra ,\n )\n \n import (std, string) //multi items in one line\n \n // multi items in multi lines\n // Any variable and function is local until exported\n export (\n PI, \n Point, \n int add(int a, int b) \n )\n \n // alias: Unified syntax for typedefs and defines\n alias (\n tcpport_t = ushort, // Alias as typedef\n Point = struct Point, // Alias as typedef\n MAX_ARRAY = 10, // Alias as constant define\n SQUARE(x) = ((x) * (x)) // Alias as macro define\n )\n \n // Module variable: Local to module unless exported\n int module_arr[]\n \n // Union: Standard C-style memory overlap\n union TwoBytes {\n short signed_s\n ushort unsigned_s\n byte first_byte\n }\n \n // Struct: Standard composite type\n struct Rect {\n int w\n int h\n }\n \n /**\n * struct methods\n * New in Come: Define behavior directly on structs.\n * 'self' is a new keyword representing the instance itself\n */\n int Rect.area() {\n return self.w * self.h \n }\n \n int main(string args[]) {\n struct Rect r = { .w = 10, .h = 5}\n \n /**\n * New in Come: string and array are headed buffer objects.\n * .length() and .tol() are methods provided by array/string object.\n */\n \n if (args.length() > 2) {\n // .tol() is a string method replacing C's strtol()\n int w = (int) args[1].tol()\n if (ERR.no() > 0) { //ERR is a global object with .no() and .str() method\n std.err.printf(\"string %s tol error:%s\\n\", args[1], ERR.str())\n } else r.w = w\n \n int h = (int) args[2].tol();\n if (ERR.no() > 0) {\n std.err.printf(\"string %s tol error:%s\\n\", args[2], ERR.str())\n } else r.h = h\n }\n \n \n std.out.printf(\"Rect area: %d\\n\", r.area())\n \n demo_types()\n \n string pass_in = \"hello, world\"\n int r_val = demo(pass_in)\n std.out.printf(\"pass_in is [%s] now\\n\", pass_in)\n return r_val\n }\n \n void demo_types() {\n // Primitive types\n bool flag = true\n wchar w = '字' //unicode char\n byte b = 'A'\n short s = -3\n int i = 42\n long l = 1000\n i8 b1 = 'B'\n i16 s1 = -7\n i32 i1 = 412\n i64 l1 = 10000\n \n ubyte ub = 'C'\n ushort us = 9000\n uint ui = 4230000\n ulong ul = 10'000'000'000 // ' can be used as digit separator\n \n u8 ub1 = 'D'\n u16 us1 = 9001\n u32 ui1 = 4230001\n u64 ul1 = 10'000'000'001 // ' can be used as digit separator\n \n float f = 3.14\n double d = 2.718\n \n // var is a new type keyword\n // var type is realized on the first assignment\n var late_var \n late_var = s //late_var is a short now\n \n /**\n * array is for dynamic memory\n * arrays are Headered Buffers. .resize() replaces malloc/realloc.\n */\n int arr[5] = {1, 2, 3, 4, 5}\n arr.resize(MAX_ARRAY) //adjust array size \n for (int j = 5; j < MAX_ARRAY; j++) {\n arr[j] = j + 1\n }\n \n struct Rect r = { .w = 10, .h = 3 }\n \n union TwoBytes tb\n tb.unsigned_s = 0x1234;\n \n std.out.printf(\"Types: %c, %d, %f, byte: %d\\n\", b, i, d, tb.first_byte)\n \n // Print unused variables to avoid warnings\n std.out.printf(\"Unused: %d, %lc, %ld, %d, %d, %d, %ld\\n\", flag, w, l, b1, s1, i1, l1)\n std.out.printf(\"Unused unsigned: %d, %d, %d, %lu, %d, %d, %d, %lu\\n\", ub, us, ui, ul, ub1, us1, ui1, ul1)\n std.out.printf(\"Unused float/var: %f, %d, %d\\n\", f, late_var, r.w )\n }\n \n int demo(string pass_ref) //composite type is always passed by reference\n {\n pass_ref.upper()\n /**\n * switch & fallthrough: defaut is break for switch\n * 'fallthrough' is a new explicit keyword \n */\n var color = YELLOW\n switch (color) {\n case RED: std.out.printf(\"Red\\n\")\n case GREEN: std.out.printf(\"Green\\n\")\n case UNKNOWN:\n fallthrough \n default:\n std.out.printf(\"Color code: %d\\n\", color)\n }\n \n int k = 0\n while (k < 3) { k++; }\n do { k-- } while (k > 0)\n \n // Arithmetic, relational, logical, bitwise\n int x = 5\n int y = 2\n int res = (x + y) * (x - y)\n res &= 7 // bitwise AND\n res |= 2 // bitwise OR\n res ^= 1 // bitwise XOR\n res = ~res // bitwise NOT\n res <<= 1 // left shift\n res >>= 1 // right shift\n \n alias printf = std.out.printf\n \n if ((res > 0) && (res != 10)) {\n printf(\"res = %d\\n\", res)\n }\n \n printf(\"%d + %d = %d\\n\", x, y, add(x, y))\n /**\n * multiple return values\n * New in Come: Return and destructure tuples directly.\n */\n var (sum, msg) = add_n_compare(10, 20)\n printf(\"%s: %d\\n\", msg, sum)\n \n return 0\n }\n \n int add(int a, int b) {\n return a + b\n }\n \n // Multi-return function definition\n (int, string) add_n_compare(int a, int b) {\n return (a + b), (a > b) ? \"Greater\" : \"Lesser/Equal\"\n }","timestamp":"2026-01-04T06:16:27+00:00","score":0},{"role":"answerer","user_id":"anon_7f6ca3f62484eda0","comment_id":"nxliixo","kind":"comment","text":"> Yes, LLM writes code now.\n\nIt's funny how defensive that sounds. Almost as if the AI believers desperately need to repeat it like a mantra, lest the illusion shatters.","timestamp":"2026-01-04T09:07:36+00:00","score":6},{"role":"OP","user_id":"anon_ef44a90a0b14ba2c","comment_id":"ny5wdfj","kind":"comment","text":"Thank you for your feed back. \nI hope a C level perfornace language can offer more efficient binary and save us both electricity and head scracthings ;)\n\nHere you go: \nrepo: \n[https://github.com/jamesd-comelang/come-lang/tree/main](https://github.com/jamesd-comelang/come-lang/tree/main)\n\ndeb pkg: \n[https://github.com/jamesd-comelang/come-lang/blob/main/packaging/releases/come\\_0.6.0\\_amd64.deb](https://github.com/jamesd-comelang/come-lang/blob/main/packaging/releases/come_0.6.0_amd64.deb)","timestamp":"2026-01-07T07:48:27+00:00","score":0},{"role":"answerer","user_id":"anon_7f6ca3f62484eda0","comment_id":"ny95e4a","kind":"comment","text":"> I hope a C level perfornace language \n\nWe have \"C-level-performance\" languages. They are called Rust and Go. Both of them have been painstakingly designed for many years, by teams of people who are among the best in the world at designing programming languages.\n\nWhat makes your language different or better than those? What does it offer what they do not? Why would I invest time and effort into learning it in comparison?","timestamp":"2026-01-07T19:19:22+00:00","score":1}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_ef44a90a0b14ba2c","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7f6ca3f62484eda0","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nxliixo","thanks_reply_id":"ny5wdfj","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_daa5a4bbe57dbbae","answerer_user_id":"anon_a11e2846514f2016","subreddit":"programming","timestamp":"2026-01-08T23:18:32+00:00","post_id":"1q7ricq","question":"Testing fundamentals I wish I understood earlier as a developer\n\nI’ve noticed a lot of devs (including past me) jump into frameworks before understanding why tests fail or what to test at all.\n\nI wrote a fundamentals-first piece covering:\n\n* Unit vs integration vs end-to-end\n* What makes a test useful\n* Common testing anti-patterns\n* How testing actually helps velocity long-term\n\nBlog link: [https://www.hexplain.space/blog/tt4bwNwfenmcQDT29U2e](https://www.hexplain.space/blog/tt4bwNwfenmcQDT29U2e)\n\nWhat testing concept clicked late for you?","preferred_answer":"Just a heads up: mobile version is broken, had to use a reader.","full_conversation":[{"role":"OP","user_id":"anon_daa5a4bbe57dbbae","comment_id":"1q7ricq","kind":"post","text":"Testing fundamentals I wish I understood earlier as a developer\n\nI’ve noticed a lot of devs (including past me) jump into frameworks before understanding why tests fail or what to test at all.\n\nI wrote a fundamentals-first piece covering:\n\n* Unit vs integration vs end-to-end\n* What makes a test useful\n* Common testing anti-patterns\n* How testing actually helps velocity long-term\n\nBlog link: [https://www.hexplain.space/blog/tt4bwNwfenmcQDT29U2e](https://www.hexplain.space/blog/tt4bwNwfenmcQDT29U2e)\n\nWhat testing concept clicked late for you?","timestamp":"2026-01-08T23:18:32+00:00","score":35},{"role":"answerer","user_id":"anon_a11e2846514f2016","comment_id":"nyhz7nf","kind":"comment","text":"Just a heads up: mobile version is broken, had to use a reader.","timestamp":"2026-01-08T23:49:18+00:00","score":18},{"role":"OP","user_id":"anon_daa5a4bbe57dbbae","comment_id":"nyhznit","kind":"comment","text":"Thanks man! We are working on it, it will be fixed soon.\nBtw did you checkout the whole platform?","timestamp":"2026-01-08T23:51:35+00:00","score":-1},{"role":"answerer","user_id":"anon_a11e2846514f2016","comment_id":"nyi44ar","kind":"comment","text":"Not yet, I’ll make sure to check it out.","timestamp":"2026-01-09T00:14:34+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_daa5a4bbe57dbbae","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_a11e2846514f2016","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nyhz7nf","thanks_reply_id":"nyhznit","post_score":35,"answer_score":18,"preferred_answer_is_top_level":true}} {"user_id":"anon_69736afb9c0f255a","answerer_user_id":"anon_c8c053972e137eb2","subreddit":"programming","timestamp":"2026-01-13T13:57:26+00:00","post_id":"1qbrz59","question":"Why I Don’t Trust Software I Didn’t Suffer For\n\nI’ve been thinking a lot about why AI-generated software makes me uneasy, and it’s not about quality or correctness.\n\nI realized the discomfort comes from a deeper place: when humans write software, trust flows through the human. When machines write it, trust collapses into reliability metrics. And from experience, I know a system can be reliable and still not trustworthy.\nI wrote an essay exploring that tension: effort, judgment, ownership, and what happens when software exists before we’ve built any real intimacy with it.\n\nNot arguing that one is better than the other. Mostly trying to understand why I react the way I do and whether that reaction still makes sense.\n\nCurious how others here think about trust vs reliability in this new context.","preferred_answer":"AI is an accountability black hole","full_conversation":[{"role":"OP","user_id":"anon_69736afb9c0f255a","comment_id":"1qbrz59","kind":"post","text":"Why I Don’t Trust Software I Didn’t Suffer For\n\nI’ve been thinking a lot about why AI-generated software makes me uneasy, and it’s not about quality or correctness.\n\nI realized the discomfort comes from a deeper place: when humans write software, trust flows through the human. When machines write it, trust collapses into reliability metrics. And from experience, I know a system can be reliable and still not trustworthy.\nI wrote an essay exploring that tension: effort, judgment, ownership, and what happens when software exists before we’ve built any real intimacy with it.\n\nNot arguing that one is better than the other. Mostly trying to understand why I react the way I do and whether that reaction still makes sense.\n\nCurious how others here think about trust vs reliability in this new context.","timestamp":"2026-01-13T13:57:26+00:00","score":91},{"role":"answerer","user_id":"anon_c8c053972e137eb2","comment_id":"nzcsr2m","kind":"comment","text":"AI is an accountability black hole","timestamp":"2026-01-13T14:15:21+00:00","score":130},{"role":"OP","user_id":"anon_69736afb9c0f255a","comment_id":"nzd8rhi","kind":"comment","text":"Thank you, I feel like you're the only one who gets where I'm going with this.","timestamp":"2026-01-13T15:35:36+00:00","score":14},{"role":"answerer","user_id":"anon_c8c053972e137eb2","comment_id":"nzdl819","kind":"comment","text":"you should read the book the unaccountability machine or watch the latest video by unlearning economics","timestamp":"2026-01-13T16:32:42+00:00","score":3},{"role":"OP","user_id":"anon_69736afb9c0f255a","comment_id":"nzdsi1b","kind":"comment","text":"I will, thanks for the suggestion","timestamp":"2026-01-13T17:17:24+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_69736afb9c0f255a","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_c8c053972e137eb2","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"nzcsr2m","thanks_reply_id":"nzd8rhi","post_score":91,"answer_score":130,"preferred_answer_is_top_level":true}} {"user_id":"anon_766da84f2bcd80d6","answerer_user_id":"anon_0c3c27d64435f8e3","subreddit":"programming","timestamp":"2026-01-17T18:52:33+00:00","post_id":"1qflgvq","question":"How to Build Decentralized Web Apps on Freenet Using Rust and WebAssembly","preferred_answer":"Extremely cool. I'll be reading more about this. I feel that infra is not as much of a problem as routing. DNS is a big part of how the Internet is censored.","full_conversation":[{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"1qflgvq","kind":"post","text":"How to Build Decentralized Web Apps on Freenet Using Rust and WebAssembly","timestamp":"2026-01-17T18:52:33+00:00","score":38},{"role":"answerer","user_id":"anon_0c3c27d64435f8e3","comment_id":"o05vccw","kind":"comment","text":"Extremely cool. I'll be reading more about this. I feel that infra is not as much of a problem as routing. DNS is a big part of how the Internet is censored.","timestamp":"2026-01-17T19:57:39+00:00","score":13},{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"o05wllw","kind":"comment","text":"Thank you and agreed. Freenet avoids centrally administered DNS entirely — services are addressed by cryptographic identities rather than names assigned by an authority.\n\nRouting and discovery are handled within the network itself, so there’s no external naming system to censor or revoke in the usual DNS sense.","timestamp":"2026-01-17T20:03:58+00:00","score":3},{"role":"answerer","user_id":"anon_0c3c27d64435f8e3","comment_id":"o05z8d0","kind":"comment","text":"Really nice and thank you for the explanation. Sounds like almost all the angles are covered. Not an easy feat. \n\nAs much as I think the crypto craze is cancerous and overhyped, I do feel ledgers could have some sort of role in incentivizing decentralized hosting and bandwidth. There have been a few attempts with storage that I've seen. Have you thought at all about that? It's obviously very complex to implement.","timestamp":"2026-01-17T20:17:22+00:00","score":1},{"role":"OP","user_id":"anon_766da84f2bcd80d6","comment_id":"o060qo5","kind":"comment","text":"I agree incentives are a real challenge, and we’ve thought about it — but we’ve been cautious about putting a ledger or token into the core, since that kind of economic layer tends to dominate the design in ways that don’t always help the protocol.\n\nNothing prevents incentive mechanisms from being built on top of Freenet if there’s a concrete design that actually improves hosting or bandwidth rather than adding complexity. There are also primitives like [Ghost Keys](https://freenet.org/news/introducing-ghost-keys/) — a decentralized identity/reputation approach — that help with sybil-resistance and accountability without introducing a token or ledger.\n\nSo it’s less “ruled out” than “postponed until there’s a clear, non-speculative design\".","timestamp":"2026-01-17T20:25:04+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_766da84f2bcd80d6","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_0c3c27d64435f8e3","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"o05vccw","thanks_reply_id":"o05wllw","post_score":38,"answer_score":13,"preferred_answer_is_top_level":true}} {"user_id":"anon_e104946ba9e18cab","answerer_user_id":"anon_8f5d242bb99f3f51","subreddit":"programming","timestamp":"2026-01-25T12:30:56+00:00","post_id":"1qmhw95","question":"I got tired of manual priority weights in proxies so I used a Reverse Radix Tree instead\n\nMost reverse proxies like Nginx or Traefik handle domain rules in the order you write them or by using those annoying \"priority\" tags. If you have overlapping wildcards, like `*.myapp.test` and `api.myapp.test`, you usally have to play \"Priority Tetris\" to make sure the right rule wins.\n\nI wanted something more deterministic and intuitive. I wanted a system where the most specific match always wins without me having to tinker with config weights every time I add a subdomain.\n\nI ended up building a Reverse Radix Tree. The basic idea is that domain hierarchy is actualy right to left: `test` \\-> `myapp` \\-> `api`. By splitting the domain by the dots and reversing the segments before putting them in the tree, the data structure finaly matches the way DNS actually works.\n\nTo handle cases where multiple patterns might match (like `api-*` vs `*`), I added a \"Literal Density\" score. The resolver counts how many non-wildcard characters are in a segment and tries the \"densest\" (most specific) ones first. This happens naturaly as you walk down the tree, so the hierarchy itself acts as a filter.\n\nI wrote a post about the logic, how the scoring works, and how I use named parameters to hydrate dynamic upstreams:\n\n[https://getlode.app/blog/2026-01-25-stop-playing-priority-tetris](https://getlode.app/blog/2026-01-25-stop-playing-priority-tetris)\n\nHow do you guys handle complex wildcard routing? Do you find manual weights a necesary evil or would you prefer a hierarchical approach like this?","preferred_answer":"I'm not sure why so many people are saying it's overly complex. Like you said, DNS operates on a right-to-left paradigm for domain parsing, and no one questions that. Java has also been organizing source code in exactly the same manner for decades, so it's not a novel organization system for source code either.\n\nI've implemented a fair share of fuzzy match utilities, but I've never tried to apply a radix sort to the character set. I'm glad it works for you, but I would personally find it rather limiting to need to implement a string-based radix sort. Pattern matching with the comparison of the lengths between match and pattern has always been a pretty safe bet for me in these situations, but I don't have the traffic to back that claim up.\n\nEither way, it was a decent write-up, so thanks for sharing","full_conversation":[{"role":"OP","user_id":"anon_e104946ba9e18cab","comment_id":"1qmhw95","kind":"post","text":"I got tired of manual priority weights in proxies so I used a Reverse Radix Tree instead\n\nMost reverse proxies like Nginx or Traefik handle domain rules in the order you write them or by using those annoying \"priority\" tags. If you have overlapping wildcards, like `*.myapp.test` and `api.myapp.test`, you usally have to play \"Priority Tetris\" to make sure the right rule wins.\n\nI wanted something more deterministic and intuitive. I wanted a system where the most specific match always wins without me having to tinker with config weights every time I add a subdomain.\n\nI ended up building a Reverse Radix Tree. The basic idea is that domain hierarchy is actualy right to left: `test` \\-> `myapp` \\-> `api`. By splitting the domain by the dots and reversing the segments before putting them in the tree, the data structure finaly matches the way DNS actually works.\n\nTo handle cases where multiple patterns might match (like `api-*` vs `*`), I added a \"Literal Density\" score. The resolver counts how many non-wildcard characters are in a segment and tries the \"densest\" (most specific) ones first. This happens naturaly as you walk down the tree, so the hierarchy itself acts as a filter.\n\nI wrote a post about the logic, how the scoring works, and how I use named parameters to hydrate dynamic upstreams:\n\n[https://getlode.app/blog/2026-01-25-stop-playing-priority-tetris](https://getlode.app/blog/2026-01-25-stop-playing-priority-tetris)\n\nHow do you guys handle complex wildcard routing? Do you find manual weights a necesary evil or would you prefer a hierarchical approach like this?","timestamp":"2026-01-25T12:30:56+00:00","score":98},{"role":"answerer","user_id":"anon_8f5d242bb99f3f51","comment_id":"o1s6c73","kind":"comment","text":"I'm not sure why so many people are saying it's overly complex. Like you said, DNS operates on a right-to-left paradigm for domain parsing, and no one questions that. Java has also been organizing source code in exactly the same manner for decades, so it's not a novel organization system for source code either.\n\nI've implemented a fair share of fuzzy match utilities, but I've never tried to apply a radix sort to the character set. I'm glad it works for you, but I would personally find it rather limiting to need to implement a string-based radix sort. Pattern matching with the comparison of the lengths between match and pattern has always been a pretty safe bet for me in these situations, but I don't have the traffic to back that claim up.\n\nEither way, it was a decent write-up, so thanks for sharing","timestamp":"2026-01-26T07:53:28+00:00","score":5},{"role":"OP","user_id":"anon_e104946ba9e18cab","comment_id":"o1sa77o","kind":"comment","text":"Thank you! The funny thing is that I implemented it this way because I truly believe it feels most natural when working with a lot of different domains","timestamp":"2026-01-26T08:27:20+00:00","score":3},{"role":"answerer","user_id":"anon_8f5d242bb99f3f51","comment_id":"o1uhqoi","kind":"comment","text":"I think that's one major difference between my work and yours. I haven't had to manage multiple domains, or route by `Host` header, you know? Most everything has been path-based routing, which, I'm sure you'll agree, is trivial by comparison lol","timestamp":"2026-01-26T16:45:29+00:00","score":2},{"role":"OP","user_id":"anon_e104946ba9e18cab","comment_id":"o1z2rt6","kind":"comment","text":"Yeah, that's a whole different usecase. In my job I have to manage a large SAAS with multi tenancy through subdomains. It has like 10 backend services and 5 different clients all with wildcards.\n\nAdd on top that I use the same computer for my personal projects, and it's one huge configuration mess","timestamp":"2026-01-27T06:50:15+00:00","score":2}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_e104946ba9e18cab","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_8f5d242bb99f3f51","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"o1s6c73","thanks_reply_id":"o1sa77o","post_score":98,"answer_score":5,"preferred_answer_is_top_level":true}} {"user_id":"anon_27ceb8ad4dab1cb4","answerer_user_id":"anon_5470bdf20adbd5b5","subreddit":"programming","timestamp":"2026-02-04T06:28:42+00:00","post_id":"1qvh426","question":"Why I am switching from Arch (Manjaro) to Debian\n\nArch is a rolling release distro with the latest release of each package always available. It has one of the largest no. of packages. However, as I grew from a tech enthusiast to a seasoned developer, I am starting to value stability over latest tech. Hence, I am planning to switch to Debian.\n\n \nDebian is the opposite of Arch. It does not have latest software, but it is stable. It does not break as much, and it is a one time setup.\n\n \nWhich Linux distro do you use?","preferred_answer":"This is a pretty decent write-up even if it's a fairly straightforward topic for more seasoned Linux users. That said if you're newer to Linux there are probably some lessons that you can learn from reading this rather than the hard way .\n\nTLDR:\n\n> I realized I was spending a lot of energy maintaining the system rather than simply using it.","full_conversation":[{"role":"OP","user_id":"anon_27ceb8ad4dab1cb4","comment_id":"1qvh426","kind":"post","text":"Why I am switching from Arch (Manjaro) to Debian\n\nArch is a rolling release distro with the latest release of each package always available. It has one of the largest no. of packages. However, as I grew from a tech enthusiast to a seasoned developer, I am starting to value stability over latest tech. Hence, I am planning to switch to Debian.\n\n \nDebian is the opposite of Arch. It does not have latest software, but it is stable. It does not break as much, and it is a one time setup.\n\n \nWhich Linux distro do you use?","timestamp":"2026-02-04T06:28:42+00:00","score":0},{"role":"answerer","user_id":"anon_5470bdf20adbd5b5","comment_id":"o3hnltk","kind":"comment","text":"This is a pretty decent write-up even if it's a fairly straightforward topic for more seasoned Linux users. That said if you're newer to Linux there are probably some lessons that you can learn from reading this rather than the hard way .\n\nTLDR:\n\n> I realized I was spending a lot of energy maintaining the system rather than simply using it.","timestamp":"2026-02-04T07:00:42+00:00","score":6},{"role":"OP","user_id":"anon_27ceb8ad4dab1cb4","comment_id":"o3hsrk9","kind":"comment","text":"Firstly, thank you so much for the encouragement.\n\nSecondly, I agree. For those who have tried multiple distros, or are really experienced with Linux internals, this is very simple. I on the other hand, have only use Manjaro for my entire Linux journey.\n\nI am not new to Linux, but definitely new to trying out multiple distros. Linux has been my daily driver for 5+ years now.","timestamp":"2026-02-04T07:46:18+00:00","score":2},{"role":"answerer","user_id":"anon_5470bdf20adbd5b5","comment_id":"o3j86jd","kind":"comment","text":"So funnily enough, I learnt this lesson not from Linux distros but from building my own blog (vs writing on it), principal stands though - once I learnt enough it was time to move to something that required less maintenance from me and let me use it for it's intended purpose.","timestamp":"2026-02-04T14:19:59+00:00","score":2}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_27ceb8ad4dab1cb4","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_5470bdf20adbd5b5","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"o3hnltk","thanks_reply_id":"o3hsrk9","post_score":0,"answer_score":6,"preferred_answer_is_top_level":true}} {"user_id":"anon_140be319ccfee97d","answerer_user_id":"anon_b477753e11ef235b","subreddit":"programming","timestamp":"2026-03-25T16:30:15+00:00","post_id":"1s3fnlu","question":"Paper: What if independently deployable functions shared memory instead of serializing data between them?","preferred_answer":"Okay so like we totally want microservices but we're going to deploy them in one bundle so they can share memory, eliminating both the reason to use microservices and the very concept of process isolation. \n\nAnd these services can be written in different programming languages, but share objects, even though each language has its own memory management and layout scheme.","full_conversation":[{"role":"OP","user_id":"anon_140be319ccfee97d","comment_id":"1s3fnlu","kind":"post","text":"Paper: What if independently deployable functions shared memory instead of serializing data between them?","timestamp":"2026-03-25T16:30:15+00:00","score":0},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"ocfb86a","kind":"comment","text":"Okay so like we totally want microservices but we're going to deploy them in one bundle so they can share memory, eliminating both the reason to use microservices and the very concept of process isolation. \n\nAnd these services can be written in different programming languages, but share objects, even though each language has its own memory management and layout scheme.","timestamp":"2026-03-25T17:07:48+00:00","score":52},{"role":"OP","user_id":"anon_140be319ccfee97d","comment_id":"ocffzrr","kind":"comment","text":"Hey u/grauenwolf, thanks for going through the paper. Basically it will not be for different language coming together. But imaging you have a a K8s namespace and you are building and deploying 5 service. Instead of 5 different pods you can have 1. And deploy different functions and endpoints independently. So no network call no json just direct call.\n\nBut different language will have to deployed on different runtimes. Like for Java there will be a pod, python there will be another etc.","timestamp":"2026-03-25T17:29:34+00:00","score":-1},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"ocfrwt4","kind":"comment","text":"> Instead of 5 different pods you can have 1.\n\nYes I can. \n\n> And deploy different functions and endpoints independently. \n\nIf they the functions are calling each other, they are not independent. Changes to one will frequently require changes to the others.","timestamp":"2026-03-25T18:24:02+00:00","score":14},{"role":"OP","user_id":"anon_140be319ccfee97d","comment_id":"ocfsh7k","kind":"comment","text":"That is true, if you change your method signature then you will have to make changes. If not then we should be good.","timestamp":"2026-03-25T18:26:41+00:00","score":-3},{"role":"answerer","user_id":"anon_b477753e11ef235b","comment_id":"ocfwhmp","kind":"comment","text":"Or the properties on the classes referenced by that method signature. And adding fields to an existing object is one of the most common changes made to a service.","timestamp":"2026-03-25T18:45:42+00:00","score":5},{"role":"OP","user_id":"anon_140be319ccfee97d","comment_id":"ocfx1x5","kind":"comment","text":"Excellent point. I will take this one and see what I can do on this one. Assumption was since this is within the same team always team should be aware of any breaking changes.\n\nThanks!","timestamp":"2026-03-25T18:48:19+00:00","score":-2}],"n_turns":7,"n_turns_after_thanks":4,"op_metadata":{"user_id":"anon_140be319ccfee97d","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_b477753e11ef235b","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"ocfb86a","thanks_reply_id":"ocffzrr","post_score":0,"answer_score":52,"preferred_answer_is_top_level":true}} {"user_id":"anon_2b28c6ac53c9eb62","answerer_user_id":"anon_f7228f5e3656d74f","subreddit":"programming","timestamp":"2026-04-06T04:35:26+00:00","post_id":"1sdp20m","question":"How Linux executes binaries: ELF and dynamic linking explained\n\nAfter 25 years working with Linux internals I wrote this article. It's a deep dive into how Linux executes binaries, focusing on ELF internals and dynamic linking. Covers GOT/PLT, relocations, and what actually happens at runtime (memory mappings, syscalls, dynamic loader).\n\nHappy to discuss or clarify any part.","preferred_answer":"One nit: the kernel doesn't load the loader/interpreter/dynamic linker, it just mmap's it. The loader loads itself. There's a tricky bit of code to do this, where the loader has to do its own relocations and initialization before it can do things like \"write a global variable\" and \"call a function.\" You have to write that code carefully to avoid segfaults during startup (eg: you can't call a function from initializing the loader that hasn't been relocated yet). The loader is also the thing that provides implementations to ``, which is why you can't `dlopen` from a statically linked executable - you don't have a loader. \n\nThe other thing about the loader is that it's also libc. Most languages don't ship their own loader and rely on the platform's libc (basically musl or glibc), because if you want ffi with C libraries you also need to play nice with their loader. \n\nAnother interesting thing about ELF that it's \"calling convention\" (square quotes because idr if that's what it's called in the spec, but it's how a kernel \"calls\" start) is two registers, the stack and frame pointer. The stack pointer is obvious, top of the stack is argc followed by null terminated argv, followed by null terminated envp, followed by null terminated auxv. The frame pointer is almost always NULL because no one uses this, but technically, it's supposed to be a callback to some code that runs after exit. So if your program logically is the stuff between `main()` is called and `return`s, the loader is supposed to fill in the blanks about what happens before main (global ctors run, global state initialized, relocations handled, etc), _and_ what happens after. On linux at least, I don't believe this is supported or even used in practice. But it's interesting to know about.","full_conversation":[{"role":"OP","user_id":"anon_2b28c6ac53c9eb62","comment_id":"1sdp20m","kind":"post","text":"How Linux executes binaries: ELF and dynamic linking explained\n\nAfter 25 years working with Linux internals I wrote this article. It's a deep dive into how Linux executes binaries, focusing on ELF internals and dynamic linking. Covers GOT/PLT, relocations, and what actually happens at runtime (memory mappings, syscalls, dynamic loader).\n\nHappy to discuss or clarify any part.","timestamp":"2026-04-06T04:35:26+00:00","score":335},{"role":"answerer","user_id":"anon_f7228f5e3656d74f","comment_id":"oep13sn","kind":"comment","text":"One nit: the kernel doesn't load the loader/interpreter/dynamic linker, it just mmap's it. The loader loads itself. There's a tricky bit of code to do this, where the loader has to do its own relocations and initialization before it can do things like \"write a global variable\" and \"call a function.\" You have to write that code carefully to avoid segfaults during startup (eg: you can't call a function from initializing the loader that hasn't been relocated yet). The loader is also the thing that provides implementations to ``, which is why you can't `dlopen` from a statically linked executable - you don't have a loader. \n\nThe other thing about the loader is that it's also libc. Most languages don't ship their own loader and rely on the platform's libc (basically musl or glibc), because if you want ffi with C libraries you also need to play nice with their loader. \n\nAnother interesting thing about ELF that it's \"calling convention\" (square quotes because idr if that's what it's called in the spec, but it's how a kernel \"calls\" start) is two registers, the stack and frame pointer. The stack pointer is obvious, top of the stack is argc followed by null terminated argv, followed by null terminated envp, followed by null terminated auxv. The frame pointer is almost always NULL because no one uses this, but technically, it's supposed to be a callback to some code that runs after exit. So if your program logically is the stuff between `main()` is called and `return`s, the loader is supposed to fill in the blanks about what happens before main (global ctors run, global state initialized, relocations handled, etc), _and_ what happens after. On linux at least, I don't believe this is supported or even used in practice. But it's interesting to know about.","timestamp":"2026-04-06T22:17:15+00:00","score":2},{"role":"OP","user_id":"anon_2b28c6ac53c9eb62","comment_id":"oep2cgp","kind":"comment","text":"Thanks for your constructive feedback, I really appreciate it. Good catch, “loads’is definitely an oversimplification on my side. The kernel maps the interpreter and jumps to it and from there the loader has to bootstrap itself before rellocations are fully in place. That early init phase is pretty fascinating (and easy to get wrong).","timestamp":"2026-04-06T22:23:52+00:00","score":2},{"role":"answerer","user_id":"anon_f7228f5e3656d74f","comment_id":"oeqjzno","kind":"comment","text":"This is a cool paper to read/reference: https://grugq.github.io/docs/ul_exec.txt","timestamp":"2026-04-07T03:23:39+00:00","score":2},{"role":"OP","user_id":"anon_2b28c6ac53c9eb62","comment_id":"oeqn749","kind":"comment","text":"Directly to bookmarks 🙂","timestamp":"2026-04-07T03:44:21+00:00","score":1}],"n_turns":5,"n_turns_after_thanks":2,"op_metadata":{"user_id":"anon_2b28c6ac53c9eb62","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_f7228f5e3656d74f","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"oep13sn","thanks_reply_id":"oep2cgp","post_score":335,"answer_score":2,"preferred_answer_is_top_level":true}} {"user_id":"anon_1fdf9a1a13e1e84b","answerer_user_id":"anon_7f45d64e344a0b26","subreddit":"programming","timestamp":"2026-04-29T14:50:09+00:00","post_id":"1sz11dg","question":"How Linux 7.0 Broke PostgreSQL: The Preemption Regression Explained\n\nI wrote about a recent case where Linux 7.0 cut a PostgreSQL benchmark's throughput in half. I tried to explain it from first principles. Please let me know what you think :)","preferred_answer":"Imho, [the article it links in sources](https://thebuild.com/blog/2026/04/23/preempt_none-is-dead-your-postgres-probably-doesnt-care/) is better written than this one. This one feels like a summary of the other.","full_conversation":[{"role":"OP","user_id":"anon_1fdf9a1a13e1e84b","comment_id":"1sz11dg","kind":"post","text":"How Linux 7.0 Broke PostgreSQL: The Preemption Regression Explained\n\nI wrote about a recent case where Linux 7.0 cut a PostgreSQL benchmark's throughput in half. I tried to explain it from first principles. Please let me know what you think :)","timestamp":"2026-04-29T14:50:09+00:00","score":93},{"role":"answerer","user_id":"anon_7f45d64e344a0b26","comment_id":"oiylhhw","kind":"comment","text":"Imho, [the article it links in sources](https://thebuild.com/blog/2026/04/23/preempt_none-is-dead-your-postgres-probably-doesnt-care/) is better written than this one. This one feels like a summary of the other.","timestamp":"2026-04-29T15:55:03+00:00","score":60},{"role":"OP","user_id":"anon_1fdf9a1a13e1e84b","comment_id":"oiymahk","kind":"comment","text":"Thanks for the comment. I won't challenge it, I really liked it as well :)\n\nI have a different audience, though, thebuild.com is focused on PostgreSQL so the readers are more experts. Instead, I tried explaining things from first principle (TLB, page, preemption, etc.)","timestamp":"2026-04-29T15:58:36+00:00","score":31},{"role":"answerer","user_id":"anon_7f45d64e344a0b26","comment_id":"oiymozl","kind":"comment","text":"Fair, thanks for writing!","timestamp":"2026-04-29T16:00:24+00:00","score":11}],"n_turns":4,"n_turns_after_thanks":1,"op_metadata":{"user_id":"anon_1fdf9a1a13e1e84b","author_flair_text":null,"author_flair_css_class":null,"author_flair_type":"text","author_flair_background_color":null,"author_flair_text_color":null},"answerer_metadata":{"user_id":"anon_7f45d64e344a0b26","author_flair_text":null,"author_flair_css_class":null},"metadata":{"answer_comment_id":"oiylhhw","thanks_reply_id":"oiymahk","post_score":93,"answer_score":60,"preferred_answer_is_top_level":true}}