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
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 »
Q&A

Posts tagged software-practices

1 child tag

For questions that ask about the benefits of using a certain style, framework, etc. (possibly over others), ask about best practices, or otherwise ask about software practices. These types of questions usually ask, "Should I" or "Is it a good idea to", rather than "How", "What" or "Why".

This tag doesn't have a detailed wiki yet.

62%
+3 −1
Q&A Are there practical reasons for designing a method-only class/object?

Are there practical reasons for designing/implementing a method(s)-only class/object? Follow-up background notes: This question is for languages that are not exclusively Object-Oriented, for exam...

3 answers  ·  posted 2y ago by CodeFarmer‭  ·  last activity 1y ago by hkotsubo‭

80%
+6 −0
Q&A Is it a good idea to have a permanent branch for a feature?

I'm rather new to using git, so I'm not sure about the best practices regarding it. I have a feature branch branched off, and periodically when the feature needs to be updated I will add some commi...

3 answers  ·  posted 2y ago by Moshi‭  ·  last activity 1y ago by Hyperlynx‭

64%
+7 −3
Q&A Is omitting braces for single statements bad practice?

Consider this code: while(arr[index] != 0) index++; vs while(arr[index] != 0) { index++; } Personally, I prefer the first. The fact that the braces are not needed makes them -- u...

5 answers  ·  posted 2y ago by klutt‭  ·  last activity 2y ago by Lundin‭

88%
+14 −0
Q&A How should we share some content between two otherwise-independent git repositories?

We have two teams, dev and doc, and I'd like them to have shared access (via git) to a common subset of content. Specifically, I would like the examples that are used in the doc and that are scrip...

4 answers  ·  posted 3y ago by Monica Cellio‭  ·  last activity 2y ago by Monica Cellio‭

20%
+0 −6
Q&A What do smaller cloud companies offer that Big Tech clouds don't? [closed]

I don't understand why American Virtual Cloud Technologies, Inc and other similar teeny cloud computing platforms still exist, and haven't either gone bankrupt, or been acquired by one of Big Tech...

0 answers  ·  posted 2y ago by TextKit‭  ·  closed 2y ago by Alexei‭

72%
+6 −1
Q&A What is do { } while(0) in macros and should we use it?

Background I can see the need to use {} when implementing a function-like macro such as this one: #define HCF(code) fprintf(stderr, "halt and catch fire"); exit(code); Because if we use the fo...

2 answers  ·  posted 2y ago by Lundin‭  ·  last activity 2y ago by Pete W‭

Question c code-style macros
83%
+8 −0
Q&A For scripting what are the pros and cons of command line arguments versus capturing input at the start?

Let's say I have a script that needs the user to set X number of variables at the start. One can either Pass the arguments in on the command line. Start the program and then have the user input th...

3 answers  ·  posted 2y ago by Charlie Brumbaugh‭  ·  last activity 2y ago by klutt‭

72%
+6 −1
Q&A Which abstraction should I choose for background services and why?

Which concept is best for managed background services? 1. RunAsync(CancellationToken): interface IWorker { Task RunAsync(CancellationToken cancellationToken = default); } ... IWorker worker =...

1 answer  ·  posted 2y ago by Kir_Antipov‭  ·  last activity 2y ago by Alexei‭

16%
+1 −13
Q&A What is the worst code you ever saw? [closed]

In the interest of learning from the mistakes of other people: What is the worst code you ever saw? What made it so bad?

1 answer  ·  posted 2y ago by meriton‭  ·  closed 2y ago by Mithical‭

76%
+8 −1
Q&A Styling with classes vs styling with CSS

I've noticed that a lot of sites have something like this going on: <div class="has-margin-0 has-padding-4"> <div>...</div> <div>...</div> ... </div>...

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

80%
+6 −0
Q&A Is it recommended for ASP.NET Web API actions to always include a CancellationToken?

Note: This is basically a question from Stack Overflow that was closed for a very long period of time and I fear it might get closed again as primarily opinion based. I am wondering if my ASP.NET C...

1 answer  ·  posted 3y ago by Alexei‭  ·  last activity 2y ago by Peter Taylor‭

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 3y ago by Kami‭  ·  edited 3y ago by Monica Cellio‭