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
Meta Question templates for guidance

I am wondering if it makes sense to define a template for questions. This would act as a guideline rather than a strict template to be followed. I have seen this being used for GitHub issues and I...

0 answers  ·  posted 3y ago by Alexei‭

75%
+4 −0
Q&A Can I set a memory limit for the .NET Core garbage collector to collect objects more aggressively?

Generally speaking, the frequency of garbage collection is a space / time tradeoff: collection effort live object size GC overhead ~ ----------------- = ---------------- ...

posted 3y ago by meriton‭

Answer
75%
+4 −0
Meta How to promote Software Development Codidact on LinkedIn?

I have recently blown off the dust off my LinkedIn profile and I have realized that I have hundreds of connections. An important fraction of all these connections are into software development and ...

0 answers  ·  posted 3y ago by Alexei‭

75%
+4 −0
Q&A How to clear the contents of a file?

How to clear the contents of a file using C?

1 answer  ·  posted 3y ago by dumplings‭  ·  edited 3y ago by hkotsubo‭

Question c file-handling
75%
+4 −0
Q&A Handling high frequency requests with cancellations in an ASP.NET Core application

There are two issues here. A performance problem and a correctness problem. The approach you suggest seems like it will help mitigate the performance problem while doing nothing for the correctness...

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

Answer
75%
+4 −0
Q&A Regarding the heap sort algorithm.

As you know, a max heap is a binary tree such that each parent is greater than its children. The most compact and efficient way to represent such a tree is an array, where each index corresponds t...

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

Answer
75%
+4 −0
Q&A Why does fopen return NULL?

Besides the possible issues that Lundin told you, there is also the possibility that the current directory of the program is not what you think it is (note that the current directory is not necessa...

posted 3y ago by celtschk‭

Answer
75%
+4 −0
Q&A How to align my content to the left?

This revolves around images. I'm trying to write an HTML page of COVID-19 safety procedures, and here's what I've written so far: <!DOCTYPE html> <html> <head> <title&...

2 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 1y ago by Peter Taylor‭

Question html css alignment image
75%
+4 −0
Q&A Docutils rst2pseudoxml.py reported error: No role entry for "meth"

There is no resolution for this issue as the meth role is a syntax extension defined by Sphinx, in what it calls the Python "domain". The standard reStructuredText roles that Docutils supports do n...

posted 3y ago by J-hen‭

Answer
75%
+4 −0
Q&A document.open() and the DOM tree of the loaded (closed) browser window on which it works

At the documetation you linked, if you click on "which will clear the document", it'll go to the documentation for document.open, and that page says in the beginning: All existing nodes are remo...

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

Answer
75%
+4 −0
Q&A Hash sign as a path component in a user script's @match command prevents the script from running

The part after the hashtag is called a URI fragment. Unfortunately, Tampermonkey does not allow you to match hashtags. This is arguably for good reason. The hashtag can easily change (and for sing...

posted 3y ago by Moshi‭

Answer
75%
+4 −0
Q&A Is it possible to write protocols for enumerations in Python?

Having recently learned about protocols in Python, I now wonder if you can write a protocol for enumerations. That is, a protocol that says that you are supposed to pass an enum that has certain it...

1 answer  ·  posted 2y ago by celtschk‭  ·  last activity 2y ago by r~~‭

75%
+4 −0
Code Reviews A state machine in Python

I think you've got an architectural error. A state machine (SM) determines it's own actions based on it's state and the messages it may receive. The calling code may send messages (information) t...

posted 2y ago by Nick Alexeev‭  ·  edited 2y ago by Nick Alexeev‭

Answer
75%
+4 −0
Code Reviews A state machine in Python

Some thoughts about your design / code (not repeating what was already said by Derek): You have chosen member _observers of class State to be a list, and member function register to append to ...

posted 2y ago by Dirk Herrmann‭

Answer
75%
+4 −0
Code Reviews A state machine in Python

I've written the following code implementing a state machine in Python, and I'd like some feedback on it. The basic idea is that each state has a set of corresponding actions that trigger a state ...

2 answers  ·  posted 2y ago by celtschk‭  ·  last activity 2y ago by Nick Alexeev‭

75%
+4 −0
Meta The tag [caching] exists twice, shoud we blame caching?

Browsing through the list of tags I saw two with the exact same name, [caching]: One is in https://software.codidact.com/categories/38/tags/4128 and the other in https://software.codidact.co...

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

75%
+4 −0
Q&A PGP sign emails sent with git-send-email(1)

How can we use git-send-email(1) to sign patches (emails) with the gpg(1) keyring? The git-send-email command does not have any CLI options to perform cryptographic operations, so, to the best...

posted 2y ago by ghost-in-the-zsh‭  ·  edited 2y ago by ghost-in-the-zsh‭

Answer
75%
+4 −0
Q&A How to make this treewalker code having a regular for loop or a forEach() method?

I personally think its syntax is confusing. Well, it's just a matter of getting used to it, I guess :-) Anyway, this code is just looping through all childNodes and in each iteration it cal...

posted 2y ago by hkotsubo‭

Answer
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 2y ago by hkotsubo‭  ·  edited 2y 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 2y 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 2y 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 2y 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