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
Quite obviously, these are the same. The name of the two is literally the same except for a hyphen. They only have one question each. Looking at the questions, they are indeed used for the same pur...
This is something that could go really wrong. I remember using this, and it was fine initially, until the enum in question evolved, and the ordinals changed, so the values didn't correspond anymore...
I found two tags: back-end and backend. Should we merge them?
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...
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...
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...
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...
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...
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...
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] ...
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} ...
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...
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...
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...
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...
It seems that year over year, computers constantly get easier to use, and it becomes easier for people to start learning to program who have never touched it before. This comes with the consequence...
Reminder: never use sudo to run Pip. This can never properly fix a problem and only introduces serious security risks. Installing third-party packages from PyPI can run arbitrary code at install ...
My (non-Windows) operating system came with Python, but that Python didn't include Pip. I followed instructions to install Pip for the included Python, using my system's package manager. But now w...
One of my applications has a dependency on a stb-library. Now I am publishing this application to Github. Should I: Include the header that was used during development with the code? Have an in...
I have seen others allude to include_directories as disfavored: Having trouble adding include directories Summaries from CMake's documentation: target_include_directories include_directori...
I've installed Android Studio Jellyfish (snap) on an Ubuntu Fossa VM and was finally able to generate an apk for my project after struggling with Gradle, Java, plugins, etc. The device is detected...
Why The most important ideas behind virtual environments are: Since there is a separate site-packages, you can isolate the dependencies of your project. This is especially important for testi...
I am trying to capture the content outside square brackets in groups, using this regex: (.*)\[.*?\](.*) And it works perfectly for a simple string like this: testing_[_is_]_done This is the...
I had understood that Python is supposed to come "batteries included", and that the "batteries" specifically include: the tkinter standard library, a simple GUI framework a simple IDE cal...
I figured out a solution myself. You can use two echo commands to print the two strings separately, where the -n option is used for the first string to prevent the insertion of a trailing newline ...