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 ShadowsRangerâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #290087 |
Post edited: |
— | 5 months ago |
Suggested Edit | Post #290087 |
Suggested edit: (more) |
helpful | 5 months ago |
Edit | Post #290084 |
Post edited: |
— | 5 months ago |
Edit | Post #290084 | Initial revision | — | 5 months ago |
Question | — |
Command to format code from repo into single markdown file I'm trying to flatten a repository of Python code into a Markdown file where each file is formatted like: `relative/path/to/file1.py` ```python contents of file1.py ``` I'm using this command: ```bash find . -name ".py" -print0 | while read -d $'\0' file; do echo "`" echo "$file" ... (more) |
— | 5 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 |
Post edited: |
— | 7 months ago |
Edit | Post #289584 | Initial revision | — | 7 months ago |
Question | — |
How to implement automatic text-to-link conversion in TypeScript? I'm trying to create an automatic text-to-link conversion feature in a TypeScript application. The desired workflow is: 1. Copy a URL to the clipboard 2. Select some text 3. Paste the URL - this should convert the selected text into a link pointing to the pasted URL For example: ``` Sele... (more) |
— | 7 months ago |
Edit | Post #289150 | Initial revision | — | 8 months ago |
Question | — |
How to resolve the mypy error "Returning Any from function declared to return 'Dict[str, Any]'" in Python? I have a function that loads JSON data and is declared to return a dictionary with string keys and values of any type (Dict[str, Any]). However, mypy is raising an error stating that I am returning Any instead of a dictionary. I found a suggestion to create a new variable and assign the result of jso... (more) |
— | 8 months ago |
Edit | Post #288993 |
Post edited: |
— | 9 months ago |
Edit | Post #288993 |
Post edited: |
— | 9 months ago |
Edit | Post #288993 |
Post edited: |
— | 9 months ago |
Edit | Post #288993 | Initial revision | — | 9 months ago |
Question | — |
Program freezing in `post_comments_to_lemmy` function due to potential infinite loop I'm experiencing an issue where my program appears to freeze when executing the `postcommentstolemmy` function. This function fetches comments from the GitHub API and posts them to a Lemmy instance. However, it seems that there might be a potential infinite loop within the function that causes the pr... (more) |
— | 9 months ago |
Edit | Post #287594 |
Post edited: |
— | over 1 year ago |
Edit | Post #287594 |
Post edited: |
— | over 1 year ago |
Edit | Post #287594 |
Post edited: |
— | over 1 year ago |
Edit | Post #287594 |
Post edited: |
— | over 1 year ago |
Edit | Post #287594 | Initial revision | — | over 1 year ago |
Question | — |
Closed Question Too Generic, Reason Unhelpful The reason for closing the question as too generic was that it contained multiple questions, had many possible indistinguishable correct answers, or required extraordinarily long answers. However, this reason does not provide any guidance on how to improve the question. If questions of this natur... (more) |
— | over 1 year ago |
Comment | Post #287586 |
Can the module be split in the same file like this?
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_function_1() {
// test code for function 1 goes here
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_function_2() {
/... (more) |
— | over 1 year ago |
Edit | Post #287585 |
Post edited: |
— | over 1 year ago |
Edit | Post #287585 |
Post edited: |
— | over 1 year ago |
Edit | Post #287585 |
Post edited: |
— | over 1 year ago |
Edit | Post #287585 | Initial revision | — | over 1 year ago |
Question | — |
What is the purpose of grouping the tests in a `tests` module and is it possible to split them? What is the purpose of grouping the tests in a `tests` module like this ``` #[cfg(test)] mod tests { use super::; #[test] fn testfunction1() { // test code for function 1 goes here } #[test] fn testfunction2() { // test code for function 2 goes... (more) |
— | over 1 year ago |
Edit | Post #287574 | Initial revision | — | over 1 year ago |
Question | — |
Can I repost here the answers to questions I get answered elsewhere? I've thought that since I sometimes ask questions on chats and they are like black holes for information, whenever I get an answer I should post the question and answer here so that other people have more chances of finding an answer to the same question. Would that be fine? And what about simple ... (more) |
— | over 1 year ago |