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
manuscelerdei
t2_7s2au
I've definitely seen code deployed to customers where it's clear the author woke up every morning and asked himself "What C++ feature shall I find a use for today?" The language just begs programmers to create their own personal programming languages out of it. That's why it's a maintenance nightmare.
null
0
1546064526
False
0
ecsctqj
t3_aac4hg
null
null
t1_ecqu6o3
/r/programming/comments/aac4hg/modern_c_lamentations/ecsctqj/
1548214250
10
t5_2fwo
r/programming
public
null
False
ekbravo
t2_1c2iz549
But what agency granted your electrons 100% free-range certification? Probably some dark matter outfit, just sain’ you know...
null
0
1546064619
False
0
ecscwc8
t3_aaco1d
null
null
t1_ecryof7
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecscwc8/
1548214282
8
t5_2fwo
r/programming
public
null
False
tonefart
t2_ywdx0
You don't need any server side rendering framework anymore. Even barebones PHP with PDO mysql/etc connection for REST api or authentication is sufficient. All UI rendering work is relegated to clientside using either VUE.JS, Angular, React, etc. Server side frameworks like Laravel, CakePHP, CodeIgniter, etc are obsolete methodology during the times when javascript is too weak and fragmented to be doing any UI work. Now things have completely changed and Javascript + HTML5 is supposed to be used the way it should be. Server side code should no longer do work that used to be done with PHP frameworks. Server side code should strictly be REST/JSON API or pure API and authentication code. This old methodology by Laravel is basically MVC and it should be killed off to lighten server load.
null
0
1546064672
False
0
ecscxt2
t3_a9psuk
null
null
t1_ecs5pz7
/r/programming/comments/a9psuk/javascript_form_data_validation_with_laravel_rules/ecscxt2/
1548214300
1
t5_2fwo
r/programming
public
null
False
caleblafeve
t2_1v3gigc6
Bro that's so dope. I'm glad I inspired you :) You should definitely get the board, it's such a nice thing to watch as I'm falling to sleep and I love it. I was always a fan of the game of life but I wanted a better way than just watching it on my phone or computer (not so convenient and gets boring), so i thought what if I put it on my wall and I bought the board off of adafruit and got started. I'm very proud of it and love to just watch it go. I promise you if you like watching it on your computer then you'll love watching it on your wall haha.
null
0
1546065130
False
0
ecsdbkp
t3_aa72q0
null
null
t1_ecscq16
/r/programming/comments/aa72q0/conways_game_of_life_wallshelf_decoration/ecsdbkp/
1548214470
3
t5_2fwo
r/programming
public
null
False
Fyver42
t2_13g61von
>A monad is just a monoid in the category of endofunctors. ​ Source: [A Brief, Incomplete, and Mostly Wrong History of Programming Languages](http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html)
null
0
1546065370
False
0
ecsdic3
t3_aai5ap
null
null
t1_ecscrye
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsdic3/
1548214553
14
t5_2fwo
r/programming
public
null
False
Drisku11
t2_bg6v5
MISRA-C 2004 14.10 specifically has to do with chains of `else if`, and specifically calls out that it does not apply to single `if` statements. In any case, MISRA was not given to us by God, and some of their recommendations are actively harmful. For example, 15.3 mandating default cases in switches prevents static analyzers from detecting unhandled cases when new cases are added to an enum. MISRA also requires parentheses for `(a&&b)||c`, which is like requiring them for `(a*b)+c`. i.e. pointless and distracting. It also bans gotos and early returns, which is nonsense and leads to high levels of nesting. These things make the code more difficult to understand and verify. They do not help reliability.
null
0
1546065474
1546065664
0
ecsdl5q
t3_aa3qdm
null
null
t1_ecs6dqe
/r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecsdl5q/
1548214588
1
t5_2fwo
r/programming
public
null
False
interfail
t2_51fu1
If everyone wrote their template headers like that, we wouldn't even be arguing about them. Both less than a thousand lines, which are mostly comments, both doing important things in a clear way.
null
0
1546065588
False
0
ecsdo9l
t3_aac4hg
null
null
t1_ecs7a80
/r/programming/comments/aac4hg/modern_c_lamentations/ecsdo9l/
1548214627
9
t5_2fwo
r/programming
public
null
False
Yuushi
t2_3kbzx
To steal the C++ entry from [A brief, incomplete, and mostly wrong history of programming languages](http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html): 1983 - Bjarne Stroustrup bolts everything he's ever heard of onto C to create C++. The resulting language is so complex that programs must be sent to the future to be compiled by the Skynet artificial intelligence. Build times suffer. Skynet's motives for performing the service remain unclear but spokespeople from the future say "there is nothing to be concerned about, baby," in an Austrian accented monotones. There is some speculation that Skynet is nothing more than a pretentious buffer overrun.
null
0
1546065677
False
0
ecsdqqm
t3_aac4hg
null
null
t1_ecqxcbd
/r/programming/comments/aac4hg/modern_c_lamentations/ecsdqqm/
1548214658
26
t5_2fwo
r/programming
public
null
False
ryeguy
t2_3g15v
Yes but the strongest argument of them all is familiarity, which is why people hate 1-based indexing.
null
0
1546065767
False
0
ecsdtax
t3_aabai1
null
null
t1_ecs09fy
/r/programming/comments/aabai1/fish_shell_30/ecsdtax/
1548214689
7
t5_2fwo
r/programming
public
null
False
lannisterstark
t2_fcuy2
I don't care what he chooses or doesn't choose to be. He's a cunt.
null
0
1546065864
False
0
ecsdw3j
t3_aaco1d
null
null
t1_ecrc7u0
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsdw3j/
1548214724
5
t5_2fwo
r/programming
public
null
False
mtreece
t2_cggij
https://m.youtube.com/watch?v=TKQzqwn-jIM I CAN ACCESS PRINTER
null
0
1546065875
False
0
ecsdwev
t3_aaco1d
null
null
t1_ecs794i
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsdwev/
1548214728
7
t5_2fwo
r/programming
public
null
False
Mr-Yellow
t2_ft5of
> sending keys out to a third party, What keys would be getting sent anywhere? They don't send the users private key to a central server, that would be *"introducing a systemic weakness"* and fail the *"safeguards"*. They'd have to **insert** the governments **public key**. > You were specifically talking about the client sending keys to a third party. I was? No. At no stage do I describe anything approaching sending keys anywhere. I go out of my way attempting to explain that this is not what happens. I in part describe the **EXISTING SYSTEM SIGNAL USES TO LOOKUP PUBLIC KEYS**. Stop wasting my time replying without reading.
null
0
1546066095
1546066403
0
ecse2d5
t3_a66102
null
null
t1_ecsa5dv
/r/programming/comments/a66102/we_cant_include_a_backdoor_in_signal_signal/ecse2d5/
1548214831
1
t5_2fwo
r/programming
public
null
False
yawaramin
t2_77bue
If you didn't get the memo yet, monads are bad now, we use Kleisli now ... nothing to see here, move along...
null
0
1546066363
False
0
ecse9qc
t3_aai5ap
null
null
t3_aai5ap
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecse9qc/
1548214921
-9
t5_2fwo
r/programming
public
null
False
korkskrue
t2_7dbug
Yeah, the UIE interview is more practical compared to the SWE one
null
0
1546066371
False
0
ecse9xx
t3_aaco1d
null
null
t1_ecrs40r
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecse9xx/
1548214924
3
t5_2fwo
r/programming
public
null
False
MoTTs_
t2_9aafw
/u/gaearon Follow-up question about interviewing (from the perspective of the interviewer). What qualities do you think we should look for? The easy answer is to ask technical questions about the technology to be used, but if the technology to be used was Electron, for example, I'd wager that the Dan Abramov's of the world could still do a better job than a green newbie who has made a program with Electron before. Maybe years of experience? But years don't always translate to skill the same for everybody. Maybe checking for a breadth of knowledge? But then we're back to technical trivia, plus we immediately rule out anyone who specializes. Maybe asking what they learned last that had nothing to do with their job? This shows interest and motivation, yet I've also known great programmers who put the computer away when they get home. What are your thoughts?
null
0
1546066384
1546071118
0
ecseab5
t3_aaco1d
null
null
t3_aaco1d
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecseab5/
1548214929
2
t5_2fwo
r/programming
public
null
False
korkskrue
t2_7dbug
General SWE interview
null
0
1546066387
False
0
ecseae1
t3_aaco1d
null
null
t1_ecs37zm
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecseae1/
1548214930
10
t5_2fwo
r/programming
public
null
False
kirbyfan64sos
t2_lzxoq
Kinda funny how mine is close to the opposite of this... I know assembly, shell scripting, and some other backend stuff, and I can do basic frontend stuff, but ask me to do TypeScript or Redux or low-level virtual DOM or anything related to Webpack and JS tooling and you've completely lost me.
null
0
1546066410
False
0
ecseb0y
t3_aaco1d
null
null
t3_aaco1d
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecseb0y/
1548214938
5
t5_2fwo
r/programming
public
null
False
rlbond86
t2_436ic
You can make an iterator that acts like a generator.
null
0
1546066506
False
0
ecsedfv
t3_aac4hg
null
null
t1_ecs1wpk
/r/programming/comments/aac4hg/modern_c_lamentations/ecsedfv/
1548214967
10
t5_2fwo
r/programming
public
null
False
sinedpick
t2_ksuu9
If a monad is constructed in the ~~forest~~ program but there is no one to explain what it is, is it still a monad?
null
0
1546066545
False
0
ecseejb
t3_aai5ap
null
null
t3_aai5ap
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecseejb/
1548214981
18
t5_2fwo
r/programming
public
null
False
grendelt
t2_2hn6g
The first 17 minutes are building up an example The actual explanation is around the [17:00 mark](https://www.youtube.com/watch?v=t1e8gqXLbsU&t=17m).
null
0
1546066546
False
0
ecseejo
t3_aai5ap
null
null
t3_aai5ap
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecseejo/
1548214981
21
t5_2fwo
r/programming
public
null
False
grendelt
t2_2hn6g
...and if I understood it correctly, ``try/catch`` and loosely typed languages all are due to the rediscovery of monads in the 90s?
null
1
1546066600
False
0
ecseg0u
t3_aai5ap
null
null
t1_ecseejo
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecseg0u/
1548214999
2
t5_2fwo
r/programming
public
null
False
Serpens-Caput
t2_7novc58
memes
null
0
1546066647
False
0
ecsehio
t3_aac4hg
null
null
t3_aac4hg
/r/programming/comments/aac4hg/modern_c_lamentations/ecsehio/
1548215017
-2
t5_2fwo
r/programming
public
null
False
Serpens-Caput
t2_7novc58
not just blog posts, also reference books (look for a good one). Stroustrup's website is a good start.
null
0
1546066686
False
0
ecseiov
t3_aac4hg
null
null
t1_ecqu6o3
/r/programming/comments/aac4hg/modern_c_lamentations/ecseiov/
1548215032
1
t5_2fwo
r/programming
public
null
False
SanityInAnarchy
t2_5oygg
Interesting. In general, I prefer stuff to ship as libraries rather than part of the language, whenever possible -- it means more power, in theory. I mean: > However, I refuse to believe that “us mere mortals” without a PhD in C++ would be able to write the utilities that are needed for the code above to work: ...but I'd have as much trouble understanding compiler code, and the difference is, if I put in the effort to be able to build code like this, if it's compiler code, I have to convince a whole community (including my favorite compiler vendors) to accept it, and then wait for new standards and new compilers to ship. If it's library code, I only need to convince my coworkers. The compilation-speed issue is real, though, and it seems like a uniquely-C++ problem. The C# version uses Linq, a library, and the "less databasey" form doesn't seem to use any special syntax, or any language features fancier than a lambda, which is also a lambda feature of C++. Java isn't as fast to compile, but it's not nearly as slow, either. Here's what I put together: import java.util.stream.Stream; import java.util.stream.IntStream; class Hello { private static class Triple { private final int x, y, z; private Triple(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } } public static void main(String[] args) { var triples = IntStream.iterate(0, i -> i+1).mapToObj(z -> { return IntStream.range(1, z+1).mapToObj(x -> { return IntStream.range(x, z+1) .filter(y -> x*x + y*y == z*z) .mapToObj(y -> new Triple(x,y,z)); }).flatMap(s -> s); }).flatMap(s -> s); triples.limit(10).forEach(t -> System.out.println(String.format("(%d,%d,%d)", t.x, t.y, t.z))); } } As usual, even C++ is less verbose -- as far as I can tell, Java doesn't have anything like a tuple (thus the "Triple" thing above), and has a bizarre limitation that `map()` and `flatMap()` only map to and from the exact same type (WTF?), thus the awkward combination of `mapToObj()` and `flatMap(s -> s)`. (Because *of course* there isn't a simple flatten() method, and *of course* there isn't a But again, the only new-ish Java features I'm using are lambdas and `var`. There's nothing else about Streams that couldn't be done in a library, and I'm guessing it all *is* done in a library. Anyway, here's the compilation time: $ time javac Hello.java real 0m0.692s user 0m2.010s sys 0m0.084s And the runtime: $ time java Hello ... real 0m0.131s user 0m0.177s sys 0m0.036s I'm being a little unfair in that I haven't run his C++ and C# examples, but that's laziness -- the C++ examples need a very recent clang, and the C# examples need a more recent version of Mono than I get by default on the old Ubuntu box I'm running this on. Alright, alright, I'll do *one* comparson, to the plain-old-Java version, where I paste the C version from the article into a .java file, add boilerplate, and change `printf` to `System.out.println(String.format(...))`, and: $ time javac Hello.java real 0m0.547s user 0m1.459s sys 0m0.080s $ time java Hello ... real 0m0.117s user 0m0.152s sys 0m0.036s Well, look at that. I suspect most of the time in both of those numbers is just startup costs for the compiler and the runtime, and not something that would bite you especially harder on a larger project, not the way C++ header files do. I wonder if this is an unfair advantage of JITs, and of lower performance expectations in general? C# and Java can compile and run like a debug build right up until the JVM notices you need performance, at which point it'll recompile a faster version on-the-fly. So I wonder what these abstractions cost in other completely-AOT-compiled languages? My first thought was Golang, because it has "fast compilation time" as a selling point, but it also hates abstraction and lacks both generics and a convenient lambda syntax, so I'm not sure libraries like this are even possible in Go. What about Rust? Here's a complete implementation, after I finished fighting with the borrow checker (edit: and after u/darksv pointed out the no-upper-bound syntax for ranges): fn main() { let triples = (1..).flat_map(|z| (1..(z+1)).flat_map(move |x| (x..(z+1)) .filter(move |y| x*x + y*y == z*z) .map(move |y| (x, y, z)) ) ); for (a, b, c) in triples.take(10) { println!("({:?},{:?},{:?})", a, b, c); } } And: $ rustc --version rustc 1.2.0 (082e47636 2015-08-03) $ time rustc main.rs real 0m0.483s user 0m0.447s sys 0m0.036s $ time ./main ... real 0m0.003s user 0m0.003s sys 0m0.000s So clearly, it's possible for a language to be properly ahead-of-time compiled, and have these zero-cost abstractions, and not have incredibly slow compilations. Again: None of these languages, as far as I can tell, have any of this any more "built into the language" than C++. It's just that C++ takes forever to compile template libraries. Though there's still a cost in complexity -- I had to fight with the borrow checker for awhile on that one, and the last time I tried to write something that *accepts* lambdas, managing the lifetimes of everything led to code almost as bad as the C++ template stuff. But its compiler isn't slow.
null
0
1546066708
1546076372
0
ecsejdm
t3_aac4hg
null
null
t3_aac4hg
/r/programming/comments/aac4hg/modern_c_lamentations/ecsejdm/
1548215040
11
t5_2fwo
r/programming
public
null
False
kshep92
t2_4g8t4
I'm glad this was published. Over the past couple years I've been biting my nails over the fact that I don't know shit about Kubernetes, yet it seems like everyone who wants to throw up a WordPress blog is deploying their own Kubernetes cluster to "ensure it scales well". ​ As more and more buzzwordy things came out, I realized that I don't have the energy to learn them all so I just stuck with what makes me money and learned new stuff as necessary. I felt guilty and lazy for doing this, feeling that devs the world over have a handle on everything. Now I know that's all BS 😄
null
0
1546066760
False
0
ecsel0w
t3_aaco1d
null
null
t3_aaco1d
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsel0w/
1548215061
3
t5_2fwo
r/programming
public
null
False
stevenjd
t2_9q2nh
> We'd like to know why you were trying to obtain chlorine trifluoride, a substance that can burn through concrete. "I want to burn through concrete, duh!"
null
0
1546066769
False
0
ecselah
t3_aaco1d
null
null
t1_ecs9skf
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecselah/
1548215064
9
t5_2fwo
r/programming
public
null
False
Ettubrutusu
t2_1qi8jd60
This. * Hey, my keyboard stopped working what should I do? * Hey I bought this computer with only 32GB disk and now it's full and I don't have an office license but I really need office what should I do? * Hey my computer run slowly despite me having installed 40 browser toolbars to fix the issue. * Hey I need a website for the kindergarten my son goes to, can you set one up for free dear cousin? * Internet doesn't work And so on. The thing is that I can sort these things out but it's no fun. And often it ends up with "buy new stuff". But at the same time I abuse relative doctors when I want some quick advise so I should probably just be quiet.
null
0
1546066820
False
0
ecsemrk
t3_aaco1d
null
null
t1_ecs3orn
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsemrk/
1548215082
3
t5_2fwo
r/programming
public
null
False
crs_0
t2_2vpk122j
> if you like watching it on your computer then you'll love watching it on your wall haha. Yeah definitely! That LED matrix looks amazing. The aging version that /u/lodc posted in the /r/arduino post also looks awesome as well, I'll have to try to figure out what he did to make it, haha
null
0
1546067066
False
0
ecseu4a
t3_aa72q0
null
null
t1_ecsdbkp
/r/programming/comments/aa72q0/conways_game_of_life_wallshelf_decoration/ecseu4a/
1548215174
3
t5_2fwo
r/programming
public
null
False
EAT_DA_POOPOO
t2_4423r
Monads are about null safety. The simplest way I can think to explain it would be an array [Edit: not saying it _is_ an array, I'm just trying to use an accessible example of encapsulating a value, which is probably would I should have led with]. You can perform all the same operations on an empty array as you would with a non-empty array. Generalize that concept an you have monads. That's how you get all the weird analogies about monads being burritos, spaceships and once upon a time, jquery. Edit: I'm not sure why my simplification is so ridiculous? https://gist.github.com/janojanahan/6ab593ed2ff92d8480b61b70ba75ec7f https://mikhail.io/2016/01/monads-explained-in-csharp/ https://spin.atomicobject.com/2018/09/03/maybe-monad-reducing-null-errors/
null
0
1546067085
1546072495
0
ecseuoi
t3_aai5ap
null
null
t3_aai5ap
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecseuoi/
1548215181
-25
t5_2fwo
r/programming
public
null
False
Drisku11
t2_bg6v5
The source is actually [Categories for the Working Mathematician](http://books.google.com/books?id=MXboNPdTv7QC&pg=PA138&lpg=PA138&dq=%22monoid+in+the+category+of+endofunctors%22+mac+lane&source=bl&ots=feQWTkH2Uw&sig=tv-1JwaMOygKGmFE2vM2FhJVS9o&hl=en&ei=5iWsTJCkBIPSsAPQwJ36Aw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBIQ6AEwAA#v=onepage&q&f=false) > All told, a monad in X is just a monoid in the category of endofunctors of X, with product × replaced by composition of endofunctors and unit set by the identity endofunctor. Which is to say there's a flatten (or, thinking of it as a monoid, combining) function `M[M[T]] -> M[T]` and a unit function `T -> M[T]`, and there's an associativity condition and unit is a... well, unit: wrapping with unit and then flattening is a no-op. A thing with an associative combining operation with a unit/identity/"no-op" for your operation is called a monoid. Other monoids include integers with addition and adding 0 as the unit, or integers with multiplication and multiplying by 1 as the unit. Lists with concatenation and the empty list are a more "programmer-y" example. So really it just says there's flatten, there's unit, and they behave in an algebraically pleasant way, sort of like numbers do. The things you're flattening are functors, which are type "wrappers" like `List[_]` with a `map` function that behaves in an algebraically nice way: `list.map(f).map(g) = list.map(x -> g(f(x)))`. i.e. "map preserves composition", or " the composition of maps is the map of the composition".
null
0
1546067336
1546068407
0
ecsf270
t3_aai5ap
null
null
t1_ecsdic3
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsf270/
1548215273
37
t5_2fwo
r/programming
public
null
False
Dockirby
t2_6ozpc
Go to me is good for smaller self contained applications that are written by 1 to 3 people. It can make the application more maintainable in the future once the original writer is gone, but I feel it is a major drag when you start involving more people, and does not work well beyond a ~50k line program.
null
0
1546067497
False
0
ecsf6we
t3_aa3qdm
null
null
t1_ecqaoej
/r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecsf6we/
1548215331
1
t5_2fwo
r/programming
public
null
False
BlackMathNerd
t2_7vye2
Man collecting and understanding requirements is a big one. Idk how many projects where other devs got bogged down just developing shit without requirements. It took me a good while to learn that good requirements take time and effort and collaboration to work with. If I had been better at that some of the projects I worked on would have been better.
null
0
1546067614
False
0
ecsfa9e
t3_aaco1d
null
null
t1_ecs111j
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsfa9e/
1548215402
4
t5_2fwo
r/programming
public
null
False
OneWingedShark
t2_bx7wh
>Interesting! Would you happen to know what company that was which gave the recommendation? No, I don't; it was some years ago, on a forum I rarely visit anymore and has undergone a chunk of user-churn. >Makes you wonder whether MS even bothered to looked into that suggestion at all. It does. I think they probably dismissed it out of hand because "we make our own C compiler" and "C is good enough". >It's not like there were no low cost Ada compilers back then (i.e. I read that Janus/Ada was available in the MS-DOS days and was not outrageously priced). True; in fact you can get a copy of [Janus (+ CLAW) for $295](http://www.rrsoftware.com/html/blog/combo.html), even now.
null
0
1546067626
False
0
ecsfaln
t3_aac063
null
null
t1_ecs2lng
/r/programming/comments/aac063/when_good_engineers_write_bad_software/ecsfaln/
1548215406
3
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1546067661
False
0
ecsfbjf
t3_aaco1d
null
null
t1_ecrfqsw
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsfbjf/
1548215417
-2
t5_2fwo
r/programming
public
null
False
jerry507
t2_7avw9
It’s a big mistake to assume smarter people worked on that code before. With few exceptions they were just random people. There’s a lot of assumptions built into your long reply, and in my experience it’s likely few of them can actually be justified with facts.
null
0
1546067829
False
0
ecsfgd1
t3_aac4hg
null
null
t1_ecs9a0x
/r/programming/comments/aac4hg/modern_c_lamentations/ecsfgd1/
1548215477
11
t5_2fwo
r/programming
public
null
False
featherfooted
t2_48838
/r/forwardsfromshevegen
null
0
1546067850
False
0
ecsfgy9
t3_aabai1
null
null
t1_ecr9w46
/r/programming/comments/aabai1/fish_shell_30/ecsfgy9/
1548215484
2
t5_2fwo
r/programming
public
null
False
oridb
t2_90rkq
A little duplication is *better* than aggressive elimination of duplication, since it prevents you from accidentally being tied to the needs of a downstream user. This is more pronounced at the scale of Google -- imagine writing a utility function, and then having all 50,000 of Google's chat apps come in and say "Hey, I actually need something almost like this, but can you make it optionally do that, too?"
null
0
1546067932
False
0
ecsfj51
t3_aa3qdm
null
null
t1_ecrxfld
/r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecsfj51/
1548215511
1
t5_2fwo
r/programming
public
null
False
forrestthewoods
t2_4h6ka
I took a quick tally Know - 4 Know a little - 3 Don't know; but want to - 2 Don't know; no interest - 15 I don't know and have no interest in learning 15 of the 24 technologies mentioned. Programming is a wide, wide field.
null
0
1546068089
False
0
ecsfnef
t3_aaco1d
null
null
t3_aaco1d
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsfnef/
1548215564
1
t5_2fwo
r/programming
public
null
False
dtechnology
t2_7gar4
Your explanation is incomprehensible for someone who is not already very familiar with things like polymorphism, lamdas and higher order functions. Which is precisely the problem that joke point out.
null
0
1546068333
False
0
ecsfuii
t3_aai5ap
null
null
t1_ecsf270
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsfuii/
1548215651
32
t5_2fwo
r/programming
public
null
False
jerry507
t2_7avw9
Is this iar by chance?
null
0
1546068359
False
0
ecsfv9v
t3_aac4hg
null
null
t1_ecrpylx
/r/programming/comments/aac4hg/modern_c_lamentations/ecsfv9v/
1548215660
1
t5_2fwo
r/programming
public
null
False
stevenjd
t2_9q2nh
> as all he does is tell people they are idiots, That's not [all](https://old.reddit.com/user/combinatorylogic) he does. > should never program, etc. People like him aren't valuable to any community Some people can't program, aren't interested or capable of learning, and are nothing but a drain on the community. It is better if they are discouraged early rather than waiting until they do too much harm. I've seen too many good programmers burn out from dealing with such people. Besides, sometimes swearing and verbal abuse *is* deserved, and [is good for you](https://www.theguardian.com/lifeandstyle/2017/nov/12/swear-by-it-why-bad-language-is-good-for-you). Its cathartic for the swearer, amusing to onlookers, and a salutary lesson to the receiver. I'd rather be told I'm an idiot than to be just ignored.
null
1
1546068415
False
0
ecsfwvf
t3_aaco1d
null
null
t1_ecrq09n
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsfwvf/
1548215680
-1
t5_2fwo
r/programming
public
null
False
stevenjd
t2_9q2nh
Tone-policing is such an dick move. Can we remove you from online communities too? Oops, I guess that means I have to be removed as well... Seriously, if there's anything worse than people who are arseholes on the internet, it is self-rightously holier-than-thou arseholes who bitch about other people being arseholes and demand that they be removed.
null
0
1546068633
False
0
ecsg357
t3_aaco1d
null
null
t1_ecrd8bz
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsg357/
1548215757
-8
t5_2fwo
r/programming
public
null
False
MurphLinear712
t2_1d1gtyw6
In my understanding of `tiny`, it’s also a library intended explicitly for experimentation. It’s not trying to provide the same kind of public, user facing library that something like `boost::filesystem` is.
null
0
1546068676
False
0
ecsg4be
t3_aac4hg
null
null
t1_ecrisqq
/r/programming/comments/aac4hg/modern_c_lamentations/ecsg4be/
1548215772
5
t5_2fwo
r/programming
public
null
False
dtechnology
t2_7gar4
No, try/catch and loosely typed languages are unreletated to monads. The rediscovery happened mostly in Haskell in the early '90s and it has since spread to other languages, first mostly functional ones but it's now leaking to more languages. For example, JavaScript promises are monads. They just call the chain operator `then` instead of `flatMap`, `bind` or `>=`.
null
0
1546068803
1546069320
0
ecsg7wz
t3_aai5ap
null
null
t1_ecseg0u
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsg7wz/
1548215817
33
t5_2fwo
r/programming
public
null
False
stevenjd
t2_9q2nh
> the guy that claimed fizzbuzz is a hazing ritual Seriously? Does this guy even know what hazing is? If having to prove your bona fides is now considered *hazing*, then we're doomed.
null
0
1546068831
False
0
ecsg8pa
t3_aaco1d
null
null
t1_ecrtx6m
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsg8pa/
1548215828
1
t5_2fwo
r/programming
public
null
False
fagnerbrack
t2_xeaqp
The last two sentences sum up the thought very well: >There’s plenty of things that I can do well. For example, **learning technologies when I need them**. I also don't know shit about algorithms. I've only learned Bin Packing and In-order/Out-order traversal because some projects I worked on required me to use them. That's about it. I don't know how to check if two DOM nodes are in the same position without spending some hours on the problem using TDD, for example. In fact, I've [written](https://itnext.io/the-missing-practical-step-by-step-test-driven-development-a7140ca4b71) about how you can use TDD to do it. It's not only technologies, but you also need to have skills to **solve the problems when you have them**. That's what I optimize for.
null
0
1546068840
False
0
ecsg8zo
t3_aaco1d
null
null
t3_aaco1d
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsg8zo/
1548215832
2
t5_2fwo
r/programming
public
null
False
Drisku11
t2_bg6v5
These days even Java has those things, but being familiar with generics or `map` doesn't mean the jargon makes sense. The point is the jargon just means "it's an interface that has this handful of functions, and their algebraic properties are nice, which means they don't have weird edge cases to consider (e.g. should I map twice or map the composition)".
null
0
1546068855
False
0
ecsg9gz
t3_aai5ap
null
null
t1_ecsfuii
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsg9gz/
1548215837
17
t5_2fwo
r/programming
public
null
False
ThreeEyedInc
t2_91som
I am you, three!
null
0
1546068866
False
0
ecsg9s9
t3_aaco1d
null
null
t1_ecrz16f
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsg9s9/
1548215841
6
t5_2fwo
r/programming
public
null
False
fagnerbrack
t2_xeaqp
Pair Programming can have most of those benefits more efficiently. I mean orders of magnitude more efficiently. You reduce a lot of friction and context switching.
null
0
1546069012
False
0
ecsge9t
t3_aaagix
null
null
t3_aaagix
/r/programming/comments/aaagix/why_review_code/ecsge9t/
1548215896
-1
t5_2fwo
r/programming
public
null
False
Poltras
t2_3b5ft
On the other end of the coin, I don’t understand why anyone would ever want to resolve symlinks. If I want to create my own fake directory structure my tools should respect that.
null
0
1546069245
False
0
ecsglgt
t3_aabai1
null
null
t1_ecr7nri
/r/programming/comments/aabai1/fish_shell_30/ecsglgt/
1548216014
3
t5_2fwo
r/programming
public
null
False
yawaramin
t2_77bue
Shh, don’t say ‘generic’, Go doesn’t do generics.
null
0
1546069293
False
0
ecsgmxq
t3_aa3qdm
null
null
t1_ecq9wwz
/r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecsgmxq/
1548216032
2
t5_2fwo
r/programming
public
null
False
stevenjd
t2_9q2nh
Huh? This analogy doesn't make sense. Vellum and leather parchment might not be in much demand outside of a few niche areas, but there's a big difference between *good quality* vellum and *shit quality* vellum. Likewise, interviews are not often necessary except when there is a job to fill. If the average job lasts three years, and took a week to fill, that's pretty niche too. > the point is that you can be good at something that isn’t very useful. Are you saying that interviews aren't useful? So how do you fill job positions without interviews? 1. Pick people at random without talking to them. 2. Look at their high school exam results. 3. Check whether they've got good legs and will go down on you. A better analogy would be, "I'm a trained brain surgeon, but they've got me making vellum. It's *shit* vellum, it stinks and rots and I can never cut it to the right size, but nobody seems to care."
null
0
1546069567
False
0
ecsgveu
t3_aaco1d
null
null
t1_ecrvjvd
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsgveu/
1548216137
0
t5_2fwo
r/programming
public
null
False
hirnbrot
t2_6cff9
>This was originally created by Ridiculous Fish. It actually wasn't! It was originally created by Axel Liljencrantz. _fish only forked it later, after Axel had stopped maintenance. The name is a complete coincidence!
null
0
1546069577
False
0
ecsgvpu
t3_aabai1
null
null
t1_ecrrasn
/r/programming/comments/aabai1/fish_shell_30/ecsgvpu/
1548216140
5
t5_2fwo
r/programming
public
null
False
yawaramin
t2_77bue
Dwight Schrute, no doubt?
null
0
1546069608
False
0
ecsgwou
t3_aa3qdm
null
null
t1_ecpodhk
/r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecsgwou/
1548216152
1
t5_2fwo
r/programming
public
null
False
hgjsusla
t2_a6egp
Type safety? An enum is not the same as an int?
null
0
1546069701
False
0
ecsgzf0
t3_aac4hg
null
null
t1_ecrv75u
/r/programming/comments/aac4hg/modern_c_lamentations/ecsgzf0/
1548216186
6
t5_2fwo
r/programming
public
null
False
Drisku11
t2_bg6v5
Not really. They're about wrapping and flattening generic types. e.g. if you have a `List[List[T]]` and you just want the `List[T]` with everything from the sublists. Or a `Future[Future[T]]` and you just want "the final answer after running all of the futures" as a `Future[T]`. Another favorite for testing your intuition is functions with a fixed input type: `A->(A->B)` (i.e. a function returning a function) can be flattened to an `A->B` by taking your A and plugging it in twice. They also require a `map` and the ability to wrap plain values (e.g. list with one element, future that immediately returns its result, constant function).
null
0
1546069735
False
0
ecsh0hf
t3_aai5ap
null
null
t1_ecseuoi
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsh0hf/
1548216198
9
t5_2fwo
r/programming
public
null
False
anonprogtada
t2_3vs2n
I've often been credited with helping get a team across the line... but often feel imposter syndrome. My skill seems to be to understand others strengths/weaknesses on a project and compensate. I am good with some things but often get so rusty I'm scouring stack overflow for things I should know. One thing is clear though - the worst technical staff I've encountered are those who are insecure and afraid of ever admitting they don't know things. I've seen projects fail if that person is high enough in the hierarchy.
null
0
1546069870
False
0
ecsh4ym
t3_aaco1d
null
null
t1_ecr5rfc
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsh4ym/
1548216255
4
t5_2fwo
r/programming
public
null
False
LalafellRulez
t2_11i38u
Everything is fluid and on a case by case basis. By your logic we are in a infinite loop situation. Personally if someone is disrupting the peace of a community ,should be ostracized using the tools a community has. In the forums days was a site wide ban ,at Reddit is a subreddit ban and irl no one talking to you and taking you seriously. It's an evolutionary trait and the one who complain about the people who complain about problems in an X community are the ones who are predisposed to be the problems in the 1st place. It's a defensive mechanism.
null
0
1546069967
False
0
ecsh85j
t3_aaco1d
null
null
t1_ecsg357
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsh85j/
1548216293
6
t5_2fwo
r/programming
public
null
False
Kinglink
t2_4fxzq
"Sorry we're looking for someone with a few more skills in applicable areas, and expect all of those from every one of our applicants. Yes all our employees can already do all of those, but we'd like to keep your application on file." Seriously, it's a great self evaluation but I look at this and realize that I'm similar and yet most companies would love this information to disqualify people because of simple ideas like "It's so easy to have unix commands" (yeah and it's so easy to look them up too) I can only hope this wakes up the industry to be honest about our skills, but there's too many posers out there who will laugh at this (and then silently realize they know even less)
null
0
1546069971
1546070170
0
ecsh8ac
t3_aaco1d
null
null
t3_aaco1d
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsh8ac/
1548216295
4
t5_2fwo
r/programming
public
null
False
Habib_Marwuana
t2_gtrgw
The consequences of lambdas are complicated. The fact that they can capture variables and prolong their lifetime means that just by passing a lambda around you can cause your memory to be deallocated at odd times in unexpected places. Perhaps your destructor is now called on a random thread and you have race conditions in your cleanup code. It also introduces the need to use weak memory pointers to stop memory cycles. And also there can be issues if you’re capturing by reference. What about copying lambdas what does that do about the captured variables? What if a variable is now captured by reference? What about lambdas capturing other lambdas? Or lambdas who take other lambdas as parameters? Etc etc Lambdas can be complicated.
null
0
1546069997
False
0
ecsh94a
t3_aac4hg
null
null
t1_ecrdb2z
/r/programming/comments/aac4hg/modern_c_lamentations/ecsh94a/
1548216306
7
t5_2fwo
r/programming
public
null
False
doomhammerng
t2_ik53w87
How would you approach avoiding fluff when trying to inspire people unfamiliar with the topic? I wanted to write so that both people who use \`make\` and those who may have not heard of it could benefit. I'd welcome any suggestions on how should I tackle the topic in my future articles. ​ Thanks!
null
0
1546070406
False
0
ecshmwe
t3_9ypm05
null
null
t1_ea3hczo
/r/programming/comments/9ypm05/want_to_know_the_easiest_way_to_save_time_use_make/ecshmwe/
1548216476
1
t5_2fwo
r/programming
public
null
False
EAT_DA_POOPOO
t2_4423r
Certainly wrapping, that's what I was attempting to do in a super simple/familiar way (and apparently failing). Would that not be considered a form of null safety? Not sure about flattening though - they seem more generic, e.g. [Maybe](https://en.wikibooks.org/wiki/Haskell/Understanding_monads/Maybe)?
null
0
1546070452
1546070710
0
ecshogu
t3_aai5ap
null
null
t1_ecsh0hf
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecshogu/
1548216495
1
t5_2fwo
r/programming
public
null
False
Benmjt
t2_4qv69
Or make your own list.
null
0
1546070491
False
0
ecshprm
t3_aaco1d
null
null
t1_ecs4i82
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecshprm/
1548216511
5
t5_2fwo
r/programming
public
null
False
yawkat
t2_a7pa9
It's not job security if even you don't understand what you were doing
null
0
1546070527
False
0
ecshr26
t3_aac4hg
null
null
t1_ecrndqx
/r/programming/comments/aac4hg/modern_c_lamentations/ecshr26/
1548216527
5
t5_2fwo
r/programming
public
null
False
doomhammerng
t2_ik53w87
It's the worst for people **familiar** with the matter. For others, it brings context and hooks them up on reading. So I guess it depends on what audience do you want to target. ​ Can you share some of your articles? I'm curious to learn your style.
null
0
1546070543
False
0
ecshrn3
t3_9ypm05
null
null
t1_ea40b7j
/r/programming/comments/9ypm05/want_to_know_the_easiest_way_to_save_time_use_make/ecshrn3/
1548216534
1
t5_2fwo
r/programming
public
null
False
LalafellRulez
t2_11i38u
You can always prove them wrong with facts and sources. And if the one who makes a claim does not change their opinion you helped already by stopping misinformation propagating. But if you reply to an assertion but insulting them you just did nothing and most likely because you yourself don't know why someone asserts is wrong but you just feel its wrong. Let's take the following 2 extreme examples: Example 1 A: X is better than Y B: Fuck you. You are an idiot and disgrace. Example 2 A: X is better than Y C: According to research[1] under those conditions Y is better than X. And for the purposes where Y is inferior to X you can use a combination of Y and Z,here you can find a nice sample[2]. Overall your claim of X being better than Y is wrong. [1]: Source 1 [2]: Source 2 Who do you think has a better understanding of Y and X, person B or person C?
null
0
1546070565
False
0
ecshsep
t3_aaco1d
null
null
t1_ecrtx6m
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecshsep/
1548216543
3
t5_2fwo
r/programming
public
null
False
doomhammerng
t2_ik53w87
Sorry, they got lost during the editing process. It's fixed now.
null
0
1546070621
False
0
ecshuet
t3_9ypm05
null
null
t1_ea383ak
/r/programming/comments/9ypm05/want_to_know_the_easiest_way_to_save_time_use_make/ecshuet/
1548216568
1
t5_2fwo
r/programming
public
null
False
brogam
t2_1hkhftox
be very happy my friend, we will soon have jailang and ziglang and we can forget this horrible nightmare that is c++
null
0
1546070644
False
0
ecshv7w
t3_aac4hg
null
null
t1_ecrwgep
/r/programming/comments/aac4hg/modern_c_lamentations/ecshv7w/
1548216607
2
t5_2fwo
r/programming
public
null
False
vplatt
t2_1uz5
This is a nice advocacy piece. That's especially true because they do not spend any time on putting down any other technology. I'm not an Elixir insider. I've been lurking it for some time though. Would someone in the community care to comment? This is a good time.
null
0
1546070691
False
0
ecshwts
t3_aaexva
null
null
t3_aaexva
/r/programming/comments/aaexva/elixir_a_minidocumentary_2018/ecshwts/
1548216627
2
t5_2fwo
r/programming
public
null
False
Figs
t2_2h67p
There are some weird edge cases as a result. I don't know how often you'd bump into them in practice if you write reasonably sane code, but here's an example. With g++ 4.8.4, this compiles: bool flag = true; int x = 6; auto f = flag? [](){printf("A");} : [](){printf("B");}; f(); while this does not: bool flag = true; int x = 6; auto f = flag? [x](){printf("A");} : [x](){printf("B");}; f(); The error you get from g++ looks like this: error: no match for ternary ‘operator?:’ (operand types are ‘bool’, ‘main()::__lambda0’, and ‘main()::__lambda1’) auto f = flag? [x](){printf("A");} : [x](){printf("B");}; Of course, you can explicitly wrap the lambdas in `std::function<void ()>` to make it work, but I could see someone being *very* confused the first time they hit this issue.
null
0
1546070723
False
0
ecshxzg
t3_aac4hg
null
null
t1_ecs10nj
/r/programming/comments/aac4hg/modern_c_lamentations/ecshxzg/
1548216641
17
t5_2fwo
r/programming
public
null
False
doomhammerng
t2_ik53w87
Yup, XKCD is right. But I value team productivity so that's why I prefer to stick to one naming convention.
null
0
1546070729
False
0
ecshy7c
t3_9ypm05
null
null
t1_ea3d2u8
/r/programming/comments/9ypm05/want_to_know_the_easiest_way_to_save_time_use_make/ecshy7c/
1548216644
1
t5_2fwo
r/programming
public
null
False
feverzsj
t2_tdfgz
range isn't a good example for modern c++.
null
0
1546070845
False
0
ecsi24u
t3_aac4hg
null
null
t3_aac4hg
/r/programming/comments/aac4hg/modern_c_lamentations/ecsi24u/
1548216694
3
t5_2fwo
r/programming
public
null
False
Conficker_
t2_gw3hv
Kleisli arrows are methods to compose functions which return monadic values, as such they depend on Monads.
null
0
1546070852
False
0
ecsi2ds
t3_aai5ap
null
null
t1_ecse9qc
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsi2ds/
1548216697
15
t5_2fwo
r/programming
public
null
False
Drisku11
t2_bg6v5
flatten for Maybe is defined as: flatten Just Just x = Just x flatten _ = Nothing Which is to say if either layer is empty, it's empty. Otherwise if both layers exist, it's the value wrapped in Just. This gives a function `Maybe Maybe a -> Maybe a`.
null
0
1546070912
False
0
ecsi4gn
t3_aai5ap
null
null
t1_ecshogu
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsi4gn/
1548216724
6
t5_2fwo
r/programming
public
null
False
Holy_City
t2_bj3zm
>It prevents type inference working between multiple lambdas with the same signature. Which is why `std::function` exists. But that's not strictly true, since lambdas with empty capture lists decompose to function pointers just fine. The real "gotcha" with lambdas and `std::function` is that if the capture list is greater than the size of a pointer (more accurately, if `sizeof(/*lamba*/) > sizeof(void*)` then a heap allocation occurs when the lambda is instantiated and a call to `delete` is made when it goes out of scope. There are cases where that behavior is unacceptable, for instance if you need to pass a callback off a realtime thread to a non-realtime thread.
null
0
1546070955
False
0
ecsi5xk
t3_aac4hg
null
null
t1_ecs7ddj
/r/programming/comments/aac4hg/modern_c_lamentations/ecsi5xk/
1548216743
8
t5_2fwo
r/programming
public
null
False
[deleted]
None
[deleted]
null
0
1546071039
False
0
ecsi8qq
t3_aac4hg
null
null
t1_ecs1m2f
/r/programming/comments/aac4hg/modern_c_lamentations/ecsi8qq/
1548216777
2
t5_2fwo
r/programming
public
null
False
MasterKongQiu
t2_i3pmq
But are they vax free? Wouldn't want your electrons catching some autism from any vaccines.
null
0
1546071364
False
0
ecsij5s
t3_aaco1d
null
null
t1_ecryof7
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsij5s/
1548216905
3
t5_2fwo
r/programming
public
null
False
eskimoFry
t2_gxd2g
i mean, i don't understand much of it other than the fact that the paramerter must implement a Range type?
null
0
1546071388
False
0
ecsijx3
t3_aac4hg
null
null
t1_ecscad2
/r/programming/comments/aac4hg/modern_c_lamentations/ecsijx3/
1548216915
2
t5_2fwo
r/programming
public
null
False
ArunMu
t2_n7ikv
Nicely written article. As much as I love C++ I do not recommend it for new software developers interested in systems programming. It is trying to not be an "expert only" language, but sadly it is and with the current trend of things it will mostly be a "wizards only" language. That is really sad. What I want and everyone wants is to ship faster, reasonably performant and efficient code. At the same time, it should be debuggable, testable and shouldn't get me into depression while stepping into a library routine while in debugger. I am still a modern C++ proponent, but something deep inside me says....
null
0
1546071446
False
0
ecsilmp
t3_aac4hg
null
null
t3_aac4hg
/r/programming/comments/aac4hg/modern_c_lamentations/ecsilmp/
1548216937
4
t5_2fwo
r/programming
public
null
False
MasterKongQiu
t2_i3pmq
Printers are easy to fix. You just throw them in the garbage and sign your relatives up for Shutterfly or similar.
null
0
1546071495
False
0
ecsin6x
t3_aaco1d
null
null
t1_ecs794i
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsin6x/
1548216956
14
t5_2fwo
r/programming
public
null
False
RAIDguy
t2_579ok
That C++20 stuff is just unreadable garbage. WTF have people done to the language?
null
0
1546071500
False
0
ecsincj
t3_aac4hg
null
null
t3_aac4hg
/r/programming/comments/aac4hg/modern_c_lamentations/ecsincj/
1548216958
8
t5_2fwo
r/programming
public
null
False
EAT_DA_POOPOO
t2_4423r
But would you say that flattening is one of the basic ideas of what makes a monad or simply encapsulation of a value? I've always thought of them as primarily the function of the latter, but if the former is regarded as intrinsically part of the concept I would undoubtedly have to rethink my understanding.
null
0
1546071641
False
0
ecsirm4
t3_aai5ap
null
null
t1_ecsi4gn
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsirm4/
1548217010
0
t5_2fwo
r/programming
public
null
False
Holy_City
t2_bj3zm
IME the folks writing C++ have longer product cycles which means we need to cover targets unsupported by the newer compiler and stdlib versions, even on new projects. Shout out to Apple for barely supporting C++17, only having minimal stdlib coverage on MacOS >10.14, and crippling Xcode for C++ development.
null
0
1546071792
False
0
ecsiw8n
t3_aac4hg
null
null
t1_ecrt4ea
/r/programming/comments/aac4hg/modern_c_lamentations/ecsiw8n/
1548217067
7
t5_2fwo
r/programming
public
null
False
Boza_s6
t2_j1w9p
People downvoting you, but I'm with you. It is ridiculous to have such a big knowledge gap.
null
1
1546071882
False
0
ecsizeh
t3_aaco1d
null
null
t1_ecrhz60
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsizeh/
1548217106
-4
t5_2fwo
r/programming
public
null
False
wutcnbrowndo4u
t2_4izh8
I would've probably agreed back when my career consisted only of talented teams within places like Google, but since then I've internalized through experience that some opportunities require working with teammate or reportee engineers ranging from mediocre to terrible. While it's never quite pleasant to work with such people, working with them in eg Python is an absolute nightmare, as the permissiveness of the language allows them to constantly conjure up fresh hells from the arsenal of footguns they have access to. As irritating as I personally find Go's handholding approach, some people frankly need their hands held to some degree. I don't think this precludes growing as an engineer, either.
null
0
1546071973
False
0
ecsj2iw
t3_a8rptf
null
null
t1_ecgl3a6
/r/programming/comments/a8rptf/i_do_not_like_go/ecsj2iw/
1548217145
1
t5_2fwo
r/programming
public
null
False
FrozenAsss
t2_2u5lrwd3
Java Decent That's the worst bullshit i have heard in 2018
null
0
1546072127
False
0
ecsj7kd
t3_a8kwg9
null
null
t1_ecg8nsf
/r/programming/comments/a8kwg9/what_every_programmer_should_know_about_memory/ecsj7kd/
1548217235
3
t5_2fwo
r/programming
public
null
False
[deleted]
None
[removed]
null
0
1546072132
False
0
ecsj7qj
t3_aach46
null
null
t3_aach46
/r/programming/comments/aach46/lazy_code_a_c_header_only_lib_what_if_you_could/ecsj7qj/
1548217238
-2
t5_2fwo
r/programming
public
null
False
FrozenAsss
t2_2u5lrwd3
Java Decent That's the worst bullshit i have heard in 2018
null
0
1546072141
False
0
ecsj81m
t3_a8kwg9
null
null
t1_ecg8nsf
/r/programming/comments/a8kwg9/what_every_programmer_should_know_about_memory/ecsj81m/
1548217242
1
t5_2fwo
r/programming
public
null
False
vivainio
t2_4a0np
No you are right
null
0
1546072252
False
0
ecsjbr5
t3_aa2peh
null
null
t1_ecorhn2
/r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecsjbr5/
1548217288
1
t5_2fwo
r/programming
public
null
False
Valmar33
t2_zbck5
Perhaps, but Go is not a good choice of restrictive language ~ it's ***too*** restrictive, cripplingly so.
null
0
1546072420
False
0
ecsjh80
t3_a8rptf
null
null
t1_ecsj2iw
/r/programming/comments/a8rptf/i_do_not_like_go/ecsjh80/
1548217355
3
t5_2fwo
r/programming
public
null
False
[deleted]
None
1:37
null
0
1546072602
False
0
ecsjmxy
t3_aa91bp
null
null
t1_ecraxqh
/r/programming/comments/aa91bp/computer_vision_ai_object_detection_and/ecsjmxy/
1548217427
1
t5_2fwo
r/programming
public
null
False
Figs
t2_2h67p
Indeed. One of the biggest issues with lambdas that I've run into is that you can't serialize them. There is no way to get at the captured variables. If it turns out later that you need to save the state contained in a closure to disk or shove it across the network, you're gonna have a bad time. Lambdas should generally only be used for quick action injection that expires immediately (like passing a filter to a function that performs a complex traversal / transformation), not for things like reacting to events, action queues, etc. It's *really* tempting when you first encounter lambdas and `std::function` to try to use them to sequence actions -- e.g. dynamically construct state machines and timelines for things like video games -- and for event handling (e.g. if you write a button class, making on_click a `std::function` to react to the event instead of needing to subclass.), but unless you are *extremely* careful in your design, you will get burned doing these things.
null
0
1546072820
False
0
ecsju6f
t3_aac4hg
null
null
t1_ecsh94a
/r/programming/comments/aac4hg/modern_c_lamentations/ecsju6f/
1548217517
6
t5_2fwo
r/programming
public
null
False
sime
t2_35em5
> Must readability be the one quality to which all others must bow? I would say yes because it is the cornerstone. Without readability you can't have robust code, unbreakable code, extensible code, etc either.
null
0
1546072854
False
0
ecsjvbn
t3_aac4hg
null
null
t1_ecrfd78
/r/programming/comments/aac4hg/modern_c_lamentations/ecsjvbn/
1548217531
5
t5_2fwo
r/programming
public
null
False
Drisku11
t2_bg6v5
Flattening is at the core of the concept. The function example `A->(A->B)` flattening to `A->B` illustrates that "encapsulation"/containment are not part of the concept. You can create a function that "contains" a single value in the sense that it always returns that value, but most functions don't "contain" anything. They *produce* things when you run them.
null
0
1546072865
False
0
ecsjvmd
t3_aai5ap
null
null
t1_ecsirm4
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsjvmd/
1548217534
5
t5_2fwo
r/programming
public
null
False
zvrba
t2_1vne
> We have to integrate & maintain scripting languages like Lua to get hot-loading / rapid iteration of code because our C++ codebase is too slow to compile. Ya. C# / .net core has become my default platform of choice. > std::vector is ~10-15x slower in debug builds I assume you're talking about MSVC. Yes, debug iterators are a PITA. I've solved this by having a "RelNoOpt" configuration that is the same as release except all optimizations turned off. No more ABI-incompatibility mess between debug and release CRT, and the debugging experience is as with "Debug". Yes, I loose iterator debugging, but it's a small price to pay wrt the gains. > We use so much template code the linker takes a quarter of an hour or more to sort out the mess dumped into every obj Tooling issues. For a long time I've wondered why compilers and linkers work with raw mangled names instead of their hashes. Like, the compiler emits an OBJ file where all symbol names are replaced with their 128-bit MD5 hashes, plus an additional table mapping the hash to the name. Linker would do its job only by symbol hashes, and only as the last step a complete symbol table with proper names would be generated.
null
0
1546072883
False
0
ecsjw62
t3_aac4hg
null
null
t1_ecrwgep
/r/programming/comments/aac4hg/modern_c_lamentations/ecsjw62/
1548217541
12
t5_2fwo
r/programming
public
null
False
SaadAttieh
t2_2pd4av8
It’s listed as an external dependency in src/CMakeLists-ExternalProjects.txt.  This file lists the GitHub link where it can be found.  If you build the example usage by `mkdir build; cd build; cmake ..; make`.  This will automatically clone the optional repo.  Or if you like just use the single header build in single_header/lazyCode.h
null
0
1546072931
False
0
ecsjxoj
t3_aach46
null
null
t1_ecrpl5x
/r/programming/comments/aach46/lazy_code_a_c_header_only_lib_what_if_you_could/ecsjxoj/
1548217559
1
t5_2fwo
r/programming
public
null
False
FrozenAsss
t2_2u5lrwd3
It find it very fascinating how you can use these simple lines of code to generate good looking graphics. Compared to e.g. modern game development where you press some boxes in Unity that no one knows the code behind.
null
0
1546072981
False
0
ecsjz8t
t3_aajb7r
null
null
t3_aajb7r
/r/programming/comments/aajb7r/how_doom_fire_was_done/ecsjz8t/
1548217580
175
t5_2fwo
r/programming
public
null
False
EAT_DA_POOPOO
t2_4423r
Gotcha, thanks for your explanation.
null
0
1546073011
False
0
ecsk074
t3_aai5ap
null
null
t1_ecsjvmd
/r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsk074/
1548217591
1
t5_2fwo
r/programming
public
null
False
mrkite77
t2_4iq0c
I have a similar javascript version here: http://seancode.com/demofx/
null
0
1546073095
False
0
ecsk2su
t3_aajb7r
null
null
t3_aajb7r
/r/programming/comments/aajb7r/how_doom_fire_was_done/ecsk2su/
1548217623
301
t5_2fwo
r/programming
public
null
False
davorzdralo
t2_62ihs
> Tone-policing is such an dick move This isn't about tone.
null
0
1546073181
False
0
ecsk5io
t3_aaco1d
null
null
t1_ecsg357
/r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsk5io/
1548217656
10
t5_2fwo
r/programming
public
null