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
 
50%
+0 −0
Code Reviews Serial copying from disk images to folder in Bash

The following answer was given by SE user Edward. The original source can be found here. The other answer gave some really good advice; this is intended as a complementary answer with still more...

posted 2mo ago by aura-lsprog-86‭

Answer
50%
+0 −0
Q&A How to correctly model the delay timer for a CHIP8 emulator written in C?

I received this answer in SE. Sadly, the user who wrote the answer is no longer in the site. Don't use threads and synchronization primitives (semaphores, shared memory, etc) for this. In fact, ...

posted 1mo ago by aura-lsprog-86‭

Answer
50%
+0 −0
Q&A How to correctly model the delay timer for a CHIP8 emulator written in C?

I asked this question in SE a while back. TL;DR I need to emulate a timer in C that allows concurrent writes and reads, whilst preserving constant decrements at 60 Hz (not exactly, but approxima...

1 answer  ·  posted 1mo ago by aura-lsprog-86‭  ·  last activity 1mo ago by aura-lsprog-86‭

Question c linux multithreading emulation chip-8
50%
+0 −0
Q&A Dynamically do something after a useState variable has been set?

useEffect(() => { // do something }, [myVar]);

posted 3mo ago by propatience‭  ·  edited 3mo ago by propatience‭

Answer
50%
+0 −0
Q&A Why is a for loop getting stuck when using a uint64_t counter, whereas a while loop isn't?

SE user DU Jiaen provided the following answer, edited by Martin Zabel and found here. The expression i >= 0 is always true if i is of an unsigned integer type. The alternative and simple way...

posted 2mo ago by aura-lsprog-86‭

Answer
50%
+0 −0
Q&A Why is a for loop getting stuck when using a uint64_t counter, whereas a while loop isn't?

SE user M Oehm provided with the following answer, as it can be found here. The condition i >= 0 is always true if i is an unsigned type. Decrementing an unsigned zero will not produce a nega...

posted 2mo ago by aura-lsprog-86‭

Answer
50%
+0 −0
Q&A How to disable debug windows automatically opening up when I hit a breakpoint in vscode?

In settings search for debug open. Find setting called "Debug: Open Debug" and in drop down set it to neverOpen.

posted 2mo ago by Vanity Slug ❤️‭

Answer
50%
+0 −0
Q&A Is it a bad idea to block proxies/vpns for interacting with my app?

For contact form spam specifically, there is a more direct solution. If you use a form service like formspree.io it will already have built in spam filtering features. This isn't based around tryin...

posted 3mo ago by matthewsnyder‭  ·  edited 3mo ago by matthewsnyder‭

Answer
50%
+0 −0
Q&A How can I set a private class instance variable to the File object used by an unmarshaller?

I've found a way to set the private field without exposing it or giving it a setter: Reflection. Using external event listeners, I can get ahold of the File object. Then, inside the beforeUnmarsha...

posted 2mo ago by aura-lsprog-86‭  ·  edited 2mo ago by aura-lsprog-86‭

Answer
50%
+0 −0
Code Reviews Serial copying from disk images to folder in Bash

The following answer was given by SE user Oh My Goodness. The original source can be found here. Instead of cat "$x" | command or echo "$x" | command, use command <$x (vs cat) or command ...

posted 2mo ago by aura-lsprog-86‭  ·  edited 2mo ago by aura-lsprog-86‭

Answer
50%
+0 −0
Code Reviews A simple implementation of a mutable String in C

My biggest gripe with your code is the (almost) complete lack of comments! Nothing gives even a brief overview of what this library is supposed to do, and we are left to guess what the subroutines...

posted 2mo ago by Olin Lathrop‭

Answer
50%
+0 −0
Q&A Why does a lack of object encapsulation constitute a security breach?

TL;DR: Imperfect > none Re: title. Coming thru open door is not a breach. ;-) Encapsulation helps with security because it hides data (prevents exposure). If that data matters, that means l...

posted 4mo ago by LAFK‭

Answer
50%
+0 −0
Q&A Tackling net::ERR_NAME_NOT_RESOLVED and timeout error on browser object creation when using Puppeteer

To fix TypeError: Cannot read properties of undefined (reading 'close'), remove the const in the following code, which ensures your let browser outside the block will be assigned in the common case...

posted 4mo ago by ggorlen‭  ·  edited 4mo ago by Alexei‭

Answer
50%
+0 −0
Q&A List charts in a helm repository

You have to search the repo without any filters: $ helm search repo myrepo NAME CHART VERSION APP VERSION DESCRIPTION myrepo/mychart 1.0.0 1.0.0 ...

posted 3mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A Android CameraPreview not rendering for MLKit barcode analyis on MAUI custom control

Answering my own question in case anyone else stumbles upon this. Changing native platform implementation from Android.Views.View to AndroidX.CoordinatorLayout.Widget.CoordinatorLayout like follow...

posted 2mo ago by carpeltunnel‭

Answer
50%
+0 −0
Q&A Why not call nullptr NULL?

Probably just backwards compatibility with past C++ versions, where NULL = 0.

posted 6mo ago by Iizuki‭  ·  edited 6mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A How can I get the same "not all control paths return a value" behaviour across Clang and MSVC?

The reason why it is undefined behaviour instead of a hard error is that the problem of determining it is, quite literally, equivalent to the halting problem. So any implementation will either warn...

posted 6mo ago by celtschk‭

Answer
50%
+0 −0
Q&A How to mock methods like `pathlib.Path.is_dir`?

It turns out that this is exactly what autospeccing is for. Using from pathlib import Path from unittest import mock some_path = Path("/some/path/") with mock.patch("pathlib.Path.is_dir", aut...

posted 6mo ago by mr Tsjolder‭  ·  edited 6mo ago by mr Tsjolder‭

Answer
50%
+1 −1
Q&A How to create Factory Functions instead of using Classes

Instead of classes, I want to use factory functions. Original code with classes: export class MyProject { constructor(title, description, dueDate, priority) { this.title = title; ...

0 answers  ·  posted 6mo ago by Sevenfold‭  ·  edited 6mo ago by Andreas demands justice for humanity‭

Question javascript design-patterns
50%
+0 −0
Meta I created a tag, now it need edit.

Streams is an universal concept not specific to any particular language. It originates from ancient Unix, most famously the stdout and stdin streams. And so they exist in pretty much any "C family"...

posted 7mo ago by Lundin‭  ·  edited 7mo ago by Lundin‭

Answer
50%
+1 −1
Q&A How can I properly implement Hexagonal Architecture and Domain Driven Design in the same application?

I'm trying to use the "hexagonal architecture" and "domain-driven design" paradigms together, in a Java application using Spring. I understand that my application should have a structure with 3 la...

1 answer  ·  posted 6mo ago by rudahee‭  ·  edited 4mo ago by Karl Knechtel‭

Question java spring hexagonal-architecture domain-driven-design
50%
+0 −0
Q&A Using sqlline, how do you filter/find tables using the !tables command

I need to filter/find and list tables using the sqlline !tables command. For example, these are the type of queries i wish to fire Find out all the tables in a particular schema s1 All tables ...

1 answer  ·  posted 6mo ago by Abbas Gadhia‭  ·  last activity 6mo ago by Abbas Gadhia‭

Question sqlline
50%
+0 −0
Q&A Why won't Matplotlib show me a plot?

I installed Matplotlib and tried a simple demo, but I got a warning message and no plot showed up: >>> import matplotlib.pyplot as plt >>> plt.plot([1,2,3],[4,5,6]) [<matplo...

1 answer  ·  posted 10mo ago by Karl Knechtel‭  ·  last activity 10mo ago by Karl Knechtel‭

Question python matplotlib
50%
+0 −0
Q&A Why won't Matplotlib show me a plot?

Matplotlib uses a backend to render the plot. Some backends are "GUI backends", meaning that they can render into a window that displays on your screen. Others are "non-GUI backends" which can only...

posted 10mo ago by Karl Knechtel‭

Answer
50%
+0 −0
Q&A Reinstall old Python libraries after update

Every time I run a program I'm used to, I get a bunch of import errors, and have to reinstall the dependencies. As you're presumably aware, the fundamental problem is that each Python installa...

posted 10mo ago by Karl Knechtel‭  ·  edited 10mo ago by Karl Knechtel‭

Answer