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 How to find the last line number of a section in a text file (particular format)

I'm writing a function which reads specified sections in a text file formatted a particular way, but I'm having a hard time figuring out how to locate the last line number. Here's an example of the...

1 answer  ·  posted 18d ago by pycoder‭  ·  edited 14d ago by hkotsubo‭

Question python python-3
71%
+3 −0
Q&A Java record with final keyword

The Java Language Specification (citing the Java SE 24 edition, released on 2025-02-07) addresses this here: A record declaration is implicitly final. It is permitted for the declaration of a re...

posted 5d ago by Matthias Braun‭

Answer
71%
+3 −0
Q&A Java record with final keyword

Although record classes in Java are implicitly final, it's valid to add the final modifier/keyword when declaring a record: final public record Person(String name, String location) {} Does fina...

1 answer  ·  posted 5d ago by Matthias Braun‭  ·  edited 5d ago by Matthias Braun‭

Question java
71%
+3 −0
Meta How can we grow this community?

Cite good Q&A elsewhere For example: I was saddened to realize that, as of me writing this, a question and/or answer from Software Development has never been submitted on Hacker News. The doma...

posted 22d ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A What is the advantage of creating instances from a method rather than constructor?

There are at least two reasons I can see that would motivate this decision (and similar decisions generally), but first it pays to read what the documentation says. Quoting the pages you reference...

posted 21d ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Casting a non-`void` pointer to `uintptr_t`

If reading the standard strictly by the letter then you are correct. And therefore both CERT and MISRA are picky with these kind of conversions because they strive to cover all poorly-defined behav...

posted 2mo ago by Lundin‭

Answer
71%
+3 −0
Q&A What does Nixpkgs' `callPackage` do?

callPackage is a complex function (reasons include the Nix language being lazy, usage of fixed-point evaluation, overrides, etc.), and this complexity steals the spotlight from what this function a...

1 answer  ·  posted 8mo ago by toraritte‭  ·  edited 8mo ago by toraritte‭

Question *nix nixpkgs
71%
+3 −0
Q&A Why does a lack of object encapsulation constitute a security breach?

Let's pretend Java was a capability-safe language. Now let's consider the IDE scenario and imagine that we want to support Copilot-like AI plugins that use a 3rd-party service. To access these ser...

posted 8mo ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Is this AES/CBC scheme, where the IV does not need to be known during decryption, insecure or does it have any other disadvantages?

However, the last variant has the advantage (at least in my opinion) that the condition The IV of the encryption is required for decryption is eliminated. It isn't really. It's just generated ...

posted 9mo ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A How can I interact with the target widget from a drop event

I'm trying to update a ListBox widget after dropping some files on it. This is the relevant part of my current code: fn on_file_drop(target: &DropTarget, value: &Value, ...

2 answers  ·  posted 8mo ago by GeraldS‭  ·  last activity 6mo ago by jmb‭

Question rust drag-and-drop gtk4-rs
71%
+3 −0
Code Reviews New elementsof() operator

I don't really see what good elementsof would do since sizeof(arr)/sizeof(*arr) is pretty idiomatic C and problem-free given that you know what you are doing, as is the case with most C code. IMO ...

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

Answer
71%
+3 −0
Q&A How to establish a relationship between HTML elements (tags)? (i.e., how can one element refer to another one)

I'm not sure how much this helps or inspires you, but there's an XML schema for the US Code and for bills and amendments to change it. See xml.house.gov and the GitHub repository for United States ...

posted 9mo ago by Michael‭  ·  edited 9mo ago by Michael‭

Answer
71%
+3 −0
Q&A How to establish a relationship between HTML elements (tags)? (i.e., how can one element refer to another one)

Should I use the data-* attributes for this or is there a more idiomatic way? For context, I'm trying to convert annotated legal PDF documents to HTML. Certain parts of these documents are cross...

3 answers  ·  posted 9mo ago by toraritte‭  ·  edited 8mo ago by Karl Knechtel‭

Question html
71%
+3 −0
Q&A How to declaratively enable RabbitMQ feature flags in Kubernetes

We use Kubernetes on a cloud (GKE, to be precise). We use RabbitMQ for messaging and we need to upgrade it from 3.10 to 3.12 . FWIW RabbitMQ has been added to our system using a chart from Bitnami...

0 answers  ·  posted 1y ago by FractionalRadix‭

Question RabbitMQ kubernetes
71%
+3 −0
Q&A How to revert main branch to an earlier commit in git?

For another perspective, I use TortoiseGit (https://tortoisegit.org/) on Windows a fair bit: Checkout the branch. Open the log window (Git Show log). Right-click on the commit/branch...

posted 1y ago by Kohath‭  ·  edited 1y ago by Michael‭

Answer
71%
+3 −0
Q&A Where is the `.fsproj` project file documented?

More specifically: Is there a dedicated docs page listing "properties" that are idiosyncratic to F# .fsproj project files? Why am I asking? Started learning F# a couple of days ago, but just now ...

1 answer  ·  posted 1y ago by toraritte‭  ·  edited 1y ago by toraritte‭

Question f# msbuild
71%
+3 −0
Q&A How to implement a relationship between 2 tables where the type of participation is mandatory and RESTRICT rule for both?

I would need to check, but I don't think PostgreSQL or most (any?) relational databases have a good way of expressing this "at most 8" constraint. It may be possible to express it in some way but p...

posted 1y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Is strcpy dangerous and what should be used instead?

strcpy(3) can be safe. Some compilers, such as GCC and Clang, use a feature test macro, _FORTIFY_SOURCE, (see feature_test_macros(7) https://man7.org/linux/man-pages/man7/feature_test_macros.7.htm...

posted 1y ago by alx‭

Answer
71%
+3 −0
Q&A Using an existing web server vs writing your own

The reverse proxy is frankly a "best practice" architecture, not just for security but also for resource limiting of your hard-working application server. Often the reverse proxy will communicate ...

posted 1y ago by gbjbaanb‭

Answer
71%
+3 −0
Q&A How to use docker hub with podman?

Add the following to /etc/containers/registries.conf: unqualified-search-registries = ["docker.io"] [[registry]] location = "docker.io" Now you can pull just like you would in docker: podm...

posted 1y ago by Iizuki‭  ·  edited 1y ago by Iizuki‭

Answer
71%
+3 −0
Q&A How to use docker hub with podman?

Unlike docker, Podman won't (understandably) use docker hub by default. You can use it explicitly like this: (just using a random example here, it's an OpenAPI linter) podman pull docker.io/dshanl...

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Iizuki‭

Question podman docker-container
71%
+3 −0
Q&A Using an existing web server vs writing your own

When writing a dynamic web service, you broadly speaking have two paths: Use an existing web server (e.g. Apache, Nginx or Lighttpd) to handle the "raw" web requests and implement your own cod...

4 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Basile Starynkevitch‭

Question architecture webserver fastcgi
71%
+3 −0
Q&A Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?

First, a reminder to future self (the figure RFC 3986, Section 3. Syntax Components complemented with Section 3.2. Authority): The following are two example URIs and their component parts: ...

1 answer  ·  posted 1y ago by toraritte‭  ·  edited 1y ago by toraritte‭

Question url uri
71%
+3 −0
Q&A Privilege escalation from Python like from systemd

Generallly (assuming no exploit is found) it's not possible to escalate the privileges of an already running process, except via code that itself has kernel level access (running in ring 0 - this i...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Privilege escalation from Python like from systemd

When you try to do a privileged systemd operation without the privilege, you get an escalation prompt: $ systemctl stop docker ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ==== ...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by Karl Knechtel‭

Question python linux privileges