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
eattherichnow
t2_49buzx
The wanted to call it macro hard but didn't have enough lisp programmers.
null
0
1544735000
False
0
ebq1py1
t3_a5mk9z
null
null
t1_ebpjw0q
/r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebq1py1/
1547568782
4
t5_2fwo
r/programming
public
null
False
Ameisen
t2_5qad2
In every situation aside from artificial or very unusual ones, I've seen templated code generate *smaller* output than non-templated.
null
1
1546042793
False
0
ecrp6iu
t3_aac4hg
null
null
t1_ecrjnc7
/r/programming/comments/aac4hg/modern_c_lamentations/ecrp6iu/
1548203182
-5
t5_2fwo
r/programming
public
null
False
anengineerandacat
t2_hq59g
Would be interested to see how Rust compared up language wise to C#; whereas it makes developing low-level code more efficient if we remove the runtime performance out of it and focus merely on the language style itself I don't think it really compares up. ​ Swift on the other-hand is basically Apple's clone of C# to provide a higher-level lang than Objective-C to it's developer network; most of the features are in parity. ​ When I made my post (and I thought I was clear on it) I was discussing strictly lang features and not runtime or environment; obviously those are constraints that force individuals to select a different language and would require a discussion of "What is the best language for building iOS apps" or "What is the best language for building a web-service".
null
0
1544735168
False
0
ebq1y58
t3_a5i57x
null
null
t1_ebng4at
/r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebq1y58/
1547568884
1
t5_2fwo
r/programming
public
null
False
anstow
t2_1en0af
In my limited experience, getting depth from two cameras close together is really difficult as any small detection error is amplified.
null
0
1546042810
False
0
ecrp79o
t3_aa91bp
null
null
t1_ecr5lp5
/r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrp79o/
1548203192
2
t5_2fwo
r/programming
public
null
False
Zakman--
t2_is8um
If you're physically not far from the server then it feels like a SPA. [Listen to this.](https://youtu.be/CWuIz9khK-o?t=3710) They explain the pros and cons of the server-side model, including latency.
null
0
1544735537
False
0
ebq2fxy
t3_a5ssxk
null
null
t1_ebpsr3l
/r/programming/comments/a5ssxk/razor_components_for_a_javascriptfree_frontend_in/ebq2fxy/
1547569103
1
t5_2fwo
r/programming
public
null
False
Sun_Kami
t2_8yj76
I'm surprised you know TypeScript
null
1
1546042856
False
0
ecrp9ar
t3_aaco1d
null
null
t1_ecrmrsi
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrp9ar/
1548203216
-2
t5_2fwo
r/programming
public
null
False
McNerdius
t2_5e8bl
how many MIT-licensed examples though ? https://github.com/Microsoft/vscode/blob/master/LICENSE.txt VSCode has a shit ton of non-MS contributors. That would cease to be the case if ads were put on the table. Instead, a fork would be made and existing contributors would just work on that instead.
null
0
1544735538
False
0
ebq2fzh
t3_a5mk9z
null
null
t1_ebpuom4
/r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebq2fzh/
1547569104
2
t5_2fwo
r/programming
public
null
False
Ameisen
t2_5qad2
1. Why are you comparing performance of debug builds? 2. Function pointers cannot be inlined. Template argument functions can.
null
1
1546042875
False
0
ecrpa2n
t3_aac4hg
null
null
t1_ecrn5bb
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpa2n/
1548203226
2
t5_2fwo
r/programming
public
null
False
Deranged40
t2_5tgjc
I think this is pretty accurate, however I feel like the example of Bad Clarification Comments, while an excellent example of what I would call bad comments, is exactly the type of comments that most professors are going to expect to see on turned in work. Meaning that lots of people are taught to explain each line of code via a comment as if the person reading has never seen a variable declaration before.
null
0
1544735543
False
0
ebq2g9h
t3_a5u9us
null
null
t3_a5u9us
/r/programming/comments/a5u9us/how_to_write_useful_comments/ebq2g9h/
1547569106
1
t5_2fwo
r/programming
public
null
False
00jknight
t2_13e2hc
I used objective c++, then unity, now back with c++ again (still use Unity recreationally). In my experience LINQ isn't used in game dev because it's not actually that useful in gamedev. Gamedev lends itself to a boatload of if statements and assignments and very little querying. The data tends to be organized so that you either iterate the whole thing or nothing at all. And in the case that you do need to query something, you usually write it old school style, because it's not worth the time investment to profile old school vs LINQ, and its not worth the time investment to learn LINQ and teach your team LINQ because you probably only have a couple places in your whole code base where LINQ would be useful. I used LINQ in a small puzzle game I made, and I can see how it would be very useful in a business/database application, but in games it only becomes useful once the dataset and the number of queries gets large enough.
null
0
1546042915
False
0
ecrpbtw
t3_aac4hg
null
null
t1_ecrmtuw
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpbtw/
1548203248
7
t5_2fwo
r/programming
public
null
False
Piees
t2_5yr9u
Cool read, I think it's a really nice approach. Without looking too much into it, it seems risky to bring into a big business. Although op covered that pretty well
null
0
1544735594
False
0
ebq2iof
t3_a5umm4
null
null
t3_a5umm4
/r/programming/comments/a5umm4/phoenixliveview_interactive_realtime_apps_no_need/ebq2iof/
1547569137
2
t5_2fwo
r/programming
public
null
False
woahdudee2a
t2_o6qm5t0
it's brave of him to come forward and openly admit not knowing algorithms. #metoo
null
0
1546042932
False
0
ecrpclk
t3_aaco1d
null
null
t3_aaco1d
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrpclk/
1548203257
56
t5_2fwo
r/programming
public
null
False
whyNadorp
t2_10stwmbx
Yeah, let’s demonstrate how to use pipes in a non realistic case and in a way that makes using pipes inefficient (check comments above). It’s a bad example however you look at it.
null
0
1544735618
False
0
ebq2jt5
t3_a5sg9k
null
null
t1_ebpjaeu
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq2jt5/
1547569150
1
t5_2fwo
r/programming
public
null
False
Ameisen
t2_5qad2
You need a benchmark to believe that an inlined function, or at least a direct call, can be faster than an indirect call?
null
0
1546042956
False
0
ecrpdmd
t3_aac4hg
null
null
t1_ecrnjju
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpdmd/
1548203270
2
t5_2fwo
r/programming
public
null
False
ric2b
t2_ef6l1
Would you be satisfied with [is-thirteen](https://github.com/jezen/is-thirteen)?
null
0
1544735799
False
0
ebq2sv5
t3_a5sg9k
null
null
t1_ebp4urc
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq2sv5/
1547569293
18
t5_2fwo
r/programming
public
null
False
VodkaHaze
t2_89d6j
Using Object in Java is basically using `void*` in low level languages right?
null
0
1546042956
False
0
ecrpdmy
t3_aac4hg
null
null
t1_ecrjvmu
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpdmy/
1548203270
3
t5_2fwo
r/programming
public
null
False
R-EDDIT
t2_7v7g8
Don't cat grep. Just grep pattern file. Jeez
null
0
1544735960
False
0
ebq30yb
t3_a5sg9k
null
null
t3_a5sg9k
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq30yb/
1547569393
2
t5_2fwo
r/programming
public
null
False
dlyund
t2_hxlpf
Not at all. If you have 3 years experience, and someone else has 3 decades experience, why would you expect to understand his decisions let alone be able to offer a reasonable critique? Hubris. Now, there are plenty of good critiques of Go's supposed flaws out there. This article just isn't one of them.
null
0
1546043010
False
0
ecrpfx2
t3_a8rptf
null
null
t1_ecku6ln
/r/programming/comments/a8rptf/i_do_not_like_go/ecrpfx2/
1548203298
1
t5_2fwo
r/programming
public
null
False
[deleted]
None
Are you using AWS AppSync for the GraphQL at all or just Apollo Server behind API Gateway? https://docs.aws.amazon.com/appsync/latest/devguide/designing-a-graphql-api.html
null
0
1544736013
False
0
ebq33jw
t3_a5wkot
null
null
t3_a5wkot
/r/programming/comments/a5wkot/how_we_built_globoplays_api_gateway_using_graphql/ebq33jw/
1547569425
1
t5_2fwo
r/programming
public
null
False
shponglespore
t2_4dw4r
A lambda can refer to local variables in the scope where it's defined, which adds a *huge* amount of flexibility. It's a hard requirement for doing anything that could reasonably be described as functional-style programming. That, and the code for a function object can potentially be inlined. A sufficiently clever compiler could theoretically inline a function called through a pointer in some cases, but I've never heard of that optimization being implemented in a C++ compiler.
null
0
1546043021
False
0
ecrpge0
t3_aac4hg
null
null
t1_ecqzdk3
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpge0/
1548203304
6
t5_2fwo
r/programming
public
null
False
4ipp
t2_gl4vl00
> JDK 11 introduces the strip methods, which have some subtle differences from trim This will first result in tons of code review comments asking to replace trim calls with strip. Then it will appear in automation tools like findbugs and people won't need to worry about it. Then it will become a popular interview question (together with some other questions like "does finally always get called?"). And then the bright future will come. I understand that there is a backward compatibility in Java, but... come on, two methods that do almost the same? And trim isn't even marked as deprecated.
null
0
1544736139
False
0
ebq39n1
t3_a5umpk
null
null
t3_a5umpk
/r/programming/comments/a5umpk/10_new_features_in_java_11/ebq39n1/
1547569500
12
t5_2fwo
r/programming
public
null
False
airflow_matt
t2_meh1h
Can you tell me what overhead exactly does function\_ref/ScopedLambda have in case the compiler manages to inline it (as suggested by the proposal you have referenced)? As for calling the std::function horrible for being copyable, I'm not sure that's much of a hyperbole. In our entire code base we had zero instances when std::function copying its argument was actually a desirable thing. All copying was completely by accident and only discovered after we replaced std::function with Folly's. And on many occasion it's downright annoying since it is impossible capture non copyable arguments from the lambda.
null
0
1546043068
False
0
ecrpicv
t3_aac4hg
null
null
t1_ecrnt9b
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpicv/
1548203328
0
t5_2fwo
r/programming
public
null
False
Llemons42
t2_da29xh3
It's convoluted for comedic effect. The work done by the first three commands (cat, grep, and awk) can be done by a single call to awk. I'm pretty sure the whole thing could be done with a single call to awk, actually
null
0
1544736169
False
0
ebq3b4s
t3_a5sg9k
null
null
t1_ebp1b20
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3b4s/
1547569519
12
t5_2fwo
r/programming
public
null
False
smashedshanky
t2_hh9bm
If you don’t mind me asking what was the interview like for the CV position. I always get scared over study and the interview ends up not working out since I’m scatter brained in what I answer.
null
0
1546043117
False
0
ecrpkh3
t3_aa91bp
null
null
t1_ecrcwu5
/r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecrpkh3/
1548203354
1
t5_2fwo
r/programming
public
null
False
jafinn
t2_1dz1kgmp
>intro post to unix pipes  I'm guessing that's why he used pipes?
null
0
1544736175
False
0
ebq3bf0
t3_a5sg9k
null
null
t1_ebpx3ur
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3bf0/
1547569522
7
t5_2fwo
r/programming
public
null
False
couscous_
t2_2orqfro0
D doesn’t seem to exhibit that. It has seemingly stronger meta programming capabilities than C++, yet it compiles as fast or faster than golang
null
0
1546043120
False
0
ecrpkkm
t3_aac4hg
null
null
t1_ecrg5e2
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpkkm/
1548203355
19
t5_2fwo
r/programming
public
null
False
FG_Regulus
t2_aybf9
Because existing language servers don't do that.
null
0
1544736176
False
0
ebq3bg8
t3_a5mk9z
null
null
t1_eborynq
/r/programming/comments/a5mk9z/visual_studio_code_version_130_released/ebq3bg8/
1547569522
2
t5_2fwo
r/programming
public
null
False
kvigor
t2_34t4m
This looks extremely neat. However, generator.h references optional/optional.hpp, which does not appear anywhere in the repo. Where is one meant to get this?
null
0
1546043134
False
0
ecrpl5x
t3_aach46
null
null
t3_aach46
/r/programming/comments/aach46/lazy_code_a_c_header_only_lib_what_if_you_could/ecrpl5x/
1548203363
1
t5_2fwo
r/programming
public
null
False
deceased_parrot
t2_7q7zg
TLDR: Multiple datacenters around the world, clients with guaranteed good connectivity (no trains, shitty data plan connections, etc) ?
null
0
1544736179
False
0
ebq3bkm
t3_a5ssxk
null
null
t1_ebq2fxy
/r/programming/comments/a5ssxk/razor_components_for_a_javascriptfree_frontend_in/ebq3bkm/
1547569523
1
t5_2fwo
r/programming
public
null
False
jhild6
t2_2ventncl
Run video recording software after installing nircmd. The files must be in an Apache or another server type for this to work. Video Recording must be in the server folder. You can control the refresh rate in milliseconds in index.html where the number 10 is. This works well for simple things due to the internet. If you can tweak this to make it better please do. Use it and edit it or whatever you want just link my reddit if re-uploading. Folder:[https://drive.google.com/open?id=1L2O6-BErCu0UO6YHATTUXapW4h1PoCm5](https://drive.google.com/open?id=1L2O6-BErCu0UO6YHATTUXapW4h1PoCm5)
null
0
1546043163
False
0
ecrpme7
t3_aag3s8
null
null
t3_aag3s8
/r/programming/comments/aag3s8/made_a_basic_video_streaming_software_install/ecrpme7/
1548203408
1
t5_2fwo
r/programming
public
null
False
joesii
t2_iog5a
I don't think a person working for a company that provides service to Australians would not count as a person providing a service to Australians. The legislation seems to be referring to individually-run businesses. Note they talk about corporate persons (corporations), or individuals, but not individuals part of corporations. I can't be _entirely_ sure of this, but it's the only way I could possibly seeing it being enforced since it would obviously be suicidal and stupid if it was different.
null
0
1544736245
False
0
ebq3evs
t3_a57th7
null
null
t1_ebo0dhq
/r/programming/comments/a57th7/australias_new_encryption_laws_ensure_companies/ebq3evs/
1547569565
1
t5_2fwo
r/programming
public
null
False
fuckwit_
t2_qnfv7sa
Well I work on a lot of servers where bash is the only option. I can't just install fish or any other shell on there. with time you get the hang of a 'basic' shell like bash. For some fish might be really great. For me it's just a gimmick and it would probably interrupt my work flow more often then what it saves time.
null
0
1546043179
False
0
ecrpn2c
t3_aabai1
null
null
t1_ecr5vpx
/r/programming/comments/aabai1/fish_shell_30/ecrpn2c/
1548203416
17
t5_2fwo
r/programming
public
null
False
posixUncompliant
t2_6p7ml
It's an issue. Mind it's an issue because bioscience code written to run on a large workstation against a smallish dataset is being run on an HPC cluster against a massive dataset. But if people wrote and taught efficient code it'd help the problem.
null
0
1544736329
False
0
ebq3j2g
t3_a5sg9k
null
null
t1_ebpyh8z
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3j2g/
1547569616
7
t5_2fwo
r/programming
public
null
False
shponglespore
t2_4dw4r
One way or another, the data provided at the call site needs to be copied to where it's needed. Either it's copied into a function object, or it gets passed using additional arguments alongside the function pointer.
null
0
1546043242
False
0
ecrpppx
t3_aac4hg
null
null
t1_ecri8oe
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpppx/
1548203448
1
t5_2fwo
r/programming
public
null
False
ThePillsburyPlougher
t2_13gwlg
The top answer isnt saying "dont do that", it's saying that HTML cant be parsed by regex in general. That's a real answer.
null
0
1544736364
False
0
ebq3kt5
t3_a5sg9k
null
null
t1_ebpsd97
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3kt5/
1547569638
6
t5_2fwo
r/programming
public
null
False
sacado
t2_337yj
Lambdas in C++ aren't that obvious, though. Can't remember which, but I've met a few gotchas I never met in other languages. Like, AFAIR, 2 different lambdas with the same signature and return type don't have the same type.
null
0
1546043259
False
0
ecrpqgs
t3_aac4hg
null
null
t1_ecrnwan
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpqgs/
1548203458
28
t5_2fwo
r/programming
public
null
False
poloppoyop
t2_9a5a3
But the time you may win for this kind of bug hunting wil cost you time if you do any refactoring. As with everything in software it is a compromise.
null
0
1544736375
False
0
ebq3lca
t3_a5g1hn
null
null
t1_ebp1mkb
/r/programming/comments/a5g1hn/what_to_test_and_not_to_test/ebq3lca/
1547569644
1
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1546043364
False
0
ecrpuul
t3_aac4hg
null
null
t1_ecrh8z2
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpuul/
1548203511
9
t5_2fwo
r/programming
public
null
False
unkz
t2_3f87u
You missed Cat|head Cat|head -20 Cat|head -100
null
0
1544736407
False
0
ebq3n01
t3_a5sg9k
null
null
t1_ebpkiab
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3n01/
1547569664
3
t5_2fwo
r/programming
public
null
False
Darkglow666
t2_aaxo5
Yeah, you're outta date, dude. Dart 2 has a sound type system.
null
0
1546043415
False
0
ecrpx0a
t3_aa13tt
null
null
t1_ecowxis
/r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecrpx0a/
1548203538
1
t5_2fwo
r/programming
public
null
False
R-EDDIT
t2_7v7g8
Thanks, now I get the capcha joke someone posted recently.. "click on all the squares containing a pipe".
null
0
1544736469
False
0
ebq3pxm
t3_a5sg9k
null
null
t1_ebp9twn
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3pxm/
1547569700
7
t5_2fwo
r/programming
public
null
False
agent-plaid
t2_pd0rj
I'm pretty sure this would fall under C's integer promotion rules, yes. It also works just fine in every scripting language with bitwise operators. Rust is the odd man out; I explicitly specified `u16` for the destination and the 1.29 compiler was still like, "I can't figure this out?" If the language won't promote types automatically (and "No Magic" is a valid tenet for a language to have), then dealing with heterogeneous numeric types **should** be part of the basic orientation material. If I wanted to convert a normalized `f64` to an `Option<u8>` to use in some image pixels, the book sure didn't teach me how to do that. For something that bills itself as a "systems programming language," it's weird that these system-level concerns just fall by the wayside.
null
0
1546043419
False
0
ecrpx79
t3_a9zyp3
null
null
t1_ecq50tq
/r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecrpx79/
1548203540
3
t5_2fwo
r/programming
public
null
False
jarfil
t2_5mzr6
Language by committee.
null
0
1544736469
False
0
ebq3pzb
t3_a5sg9k
null
null
t1_ebp98wx
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3pzb/
1547569701
6
t5_2fwo
r/programming
public
null
False
DangerousSandwich
t2_9zhghr
We're stuck on 03, despite the fact that around 90% would like to move on to 11. The reason always given is an old compiler for a specific embedded target not supporting 11, but I'm fairly sure the real reason is simply resistance to change by a small number of "old hands".
null
0
1546043452
False
0
ecrpylx
t3_aac4hg
null
null
t1_ecrl3tk
/r/programming/comments/aac4hg/modern_c_lamentations/ecrpylx/
1548203558
12
t5_2fwo
r/programming
public
null
False
lwl
t2_3g7zc
It's interesting to compare the first comments here with yesterday's thread about Razor Components, which work in exactly the same way. https://www.reddit.com/r/programming/comments/a5ssxk/razor_components_for_a_javascriptfree_frontend_in/ (both seem awesome btw)
null
0
1544736495
False
0
ebq3r8w
t3_a5umm4
null
null
t3_a5umm4
/r/programming/comments/a5umm4/phoenixliveview_interactive_realtime_apps_no_need/ebq3r8w/
1547569716
7
t5_2fwo
r/programming
public
null
False
Darkglow666
t2_aaxo5
You've missed it. You just don't know enough to realize what you're missing. :)
null
0
1546043465
False
0
ecrpz62
t3_aa13tt
null
null
t1_ecr15y8
/r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecrpz62/
1548203564
0
t5_2fwo
r/programming
public
null
False
jarfil
t2_5mzr6
What bouncy thing? (ad blockers FTW)
null
0
1544736594
False
0
ebq3w2t
t3_a5sg9k
null
null
t1_ebp40m5
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq3w2t/
1547569805
2
t5_2fwo
r/programming
public
null
False
[deleted]
None
[removed]
null
0
1546043478
False
0
ecrpzpj
t3_aabai1
null
null
t1_ecra4sk
/r/programming/comments/aabai1/fish_shell_30/ecrpzpj/
1548203571
0
t5_2fwo
r/programming
public
null
False
deadwisdom
t2_xi5g
Python library.
null
0
1544736993
False
0
ebq4ffh
t3_a5sg9k
null
null
t1_ebp1n6v
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq4ffh/
1547570044
3
t5_2fwo
r/programming
public
null
False
TinderThrowItAwayNow
t2_y45po
I only lurk this sub, because I like keeping somewhat up to date on things I am not working with, but I can confidently say that he is an unbearable twat. I've seen him reply like an ass to things that were very wrong, but it doesn't matter, as all he does is tell people they are idiots, should never program, etc. People like him aren't valuable to any community, regardless of how much they know, how right they are, or whatever other trait you think he has. Insulting people who are very wrong doesn't help, it will just cement their wrong assertions more firmly. He could just go ahead and tell people why they are wrong instead of insulting them, but I honestly do not believe that he is capable of it. He's not smart enough.
null
0
1546043491
False
0
ecrq09n
t3_aaco1d
null
null
t1_ecrkcks
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrq09n/
1548203578
18
t5_2fwo
r/programming
public
null
False
tejoka
t2_3bqx8
It all depends on how much you're willing to treat that layer as an immutable system boundary. LLVM's IR, for example, is easily an "internal" piece of a compiler that they can pick off and write tests against, both by necessity for a project structured like LLVM, and because there's other reasons that IR's design shouldn't change regularly. It easily could be the case that another layer could be treated as an appropriate boundary. I'm not familiar with what's going on with Swift, so I can't comment on them as an example, unfortunately. But I know GHC Haskell, for instance, has re-done their IRs quite a lot in the last decade. The main question to answer would be: are you confident enough in the design that you're okay effectively freezing it? And I suppose the other question is: what's the significant benefit of writing tests directly against this internal abstraction, instead of against the language? Just to relate a story: I've unit tested the internal type checking machinery of a compiler before. My experience was that (1) it was helpful when doing the first implementation: catching bugs as I was writing that specific piece of code, before it was integrated with the rest of the compiler, but (2) that particular test suite never caught a buggy change in the next 10 years, and (3) it constantly got in the way of making intentional changes to the design. I just checked, and yeah... I'd forgotten, but we eventually made the decision to just delete those tests. So I'd generally just say: try to keep testing on internals as minimal and light-weight as possible (property testing helps!), and try to stay willing to chuck it if it proves a liability. Actually, "am I still willing to just throw this test suite out?" is probably a good metric for whether you're keeping it light enough.
null
0
1544737085
False
0
ebq4jw7
t3_9yroqq
null
null
t1_ebpd0si
/r/programming/comments/9yroqq/unit_testing_do_as_i_say_dont_do_as_i_do/ebq4jw7/
1547570100
2
t5_2fwo
r/programming
public
null
False
Popeye_Lifting
t2_an6xeu8
> And if you're an employee first and a programmer second, who just wants everything to stay the same forever, you won't like them. If you want everything to stay the same forever, then you should not be in software development, and I'm not talking about learning the new fad.
null
0
1546043495
False
0
ecrq0fc
t3_aac4hg
null
null
t1_ecrnwan
/r/programming/comments/aac4hg/modern_c_lamentations/ecrq0fc/
1548203580
31
t5_2fwo
r/programming
public
null
False
metalevelconsulting
t2_2f90b1tt
In which case, I would inspect the HTML and use Selenium to find and click the element by the DOM.
null
0
1544737252
False
0
ebq4rvr
t3_a5wwjf
null
null
t1_ebpyifd
/r/programming/comments/a5wwjf/automate_the_boring_stuff_with_python_tinder/ebq4rvr/
1547570198
2
t5_2fwo
r/programming
public
null
False
sysop073
t2_326m9
I don't think I understand the distinction. That's like saying "I'm a great painter, it's all the paintings I made that are bad"
null
0
1546043603
False
0
ecrq4zg
t3_aaco1d
null
null
t1_ecrm3qn
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrq4zg/
1548203636
8
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544737309
False
0
ebq4unc
t3_a5sg9k
null
null
t1_eboymco
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq4unc/
1547570232
1
t5_2fwo
r/programming
public
null
False
Nyefan
t2_c8w2s
Kind of. Object types in java are stored as part of the object, so casting something to an object and then back to itself will work while casting to an object and then to an unrelated type with an identical API will not (at runtime - it will compile fine). Also, all objects in java have hash, equals, and toString methods where void* in c++ (probably c as well, but I've never used it) makes none of the guarantees described above.
null
0
1546043615
False
0
ecrq5h8
t3_aac4hg
null
null
t1_ecrpdmy
/r/programming/comments/aac4hg/modern_c_lamentations/ecrq5h8/
1548203642
4
t5_2fwo
r/programming
public
null
False
LukaD
t2_5kdre
This looks amazing Chris! Can’t wait to try it out.
null
0
1544737366
False
0
ebq4xdw
t3_a5umm4
null
null
t3_a5umm4
/r/programming/comments/a5umm4/phoenixliveview_interactive_realtime_apps_no_need/ebq4xdw/
1547570266
3
t5_2fwo
r/programming
public
null
False
airflow_matt
t2_meh1h
Unlike std::function, there's no copying necessary with ScopedLambda/function\_ref. That's the whole point.
null
0
1546043729
False
0
ecrqa9o
t3_aac4hg
null
null
t1_ecrpppx
/r/programming/comments/aac4hg/modern_c_lamentations/ecrqa9o/
1548203701
5
t5_2fwo
r/programming
public
null
False
funkinaround
t2_5ngc9
>Right now, in synthetic benchmarks at least, ZGC seems to have significant throughput advantages over both G1 and parallel GC It seems to me that this is not the case. The idea with low pause collectors is to sacrifice a bit of throughput to make sure pause times are small and predictable. In the video you link to, the regular max jOps is tied between the collectors. The difference that shows ZGC performing better is when latency is considered. That said, I will be a user of ZGC.
null
0
1544737451
False
0
ebq51ft
t3_a5umpk
null
null
t1_ebq0tys
/r/programming/comments/a5umpk/10_new_features_in_java_11/ebq51ft/
1547570316
1
t5_2fwo
r/programming
public
null
False
derpderp3200
t2_6jza3
Same deal here, but I've found that adjusting to 1-based for high level code is way faster and easier, whereas in low-level code you need to pay more attention anyway and thus are less likely to do off-by-one errors anyway. Regardless, it's just not a reason for a blind kneejerk reaction to a language. That's just wilful ignorance.
null
0
1546043736
False
0
ecrqakg
t3_aabai1
null
null
t1_ecqxfbp
/r/programming/comments/aabai1/fish_shell_30/ecrqakg/
1548203705
5
t5_2fwo
r/programming
public
null
False
rynchio
t2_wy6tj
Or the restaurant raised the price of that plate to $11.00 but forgot to update their menu page to reflect the current price :)
null
0
1544737485
False
0
ebq532w
t3_a5sg9k
null
null
t1_ebp70qo
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq532w/
1547570336
32
t5_2fwo
r/programming
public
null
False
I_run_Arch_BTW
t2_2r2x81rp
The default welcome message also calls it friendly interactive shell so it's definitely official. The reason they call it fish shell on the site is just so people remember what to Google to find the site. Fish is too general of a word to be able to easily find it otherwise. That's why go is commonly called golang even though the official name is merely go.
null
0
1546043780
False
0
ecrqcfp
t3_aabai1
null
null
t1_ecrcj0x
/r/programming/comments/aabai1/fish_shell_30/ecrqcfp/
1548203729
5
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544737502
False
0
ebq53wm
t3_a5sg9k
null
null
t1_ebpgv1a
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq53wm/
1547570346
1
t5_2fwo
r/programming
public
null
False
agent-plaid
t2_pd0rj
`i64`/`usize` was another common source of headaches. I can safely promote anything smaller with `as i64`, but what do I do about `i64` vs unsigned 64-bit types? Per [my other comment](https://www.reddit.com/r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecrpx79) - If the language won't promote types automatically, then dealing with heterogeneous numeric types should be part of the basic orientation material.
null
0
1546043807
False
0
ecrqdks
t3_a9zyp3
null
null
t1_ecqajsy
/r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecrqdks/
1548203743
1
t5_2fwo
r/programming
public
null
False
nodexyz
t2_wtxp7qe
Can't hear him. Got head phones on
null
0
1544737508
False
0
ebq5487
t3_a5sg9k
null
null
t1_ebp5rg3
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5487/
1547570350
11
t5_2fwo
r/programming
public
null
False
Xanny
t2_6kk9u
All those blemishes on moves are just archaic fragments of the 40 year legacy before move was even introduced. By comparison Rust is move by default and the compiler prevents you from accessing a moved value. What you need to be explicit about is copy, or more often deriving clone, and then actually using clone() when you want a copy.
null
0
1546043846
False
0
ecrqf6y
t3_aac4hg
null
null
t1_ecrh8z2
/r/programming/comments/aac4hg/modern_c_lamentations/ecrqf6y/
1548203763
34
t5_2fwo
r/programming
public
null
False
Astorianyank
t2_2dk0lzd3
Whew, hot take
null
0
1544737566
False
0
ebq56yu
t3_a5ikq1
null
null
t1_ebniulo
/r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebq56yu/
1547570414
1
t5_2fwo
r/programming
public
null
False
dudeatwork
t2_59wms
Yeah, I've heard after he released the [first version of Redux](https://github.com/reduxjs/redux/commit/8bc14659780c044baac1432845fe1e4ca5123a8d), facebook hired him almost immediately. Just something I remember reading once, no idea if it is true or not, but seems plausible.
null
0
1546043851
False
0
ecrqfdv
t3_aaco1d
null
null
t1_ecrdhyq
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrqfdv/
1548203766
12
t5_2fwo
r/programming
public
null
False
Deto
t2_3h4z3
I think it was just supposed to be an illustrative example. But I agree, it would have been better to show something closer to a real use case.
null
0
1544737600
False
0
ebq58nc
t3_a5sg9k
null
null
t1_ebp1b20
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq58nc/
1547570435
3
t5_2fwo
r/programming
public
null
False
flexmuzik
t2_b8wez
Totally agree about move semantics. At first, I thought 'why are there all these references to references floating around? What's the point of that?'
null
0
1546043872
False
0
ecrqg8e
t3_aac4hg
null
null
t1_ecrh8z2
/r/programming/comments/aac4hg/modern_c_lamentations/ecrqg8e/
1548203776
12
t5_2fwo
r/programming
public
null
False
Hrothen
t2_6gtqz
I have heard from people who have had to use it that Selenium is really finicky and unreliable.
null
0
1544737649
False
0
ebq5axb
t3_a5wwjf
null
null
t1_ebq4rvr
/r/programming/comments/a5wwjf/automate_the_boring_stuff_with_python_tinder/ebq5axb/
1547570462
1
t5_2fwo
r/programming
public
null
False
steveklabnik1
t2_d7udf
Yeah, it’s possible I’ve over-rotated here, for sure. I’ll give this some thought, thanks!
null
0
1546043905
False
0
ecrqhmd
t3_a9zyp3
null
null
t1_ecrqdks
/r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecrqhmd/
1548203794
1
t5_2fwo
r/programming
public
null
False
NOFTW
t2_1mo0idvf
Pissed off waiter problem.
null
0
1544737746
False
0
ebq5fha
t3_a5sg9k
null
null
t1_ebq18d1
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5fha/
1547570518
13
t5_2fwo
r/programming
public
null
False
davidk01
t2_1c5pc
Got it.
null
0
1546043922
False
0
ecrqia7
t3_aa3t88
null
null
t1_ecpprgl
/r/programming/comments/aa3t88/software_processes_are_software_too/ecrqia7/
1548203801
1
t5_2fwo
r/programming
public
null
False
zman0900
t2_5ldqf
First he simply proved P==NP
null
0
1544737772
False
0
ebq5gro
t3_a5sg9k
null
null
t1_ebp1n6v
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5gro/
1547570535
1
t5_2fwo
r/programming
public
null
False
Veranova
t2_fz1lj
Old but gold, but probably best to repost on r/programmerhumor
null
0
1546043927
False
0
ecrqihq
t3_aaah36
null
null
t3_aaah36
/r/programming/comments/aaah36/wat_the_sarcasm_in_this_talk_does_not_represent/ecrqihq/
1548203804
1
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544737787
False
0
ebq5hg6
t3_a5sg9k
null
null
t1_ebox6vg
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5hg6/
1547570543
0
t5_2fwo
r/programming
public
null
False
hylic
t2_4pi5w
Stand firm for what you believe in. Until and unless logic and experience prove you wrong. --Daria
null
0
1546043959
False
0
ecrqjun
t3_aabai1
null
null
t1_ecqpsmz
/r/programming/comments/aabai1/fish_shell_30/ecrqjun/
1548203821
2
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544737793
False
0
ebq5hq7
t3_a5sg9k
null
null
t1_eboymco
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5hq7/
1547570546
0
t5_2fwo
r/programming
public
null
False
Godzoozles
t2_goq2u
I second everything you just said. A video series I found which I found very informative and helpful without being as meme-y as Chili is https://www.youtube.com/playlist?list=PLRwVmtr-pp06qT6ckboaOhnm9FxmzHpbY He uses Visual Studio + OpenGL, and thanks to the latter point it very easily transfers to Linux (which, like you, is where I'm doing my CG stuff)
null
0
1546043973
False
0
ecrqkh3
t3_a7f2o1
null
null
t1_ec3g84k
/r/programming/comments/a7f2o1/how_to_start_learning_computer_graphics/ecrqkh3/
1548203829
1
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544737818
False
0
ebq5ivu
t3_a5sg9k
null
null
t1_eboyl9h
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5ivu/
1547570561
-15
t5_2fwo
r/programming
public
null
False
derpderp3200
t2_6jza3
I hate that a wilfully ignorant kneejerk reaction comment to something most people don't realize is actually very comfortable to use is the top comment of this thread, /r/programming feels like a real shitshow at times, there's way too many sentiments closer to memes than informed opinions. At least it's not one of the front-page posts where the first comment explains in detail how bullshit the title and article are but people keep upvoting the post anyway, which is something I'd expect from meme subs, not /r/programming :-/
null
0
1546044049
False
0
ecrqnpn
t3_aabai1
null
null
t1_ecqpsmz
/r/programming/comments/aabai1/fish_shell_30/ecrqnpn/
1548203874
18
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544737839
False
0
ebq5jv0
t3_a5sg9k
null
null
t1_ebpbg8d
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5jv0/
1547570574
2
t5_2fwo
r/programming
public
null
False
[deleted]
None
and mining your own silicon
null
0
1546044067
False
0
ecrqoh3
t3_aaco1d
null
null
t1_ecrowlo
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrqoh3/
1548203883
92
t5_2fwo
r/programming
public
null
False
izikiell
t2_igjpx
intranet applications
null
0
1544737843
False
0
ebq5k36
t3_a5ssxk
null
null
t1_ebq3bkm
/r/programming/comments/a5ssxk/razor_components_for_a_javascriptfree_frontend_in/ebq5k36/
1547570577
2
t5_2fwo
r/programming
public
null
False
kevingranade
t2_je91k
Portably you might be able to use some feature test macros, non-portably you can probably assert that various symbols aren't defined.
null
0
1546044154
False
0
ecrqs5l
t3_aac4hg
null
null
t1_ecqqr85
/r/programming/comments/aac4hg/modern_c_lamentations/ecrqs5l/
1548203928
3
t5_2fwo
r/programming
public
null
False
shevegen
t2_atqp
I approve of alternatives to JavaScript.
null
0
1544737857
False
0
ebq5kqr
t3_a5umm4
null
null
t3_a5umm4
/r/programming/comments/a5umm4/phoenixliveview_interactive_realtime_apps_no_need/ebq5kqr/
1547570584
20
t5_2fwo
r/programming
public
null
False
Katana314
t2_6r8mm
The problem I mostly saw is that every library needs C interoperability and so just uses no features.
null
0
1546044192
False
0
ecrqtro
t3_aac4hg
null
null
t1_ecqxtov
/r/programming/comments/aac4hg/modern_c_lamentations/ecrqtro/
1548203949
21
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1544737861
False
0
ebq5kxn
t3_a5sg9k
null
null
t1_ebq3b4s
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5kxn/
1547570587
5
t5_2fwo
r/programming
public
null
False
sou-ght
t2_f1fu5
Does it play nice with emacs `M-x shell` buffers yet?
null
0
1546044286
False
0
ecrqxri
t3_aabai1
null
null
t3_aabai1
/r/programming/comments/aabai1/fish_shell_30/ecrqxri/
1548204022
5
t5_2fwo
r/programming
public
null
False
aim2free
t2_7mxv
> I'm guessing that's why he used pipes? Yes, you are correct of course, but I consider the example a little, what to say, "far sighted"... The problem can trivially be solved by one tool, emacs (or your editor of preference), and as most resturants provide their menues in html one can just search the html code directly by pressing Ctrl-S (yes, I run firemacs, to get emacs compatible keys within firefox). Of course I see the fun in suggesting a set of tools which combined can solve the problem, but it's anyway not a case where I would have used pipes :-) I would merely go for a task which is not easily solvable by emacs, like counting all words ending in nu, like: `egrep "nu$" /usr/share/dict/words|wc` 8
null
0
1544737954
False
0
ebq5p75
t3_a5sg9k
null
null
t1_ebq3bf0
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq5p75/
1547570639
1
t5_2fwo
r/programming
public
null
False
Katana314
t2_6r8mm
And brevity is often the simplest thing to read. If I have to go through 8 links to get to the core of what a function is actually doing, it’s harder for my mind to keep context. You’re probably echoing their exact thought process, but they’re both right and wrong.
null
0
1546044299
False
0
ecrqyak
t3_aac4hg
null
null
t1_ecrnwan
/r/programming/comments/aac4hg/modern_c_lamentations/ecrqyak/
1548204029
14
t5_2fwo
r/programming
public
null
False
shevegen
t2_atqp
But that is not the same. For example the razor starts soon with a XML: <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> <OutputType>Exe</OutputType> <LangVersion>7.3</LangVersion> And the language used is a different one too. See: public void ConfigureServices(IServiceCollection services) { services.AddServerSideBlazor<App.Startup>(); That seems a LOT less lightweight than the variant with Phoenix. So when you claim "work in exactly the same way", I do not see how? If they work in the same way, we would be using the same code?
null
0
1544737970
False
0
ebq5pz5
t3_a5umm4
null
null
t1_ebq3r8w
/r/programming/comments/a5umm4/phoenixliveview_interactive_realtime_apps_no_need/ebq5pz5/
1547570649
-12
t5_2fwo
r/programming
public
null
False
lobster_johnson
t2_36b2i
This is called inversion of control, and is *usually* less flexible. For example, it doesn't compose -- let's say you have some function `printTriples` that accepts a sequence of triples as its input, then you can't just connect your `pythagoreanTriples` to that function without first collecting all the triples in a temporary sequence (array, vector or similar) that you then pass to `printTriples`. But if you do that, your code isn't pipelined -- you first have to build the whole temporary sequence before the print function can be invoked. Because ranges (the feature described in the article) are lazy -- you "pull" data out of them, and no work is done until you pull -- they can (optionally!) be pipelined, which is the whole idea behind the `|` operator. The right side of the operator pulls on the left side, and it can either pull items one by one, doing work on each item individually, or it can build up batches and do work on those batches individually, or it can read the entire thing and do work on the whole thing. In other words, the sequencing *control flow* is decided by the outer code, and it can use the strategy (one-by-one, batching, etc.) that best fits the use case. In your callback example, the triple function controls the flow, restricting what strategies the caller can use. Incidentally, coroutines (aka generators, touched on briefly in the article) support this inversion of control but without changing the control flow -- they'd let you write more or less the code as in `pythagoreanTriples`, but from the perspective of the caller, its return value becomes a range (lazy sequence of values).
null
0
1546044412
False
0
ecrr345
t3_aac4hg
null
null
t1_ecqzdk3
/r/programming/comments/aac4hg/modern_c_lamentations/ecrr345/
1548204088
90
t5_2fwo
r/programming
public
null
False
takingastep
t2_1qzza4a
ONE FRAMEWORK TO RULE THEM ALL
null
0
1544738159
False
0
ebq5yqx
t3_a5y50c
null
null
t3_a5y50c
/r/programming/comments/a5y50c/why_bad_software_architecture_is_easy_to_monetize/ebq5yqx/
1547570757
24
t5_2fwo
r/programming
public
null
False
Kittenize
t2_5h1cm
Do you have any resources or keywords to look up for training to give interviews?
null
0
1546044413
False
0
ecrr364
t3_aaco1d
null
null
t1_ecrm3qn
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrr364/
1548204089
1
t5_2fwo
r/programming
public
null
False
Zakman--
t2_is8um
Aye, which is why I said it's a perfectly viable model for small businesses doing B2B. Or even internal applications. It's not a model right for public-facing sites.
null
0
1544738323
False
0
ebq66is
t3_a5ssxk
null
null
t1_ebq3bkm
/r/programming/comments/a5ssxk/razor_components_for_a_javascriptfree_frontend_in/ebq66is/
1547570854
2
t5_2fwo
r/programming
public
null
False
18randomcharacters
t2_6oidh
I may have to switch to fish. I have a coworker buddy already on fish, too. Good to have a local resource.
null
0
1546044451
False
0
ecrr4to
t3_aabai1
null
null
t1_ecqqqyo
/r/programming/comments/aabai1/fish_shell_30/ecrr4to/
1548204109
1
t5_2fwo
r/programming
public
null
False
stuartgm
t2_g1p0m
nc
null
0
1544738547
False
0
ebq6gvb
t3_a5sg9k
null
null
t1_ebp1n6v
/r/programming/comments/a5sg9k/how_unix_programmers_at_restaurants_search_menus/ebq6gvb/
1547571010
2
t5_2fwo
r/programming
public
null
False
NoInkling
t2_csqao
JS stuff. He built a couple of popular open source projects for the ReactJS ecosystem (including Redux, if you've heard of it), so Facebook hired him and put him on the React team, where he has kinda become "the face of React" (a big chunk of his work seems to be community engagement).
null
0
1546044465
False
0
ecrr5dp
t3_aaco1d
null
null
t1_ecrojk8
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecrr5dp/
1548204116
26
t5_2fwo
r/programming
public
null