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 #278072 |
Post edited: |
— | over 3 years ago |
Edit | Post #278072 | Initial revision | — | over 3 years ago |
Answer | — |
A: How can I define a method on [&mut T] where T: MyTrait? This error doesn't do a good job at all of highlighting the important thing! You can't define an inherent `impl` on a type parameter. You have to make it the `impl` of some trait. Here's an example: Try it online! ```rust trait A: Sized { type B; fn f(m: &mut [Self], b: Self::B); } ... (more) |
— | over 3 years ago |
Edit | Post #278071 |
Post edited: |
— | over 3 years ago |
Edit | Post #278071 | Initial revision | — | over 3 years ago |
Answer | — |
A: Is concatenation a logical AND? tl;dr: No. From an engineering perspective, you might be asking if a concatenation operator can be used in place of a logical ‘and’ operator. This is obviously specific to a particular language, but I'm not aware of any language in which this is the case, and I've seen a few languages. For most la... (more) |
— | over 3 years ago |
Edit | Post #278070 | Initial revision | — | over 3 years ago |
Answer | — |
A: Can regex be used to check if input conforms to a very strict subset of HTML? Okay, I'll be the contrarian. For this case, yes, I think a regex-based approach can be used to validate these properties. This approach will not guarantee that the provided input is valid HTML; in particular, it won't ensure that elements are nested correctly. For this reason, I would go with the... (more) |
— | over 3 years ago |
Edit | Post #278069 | Initial revision | — | over 3 years ago |
Answer | — |
A: How long in days is a MONTH in MySQL? There is no fixed number of days in a `MONTH` interval. `DATESUB` is mostly just decrementing the number in the months position of the date provided. So `DATESUB('2020-09-14', INTERVAL 3 MONTH)` is `'2020-06-14'` and `DATESUB('2020-03-14', INTERVAL 3 MONTH)` is `'2019-12-14'`. The documentation descr... (more) |
— | over 3 years ago |
- ← Previous
- 1
- 2
- 3
- 4
- 5
- Next →