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
 
66%
+2 −0
Q&A error[E0507]: cannot move out of X which is behind a shared reference.

Problem was my_line is owned by _model and cannot be moved. Copying the entire my_line is apparently not possible, but what worked is making an element-wise copy of my_line, which is of type (Poin...

posted 3y ago by telefza‭

Answer
66%
+4 −1
Q&A How to get string length in D?

I'm new to D and am planning to use it for golfing. I want to make a ROT13 converter and I want to determine the length of an inputted string. Is there a function for this? If not, what ways can I...

3 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 3y ago by hkotsubo‭

Question string function d
64%
+9 −4
Q&A Is omitting braces for single statements bad practice?

Consider this code: while(arr[index] != 0) index++; vs while(arr[index] != 0) { index++; } Personally, I prefer the first. The fact that the braces are not needed makes them -- u...

6 answers  ·  posted 4y ago by klutt‭  ·  last activity 1y ago by H_H‭

Question software-practices code-style language-agnostic
64%
+7 −3
Meta Site scope - draft proposal

I propose removing this from the off topic list System/network/server administration. I am not an expert, but I believe a lot of this has software implications. For example, a SQL AlwaysOn cluste...

posted 4y ago by James Jenkins‭  ·  last activity 4y ago by James Jenkins‭

Answer
63%
+5 −2
Meta Do we want a wiki (or similar) alongside Q&A?

Please no. I had a bad experience of SO's failed and cancelled "Documentation" project. I raised the same concerns on the Electronics site here. I'll quote that post: The worst that can happen is ...

posted 4y ago by Lundin‭

Answer
63%
+5 −2
Meta Community feedback: What type of questions can I ask here?

I propose that the following is added as off-topic: Off-topic Questions with artificial requirements and no practical use, including code golf and code obfuscation. This also covers artificial hom...

posted 4y ago by Lundin‭

Answer
63%
+5 −2
Meta How much research effort is expected from the asker by the community?

How much research effort is expected from the asker by the community? The kinds of research I expect varies with the question type. Before asking us ... about concepts or the meaning of wor...

posted 3y ago by meriton‭

Answer
63%
+5 −2
Q&A Prevent vscode from inserting new lines in the middle of my code on format.

I am cleaning up java code in vscode to make it more readable. When I format my document there are instances when vscode inserts new line character when I don't want it. Here I show 2 examples of w...

1 answer  ·  posted 2y ago by Vanity Slug ❤️‭  ·  edited 2y ago by Vanity Slug ❤️‭

Question format vs-code
63%
+5 −2
Q&A Read all data from TCP stream in Rust

I'd like to write a TCP client in Rust that can receive the entire message sent by a server, but I have no information about the length of a message. I'm aware that TCP doesn't preserve message bo...

1 answer  ·  posted 2y ago by Matthias Braun‭  ·  edited 2y ago by Matthias Braun‭

Question rust tcp
63%
+5 −2
Q&A Is `git pull` dangerous?

I heard git pull is dangerous. Is it really dangerous? If so, why or how is it dangerous? Are there any flags that mitigate or remove the danger? What are the alternatives if it...

2 answers  ·  posted 8mo ago by alx‭  ·  last activity 8mo ago by alx‭

Question git
63%
+10 −5
Q&A Is it wrong to demand features in open-source projects?

I have been using open-source software, and the open-source Community is great at maintaining such projects. But I have observed something in smaller open-source projects. Whenever I demand some f...

3 answers  ·  posted 4y ago by theabbie‭  ·  edited 1y ago by tripleee‭

Question open-source ethics
62%
+3 −1
Q&A List what file(s) an identifier was declared in?

I haven't used Doxygen that much, but after checking the documentation and looking around online, it looks like the reason this might be happening is because the SHOW_USED_FILES setting which (if I...

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

Answer
62%
+3 −1
Meta The size of the code format window is much too small.

Seconded. This looks accidental, since the height is set to 20em, but the line-height is set to 1.5em, resulting in 20/1.5 = 13 lines being displayed. I wonder what that line-height is for? I know ...

posted 4y ago by meriton‭

Answer
62%
+3 −1
Meta Do we really need the [tools] tag?

During my review of the posts and tags, I have seen the tools tags. It is very generic and I am sure if it is helpful. What do you think?

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

Question discussion tags
62%
+3 −1
Q&A What would the pros and cons of storing the compiled CSS output of SASS in version control?

One thing to consider if you decide to store the CSS in version control is how to make sure that the CSS is always updated whenever the SASS is updated. (Of course this is true of the more general ...

posted 4y ago by r~~‭

Answer
62%
+3 −1
Q&A DST disrupting rsync twice a year

I'm facing rsync full syncs every once upon a time, I think it's because DST, notice an hour of difference: $ ls -l tier2/VIDEO-2020-06-17-15-10-27.mp4 /Volumes/KINSTON2/dat/laptop_kinstones/tier2...

1 answer  ·  posted 4y ago by .                                                .‭  ·  last activity 3y ago by .                                                .‭

Question rsync
62%
+3 −1
Q&A Would a MySQL database run more efficiently with smaller varchar lengths?

The manual writes: In contrast to CHAR, VARCHAR values are stored as a 1-byte or 2-byte length prefix plus data. The length prefix indicates the number of bytes in the value. A column uses one len...

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

Answer
62%
+8 −4
Meta Site scope - draft proposal [duplicate]

EDIT: This discussion thread is mostly obsolete now that a new draft has been posted on the site. Please take further discussion & proposals to this meta post instead: Community feedback: What ...

6 answers  ·  posted 4y ago by Lundin‭  ·  closed as duplicate 4y ago by Lundin‭

Question discussion scope on-topic off-topic
62%
+3 −1
Q&A How to do "out-of-source" build properly with cmake?

Whenever I've worked with CMake-based projects, the structure has been something like this: project src <-------- typically this is a source control working directory CMakeLists.txt ...

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

Answer
62%
+3 −1
Q&A How to temporarily disable a MySQL user?

I think the closest thing to what the post body is suggesting is offline mode: Connected client users who do not have the SUPER privilege are disconnected on the next request, with an appropriate...

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

Answer
62%
+3 −1
Meta Strategy to migrate meaningful content from Stack Overflow

Please note that migrate in this context means grabbing the exact post as-is from a SE site and importing it here. This is allowed, with attribution given, as per licensing model. Codidact staff c...

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

Answer
62%
+3 −1
Q&A What is the difference between a hook and a code injection?

I would define a hook as: A piece of code which changes the response to a certain event, without changing the original code that caused the event How is that different than "code injection", if a...

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

Question terminology event response code-injection hook
62%
+3 −1
Q&A Having trouble adding include directories

Ah. There's a good reason the compiler says it can't find the file: it's not there. In my particular case, BeepBoop.hpp actually gets automatically generated from other files by the ordinary build ...

posted 4y ago by Hyperlynx‭

Answer
62%
+3 −1
Q&A How do I choose the correct Perl module from these variations?

When looking for Perl modules to handle JSON strings and/or documents, I found JSON::PP and JSON::XS. The documentation of JSON::PP says it is compatible with JSON::XS. What do these suffixes me...

2 answers  ·  posted 4y ago by ghost-in-the-zsh‭  ·  last activity 12mo ago by ivan‭

Question perl json perl-module
62%
+3 −1
Meta Do we really need the [tools] tag?

No, it's not helpful, it's far too broad and doesn't make sense to use in combination with any other tag either. It can't be used for searching or categorizing questions either.

posted 4y ago by Lundin‭

Answer