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 #281150 | Initial revision | — | almost 4 years ago |
Answer | — |
A: How to read lines into an array in Bash Your code is correct. You have declared your variable as an array, and you are successfully appending to it. To display all of the elements of your variable, try `echo "${myarray[@]}"`. (Another answer suggests `declare -p` for this, but `declare -p` will possibly give you more information than yo... (more) |
— | almost 4 years ago |
Comment | Post #280795 |
I agree; you should probably give https://en.wikipedia.org/wiki/Representational_state_transfer a read and then ask some more specific questions about REST if you have them. (more) |
— | almost 4 years ago |
Edit | Post #280274 |
Post edited: |
— | almost 4 years ago |
Edit | Post #280274 | Initial revision | — | almost 4 years ago |
Answer | — |
A: How can software track [1] how many subscribers to subreddits, [2] if subreddit is private, [3] if submissions are restricted? It's entirely possible that there's some no-code product being developed out there that supports connecting to Reddit's API, so that you could collect the information you want without writing an actual program. But you're on the Software Development Codidact, so I'm going to assume that you're her... (more) |
— | almost 4 years ago |
Edit | Post #280203 |
Post edited: |
— | almost 4 years ago |
Edit | Post #280203 | Initial revision | — | almost 4 years ago |
Answer | — |
A: How to override default string formatter? Python doesn't support extending the mechanics of how f-strings are parsed; the reference doesn't give the specific mechanism, but it doesn't say that there's any connection between the parsing of f-strings and other formatting tools like `string.Formatter`, other than a superficial use of the same f... (more) |
— | almost 4 years ago |
Comment | Post #280169 |
Excel is very probably a poor choice for this task. Can you add some more detail about why you want this, so that we could recommend a better approach? Is this for personal use, are you maintaining one of these lists, are you trying to publish a tool for other list maintainers to use, etc.? (more) |
— | almost 4 years ago |
Edit | Post #279776 |
Post edited: |
— | about 4 years ago |
Edit | Post #279776 |
Post edited: |
— | about 4 years ago |
Edit | Post #279776 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279676 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279672 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279438 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Comment | Post #279428 |
So should Steve be linked to USA in the graph then? (more) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #278740 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #278708 | Initial revision | — | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #278666 |
Post edited: |
— | about 4 years ago |
Edit | Post #278667 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #278666 | Initial revision | — | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #278624 | Initial revision | — | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #278557 | Initial revision | — | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #278450 |
Post edited: |
— | about 4 years ago |
Edit | Post #278450 | Initial revision | — | about 4 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) |
— | about 4 years ago |