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
What I want: An object that contains a function that I can update after creation. I created a struct that contains a parameter b and a function(closure?) named Internal_Fn. struct MyThing { ...
Asking customer service-related questions is generally offtopic unless there is a connection to the software development process. Taking your examples one by one: How do I get my Facebook deve...
If I try to rename a tag to an existing one it silently fails. Example: trying to rename data-archiving to archiving fails with console error only: application-f4dc10c11dc65439a992f7c98cb554bfbc...
The problem is the fallthrough behaviour of case statements. Basically, once a case's condition is met, all the others after that are also executed. Example: int x = 2; switch (x) { case 1: ...
This should perhaps be a comment rather than an answer, but I want to allow people to vote to indicate agreement or disagreement. "Complete code" doesn't necessarily mean an entire project. It mea...
The console.readline tag has been created for Q: How to read lines into an array in Bash, which uses a while read loop. That tag is inappropriate because Readline, the console and the read built-...
Your first diagram illustrates a pattern that doesn't really make sense and most likely doesn't reflect what you're actually doing. Specifically, it illustrates a pattern where the feature branch n...
400 lines is not that big, it should be fine to post the complete program below the Code Reviews post category. I'd post it as separate code formatted blocks with one block per file indeed. A revi...
Hm... there was some weird stuff with Art and me attempting to edit the post at the same time and me making changes to the tag to conform to the standard name (without the additional dash), ...
Let's consider the following git graph. The initial commit is 1. The colors identify the authors of each commit. Orange has left the project. Green, Blue and Pink are still active. cha...
In the C program below, I make a mistake and call the function with (ld, ld) instead of (d, ld). #include <stdio.h> #include <limits.h> void print_int_long(int n, long l){ pri...
You can use -Wconversion but you should be aware that it is very prone to false positives. It's a good flag to turn on during code review etc to shake out a few minor issues, but it's not a flag yo...
I understand data compression as making data structures nearer (if they are mere machine code without any abstract representation) or representing them in less and less abstract computer languages...
Data compression uses a wide variety of tactics to reduce the storage needed for data, including (just off the top of my head): Run length encoding - e.g., store aaaaa as ax5 Tokenizing commonl...
Is it worth using the Java Platform Module System introduced in Java 9 to structure application code? Given that the Java Platform Module System introduced in Java 9 doesn't manage dependency vers...
The reaction feature doesn't quite exist yet. That post is a suggestion for a future feature. It was positively received, which means we'll give it a try at some point in the future, but building ...
I have a parent-child relation in my table, with possibly circular cases. Is it possible to break the infinite recursion in CTE checking values of all previous rows? I would need something like thi...
Because you are using Qt in particular there is something to be said for not solving this problem yourself. Instead, create a single object that owns the stream or file and offers a writeLine slot...
How can one differentiate what is or is not a *nix operating system even if that operating system (or its core/shell/common-utilities) allegedly behaves like any "other" *nix operating system? Is ...
This is a very common problem. First some basics: There are two very different things in email: Email Server (a.k.a. hosting) This is the system that sends, receives and stores email message...
We don't actually serve any captchas: it's all done by Cloudflare. Cloudflare runs a firewall that scans incoming requests and issues a captcha challenge to any that appear to be automated or malic...
Looks like it's guessed at a language for both of those code blocks, and got it wrong. If you need a code block without syntax highlighting, you can use ```plain to start the code block.
Instead of replacing the brackets, you could do just one loop, and keep a stack with the opening brackets. Every time you find a closing bracket, check if it corresponds to the stack top: if it's n...
The problem You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday. Thirty days has September, April, June and November. All t...
The Drupal tag is not in lowercase, as all other tags are. Is this intended?