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 cafce25
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #288920 |
If the lacking type rigidity is your main grip you might be interested in [strict tables](https://www.sqlite.org/stricttables.html) supported since sqlite 3.37.0 which enforce their column's type on any insert. (more) |
— | over 1 year ago |
Comment | Post #288987 |
If your explanation for the case with 2 arguments were right there wouldn't be a problem because `l` *is* a list of integers so a "function that takes a list of Num and returns a list of Num" could be applied to it. But haskell actually reads it as `(map (subtract 1)) . (take n l)` and tries to match... (more) |
— | over 1 year ago |
Edit | Post #288510 | Initial revision | — | over 1 year ago |
Answer | — |
A: Automatically install all packages needed The best approach is probably to just check the script beforehand, something like the following ```bash grep import script.py ``` should list all imports and you can then evaluate and install them. If you really want to automate things you can write a short shell script to loop & install modul... (more) |
— | over 1 year ago |
Edit | Post #288282 | Initial revision | — | over 1 year ago |
Answer | — |
A: How can we grow this community? I realize this might not be feasible, because course all of that hinges on the possibility to get some acceptable data on a users behavior on other sites, but for me the biggest hurdle is that to contribute here I have to start over building trust and gaining abilities. That took some serious time ov... (more) |
— | over 1 year ago |
Comment | Post #287586 |
You can't split a module period. You could however define two modules
```rust
#[cfg(test)] mod tests_a {
use super::*;
#[test] fn test_function_1() {}
}
#[cfg(test)] mod tests_b {
use super::*;
#[test] fn test_function_2() {}
}
``` (more) |
— | over 1 year ago |
Edit | Post #288279 | Initial revision | — | over 1 year ago |
Answer | — |
A: What is the purpose of grouping the tests in a `tests` module and is it possible to split them? The reason to put tests in a separate module is so they are grouped. Another advantage is that you can put helper functions that are only needed for tests, but are not themselves tests in the module as well: ```rust #[cfg(test)] mod tests { fn setup() -> Vec { vec![1, 2, 3] }... (more) |
— | over 1 year ago |