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 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 5y ago by davidbonachera‭  ·  edited 5y ago by davidbonachera‭

Answer
75%
+4 −0
Q&A Would a MySQL database run more efficiently with smaller varchar lengths?

I have a database with quite a few VARCHAR fields. When the database was first built the lengths of the columns were set a bit larger than absolutely necessary. Now after, having used the DB for a ...

3 answers  ·  posted 5y ago by Charlie Brumbaugh‭  ·  last activity 4y ago by manassehkatz‭

Question mysql performance varchar
75%
+4 −0
Q&A How do I get IIS UrlRewrite to handle CSS-delivered woff files appropriately?

Context: Azure; Windows Server 2012; IIS 8 First up, here's the (redacted) web.config for reference <rewrite> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="false"&...

0 answers  ·  posted 5y ago by bugmagnet‭  ·  edited 4y ago by Alexei‭

Question iis url-rewriting woff
75%
+7 −1
Meta Importing Selected Q&A?

Just mass-importing from elsewhere is generally bad. Look at the mess this has made of the Outdoors and Scientific Speculation sites, for example. Bringing over your own content is a bit different...

posted 5y ago by Olin Lathrop‭  ·  edited 5y ago by Olin Lathrop‭

Answer
75%
+4 −0
Q&A Why would excluding records by creating a temporary table of their primary keys be faster than simply excluding by value?

is_excluded = 1 is very different from do_not_touch != 1. Whenever possible, try to structure your data and queries so that you can do an equi-join - that is, compare things using an = comparison. ...

posted 5y ago by BobJarvis‭

Answer
75%
+10 −2
Q&A What are the pros and cons of a composite primary key versus a unique constraint?

Let's say we have two tables A and B and a join table C that has foreign keys to both A and B and the combination of those foreign keys is unique. One could either do a unique constraint or a comp...

2 answers  ·  posted 5y ago by Charlie Brumbaugh‭  ·  edited 4y ago by Alexei‭

Question sql primary-key unique-constraint
75%
+4 −0
Q&A What is a standard definition (or a CS theory based formal definition) for Escaping?

The term escape sequence apparently dates back to the telegraph and pre-computer technology, according to wikipedia: https://en.wikipedia.org/wiki/Escape_sequence. So I doubt there's an universally...

posted 5y ago by Lundin‭

Answer
75%
+4 −0
Q&A What is a standard definition (or a CS theory based formal definition) for Escaping?

I personally would define "escaping" in software development in general and coding in particular as follows: Making an exception to match data which otherwise would not be allowed to be matched: I...

1 answer  ·  posted 5y ago by deleted user  ·  edited 4y ago by Alexei‭

Question string escaping
75%
+4 −0
Q&A Is it possible in MySQL to require each row in a table have at least one foreign key record in a join table?

If I understand your question correctly, i.e. Is it possible to enforce that constraint at the database level? Then the short answer is: No. In the business logic for the program, every re...

posted 4y ago by ghost-in-the-zsh‭

Answer
75%
+4 −0
Q&A Is omitting braces for single statements bad practice?

I'm in the "Use the braces. Just use them every time" camp [1]. As others have suggested you or your tooling will catch a lot of cases where you screw up on this, but the ones that slip through can...

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

Answer
75%
+4 −0
Q&A Unable to `mount` overlayfs in Docker container when inside a LXC with a ZFS pool

Summary/Context I'm currently working to improve performance and throughput of our automation infrastructure, most of which is a combination of Bash/Shell scripts, Python scripts, Docker, Jenkins,...

1 answer  ·  posted 4y ago by ghost-in-the-zsh‭  ·  last activity 4y ago by ghost-in-the-zsh‭

Question linux bash docker lxc zfs
75%
+4 −0
Q&A Why would an unique index get moved to the primary key after the underlying column is dropped?

I can't say that I fully understood what you did, but I think I got the explanation: removed 1+ columns that were part of the index. The index will be updated to not include that column. If...

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

Answer
75%
+4 −0
Q&A Iterating through a MySQL table with a LIMIT clause and PHP gets progressively slower

LIMIT/OFFSET, fundamentally, is slow for large datasets. With a clause like LIMIT 10000 OFFSET 150000, you're asking the query engine to find 160,000 rows, then throw away 150,000 of them. Hardly e...

posted 4y ago by ArtOfCode‭

Answer
75%
+4 −0
Q&A Is there a way to automatically fix MySQL tables where the auto_increment has fallen behind the correct value?

Due to a series of unfortunate events I have some tables where the auto_increment value got behind what it should be. If the auto_increment value is 9 and there are 20 rows in the table the next 1...

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

Question mysql auto-increment
75%
+4 −0
Q&A Static and thread_local initialization order

Is there any guarantee regarding initialization of static and thread_local objects? In example, is there any guarantee about the value printed by the following program? #include<iostream> s...

1 answer  ·  posted 4y ago by Estela‭  ·  edited 4y ago by Alexei‭

Question c++ static thread-local
75%
+7 −1
Q&A How to choose backend technology for my project?

I am planning to build a "Customer Management Portal" as a hobby project using technologies like HTML,CSS,JavaScript,JAVA,JDBC,Oracle Database.The description of the portal is: 1)Customer details ...

3 answers  ·  posted 4y ago by aditya98‭  ·  last activity 4y ago by Matthewericfisher‭

Question backend
75%
+4 −0
Q&A How to choose backend technology for my project?

There are a lot of factors that can go in the choice of a language: Do the properties of the language itself meet your requirements (e.g., C allows for more low-level optimizations than Visual ...

posted 4y ago by Peter‭  ·  edited 4y ago by manassehkatz‭

Answer
75%
+4 −0
Q&A Capture args from repeatable flags in Golang pflags package

How do I create a flag that can be used multiple times in a command using the pflag package? For example, let's say I wanted to select multiple fields and did not want to have to use comma-separati...

1 answer  ·  posted 4y ago by qohelet‭  ·  edited 4y ago by Alexei‭

Question go parameters pflag-go
75%
+4 −0
Q&A Is it necessary for a build server to remove node_modules before an AOT build?

I suspect this is an outdated practice: Prior to npm 3, npm did not keep track of resolved dependencies, and npm install would try to reconcile the existing with the declared dependencies. Since no...

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

Answer
75%
+4 −0
Q&A List what file(s) an identifier was declared in?

I'm using Doxygen to help me figure out some library code. There's an enum I know I need to use, but I don't know which file it's declared in. Searching for that identifier in Doxygen yields the p...

1 answer  ·  posted 4y ago by Hyperlynx‭  ·  last activity 4y ago by summea‭

Question doxygen
75%
+4 −0
Meta Enable text-area for comments to be resized

I was wondering if the comment box can be altered? So the text-area can be expanded/re-sized? It's quite frustrating to get to the right text scrolling in such small box whilst it's not interactiv...

1 answer  ·  posted 4y ago by gzi98‭  ·  last activity 3y ago by Monica Cellio‭

Question discussion feature-request status-completed
75%
+4 −0
Q&A Resize HTML canvas with respect to inner content

I am currently making an esoteric language which requires a theoretically infinite canvas. Basically, it should be able to resize and fit the contents of the drawing in and outside it's existing bo...

0 answers  ·  posted 4y ago by Razetime‭

Question javascript html canvas
75%
+4 −0
Q&A Capture args from repeatable flags in Golang pflags package

Yes, this is supported by the flag definition functions with Array or Slice in their names. See the reference docs for pflag. A simple example below: package main import ( "fmt" ...

posted 4y ago by overtime‭

Answer