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
 
70%
+5 −1
Q&A How allocated memory is calculated?

int arr[] = {10,123,14,14,15,16}; cout<<sizeof(arr)/sizeof(arr[0]); I was reading the article. When sizeof() is used with the data types such as int, float, char… etc it simply ret...

1 answer  ·  posted 4y ago by Anonymous‭  ·  last activity 4y ago by Canina‭

Question c++ memory
70%
+5 −1
Meta Closed Question Too Generic, Reason Unhelpful

I will provide an answer to this question in the context of this, now deleted question which included this relevant text before being edited and removed: How to implement a variable trust-based ...

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

Answer
70%
+5 −1
Meta On self-answered questions, is it inappropriate to mark my own answer "Works for me" immediately?

I don't think it is inappropriate for someone to mark their own answer "Works for me" on self-answered questions, but it feels a little bit redundant since the answer is expected to work for the po...

posted 2y ago by Alexei‭

Answer
70%
+5 −1
Q&A Terms for types of functions with respect to side effects

I don't think there are any formal names for the various versions you list. First of all, please note that output in a programming context most often refers to printing something on a screen or to...

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

Answer
70%
+5 −1
Q&A C naming convention, module trigrams?

For my company, I'm writing naming conventions for embedded code in C language. Function names must be named in lowerCamelCase() and start with a verb. Global variables are in Maj_started_lowe...

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

Question c naming-conventions code-style naming
70%
+5 −1
Q&A A keydown event succeeds for an English letter but not for an Hebrew one, sharing the same key

I am trying to listen to the event in which the keyboard key containing the Hebrew final-letter ך is pressed. This key stands for both the English letter L and the Hebrew final letter ך. If my op...

0 answers  ·  posted 3y ago by deleted user  ·  edited 3y ago by deleted user

Question javascript keydown keyboard-events
70%
+5 −1
Code Reviews stpecpy(): Design a better string copy function that truncates

I was directed a few days ago to a post about a string copy function, which IMO improves the commonly known string copy functions, including strlcpy(3BSD), strlcat(3BSD), and strscpy(9). It define...

2 answers  ·  posted 3y ago by alx‭  ·  last activity 2y ago by alx‭

Question c string string-concatenation strcpy
70%
+5 −1
Q&A Delete all occurrences of a character in a webpage with vanilla JavaScript

Primarily for learning, I would like to try to delete a specific character (letter or number or special character), wherever it is in a webpage, with vanilla JavaScript. The webpage won't change a...

3 answers  ·  posted 3y ago by deleted user  ·  last activity 3y ago by hkotsubo‭

Question javascript replace
70%
+5 −1
Q&A What does a variable followed by parentheses ("ptr()") mean?

What does ptr() mean in this code? #include<stdio.h> #include<stdlib.h> void PrintHello() { printf("Hello\n"); } int Add(int a, int b) { return a+b; } int main...

2 answers  ·  posted 3y ago by dumplings‭  ·  last activity 3y ago by Martin Bonner‭

Question c pointers
70%
+5 −1
Q&A What do the number entries mean in the sympy poly.diff(...) tuple syntax?

I am looking to take a partial derivative of a sympy polynomial with respect to a symbol in the polynomial. In the sympy documentation for poly.diff(...) it gives sample code like this: from sympy ...

2 answers  ·  posted 4y ago by jrh‭  ·  last activity 4y ago by Derek Elkins‭

Question python sympy
70%
+5 −1
Q&A Is omitting braces for single statements bad practice?

Advantages of Mandatory Braces When in Rome, do as the Romans do. Since every popular coding standard for java mandates the use of braces, and every popular code style checking tool enforces their...

posted 4y ago by meriton‭

Answer
70%
+5 −1
Q&A Can regex be used to check if input conforms to a very strict subset of HTML?

I mostly agree with the upshot of hkotsubo's answer, but I want to both tailor the answer more specifically to your question and give some more general advice. First, the restricted subset you desc...

posted 5y ago by Derek Elkins‭

Answer
70%
+5 −1
Q&A Why is global evil?

The basics of good vs bad program design All programs are divided in classes. (Or modules/abstract data types/interfaces etc - a rose by any other name.) Each class should only be concerned with i...

posted 1y ago by Lundin‭  ·  edited 1y ago by Michael‭

Answer
69%
+7 −2
Meta Should we disallow ChatGPT-User crawler (and others) from scraping Software Codidact?

A few thoughts from my side (as a ML researcher, without experience in LLMs): I am not sure if it is really useful to block ChatGPT specifically. ChatGPT is only one of many LLMs out there. ...

posted 2y ago by mr Tsjolder‭  ·  edited 2y ago by mr Tsjolder‭

Answer
66%
+2 −0
Q&A "Move symbol" refactor for Python in Visual Studio Codium

Is there a way to add support for "move symbol" in Python code for VS Codium? PyCharm can do this, but I am looking for a VSC solution. PyLance can do this, but PyLance itself is closed source, a...

0 answers  ·  posted 2y ago by matthewsnyder‭  ·  edited 2y ago by matthewsnyder‭

Question python vs-code refactoring
66%
+2 −0
Meta To transfer, or not to, that is the question: whether 'tis nobler to let it stay or to take arms against Stack Overflow's dominance of FAQ canonicals

Perhaps the best way to deal with your SO content is to note in a comment that the canonical answer is no longer maintained by the canonical author, and / or maybe change your username to "username...

posted 2y ago by ajekb78‭

Answer
66%
+2 −0
Q&A Log4j2 not looking for log4j.properties even with the system property set

I had been using log4j2.12.4 jars. When I switched to log4j2.20.0 jars, log4j2 correctly searched for and found the log4j configuration file.

posted 2y ago by tarhalda‭

Answer
66%
+2 −0
Q&A Log4j2 not looking for log4j.properties even with the system property set

I am migrating an application from Log4j1 to Log4j2 using the API bridge jar. All references to the log4j1.jar have already been removed. I set the system property in Websphere as a JVM argument -...

1 answer  ·  posted 2y ago by tarhalda‭  ·  edited 2y ago by Alexei‭

Question java log4j
66%
+2 −0
Q&A VS Code can't find node installation due to dynamically setting the PATH

I installed Node.js using NVS to manage my node installations. This works great, except that I haven't been able to figure out how to debug using VS Code. When trying to launch, I receive this err...

0 answers  ·  posted 2y ago by Moshi‭

Question configuration vs-code
66%
+2 −0
Q&A Redux Toolkit Issue with Managing States

I am all new with using Redux Toolkit, I followed the official documentation to setup the store: // store.ts import { configureStore, ThunkAction, Action, combineReducers } from '@reduxjs/toolkit...

0 answers  ·  posted 2y ago by boudagga.ma94‭

Question reactjs react-redux redux-toolkit
66%
+2 −0
Q&A Maven exec:exec fails to see executables

I am stumped at Maven exec plugin. Running mvn exec:exec -Dexec.executable="curl" (or "echo") works. But when running mvn exec:exec or mvn exec:exec@b (or @a) it fails saying The parameter 'exe...

1 answer  ·  posted 2y ago by LAFK‭  ·  last activity 1y ago by mirabilos‭

Question maven maven-exec-plugin
66%
+2 −0
Code Reviews Writing a testable console program

Not using Rust myself I'll add to @InfiniteDissent's answer on: is there a better way to solve this problem altogether? Yes, there is, it's called a golden master test. Legacy code retreat t...

posted 2y ago by LAFK‭

Answer
66%
+2 −0
Q&A Does Snowflake NATURAL JOIN support outer-style join?

I like using NATURAL JOIN in Snowflake, because I find it more elegant than explicit join clauses. However, it appears that the natural join behaves similar to an inner join, in that null values o...

1 answer  ·  posted 2y ago by matthewsnyder‭  ·  edited 2y ago by matthewsnyder‭

Question sql join snowflake
66%
+2 −0
Q&A Problems with Google Apps Script API JavaScript "How to... Execute function"

TL;DR: Use the versioned deployment id instead of the script id. After repeating the procedures, step by step multiple times, I tried adding the resource.devMode property to the Apps Script REST...

posted 2y ago by Wicket‭  ·  edited 2y ago by Wicket‭

Answer
66%
+2 −0
Q&A How do I find disjoint sets in a dataset

Your example is a bipartite graph in adjacency list format. The cars are nodes on the left, the people are nodes on the right. When a person "has" a car, there is an edge between the car and person...

posted 2y ago by matthewsnyder‭

Answer