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 | [deleted] | None | [deleted] | null | 0 | 1544648661 | 1544671851 | 0 | ebnm3zy | t3_a5gxm6 | null | null | t1_ebmi4jy | /r/programming/comments/a5gxm6/freebsd_12_released/ebnm3zy/ | 1547527850 | 1 | t5_2fwo | r/programming | public | null |
False | onometre | t2_1olfdwmq | That's a point against it if anything | null | 0 | 1545944443 | False | 0 | ecoku99 | t3_a9tm4z | null | null | t1_ecnq7qw | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecoku99/ | 1548150438 | 1 | t5_2fwo | r/programming | public | null |
False | RunasSudo | t2_c1zfg | > I dont get why he's being so circumspect about it.
For legal reasons, for the same reason I haven't provided any code that actually does any circumvention of the DRM. The exceptions for ‘manufacturing/distributing a circumvention device’ or ‘providing a circumvention service’ are significantly narrower than for the act of circumvention itself. Creating a situation where you could Google the name of the DRM system and get an article on how to circumvent it felt like it was drifting into one of the former, so better safe than sorry. | null | 0 | 1544648718 | 1544649204 | 0 | ebnm6tf | t3_a5hkyo | null | null | t1_ebmqp1m | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnm6tf/ | 1547527885 | 23 | t5_2fwo | r/programming | public | null |
False | rainbow7564 | t2_m4wa2 | I see the point about the significance of graph construction time. It is important because if two algorithms have different time and / or memory in the initial construction, they don't make for a good comparison. However, constructing the physical graph has the same complexity as constructing the digital graph that you would apply dijkstras algorithm to: V + E or linear. Your algorithm requires NumPairs * vlogv time to calculate the paths ahead of time and then extra memory to store the lookup table. I don't think that's a fair comparison to the ball and string graph algorithm. Or at least, I don't see why they should be comparable. | null | 0 | 1545944449 | False | 0 | ecokul2 | t3_a9qz9q | null | null | t1_eco6121 | /r/programming/comments/a9qz9q/amoeba_finds_approximate_solutions_to_nphard/ecokul2/ | 1548150443 | 1 | t5_2fwo | r/programming | public | null |
False | KrocCamen | t2_sxbhs | *rolls up sleeve*
You will need to be familiar with writing code in Go to understand these contention points; but I know Go programmers will be nodding along with these familiar language oddities:
* The language has a set of built-in functions that literally don't conform to the specification; that is they're magic statements that you could never implement yourself. They take a different number of parameters depending on the type of parameters (there is no function overloading in Go), the meaning of the parameters is also different depending on the parameters! This is straight out of BASIC where statements are mostly magic and can vary parameters entirely based on the context of previous parameters.
* The `, ok` syntax is even more insane, adding a magic overloading of methods out of nowhere! It's a total hack to work around the lack of proper error / exception handling; speaking of which...
* The error handling is not much better than `ON ERROR GOTO...`, you have to check for error result after every function call. That's the Google-given answer to error handling.
* Default types. Nice in concept, due to less boiler-plating, but a massive work-around for lack of memory safety. | null | 0 | 1544648768 | False | 0 | ebnm9ac | t3_a5i57x | null | null | t1_ebnj0l1 | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnm9ac/ | 1547527915 | 11 | t5_2fwo | r/programming | public | null |
False | onometre | t2_1olfdwmq | Some angry neckbeards on reddit does not equal the world. | null | 0 | 1545944469 | False | 0 | ecokvjq | t3_a9tm4z | null | null | t1_ecnk66h | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecokvjq/ | 1548150454 | 0 | t5_2fwo | r/programming | public | null |
False | billsil | t2_6ay72 | > Tests are meant to be run in any order.
As long as you give me the output in order. Diff'ing things is really nice. | null | 0 | 1544648798 | False | 0 | ebnmau4 | t3_a5iior | null | null | t1_ebmwnuq | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnmau4/ | 1547527935 | 1 | t5_2fwo | r/programming | public | null |
False | zwhitchcox | t2_h3tbu | In other words, you had no logical refuted and resorted to playground insults.
Thanks, your criticism is given as much weight as it had validity. | null | 0 | 1545944469 | False | 0 | ecokvl0 | t3_aa2peh | null | null | t1_ecokhqj | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecokvl0/ | 1548150455 | -20 | t5_2fwo | r/programming | public | null |
False | emn13 | t2_1p64 | To nitpick: A pure function is affected by its arguments. And those are determined by other code you execute. The arguments can be arbitrarily complex, and often allow reaching considerable amounts of entropy if you're using this as an alternative to mutation & I/o, precisely because they need to encapsulate all possible input states.
So it's certainly possible for other code to affect a pure function in a way that reduces effective test coverage. It's just going to do so in a more explicit manner (which might help, but then again, mocking complex object graphs is harder in stronger type systems, which is what you often see in these kind of scenarios, so... it's complicated?)
To be clear: I totally agree with you that the statement is reasonable, and that our numerically-named poster is 100% spot-on in saying pure functions will help - but it's not a solution, merely helpful. | null | 0 | 1544648860 | False | 0 | ebnmdw3 | t3_a5iior | null | null | t1_ebnh2np | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnmdw3/ | 1547527972 | 11 | t5_2fwo | r/programming | public | null |
False | onometre | t2_1olfdwmq | You must be pretty dumb to think I've only ever used chromium based apps my entire life. | null | 0 | 1545944578 | False | 0 | ecol12i | t3_a9tm4z | null | null | t1_ecnh5m6 | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecol12i/ | 1548150523 | 0 | t5_2fwo | r/programming | public | null |
False | VictorNicollet | t2_4tz09 | This is not the definition of a pure function. Of course the results of other code affect its behaviour - the only restriction is that they may only affect it by passing data as an argument, or returning it from a call. This is powerful because it *reduces* the interface between the function and the surrounding code, not because it *removes* it.
In the end, you will have in your code a pure function F calling another pure function G and using its result in some way. If F and G disagree about a property of G's result (for instance, F believes that the returned collection will always contain a value for key X, but G intentionally supports an edge case where it doesn't) then you have a bug. | null | 0 | 1544648866 | False | 0 | ebnme5n | t3_a5iior | null | null | t1_ebnh2np | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnme5n/ | 1547527976 | 2 | t5_2fwo | r/programming | public | null |
False | Xychologist | t2_ki6fd | As a Brit, I've never heard this. Must be local to somewhere. Great thing about these sceptered isles, there's a new dialect every fifty miles! | null | 0 | 1545944605 | False | 0 | ecol2id | t3_aa2peh | null | null | t1_ecokhqj | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecol2id/ | 1548150540 | 7 | t5_2fwo | r/programming | public | null |
False | issungee | t2_20j62l5u | Where can I read more about the basics of this sort of 'reverse engineering'? It's very interesting | null | 0 | 1544648945 | False | 0 | ebnmi8n | t3_a5hkyo | null | null | t3_a5hkyo | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnmi8n/ | 1547528025 | 14 | t5_2fwo | r/programming | public | null |
False | onometre | t2_1olfdwmq | This sub will side with even the stupidest people if it allows them to circlejerk | null | 0 | 1545944612 | False | 0 | ecol2uw | t3_a9tm4z | null | null | t1_ecne4oe | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecol2uw/ | 1548150544 | 1 | t5_2fwo | r/programming | public | null |
False | VictorNicollet | t2_4tz09 | Such as this very predictable pure function:
int mc91(int n)
{
if( n > 100 ) {
return n - 10;
} else {
return mc91(mc91(n+11));
}
}
| null | 1 | 1544649015 | False | 0 | ebnmltd | t3_a5iior | null | null | t1_ebnj4dv | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnmltd/ | 1547528070 | -1 | t5_2fwo | r/programming | public | null |
False | Type-21 | t2_9udi7 | Honestly I'm appalled that so many young people are only exposed to programming through web development. May god help us if they think that's what software development is like. Once I switched into a web front end job from doing .Net framework desktop software for a decade, I felt like descending through hell and finally arriving in the year 1748. What are good tools? What is good documentation? What is a robust framework that you can truly depend on? What's proper support? Young people know nothing of that if all they do is html/css/js with a good dose of npm stuff. Oh yeah but it's open source. That invalidates all criticism. | null | 0 | 1545944950 | 1545946270 | 0 | ecolkgm | t3_a9xyeq | null | null | t1_ecnh7n4 | /r/programming/comments/a9xyeq/frontend_development_is_not_a_problem_to_be_solved/ecolkgm/ | 1548150805 | 4 | t5_2fwo | r/programming | public | null |
False | jerf | t2_9duv | > This is not the definition of a pure function
No, of course it's not the definition. It's just something that follows as a consequence. If you can run pure function F, and then pure function G, and get different results from them if you run G and then F, then at least one of F or G isn't pure. | null | 0 | 1544649088 | False | 0 | ebnmpjj | t3_a5iior | null | null | t1_ebnme5n | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnmpjj/ | 1547528116 | 3 | t5_2fwo | r/programming | public | null |
False | MurlockHolmes | t2_j8m35 | Musicians with dimentia have reportedly still been able to play too. I wonder if it's related | null | 0 | 1545945092 | False | 0 | ecolrtn | t3_a9wkc6 | null | null | t1_ecoiq3o | /r/programming/comments/a9wkc6/documentary_about_terry_davis_and_templeos/ecolrtn/ | 1548150897 | 11 | t5_2fwo | r/programming | public | null |
False | stack-compression | t2_1w1eet1b | I like types. They're a useful tool, and I am really glad that dynamic languages are moving towards optional type checking (python, javascript with typescript and flow, and I think ruby 3 will have it as well).
I'm not religious about it though - possibly because I only half understand the link you gave me. I have been trying TDD recently, and I truly believe it's making me a better programmer. How is types-as-proofs working out for you? Is it worth looking into for the workaday coder? | null | 0 | 1544649140 | False | 0 | ebnms8o | t3_a5iior | null | null | t1_ebnl4g5 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnms8o/ | 1547528152 | 3 | t5_2fwo | r/programming | public | null |
False | zwhitchcox | t2_h3tbu | Just want to point out no one has yet offered any logical argument, basically ceding that I'm right, so thank you. | null | 0 | 1545945251 | False | 0 | ecolzvg | t3_aa2peh | null | null | t3_aa2peh | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecolzvg/ | 1548150996 | -16 | t5_2fwo | r/programming | public | null |
False | Ravek | t2_72i2j | C# only is the best general purpose language if you're only comparing it to other older languages, Java, C++, Python whatever.
If I could write Swift or Kotlin for .NET with the same level of tooling quality as I'm used to for C#, I'd never look back. | null | 0 | 1544649144 | 1544649369 | 0 | ebnmsfd | t3_a5i57x | null | null | t1_ebndvoz | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnmsfd/ | 1547528155 | 2 | t5_2fwo | r/programming | public | null |
False | br-rand | t2_nj1j9 | Sorry pal, but your loaded clickbaity title didn't warrant any legit conversation.
Should you have posted something around the lines _I've migrated from golang to nodejs and here are my 2cents on why it worked *for me*_ I would've at least finished watching your video.
But no. You don't get a free pass on broad generic statement tha golang is crap (full stop). And nodejs is an alternative. What's next? Are you going to say: PHP if crap because if doesn't support multithread for your desktop app, so everyone should adopt C# instead. Pears and apples, pal. Also, something something right tool for the job something. | null | 0 | 1545945284 | False | 0 | ecom1k2 | t3_aa2peh | null | null | t1_ecokvl0 | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecom1k2/ | 1548151018 | 9 | t5_2fwo | r/programming | public | null |
False | Ravek | t2_72i2j | .NET is great but that's not really what people are going to think about when someone is mic dropping 'C# is the best language'. I don't disagree that if you're building something enterprisey then C# on .NET is a top contender. But purely from a language design perspective you can easily do better. | null | 0 | 1544649217 | False | 0 | ebnmw09 | t3_a5i57x | null | null | t1_ebnkt7g | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnmw09/ | 1547528199 | 3 | t5_2fwo | r/programming | public | null |
False | Type-21 | t2_9udi7 | Also there are lots of web devs who haven't done any other kind of programming so they actually don't feel the pain. They think this is normal | null | 0 | 1545945363 | False | 0 | ecom5o7 | t3_a9xyeq | null | null | t1_ecng758 | /r/programming/comments/a9xyeq/frontend_development_is_not_a_problem_to_be_solved/ecom5o7/ | 1548151068 | 1 | t5_2fwo | r/programming | public | null |
False | netinept | t2_5201u | It took me way too long to figure out there wasn't really some game company named "Artisans of the Electron" | null | 0 | 1544649217 | False | 0 | ebnmw0j | t3_a5hkyo | null | null | t1_ebmsbpd | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnmw0j/ | 1547528199 | 20 | t5_2fwo | r/programming | public | null |
False | waddlesplash | t2_ejoj3 | What? Where were you [3 months ago](https://old.reddit.com/r/programming/comments/9jsqg0/the_haiku_operating_system_has_finally_released/)? :-P
This is a (somewhat belated) review, not a release announcement. | null | 0 | 1545945470 | False | 0 | ecomb8i | t3_aa34c6 | null | null | t3_aa34c6 | /r/programming/comments/aa34c6/haiku_beta_is_finally_released/ecomb8i/ | 1548151137 | 1 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1544649239 | False | 0 | ebnmx38 | t3_a5iior | null | null | t1_ebnmdw3 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnmx38/ | 1547528212 | 1 | t5_2fwo | r/programming | public | null |
False | foxh8er | t2_60e80 | Why? Is it because you think they're inherently superior humans? | null | 0 | 1545945553 | False | 0 | ecomfft | t3_a9z26i | null | null | t1_eco5xc0 | /r/programming/comments/a9z26i/comparison_of_the_top_speech_processing_apis/ecomfft/ | 1548151204 | -16 | t5_2fwo | r/programming | public | null |
False | jerf | t2_9duv | Your correction would be far more correction-y if I had not already made that point in the _very next sentence_. | null | 0 | 1544649260 | False | 0 | ebnmy3o | t3_a5iior | null | null | t1_ebnj8n8 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnmy3o/ | 1547528224 | 1 | t5_2fwo | r/programming | public | null |
False | ptrwis | t2_l7kzs | One thing I don't like in Swift is string interpolation with backslash and parentheses:
let message = "blabla \(myvariable) blabla" | null | 0 | 1545945779 | False | 0 | ecomr0i | t3_aa13tt | null | null | t3_aa13tt | /r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecomr0i/ | 1548151346 | 4 | t5_2fwo | r/programming | public | null |
False | pron98 | t2_f0thb | Then they should easily find common ground with many on this sub. | null | 0 | 1544649264 | False | 0 | ebnmybc | t3_a5ikq1 | null | null | t1_ebnixh7 | /r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebnmybc/ | 1547528227 | 10 | t5_2fwo | r/programming | public | null |
False | PorkChop007 | t2_4c7ynac | > high latency when you interact with the UI
This. Pressing a key and seeing the effect in the UI almost half a second later should be a criminal offence. | null | 0 | 1545945782 | False | 0 | ecomr6q | t3_a9tm4z | null | null | t1_ecn0btc | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecomr6q/ | 1548151348 | 3 | t5_2fwo | r/programming | public | null |
False | HaveMungWillBean | t2_14yf5mpq | There are two types of lazy people in the world. One is DRY and the other WET. | null | 0 | 1544649345 | False | 0 | ebnn27j | t3_9v11i6 | null | null | t3_9v11i6 | /r/programming/comments/9v11i6/programming_quotes/ebnn27j/ | 1547528275 | 1 | t5_2fwo | r/programming | public | null |
False | jyper | t2_44f90 | By less functions do you mean str.format? Cause I was compraring it to
fstrings not format
f"{sixteen} {sixteen:#x}" | null | 0 | 1545945823 | False | 0 | ecomtax | t3_a9o4zd | null | null | t1_ecojsxx | /r/programming/comments/a9o4zd/comprehensive_python_cheatsheet/ecomtax/ | 1548151375 | 1 | t5_2fwo | r/programming | public | null |
False | emn13 | t2_1p64 | Perhaps in some theoretical fashion, that's relevant. But similarly you might say that no test can be reproducible and no test can predict *any* outcome in production, because the state the test is run in might matter and will differ from that in real usage.
Strictly speaking: sure, if you squint just right. But that doesn't mean it's can't be *almost* reproducible and *almost* predict an outcome in production, nor that the corner cases we're talking about here really impact the value of testing or purity. | null | 0 | 1544649422 | False | 0 | ebnn5yy | t3_a5iior | null | null | t1_ebnj8n8 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnn5yy/ | 1547528321 | 2 | t5_2fwo | r/programming | public | null |
False | woahdudee2a | t2_o6qm5t0 | I like the title, concise and to the point
still a downvote though | null | 0 | 1545946430 | False | 0 | econp4r | t3_aa2peh | null | null | t3_aa2peh | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/econp4r/ | 1548151768 | -5 | t5_2fwo | r/programming | public | null |
False | download13 | t2_54zmm | Do people dislike Fuchsia? I haven't dug real deep into it, but it looks like a slightly safer take on an OS kernel. It's got a really granular permission system for just about every resource it manages, which is cool cause you can run untrusted programs while having clear guarantees about what they can and can't do to your machine. I kinda wish they hadn't tried to keep as many linux analogies and just started from total scratch, but it's still cool to see a new kernel with features like these. | null | 0 | 1544649427 | False | 0 | ebnn673 | t3_a5ikq1 | null | null | t3_a5ikq1 | /r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebnn673/ | 1547528324 | 13 | t5_2fwo | r/programming | public | null |
False | humoroushaxor | t2_extbe | Interesting. I've worked for one of the top aerospace and financial companies and both were going the way of "internal open source" with code repositories. You had to be an engineer is that business are though. | null | 0 | 1545946597 | False | 0 | econxx9 | t3_a9yxp6 | null | null | t1_ecodffp | /r/programming/comments/a9yxp6/gitbatch_manage_all_of_your_git_repositories_in/econxx9/ | 1548151906 | 3 | t5_2fwo | r/programming | public | null |
False | gredr | t2_qb5vu | Or, because excellent Go programmers tend to be unemployed, while excellent Java programmers tend to not be looking for a job? | null | 0 | 1544649510 | False | 0 | ebnnam1 | t3_a5i57x | null | null | t1_ebmvs73 | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnnam1/ | 1547528406 | 25 | t5_2fwo | r/programming | public | null |
False | rogerwcpt | t2_f6v5w | And you need a hug you miserable human being. | null | 0 | 1545946774 | False | 0 | ecoo7a5 | t3_a9i9ij | null | null | t1_ecnwsmk | /r/programming/comments/a9i9ij/microsoft_had_another_year_of_big_opensource/ecoo7a5/ | 1548152021 | 5 | t5_2fwo | r/programming | public | null |
False | jhillatwork | t2_sffiwmn | If one has to "bastardize the interfaces" to support a test, then one hasn't thought of designing for a test.
I think for me, "Design for test" is not an action or a singular end onto itself, but a metric of quality within the design. A design with exceptionally low coupling and reasonable abstraction already satisfies the ability that it can be tested.
Perhaps the true anti-pattern is believing that some design (or worse refactor) that satisfies some specific test framework is "good enough". And yes, I've seen my fair share of that too, and usually responded to it with, "Ok, we change the test framework. Does it still blend? Oh no? Then you didn't actually design for test, you designed for *these* tests, not the general spirit." | null | 0 | 1544649618 | False | 0 | ebnnfwt | t3_a56m8z | null | null | t1_eblr5h4 | /r/programming/comments/a56m8z/unit_testing_antipatterns_full_list/ebnnfwt/ | 1547528471 | 1 | t5_2fwo | r/programming | public | null |
False | ptrwis | t2_l7kzs | It has fancy features I don't need, but in the code below Java will infer the type of lambda argument in last call, Dart will, TypeScript can't:
abstract class XResponse { }
abstract class XRequest<T extends XResponse> { }
class RoomList extends XResponse {
roomList: string;
}
class GetRoomList extends XRequest<RoomList> {
}
function call
<Req extends XRequest<Resp>, Resp extends XResponse>
(request: Req, listener: (r: Resp) => void): void {
// (...)
}
call(
new GetRoomList(),
(rl) => console.log(rl.roomList)
);
| null | 0 | 1545946825 | False | 0 | ecoo9xl | t3_aa13tt | null | null | t1_eco8tay | /r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecoo9xl/ | 1548152053 | 0 | t5_2fwo | r/programming | public | null |
False | doodler | t2_3l94n | If they’re planning to replace the Linux kernel in Android with Fuschia it makes a lot of sense to keep all the Linux analogies. So much of Android depends on how userspace interacts with the kernel. | null | 0 | 1544649643 | False | 0 | ebnnh52 | t3_a5ikq1 | null | null | t1_ebnn673 | /r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebnnh52/ | 1547528486 | 10 | t5_2fwo | r/programming | public | null |
False | agent-plaid | t2_pd0rj | I’m disappointed to hear about the docs team. When I poked Rust again, one of the first things I ran into was that it didn’t allow a naive `u16var = (u8var1 << 8) | u8var2` and it took a while to sort out what to do.
I quickly found `as u16` on the internet, but in a kind of band-aid post that didn’t explain intent, mechanics, or alternatives. Not such a big deal for widening types as in that example, but if I were converting a float to integer, that would have been troublesome.
Edit: to clarify, the book is great and important, but it feels so incomplete in practice. That github repo with a lot of collected resources was invaluable for actually getting anything accomplished that wasn’t the tutorial from the book. | null | 0 | 1545946901 | 1545947557 | 0 | ecoodr8 | t3_a9zyp3 | null | null | t3_a9zyp3 | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecoodr8/ | 1548152101 | 19 | t5_2fwo | r/programming | public | null |
False | emn13 | t2_1p64 | Ooo, we really need to get republicans or democrats to vouch for a some language. That way we can really get that tribal bloodlust going! | null | 0 | 1544649708 | False | 0 | ebnnkgz | t3_a5i57x | null | null | t1_ebn89u7 | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnnkgz/ | 1547528527 | 3 | t5_2fwo | r/programming | public | null |
False | zwhitchcox | t2_h3tbu | Well, I'll take consolation in the first part | null | 0 | 1545946971 | False | 0 | ecoohd7 | t3_aa2peh | null | null | t1_econp4r | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecoohd7/ | 1548152146 | 3 | t5_2fwo | r/programming | public | null |
False | nfrankel | t2_ayl6m | In IT, a lot of people are afraid to ask anything for fear of looking stupid. | null | 0 | 1544649714 | False | 0 | ebnnkr8 | t3_a5kkr5 | null | null | t1_ebnk8so | /r/programming/comments/a5kkr5/everything_you_should_know_about_certificates_and/ebnnkr8/ | 1547528531 | 49 | t5_2fwo | r/programming | public | null |
False | Asmilex | t2_exd3y | We've been using it in our repository. Most of the time, we want to make specific mathematic annotations. Creating a latex project for something as simple as 2 lines is not worth it. Markdown is perfect in this context, but it's quite limited on this aspect.
So
Why not both
| null | 0 | 1545947253 | False | 0 | ecoowb4 | t3_a9tm4z | null | null | t1_ecmnor9 | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecoowb4/ | 1548152330 | 1 | t5_2fwo | r/programming | public | null |
False | yeahbutbut | t2_cccqr | 91 if n < 101
n - 10 if n >= 101
&#x200B;
Seems pretty predictable (if you've read McCarthy and Knuth's work ;-) ) | null | 0 | 1544649764 | False | 0 | ebnnn86 | t3_a5iior | null | null | t1_ebnmltd | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnnn86/ | 1547528561 | 7 | t5_2fwo | r/programming | public | null |
False | Patex_ | t2_132vrk | I'll take a look at ti. thank you for pointing it out. | null | 0 | 1545947341 | False | 0 | ecop0vv | t3_a9z26i | null | null | t1_eco30d2 | /r/programming/comments/a9z26i/comparison_of_the_top_speech_processing_apis/ecop0vv/ | 1548152416 | 1 | t5_2fwo | r/programming | public | null |
False | footpole | t2_3onkp | Rally nailed it there mate. | null | 0 | 1544649838 | False | 0 | ebnnqzp | t3_a5hkyo | null | null | t1_ebnc81l | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnnqzp/ | 1547528609 | 26 | t5_2fwo | r/programming | public | null |
False | ionforge | t2_hecyx | Changing all dll references to http calls is not isolations, its making worse the problem you already had | null | 0 | 1545947398 | False | 0 | ecop3s4 | t3_a9n1x4 | null | null | t1_eclxuz1 | /r/programming/comments/a9n1x4/microservices_at_spotify/ecop3s4/ | 1548152453 | 2 | t5_2fwo | r/programming | public | null |
False | stack-compression | t2_1w1eet1b | Ah shit so that's what I'm doing wrong in my career | null | 0 | 1544649928 | False | 0 | ebnnvo8 | t3_a5kkr5 | null | null | t1_ebnnkr8 | /r/programming/comments/a5kkr5/everything_you_should_know_about_certificates_and/ebnnvo8/ | 1547528666 | 16 | t5_2fwo | r/programming | public | null |
False | VernorVinge93 | t2_2amyhthy | Those are good things but typescript is pretty unsound... | null | 0 | 1545947848 | False | 0 | ecoprh9 | t3_aa13tt | null | null | t1_ecofq3v | /r/programming/comments/aa13tt/dart_vs_swift_a_comparison/ecoprh9/ | 1548152745 | 3 | t5_2fwo | r/programming | public | null |
False | Dean_Roddey | t2_r72lw | Basically, after some period of time, no matter how proven effective a particular paradigm is, people will start to try to prove it sucks and that something else is better. It's just fashion. Obviously if those old people came up with it, it can't be THAT great. I mean... they like \*grunge\* music.
And, after a particular paradigm has been dominant for a long time, people just conveniently forget the many reasons it became dominant. The code is always cleaner on the other side. They weren't there to see why it replaced what came before. So, basically, if they to replace it with a world of composition, and then 20 years from now, someone is going to post an article titled "Why can composition be dangerous?", espousing the benefits of inheritance.
Of course it's not like if you use inheritance that you can't use composition and vice versa. In any reasonable modern applications they are both going to be used in pretty equal measure. Well, composition is probably used considerably more because it also deals with all the scenarios where one object contains other objects for purely internal purposes. But they'll both be used in some measure, as they should be.
And I think that, at least for C++ people, we forget that there are such things as protected and private inheritance as well, which add a whole other dimension to inheritance, allowing it to be accessed only by certain code where that is appropriate. To the outside world, protected or private inheritance is effectively composition, but you can still get the benefits of 'is a' relationships internally if that is useful.
I don't think many people make use of that. I don't myself, and hardly ever think about it, despite the fact that I'm guessing it would have some architecturally useful applications.
&#x200B; | null | 0 | 1544650139 | False | 0 | ebno6bb | t3_a5gd84 | null | null | t3_a5gd84 | /r/programming/comments/a5gd84/why_can_inheritance_be_dangerous_check_the/ebno6bb/ | 1547528797 | 2 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1545947962 | False | 0 | ecopxdn | t3_aa0xom | null | null | t3_aa0xom | /r/programming/comments/aa0xom/arbitrary_precision_signed_integer_arithmetic/ecopxdn/ | 1548152818 | 1 | t5_2fwo | r/programming | public | null |
False | uhhhclem | t2_n3j0 | Sure. But my point was that if you're not getting hired, switching to emacs is probably not going to change that. | null | 0 | 1544650413 | False | 0 | ebnojzv | t3_a5i57x | null | null | t1_ebnfdsq | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnojzv/ | 1547528968 | 9 | t5_2fwo | r/programming | public | null |
False | marcusklaas | t2_a1hxt | Number of cores though. Not the amount of. | null | 0 | 1545947966 | False | 0 | ecopxly | t3_a9qz9q | null | null | t1_ecojt81 | /r/programming/comments/a9qz9q/amoeba_finds_approximate_solutions_to_nphard/ecopxly/ | 1548152821 | 1 | t5_2fwo | r/programming | public | null |
False | Arxae | t2_6elgl | To be fair, i still don't get it. | null | 0 | 1544650478 | False | 0 | ebnon7b | t3_a5hkyo | null | null | t1_ebnmw0j | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnon7b/ | 1547529034 | 4 | t5_2fwo | r/programming | public | null |
False | marcusklaas | t2_a1hxt | Nutsack 🤣 | null | 0 | 1545948013 | False | 0 | ecoq01w | t3_a9qz9q | null | null | t1_ecnp4qe | /r/programming/comments/a9qz9q/amoeba_finds_approximate_solutions_to_nphard/ecoq01w/ | 1548152850 | 1 | t5_2fwo | r/programming | public | null |
False | tehftw | t2_5e4lo | All in all, this seems to be masturbation with data, and grasping at some form of correlation.
Though most importantly, it strokes my `vim`-loving ego . | null | 0 | 1544650510 | False | 0 | ebnoosy | t3_a5i57x | null | null | t3_a5i57x | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnoosy/ | 1547529054 | 1 | t5_2fwo | r/programming | public | null |
False | Anon49 | t2_46m60 | didn't know this one. | null | 0 | 1545948083 | False | 0 | ecoq3kr | t3_a9o4zd | null | null | t1_ecomtax | /r/programming/comments/a9o4zd/comprehensive_python_cheatsheet/ecoq3kr/ | 1548152894 | 1 | t5_2fwo | r/programming | public | null |
False | sisyphus | t2_31lml | The point is that your choice of tech should not be based on what can run 400 million users because you will never in your wildest dreams have that problem. | null | 0 | 1544650688 | False | 0 | ebnoxo2 | t3_a57f0y | null | null | t1_ebnd7n9 | /r/programming/comments/a57f0y/twenty_years_of_open_source_erlang_a/ebnoxo2/ | 1547529164 | 1 | t5_2fwo | r/programming | public | null |
False | tumtum | t2_2t11y | Haven't used it much yet, but it's on my list...
Still missing must-haves: insert images by copy/paste & iOS app. | null | 0 | 1545948162 | False | 0 | ecoq7kx | t3_a9tm4z | null | null | t1_eco9io1 | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecoq7kx/ | 1548152943 | 1 | t5_2fwo | r/programming | public | null |
False | ajs124 | t2_8rb7x | I saw someone do that recently and was just in awe. The X11 protocol, first released originally in 1987. Having run on all kinds of wonky Unices and unixoid operating systems since then, running on top of Windows 10 in 2018. | null | 0 | 1544650767 | False | 0 | ebnp1g9 | t3_a5hkyo | null | null | t1_ebmyzes | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnp1g9/ | 1547529210 | 2 | t5_2fwo | r/programming | public | null |
False | IshKebab | t2_htaqb | About 3 years ago I benchmarked loads of speech recognition services and Google was a huge step above everyone else. My experience with Google Home suggests they have improved even further since then. It often gets things right that surprise me (in terms of speech recognition; intent recognition is still not perfect).
I seriously doubt their methodology if Google is only "intermediate". | null | 0 | 1545948423 | False | 0 | ecoqks2 | t3_a9z26i | null | null | t3_a9z26i | /r/programming/comments/a9z26i/comparison_of_the_top_speech_processing_apis/ecoqks2/ | 1548153136 | 6 | t5_2fwo | r/programming | public | null |
False | onionhammer | t2_4fak4 | What I love is when the company is 100% microsoft/office/etc, but their software development is 100% anti-microsoft - like they wont even consider using any of their tooling even if it’s the best and most obvious fit | null | 0 | 1544650796 | 1544673697 | 0 | ebnp2x4 | t3_a5i57x | null | null | t1_ebn2vq6 | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnp2x4/ | 1547529228 | 14 | t5_2fwo | r/programming | public | null |
False | TheOsuConspiracy | t2_j9ui7 | I'll probably get shit on for this, but better programming language design would resolve most of the incidental complexity in that code. | null | 0 | 1545948482 | False | 0 | ecoqns2 | t3_aa3qdm | null | null | t3_aa3qdm | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecoqns2/ | 1548153173 | 94 | t5_2fwo | r/programming | public | null |
False | ubernostrum | t2_1s6u | I'll admit that I have done something similar to this.
I maintain [a Python library](https://github.com/ubernostrum/webcolors) that implements the HTML5 color-parsing algorithms (like the one that turns the string `"chucknorris"` into a color value) and conversions among the various HTML/CSS color formats.
While it doesn't run as part of the normal everyday test suite, it *does* contain a special test case that I run prior to releasing a new version. Which does the following:
* For the hexadecimal and integer `rgb()` triplet formats, generates all 16,777,216 legal values, in order, and verifies they correctly convert to each other (i.e., `rgb(0,0,0)` converts to `#000000`, `rgb(0,0,1)` to `#000001` and so on).
* For the percentage `rgb()` triplet format, which can't be usefully exhaustively tested (the CSS spec doesn't define in terms of floats, so the set of legal values is actually uncountably infinite), generates all 16,777,216 integer triplets, and tests that converting them to percentage triplet and back returns the original value.
24-bit integers are obviously a much smaller space to work with than 32-bit, but it's nice to have the confidence that these functions work on all (for hex/integer) or most of the probable (for percentage) inputs. It's also a bit of a special case since it involves implementing a specific set of web standards, and ensuring compliance is important (there's another special test case that pulls the spec documents off the W3C site and parses out the color name maps to verify the ones in the library are correct, for example).
In general, though, as I've said every time this topic comes up, I use coverage as a canary: I track it, and generally the way I write tests leads to 100% coverage anyway, but what I care about is catching a commit that causes a previously-exercised path *not* to be exercised anymore, since that usually indicates a problem (like a failed refactoring). | null | 0 | 1544650825 | False | 0 | ebnp4d3 | t3_a5iior | null | null | t1_ebn8vlz | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnp4d3/ | 1547529245 | 3 | t5_2fwo | r/programming | public | null |
False | Crandom | t2_4mzys | Thought these comments were from the actual space shuttle - it's actually just kubernetes.
Oh, also, this is just /r/badcode.
| null | 0 | 1545948484 | False | 0 | ecoqnv8 | t3_aa3qdm | null | null | t3_aa3qdm | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecoqnv8/ | 1548153174 | 87 | t5_2fwo | r/programming | public | null |
False | VictorNicollet | t2_4tz09 | This is completely irrelevant.
Even the most hardcore pure functional program has a notion of "then". Open a file, *then* parse its contents. Send a million rays into a scene, *then* combine the pixels into an image. Perform type inference, *then* generate assembly code.
If the code `file.open() ; file.parse()` contains a bug because `open` and `parse` disagree about their common interface, the problem is **not** that it should have been written `parse(open(file))` instead ! The pure version would have had the same bug : instead of "open() may leave the file in a state incompatible with parse()" you would have had "open() may return a file incompatible with parse()".
Purity and immutability are not as powerful as advertised, they are just strongly correlated with two other language features (the ability to encode valid states using a type system, and having the compiler detect when some states are not properly handled) that are the real success stories. | null | 0 | 1544650829 | False | 0 | ebnp4le | t3_a5iior | null | null | t1_ebnmpjj | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnp4le/ | 1547529248 | 1 | t5_2fwo | r/programming | public | null |
False | xeveri | t2_2922mq6 | Starting out with Go, I was impressed by the clean syntax. But once the project gets bigger, the code gets bloated real quick real fast. Mostly because of lack of generics and the way errors are handled. Package management is also weaker. Adding github urls to imports in the code just feels and looks hacky.
I think typescript hits a sweet spot for me. Both on server and client side. | null | 0 | 1545948525 | False | 0 | ecoqpzl | t3_aa2peh | null | null | t3_aa2peh | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecoqpzl/ | 1548153202 | 10 | t5_2fwo | r/programming | public | null |
False | sorlafloat | t2_2q1c255k | Imagine if electron wasn't dogshit so the "webtech on the desktop OmegaLul" crowd looked like nuts, instead of understandably concerned that it's spreading. So, flutter works, and people take time to change. And it's by Google. | null | 0 | 1544650848 | 1544651133 | 0 | ebnp5jz | t3_a5ikq1 | null | null | t1_ebnj8l7 | /r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebnp5jz/ | 1547529261 | 1 | t5_2fwo | r/programming | public | null |
False | marcusklaas | t2_a1hxt | Great examples!! | null | 0 | 1545948549 | False | 0 | ecoqr76 | t3_a9swiz | null | null | t1_ecnkflr | /r/programming/comments/a9swiz/rust_2019_and_beyond_limits_to_some_growth/ecoqr76/ | 1548153216 | 4 | t5_2fwo | r/programming | public | null |
False | VictorNicollet | t2_4tz09 | Yeah, but... but... | null | 0 | 1544650878 | False | 0 | ebnp6yz | t3_a5iior | null | null | t1_ebnnn86 | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnp6yz/ | 1547529278 | 2 | t5_2fwo | r/programming | public | null |
False | thedragonturtle | t2_monx0 | With devices listening and uploading data to the cloud, you'd think they'd at least mention snips.ai for it's offline data processing.
If I can build an assistant app that doesn't need an internet connection, and doesn't thus invade my user's privacy, I'd rather go that route. | null | 0 | 1545948586 | False | 0 | ecoqt4b | t3_a9z26i | null | null | t3_a9z26i | /r/programming/comments/a9z26i/comparison_of_the_top_speech_processing_apis/ecoqt4b/ | 1548153240 | 1 | t5_2fwo | r/programming | public | null |
False | jephthai | t2_591d | Yes, but it was a smallish offer in a place I didn't want to live, so I didn't end up going there. | null | 0 | 1544651095 | False | 0 | ebnphlt | t3_a5i57x | null | null | t1_ebnlsrv | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnphlt/ | 1547529410 | 3 | t5_2fwo | r/programming | public | null |
False | Chinchiillaz | t2_kkwmw | "I am the smartest programmer that ever lived"
"I like elephants" | null | 0 | 1545948686 | False | 0 | ecoqy5b | t3_a9wkc6 | null | null | t3_a9wkc6 | /r/programming/comments/a9wkc6/documentary_about_terry_davis_and_templeos/ecoqy5b/ | 1548153303 | 4 | t5_2fwo | r/programming | public | null |
False | troyunrau | t2_605n1 | I've done it. It looks awful! X has seen so much work on Linux over the years - font rendering, in particular, that is missing when using these windows x servers. Yuck. | null | 0 | 1544651118 | False | 0 | ebnpio9 | t3_a5hkyo | null | null | t1_ebmz90m | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnpio9/ | 1547529423 | 4 | t5_2fwo | r/programming | public | null |
False | zwhitchcox | t2_h3tbu | Thank you for the well thought out, reasonable response.
And sorry for the shower of downvotes you're about to receive for daring to question Go. | null | 1 | 1545948804 | False | 0 | ecor45z | t3_aa2peh | null | null | t1_ecoqpzl | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecor45z/ | 1548153377 | 1 | t5_2fwo | r/programming | public | null |
False | rysto32 | t2_11frr6 | > What was the problem with FreeBSD 5.0? I'm a Linux user, so I don't know.
FreeBSD 5 was the start of a major architectural change in FreeBSD to support multi-processor systems\*. A huge part of this effort meant switching the kernel from being single-threaded to supporting multiple threads running in it simultaneously. There was a ton of code that implicitly depended on the fact that only one thread could be running it at a time, and finding and fixing all of those cases was an incredibly painful process. I work with FreeBSD in my day job, and to this day I occasionally run into bugs whose root cause is that the code was written 30+ years ago and just doesn't quite handle multithreaded access correctly.
\* Technically, FreeBSD 4 had very limited support for multi-processor systems, but it was a short-term hack and an architectural dead-end. | null | 0 | 1544651133 | False | 0 | ebnpjg1 | t3_a5gxm6 | null | null | t1_ebn33ji | /r/programming/comments/a5gxm6/freebsd_12_released/ebnpjg1/ | 1547529433 | 13 | t5_2fwo | r/programming | public | null |
False | igouy | t2_6sj2 | Just not going to waste time on a click baity vid. | null | 0 | 1545948819 | False | 0 | ecor4yk | t3_aa2peh | null | null | t1_ecolzvg | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecor4yk/ | 1548153387 | 5 | t5_2fwo | r/programming | public | null |
False | 13steinj | t2_i487l | Damn. An X server, what next, a proper init system? That and io improvements and arguably little need to boot up my VM anymore. | null | 0 | 1544651137 | False | 0 | ebnpjn7 | t3_a5hkyo | null | null | t1_ebmyzes | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnpjn7/ | 1547529435 | 2 | t5_2fwo | r/programming | public | null |
False | zwhitchcox | t2_h3tbu | It's click baity because you disagree? | null | 0 | 1545948881 | False | 0 | ecor84n | t3_aa2peh | null | null | t1_ecor4yk | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecor84n/ | 1548153426 | -3 | t5_2fwo | r/programming | public | null |
False | duheee | t2_1315hz | they said it means "stable". that's all there is. you can rely on it for a while, that the APIs won't change dramatically. They could break their promise, sure, but that's a different story. | null | 0 | 1544651253 | False | 0 | ebnppcs | t3_a5ikq1 | null | null | t1_ebniw9g | /r/programming/comments/a5ikq1/fuchsia_sdk_is_now_included_into_android_open/ebnppcs/ | 1547529505 | 4 | t5_2fwo | r/programming | public | null |
False | F-0X | t2_lk6ut | > Language design is first and foremost a science of leaving things out, not adding as much as possible.
My favourite language (which I really think deserves a lot more use) is Scheme. Scheme is a language built on the idea that only a few basic features, but with no limitations on how they may be composed, yields a simple yet powerful and expressive language. Which it does. | null | 0 | 1545948889 | False | 0 | ecor8jh | t3_a9swiz | null | null | t1_ecnfixh | /r/programming/comments/a9swiz/rust_2019_and_beyond_limits_to_some_growth/ecor8jh/ | 1548153431 | 2 | t5_2fwo | r/programming | public | null |
False | TheAspiringHacker | t2_s5dmp3x | The link that I gave you basically states that mathematically, types are the same thing as logical propositions and expressions with those types are the same thing as proofs of those propositions. If I have an expression of a certain type, I've proved the type. The tuple type, or product type, corresponds with logical conjuction ("and") because you need terms for each part to construct the tuple. The tagged union, or sum type, corresponds with logical disjunction ("or") because you need one of the parts to construct a term of the sum type. The function type corresponds with logical implication ("if") because given a function and an input, you can get the output. The dependent product type corresponds with universal quantification ("for all") and the dependent sum type corresponds with existential quantification ("there exists").* As the compiler typechecks the program, it checks the proofs (which are the program).
I've been experimenting with small programs in dependently typed languages, but I'm still inexperienced with it. Therefore, I can't tell you how writing typechecked proofs scales for real-world software. I do know that Xavier Leroy and others wrote a formally verified C compiler called CompCert with the programs-as-proofs idea. I also know that people have criticized writing proofs as impractical. From a theoretical standpoint, I think that the programs-as-proofs idea is extremely beautiful.
I also use OCaml, which is unsound for writing proofs due to the lack of a termination checker, but still has a powerful type system, and I really like it. A saying that I've heard about OCaml is "make illegal states unrepresentable." My experience using it leads me to agree to this claim. However, I still write tests, so perhaps my conclusion is the same as your edit, that I need both types and tests. Unfortunately, tests, unlike proofs, do not show that a program is correct. I hope that in the future, using types to write compiler-checked proofs will become a practical option.
*The dependent product type is a generalization of the function type, or exponential. The dependent sum type is a generalization of the *product type* (tuple type), *not* the sum type (tagged union). See https://cs.stackexchange.com/questions/81112/why-product-type-is-a-dependent-sum for how this works. | null | 0 | 1544651379 | 1544907330 | 0 | ebnpvr6 | t3_a5iior | null | null | t1_ebnms8o | /r/programming/comments/a5iior/tests_wont_make_your_software_correct/ebnpvr6/ | 1547529614 | 3 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | > // ==================================================================// PLEASE DO NOT ATTEMPT TO SIMPLIFY THIS CODE.// KEEP THE SPACE SHUTTLE FLYING.// ==================================================================//// This controller is intentionally written in a very verbose style. You will// notice://// 1. Every 'if' statement has a matching 'else' (exception: simple error// checks for a client API call)// 2. Things that may seem obvious are commented explicitly//// We call this style 'space shuttle style'. Space shuttle style is meant to// ensure that every branch and condition is considered and accounted for -// the same way code is written at NASA for applications like the space// shuttle.//// Originally, the work of this controller was split amongst three// controllers. This controller is the result a large effort to simplify the// PV subsystem. During that effort, it became clear that we needed to ensure// that every single condition was handled and accounted for in the code, even// if it resulted in no-op code branches.//// As a result, the controller code may seem overly verbose, commented, and// 'branchy'. However, a large amount of business knowledge and context is// recorded here in order to ensure that future maintainers can correctly// reason through the complexities of the binding behavior. For that reason,// changes to this file should preserve and add to the space shuttle style.
I generally agree with this. All too often devs open files they haven't touched before and spot "easy" rewrite opportunities, only to very quickly get in over their head. It's happened to me, it happens to everyone. I think it's usually fine to provide a "Just don't touch it" type comment to ward off those attempts.
&#x200B; | null | 0 | 1545948892 | False | 0 | ecor8or | t3_aa3qdm | null | null | t3_aa3qdm | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecor8or/ | 1548153433 | 39 | t5_2fwo | r/programming | public | null |
False | jephthai | t2_591d | It may be that switching to Vim or Emacs may help you grow into the mindset of that successful group. It might take awhile though. | null | 0 | 1544651412 | False | 0 | ebnpxcw | t3_a5i57x | null | null | t1_ebnojzv | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnpxcw/ | 1547529634 | 3 | t5_2fwo | r/programming | public | null |
False | war_is_terrible_mkay | t2_ho9vu | > speared
*spared
I always turn skeptical and cautious when i encounter a trend of hate (like the one electron gets). But now that i have to use several electron based apps for work, when i look at my system monitor i dont think i would manage if my pc had less than 16 GB of ram. That said, id take an electron app over no app any day of the week. Especially when things are open source - those that hate it so much can make their own fork (or pay someone to do it if they lack the time/skills, but have the passion).
Thanks a lot for the app btw. Looks great, and ive been waiting for something like this. Wanted to migrate away from Evernote for ages to something with open formats and open source. I hope i wont procrastinate before i try to use this too many months, so i can actually provide some feedback as well when i do. | null | 0 | 1545948968 | False | 0 | ecorciu | t3_a9tm4z | null | null | t1_ecms5hv | /r/programming/comments/a9tm4z/notable_the_markdownbased_notetaking_app_that/ecorciu/ | 1548153481 | 6 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1544651465 | False | 0 | ebnpzyj | t3_a5i57x | null | null | t1_ebn8cfi | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnpzyj/ | 1547529666 | 1 | t5_2fwo | r/programming | public | null |
False | McNerdius | t2_5e8bl | Pretty sure the downvotes are more about the "you should use Node" part than the "Go sucks" part. I could be wrong. | null | 0 | 1545949068 | False | 0 | ecorhn2 | t3_aa2peh | null | null | t1_ecor45z | /r/programming/comments/aa2peh/why_go_sucks_and_you_should_use_node/ecorhn2/ | 1548153543 | 20 | t5_2fwo | r/programming | public | null |
False | RunasSudo | t2_c1zfg | Thanks! This really blew up, so I think I might write more of my adventures up like this in future. | null | 0 | 1544651564 | False | 0 | ebnq4u6 | t3_a5hkyo | null | null | t1_ebmlugv | /r/programming/comments/a5hkyo/investigating_an_early2010s_gaming_drm_system_or/ebnq4u6/ | 1547529726 | 36 | t5_2fwo | r/programming | public | null |
False | sjalgeo | t2_u18tkx8 | Surely it just needs good, well written tests...? | null | 1 | 1545949093 | False | 0 | ecorivu | t3_aa3qdm | null | null | t3_aa3qdm | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecorivu/ | 1548153559 | 9 | t5_2fwo | r/programming | public | null |
False | sh_pa_ic_rk_ie_tr | t2_55apx4v | 😂😂😂 | null | 0 | 1544651577 | False | 0 | ebnq5h0 | t3_a5gx0c | null | null | t1_ebnjge2 | /r/programming/comments/a5gx0c/how_reddit_ranking_algorithms_work_hacking_and/ebnq5h0/ | 1547529734 | 0 | t5_2fwo | r/programming | public | null |
False | orthoxerox | t2_cyj90 | I agree. I was stumped when adding together an unsigned and a signed integer was declared impossible by the compiler. The crab book kinda skipped that when explaining how arithmetic works in Rust. I would've expected `-1 as u32` to complain, but `my_u32_variable.wrapping_add(-1)` to succeed. | null | 0 | 1545949144 | False | 0 | ecorli8 | t3_a9zyp3 | null | null | t1_ecoodr8 | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecorli8/ | 1548153620 | 8 | t5_2fwo | r/programming | public | null |
False | sorlafloat | t2_2q1c255k | Mount the volume over ssh and use your regular IDE on the remote.
Viewing on github is probably a legit use case, and that I will concede - but how often do you do that? I would usually clone, so that I can use my tools like "click to find usages" and "click to jump to definition" etc.
| null | 0 | 1544651581 | False | 0 | ebnq5p2 | t3_a5969k | null | null | t1_ebnbojq | /r/programming/comments/a5969k/java_12_likely_will_not_have_raw_string_literals/ebnq5p2/ | 1547529736 | 1 | t5_2fwo | r/programming | public | null |
False | kbilsted | t2_33jj6 | GitExtensions seems to be much better and totally free.. and also on GH ;) [https://github.com/gitextensions/gitextensions](https://github.com/gitextensions/gitextensions) | null | 0 | 1545949260 | False | 0 | ecorr9n | t3_aa1an1 | null | null | t3_aa1an1 | /r/programming/comments/aa1an1/gitahead_opensourced_now_on_github/ecorr9n/ | 1548153691 | 4 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1544651582 | False | 0 | ebnq5rb | t3_a5i57x | null | null | t1_ebn8cfi | /r/programming/comments/a5i57x/the_rise_of_microsoft_visual_studio_code/ebnq5rb/ | 1547529737 | 5 | t5_2fwo | r/programming | public | null |
False | voidtf | t2_16mlcp | The colour code is confusing af... I guess good is better ... | null | 0 | 1545949514 | False | 0 | ecos4d2 | t3_a9z26i | null | null | t1_ecnrzoc | /r/programming/comments/a9z26i/comparison_of_the_top_speech_processing_apis/ecos4d2/ | 1548153852 | 0 | t5_2fwo | r/programming | public | null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.