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 mousetail‭

Type On... Excerpt Status Date
Edit Post #289184 Initial revision 10 months ago
Question How do I serialize a const generic length array with Serde?
I have the following code: ```rs use serde::{Deserialize, Serialize}; #[derive(Sereialize, Deserialize)] struct Container { contents: [String; SIZE] } ``` But I'm getting this error: ``` error[E0277]: the trait bound `[String; SIZE]: Deserialize` is not satisfied --> src\lib....
(more)
10 months ago
Comment Post #288488 The name of a package in PYPI is not always the same as the name you import, so this won't always work even if the package is on pypi. This would also make you vulnerable to malicious actors squatting on these invalid names.
(more)
11 months ago
Comment Post #282582 (2 years later) Thanks! I use `(var name of child.attributes)` because it's the name of the attribute. Maybe key would be a better name.
(more)
11 months ago
Edit Post #282333 Initial revision almost 3 years ago
Question Is this HTML sanitizer safe?
I wrote this HTML sanitizer for use in web scraping. The idea is to safely copy content from a site but apply my own style-sheet and remove any unsafe elements. This whitelist approach seems very different from other sanitizers that I have seen. Is there any disadvantage of doing it this way that I s...
(more)
almost 3 years ago