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
 
77%
+5 −0
Q&A How to open a file and edit its content in groovy script

I have a Makefile in my Jenkins job's workspace, that I want to edit out certain parts from and then save it, before running next part of the script that uses this Makefile. The part that I want t...

2 answers  ·  posted 3y ago by Megan‭  ·  last activity 3y ago by Alexei‭

Question jenkins shell groovy
77%
+5 −0
Q&A Is it possible to write protocols for enumerations in Python?

There's one big difficulty with the proposed pattern. Enum instances are singleton instances of their particular class, and in general two enums from different classes are not equal even if they wr...

posted 3y ago by r~~‭

Answer
77%
+5 −0
Q&A How this recursive treewalker works?

To understand the concept of recursive tree traversal, I would like to give you an analogy. Imagine a labyrinth of rooms connected like a tree structure. That is, there is an entry to the first r...

posted 3y ago by Dirk Herrmann‭  ·  edited 3y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A Explaining the result of an arithmetic expression in JavaScript

The concept that is important to understand here is the concept of operator precedence. Assume you have an expression a + b * c. What does it mean? You could have the following options: (a + b) ...

posted 3y ago by Dirk Herrmann‭  ·  edited 3y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A How should one match a specialized version of a variant?

Let's say I have a variant that can hold a bunch of different types of values (say I got them from parsing a JSON or similar). using Value = std::variant<std::monostate, int, double, std::strin...

1 answer  ·  posted 3y ago by Moshi‭  ·  last activity 2y ago by Baum mit Augen‭

Question c++ variant
77%
+5 −0
Q&A Why can't a derived class add a const qualifier to a method?

Say we have an abstract class Foo declared as so: class Foo { public: virtual void test() = 0; }; Let's say that we make a derived concrete class FooDerived, and decide to mark it's ve...

2 answers  ·  posted 3y ago by Moshi‭  ·  last activity 3y ago by Dirk Herrmann‭

Question c++ const-correctness
77%
+15 −3
Meta Questions easily answered by studying a beginner-level book

This scenario is not yet a problem for this site, but we will get there, since it's a huge problem for Stack Overflow: Someone just picks up a well-known programming language for the first time. T...

6 answers  ·  posted 3y ago by Lundin‭  ·  last activity 2y ago by Karl Knechtel‭

Question discussion on-topic
76%
+8 −1
Meta Should we allow UI/UX questions in our community?

Yes I would allow UI/UX questions with some limitations. Examples: on topic - UI/UX questions related to an interface that also involves some programming (e.g. web interfaces) offtopic -...

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

Answer
76%
+8 −1
Q&A Styling with classes vs styling with CSS

I've noticed that a lot of sites have something like this going on: <div class="has-margin-0 has-padding-4"> <div>...</div> <div>...</div> ... </div>...

1 answer  ·  posted 5y ago by Moshi‭  ·  last activity 5y ago by luap42‭

Question software-practices html css
76%
+8 −1
Meta Email alerts for notifications

How can I get an email when I get a notification on Codidact? I missed an answer because I thought I would get an email for it.

2 answers  ·  posted 1y ago by LyndonGingerich‭  ·  last activity 1y ago by Olin Lathrop‭

Question support feature-request notifications
76%
+11 −2
Meta Should we allow answers generated by ChatGPT?

Now that we've had a few of these answers, I really don't like them. It seems there are three separate problems with the ChatGPT answers we have seen: Quote-only. Just like we don't allow link-o...

posted 2y ago by Olin Lathrop‭

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

In addition to Q&A, Codidact supports another post type, article. Articles can be used for blog posts, wiki pages, and other resources. Articles, like questions, use tags, so searching for a ...

5 answers  ·  posted 4y ago by Monica Cellio‭  ·  last activity 2y ago by matthewsnyder‭

Question discussion
75%
+4 −0
Meta How does the community feel about resource requests?

I would like to see questions asking for help finding resources be considered on topic, but I would suggest creating a seperate category for them, like how Photography and Outdoors have one for Gea...

posted 5y ago by Charlie Brumbaugh‭

Answer
75%
+4 −0
Q&A Generate SIGSEGV without undefined behaviour.

In order to test that coredumps are generated and that they contain useful information which can be retreived with gdb I need to generate a SIGSEGV. Or anything else which causes a coredump. The co...

1 answer  ·  posted 5y ago by Estela‭  ·  last activity 5y ago by Lundin‭

Question c++ linux gcc
75%
+4 −0
Q&A Function call; `this` gets bound to unexpected value

Why parenthesis don't work as you expect You seem to have a rough idea how the this keyword is resolved, so I'll skip explaining that and go straight to your question. I was surprised to find that...

posted 5y ago by Moshi‭

Answer
75%
+4 −0
Q&A connect with SLOT/SIGNAL: QPushButton clicked signal not received by main window

Qt's SLOT macro is very specific in what it accepts. When specifying a slot in the connect function, it's required to put parenthesis, so the correct code would be: connect(ui->pushButton, SIGNA...

posted 5y ago by jrh‭  ·  edited 5y ago by jrh‭

Answer
75%
+4 −0
Q&A How to protect the git respository for a public_html folder on a Linux server?

The best practice here is, Don't deploy your .git folder to your web server. Then there's nothing to protect.

posted 5y ago by ShowMeBillyJo‭

Answer
75%
+4 −0
Q&A Count the number of occurrences in a text string

Although spreadsheets were never really intended for text processing, I think a formula solution is possible (LibreOffice 5.4.3.2): For the first example above: =(LEN(A1)-LEN(SUBSTITUTE(A1,"XYZ",""...

posted 5y ago by pnuts‭  ·  last activity 4y ago by Alexei‭

Answer
75%
+4 −0
Meta Getting rid of "company tags" early on

I agree that company name tags should not be used, since tag can point to a product, framework etc. and that tag description includes the information about the owner of the product. Of course, for ...

posted 5y ago by Alexei‭

Answer
75%
+7 −1
Meta Strategy to migrate meaningful content from Stack Overflow

I was thinking about meaningful content that can be migrated (+ improved) from Stack Overflow. These categories pop into my mind: closed questions: we know Stack Overflow is very picky when it co...

2 answers  ·  posted 5y ago by Alexei‭  ·  last activity 5y ago by Mithical‭

Question discussion migration
75%
+4 −0
Meta Long code lines are not wrapped

As Lundin points out, there are quite a few whitespace-sensitive programming languages out there, where automatic wrapping would change the apparent meaning of the code, such as Phython or JavaScri...

posted 5y ago by meriton‭

Answer
75%
+4 −0
Meta Long code lines are not wrapped

Code blocks that are wider than the column they're trying to fit in now get horizontal scrollbars. As noted in another answer, it's not safe to assume that line-wrapping won't change the correctne...

posted 5y ago by Monica Cellio‭

Answer
75%
+4 −0
Q&A Is concatenation a logical AND?

tl;dr: No. From an engineering perspective, you might be asking if a concatenation operator can be used in place of a logical ‘and’ operator. This is obviously specific to a particular language, bu...

posted 5y ago by r~~‭  ·  edited 5y ago by r~~‭

Answer
75%
+4 −0
Q&A What is the difference between a hook and a code injection?

I believe the term "hook" comes from the Windows API where you can register "hooks" - callback functions - to respond to certain events, optionally replacing the original behavior. Not necessarily ...

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

Answer
75%
+4 −0
Q&A Is there a way to estimate the execution time of a statement in MySQL?

The best way to estimate this is to measure it, for instance by importing a backup of the production database into a new instance and run your scripts there. Short of that, you could consult the ex...

posted 4y ago by meriton‭

Answer