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 Differences between Haskell tools Stack and Cabal?

The short, broad strokes answer is that (modern) cabal-install uses a nix-style approach where there's a shared global cache, but you can have multiple versions of a package installed or even the s...

posted 7mo ago by Derek Elkins‭

Answer
75%
+4 −0
Q&A What does an exclamation mark mean in a GraphQL schema?

Types are often followed by exclamation marks in GraphQL schemas. What do they mean? type User { id: Int! email: String! name: String! updatedAt: String! createdAt: String...

1 answer  ·  posted 7mo ago by Iizuki‭  ·  last activity 6mo ago by Alexei‭

Question syntax graphql
75%
+4 −0
Q&A What does an exclamation mark mean in a GraphQL schema?

It's a type modifier that means that the field is non-nullable. That is, when uploading these types you must provide values for these fields, and in turn the server promises to always populate the...

posted 7mo ago by Iizuki‭

Answer
75%
+7 −1
Meta How to handle correct answers that also include spam?

A recent answer on Software Development was correct, but was included spam / self promotion (unrelated to the question or the answer). The answer was edited to remove the spam, but it was suggeste...

4 answers  ·  posted 1mo ago by Alexei‭  ·  last activity 1mo ago by InfiniteDissent‭

Question discussion answers spam
75%
+4 −0
Q&A Why force designation of a remote main branch?

GitHub seems to require that one of the branches on it be marked as the "primary" branch. I understand this (perhaps mistakenly) to be the origin/HEAD. Why would they make it compulsory? On forked...

2 answers  ·  posted 1mo ago by Michael‭  ·  last activity 1mo ago by InfiniteDissent‭

Question git github
75%
+4 −0
Meta How to handle correct answers that also include spam?

In my opinion, there is a single appropriate response to any incident of obvious, commercial, off-topic spam: an immediate, unconditional, one-strike-and-you're-out, permanent ban of the user and t...

posted 1mo ago by InfiniteDissent‭  ·  edited 1mo ago by InfiniteDissent‭

Answer
75%
+4 −0
Q&A Why is SQL usually written in CAPS?

Since the tradition doesn't have any enforcement anywhere, we can't necessarily pinpoint a single reason, but it probably has a lot to do with the available technology of the early 1970s when Chamb...

posted 15d ago by John C‭

Answer
75%
+4 −0
Meta How to handle correct answers that also include spam?

It's a mistake to draw a general question based on this specific incident. The spam in question has been posted to Codidact dozens of times, often in AI-generated texts. There is no reason to assu...

posted 1mo ago by Andreas demands justice for humanity‭

Answer
75%
+4 −0
Q&A Why is SQL usually written in CAPS?

Why are keywords in SQL usually written in capital letters? For example: SELECT * FROM person WHERE mood = 'happy'; My understanding is that SQL is case insensitive, so the case doesn't actuall...

2 answers  ·  posted 16d ago by Iizuki‭  ·  last activity 15d ago by luser‭

Question sql
75%
+4 −0
Q&A How to find the last line number of a section in a text file (particular format)

Assigning the variable end to ']' gets the line number of every closing bracket To solve this, just set the last line number only if the first line number is already set. Like this: def readS...

posted 17d ago by hkotsubo‭  ·  edited 17d ago by hkotsubo‭

Answer
75%
+4 −0
Q&A Get the name of the remote tracked branch of my local branch for use in script

I'm not exactly sure what you want with the whole of rd, but …programmatically get the name of the remote branch which my local branch is tracking… sounds very much like the @{upstream}/@{u} ...

posted 2mo ago by Michael‭  ·  edited 2mo ago by Michael‭

Answer
75%
+4 −0
Q&A Get the name of the remote tracked branch of my local branch for use in script

Can I programmatically get the name of the remote branch which my local branch is tracking? I'm interested in scripting around git-range-diff(1), so that I could do something like this: [alias] ...

1 answer  ·  posted 2mo ago by alx‭  ·  last activity 1mo ago by Alexei‭

Question git
75%
+4 −0
Q&A What are X macros and when to use them?

Purpose and use X macros is a design pattern used for the purpose of centralizing data & code maintenance to a single point in the program. Instead of maintaining code based on some data set i...

posted 2mo ago by Lundin‭  ·  edited 2mo ago by Lundin‭

Answer
75%
+4 −0
Meta Comparing our site scope to Stack Overflow

The main difference between Stack Exchange and Codidact is that SE loves to spawn off hundreds of sites with lots of overlapping scopes, whereas Codiact has the category system, which means that co...

posted 5mo ago by Lundin‭

Answer
75%
+4 −0
Q&A Understanding "logical OR" and "logical AND" in programming languages

Many programming languages either have keywords like or and and used for logic, or equivalent operators such as || or && - which are referred to as "logical or" and "logical and" respective...

3 answers  ·  posted 5mo ago by Karl Knechtel‭  ·  edited 5mo ago by Andreas demands justice for humanity‭

Question language-agnostic language-design logic
75%
+4 −0
Meta Comparing our site scope to Stack Overflow

We've had discussions before about the site's intended scope (range of permissible topics and questions), but for new users coming from the Stack Exchange network, I think it would be useful to dra...

2 answers  ·  posted 5mo ago by Karl Knechtel‭  ·  last activity 5mo ago by Lundin‭

Question discussion scope stack-overflow
73%
+9 −2
Meta Should "Hello", "Thank you", "Morning" and similar greetings be removed from posts?

Note: this is mostly a personal preference that I use when moderating the posts Generally, no While "Hello" and "Thank you" are noise (overhead) for the questions and answers, they are also part ...

posted 4y ago by Alexei‭

Answer
73%
+9 −2
Meta Growing software.codidact

I've been thinking about how the community might bring more contributors to software.codidact. One of the ways is to simply pitch codidact in questions, answers, and comments in stackoverflow. I'm ...

2 answers  ·  posted 4y ago by President James K. Polk‭  ·  last activity 4y ago by Lundin‭

Question discussion
72%
+6 −1
Q&A What are the pros and cons of using objects vs associative arrays for JSON results of a CURL request in PHP?

I have a PHP script that uses CURL to return a JSON result that looks //Curl set up code $result = curl_exec($ch); //Error checking code $json = json_decode($result, true); //Code to process r...

1 answer  ·  posted 4y ago by Charlie Brumbaugh‭  ·  last activity 4y ago by Yaskur‭

Question php json
72%
+6 −1
Meta How does the community feel about resource requests?

These are fine, IMO: Here is my specification of what the program should do /--/. I'm stuck at x, (optionally: here is my code), where do I go from here? Is this implementation of x (code follows)...

posted 4y ago by Lundin‭  ·  last activity 4y ago by Lundin‭

Answer
72%
+6 −1
Q&A Which abstraction should I choose for background services and why?

Which concept is best for managed background services? 1. RunAsync(CancellationToken): interface IWorker { Task RunAsync(CancellationToken cancellationToken = default); } ... IWorker worker =...

1 answer  ·  posted 4y ago by Kir_Antipov‭  ·  last activity 4y ago by Alexei‭

Question c# software-practices async-await .net
72%
+6 −1
Meta Are questions about web browsers on topic on Software Applications?

The site is called Software Development, not "Applications". Meaning programming. On-topic: Questions about different behavior of web browsers in the context of web application programming. Questi...

posted 4y ago by Lundin‭  ·  edited 4y ago by Lundin‭

Answer
72%
+6 −1
Q&A How to separate DB query logic from the application other than implementing a repository on top of an ORM?

I've been doing a lot of reading on implementing the repository pattern in C# projects and found controversy, or shall I say some strong criticism, made by seemingly very smart people with previous...

1 answer  ·  posted 4y ago by Marc.2377‭  ·  last activity 4y ago by Alexei‭

Question entity-framework-core database architecture design-patterns orm
72%
+6 −1
Meta How are we supposed to give feedback for poor questions if such comments are deleted?

The question https://software.codidact.com/posts/281517 is currently voted at -3. I wrote several comments to explain why, so the author can hopefully ask better questions in the future. This morn...

2 answers  ·  posted 4y ago by meriton‭  ·  last activity 4y ago by deleted user

Question discussion comments
72%
+6 −1
Q&A What is the main difference between event delegation to other event handling patterns in JavaScript?

tl;dr The purpose of addEventListener is to define what happens when an event is triggered at some element. But it also allows us to implement event delegation, due to the bubbling/propagation beh...

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

Answer