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.

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
2.6k posts
 
75%
+4 −0
Q&A What are the drawbacks of using data snapshot testing?

This is more or less equivalent to a long used testing technique that I've commonly heard referred to as gold filing. The benefit of it is that it is very cheap to do, and it can catch even minor c...

posted 3y ago by Derek Elkins‭

Answer
75%
+4 −0
Q&A What are the disadvantages of using SQL Server Replication - Transactional Replication type?

The context A reports related process is directly reading the production operational database once about two hours. This involves reading all the data from some 70 tables which takes a couple minu...

0 answers  ·  posted 3y ago by Alexei‭

75%
+4 −0
Meta Code block in comments is highlighted only when viewed in the thread's link

Code blocks inside comments are hightlighted only if I'm on the comment's thread page. If I view it on the post itself (after expanding the respective thread), it's not highlighted. Example: in ...

0 answers  ·  posted 3y ago by hkotsubo‭  ·  edited 2y ago by Monica Cellio‭

75%
+4 −0
Code Reviews A class to access dicts using attribute syntax

I've written a class that allows to access dictionary entries of arbitrary dicts with appropriate string keys through attribute access syntax on an instance of the class. My questions are: Is...

3 answers  ·  posted 3y ago by celtschk‭  ·  last activity 7mo ago by mudskipper‭

Question python hashmap
75%
+4 −0
Meta Are general questions (hopefully resulting in comprehensive, 'canonical' answers) in scope

This sounds like useful content to me. I defer to the community on how best to achieve that; I'm here to offer another option from the platform side, in case it's useful. Codidact support article...

posted 3y ago by Monica Cellio‭

Answer
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 3y ago by Derek Elkins‭

Answer
75%
+4 −0
Q&A Are there any downsides related to using Maybe or Optional monads instead of nulls?

This is mostly an addition to r~~'s answer which I mostly agree with. This elaborates on the "non-idiomatic" part a bit. Modern Java code doesn't have a problem using Optional. Why? Because Option...

posted 3y ago by Derek Elkins‭

Answer
75%
+4 −0
Q&A Fixing vertical discrepancies with CSS

I'm not familiar with Drupal, but I would do this with CSS Grid. One possible example looks like this: <html> <head> <style> .menu-container { display: gr...

posted 3y ago by ajv‭

Answer
75%
+4 −0
Q&A Add single element for multiple keys to map

I have a map and a new item to add to the map and a list of keys I want to attach the new item to: => m1 {:a 1 :b 2} => itm 3 => ks [:c :d :e] => m2 {:a 1 :b 2 :c 3 :d 3 :e 3} ...

2 answers  ·  posted 3y ago by NoahTheDuke‭  ·  edited 3y ago by Alexei‭

Question clojure dictionary
75%
+4 −0
Q&A Move to the edit webpage of a webpage via the keyboard with vanilla JavaScript

The webpage example.com has an edit webpage (from which one can edit example.com itself). example.com/index.php?title=עמוד_ראשי&action=edit I want that after I click ALT+Shift+E, I would im...

1 answer  ·  posted 2y ago by deleted user  ·  last activity 2y ago by hkotsubo‭

75%
+4 −0
Q&A How to uncollapse the first and second tiers of a link tree in JavaScript?

The first item your selector returns is the top level arrow. hasAttribute just tells us if the attribute is present, not what the value is. So basically your condition is returning true for all ele...

posted 2y ago by jmathew‭

Answer
75%
+4 −0
Q&A What version of runtime environment does a .NET 5 application actually needs?

Our team deals with a legacy application that relies on a rather old deployment process and infrastructure: we deploy the application on an environment very similar to the production called Clon...

0 answers  ·  posted 2y ago by Alexei‭  ·  edited 2y ago by Alexei‭

75%
+4 −0
Q&A Delete all occurrences of a character in a webpage with vanilla JavaScript

With the help of a little recursion, it's straightforward to go through all text nodes and replace their contents: function replaceIn(e) { if (e.nodeType == Node.TEXT_NODE) { e.nodeValue =...

posted 2y ago by meriton‭  ·  edited 2y ago by meriton‭

Answer
75%
+4 −0
Q&A What are the types of DOM nodes?

If I am not mistaken any DOM "tree" node is actually a "branch", which would be an HTML element or perhaps a CSS pseudo-element, of course. If that's true what are the different node types and esp...

1 answer  ·  posted 2y ago by deleted user  ·  last activity 2y ago by hkotsubo‭

75%
+4 −0
Q&A Should I check if pointer parameters are null pointers?

To extend a bit on some points already mentioned: Regarding where to add checks on a case by case basis: If you have a static code analysis tool that can give you information about areas where pro...

posted 2y ago by Dirk Herrmann‭

Answer
75%
+4 −0
Q&A How to set FontFamily for an entire WPF application in a theme?

I have a project Anonymised.Theme which contains XAML resource dictionaries for a theme. This is used by about a dozen applications which simply include it by merging <ResourceDictionary Source...

2 answers  ·  posted 2y ago by Peter Taylor‭  ·  last activity 2y ago by aresavatar‭

Question fonts wpf theme
75%
+4 −0
Q&A Why does pushing to one array affect all the arrays in my two-dimensional array?

The problem is that the fill function is filling the array with references to the same empty array[1], and therefore modifying that array will affect every entry because all of them are actually th...

posted 3y ago by Moshi‭

Answer
75%
+4 −0
Code Reviews Detecting balanced parentheses in Python

Is this a good approach? How can I improve my algorithm? Your code is correct and simple. That is good, and it may be all that is needed. You have received some responses that indicate that ...

posted 2y ago by Dirk Herrmann‭  ·  edited 11mo ago by Dirk Herrmann‭

Answer
75%
+4 −0
Q&A C++ exit code -1073740940

C++ doesn't have error codes/exit codes other than return 0; / EXIT_SUCCESS / EXIT_FAILURE. The code you are getting is from the OS when your program crashes from a run-time error. -1073740940 is ...

posted 2y ago by Lundin‭

Answer
75%
+4 −0
Q&A WPF MVVM ListBox not updating

List<T> is not observable. In other words, List<T> does not offer a mechanism through which it could signal that its content has changed. If it is possible/permissible to modify the De...

posted 2y ago by elgonzo‭  ·  edited 2y ago by elgonzo‭

Answer
75%
+4 −0
Code Reviews A class to access dicts using attribute syntax

I like the idea, but more as an exercise or a demonstration what can be done with Python. I also like that the code comes with a set of test cases which are written in a way that they nicely serve...

posted 2y ago by Dirk Herrmann‭

Answer
75%
+4 −0
Q&A WPF MVVM ListBox not updating

I haven't worked in WPF for a long time, but you might try setting a new list (clone the old one and add the new element) instead of adding the element to the existing list: _demo.Value++; var ne...

posted 2y ago by Alexei‭

Answer
75%
+4 −0
Q&A WPF MVVM ListBox not updating

I am trying to combine MVVM in WPF using Microsoft.Toolkit.MVVM. Somethings are working as expected. The text boxes bind to fields and update in both directions. The button command executes and cha...

2 answers  ·  posted 2y ago by FrankLuke‭  ·  last activity 2y ago by elgonzo‭

Question c# binding mvvm wpf
75%
+4 −0
Q&A C++ exit code -1073740940

Nothing. Or anything. Or whatever you want it to mean. As a general rule of thumb: If you explicitly exit from a program with a specific exit status, then you know the meaning, or set of mean...

posted 2y ago by Canina‭

Answer
75%
+4 −0
Q&A Is it OK to use scanf with a void pointer?

From section 7.21.6.2 of this draft: [T]he result of the conversion is placed in the object pointed to by the first argument following the format argument that has not already received a conve...

posted 3y ago by r~~‭

Answer