archived stringclasses 2 values | author stringlengths 3 20 | author_fullname stringlengths 4 12 ⌀ | body stringlengths 0 22.5k | comment_type stringclasses 1 value | controversiality stringclasses 2 values | created_utc stringlengths 10 10 | edited stringlengths 4 12 | gilded stringclasses 7 values | id stringlengths 1 7 | link_id stringlengths 7 10 | locked stringclasses 2 values | name stringlengths 4 10 ⌀ | parent_id stringlengths 5 10 | permalink stringlengths 41 91 ⌀ | retrieved_on stringlengths 10 10 ⌀ | score stringlengths 1 4 | subreddit_id stringclasses 1 value | subreddit_name_prefixed stringclasses 1 value | subreddit_type stringclasses 1 value | total_awards_received stringclasses 19 values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
False | holgerschurig | t2_3edl7 | "worlds payment infrastructure"
Typical US american boasting?
The US still uses cheques, most of europe is more advanced because we abandoned them 50 years ago in favor of direct transfers from account to account. If anything, then SWIFT is a world payment infrastructure.
So, don't assume that you invented locally as a (partially) substitute to cheques to be of use world-wide. | null | 0 | 1544706820 | False | 0 | ebp1j0k | t3_a5rqbw | null | null | t3_a5rqbw | /r/programming/comments/a5rqbw/stories_from_the_development_team_building_the/ebp1j0k/ | 1547551874 | -2 | t5_2fwo | r/programming | public | null |
False | wheybags | t2_g8zh5 | English readme? | null | 0 | 1546018493 | False | 0 | ecqqel6 | t3_aa90v7 | null | null | t3_aa90v7 | /r/programming/comments/aa90v7/the_hobbit_art_any_suggetion_in_order_to_improve/ecqqel6/ | 1548186726 | 2 | t5_2fwo | r/programming | public | null |
False | davorzdralo | t2_62ihs | Well, since I very much don't believe you, now it's controversial. | null | 0 | 1544706844 | 1544790938 | 0 | ebp1jqi | t3_a4hmbu | null | null | t1_ebffko8 | /r/programming/comments/a4hmbu/how_not_to_ask_a_technical_question/ebp1jqi/ | 1547551884 | 1 | t5_2fwo | r/programming | public | null |
False | niceper | t2_176b3tim | That's a good explanation, thanks. | null | 0 | 1546018524 | False | 0 | ecqqfzi | t3_aa3qdm | null | null | t1_ecqbwap | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecqqfzi/ | 1548186743 | 1 | t5_2fwo | r/programming | public | null |
False | celerym | t2_a9tbm | This sub is an endless source of entertainment. On one hand developers want job security and high wages, so will happily denounce coding initiatives for the public (especially children) but at the same time are somehow trying to code their way out of thinking altogether when coding themselves. | null | 0 | 1544706882 | False | 0 | ebp1kvr | t3_a5iior | null | null | t1_ebmxx5s | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebp1kvr/ | 1547551897 | -1 | t5_2fwo | r/programming | public | null |
False | shenglong | t2_2nn6w | Your "background reading" is waaaay out of date at best and irrelevant at worst. The NASA/JPL **C** coding standard is based on MISRA-C **2004**, which is a standard used by many mission-critical and embedded systems. | null | 1 | 1546018647 | False | 0 | ecqqlq2 | t3_aa3qdm | null | null | t1_ecqfhl7 | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecqqlq2/ | 1548186815 | -5 | t5_2fwo | r/programming | public | null |
False | mccoyn | t2_32ied | eeeeeeeeee | null | 0 | 1544706927 | False | 0 | ebp1m71 | t3_a5qm02 | null | null | t1_ebozp85 | /r/programming/comments/a5qm02/a_tale_of_132_es/ebp1m71/ | 1547551913 | 1 | t5_2fwo | r/programming | public | null |
False | anatoly722 | t2_24ckremk | Switched from zsh to Fish shell early this year and never look back. Glad to see the 3.0 release. | null | 0 | 1546018759 | False | 0 | ecqqqyo | t3_aabai1 | null | null | t3_aabai1 | /r/programming/comments/aabai1/fish_shell_30/ecqqqyo/ | 1548186880 | 34 | t5_2fwo | r/programming | public | null |
False | FlockOnFire | t2_drugx | I think those are great tests too, especially to ensure functionality doesn't break.
It won't help too much with the internal design though, I think writing tests up front for (groups of) classes can help keep them tidier.
Also, if a dependency has a bug, a large amount of your integration tests might fail, possibly making it hard to pinpoint where the bug comes from. If your units are smaller (doesn't have to be just one class), it is easier to see as only the tests of that particular unit should fail. | null | 0 | 1544706939 | 1544717634 | 0 | ebp1mkb | t3_a5g1hn | null | null | t1_ebozypp | /r/programming/comments/a5g1hn/what_to_test_and_not_to_test/ebp1mkb/ | 1547551918 | 2 | t5_2fwo | r/programming | public | null |
False | nyyc66 | t2_2i3a0dkw | Can C++ compiler ban certain header file from being included? Seems like an actually useful feature. | null | 0 | 1546018765 | False | 0 | ecqqr85 | t3_aac4hg | null | null | t3_aac4hg | /r/programming/comments/aac4hg/modern_c_lamentations/ecqqr85/ | 1548186883 | -7 | t5_2fwo | r/programming | public | null |
False | johnnyringoh | t2_14smf9 | How does he scrape the menu? | null | 0 | 1544706960 | False | 0 | ebp1n6v | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp1n6v/ | 1547551926 | 132 | t5_2fwo | r/programming | public | null |
False | mikethecoder | t2_4m80j | Thanks for letting me know about the right-click to expand/collapse. I never even tried right-clicking them so that's really useful in the meantime, though I'd definitely prefer a double-click or a simple +/- toggle icon on the right side of the navigation buttons.
The toolbar for showing tags/attachments at the top of a note is something that Boostnote does (minus the attachment part since it doesn't have them) that I like a lot since it's much easier to review/manage tagging issues on a note without needing to explicitly click to see them. It could even be a user preference or toggle-able toolbar in case not all users care to see this info at all times.
As for the load times, generally Boostnote opens for me ready to use in 1 to 1.5 seconds while Notable is around 5 seconds consistently. I was comparing from a fresh install so I only had a handful of test notes in both tools while playing around. I'm not familiar enough with Electron to understand what kind of factors are involved with start-up performance.
I'm definitely looking forward to seeing how Notable progresses. I think I'm going to switch over from Boostnote, which I only started using recently, since it feels like Notable will end up being much better at this rate. The main issue I have with Boostnote is the fact that it only supports top-level folders so there's no capabilities similar to nested tags for deeper organization. | null | 0 | 1546018788 | False | 0 | ecqqsbs | t3_a9tm4z | null | null | t1_ecpc0pz | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecqqsbs/ | 1548186896 | 1 | t5_2fwo | r/programming | public | null |
False | davorzdralo | t2_62ihs | Yes, I would agree with that statement. Education as it is is extremely suboptimal, and in college, where people had the choice (unlike high school), most of the best students in my generation skipped a lot of classes and just studied for themselves, because listening to 3 hours of claptrap was an utter waste compared to actually reading a good textbook for 3 hours. | null | 0 | 1544706977 | False | 0 | ebp1npx | t3_a4hmbu | null | null | t1_ebg1vdy | /r/programming/comments/a4hmbu/how_not_to_ask_a_technical_question/ebp1npx/ | 1547551932 | 1 | t5_2fwo | r/programming | public | null |
False | EWJacobs | t2_bash7 | Things like list comprehension, linq or just a functional style in general come to mind. You can write perfectly functional code without them, and encouraging their use isn't written down somewhere but using them makes your code cleaner and easier to debug. | null | 0 | 1546018904 | False | 0 | ecqqxrp | t3_aaagix | null | null | t1_ecqntkb | /r/programming/comments/aaagix/why_review_code/ecqqxrp/ | 1548186964 | 1 | t5_2fwo | r/programming | public | null |
False | holgerschurig | t2_3edl7 | How's "git" ? | null | 0 | 1544706992 | False | 0 | ebp1o7b | t3_a5lr7w | null | null | t1_ebnqcin | /r/programming/comments/a5lr7w/why_cockroachdb_and_postgresql_are_compatible/ebp1o7b/ | 1547551938 | 3 | t5_2fwo | r/programming | public | null |
False | kr_kr | t2_14gk4x | It depends on how much time you have, too. Lengthy discussion about non-criritical issues can stall the development and do more harm than good to the product in my experience. | null | 0 | 1546018905 | False | 0 | ecqqxsp | t3_aaagix | null | null | t1_ecqpwqf | /r/programming/comments/aaagix/why_review_code/ecqqxsp/ | 1548186964 | 2 | t5_2fwo | r/programming | public | null |
False | 0987654231 | t2_1gy6bm | I'm not sure I understand, are you saying that writing more predictable code is a bad thing?
| null | 0 | 1544707052 | False | 0 | ebp1pzz | t3_a5iior | null | null | t1_ebp1kvr | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebp1pzz/ | 1547551961 | 3 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1546018969 | False | 0 | ecqr0rz | t3_aaagix | null | null | t3_aaagix | /r/programming/comments/aaagix/why_review_code/ecqr0rz/ | 1548187002 | 0 | t5_2fwo | r/programming | public | null |
False | maximum_powerblast | t2_sqa79 | Very good read | null | 0 | 1544707080 | False | 0 | ebp1qwx | t3_a5kkr5 | null | null | t3_a5kkr5 | /r/programming/comments/a5kkr5/everything_you_should_know_about_certificates_and/ebp1qwx/ | 1547551972 | 2 | t5_2fwo | r/programming | public | null |
False | falconfetus8 | t2_5lnfr | No, it would be MORE of a reason to refactor it if it were a bug. The refactoring makes the bug jump out at you and easy to spot, rather than hiding and silently doing damage. | null | 0 | 1546019154 | False | 0 | ecqr9pl | t3_aa3qdm | null | null | t1_ecqoplv | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecqr9pl/ | 1548187112 | 3 | t5_2fwo | r/programming | public | null |
False | celerym | t2_a9tbm | Exactly | null | 0 | 1544707105 | False | 0 | ebp1rom | t3_a5iior | null | null | t1_ebp1pzz | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebp1rom/ | 1547551983 | -1 | t5_2fwo | r/programming | public | null |
False | Hauleth | t2_7aea6 | Nice, however in Lisps `-` (hyphen) do not have any special meaning, which mean that there is no parsing ambiguity or “smartness” in distinguishing whether it should be an “operator” or separator. It is just valid function name (because of the fact that Lisp code is direct AST). So you do not need any “special handling” there. | null | 0 | 1546019186 | False | 0 | ecqrb8d | t3_aaamfb | null | null | t3_aaamfb | /r/programming/comments/aaamfb/how_you_ever_thought_about_which_casing/ecqrb8d/ | 1548187131 | 6 | t5_2fwo | r/programming | public | null |
False | Nimitz14 | t2_644s1 | Lucky? How is it lucky? He was told the question and chose the right tool for the job. Nothing to do with luck. | null | 0 | 1544707124 | 1544711274 | 0 | ebp1s91 | t3_a5i57x | null | null | t1_ebo679l | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebp1s91/ | 1547551990 | 1 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | i'm replying to a comment comparing type script to dart | null | 0 | 1546019224 | False | 0 | ecqrd18 | t3_aa13tt | null | null | t1_ecpvixc | /r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecqrd18/ | 1548187153 | 1 | t5_2fwo | r/programming | public | null |
False | alex_w | t2_3fuhd | No I didn't mean Flutter apps/SDK on Android, because we can already do that. But I see why I wasn't really very clear.
> > So [**this**] is coming, and that means Dart (and Flutter) are coming.
> Yup and it's going to make this subreddit really really angry.
If I was an Android dev, after having heard all the crowing from my iOS dev buddies, Google would have me worried with this "Fuchsia" device. Sounds like it could be used to strong-arm developers off of a platform they're familiar with... and it's Google so they're kinda all about that.
I'm was just guessing that's what /u/myringotomy was thinking though. | null | 0 | 1544707221 | False | 0 | ebp1v78 | t3_a5ikq1 | null | null | t1_ebotzhz | /r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebp1v78/ | 1547552026 | 1 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1546019238 | False | 0 | ecqrdob | t3_aac4hg | null | null | t3_aac4hg | /r/programming/comments/aac4hg/modern_c_lamentations/ecqrdob/ | 1548187161 | -17 | t5_2fwo | r/programming | public | null |
False | PowerfulMention | t2_v9zjxha | Welcome to Unix! | null | 0 | 1544707240 | False | 0 | ebp1vsv | t3_a5sg9k | null | null | t1_ebp1b20 | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp1vsv/ | 1547552033 | -18 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | i'm replying to a comment comparing typescript to dart | null | 0 | 1546019250 | False | 0 | ecqre9g | t3_aa13tt | null | null | t1_ecozaac | /r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecqre9g/ | 1548187169 | 1 | t5_2fwo | r/programming | public | null |
False | combinatorylogic | t2_iab4d | > It is made possible by a Common lisp feature called reader macros
And in a Lisp without reader macros, you can easily add them by using the regular Lisp macros and replacing the parser altogether.
It's mind-blowing what you can do with *any* language that's only got proper compile-time macros - you can literally turn any such language into any other language. Or mix any number of languages together.
I've been playing with this sort of things a bit. E.g., a [C compiler](https://github.com/combinatorylogic/clike) (with a native back-end) embedded into Lisp, with a fall-back to Lisp available for defining C macros. Those macros on top of Lisp can be used to extend C in some crazy ways, like, for example, [embedding Verilog](https://github.com/combinatorylogic/soc) (in a way quite similar to the `asm` statement) into C.
Mixing languages is not a trinket, it's among the most practicat things you can do - it opens a way to do a full scale language-oriented programming, by embedding and mixing eDSLs. | null | 0 | 1544707241 | False | 0 | ebp1vti | t3_a5p0ct | null | null | t1_ebo8pgw | /r/programming/comments/a5p0ct/extending_a_language_with_reader_macros_a_subset/ebp1vti/ | 1547552033 | 8 | t5_2fwo | r/programming | public | null |
False | shenglong | t2_2nn6w | You have absolutely no idea about whether or not it's a bug, *that's* the point.
*And even if it were a bug* how can you know that your refactoring is correct (and this is ignoring that it's a fictitious language that may not even support the aforementioned refactoring construct)? You've just made two assumptions about potentially ambiguous code. | null | 0 | 1546019306 | 1546019487 | 0 | ecqrgy3 | t3_aa3qdm | null | null | t1_ecqr9pl | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecqrgy3/ | 1548187229 | -1 | t5_2fwo | r/programming | public | null |
False | holgerschurig | t2_3edl7 | Naa. As it comes from google, any attempt to remove permissions to download ads will not work. Also removing any permissions to submit all what you're doing with the app to some shady third-party provider won't work. | null | 0 | 1544707308 | False | 0 | ebp1xvf | t3_a5ikq1 | null | null | t1_ebnn673 | /r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebp1xvf/ | 1547552059 | 0 | t5_2fwo | r/programming | public | null |
False | kr_kr | t2_14gk4x | 1. You can write it down it as an internal rule if the team wants it.
2. Being a strong proponent of functional programming, I would still not call a "best practice". It depends on the tean members' background. If they've only written imperative code before, using for loops instead of maps, filters and folds can be productive for them. | null | 0 | 1546019355 | False | 0 | ecqrjbc | t3_aaagix | null | null | t1_ecqqxrp | /r/programming/comments/aaagix/why_review_code/ecqrjbc/ | 1548187258 | 1 | t5_2fwo | r/programming | public | null |
False | whyNadorp | t2_10stwmbx | This thing is not meant to be efficient or to work or to make sense at all, it’s just some kid living in a fantasy world. | null | 0 | 1544707324 | False | 0 | ebp1ydh | t3_a5sg9k | null | null | t1_ebp1n6v | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp1ydh/ | 1547552065 | -8 | t5_2fwo | r/programming | public | null |
False | ithika | t2_1obaz | What is "mobile friendly web page"? | null | 0 | 1546019477 | False | 0 | ecqrp72 | t3_aa92rk | null | null | t3_aa92rk | /r/programming/comments/aa92rk/what_is_merkle_tree_merkle_tree_implementation/ecqrp72/ | 1548187331 | 1 | t5_2fwo | r/programming | public | null |
False | 0987654231 | t2_1gy6bm | I can't agree with that.
The faster we get people writing good code the better, the alternative is like being a trades person who does bad work because they know you will need to call them back in 6 months. It might work in the short term but long term all it does is hurts everyone.
| null | 0 | 1544707359 | False | 0 | ebp1zfq | t3_a5iior | null | null | t1_ebp1rom | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebp1zfq/ | 1547552078 | 2 | t5_2fwo | r/programming | public | null |
False | shenglong | t2_2nn6w | I feel that many commenters below are completely missing this part:
> However, a large amount of business knowledge and context is recorded here in order to ensure that future maintainers can correctly reason through the complexities of the binding behavior.
The alternative is to write the business rules in the code as comments. But then you can potentially have the awful scenario where the logic doesn't match the comments (happens over time), and tests can't fix that. | null | 0 | 1546019606 | 1546020043 | 0 | ecqrvjv | t3_aa3qdm | null | null | t1_ecor8or | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecqrvjv/ | 1548187409 | 3 | t5_2fwo | r/programming | public | null |
False | redrumze | t2_1gayqwtx | Yeah. I started to use a develop/feature branches and it’s kept me organized to the moon... sometimes I find my self forgetting I’m on a feature branch but the noob in me saves those files some where else and cleans the branch im on and start a new one and commit my changes back to it.
I’m aware there is a git command for everything but sometimes the stupid method is all I need. | null | 0 | 1544707441 | False | 0 | ebp21y1 | t3_a5hkyo | null | null | t1_ebotfal | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebp21y1/ | 1547552110 | 1 | t5_2fwo | r/programming | public | null |
False | maratango | t2_19gxgval | > I guess it will be a bit harder to attract and retain people after what went down.
What happened? | null | 0 | 1546019900 | False | 0 | ecqs9x6 | t3_a9zyp3 | null | null | t1_ecq5ta7 | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecqs9x6/ | 1548187587 | 1 | t5_2fwo | r/programming | public | null |
False | TheGift_RGB | t2_sgjy1 | god, how can someone be so fucking full of themselves
what a useless post by an useless person about an useless topic, just uselessness all around, literally the sort of person that could die without any negative impact on the world | null | 0 | 1544707463 | False | 0 | ebp22mj | t3_a5qm02 | null | null | t3_a5qm02 | /r/programming/comments/a5qm02/a_tale_of_132_es/ebp22mj/ | 1547552117 | -76 | t5_2fwo | r/programming | public | null |
False | omgitzme | t2_8o8cr | Nice article! Sometimes I find that setting aside regular time for personal development is the biggest challenge. I've been trying to set aside a few hours a week (outside of work) to reading programming books and do coding exercises. Anyone else have other things they do to find time? | null | 0 | 1546019987 | False | 0 | ecqse6z | t3_aab645 | null | null | t3_aab645 | /r/programming/comments/aab645/learning_to_learn_develop_skills_to_master/ecqse6z/ | 1548187639 | 5 | t5_2fwo | r/programming | public | null |
False | Matthew94 | t2_6jzsd | Eh eh eh eh eh eh | null | 1 | 1544707506 | False | 0 | ebp23zl | t3_a5mk9z | null | null | t1_ebors0k | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebp23zl/ | 1547552134 | -1 | t5_2fwo | r/programming | public | null |
False | DroneDashed | t2_jjtoi | What? This completely breaks my programmers brain. I'm out too. | null | 1 | 1546020036 | False | 0 | ecqsgm7 | t3_aabai1 | null | null | t1_ecqpsmz | /r/programming/comments/aabai1/fish_shell_30/ecqsgm7/ | 1548187670 | 8 | t5_2fwo | r/programming | public | null |
False | pbn4 | t2_14gn0c | Hey, I know it's somewhat old but your post is very interesting.
>These deals are very complicated documents, with many legs, allocations, descriptions of payment methods etc. Essentially, this system should've been written on top of a SAT solver.
Could you describe how would that be implemented on top of the SAT solver? How one generate input for the SAT solver from data like this? | null | 0 | 1544707543 | False | 0 | ebp255f | t3_94cf5s | null | null | t1_e3l3qq7 | /r/programming/comments/94cf5s/modern_sat_solvers_fast_neat_and_underused_part_1/ebp255f/ | 1547552149 | 1 | t5_2fwo | r/programming | public | null |
False | Bl00perTr00per | t2_rcm89 | Please stop this shameless marketing of your blog. | null | 0 | 1546020117 | False | 0 | ecqskm9 | t3_aacaqk | null | null | t3_aacaqk | /r/programming/comments/aacaqk/a_substantive_no_frills_review_of_frontend_in_2018/ecqskm9/ | 1548187719 | 0 | t5_2fwo | r/programming | public | null |
False | Rustywolf | t2_59psq | There are other ways to execute code, like creating a function from a string and running it | null | 0 | 1544707596 | False | 0 | ebp26t9 | t3_a5q9y8 | null | null | t1_ebowuyf | /r/programming/comments/a5q9y8/blockevil_a_userscript_that_denies_callback/ebp26t9/ | 1547552169 | 9 | t5_2fwo | r/programming | public | null |
False | ghillisuit95 | t2_78alt | If you just make sure the file isn’t in the include path you can | null | 0 | 1546020119 | False | 0 | ecqskps | t3_aac4hg | null | null | t1_ecqqr85 | /r/programming/comments/aac4hg/modern_c_lamentations/ecqskps/ | 1548187720 | 15 | t5_2fwo | r/programming | public | null |
False | delliott8990 | t2_9ehoe | That was pretty neat. | null | 0 | 1544707640 | False | 0 | ebp288q | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp288q/ | 1547552186 | 1 | t5_2fwo | r/programming | public | null |
False | gwillicoder | t2_arru05z | I don’t get this kind of criticism. Machine learning and AI are used interchangeably by many. It’s not like we’ll have any *real AI* to talk about anytime soon | null | 0 | 1546020131 | False | 0 | ecqslam | t3_aa91bp | null | null | t1_ecpy73e | /r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecqslam/ | 1548187727 | 7 | t5_2fwo | r/programming | public | null |
False | Shadowvines | t2_fw1r9 | So this is the odd one right? While this is in the law that decision is a made by an assessor, not the company. How do you not introduce weakness and remove layers of security? There is a bunch of contradicting language in this law. | null | 0 | 1544707697 | False | 0 | ebp2a3v | t3_a57th7 | null | null | t1_ebp1hnj | /r/programming/comments/a57th7/australias_new_encryption_laws_ensure_companies/ebp2a3v/ | 1547552209 | 1 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1546020289 | False | 0 | ecqssxc | t3_aaagix | null | null | t1_ecqfwvc | /r/programming/comments/aaagix/why_review_code/ecqssxc/ | 1548187850 | 1 | t5_2fwo | r/programming | public | null |
False | zenolijo | t2_6cw5t | Damn, that hits home.
We used Slack or Jabber depending on department and now this year they force everyone to use Microsoft Teams.
It has the exact same feature set as Slack, it's just the company which want everything to be using Microsoft products even though 80% of developers in this company are Linux developers. | null | 0 | 1544707740 | False | 0 | ebp2bia | t3_a5i57x | null | null | t1_ebnp2x4 | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebp2bia/ | 1547552227 | 1 | t5_2fwo | r/programming | public | null |
False | FanOfHoles | t2_2ftopua8 | Since "infinity" is a concept unknown to the *actual* really existing universe: no.
Plus, without context there is no useful answer. Distance matters (speed of light limit). But maybe the whole universe *is* a brain... | null | 0 | 1546020342 | False | 0 | ecqsvg8 | t3_a9qz9q | null | null | t1_ecnl5xv | /r/programming/comments/a9qz9q/amoeba_finds_approximate_solutions_to_nphard/ecqsvg8/ | 1548187882 | 1 | t5_2fwo | r/programming | public | null |
False | alloutblitz | t2_9afog | I know that Atom and VSCode are both developed my Microsoft now. Have you heard anything from MS about discontinuing one or the other? Or will both continue to be worked on? | null | 1 | 1544707790 | False | 0 | ebp2d3n | t3_a5mk9z | null | null | t1_ebostwa | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebp2d3n/ | 1547552246 | -2 | t5_2fwo | r/programming | public | null |
False | shabunc | t2_af41a | You both guys definitely haven't coded in Lua - which is an awesome small language which has exactly this peculiarity. Shocking at first, you getting used to it. | null | 0 | 1546020355 | False | 0 | ecqsw4d | t3_aabai1 | null | null | t1_ecqsgm7 | /r/programming/comments/aabai1/fish_shell_30/ecqsw4d/ | 1548187891 | 32 | t5_2fwo | r/programming | public | null |
False | IMIKECI | t2_5gv9y | What model Chromebook? Out of curiousity. | null | 0 | 1544707848 | False | 0 | ebp2eyu | t3_a5mk9z | null | null | t1_ebp1hs4 | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebp2eyu/ | 1547552269 | 1 | t5_2fwo | r/programming | public | null |
False | spider-mario | t2_cyspr9x | I know that: you said “neither [TypeScript nor Dart] are extremely sound”, and I told you that Dart does, in fact, have a sound type system. What is your point exactly? | null | 0 | 1546020397 | False | 0 | ecqsy5i | t3_aa13tt | null | null | t1_ecqrd18 | /r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecqsy5i/ | 1548187916 | 2 | t5_2fwo | r/programming | public | null |
False | loup-vaillant | t2_3vfy2 | Anyone can successfully modify code written in an imperative language they don't know in _minutes_. Making a simple first contribution in less than a day is not hard, especially if you share domain knowledge with the existing team.
| null | 0 | 1544707957 | False | 0 | ebp2ihl | t3_a5i57x | null | null | t1_ebnhfjp | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebp2ihl/ | 1547552313 | 3 | t5_2fwo | r/programming | public | null |
False | pron98 | t2_f0thb | Prior to JDK 11, there were functional differences between the Oracle JDK and OpenJDK -- there were commercial features in Oracle JDK (like Java Flight Recorder) that were only contributed to OpenJDK in version 11. If you were not using those features, and wish not to upgrade to a recent JDK version, you can use OpenJDK 8 -- there are various binary distributions available. -- and rely on the contributions of OpenJDK members other than Oracle to backport fixes to it. | null | 0 | 1546020493 | False | 0 | ecqt2wo | t3_aa8eqo | null | null | t1_ecqkt5k | /r/programming/comments/aa8eqo/confused_would_oracles_new_jre_patch_expected_on/ecqt2wo/ | 1548187974 | 1 | t5_2fwo | r/programming | public | null |
False | zenolijo | t2_6cw5t | It's likely because Go is one of the newest languages in the bunch and not very widely used in large corporations yet, so those who learn it likely do programming in their spare time.
Would be interesting to see how Rust programmers would fare. | null | 0 | 1544707973 | False | 0 | ebp2j1x | t3_a5i57x | null | null | t1_ebmvs73 | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebp2j1x/ | 1547552320 | 1 | t5_2fwo | r/programming | public | null |
False | vattenpuss | t2_brzia | But the languages are all buggy variants of half of common lisp? | null | 0 | 1546020559 | False | 0 | ecqt64n | t3_aa7aea | null | null | t1_ecpwc1r | /r/programming/comments/aa7aea/the_essence_of_datalog/ecqt64n/ | 1548188013 | 1 | t5_2fwo | r/programming | public | null |
False | hansolo669 | t2_69pru | The table cycling behavior is configurable ... How you describe is how mine is set up. | null | 0 | 1544707980 | False | 0 | ebp2j9n | t3_a5mk9z | null | null | t1_ebotfro | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebp2j9n/ | 1547552322 | 6 | t5_2fwo | r/programming | public | null |
False | agumonkey | t2_62nu4 | I thought we moved to half of haskell ? | null | 0 | 1546020633 | False | 0 | ecqt9rq | t3_aa7aea | null | null | t1_ecqt64n | /r/programming/comments/aa7aea/the_essence_of_datalog/ecqt9rq/ | 1548188059 | 1 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1544708141 | False | 0 | ebp2of7 | t3_a5969k | null | null | t1_ebnzyvr | /r/programming/comments/a5969k/java_12_likely_will_not_have_raw_string_literals/ebp2of7/ | 1547552415 | 1 | t5_2fwo | r/programming | public | null |
False | DroneDashed | t2_jjtoi | No, I haven't coded in Lua and neither in R, which I believe also starts arrays at 1. | null | 0 | 1546020667 | False | 0 | ecqtbcz | t3_aabai1 | null | null | t1_ecqsw4d | /r/programming/comments/aabai1/fish_shell_30/ecqtbcz/ | 1548188078 | 6 | t5_2fwo | r/programming | public | null |
False | _m_0_n_0_ | t2_11cuu9 | It's left as an exercise to the reader, but you should probably just [parse the page with a regex or something](https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/). | null | 0 | 1544708228 | False | 0 | ebp2r8k | t3_a5sg9k | null | null | t1_ebp1n6v | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp2r8k/ | 1547552449 | 57 | t5_2fwo | r/programming | public | null |
False | GiantRobotTRex | t2_kig3v | I use zsh though I'm by no means a power user. What do you prefer about fish? | null | 0 | 1546020750 | False | 0 | ecqtfd1 | t3_aabai1 | null | null | t1_ecqqqyo | /r/programming/comments/aabai1/fish_shell_30/ecqtfd1/ | 1548188128 | 42 | t5_2fwo | r/programming | public | null |
False | EWJacobs | t2_bash7 | I think they just want a process so it doesn't feel like a shot in the dark. The fact the process isn't effective is less important than the feeling of control it gives. | null | 0 | 1544708440 | False | 0 | ebp2y46 | t3_a5i57x | null | null | t1_ebnd5z3 | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebp2y46/ | 1547552535 | 1 | t5_2fwo | r/programming | public | null |
False | Adverpol | t2_k7xhv | How big of a deal is this for a shell? Don't think I've ever accessed an array by index in bash. | null | 0 | 1546021012 | False | 0 | ecqtsjr | t3_aabai1 | null | null | t1_ecqpsmz | /r/programming/comments/aabai1/fish_shell_30/ecqtsjr/ | 1548188291 | 50 | t5_2fwo | r/programming | public | null |
False | YM_Industries | t2_70ork | You can use [Regexper](https://regexper.com/) to generate railroad diagrams which can help you understand someone else's regex. | null | 0 | 1544708577 | False | 0 | ebp32of | t3_a5sg9k | null | null | t1_ebozcrd | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp32of/ | 1547552592 | 30 | t5_2fwo | r/programming | public | null |
False | corsicanguppy | t2_ikc6m | I was completely interested, actually
> java
.. and then I wasn't at all. | null | 0 | 1546021080 | False | 0 | ecqtw35 | t3_aabfr9 | null | null | t1_ecqobhv | /r/programming/comments/aabfr9/hey_guys_i_coded_a_program_that_solves_mazes/ecqtw35/ | 1548188335 | 1 | t5_2fwo | r/programming | public | null |
False | ClysmiC | t2_5i35r | I thought VS Code *was* the "light version" | null | 0 | 1544708583 | False | 0 | ebp32w1 | t3_a5mk9z | null | null | t1_ebosbxi | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebp32w1/ | 1547552594 | 12 | t5_2fwo | r/programming | public | null |
False | wootywoot | t2_40y88 | There's a lot to be said for consistency within the code base though. It helps with maintenance, allows developers to work across the codebase without less context switching, etc. If your entire codebase is written in a functional style, forcing a developer who is more accustomed to an imperative approach to adopt functional styles is probably healthier for the team as a whole, regardless of the productivity of that individual developer. An experienced developer will also be seeking out examples of established style in the codebase so they can ensure their contributions fit into the general style of the team.
That being said, there's ways to handle this (both in code review process and out) that can avoid a sudden surprise comment about code style that a new developer was unaware of. Having documented code style guidelines is a good start. Also using static analysis tools such as linters to catch things during the development process is really helpful. On my team, I've written a variety of lint rules to enforce styles and disallow certain patterns. This really helps new developers to not be bombarded with so many comments on their first few PRs, and opens up an avenue for a conversation when they ask about why the linter is telling them to do something a certain way. | null | 0 | 1546021119 | 1546021319 | 0 | ecqty3g | t3_aaagix | null | null | t1_ecqrjbc | /r/programming/comments/aaagix/why_review_code/ecqty3g/ | 1548188359 | 2 | t5_2fwo | r/programming | public | null |
False | DukeOfChaos92 | t2_8m1hu | It's probably saved on the site as a png or PDF file, so we'll assume he uses curl to grab that (locating the file itself is an exercise left to the reader). Then it's a simple matter of parsing the clear, graphic free, well laid out image file or PDF into some form of legible text file, which is a trivial task you should have learned in a prior course and as such I will spend no time on it, but do please keep in mind that many menus will have multiple columns in their layout, and this exercise requires a single entry per line. | null | 0 | 1544708663 | False | 0 | ebp35nq | t3_a5sg9k | null | null | t1_ebp1n6v | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp35nq/ | 1547552628 | 224 | t5_2fwo | r/programming | public | null |
False | zwhitchcox | t2_h3tbu | When I'm looking at someone's code, I want it in as few lines as possible, and I don't want to have to look at a trillion different functions to figure out what's going on. For me, what he says in the video is not exactly why I don't want everything broken down and scattered across the codebase. I think it gives the appearance of neatness, but if you're actually trying to figure what's going on, it is harder, because now you've got 300 places to look instead of everything in one function. This adds to the complexity, and it can be hard to comprehend everything, because you have to keep everything in your head and remember what everything does , and if you forget something, you have to go look it up again, all while trying to keep the big picture in your head.
Obviously there's a balance to this, you don't want your whole codebase in main, but I personally think it's better to air on the side of condensed code rather than verbose.
It also makes it harder to edit things. Say you want to change something, and I'm not talking a small change, I mean something that is going to have to change a lot of code. Would you rather have it all in one place or all over the place? And don't say if you write good code you won't have to change multiple things, we both know you can't plan for everything, and even if you could, then you're writing code for a bunch of changes that might never come.
It's true though, as the code base matures, and you acquire more stability, and changes aren't happening so rapidly, you might want to start breaking stuff out like that, or breaking chunks of code out as you find you are reusing them, that's what I do. And maybe at that point you will want the speed of go and to migrate to that or something similar.
EDIT: let's think about it in terms of mathematics. In math, you don't want a bunch of overly verbose formulas, like saying adding two numbers together multiple times instead of just multiplying them. And we come up with all types of symbols to represent complex relationships, because it can be hard to hold all that in your head at once.
So, I guess you could say that that's an argument in favor of breaking things down into simpler functions, and I've just proven myself wrong, but I think you could also make the case that those are symbols, not code.
With code you're always writing something different, and inorder to truly understand, you have to actually look at the code, which is why I don't trust function names.
So maybe with generics, the verbosity will be lessened, and we'll be able to use generic statements that are universal, and you won't have to look them up. I actually don't know what generics are, I looked up the definition, but I think I would need an example or something, because it was too abstract for me to understand, ironically similar to this problem. But that's just what I'm guessing from context and from my own problems. | null | 0 | 1546021180 | 1546021855 | 0 | ecqu1al | t3_aa2peh | null | null | t1_ecqlvtw | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecqu1al/ | 1548188429 | 1 | t5_2fwo | r/programming | public | null |
False | flying-sheep | t2_5jc4c | I prefer to use it to start pipes because I might want to insert some step between the initial `cat` and the second step. | null | 0 | 1544708685 | False | 0 | ebp36ei | t3_a5sg9k | null | null | t1_ebox6vg | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp36ei/ | 1547552637 | 72 | t5_2fwo | r/programming | public | null |
False | verylittlefinger | t2_ta9ws | This was an interesting discussion 15 years ago. At this point though it is clearly in the camp of “why wash your hands?” or “why wipe your butt” type of questions... | null | 0 | 1546021259 | False | 0 | ecqu5fe | t3_aaagix | null | null | t3_aaagix | /r/programming/comments/aaagix/why_review_code/ecqu5fe/ | 1548188479 | 36 | t5_2fwo | r/programming | public | null |
False | EWJacobs | t2_bash7 | Right tool for the job is a flawed concept because in every day life we don't use different mutually unintelligible languages for different things. Programming languages are mostly style and idioms over the same basic concepts. | null | 0 | 1544708759 | False | 0 | ebp38xu | t3_a5i57x | null | null | t1_ebnbpfo | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebp38xu/ | 1547552670 | 3 | t5_2fwo | r/programming | public | null |
False | phalp | t2_ajc92 | I'd be interested to know to what extent "Modern C++" is overtaking old C++. I almost suspect diglossia: one C++ which is used in blog posts, and another which is used in software development. | null | 0 | 1546021283 | False | 0 | ecqu6o3 | t3_aac4hg | null | null | t3_aac4hg | /r/programming/comments/aac4hg/modern_c_lamentations/ecqu6o3/ | 1548188495 | 277 | t5_2fwo | r/programming | public | null |
False | raelepei | t2_enapz | Bouncy stuff that tells you to join and subscribe now and don't forget to like and gib munniez? Fuck the web designer and fuck whoever thought it's a good idea to use that website. | null | 0 | 1544708833 | False | 0 | ebp3bgx | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp3bgx/ | 1547552701 | 17 | t5_2fwo | r/programming | public | null |
False | shenglong | t2_2nn6w | Tests cannot guard against incorrect business logic (neither can comments, but see below), which is something I have to deal with *regularly*. Pieces of code that "work" and pass all unit and integration tests, yet still have to be rewritten because of some miscommunication somewhere.
Often I'll see in the code lines like:
if (company.Name == Companies.Acme)
{
DoAcmeLogic();
return;
}
DoRegularLogic();
Easy to understand (or is it?), test passes etc. But, for someone who has to maintain this code, this is **complete shit**! More often than not, the "real" logic is something along the lines of "if we are dealing with a company who only uses this type of shipping, do something else instead of our normal routine". It just so happens that at the time the code was written, Acme Co was the only company who happened to do so. So the business rule was probably "Acme should be handled differently". As the business expands, this code will eventually fail. And as a maintainer who wasn't when this was written, it's just a waste of time and energy to deal with.
Hours of time could have been saved if someone had just put in a sensible comment that said:
// Acme is handled differently because they only ship by train
This is one of the reasons it's important to document business rules in sensitive code. WHY the code does what it does is often much more important than HOW it does it. "What" it does should be self-explanatory. | null | 0 | 1546021420 | 1546021930 | 0 | ecqudt5 | t3_aa3qdm | null | null | t1_ecpylkm | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecqudt5/ | 1548188583 | 0 | t5_2fwo | r/programming | public | null |
False | ygra | t2_8kizi | Meanwhile, the Windows programmer can eschew a lot of the stringly-ness here by operating on objects:
if (Get-Menu |
Where-Object Name -Match shrimp |
Where-Object Price -Lt 10) {
'Available!'
}
Or if that's too long, we can go with aliases just fine, as it's an interactive session anyway:
if (menu|? Name -m shrimp|? Price -lt 10){'Available'}
If we want to start from the same input we'd define `Get-Menu` as follows, I guess:
function Get-Menu {
Get-Content menu.txt | ForEach-Object {
$splits = $_ -split '\$'
[pscustomobject]@{
Name = $splits[0]
Price = +$splits[1]
}
}
}
We could also cheat and interpret the file as CSV with `$` as the delimiter, albeit we'd lose the conversion of the price to a number we've done above:
Import-Csv menu.txt -Delimiter $ -Header Name,Price
so we'd have to change the comparison with the price so that the default conversions apply:
... | where {10 -gt $_.Price}
But I'd rather have a number than a numeric string in the first place, as that makes lots of things easier. | null | 0 | 1544708885 | 1544772222 | 0 | ebp3da1 | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp3da1/ | 1547552723 | 96 | t5_2fwo | r/programming | public | null |
False | chedabob | t2_2ktdr | > It just tweets "Downloaded 7 tweets"...
You have to look at "Tweets & replies" | null | 0 | 1546021551 | False | 0 | ecqukw0 | t3_aa8wit | null | null | t1_ecqmdc5 | /r/programming/comments/aa8wit/soimadeathing_twitter_bot_that_replies_back_with/ecqukw0/ | 1548188671 | 2 | t5_2fwo | r/programming | public | null |
False | dungone | t2_8uzx2 | To be clear, Swarm does in fact have features that Kubernetes doesn't, so there are also has non-trivial use cases that it handles better than Kubernetes. To be the devil's advocate: one man's trivial system is another man's well-designed system, and you can solve problems of your own creation all day long but it doesn't really mean that you're being productive. At a certain point you're complaining about how Swarm doesn't solve problems that only exist for k8s, or where they are so trivial in Swarm that it's not even considered a feature. Want to have a pod on Swarm? Just put your containers in a container. Want to automatically inject sidecars into that? Just use a template. If you need a higher-level abstraction in either system, you're only limited by your imagination. But who cares, honestly? If 99% of deployments are what you would call "trivial web applications" then 99% of the market should gravitate to the tool that's best suited for the job. Otherwise it's just sheer insanity.
Here's the kicker, really. If you're doing a service mesh with k8s, you're probably using Istio on top of Kubernetes. If you actually read the k8s documentation, they consider sidecars to be an "advanced topic" and they strongly discourage anyone from trying to run more than one type of container in a pod. Meanwhile, Docker Swarm is basically already a service mesh. Kubernetes is by far the more powerful orchestrator, but the biggest irony to me is that all of us who are running k8s are bending over backwards to make k8s more like Swarm without realizing it. | null | 0 | 1544708914 | 1544711461 | 0 | ebp3e9b | t3_a3tk0q | null | null | t1_ebol5j2 | /r/programming/comments/a3tk0q/is_k8s_too_complicated/ebp3e9b/ | 1547552735 | 1 | t5_2fwo | r/programming | public | null |
False | yawaramin | t2_77bue | Yeah but those are examples of those companies and codebases having their own ‘best practices’. What if someone went into those procedural-style C++ codebases and starting pushing a bunch of OOP-style code out of the blue? Shouldn’t they push back? | null | 0 | 1546021663 | False | 0 | ecqur2i | t3_aaagix | null | null | t1_ecqn86z | /r/programming/comments/aaagix/why_review_code/ecqur2i/ | 1548188747 | 1 | t5_2fwo | r/programming | public | null |
False | duheee | t2_1315hz | I have not done benchmarks and in normal usage i could not see a difference. CPUs are plenty fast nowadays. | null | 0 | 1544708963 | False | 0 | ebp3fzj | t3_a5gxm6 | null | null | t1_ebo3jwi | /r/programming/comments/a5gxm6/freebsd_12_released/ebp3fzj/ | 1547552756 | 1 | t5_2fwo | r/programming | public | null |
False | danopia | t2_3pxlr | > cd no longer resolves symlinks. fish now maintains a virtual path, matching other shells (#3350).
fish noo :( | null | 0 | 1546021697 | False | 0 | ecqustb | t3_aabai1 | null | null | t3_aabai1 | /r/programming/comments/aabai1/fish_shell_30/ecqustb/ | 1548188767 | 35 | t5_2fwo | r/programming | public | null |
False | dalittle | t2_4ahob | Haha. That was my first thought was that Perl would be easier for me. Right tool for the task. | null | 0 | 1544709003 | False | 0 | ebp3hdx | t3_a5sg9k | null | null | t1_eboxuas | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp3hdx/ | 1547552773 | 2 | t5_2fwo | r/programming | public | null |
False | uburoy | t2_55zjs | For someone not familiar with all this, what is the community like? | null | 0 | 1546022048 | False | 0 | ecqvb6p | t3_aaa8y7 | null | null | t1_ecq9dn5 | /r/programming/comments/aaa8y7/taming_the_chaos_can_we_build_systems_that/ecqvb6p/ | 1548189024 | 5 | t5_2fwo | r/programming | public | null |
False | pure_x01 | t2_3h5id | Whats the difference between this and Docker? | null | 0 | 1544709065 | False | 0 | ebp3jjw | t3_a5suza | null | null | t3_a5suza | /r/programming/comments/a5suza/lxd_38_has_been_released/ebp3jjw/ | 1547552800 | 3 | t5_2fwo | r/programming | public | null |
False | Leandros99 | t2_6s9jz | That's called ranges. | null | 0 | 1546022120 | False | 0 | ecqveyn | t3_aach46 | null | null | t3_aach46 | /r/programming/comments/aach46/lazy_code_a_c_header_only_lib_what_if_you_could/ecqveyn/ | 1548189071 | 19 | t5_2fwo | r/programming | public | null |
False | JeezyTheSnowman | t2_9rynl | It's still proprietary software that requires a paid licence. They are being nice to let people like you by not locking you out after the trial period is over. | null | 0 | 1544709122 | False | 0 | ebp3lk3 | t3_a5mk9z | null | null | t1_ebp0r0d | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebp3lk3/ | 1547552825 | 4 | t5_2fwo | r/programming | public | null |
False | yawaramin | t2_77bue | So let’s clarify: you create a record; have some custom logic to generate a key for it without hitting the DB (which btw means you lose the ability to generate monotonically-increasing IDs); _then_ persist; _then_ signal success to your user.
I mean, you could do all that; or you could let the DB do what it was designed to do in the first place and: run constraint checks (i.e. validations), generate the ID for you on persist, and signal a successful result. | null | 0 | 1546022192 | False | 0 | ecqvip2 | t3_a8vpy4 | null | null | t1_ecqoszy | /r/programming/comments/a8vpy4/why_did_we_shift_away_from_databasegenerated_ids/ecqvip2/ | 1548189117 | 1 | t5_2fwo | r/programming | public | null |
False | GanstaRhapsody | t2_c5vuu | Given the author's mention of harassment in her [last email](https://linuxwit.ch/assets/github-email-4.txt), it sounds like some of the harassment targeted at her was focused on the fact she is trans. I'm sure it's not easy to deal with vitriol like that. | null | 0 | 1544709164 | False | 0 | ebp3mya | t3_a5qm02 | null | null | t1_ebozekj | /r/programming/comments/a5qm02/a_tale_of_132_es/ebp3mya/ | 1547552842 | 13 | t5_2fwo | r/programming | public | null |
False | billsil | t2_6ay72 | I had the lead on a program complain about my variable naming style. It’s in our official policy guide. Well that’s a dumb style. I disagreed, but I’m coding it and not you. How about you don’t complain about my names and I won’t force you to change? He agreed.
I figure you’re smart. You can follow two different styles. | null | 0 | 1546022225 | False | 0 | ecqvkgo | t3_aaagix | null | null | t1_ecqphuv | /r/programming/comments/aaagix/why_review_code/ecqvkgo/ | 1548189138 | 1 | t5_2fwo | r/programming | public | null |
False | m50d | t2_6q02y | If you have an immutable structure with pure functions then you can be confident that if invariant 3 holds then it will continue to hold. You can then be explicit about the part where you replace the "current" version of the structure with a "new" one and ensure that invariant 3 continues to hold at that point. Limiting memory consumption while working in functional style is a relatively immature area, but it should be doable.
My general approach is: ask why you believe invariant 3 holds, and encode the answer to that into the type system. When you're deleting a given key, why do you believe this is safe - presumably because you know that key is unreferenced? So maybe you need (for example) a different type for referenced keys and unreferenced keys. And then you make sure that creating a reference to a key turns that key into a referenced key (in the new instance of the map that has the new reference in). | null | 0 | 1544709176 | False | 0 | ebp3ndj | t3_a5iior | null | null | t1_eboyxi0 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebp3ndj/ | 1547552848 | 1 | t5_2fwo | r/programming | public | null |
False | icholy | t2_ak6yc | Don’t forget julia | null | 0 | 1546022293 | False | 0 | ecqvo4y | t3_aabai1 | null | null | t1_ecqtbcz | /r/programming/comments/aabai1/fish_shell_30/ecqvo4y/ | 1548189184 | 14 | t5_2fwo | r/programming | public | null |
False | btmc | t2_bghj8 | Testing long input strings seems like QA 101. How could this possibly be an issue? | null | 0 | 1544709199 | 1544717497 | 0 | ebp3o6y | t3_a5qm02 | null | null | t1_ebow7jz | /r/programming/comments/a5qm02/a_tale_of_132_es/ebp3o6y/ | 1547552858 | 45 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | We released a new web site. A lot of people didn't like it. | null | 0 | 1546022396 | False | 0 | ecqvtqm | t3_a9zyp3 | null | null | t1_ecqs9x6 | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecqvtqm/ | 1548189252 | 4 | t5_2fwo | r/programming | public | null |
False | ponkanpinoy | t2_8q5zi | > Pulsating "Join dev.to" thing always in the corner of my eye.
Noped right out of there. | null | 0 | 1544709216 | False | 0 | ebp3oro | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebp3oro/ | 1547552865 | 25 | t5_2fwo | r/programming | public | null |
False | kr_kr | t2_14gk4x | It's not a "best practice". No one in the team claimed that it was better than OOP. It was just a choice made for the sake of consistency.
In my opinion, "best practice" implies that this specific way is objectively better. It's not. It's just one of the options that was chosen and used. | null | 0 | 1546022426 | False | 0 | ecqvvba | t3_aaagix | null | null | t1_ecqur2i | /r/programming/comments/aaagix/why_review_code/ecqvvba/ | 1548189272 | 0 | t5_2fwo | r/programming | public | null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.