Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for Derek Elkins‭

Type On... Excerpt Status Date
Edit Post #280700 Initial revision almost 4 years ago
Answer A: Is it wrong to demand features in open-source projects?
As you have worded it, for most open source project, particularly small ones, I would say "yes", it is "wrong" to demand features. Or rather, it's extremely rude. Most of the time open source software is free (as in beer) and, again particularly for smaller projects, done entirely in the developer...
(more)
almost 4 years ago
Comment Post #279716 @ArtOfCode Typically, in a scenario like this, you'd want to fallback to a local copy of the JavaScript library (potentially trying some other CDNs beforehand). Also, while we're talking about it, I'd recommend using [Subresource Integrity attributes](https://www.srihash.org/).
(more)
almost 4 years ago
Edit Post #280105 Post edited:
The second scenario I described in the original version shouldn't be able to happen.
almost 4 years ago
Edit Post #280105 Initial revision almost 4 years ago
Answer A: Is it necessary for a build server to remove node_modules before an AOT build?
I can't really think of a compelling reason to remove `nodemodules` as a matter of course. The most compelling one, is what you alluded to. If `nodemodules` is "corrupted" in some manner, removing and refetching it will resolve that "corruption" without needing any manual intervention. Short of a ...
(more)
almost 4 years ago
Edit Post #280060 Initial revision almost 4 years ago
Answer A: When should I use wait() instead of get() when using C++ threads
tl;dr If you don't have a reason otherwise, you should use `get`. More precisely, if you will be done with the future, you should use `get`. You should use `wait` only if there is some separation between when you want to ensure the visible side-effects of the future have completed and when you will b...
(more)
almost 4 years ago
Comment Post #278563 The linked page provides several implementations of `pmat`.
(more)
about 4 years ago
Edit Post #278563 Initial revision about 4 years ago
Answer A: Permutations of an array - APL
I assume the built-in definition you're referring to is pmat. That illustrates how to solve your problem near the bottom. The idea is simply if σ is a permutation of length N and A is an array of length N, then A[σ] is A permuted by σ. This leads to a definition like: ```apl permute←{⍵[pmat⊃⍴⍵]} ...
(more)
about 4 years ago
Edit Post #278363 Initial revision about 4 years ago
Answer A: What do the number entries mean in the sympy poly.diff(...) tuple syntax?
Based on the source code which delegates to this implementation among others, `base.diff((x, n))` means to compute the `n`-th derivative of `base` with respect to `x`. Any arguments to `diff` which aren't tuples get tupled with 1, e.g. `base.diff(x)` is more or less equivalent to `base.diff((x, 1))`....
(more)
about 4 years ago
Edit Post #278362 Initial revision about 4 years ago
Answer A: Are generic enums completely abstract?
Your question is a bit ambiguous. Usually when one talks about something being "completely abstract", one means the details of the representation are opaque. This is the sense of "abstract" in "abstract data type". To this end, Rust enums are not "completely abstract" as various details of their repr...
(more)
about 4 years ago
Comment Post #277488 The K Framework project, a system for specifying operational semantics for programming languages, made a semantics for C that would get stuck when undefined behavior was encountered. The implementation is here: https://github.com/kframework/c-semantics and it's described in the paper [Defining the Un...
(more)
about 4 years ago
Comment Post #278173 What evidence do you have to support that the reason for this (lack of) specification is "to allow compilers to keep their expression parsing algorithm a trade secret"? There's no reason how you parse expressions would affect execution time of the ultimate program, and I doubt how parsing is implemen...
(more)
about 4 years ago
Comment Post #278049 @ShowMeBillyJo In the scenario I believe the OP is in and the scenarios I've described, you are not starting with HTML but rather generating it client-side, e.g. from Markdown. In this case, no one needs to parse HTML. To me, it's better to offload user-specific non-security-sensitive work to the cli...
(more)
about 4 years ago
Comment Post #278032 You should clarify that *for programming languages that will treat strings as boolean values and which interpret the empty string as false and **all** non-empty strings as true*, then it will be the case that the boolean value associated to the concatenation will be the disjunction of the boolean val...
(more)
about 4 years ago
Comment Post #278044 It's probably worth noting that these don't provide equivalent interfaces. In particular, the CancellationToken approach does not provide you with a way of telling when the cancellation is "complete". The second interface would be closer to the former if `StopAsync` returned `void` (at which point `S...
(more)
about 4 years ago
Comment Post #278044 "Best" in what way?
(more)
about 4 years ago
Edit Post #278049 Initial revision about 4 years ago
Answer A: Can regex be used to check if input conforms to a very strict subset of HTML?
I mostly agree with the upshot of hkotsubo's answer, but I want to both tailor the answer more specifically to your question and give some more general advice. First, the restricted subset you describe is still not a regular language. As a rule of thumb, if you have constructs, e.g. ``, which can ...
(more)
about 4 years ago