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
 
71%
+3 −0
Q&A Why is boolean value f (false) defined as a parsing-word while t (true) is not in Factor?

The answer is indicated on the page for f. Specifically, "[t]he f object is the singleton false value, the only object that is not true." In contrast, t is defined simply as SINGLETON: t where SING...

posted 2y ago by Derek Elkins‭

Answer
71%
+3 −0
Meta Renaming GNU/Linux tag to gnu

I don't think GNU can be used as a stand-alone tag. Apart from the OS, GNU is also a tool collection of various programs, many used for programming, making is a very ambiguous tag which can't stan...

posted 2y ago by Lundin‭

Answer
71%
+3 −0
Q&A Assert that some code is not present in the final binary, at compile or link time.

I'd like to assert that some code can be optimized out, and is not present in the final binary object. #define CONSTANT 0 #if (!CONSTANT) [[landmine_A]] #endif static int foo(void); void...

1 answer  ·  posted 3y ago by alx‭  ·  last activity 3y ago by alx‭

Question c compiler-errors gcc compiler-warnings clang
71%
+3 −0
Meta Asking and answering FAQ style questions

Yes it is fine and probably encouraged even. I have written several self-answered Q&A here and they were mostly well-received. They aren't all that easy to write though, especially getting the ...

posted 2y ago by Lundin‭

Answer
71%
+3 −0
Q&A Is there any benefit to using new?

Well, you still need (placement) new for the implementation of the smart pointers themselves. You would also use it (or malloc) to implement custom allocators, for example: https://www.boost.org/d...

posted 2y ago by Dirk Herrmann‭

Answer
71%
+3 −0
Q&A Can UWPNuGetPackages be moved to another drive?

Apparently this is controlled by the registry value Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\NuGet\Repository\UWPNugetPackages. I changed it from C:\Program Files (x86)\Microsoft SDKs\UWPNu...

posted 2y ago by Ullallulloo‭

Answer
71%
+3 −0
Q&A Cast uninitialized variable to (void)

Is it undefined behaviour to cast an uninitialized variable to (void)? Example: int main() { int x; (void)x; return 0; }

4 answers  ·  posted 2y ago by Estela‭  ·  last activity 2y ago by Ethan‭

Question c casting
71%
+3 −0
Q&A How to plot table from pandas dataframe

If you want a table for including in a latex document, then DataFrame.to_latex should be the best way. import pandas as pd import numpy as np df = pd.DataFrame(np.random.rand(9, 4), columns=['a'...

posted 2y ago by Goyo‭  ·  edited 2y ago by __blackjack__‭

Answer
71%
+3 −0
Q&A How to add vertical lines for visual separation in pandas plot

One possibility with axvline: import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd']) df.plot.bar() plt....

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

Answer
71%
+3 −0
Q&A How to add vertical lines for visual separation in pandas plot

MWE import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd']) df.plot.bar() plt.show() Question Ho...

2 answers  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by samcarter‭

Question python plot pandas matplotlib
71%
+3 −0
Q&A Do you need to use std::move to store a parameter passed by value?

Update: Distinguished between the general case and cases (as with std::string) where it is known that there are no side effects. In the general case, the substitution of the call to a copy constru...

posted 3y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
71%
+3 −0
Q&A Do you need to use std::move to store a parameter passed by value?

If you have a class which needs to store a construction parameter internally, and you want to take advantage of move semantics, I understand that the parameter should be passed by value: class Foo...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 2y ago by Dirk Herrmann‭

Question c++ reference
71%
+3 −0
Q&A Cast uninitialized variable to (void)

It is undefined according to my reading of the standard (I am referring to the latest public draft). int x; (void)x; In the second line, (void)x is a full expression, but x by itself is alread...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
71%
+3 −0
Q&A How to correctly daemonize a Rocket-based app?

Summary I'm refactoring a Rust-based service/daemon to move away from gRPC and use a Rocket-based API instead. I'm also using the daemonize crate to turn the foreground process into a background p...

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

Question rust rocket daemon
71%
+3 −0
Q&A C naming convention, module trigrams?

Starting with the goals: A naming convention typically aims at supporting several, partly contradictory goals, among which are the following: Compliance with the limitations of the language stan...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
71%
+3 −0
Q&A What allows a string slice (&str) to outlive its scope?

There are two things going on here. One which technically explains what's going on fully, and another potential misconception you have. For the former, &T implements the Copy trait regardless ...

posted 3y ago by Derek Elkins‭

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

An alternative to grep is Awk, which makes this pretty easy. To find lines which contain both: find . -type f -exec awk '/foo/ && /bar/' {} + (Maybe add { print FILENAME ":" FNR ":" $0...

posted 2y ago by tripleee‭

Answer
71%
+3 −0
Q&A Clear selectManyMenu component if user unselects item in JSF 2

I am working with JSF 2.3 and have a selectManyMenu component that is marked as required but that I want to be cleared if the user unselects all items. Currently, the user can unselect all items, b...

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

Question java ajax jsf selectmanymenu
71%
+3 −0
Q&A Using DBUS and GTK in one perl program

I haven't developed with Perl or DBUS myself (but I have used GTK), so I can only give an answer in general terms rather than specific details. In most, if not all, GUI frameworks, the "run" or "m...

posted 2y ago by deleted user

Answer
71%
+3 −0
Meta Best practices for posting tabular data

I just found a post in Codidact Meta using showing a rendered table. Looking at the post content, it is using markdown. Playing a bit, I found that the following "plain text" (intended to show ma...

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

Answer
71%
+3 −0
Meta Spreadsheets apps as end user development tool / spreadsheet formulas as a form of funtional programming

I have found Can we migrate office suite related questions to the Power Users community?, apparently, with a score of +7, 3 answers, but it looks like no decision have made so far. Despite not hav...

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

Question discussion scope
71%
+3 −0
Meta Merge spreadsheet formula tags into single tag

Done. I've merged all these tags together and synonymized them. I've also gone ahead and given you the ability to edit tag wikis - we're in need of people who can curate tags!

posted 2y ago by ArtOfCode‭

Answer
71%
+3 −0
Meta Merge [functions] with [function]

Makes sense to me! Done as of a few minutes ago.

posted 2y ago by ArtOfCode‭

Answer
71%
+3 −0
Q&A When is it OK for duplication of information between message header and payload in a distributed software application?

Nowadays DRY is usually with regards to code, not data. Regardless, even for data, DRY does not outlaw duplication, it just requires a single "authoritative" copy. There are certainly similar ideas...

posted 2y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Summing values formatted for a different locale

LEFT returns a text value, so it's working as expected. You might put the LEFT function inside VALUE function to convert the value returned by LEFT into a number. This applies to other spreadsheet ...

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

Answer