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
 
84%
+9 −0
Meta On self-answered questions, is it inappropriate to mark my own answer "Works for me" immediately?

Would it discourage others from posting answers, if they saw that a question had an answer with a "works for me" indication applied immediately? (More so than just seeing an immediate, comprehensiv...

3 answers  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by matthewsnyder‭

Question discussion policy site-culture self-answered-questions
84%
+9 −0
Q&A How can I build a string from smaller pieces?

Before attempting this, make sure it makes sense in context. In a few particular situations, it would be better to take a different approach rather than using the normal tools for composing or f...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
84%
+9 −0
Q&A Child div doesn't inherit parent's div background-color

It's because of this rule: *{ background: rgb(3, 28, 87); } That applies the darker blue background to every element individually, and that isn't overridden when you change the background o...

posted 2y ago by r~~‭

Answer
84%
+9 −0
Q&A grep AND search for multiple words in files

Between-lines relations are not easy to look for with grep, which is a line filter. You could use a regex that spans lines, but I find this annoying because of all the flags you have to set. Grep ...

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

Answer
84%
+9 −0
Q&A grep AND search for multiple words in files

I have text (xml actually) files. Some files contain 'foo', some contain 'bar', some contain neither and some contain both. It's the both I'm interested in. How do I do an AND search on words in...

5 answers  ·  posted 2y ago by mcalex‭  ·  last activity 2y ago by tripleee‭

Question grep file-handling
84%
+14 −1
Q&A What's the correct way to merge a branch and its dependent branch back to master?

In git I branched feature-A from master. To reduce eventual merge conflicts later, I branched feature-B, which heavily overlaps and depends on A, from feature-A. A build of the feature-B branch s...

2 answers  ·  posted 3y ago by Monica Cellio‭  ·  edited 3y ago by hkotsubo‭

Question git git-branch branching-strategy
84%
+14 −1
Q&A What is the difference between operator precedence and order of evaluation?

When doing something simple such as this int a=1; int b=2; int c=3; printf("%d\n", a + b * c); then I was told that operator precedence guarantees that the code is equivalent to a + (b * c)...

2 answers  ·  posted 4y ago by Lundin‭  ·  last activity 4mo ago by Alexis Wilke‭

Question c operator-precedence order-of-evaluation unspecified-behavior
84%
+14 −1
Q&A What is do { } while(0) in macros and should we use it?

The sole purpose of the do { } while(0) is to write macros that accommodates to all manner of diverse coding styles. It is quite common not to use braces after if statements, so this is a common co...

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

Answer
83%
+8 −0
Meta Posts list shows luap42 instead of actual author

The current two top questions at https://software.codidact.com/ ( https://software.codidact.com/q/279699 and https://software.codidact.com/q/278674) are marked as coming from luap42: However, wh...

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

Question bug
83%
+8 −0
Q&A How do I find the order that yields the shortest path?

The Problem I have a path optimization problem that in some ways reminds me of the Traveling Salesman Problem, but differs in some key respects. I have a group of items that need to be used by a m...

1 answer  ·  posted 4y ago by matthewb‭  ·  edited 4y ago by matthewb‭

Question algorithms
83%
+8 −0
Q&A Is MISRA-C useful outside safety-critical and embedded programming?

It is true that MISRA-C has a heavy focus on embedded system, though it has become somewhat more generic over time. The MISRA guidelines have been changed and improved several times over the years ...

posted 4y ago by Lundin‭  ·  edited 4y ago by ghost-in-the-zsh‭

Answer
83%
+8 −0
Meta The size of the code format window is much too small.

I agree. Something that might be more useful is to allow the text boxes to be resizeable by the user. In most places, there's a small tab on the lower-right corner of a text box that allows the use...

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

Answer
83%
+8 −0
Q&A Is MISRA-C useful outside safety-critical and embedded programming?

When discussing best or safest C programming practices with various C gurus on the Internet, the "MISRA-C guidelines for the use of C language in critical systems" often pops up as a source. This ...

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

Question c misra-c
83%
+8 −0
Q&A Is there a way to estimate the execution time of a statement in MySQL?

From time to time I will have large structural changes to make on my MySQL DB, things like adding columns, changing datatypes, adding indexes etc. These types of changes result in downtime and what...

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

Question mysql
83%
+8 −0
Meta Renaming sheets to the more specific google-sheets?

Google Sheets isn't a company name, it's a product name. A tag called google-sheets is perfectly fine. Google doesn't market this product as "Sheets", they market it as "Google Sheets". What is not...

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

Answer
83%
+8 −0
Q&A Is an ORDER BY required when looping through MySQL records with LIMIT?

Any time an SQL SELECT query does not have any explicit ORDER BY clause, I personally find it useful to mentally read it as saying "I don't care about ordering of the output of this query". If you...

posted 4y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
83%
+8 −0
Meta Are Linux-related questions on-topic?

I'm trying to learn Linux, and I've got plenty of questions to ask on the subject, especially when it comes to differences between Linux's command line and Apple's. Would such questions be accepted...

1 answer  ·  posted 4y ago by DonielF‭  ·  last activity 4y ago by klutt‭

Question discussion scope
83%
+8 −0
Q&A How can I emulate regular expression's branch reset in Java?

I've got this sample regex: Pattern p = Pattern.compile("(?:([aeiou]+)[0-9]+|([123]+)[a-z]+)\\W+"); It basically has the following parts: one or more lowercase vowels ([aeiou]+), followed by one ...

2 answers  ·  posted 4y ago by hkotsubo‭  ·  last activity 4y ago by hkotsubo‭

Question java regex
83%
+8 −0
Q&A Why would excluding records by creating a temporary table of their primary keys be faster than simply excluding by value?

Why would the second way be faster? Generally speaking, the first form will perform worse (as well as looking a lot worse) than the second. You are hitting an edge case where the opposite is true...

posted 4y ago by Jack Douglas‭

Answer
83%
+8 −0
Meta Asking software architecture related questions on Software Development community

Context Over the years I had a hard time addressing questions about software architecture like these ones . Soon after posting them, they receive a couple of downvotes and close votes which set the...

2 answers  ·  posted 4y ago by Alexei‭  ·  last activity 4y ago by shagie‭

Question discussion scope architecture
83%
+8 −0
Q&A Should I cast to (void) when I do not use the return value

I saw at least one compiler (Codewarrior for HC12) warn me if I use a function without using it's return value. Other compilers (clang/gcc) do not issue a warning though, even when using the std=90...

3 answers  ·  posted 4y ago by Kami‭  ·  edited 4y ago by Monica Cellio‭

Question c software-practices
83%
+8 −0
Q&A How can I define a method on [&mut T] where T: MyTrait?

I'm trying to make a trait method callable on mutable slices of a type implementing that trait (see main). Rust doesn't like me for it. use core::convert::AsMut; trait A { type B; fn f(m: ...

1 answer  ·  posted 4y ago by wizzwizz4‭  ·  last activity 4y ago by r~~‭

Question rust compiler-errors
83%
+8 −0
Meta Enabling 2FA should include some recovery codes

After enabling two factor authentication (2FA) for my account I'm only notified It is successfully turned On. I think it should include some recovery codes as well (to be used in case I can't acce...

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

Question support feature-request status-completed
83%
+8 −0
Q&A What are the pros and cons of a composite primary key versus a unique constraint?

Facts In relational theory, each row in a relation is uniquely identified by a primary key. That's why some purists say that every table should have a primary key. Foreign keys usually reference a ...

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

Answer
83%
+8 −0
Q&A How are integers interpreted in contexts that expect a date?

SQL Server uses '1900-01-01' as a "zero-point" in DATEDIFF(dd, 0, some_date): select DATEDIFF(dd, 0, '1900-01-01') --> 0 select DATEDIFF(dd, 0, GETDATE()) --> 44066 days since the "zero-d...

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

Answer