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
2.6k posts
 
75%
+4 −0
Q&A Can Matlab packages have subdirectories?

I'd like to organize my Matlab packages into folders. However, if I try to lay out my code like this +MyPackage |---foo.m |---SubDir |---bar.m then I'm unable to reach bar. F...

1 answer  ·  posted 1y ago by zaen‭  ·  last activity 1y ago by zaen‭

Question matlab
75%
+4 −0
Q&A Why can parentheses cause exceptions in Python when using for loops?

A single element tuple has a trailing comma Note that the example in the question does not form a tuple, as there is a special syntax for single element tuples. A single element tuple has a traili...

posted 1y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭

Answer
75%
+4 −0
Q&A Can freed pointers undergo lvalue conversion?

I see it such that it is undefined behavior (I refer to N1570 as the OP https://port70.net/~nsz/c/c11/n1570.html): After free(p), the lifetime of the object pointed to has ended (7.22.3p1: "The li...

posted 1y ago by Dirk Herrmann‭

Answer
75%
+4 −0
Code Reviews Vanilla JS Functions Review

I wanted to create a simple static website that would use JS to randomly rotate through a quotes.json file I maintain. My JavaScript experience is more limited as it's not what I do at work, so wha...

1 answer  ·  posted 1y ago by fausty‭  ·  last activity 1y ago by fausty‭

Question javascript
75%
+4 −0
Q&A How do I get something similar to dictionary views, but for sequences?

It isn't writable (but then again, neither are the dictionary views), but you might be interested in more_itertools.SequenceView.

posted 1y ago by r~~‭

Answer
75%
+4 −0
Meta Should we allow SEO related questions?

The scope currently lists as on-topic: Best practices, as long as clear "best" criteria are provided. Examples: fastest execution, least memory use, widest tool support for a target, most begi...

posted 2y ago by Peter Taylor‭

Answer
75%
+4 −0
Code Reviews CSS grid with expanding cells

Goal Our goal is to create a kind of table, using HTML/CSS/JS, with cells that expand when you click on them. If you click on a header, the whole row or column will expand. This in itself is not ...

0 answers  ·  posted 1y ago by berrie‭  ·  edited 1y ago by berrie‭

75%
+4 −0
Meta "Review suggested edit" page doesn't display Markdown source correctly

While reviewing older bug reports we discovered that the first problem is now working; the code fences show up in the diff. The second one still shows as one line without a clear diff, but I don't...

posted 2y ago by Monica Cellio‭

Answer
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 10mo ago by meta user‭

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‭

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
Q&A Appropriate HTTP status code for "user confirmation required"

I'm working on a system where the frontend will make a call to the backend to perform an action. Sometimes this action can cause other unintended consequences (like charging the customer), in thes...

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

75%
+4 −0
Meta Should we allow UI/UX questions in our community?

I think it should be on-topic with the following distinction: On-topic Technical questions regarding to UI, including mark-up language syntax, how to set properties in RAD tools, how to use gra...

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Q&A In the current development context (2020+), is there any reason to use database triggers?

This is somewhat of a non-answer because I also think the answer is mostly "no". I'll split kinds of triggers into three categories. 1) Those that only touch the affected rows, 2) those that addit...

posted 3y ago by Derek Elkins‭

Answer
75%
+4 −0
Q&A What are the disadvantages of using auto mapper libraries?

I have noticed that lots of projects (both in real-world and within online courses) use Automapper to map domain models to view models, API models. The main advantage seems to be convenience by re...

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

Question automapper
75%
+4 −0
Q&A In the current development context (2020+), is there any reason to use database triggers?

I have not used a database trigger in years in the projects of the teams I have worked in, but I have seen them being used by other teams. Back in 2009, it seemed like a heated debate, but I am wo...

1 answer  ·  posted 3y ago by Alexei‭  ·  last activity 3y ago by Derek Elkins‭

75%
+4 −0
Q&A What advantages does Agner Fog's VCL have over OpenMP?

Agner Fog has this C++ Vector Class Library, which is ... useful for improving code performance where speed is critical and where the compiler is unable to vectorize the code automatically in an...

1 answer  ·  posted 3y ago by anatolyg‭  ·  edited 3y ago by Alexei‭

75%
+10 −2
Q&A Conditionally ignore files in git

I'm not familiar with Latex, but it seems the PDFs are generated from the Latex files. It then seems the real problem is that you are trying to keep source and objects derived from that source in ...

posted 3y ago by Olin Lathrop‭

Answer