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 | — | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #278106 | Initial revision | — | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Comment | Post #278049 |
Thanks, this is very insightful as to why regex may not be a good solution. (more) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #277896 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #277409 |
Post edited: |
— | about 4 years ago |
Edit | Post #277409 |
Post edited: |
— | about 4 years ago |
Edit | Post #277409 |
Post edited: |
— | about 4 years ago |
Edit | Post #277409 |
Post edited: |
— | about 4 years ago |
Edit | Post #277409 | Initial revision | — | about 4 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) |
— | about 4 years ago |