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
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)
about 4 years ago
Comment Post #278197 @meriton (On the Software Development site, can we assume that's what SD stands for?)
(more)
about 4 years ago
Edit Post #278211 Initial revision about 4 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)
about 4 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 4 years ago
Edit Post #278072 Post edited:
Sized is only necessary on A, not AsMutExt
over 4 years ago
Edit Post #278080 Post edited over 4 years ago
Suggested Edit Post #278080 Suggested edit:

(more)
helpful over 4 years ago
Edit Post #278076 Initial revision over 4 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 4 years ago
Edit Post #278072 Post edited:
over 4 years ago
Edit Post #278072 Initial revision over 4 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 4 years ago
Edit Post #278071 Post edited:
over 4 years ago
Edit Post #278071 Initial revision over 4 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 4 years ago
Edit Post #278070 Initial revision over 4 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 4 years ago
Edit Post #278069 Initial revision over 4 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 4 years ago