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

Type On... Excerpt Status Date
Edit Post #278357 Initial revision over 3 years ago
Question Are generic enums completely abstract?
When using `Result` or `Option` to get a value, the value is wrapped in a `Ok` or `Some`. For example, with pattern matching to get a `Result`: let var: Json = match serdejson::fromstr(&mystring) { Ok(a) => a, Err(e) => return e, }; Will there be any representation of...
(more)
over 3 years ago
Comment Post #278219 I'm not one of the down/close voters - but to me the questions seems like it doesn't have any problem to solve and wants to collate anecdotal answers, which would be better suited for a forum discussion than a Q&A site. That being said, I did learn something from your answer.
(more)
over 3 years ago
Edit Post #278106 Initial revision over 3 years ago
Question Should a salt be stored in the same database as the hash?
To protect against dictionary and rainbow table attacks it is well known that passwords should be salted before hashing. The salt (unique to each password) gets stored with the hash, often in the same string separated by a semi-colon. However if the salts and hashes are stored together and the dat...
(more)
over 3 years ago
Comment Post #278049 The client should already be sanitising the HTML, in which case it already has the overhead of a parser.
(more)
over 3 years ago
Comment Post #278049 Thanks, this is very insightful as to why regex may not be a good solution.
(more)
over 3 years ago
Comment Post #277896 I am familiar with TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ :) I'm not actually parsing HTML, just checking the output of a very predictable sanitiser.
(more)
over 3 years ago
Edit Post #277896 Initial revision over 3 years ago
Question Can regex be used to check if input conforms to a very strict subset of HTML?
Tldr; I don't need to parse HTML, but I need to check if user submitted input conforms to a very strict subset of HTML. Can regex be a suitable tool for this? Details I have a frontend sanitiser that accepts user input from keystrokes and clipboard (as a wysiwyg editor) and outputs HTML with th...
(more)
over 3 years ago
Edit Post #277409 Post edited:
over 3 years ago
Edit Post #277409 Post edited:
over 3 years ago
Edit Post #277409 Post edited:
over 3 years ago
Edit Post #277409 Post edited:
over 3 years ago
Edit Post #277409 Initial revision over 3 years ago
Answer A: Does using an Integer have any speed/performance benefits over a string in JSON
JSON is a standard. Performance is implementation specific and dependent on what is being done with the data. The answer really depends on what your environment is. Some languages may have slight performance benefits from using integers when allocating memory during JSON serialisation/deserialisat...
(more)
over 3 years ago