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 Alexeiâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #285366 | Nominated for promotion | — | about 3 years ago |
Edit | Post #285499 | Nominated for promotion | — | about 3 years ago |
Edit | Post #285720 | Nominated for promotion | — | about 3 years ago |
Edit | Post #285746 | Nominated for promotion | — | about 3 years ago |
Edit | Post #285745 | Nominated for promotion | — | about 3 years ago |
Edit | Post #285844 | Nominated for promotion | — | about 3 years ago |
Edit | Post #285917 | Nominated for promotion | — | about 3 years ago |
Comment | Post #285875 |
I do not think we need this category, because we already allow such questions. Examples:
[Best practices in setting up a development & production environments](https://software.codidact.com/posts/285908)
[Why object-oriented instead of class-oriented?](https://software.codidact.com/posts/285720... (more) |
— | about 3 years ago |
Edit | Post #278625 |
Post edited: |
— | about 3 years ago |
Edit | Post #278625 |
Post edited: |
— | about 3 years ago |
Comment | Post #285870 |
This is a great idea. Based on your proposal and the only answer + its comments, I have changed the section contents.
"What type of questions can I ask here?" has also become the first item in the Guidance category.
I will follow this Q&A and update the section if needed. (more) |
— | about 3 years ago |
Edit | Post #278625 |
Post edited: |
— | about 3 years ago |
Edit | Post #278625 |
Post edited: cleanup based on https://software.codidact.com/posts/285870 |
— | about 3 years ago |
Edit | Post #285939 |
Post edited: added relevant tag |
— | about 3 years ago |
Comment | Post #285916 |
Using localstorage is a great idea.
Ref. to "the app might be closed before the idle state is reached, and that a closing app might no longer be able to communicate with the outside", I thought about this and that is why I have mentioned the
beforeunload event which allows to mark the tab/brows... (more) |
— | about 3 years ago |
Edit | Post #285911 |
Post edited: fixed the question |
— | about 3 years ago |
Edit | Post #285911 | Initial revision | — | about 3 years ago |
Question | — |
Allow question and answers textareas to be resizable Many questions and answers on Software might involve a lot of code that typically require more width and/or height to be displayed in a way that is easy to read. Why simply not enforce `resize: none` and allow the user to resize the textarea to their needs (if the browser allows it and they want t... (more) |
— | about 3 years ago |
Comment | Post #285844 |
@#53280 I thought of using this for the following: evaluating SPA usage time (i.e. consider last activity + a time interval) or automatically saving some data after an idle period. (more) |
— | about 3 years ago |
Edit | Post #285885 | Initial revision | — | about 3 years ago |
Answer | — |
A: Preloading some data at application startup as fast as possible One way to do this is to launch a Task at application startup as soon as possible (the DI is configured). The only hard part is to make DI available in the prewarm functionality. The following implementation is based on this article. ```c# /// /// Credit: https://anduin.aiursoft.com/post/202... (more) |
— | about 3 years ago |
Edit | Post #285884 |
Post edited: added relevant tags |
— | about 3 years ago |
Edit | Post #285884 | Initial revision | — | about 3 years ago |
Question | — |
Preloading some data at application startup as fast as possible I am caching some very static information (changes once per day) in my ASP.NET Core application. This is normally done when needed ("lazy"). One such cache item is a 50K list of items that are taking less than 500ms when the application is deployed and about one second in the development environme... (more) |
— | about 3 years ago |
Edit | Post #285843 |
Post edited: added more code for the caching example |
— | about 3 years ago |
Edit | Post #285873 | Initial revision | — | about 3 years ago |
Question | — |
What are the drawbacks of using data snapshot testing? Our team is finally focusing on writing more automatic testing and one of my ex-colleagues recommended to try out the Verify library. The tool does the following: - runs the test and compares the JSON serialization of the actual result with a JSON file named after the test name. The first run w... (more) |
— | about 3 years ago |
Comment | Post #285865 |
Software recommendation questions are [offtopic on Software Development](https://software.codidact.com/help/on-topic), but they seem [to be welcomed on Power Users](https://powerusers.codidact.com/posts/284817/284902#answer-284902). (more) |
— | about 3 years ago |
Edit | Post #285865 | Question closed | — | about 3 years ago |
Edit | Post #285843 |
Post edited: added Derek's suggestion |
— | about 3 years ago |
Comment | Post #285843 |
@#53398 Yes, you are right. TransactionScopes should be avoided. The only valid case where I needed explicit transaction management (as opposed to context save changes one) was when the transaction performed both reads and delete on the same records (read -> archive -> remove) and EF could not figure... (more) |
— | about 3 years ago |
Edit | Post #285844 |
Post edited: minor fix |
— | about 3 years ago |
Edit | Post #285844 | Initial revision | — | about 3 years ago |
Question | — |
Detecting if a user has stopped interacting with a web view for a certain time I am interested in finding out all the aspects I need to cover in order to correctly assess if a user has stopped interacting with a web page. So far, I found the following: - Idle Detection API - this seems to do most of the work for idle detection. However, it requires user permission - Detect ... (more) |
— | about 3 years ago |
Edit | Post #285843 |
Post edited: added more information |
— | about 3 years ago |
Edit | Post #285843 | Initial revision | — | about 3 years ago |
Answer | — |
A: How to write database friendly code when using an ORM? Note: this is mostly based on personal experience rather than benchmarks. The examples would focus on using EF with SQL Server, but some points might apply to other ORMs and relational databases The provided references explain why ORM and relational databases are quite incompatible but do not prov... (more) |
— | about 3 years ago |
Edit | Post #285841 | Initial revision | — | about 3 years ago |
Question | — |
How to write database friendly code when using an ORM? There are a lot of articles and presentations that show little love for ORMs. This is mainly because some queries are so complex and heavy on the database that they lead to significant issues in production. After quickly reading the aforementioned article I understand that there are many incomp... (more) |
— | about 3 years ago |
Edit | Post #285839 |
Post edited: added changes performed based on received feedback + add out run output |
— | about 3 years ago |
Edit | Post #285839 |
Post edited: fixed the initialization code |
— | about 3 years ago |
Comment | Post #285839 |
@#53305 Ref. to "Just a stupid idea: What if the observed results are not due to the use of checked, but an artifact of the JIT compiler or due to external factors influencing your benchmark run (like, do you have other stuff running on your box that might possibly intermittently load the CPU and che... (more) |
— | about 3 years ago |
Edit | Post #285838 |
Post edited: added information based on feedback |
— | about 3 years ago |
Comment | Post #285838 |
@#53305 Not familiar with how SonarQube actually works, but I guess it computes the cyclomatic complexity and complains about going beyond a certain threshold. So it ignores the actual instructions.
Ref. how to avoid I have never used anything beyond the simple mapping. And also in this case, I wo... (more) |
— | about 3 years ago |
Edit | Post #285839 |
Post edited: Fixed the title |
— | about 3 years ago |
Edit | Post #285839 | Initial revision | — | about 3 years ago |
Question | — |
Measuring arithmetic overflow checking overhead in C# Overflow checking for integral-type arithmetic operations is disabled by default and it can be explicitly enabled by using using `checked` function or the `-checked` compiler switch. Since I mainly develop business applications where the main focus is correctness, I am wondering if globally switch... (more) |
— | about 3 years ago |
Edit | Post #285838 |
Post edited: added complexity clarification |
— | about 3 years ago |
Edit | Post #285836 |
Post edited: minor fixes |
— | about 3 years ago |
Edit | Post #285838 | Initial revision | — | about 3 years ago |