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 | Ironfist | t2_3qutu | If you're willing to cheat a bit you could just use awk. For example:
awk -F '$' '/shrimp/ {printf "%d\n", $NF}' < menu.txt | xargs -I {} test {} -lt 10 && echo 'Available!' || echo ':('
I haven't got into if statements with awk but I'm sure the test part could also be included.
| null | 0 | 1544721511 | False | 0 | ebpj4dq | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpj4dq/ | 1547560078 | 1 | t5_2fwo | r/programming | public | null |
False | jewnicorn27 | t2_elvfc | I also work in the field, I got into it by being involved in ML/CV projects at my University. But if I was hiring people personally, I would also be very interested in their personal projects and open source involvement. Some activity in community projects you find interesting would go a long way IMO. Although I am relatively juniour and don't direct hiring. | null | 0 | 1546033274 | False | 0 | ecrcwu5 | t3_aa91bp | null | null | t1_ecrbbyk | /r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrcwu5/ | 1548197463 | 2 | t5_2fwo | r/programming | public | null |
False | kevintweber | t2_lgnf1 | Good article | null | 1 | 1544721526 | False | 0 | ebpj54z | t3_a5ue97 | null | null | t3_a5ue97 | /r/programming/comments/a5ue97/sentiment_analysis_nearly_everything_you_need_to/ebpj54z/ | 1547560088 | -3 | t5_2fwo | r/programming | public | null |
False | shenglong | t2_2nn6w | > This function is fine by me.
The procedure *doesn't work*. Therefore your refactor *won't work*.
Is there any evidence in the procedure that it doesn't work? No, you just tried to refactor the code in some strange way without checking the basic flow control.
What if I did:
void HandleFoo(Foo foo)
{
if (foo.Name == "Baz")
RunBazCode();
else
RunBarCode();
}
Do you see now? Is the *intended* logic more clear? If so, apply the very same logic to functions that return boolean values. | null | 0 | 1546033299 | 1546033763 | 0 | ecrcy3h | t3_aa3qdm | null | null | t1_ecrcqcu | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecrcy3h/ | 1548197478 | 1 | t5_2fwo | r/programming | public | null |
False | c-smile | t2_ue34p | It is an example of punctuation anarchy. It signifies the level of disorder and inconsistency that the FlexBox specification adds to the rest of CSS.
| null | 0 | 1544721581 | False | 0 | ebpj7q3 | t3_a5b649 | null | null | t1_ebmdj4j | /r/programming/comments/a5b649/css_10_years_of_flexboxing/ebpj7q3/ | 1547560119 | 2 | t5_2fwo | r/programming | public | null |
False | kevingranade | t2_je91k | The argument isn't that the more advanced features should not exist.
The argument is that the implementation of these features renders them practically unusable for most purposes. | null | 0 | 1546033334 | False | 0 | ecrczt8 | t3_aac4hg | null | null | t1_ecqrdob | /r/programming/comments/aac4hg/modern_c_lamentations/ecrczt8/ | 1548197499 | 16 | t5_2fwo | r/programming | public | null |
False | combinatorylogic | t2_iab4d | You can take a look at the links provided - everything is built on top of a very dumb Lisp without any fancy reader macros, the parser was replaced altogether with a PEG-based one instead (i.e., you have to change your REPL top level, and all those `load` implementations).
Another example - Racket. No explicit reader macros, but languages are still easy to switch. | null | 0 | 1544721621 | False | 0 | ebpj9mg | t3_a5p0ct | null | null | t1_ebpfmpy | /r/programming/comments/a5p0ct/extending_a_language_with_reader_macros_a_subset/ebpj9mg/ | 1547560143 | 2 | t5_2fwo | r/programming | public | null |
False | iuqwej | t2_wi614 | I don't want to be too disrespectful, but if this is actually true, I think you are bit stupid. I have no other way to put this. I mean, counting is literally the first thing teached to kindergarden pupils, before tying shoelaces. And you, as a programmer, can't adjust to the smallest possible change to the system you are familiar with? I can't believe that. | null | 1 | 1546033383 | 1546035655 | 0 | ecrd27x | t3_aabai1 | null | null | t1_ecqsgm7 | /r/programming/comments/aabai1/fish_shell_30/ecrd27x/ | 1548197528 | 8 | t5_2fwo | r/programming | public | null |
False | Ironfist | t2_3qutu | It's just meant to be a simple demonstration of pipes. | null | 0 | 1544721638 | False | 0 | ebpjaeu | t3_a5sg9k | null | null | t1_ebp1ydh | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjaeu/ | 1547560152 | 12 | t5_2fwo | r/programming | public | null |
False | Candid_Calligrapher | t2_2nsvdulx | His is, not /u/shevegen. | null | 1 | 1546033422 | False | 0 | ecrd452 | t3_aaco1d | null | null | t1_ecrc7f8 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrd452/ | 1548197552 | -1 | t5_2fwo | r/programming | public | null |
False | CameronNemo | t2_91j1q | LXD focuses on system containers rather than app containers. This means you run an init system, and possibly a DNS daemon and other supporting services for your application, in the container rather than the container being a thin layer between the host and application.
It is clustered (although there is Docker Swarm).
While both LXD and docker are written in Go, LXD uses [liblxc](https://github.com/lxc/lxc) as the underlying container runtime, rather than [runc](https://github.com/opencontainers/runc). LXC is a much older C project, while runc is the reference implementation for OCI containers (and the only maintained implementation *that uses Linux containers*, there are others based on KVM or HyperV). | null | 0 | 1544721682 | 1544753834 | 0 | ebpjchc | t3_a5suza | null | null | t1_ebp3jjw | /r/programming/comments/a5suza/lxd_38_has_been_released/ebpjchc/ | 1547560205 | 6 | t5_2fwo | r/programming | public | null |
False | phalp | t2_ajc92 | I guess I don't really have anything particular in mind, so my comment is unnecessarily provocative. I really only know "modern C++" from blog posts. And C++ has always been a "pick your poison" language that you may not drink all of, so if this team is using lambdas and that one is using smart pointers, maybe that's no different than ever. I just get kind of a "look how cool Perl 6 is" vibe from goings on in C++ land. | null | 0 | 1546033439 | False | 0 | ecrd4y9 | t3_aac4hg | null | null | t1_ecqzshe | /r/programming/comments/aac4hg/modern_c_lamentations/ecrd4y9/ | 1548197563 | 22 | t5_2fwo | r/programming | public | null |
False | MrDick47 | t2_6dm0u | No he is technically more accurate and this is a sweeping statement. | null | 0 | 1544721687 | False | 0 | ebpjcqw | t3_a5sg9k | null | null | t1_ebph2pp | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjcqw/ | 1547560209 | 0 | t5_2fwo | r/programming | public | null |
False | phillipcarter2 | t2_gxfjqq4 | Assholes shouldn’t be tolerated just because they know something, speaking from the abstract. I haven’t interacted with these folks beyond a downvote for the one who just trolls every post, but generally speaking assholes need to be removed from online communities. | null | 0 | 1546033505 | False | 0 | ecrd8bz | t3_aaco1d | null | null | t1_ecravgu | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrd8bz/ | 1548197605 | 20 | t5_2fwo | r/programming | public | null |
False | Ironfist | t2_3qutu | The OP also needs to be careful using double quotes instead of single quotes. echo "Available!" doesn't do what you think it will do. | null | 0 | 1544721714 | False | 0 | ebpje0q | t3_a5sg9k | null | null | t1_eboxlib | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpje0q/ | 1547560224 | 8 | t5_2fwo | r/programming | public | null |
False | _WeAreAllToBlame_ | t2_2ic57x83 | I always love it when somebody shits on C and C++. | null | 0 | 1546033509 | False | 0 | ecrd8il | t3_aac4hg | null | null | t3_aac4hg | /r/programming/comments/aac4hg/modern_c_lamentations/ecrd8il/ | 1548197606 | -12 | t5_2fwo | r/programming | public | null |
False | the_gnarts | t2_9ya05 | > I dont care if i get downvoted or fired for it I love breaking things up with pipes
Three return codes to handle instead of just the one for awk(1)?
Some people don’t feel any pain … | null | 0 | 1544721748 | False | 0 | ebpjfor | t3_a5sg9k | null | null | t1_ebp4jea | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjfor/ | 1547560245 | 6 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1546033520 | 1546882994 | 0 | ecrd93p | t3_aaco1d | null | null | t1_ecrd452 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrd93p/ | 1548197614 | 28 | t5_2fwo | r/programming | public | null |
False | Ironfist | t2_3qutu | I'd replace this entire thing with a simple perl or python script. You could then use perl LWP or python requests to grab the menu data from the restaurant's web site. | null | 0 | 1544721797 | False | 0 | ebpjhxp | t3_a5sg9k | null | null | t1_ebox6vg | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjhxp/ | 1547560272 | 2 | t5_2fwo | r/programming | public | null |
False | SaltineAmerican_1970 | t2_2kk3ohg | If you're going to post in English, learn English. | null | 0 | 1546033528 | False | 0 | ecrd9h5 | t3_aacb38 | null | null | t3_aacb38 | /r/programming/comments/aacb38/adsense_magic_keywords/ecrd9h5/ | 1548197618 | 2 | t5_2fwo | r/programming | public | null |
False | hyperforce | t2_3s0nr | There's a lot of nothing in this article. It's just questioning the interview process. Which has been questioned many times already. Some people even bother giving solutions.
I do agree that we're in some local maximum territory. Any solution would need to surmount the force of friction. | null | 0 | 1544721842 | False | 0 | ebpjk29 | t3_a5u9z0 | null | null | t3_a5u9z0 | /r/programming/comments/a5u9z0/cs_interviews_and_how_they_can_become_unbroken/ebpjk29/ | 1547560298 | 5 | t5_2fwo | r/programming | public | null |
False | Pockensuppe | t2_2dw9wiqr | The funny part is that based on the selection of discussed topics and the level of detail in the descriptions, it's trivial to correctly guess what the author is working with. I'd call this the *knowledge frontier* of the author (similar to a *dominance frontier* in graph theory): It's the list of topics the author is not proficient in but has heard of because of links with topics he is proficient in. | null | 0 | 1546033532 | False | 0 | ecrd9pj | t3_aaco1d | null | null | t3_aaco1d | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrd9pj/ | 1548197621 | 39 | t5_2fwo | r/programming | public | null |
False | Morego | t2_al3vl | There was something similar for ruby. Stimulus.js and server side libraries all sounds useful | null | 0 | 1544721898 | False | 0 | ebpjmsd | t3_a5ssxk | null | null | t1_ebozn0u | /r/programming/comments/a5ssxk/razor_components_for_a_javascriptfree_frontend_in/ebpjmsd/ | 1547560333 | -1 | t5_2fwo | r/programming | public | null |
False | Zephirdd | t2_5yhdf | good Lord, *Lambdas* are complicated? The most complicated part is probably the scope capturing (which is whatever you write inside the `[]` part of the lambda), but other than that every other language with a lambda is the same.
Although, thinking about it, there *are* some dinosaurs I work with who don't want to switch to Java 11 because `var` is supposedly going to make the code more fragile and error prone. How? I have no fucking idea. But *no switching out of java 8*! | null | 0 | 1546033559 | False | 0 | ecrdb2z | t3_aac4hg | null | null | t1_ecr0f3z | /r/programming/comments/aac4hg/modern_c_lamentations/ecrdb2z/ | 1548197638 | 93 | t5_2fwo | r/programming | public | null |
False | Dgc2002 | t2_52v7g | Actually, we're the white blood cells downvoting your toxic bullshit comments. | null | 0 | 1544721924 | False | 0 | ebpjo0q | t3_a5qm02 | null | null | t1_ebp8xuw | /r/programming/comments/a5qm02/a_tale_of_132_es/ebpjo0q/ | 1547560348 | 14 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1546033582 | False | 0 | ecrdc9p | t3_aabai1 | null | null | t1_ecrd27x | /r/programming/comments/aabai1/fish_shell_30/ecrdc9p/ | 1548197653 | 15 | t5_2fwo | r/programming | public | null |
False | zeroone | t2_3782z | That looks rather lousy. | null | 0 | 1544721950 | False | 0 | ebpjp8p | t3_a5umpk | null | null | t3_a5umpk | /r/programming/comments/a5umpk/10_new_features_in_java_11/ebpjp8p/ | 1547560362 | 15 | t5_2fwo | r/programming | public | null |
False | tortoise888 | t2_povch | I wonder how he got hired at Facebook which is supposedly a very algorithm heavy interview. Name recognition from his OSS efforts alone? | null | 0 | 1546033698 | False | 0 | ecrdhyq | t3_aaco1d | null | null | t1_ecr8em9 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrdhyq/ | 1548197723 | 58 | t5_2fwo | r/programming | public | null |
False | James-Lerch | t2_46m1b | Clearly he compiled openCV and integrated it with his smart glasses to identify the images and text and put the results into a text file. (I could probably do that and I suck at this! :) ) | null | 0 | 1544721955 | False | 0 | ebpjpgx | t3_a5sg9k | null | null | t1_ebp1n6v | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjpgx/ | 1547560365 | 6 | t5_2fwo | r/programming | public | null |
False | shenglong | t2_2nn6w | It really is pointless. I don't understand how you cannot understand *literal words* in that document. It's *painfully obvious* to me that you should just continue write "unreasonable" code instead of bothering with this discussion. | null | 0 | 1546033720 | False | 0 | ecrdj1e | t3_aa3qdm | null | null | t1_ecrcvtc | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecrdj1e/ | 1548197737 | 1 | t5_2fwo | r/programming | public | null |
False | PC__LOAD__LETTER | t2_pgt8t | No if you care about performance for small problems and datasets, don’t use shell one-liners. | null | 0 | 1544722031 | False | 0 | ebpjt66 | t3_a5sg9k | null | null | t1_ebpjcqw | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjt66/ | 1547560411 | 4 | t5_2fwo | r/programming | public | null |
False | kanadkanad | t2_celoqln | I’ve never understood the flickering in these demo videos either. Don’t you want to apply some temporal smoothing or include some assumption in your model that objects don’t disappear in a single frame?
Since I’ve seen this in many similar videos, I think it must be something that is either not important for people who actually know what’s up (e.g., filtering should happen later and this is just the raw data) or is is actually harder to do than one might expect. | null | 0 | 1546033720 | False | 0 | ecrdj2s | t3_aa91bp | null | null | t1_ecpzjfx | /r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrdj2s/ | 1548197738 | 2 | t5_2fwo | r/programming | public | null |
False | coolreader18 | t2_htuog | Calling it Microsoft Code wouldn't be any better...? | null | 0 | 1544722089 | False | 0 | ebpjw0q | t3_a5mk9z | null | null | t1_ebpimtk | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebpjw0q/ | 1547560446 | 21 | t5_2fwo | r/programming | public | null |
False | Xx_PUSSYSLAYER69_x | t2_2sypjf7b | Fuck off | null | 0 | 1546033923 | False | 0 | ecrdt2q | t3_aacb38 | null | null | t3_aacb38 | /r/programming/comments/aacb38/adsense_magic_keywords/ecrdt2q/ | 1548197862 | 1 | t5_2fwo | r/programming | public | null |
False | sinedpick | t2_ksuu9 | I'd already pored through both those links and couldn't find an example of reader macros being implemented without reader macros. Can't you give me a link to a file, or even something to look up where I can see it clearly? I'm just not sure how you can claim that reader macros can be implemented with non-reader macros because reader macros run before any non-reader macro has a chance to run. | null | 0 | 1544722100 | False | 0 | ebpjwli | t3_a5p0ct | null | null | t1_ebpj9mg | /r/programming/comments/a5p0ct/extending_a_language_with_reader_macros_a_subset/ebpjwli/ | 1547560454 | 2 | t5_2fwo | r/programming | public | null |
False | jewnicorn27 | t2_elvfc | There is a lot of unforseen complexity in intergrating addition modes of imaging. For one you would have to restructure at least the first layer of the network to accept the additional channel, or encode the data into your existing channels in some way (not sure how). Doing that would do interesting things to your weights and potentially complicate transfer learning approaches.
Also lidar sensors capture data differently to cameras, some don't reperesent data in a typical camera model, so this would be interesting. They also have very different dynamic range as lidars will measure distances of up to hundreds of meters to mm or cm, while typical color images will be 8bit per channel. That might be fine though as networks run in float for the most part anyway.
Also the lidar and camera won't be perfectly aligned, or image the same fov, so there is some linear algebra for considering how you sample one into the other, could possibly ignore this and hope the model handles it?
Images from lidar and radar also take time to generate, as the sensor spins, this means for a moving platform, you have potentially detectable seams in your images and discontinuities present in one mode but not others.
Not saying it can't be done, just providing a few considerations for doing so lol. | null | 0 | 1546033985 | False | 0 | ecrdw1h | t3_aa91bp | null | null | t1_ecqmh84 | /r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrdw1h/ | 1548197898 | 1 | t5_2fwo | r/programming | public | null |
False | jonnywoh | t2_bbuo5 | That's very cool, Javascript programmer, but that's nothing. The 10x Javascript programmer simply isntalls the shrimp-price-is-not-greater-than-or-equal-to-than-ten module from npm:
const shrimpPriceIsNotGreaterThanOrEqualToTen = require('shrimp-price-is-not-greater-than-or-equal-to-ten')
shrimpPriceIsNotGreaterThanOrEqualToTen()
// => true | null | 0 | 1544722112 | False | 0 | ebpjx55 | t3_a5sg9k | null | null | t1_ebp44ix | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjx55/ | 1547560461 | 14 | t5_2fwo | r/programming | public | null |
False | larsga | t2_1s7k | > if modern C++ is not easier to understand than old style for loops then modern C++ is not worth it
That's exactly it. This is also why I loathe Scala. | null | 0 | 1546034033 | False | 0 | ecrdycm | t3_aac4hg | null | null | t1_ecr8mp6 | /r/programming/comments/aac4hg/modern_c_lamentations/ecrdycm/ | 1548197927 | 55 | t5_2fwo | r/programming | public | null |
False | Ironfist | t2_3qutu | Powershell works in Linux too... | null | 0 | 1544722126 | False | 0 | ebpjxvp | t3_a5sg9k | null | null | t1_ebp3da1 | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpjxvp/ | 1547560469 | 5 | t5_2fwo | r/programming | public | null |
False | jewnicorn27 | t2_elvfc | Could you possibly find me a link to that? | null | 0 | 1546034040 | False | 0 | ecrdyoj | t3_aa91bp | null | null | t1_ecras65 | /r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrdyoj/ | 1548197931 | 2 | t5_2fwo | r/programming | public | null |
False | lbkulinski | t2_17799v | We’ve gotten a lot more than that... And with the new release cadence, features will be delivered even faster. Here is what is new in [Java 9](http://openjdk.java.net/projects/jdk9/), [Java 10](http://openjdk.java.net/projects/jdk/10/), [Java 11](http://openjdk.java.net/projects/jdk/11/), and [Java 12](http://openjdk.java.net/projects/jdk/12/).
You can’t sit here and tell me that they aren’t delivering new features. It takes time to design and implement them. | null | 0 | 1544722147 | 1544722684 | 0 | ebpjyw2 | t3_a5969k | null | null | t1_ebpiwum | /r/programming/comments/a5969k/java_12_likely_will_not_have_raw_string_literals/ebpjyw2/ | 1547560482 | 0 | t5_2fwo | r/programming | public | null |
False | Drisku11 | t2_bg6v5 | What refactor? I said your provided function looked fine and didn't need any changes.
Unless RunBazCode never returns (which should be documented), the logic here is different, so I still don't see your point. Your new function here also looks fine to me because it's not *redundant*.
Assuming the possibility of buggy code, having a standard that says you have empty `else` cases doesn't mean I know your intent any better. i.e. you could write:
void HandleFoo(Foo foo)
{
if (foo.Name == "Baz") {
RunBazCode();
} else {
}
RunBarCode();
}
and I still don't know whether there's a bug. The whole point is either you did not write what you intended to, or what you intended was wrong. | null | 0 | 1546034134 | False | 0 | ecre3gh | t3_aa3qdm | null | null | t1_ecrcy3h | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecre3gh/ | 1548198020 | 1 | t5_2fwo | r/programming | public | null |
False | Dean_Roddey | t2_r72lw | That's not the language, that's you writing code. The language's semantics are what you can express in terms of the language itself, e.g.: const, in, inout, mutable, that sort of stuff. All that is good stuff, but it's quite limited. The vast bulk of what the compiler is doing is just making sure your code is syntactically correct, plus whatever bits of the above types of code oriented semantics it provides.
Sure, we can write code that expresses semantics, that's mostly what we are doing when we write code. But that's nothing to do with the language. But that's a completely different thing. The language itself doesn't understand those semantics and will not check that they are correct of that they remain unchanged. So you don't get your back covered on that front every single time you compile as you do with language based semantics.
That code level stuff is only as correct as we, fallible, programmers can make it. As has been proven since the first cave men scratched some binary on a cave wall, we fall pretty short. And of course even those semantics we express in, say, a class, only hold true within that class. And the compiler isn't going to catch the fact that Johnny Jr programmer made a change that is in some subtle (or even gross) way violating the intended semantics of the class. Tests can help do that, since they can be written and run against the code after all changes.
&#x200B; | null | 0 | 1544722193 | False | 0 | ebpk0z7 | t3_a5iior | null | null | t1_ebowx69 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebpk0z7/ | 1547560508 | 2 | t5_2fwo | r/programming | public | null |
False | yawkat | t2_a7pa9 | Scala is such a good example of this. It's a very powerful language but it's so easy to write unreadable code in it. | null | 0 | 1546034318 | False | 0 | ecrecnn | t3_aac4hg | null | null | t1_ecrdycm | /r/programming/comments/aac4hg/modern_c_lamentations/ecrecnn/ | 1548198134 | 33 | t5_2fwo | r/programming | public | null |
False | Ironfist | t2_3qutu | I ran out of parentheses. | null | 0 | 1544722202 | False | 0 | ebpk1fb | t3_a5sg9k | null | null | t1_ebpilcd | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpk1fb/ | 1547560513 | 10 | t5_2fwo | r/programming | public | null |
False | yawaramin | t2_77bue | Asking a dev manager this is like asking a judge 'How do you figure out how to assign blame or not to parties in your cases?' | null | 0 | 1546034356 | False | 0 | ecreeh2 | t3_aaagix | null | null | t1_ecr7fcf | /r/programming/comments/aaagix/why_review_code/ecreeh2/ | 1548198155 | 9 | t5_2fwo | r/programming | public | null |
False | coolreader18 | t2_htuog | Yes, just like Bill Gates is personally working on Minecraft. Just because Microsoft acquired GitHub doesn't mean they have direct control over every aspect of it; it's still the same team working on atom. | null | 0 | 1544722220 | False | 0 | ebpk2az | t3_a5mk9z | null | null | t1_ebpgsyw | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebpk2az/ | 1547560524 | 12 | t5_2fwo | r/programming | public | null |
False | moizici | t2_dhsqu | These are the things they know they don't.
These aren't the things they don't know they don't. | null | 0 | 1546034369 | False | 0 | ecref37 | t3_aaco1d | null | null | t1_ecrd9pj | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecref37/ | 1548198163 | 32 | t5_2fwo | r/programming | public | null |
False | Aphix | t2_36j3z | set +o history | null | 0 | 1544722229 | False | 0 | ebpk2rj | t3_a5sg9k | null | null | t1_ebpje0q | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpk2rj/ | 1547560530 | 5 | t5_2fwo | r/programming | public | null |
False | flukus | t2_3855p | There was a lot of resistance to var in c# because people thought it was dynamic typing and slower. | null | 0 | 1546034429 | False | 0 | ecrei37 | t3_aac4hg | null | null | t1_ecrdb2z | /r/programming/comments/aac4hg/modern_c_lamentations/ecrei37/ | 1548198200 | 52 | t5_2fwo | r/programming | public | null |
False | dr4g0n41r | t2_1dhsbjtj | I think you nailed it. Pretty sure that’s what I did. | null | 0 | 1544722237 | False | 0 | ebpk33l | t3_a5hkyo | null | null | t1_eboyn76 | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebpk33l/ | 1547560534 | 2 | t5_2fwo | r/programming | public | null |
False | xcdesz | t2_79zii | Developers make poor interviewers. The 'on the spot' quiz format is really a lousy way to identify talent.
| null | 0 | 1546034431 | False | 0 | ecrei69 | t3_aaco1d | null | null | t1_ecr8em9 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrei69/ | 1548198201 | 32 | t5_2fwo | r/programming | public | null |
False | that_jojo | t2_10uhaw | No. It’s pretty clearly explained in the article. | null | 0 | 1544722250 | False | 0 | ebpk3qf | t3_a5sg9k | null | null | t1_ebpgv1a | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpk3qf/ | 1547560545 | 4 | t5_2fwo | r/programming | public | null |
False | qzrt | t2_175xbf | > The D programming language has a well thought out range feature
Not that well thought out, ranges don't work very well with lists. But D doesn't really have containers in it's std library anyways. | null | 0 | 1546034478 | False | 0 | ecrekjy | t3_a9q4iu | null | null | t1_eclxgym | /r/programming/comments/a9q4iu/ranges_code_quality_and_the_future_of_c/ecrekjy/ | 1548198231 | 1 | t5_2fwo | r/programming | public | null |
False | mghoffmann | t2_mje3q | I'm having settings blindness- where is it? | null | 0 | 1544722253 | False | 0 | ebpk3vn | t3_a5mk9z | null | null | t1_ebp2j9n | /r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebpk3vn/ | 1547560546 | 1 | t5_2fwo | r/programming | public | null |
False | yawkat | t2_a7pa9 | > even in C
C might be one of the earlier languages coroutines were implemented in - they're the core of multithreading as it is implemented in operating systems | null | 0 | 1546034499 | False | 0 | ecreln7 | t3_aac4hg | null | null | t1_ecqyrz8 | /r/programming/comments/aac4hg/modern_c_lamentations/ecreln7/ | 1548198244 | 15 | t5_2fwo | r/programming | public | null |
False | Pvt_Ryan100 | t2_p0o20 | That's the kind of thinking that's made apps grow from megabytes to gigabytes.. | null | 1 | 1544722271 | False | 0 | ebpk4sq | t3_a5sg9k | null | null | t1_ebp7xep | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpk4sq/ | 1547560558 | 5 | t5_2fwo | r/programming | public | null |
False | isaystuffonreddit | t2_wmbh4 | > I know you guys here ate not fans of Terry.
au contraire, they often defend his hatred of "niggers", because they secretly or not-so-secretly hate niggers themselves | null | 0 | 1546034518 | False | 0 | ecremlk | t3_a8mjza | null | null | t1_ecc5xkp | /r/programming/comments/a8mjza/templeos_down_the_rabbit_hole/ecremlk/ | 1548198256 | 1 | t5_2fwo | r/programming | public | null |
False | Condex | t2_o7nuj | >But everyone would be in agreement on this so the "objective measure" is useless.
No, the point is that because everyone is in agreement we can use this as a hint that maybe objective cognitive complexity is actually a thing. What we gain is a clue that our efforts aren't going to be totally wasted.
&#x200B;
>we do need to define what is well named
Correct, but I didn't want to do it in a post because it's not exactly compact. The point is "we can do this", not "here's the mechanics".
&#x200B;
Pick a definition for "well named". It doesn't matter what that definition is. Then apply that definition across every variable, method, or symbol you encounter in your day to day life. If your definition matches your intuition, then we're off to a good start. Next, see if you can extract anything out of your definition that can be generalized. Then see if the generalizations continue to hold true for other aspects of software development. If the generalizations hold true, then start to see if they are complete. Does the generalization describe how everything can be complex or does it only describe some things. If your generalization isn't complete add new concepts of complexity and restart the process with these concepts. Continue until you have a set of generalizations that seem complete. Along the way also look for opportunities to generalize the generalizations and/or combine them with other generalizations.
&#x200B;
Now you have a hypothesis that \*might\* work for complexity. This is where I am. The next step is to use the complexity framework to generate a set of problems that by the framework should be simple and should be complex. Then find a large set of people to present the problems to and get feedback on whether or not they also believe the simple problems are simple and the complex problems are complex. The problems should be as artificial as possible to avoid familiarity from being a factor. If the results are positive, then you might have something. Otherwise you'll need to start over from the beginning or see if you can patch the hypothesis.
&#x200B;
What's \*my\* definition for well named variables? Continuous relationships are easy for people to deal with and discontinuous relationships are hard. So:
`func DoTheThing()`
`func DoThething()`
These two functions are named badly because it introduces a discontinuous relationship. That is a small change in what someone types ("t" or "T" in the middle of the symbol) will result in a large change (a completely different function is called).
&#x200B;
This is not the only factor that goes into a well named variable. There are several more, but in order to talk about all of them I would need a rather long blog series ([which conveniently I happen to already have](https://www.sep.com/sep-blog/2017/04/25/objective-code-quality-blog-series/)).
&#x200B;
Like I said earlier, I don't have to be right, however I think this is the right path for \*somebody\* in the industry to go down and eventually be successful. Having something objective is the only way to make progress because without it we're just going to keep on arguing without having a way to evaluate the outcomes.
&#x200B; | null | 0 | 1544722271 | False | 0 | ebpk4t1 | t3_a5cm5c | null | null | t1_ebpi95c | /r/programming/comments/a5cm5c/people_who_disagree_with_you_arent_trying_to_make/ebpk4t1/ | 1547560558 | 1 | t5_2fwo | r/programming | public | null |
False | MartY212 | t2_f9lgi | Just to address your first point, I don't believe anybody worships complexity. Rather simplicity which is often brought with abstractions, which can make the entire system complex.
If you watched the full video, he addresses this. Attacking the problems at the root allows for a simpler solution rather than layers above.
I think your next couple of paragraphs just went on a tangent. I don't know enough about 3D printing to address your point. | null | 0 | 1546034643 | False | 0 | ecresw5 | t3_aaa8y7 | null | null | t1_ecrapsk | /r/programming/comments/aaa8y7/taming_the_chaos_can_we_build_systems_that/ecresw5/ | 1548198333 | 4 | t5_2fwo | r/programming | public | null |
False | thegreatgazoo | t2_32fvm | He'd probably agree with you | null | 0 | 1544722278 | False | 0 | ebpk557 | t3_a5sg9k | null | null | t1_ebparma | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpk557/ | 1547560563 | 5 | t5_2fwo | r/programming | public | null |
False | AttackOfTheThumbs | t2_79zad | > I think you took a friendly comment on Reddit way more seriously one should take it
Welcome to /r/programming | null | 0 | 1546034674 | False | 0 | ecreuej | t3_aabai1 | null | null | t1_ecqxvjt | /r/programming/comments/aabai1/fish_shell_30/ecreuej/ | 1548198352 | 8 | t5_2fwo | r/programming | public | null |
False | Aphix | t2_36j3z | ITT: People without `shellcheck` (or SublimeLinter-shellcheck) | null | 0 | 1544722359 | False | 0 | ebpk95o | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpk95o/ | 1547560612 | 1 | t5_2fwo | r/programming | public | null |
False | chugga_fan | t2_raasi | I still resist var everywhere, use var in constructors or one time use objects, don't use var from returned functions, etc., especially if it's a class that's short and non-obvious and shares a lot of methods with another class. | null | 0 | 1546034771 | False | 0 | ecreyy4 | t3_aac4hg | null | null | t1_ecrei37 | /r/programming/comments/aac4hg/modern_c_lamentations/ecreyy4/ | 1548198408 | 30 | t5_2fwo | r/programming | public | null |
False | moreVCAs | t2_2czt8cq0 | Lol perfect | null | 0 | 1544722363 | False | 0 | ebpk9cw | t3_a5sg9k | null | null | t1_ebp35nq | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpk9cw/ | 1547560614 | 2 | t5_2fwo | r/programming | public | null |
False | Earhacker | t2_a6yih | I agree 100% with everything you wrote, but that's not what bikeshedding is. Bikeshedding is when a project never gets off the ground because the creators waste time on the kinds of minute details you describe. If the Fish shell authors, at the early 3.0 planning stages, had a lengthy discussion over whether to start arrays at 0 or 1, and this discussion held up any real work on the shell, that would be bikeshedding. | null | 0 | 1546034857 | False | 0 | ecrf37z | t3_aabai1 | null | null | t1_ecrcszd | /r/programming/comments/aabai1/fish_shell_30/ecrf37z/ | 1548198462 | 28 | t5_2fwo | r/programming | public | null |
False | Alikont | t2_alrkk | All logic that developer writes is written in C#. JS is just a platform library | null | 0 | 1544722374 | False | 0 | ebpk9xj | t3_a5ssxk | null | null | t1_eboz049 | /r/programming/comments/a5ssxk/razor_components_for_a_javascriptfree_frontend_in/ebpk9xj/ | 1547560622 | 6 | t5_2fwo | r/programming | public | null |
False | geekville | t2_3u7f4 | Yes, and people understand that you have to sometimes trade performance for productivity. But those same people are not choosing C++, they're moving to python or C# or JavaScript and other 'high level' languages (IMO/E). The people who use C++ the most, IMHO are people who do low level system programming type stuff. Are they really benefiting from the changes in C++17/20? I can see how library devs are loving some of the new features... | null | 0 | 1546034893 | False | 0 | ecrf4xk | t3_aac4hg | null | null | t1_ecqrdob | /r/programming/comments/aac4hg/modern_c_lamentations/ecrf4xk/ | 1548198483 | 4 | t5_2fwo | r/programming | public | null |
False | that_jojo | t2_10uhaw | That nested select though | null | 0 | 1544722404 | False | 0 | ebpkbfi | t3_a5sg9k | null | null | t1_ebpbctu | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpkbfi/ | 1547560640 | 13 | t5_2fwo | r/programming | public | null |
False | jagjordi | t2_1lijprfg | how can you have worked with Python and don't know it? | null | 0 | 1546034974 | False | 0 | ecrf8qc | t3_aaco1d | null | null | t3_aaco1d | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrf8qc/ | 1548198530 | 6 | t5_2fwo | r/programming | public | null |
False | FierceDeity_ | t2_vgcz6 | I've seen a lot of jpg menus though. They do exist in plentiful quantities | null | 0 | 1544722435 | False | 0 | ebpkd0n | t3_a5sg9k | null | null | t1_ebp5469 | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpkd0n/ | 1547560660 | 12 | t5_2fwo | r/programming | public | null |
False | exorxor | t2_h57gcb9 | I have 315 threads on my *laptop* as we speak. Unfortunately, I don't have 315 cores.
This is the equivalent of "640K should be enough for everyone". | null | 0 | 1546034985 | False | 0 | ecrf98i | t3_aa3ojc | null | null | t3_aa3ojc | /r/programming/comments/aa3ojc/pessimism_about_parallelism_are_more_that_two/ecrf98i/ | 1548198536 | 1 | t5_2fwo | r/programming | public | null |
False | FairlyFaithfulFellow | t2_9fczz | What kind of workflow would use so many branches that simply "git branch" is not enough? Not trying to be judgmental here, I'm honestly curious. | null | 0 | 1544722462 | False | 0 | ebpkeeu | t3_a5r3ou | null | null | t3_a5r3ou | /r/programming/comments/a5r3ou/git_tip_list_the_most_recent_branches_you_are/ebpkeeu/ | 1547560677 | 1 | t5_2fwo | r/programming | public | null |
False | sessamekesh | t2_pnrxq | Neat. I know some of those words. | null | 0 | 1546035018 | False | 0 | ecrfas5 | t3_aaco1d | null | null | t3_aaco1d | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrfas5/ | 1548198555 | 9 | t5_2fwo | r/programming | public | null |
False | Aphix | t2_36j3z | As they say, "Never order from the right side of the menu." | null | 0 | 1544722493 | False | 0 | ebpkg15 | t3_a5sg9k | null | null | t1_ebpdl57 | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpkg15/ | 1547560698 | 1 | t5_2fwo | r/programming | public | null |
False | sadderreborn | t2_2qizqgel | If thats Linq to sql thats not true until you run the Querable with a ToList() or such | null | 0 | 1546035034 | False | 0 | ecrfbhg | t3_aac4hg | null | null | t1_ecqzek4 | /r/programming/comments/aac4hg/modern_c_lamentations/ecrfbhg/ | 1548198563 | 3 | t5_2fwo | r/programming | public | null |
False | bitwize | t2_6dq6 | Once upon a time, this subreddit was full of lisp and PL nerds who would eat this stuff up. Though I'm sure /r/lisp would appreciate it.
Hackernews is too busy contemplating their own gut bacteria to geek out over something like this. | null | 0 | 1544722497 | False | 0 | ebpkg7x | t3_a5p0ct | null | null | t1_eboogaz | /r/programming/comments/a5p0ct/extending_a_language_with_reader_macros_a_subset/ebpkg7x/ | 1547560700 | 5 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1546035062 | False | 0 | ecrfct4 | t3_aa91bp | null | null | t1_ecr8thw | /r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrfct4/ | 1548198609 | 1 | t5_2fwo | r/programming | public | null |
False | osztyapenko | t2_xmfs7 | No, we are talking about bugs, not requirements. | null | 0 | 1544722500 | False | 0 | ebpkgdz | t3_a5iior | null | null | t1_eboybnt | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebpkgdz/ | 1547560702 | 1 | t5_2fwo | r/programming | public | null |
False | appoloman | t2_4k5vc | *Must* readability be the one quality to which all others must bow?I'm not neccesarily disagreeing with the conclusions of the article, or the tone of the discussion in general, but it bugs me somewhat that it's taken as a given that readable code is the most important thing regardless of context.
I might deem to favour robust code, unbreakable code, extensible code, etc, over readable code in certain contexts. | null | 1 | 1546035071 | False | 0 | ecrfd78 | t3_aac4hg | null | null | t3_aac4hg | /r/programming/comments/aac4hg/modern_c_lamentations/ecrfd78/ | 1548198614 | -1 | t5_2fwo | r/programming | public | null |
False | pruzinat | t2_ajh8epd | We use cat because before we need to see the "file" before we can write our frankenstein script that parses out what we want. Typical workflow:
cat file
cat file | grep somethng
cat file | grep -i something
cat file | grep -i something | awk '{$1=""; print $0}'
cat file | grep -i something | awk ... | sed ..
cat file | grep -i something | awk ... | sed .. | ...
We iterate until we get what we want. In actual usage it's pretty rare to get it right the first time and I don't even try for the most part, because displaying output of each partial step is so much easier to wrap your head around than keeping all that state in head.
This is also the reason why most people are stuck with very basic knowledge of advanced usage of grep/awk/sed. People don't bother to learn complex functionality when you can parse anything you can think of with combination of basic commands and pipes.
Why? We are lazy and we can :-)
PS: This is (almost) literally the only use case where I give grep a file is when I grep across more than one file and need the information where the match comes from.
$ grep '__asm' src/*
src/memcpy.c: __asm volatile (
src/rdtsc.c: __asm volatile ( "rdtsc" : "=a" (a), "=d" (d) ); | null | 0 | 1544722539 | 1544723375 | 0 | ebpkiab | t3_a5sg9k | null | null | t1_ebp7wao | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpkiab/ | 1547560725 | 102 | t5_2fwo | r/programming | public | null |
False | isuruamaliya | t2_2b7t7xqg | why fuckoff | null | 0 | 1546035152 | False | 0 | ecrfgwc | t3_aacb38 | null | null | t1_ecrdt2q | /r/programming/comments/aacb38/adsense_magic_keywords/ecrfgwc/ | 1548198659 | -1 | t5_2fwo | r/programming | public | null |
False | mjmalone | t2_s7cc0 | Dammit. I blame my phone. | null | 0 | 1544722595 | False | 0 | ebpkl23 | t3_a5kkr5 | null | null | t1_ebpddx3 | /r/programming/comments/a5kkr5/everything_you_should_know_about_certificates_and/ebpkl23/ | 1547560760 | 1 | t5_2fwo | r/programming | public | null |
False | DroneDashed | t2_jjtoi | Actually I already do that, I'm what you could call a python fanboy. | null | 0 | 1546035169 | False | 0 | ecrfhog | t3_aabai1 | null | null | t1_ecr9t0y | /r/programming/comments/aabai1/fish_shell_30/ecrfhog/ | 1548198669 | 1 | t5_2fwo | r/programming | public | null |
False | Dean_Roddey | t2_r72lw | See my post above. Encoded by US, not by the language. Yes, types are expressing semantics, and for the fundamental types, those are semantics that are built into the language. And, of course it insures that if this thing only accepts a Bubbatron, that don't pass a Jimmytron object. But, mostly, those types of semantics are human created (a class) and the compiler knows nothing whatsoever about them beyond the fairly basic stuff above. Those semantics will only be as correct as the humans writing the code makes them.
I was talking about semantics that are enforced by the language itself and checked every time you compile. There's not really THAT much there. In most languages there could be a good bit more. Our own human created semantics could be completely invalid and the compiler wouldn't know.
Tests can be a check that the semantics of a class are correct and remain so over time, because it can check from the outside. It's sort of a classic case of no thing can reliably assess itself. Having an outside sanity check is very useful. The compiler will not catch a huge swath of changes that might be made over time that would change the semantics of the class in some way that will ultimately cause some sort of meltdown in the field.
&#x200B; | null | 0 | 1544722610 | False | 0 | ebpkls6 | t3_a5iior | null | null | t1_eboowdw | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebpkls6/ | 1547560768 | 1 | t5_2fwo | r/programming | public | null |
False | Candid_Calligrapher | t2_2nsvdulx | Yes, it's a different situation in the workplace. | null | 0 | 1546035175 | False | 0 | ecrfhz4 | t3_aaco1d | null | null | t1_ecrd93p | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrfhz4/ | 1548198673 | 1 | t5_2fwo | r/programming | public | null |
False | DrDuPont | t2_4lpqh | I've always felt uneasy about Joe Smith adding the `shrimp-pad` dependency on his fork, that's a zero Github star repo | null | 0 | 1544722639 | False | 0 | ebpknav | t3_a5sg9k | null | null | t1_ebp58fk | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpknav/ | 1547560813 | 25 | t5_2fwo | r/programming | public | null |
False | Citvej | t2_n3wtu | Was I drunk 4 hours ago when this was posted. Cause I don't remember making that list. | null | 0 | 1546035282 | False | 0 | ecrfmrk | t3_aaco1d | null | null | t3_aaco1d | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrfmrk/ | 1548198732 | 51 | t5_2fwo | r/programming | public | null |
False | Yserbius | t2_3kytu | Can I just gripe about how needlessly obtuse the whole PKI infrastructure is for end users? Public key cryptography is probably the most powerful and useful tool in the world of data transfers and privacy. Yet, unless you're a sysdamin, you probably don't knowingly use PKI at all.
Hey Bob! Want to receive an email and aren't interested in anyone reading it other than the recipient? Easy! Just download OpenSSL (I hope you have Linux), run the 50 character command that generates a private key, run the 80 character command that exports a public key to a certificate, convert the DER to a base64 encoding, send the cert to your friend Alice, have Alice convert the cert back to a DER, have Alice run the OpenSSL command sequence to encrypt the data, have Alice send the data to you in an attachment, download the attachment, run the OpenSSL sequence to decrypt the attachment and PRESTO! PGP for modern software!
I never say things like this, but the US military does it right. Every service member and civilian involved with the service receives a smart card. The card has their face on it and can be used as an ID. But it also contains a key pair which can be unlocked at any computer with a card reader and a PIN. Ever Department of Defense computer has software installed to make it easy to encrypt, decrypt, encrypt for whomever, send and receive encrypted emails, mutual ID on websites, etc. | null | 0 | 1544722673 | False | 0 | ebpkp0z | t3_a5kkr5 | null | null | t3_a5kkr5 | /r/programming/comments/a5kkr5/everything_you_should_know_about_certificates_and/ebpkp0z/ | 1547560834 | 7 | t5_2fwo | r/programming | public | null |
False | FeepingCreature | t2_201xo | [Here's a range-based functional D version.](https://run.dlang.io/is/WR97q1)
alias Triple = Tuple!(int, "x", int, "y", int, "z");
alias jmap(alias pred) = range => range.map!pred.joiner;
auto printNTriples(int n)
{
return iota(1, int.max).jmap!(
z => iota(1, z + 1).jmap!(
x => iota(x, z + 1).map!(
y => Triple(x, y, z))))
.filter!((triple) {
with (triple) {
return x*x + y*y == z*z;
}
})
.take(n);
}
It compiles in 0.58s - 30ms faster than the coroutine-based one.
edit: Optimized with ldc2, it builds in 1.58s.
~~edit: I can't build the C++ version, so it's hard to compare, but the n=1000 version runs in 0.631s unoptimized, 0.176s optimized. n=100 version is effectively instant, probably dominated by startup.~~
edit: Sorry, that was the generator version, which does seem to be faster due to simplicity. Range version runs in 19s unoptimized (Jesus!), 0.69ms optimized, n=1000. Inlining is *really* big here.
edit: Just for fun, here's the [BetterC version](https://run.dlang.io/is/wzbNTe) (D without the runtime), which builds in 0.17s unoptimized, 0.28s optimized, and is 10KB stripped. | null | 0 | 1546035292 | 1546037050 | 0 | ecrfn7f | t3_aac4hg | null | null | t1_ecra66v | /r/programming/comments/aac4hg/modern_c_lamentations/ecrfn7f/ | 1548198737 | 16 | t5_2fwo | r/programming | public | null |
False | TheGift_RGB | t2_sgjy1 | Not understanding that you're a pathogen doesn't make you a white blood cell, my clueless little lovely. | null | 0 | 1544722681 | False | 0 | ebpkpg2 | t3_a5qm02 | null | null | t1_ebpjo0q | /r/programming/comments/a5qm02/a_tale_of_132_es/ebpkpg2/ | 1547560840 | -14 | t5_2fwo | r/programming | public | null |
False | VernorVinge93 | t2_2amyhthy | He certainly would have been asked questions that were more than just bubble sort and 'count the nesting depth to find Out(n^k)'.
Still, they do try to find people who are practically capable rather than theory heavy | null | 0 | 1546035345 | False | 0 | ecrfpl1 | t3_aaco1d | null | null | t1_ecrdhyq | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrfpl1/ | 1548198766 | 19 | t5_2fwo | r/programming | public | null |
False | yaxu | t2_ploc | yep with troop [https://github.com/Qirky/Troop](https://github.com/Qirky/Troop) | null | 0 | 1544722697 | False | 0 | ebpkqbw | t3_a5srkh | null | null | t1_ebpg6mt | /r/programming/comments/a5srkh/writing_code_to_make_music_in_tokyo/ebpkqbw/ | 1547560850 | 1 | t5_2fwo | r/programming | public | null |
False | wsppan | t2_321ka | Nearly everything he names is backend/server technologies and stuff from CS school. So, my guess is he is a JavaScript programmer and he either never graduated with a CS degree or graduated a while ago. My list would be the opposite of his. | null | 0 | 1546035372 | False | 0 | ecrfqsw | t3_aaco1d | null | null | t3_aaco1d | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrfqsw/ | 1548198781 | 14 | t5_2fwo | r/programming | public | null |
False | m50d | t2_6q02y | > Sure, we can write code that expresses semantics, that's mostly what we are doing when we write code. But that's nothing to do with the language. But that's a completely different thing. The language itself doesn't understand those semantics and will not check that they are correct of that they remain unchanged. So you don't get your back covered on that front every single time you compile as you do with language based semantics.
If your semantics are part of your types then you do. You encode your logic for why your semantics hold into the types of your functions etc., and then the compiler checks that for you. E.g. Curry-Howard shows that you can have the compiler check mathematical proofs - not proofs about const/in/out/mutable, but proofs from the domain of mathematics. If those aren't semantics then I don't know what is. | null | 0 | 1544722742 | False | 0 | ebpkspq | t3_a5iior | null | null | t1_ebpk0z7 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebpkspq/ | 1547560879 | 0 | t5_2fwo | r/programming | public | null |
False | gyroda | t2_90y5r | There's no option to report someone for being a dickhead. Sometimes I've put in a custom reason, but almost every sub should have some kind of "this person is deliberately being a dick" option. | null | 0 | 1546035413 | False | 0 | ecrfsn8 | t3_aaco1d | null | null | t1_ecr8y2j | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrfsn8/ | 1548198804 | 3 | t5_2fwo | r/programming | public | null |
False | CrazyCanuck41 | t2_3r7xm | I read a quote by Alan Kay (I think) that was something along the lines of arrogance is measured in nanodijkstras | null | 0 | 1544722748 | False | 0 | ebpkt1m | t3_a5kk6b | null | null | t1_ebnf3un | /r/programming/comments/a5kk6b/donald_knuths_24th_annual_christmas_lecture/ebpkt1m/ | 1547560883 | 3 | t5_2fwo | r/programming | public | null |
False | falconfetus8 | t2_5lnfr | You'd know your refactoring is correct if the behavior stays the same. That's what unit tests are for. | null | 0 | 1546035466 | False | 0 | ecrfv46 | t3_aa3qdm | null | null | t1_ecqrgy3 | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecrfv46/ | 1548198835 | 1 | t5_2fwo | r/programming | public | null |
False | doomvox | t2_s32d0 | I thought these days, everyone just punched up Google Menu and let it order for you.
| null | 0 | 1544722770 | False | 0 | ebpku7p | t3_a5sg9k | null | null | t3_a5sg9k | /r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebpku7p/ | 1547560899 | 2 | t5_2fwo | r/programming | public | null |
False | LampIsFun | t2_r714g | That's likely what they do, but there is such a large variety of objects that finding every possible combination may be out of reach for a neural network training algorithm, it's likely we need to integrate car manufacturers to constantly update the training library and train the ai to new models of cars(example only for cars, similar example for bags, clothes, etc) | null | 0 | 1546035470 | False | 0 | ecrfvap | t3_aa91bp | null | null | t1_ecra08g | /r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrfvap/ | 1548198836 | 2 | 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.