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
 
75%
+4 −0
Q&A Keep local branch changes to resolve all remaining conflicts in a merge

git checkout --ours -- * --theirs would do the opposite, i.e. keep the changes from branch-y. Don't forget to git add later!

posted 2y ago by Quasímodo‭  ·  edited 2y ago by Quasímodo‭

Answer
75%
+4 −0
Meta Participate Everywhere ability without meeting the requirements?

I noticed I have the ability Participate Everywhere even though I do not meet the requirements (Having roughly 75% of my posts to be positively received, with a minimum of 5 positively-recieved pos...

2 answers  ·  posted 2y ago by Ethan‭  ·  edited 1y ago by meta user‭

Question bug status-bydesign abilities
75%
+4 −0
Q&A How to configure .gitignore to ignore all files except a certain directory

MWE In the terminal run: mkdir mwe cd mwe mkdir dir touch f1.txt f2.pdf dir/f1.txt dir/f2.pdf git init . Create a .gitignore with: * # ignore all !dir/ # except this directory ...

1 answer  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by Moshi‭

Question git gitignore
75%
+4 −0
Meta Questions easily answered by studying a beginner-level book

There's still time This scenario is not yet a problem for this site, but we will get there, since it's a huge problem for Stack Overflow This topic should be separately addressed, too. At ti...

posted 1y ago by Karl Knechtel‭

Answer
75%
+4 −0
Meta How can Q&A sites coexist with LLMs?

My take on this: Q&A sites used to fill two distinct roles, but only one of these (the more boring one that doesn't matter anyway) is usurped by LLMs. The interesting one is not yet in danger o...

posted 1y ago by matthewsnyder‭

Answer
75%
+7 −1
Q&A What are statements and expressions?

In computer programming, an expression is something that yields a value. A statement performs an action. For example, let us look at some pseudocode. Let's assume that we want to calculate the su...

posted 1y ago by FractionalRadix‭

Answer
75%
+4 −0
Q&A JavaScript redirect is getting "hijacked" and it is not onbeforeunload event.

My redirect in javascript somehow gets "hijacked" and I don't understand how. Previous developer (who is no longer working with the company) on page load initialized onbeforeunload event like so: ...

1 answer  ·  posted 1y ago by Vanity Slug ❤️‭  ·  last activity 1y ago by Vanity Slug ❤️‭

Question javascript redirect
75%
+4 −0
Q&A Readable syntax for executing many callables with useful side effects

In Python, multiprocessing is easy to do if you follow a "list projection" paradigm. Say you want to take a list of inputs X and apply some function f to every x_i, such that y_i = f(x_i) and the y...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by mr Tsjolder‭

Question functional-programming python-3 multiprocess
75%
+4 −0
Q&A Why is git merge from rather than to?

Another reason could be to allow to perform the merge without auto commit and no fast-forward: git merge the_branch --no-commit --no-ff This allows reviewing the merged changes before they are ...

posted 1y ago by Alexei‭

Answer
75%
+4 −0
Meta How can Q&A sites coexist with LLMs?

New LLMs like ChatGPT are now creating competition with Q&A sites like Codidact and StackOverflow. Moreover, this is parasitic: LLMs get "boosted" by Q&A sites because they can use them for...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y 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 4y 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 4y ago by Estela‭  ·  last activity 4y 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 4y 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 4y ago by jrh‭  ·  edited 4y 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 4y 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 4y ago by pnuts‭  ·  last activity 4y 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 4y ago by Alexei‭  ·  last activity 4y 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 4y 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 4y 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 4y ago by r~~‭  ·  edited 4y 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
75%
+4 −0
Q&A Is there an equivalent way of returning early in a MySQL stored procedure?

In programming instead of arrowcode where one has many layers of indented if statements, you can return a result as soon as possible. So instead of, if if end if end if It looks like if ret...

1 answer  ·  posted 4y ago by Charlie Brumbaugh‭  ·  edited 4y ago by Moshi‭

Question mysql stored-procedures
75%
+4 −0
Meta Give actionable feedback when closing questions

This is a current limitation of the software. Right now, there is simply no way to add detailed feedback to the close reason. There is a list of pre-written close reasons (which can be set per site...

posted 4y ago by Moshi‭

Answer
75%
+4 −0
Q&A How to store credentials for PHP scripts on a Windows machine?

Solution 1: Honestly, it is a best practice used by current frameworks (symfony, laravel) to use an .env file that you will have into the .gitignore. On the otherside, you will commit a .env.dist o...

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

Answer