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
 
75%
+4 −0
Q&A How this recursive treewalker works?

How this recursive treewalker works? To understand what the code does, we need to first see what problem it's trying to solve and why it needs to be solved this way. Let's consider this HTML:...

posted 3y ago by hkotsubo‭  ·  edited 3mo ago by hkotsubo‭

Answer
75%
+4 −0
Q&A How to open a file and edit its content in groovy script

Dirk's answer provides a sound solution to the literal problem you describe. Nevertheless, I would encourage you to take a step back and consider whether you really want to be editing Makefiles in ...

posted 3y ago by deleted user

Answer
75%
+4 −0
Q&A How to open a file and edit its content in groovy script

One simple possibility to eliminate a set of lines with precisely known content is to use the patch tool. The below code shows an example shell script. The script calls patch on the file to be mo...

posted 3y ago by Dirk Herrmann‭

Answer
75%
+4 −0
Code Reviews Measuring the impact of using exceptions instead of return values in an ASP.NET Core application

Since your code performs a data base operation, the cost of this operation is likely dominating the execution time. The cost of both a return or an exception may be negligible compared to that ope...

posted 3y ago by Dirk Herrmann‭

Answer
75%
+4 −0
Code Reviews 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 de...

2 answers  ·  posted 3y ago by Alexei‭  ·  last activity 3y ago by Derek Elkins‭

Question c# benchmarking
75%
+4 −0
Q&A Detecting if a user has stopped interacting with a web view for a certain time

The weakness of responding to idle state is that 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 world. Savi...

posted 3y ago by meriton‭

Answer
75%
+4 −0
Meta A cleanup of "What type of questions can I ask here?"

What type of questions can I ask here? has gotten rather cluttered since we have added/removed a lot of things along the way. In particular, I think it is hard to get an idea of what's on-topic by ...

1 answer  ·  posted 3y ago by Lundin‭  ·  last activity 3y ago by klutt‭

Question discussion scope
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‭

Question sql-server database-replication transactional-replication
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‭

Question bug status-completed comments syntax-highlighting
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 11mo 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 3y ago by deleted user  ·  last activity 3y ago by hkotsubo‭

Question javascript keyboard-events
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 3y 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 3y ago by Alexei‭  ·  edited 3y ago by Alexei‭

Question .net-core .net-5 nuget .net-runtime
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 3y ago by meriton‭  ·  edited 3y 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 3y ago by deleted user  ·  last activity 3y ago by hkotsubo‭

Question javascript terminology dom
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 3y 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 3y ago by Peter Taylor‭  ·  last activity 3y 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 3y ago by Dirk Herrmann‭  ·  edited 1y ago by Dirk Herrmann‭

Answer