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
 
75%
+4 −0
Q&A When does it not work to dereference the pointer for sizeof during malloc?

In addition to all the examples I gave in my answer to the linked post, all scenarios where p is a pointer to incomplete type fails. Not just the void* scenario, but also when p is a pointer to an ...

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Q&A How to create an object, call one of it's methods and pass it as an argument as a oneliner?

It seems to me that you are hobbling yourself by making design constraints more absolute than they need to be. For instance: You don't want to change the code under test, not even a tiny little ...

posted 3y ago by meriton‭

Answer
75%
+4 −0
Code Reviews stpecpy(): Design a better string copy function that truncates

Performance-wise, I'd benchmark this vs if(memchr(src,'\0',n)==src+n) memcpy(dst, src, n); because it isn't obvious at least to me if that's faster or slower than your custom function. Regarding...

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Q&A Why is my last input box not centering (class: powerwall-battery-input)?

To investigate such problems, open the developer tools of your browser, and use the inspect this element feature to inspect the bounding boxes of the various elements. in Chrome: press F12 to o...

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

Answer
75%
+7 −1
Q&A How to avoid "exception is never thrown" when commenting out a line while debugging

I have a code block like this: try { ... x.foo(); // This is the line that forces us to have the try block ... } catch (ArrayIndexOutOfBoundsException e) { logger.error(e.getM...

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

Question java exception
75%
+4 −0
Q&A Algorithmically generating the grid formed by the vertices of a dodecahedron (Hunt The Wumpus)

Here is an animation of a cube with faces subdivided into two rectangles, morphing into a rhombic dodecahedron, with the Platonic dodecahedron as an intermediate state. This demonstrates that the e...

posted 3y ago by r~~‭  ·  edited 3y ago by Alexei‭

Answer
75%
+4 −0
Meta Comparing our site scope to Stack Overflow

Some relevant history for consideration (not an answer about specific scope boundaries): When we started to discuss a programming or software community, we were concerned about premature fragmenta...

posted 1mo ago by Monica Cellio‭

Answer
75%
+4 −0
Q&A Understanding "logical OR" and "logical AND" in programming languages

Many programming languages either have keywords like or and and used for logic, or equivalent operators such as || or && - which are referred to as "logical or" and "logical and" respective...

3 answers  ·  posted 1mo ago by Karl Knechtel‭  ·  edited 21d ago by Andreas witnessed the end of the world today‭

75%
+4 −0
Q&A What's the difference between include_directories and target_include_directories?

I have seen others allude to include_directories as disfavored: Having trouble adding include directories Summaries from CMake's documentation: target_include_directories include_directori...

1 answer  ·  posted 6mo ago by nogjam‭  ·  last activity 6mo ago by congusbongus‭

Question cmake
75%
+4 −0
Q&A Android Studio IDE refuses to find my device

I've installed Android Studio Jellyfish (snap) on an Ubuntu Fossa VM and was finally able to generate an apk for my project after struggling with Gradle, Java, plugins, etc. The device is detected...

1 answer  ·  posted 6mo ago by JohnRando‭  ·  last activity 6mo ago by FractionalRadix‭

Question android ubuntu usb
75%
+4 −0
Q&A Why does `tkinter` (or `turtle`, or IDLE) seem to be missing or broken? Isn't it part of the standard library?

I had understood that Python is supposed to come "batteries included", and that the "batteries" specifically include: the tkinter standard library, a simple GUI framework a simple IDE cal...

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

75%
+4 −0
Meta Should beginner-oriented Q&A here include basic use of a terminal (command line) for developers?

It seems that year over year, computers constantly get easier to use, and it becomes easier for people to start learning to program who have never touched it before. This comes with the consequence...

3 answers  ·  posted 6mo ago by Karl Knechtel‭  ·  last activity 6mo ago by matthewsnyder‭

75%
+4 −0
Q&A Managing a dependency for a C application

One of my applications has a dependency on a stb-library. Now I am publishing this application to Github. Should I: Include the header that was used during development with the code? Have an in...

2 answers  ·  posted 6mo ago by Melkor-1‭  ·  edited 5mo ago by matthewsnyder‭

Question c package
75%
+4 −0
Q&A How to sort the output of meta / slash commands in `psql`?

For example, how to sort the output below by the values in "Column" in the psql shell itself? my_db=> \d auth_user Table "public.auth_user" Column ...

1 answer  ·  posted 7mo ago by toraritte‭  ·  edited 7mo ago by MER‭

75%
+4 −0
Meta RSS feeds for tags

There are RSS feeds for tags already, linked at the bottom of the tag page. (Yeah, I missed it too; I'll see if we can make that more obvious.) For example, here's the RSS feed for the feature-re...

posted 7mo ago by Monica Cellio‭  ·  edited 3mo ago by Monica Cellio‭

Answer
75%
+4 −0
Q&A How to sort the output of meta / slash commands in `psql`?

It's been a while, but the answer is "yes and no," I believe. No: The describe-schema command doesn't (last I heard) allow any modification. Yes: The describe-schema command also doesn't do any...

posted 7mo ago by John C‭  ·  edited 7mo ago by toraritte‭

Answer
75%
+4 −0
Meta RSS feeds for tags

How can i get a per-tag RSS feed? I only see the general feed at the main pages and i don't want to subscribe to tags via email.

1 answer  ·  posted 7mo ago by JohnRando‭  ·  edited 3mo ago by Monica Cellio‭

75%
+4 −0
Q&A How to iterate over numpy array axes in array slicing?

slice(None) will give you a value that's equivalent to a bare : in slice syntax. So you can write, for example, for i in range(4): print(new_array[tuple(slice(None) if i == j else n for j, n ...

posted 7mo ago by r~~‭

Answer
75%
+4 −0
Q&A Syntax match any 2 spaces at end of line

I'm using the following syntax match to conceal 2 spaces at the end of a line with a special character. syntax match Normal '\s\{2}$' conceal cchar=⏎ A line with two spaces at the end of it wou...

2 answers  ·  posted 7mo ago by rcmosher‭  ·  last activity 7mo ago by Michael‭

Question vim
75%
+4 −0
Q&A How do I trim a sorted list in Python?

You can use the functions in the bisect module with a list slicing operator. For example bisect_left finds the index of the insertion point in a sorted list, and if the values are equal, it will fi...

posted 7mo ago by congusbongus‭

Answer
75%
+4 −0
Q&A What actually is a pytest fixture?

The term long predates Pytest and is not at all specific to Python. The idea is described on Wikipedia: In the context of software a test fixture (also called "test context") is used to set up s...

posted 4mo ago by Karl Knechtel‭

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

In the current version of OpenJDK's JEP 401: Value Classes and Objects (Preview), it is said that value classes can leak data stored in their fields, and that this is potentially a security concern...

2 answers  ·  posted 4mo ago by Andreas witnessed the end of the world today‭  ·  last activity 5d ago by LAFK‭

75%
+4 −0
Q&A What does an exclamation mark mean in a GraphQL schema?

It's a type modifier that means that the field is non-nullable. That is, when uploading these types you must provide values for these fields, and in turn the server promises to always populate the...

posted 3mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A Json deserialization of enum, forbid int

This is something that could go really wrong. I remember using this, and it was fine initially, until the enum in question evolved, and the ordinals changed, so the values didn't correspond anymore...

posted 3mo ago by ɯıpɐʌ‭  ·  edited 3mo ago by ɯıpɐʌ‭

Answer
75%
+4 −0
Q&A Differences between Haskell tools Stack and Cabal?

The short, broad strokes answer is that (modern) cabal-install uses a nix-style approach where there's a shared global cache, but you can have multiple versions of a package installed or even the s...

posted 3mo ago by Derek Elkins‭

Answer