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 r~~‭

Type On... Excerpt Status Date
Edit Post #279776 Post edited:
over 3 years ago
Edit Post #279776 Post edited:
over 3 years ago
Edit Post #279776 Initial revision over 3 years ago
Answer A: How do I find the order that yields the shortest path?
This looks like it's a slightly restricted version of the circular dilation minimization problem in the theory of graph drawing. See, for example, https://doi.org/10.1080/00207168808803629. Specifically, your problem can be expressed as finding a vertex numbering with minimal circular dilation for...
(more)
over 3 years ago
Edit Post #279676 Initial revision over 3 years ago
Question Add syntax highlighting for Cypher
[]()There have now been two questions about Cypher, the Neo4j query language. Highlight.js doesn't support Cypher syntax highlighting out of the box, but they do offer a drop-in highlightjs-cypher module which adds support. Can we use it here?
(more)
over 3 years ago
Edit Post #279672 Initial revision over 3 years ago
Answer A: Union of queries depending on variable in list
Yes, you can achieve this using `UNWIND` and `CALL`, in the following pattern: ```cypher UNWIND ['Canada', 'Europe'] AS region CALL { WITH region query } RETURN ``` You can replace `RETURN ` with any other end-of-query clause, of course, if you want to order or limit your results fo...
(more)
over 3 years ago
Edit Post #279438 Initial revision over 3 years ago
Answer A: Search paths where all nodes are in a relationship with same node
Something like this query should work for you: ``` MATCH (a:Person)-[:ISSON]->()-[:WASBORN]->(b:Country) WITH a, count(DISTINCT b) AS birthplaces WHERE birthplaces = 1 RETURN a ``` Note that this query would return people who have parents with unknown birthplaces, since those paths won't b...
(more)
over 3 years ago
Comment Post #279428 So should Steve be linked to USA in the graph then?
(more)
over 3 years ago
Comment Post #279428 I'm having a hard time understanding exactly what you want from your query. Can you detail it in some sort of pseudocode instead of a sentence? (For example, do any of the nodes in this example graph match your query criteria? If ‘Ann’ is a match, is it because all of her parents which have a birth c...
(more)
over 3 years ago
Edit Post #278740 Initial revision over 3 years ago
Answer A: What would the pros and cons of storing the compiled CSS output of SASS in version control?
One thing to consider if you decide to store the CSS in version control is how to make sure that the CSS is always updated whenever the SASS is updated. (Of course this is true of the more general question, not just about CSS and SASS.) My preferred way to do that is to add a pre-commit hook to the p...
(more)
over 3 years ago
Edit Post #278708 Initial revision over 3 years ago
Question Code Reviews: ‘it's fine’
(Elsewhere...) You look over a post on Code Reviews, and you don't find any problems. Should you post an ‘it's fine’ answer, stay silent, or do something else? Seems to me there's some value in having a signal that n people have reviewed this code and found no issues; better for the asker to s...
(more)
over 3 years ago
Comment Post #278649 @Lundin I think that example would be excluded by the current wording—not enough detail is provided to answer. I worry that the stricter wording excludes reasonable but subjective or exploratory questions, where making ‘best’ concrete is part of the question.
(more)
over 3 years ago
Edit Post #278666 Post edited:
over 3 years ago
Edit Post #278667 Initial revision over 3 years ago
Answer A: Community feedback: What type of questions can I ask here?
> Off-topic > questions about which tools, frameworks, or technologies to use, unless they are directly related to development (e.g. code, schema changes documentation tools) I propose removing this entirely, as I believe it is adequately covered by the existing > Off-topic > questions abou...
(more)
over 3 years ago
Edit Post #278666 Initial revision over 3 years ago
Answer A: Community feedback: What type of questions can I ask here?
I propose adding, at the top of the list: > On-topic > questions about writing software, where software is understood to include any means of specifying to a computer actions to be performed later. (This includes general-purpose programming languages as well as, for example, SQL, shell scripts, ...
(more)
over 3 years ago
Comment Post #278649 Is your intention to exclude a question like, ‘I'm considering writing a small database engine for my project, because I need *[blah blah blah]*. What are some other properties that a database engine should have that I might not have thought of?’ IMO, this can be an acceptable question but I wouldn'...
(more)
over 3 years ago
Comment Post #278628 @Alexei I respectfully disagree that some policy is better than none. If a potential question isn't asked because it's on a to-be-refined off-topic list, we lose the opportunity to use that question to refine the policy. IMO we need positive and negative examples to see whether the policy is good; es...
(more)
over 3 years ago
Comment Post #278633 We have recently been seeing a large volume of spreadsheet-related questions, haven't we? I'm inclined to argue that spreadsheets are a graphical programming environment, and that writing spreadsheets that contain formulae is a form of software engineering, and thus that asking about Excel features i...
(more)
over 3 years ago
Comment Post #278633 1. Would it maybe be a good idea to rephrase this as a statement instead of a question so that upvotes/downvotes can be interpreted as support for/against a position?
(more)
over 3 years ago
Comment Post #278628 Downvoted because in my personal opinion, based on vote ratio and current activity, this hasn't been sufficiently baked to promote to actual policy.
(more)
over 3 years ago
Comment Post #278624 @Alexei I am also fine with that interpretation, although if the intent is just to ban questions about tools uninvolved in software development, maybe that's already covered by ‘The use of computers or software for other purposes than software engineering’.
(more)
over 3 years ago
Comment Post #278624 @Lundin Couldn't we instead say that anything a reasonably proficient internet user could be expected to find quickly with a web search is off-topic/a bad question? I think that covers what *I* find to be annoying about those sorts of questions. I can imagine (not particularly likely, but still) ques...
(more)
over 3 years ago
Edit Post #278624 Initial revision over 3 years ago
Answer A: Site scope - draft proposal
> Recommendation questions about which tools, libraries or technologies to use or where to find them. I don't support this being on the off-topic list. (I found my way here from the comments on this question. I think it's a fine question, both before and after the recent edits. It is clearly ad...
(more)
over 3 years ago
Comment Post #278470 IMHO, do what you describe for other Codidacts and choose (or at least nominate?) temporary mods yourselves, based on early activity and/or evidence that they demonstrate what you see as the spirit of Codidact.
(more)
over 3 years ago
Comment Post #278470 I don't know if I'm quite agreeing with Lundin—I think it's perfectly legitimate to start holding meetings of the Whale Watching Club before there is a written charter detailing what will take place in meetings of the Whale Watching Club—but I do think that answering every meta question with ‘whateve...
(more)
over 3 years ago
Edit Post #278557 Initial revision over 3 years ago
Answer A: Handling JSON files in Rust without manually creating mapping classes
The hard part is figuring out exactly how your code needs to adapt to changes in the JSON structure. In your example, presumably the rest of your program needs to depend on the names and types in ```rust pub struct CharacterInfo { pub id: String, pub name: String, pub revisiondate ...
(more)
over 3 years ago
Comment Post #278551 How much work are you interested in doing when the JSON format changes? Are you trying to avoid recompilation altogether? Or do you just want the recompilation not to involve too much manual effort?
(more)
over 3 years ago
Comment Post #278450 The magic of self-balancing trees isn't that the rebalancing is assumed to be instant, just that it's fast enough that it doesn't change the big-O of the insertion (and this is true for, e.g., red-black trees). Running the self-rebalancing _k_ times for _k_ insertions is still usually cheaper than re...
(more)
over 3 years ago
Edit Post #278450 Post edited:
over 3 years ago
Edit Post #278450 Initial revision over 3 years ago
Question Search tree supporting efficient bulk sequential insert
For holding ordered sets of keys, there are well-known data structures (the red-black tree, for example) that support O(log(n)) lookup and insertion algorithms. Of course this means that there trivially exist algorithms for inserting a sequence of k keys in O(k log(n + k)). But if the keys to insert ...
(more)
over 3 years ago
Comment Post #278211 @meriton Something that's visible from the questions list (like a tag) would be better. Since Codidact doesn't have accepted answers, I find myself looking at questions even if they already have answers, to see if there's something I think I can add to them.
(more)
over 3 years ago
Comment Post #278197 @meriton (On the Software Development site, can we assume that's what SD stands for?)
(more)
over 3 years ago
Edit Post #278211 Initial revision over 3 years ago
Answer A: Do we want a wiki (or similar) alongside Q&A?
I hear the walk-before-we-run argument. I think this would be a good thing to try once we reach running speed, though. Personally, I don't like self-answered questions; I think they're an awkward fit for Q&A sites. I'm primarily here to scratch my itch to help people—when I see a question that's r...
(more)
over 3 years ago
Comment Post #278072 My bad; `AsMutExt` doesn't need to be `Sized`. `A` does because of the use of `Self` in a slice in the parameter of `f`; Rust wants to know how large each element of that slice is in order to support iterating over it, etc.
(more)
over 3 years ago
Edit Post #278072 Post edited:
Sized is only necessary on A, not AsMutExt
over 3 years ago
Edit Post #278080 Post edited over 3 years ago
Suggested Edit Post #278080 Suggested edit:

(more)
helpful over 3 years ago
Edit Post #278076 Initial revision over 3 years ago
Answer A: Is concatenation a logical AND?
I think your edited post merits a new answer! You're right that you can make some sort of connection between addition, concatenation, and logical ‘and’—these are all operators that can be considered as monoids. A monoid is a very general concept: it comprises a particular type of things that can b...
(more)
over 3 years ago