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
 
77%
+5 −0
Meta Are questions about language design on-topic?

This is a good question. It depends on how much this site is about getting language X to do Y versus the higher level concepts of software design and computer science that should largely transcend...

posted 2y ago by Olin Lathrop‭

Answer
77%
+5 −0
Q&A How to generate random objects at different locations on x, y, z axis

Since the Vector3 constructor accepts separate X, Y and Z coordinates, if you want to randomise each one individually, you would need to call the Random.Range for each coordinate, e.g. Vector3 spa...

posted 2y ago by deleted user

Answer
77%
+5 −0
Q&A Appropriate HTTP status code for "user confirmation required"

Unless there are reasons for keeping the "check for unintended consequences" and "perform the action" in the same endpoint, I would split them into two parts: GET /api/v1/action-can-charge-the...

posted 3y ago by Alexei‭

Answer
77%
+5 −0
Q&A C Language Standard Linking Specifications

What (if anything) does the C standard have to say about linking objects? My guess is that, because C only defines language->behavior rules, it completely ignores any potential intermediate form...

1 answer  ·  posted 3y ago by Josh Hyatt‭  ·  edited 3y ago by Josh Hyatt‭

Question c standard
77%
+5 −0
Q&A How to deeply clone an array in Angular / TypeScript?

I have an array that I need to clone in Angular / Typescript. That is, any change done on an element from the cloned array should not affect the content of the initial array. How can I achieve thi...

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

77%
+5 −0
Q&A Using nested paths vs. flat ones for API resources

This is based on a code review discussion that I had with a colleague about the way I have designed the resources paths for an ASP.NET Core controller that is currently consumed only internally (by...

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

Question rest api-design
77%
+5 −0
Q&A Why object-oriented instead of class-oriented?

Object and Class aren't necessarily the same thing. Back in the 1980's when object oriented programming started to be talked about by practicing software engineers writing real production code, th...

posted 3y ago by Olin Lathrop‭  ·  edited 3y ago by Canina‭

Answer
77%
+5 −0
Q&A Appropriate HTTP status code for "user confirmation required"

I doubt that there is an actual standard HTTP response code to indicate exactly what you're looking for. 202 (Accepted) is close, but doesn't really seem to me to be about a situation where the cli...

posted 3y ago by Canina‭

Answer
77%
+5 −0
Q&A Kotlin FloatArray from Iterable<Float>

Suppose I am using a Java API from Kotlin and I want to call a function that takes a FloatArray (represented as float[] in Java), and I have an Iterable<Float> as my input data type. To be mo...

1 answer  ·  posted 3y ago by Josh Hyatt‭  ·  edited 3y ago by Alexei‭

Question array kotlin iterable
77%
+5 −0
Meta How to best ask about algorithmic problems

The question How to efficiently remove every occurrence of one string inside another and discussions in the comments there got me thinking about the best way to ask about algorithmic problems. In p...

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 3y ago by Lundin‭

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

The point of VCL is to allow you to work with SIMD operations explicitly. OpenMP simd is more or less just a way to provide hints to the auto-vectorization the compiler is doing, so to some degree ...

posted 3y ago by Derek Elkins‭

Answer
77%
+5 −0
Q&A How to manage CPU capabilities of Jenkins nodes?

We use Jenkins Pipeline to build and test some C++ software. The pipeline script runs the tests on 10 different nodes in a parallel way in order to save time. All of these nodes are real (not virtu...

1 answer  ·  posted 3y ago by anatolyg‭  ·  last activity 3y ago by bta‭

77%
+5 −0
Q&A How to dynamically change panel of ItemsControl?

Let's say I have some collection of data. My goal is to provide different kind of view of ItemsControl depending on user`s preference. For simplicity, we can assume that user can select only betwe...

1 answer  ·  posted 3y ago by FoggyFinder‭  ·  edited 3y ago by FoggyFinder‭

Question c# .net mvvm avalonia
77%
+5 −0
Q&A Why static code analyzers such as SonarQube indicate a high code complexity for switch statements?

It depends on why you have a large switch statement. I'm going to assume it's because you have a large enum. If not, then you probably have some complicated logic, and you should endeavor to break ...

posted 3y ago by Derek Elkins‭

Answer
77%
+5 −0
Q&A How to prevent token from being refreshed

I have an Angular application. The frontend has a mechanism that periodically fetches some information like this: ngOnInit(): void { setInterval( () => { this.http.get(... ).sub...

1 answer  ·  posted 3y ago by klutt‭  ·  last activity 3y ago by meriton‭

77%
+5 −0
Q&A bootstrap : how to align text with a button inside a grid

I have this bootstrap code (grid) <div class="container p-3 center"> <div class="row"> <div class="bg-light border-bottom border-secondary border-top col-6 te...

0 answers  ·  posted 3y ago by meneguzzo68‭  ·  edited 3y ago by Alexei‭

77%
+5 −0
Q&A Migrating HTML strings to a more secure alternative

Switching from HTML to Markdown to minimize risk of HTML injection doesn't make a lot of sense to me, since most Markdown implementations support a subset of HTML inline anyway. The better ones con...

posted 3y ago by r~~‭

Answer
77%
+5 −0
Q&A How to clear the contents of a file?

Simply opening a file for writing (using fopen) will clear it (‘truncate to zero length’, per the standard). Only opening a file in read or append mode will preserve its contents. See section 7.21...

posted 3y ago by r~~‭

Answer
77%
+5 −0
Q&A Handling high frequency requests with cancellations in an ASP.NET Core application

Issue I have recently discussed with a friend a performance issue he and his colleagues have encountered in an ASP.NET Core 5 application (a checkout app, microservices architecture). The problem...

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

77%
+5 −0
Q&A Understanding createTreeWalker method in the context of replacing strings (or parts of them)

How does storing replaced strings in the node variable makes a change in the text appearing to the end user? In your case, you're changing the textContent property. When accessed, it returns t...

posted 3y ago by hkotsubo‭  ·  edited 3y ago by hkotsubo‭

Answer
77%
+5 −0
Q&A Dealing with GETs with long query strings in ASP.NET Core

One of the recent business requirements is to be able to search through a list of entities using a bunch of filters. Most of these filters allow multiple values and the user might theoretically pro...

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

Question rest query-string get
77%
+5 −0
Q&A How this recursive treewalker works?

Note: This answer was written for a version of the question that focused on getting rid of the if-else, rather than on an explanation of the workings of the recursive tree-traversal. One way of ge...

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

Answer
77%
+5 −0
Q&A Should I check if pointer parameters are null pointers?

Whether null pointer checking should be the caller's responsibility or the callee is debatable and probably a matter of opinion, local convention, sometimes logical choices but in all cases should ...

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

Answer
77%
+5 −0
Q&A What are the types of DOM nodes?

any DOM "tree" node is actually a "branch" Not exactly. Document Object Model and Nodes According to the MDN documentation, the DOM (Document Object Model) is "the data representation of the...

posted 2y ago by hkotsubo‭

Answer
77%
+5 −0
Q&A Does a for...of loop must contain a variable without assignment sign, and why?

Does a for...of loop must contain a variable without assignment sign (=) Yes. and why? Because that's the syntax defined by the language specification. The people who defined it decided ...

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

Answer