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.

Posts by Derek Elkins‭

37 posts
75%
+4 −0
Q&A Is there any justification for having a single tempdb database to be used by all databases on a SQL Server intstances?

I can't speak for the designers' motivations, but here are some possible reasons: It's simple. Having one tempdb for everything is likely simpler to implement and simpler to configure. It works...

posted 2y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Is it necessary for a build server to remove node_modules before an AOT build?

I can't really think of a compelling reason to remove node_modules as a matter of course. The most compelling one, is what you alluded to. If node_modules is "corrupted" in some manner, removing a...

posted 3y ago by Derek Elkins‭  ·  edited 3y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Transferring files from a legacy project to an existing one as varbinary

The approach I would take given the constraints you've stated is to make much simpler and safer changes to Project A. Namely, 1) provide an API endpoint for fetching a file, and 2) provide an API e...

posted 2y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A What allows a string slice (&str) to outlive its scope?

There are two things going on here. One which technically explains what's going on fully, and another potential misconception you have. For the former, &T implements the Copy trait regardless ...

posted 2y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Why is boolean value f (false) defined as a parsing-word while t (true) is not in Factor?

The answer is indicated on the page for f. Specifically, "[t]he f object is the singleton false value, the only object that is not true." In contrast, t is defined simply as SINGLETON: t where SING...

posted 1y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A When is it OK for duplication of information between message header and payload in a distributed software application?

Nowadays DRY is usually with regards to code, not data. Regardless, even for data, DRY does not outlaw duplication, it just requires a single "authoritative" copy. There are certainly similar ideas...

posted 11mo ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A How to implement a relationship between 2 tables where the type of participation is mandatory and RESTRICT rule for both?

I would need to check, but I don't think PostgreSQL or most (any?) relational databases have a good way of expressing this "at most 8" constraint. It may be possible to express it in some way but p...

posted 7mo ago by Derek Elkins‭

Answer
70%
+5 −1
Q&A Can regex be used to check if input conforms to a very strict subset of HTML?

I mostly agree with the upshot of hkotsubo's answer, but I want to both tailor the answer more specifically to your question and give some more general advice. First, the restricted subset you desc...

posted 3y ago by Derek Elkins‭

Answer
66%
+2 −0
Code Reviews Measuring arithmetic overflow checking overhead in C#

Benchmarking is hard and there are a lot of potential issues with your code. I agree with Olin Lathrop that you want at least a few seconds worth of run time, not just due to the potential for a lo...

posted 2y ago by Derek Elkins‭

Answer
66%
+2 −0
Q&A How to inject environment configuration values when deploying an Angular application in Kubernetes or similar infrastructure?

I'm not quite sure I see what the issue is. As far as I can tell, you could continue to do exactly what you're doing now, you'd just do the token replacement on the bundle.js when a container is pr...

posted 1y ago by Derek Elkins‭

Answer
66%
+2 −0
Q&A How to write a function that only accepts a list of `Error string` `Results` in F# on the level of types?

I'm pretty sure the answer is "no", especially in some reasonable way. If Result was defined in some object-oriented way, i.e. as an interface with Ok and Error being implementations of that interf...

posted 3mo ago by Derek Elkins‭

Answer
62%
+3 −1
Q&A What's causing mypy to give an `[assignment]` error in this nested for loop?

As the error message indicates, the assignment is to the variable row. The for loop will repeatedly assign to row. But why is there a problem? Because Python's scoping rules are bad/broken. There ...

posted 1y ago by Derek Elkins‭

Answer