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
Q&A Validate All Object Properties with JSON Schema

I'm writing a JSON schema to validate asset files for a program. The JSON I need to parse is structured so: { "jobs": { "software-developer": { "job-description": "sw-dev.md:0", "pay": 800...

1 answer  ·  posted 3y ago by Josh Hyatt‭  ·  last activity 3y ago by elgonzo‭

Question json validation
77%
+5 −0
Q&A What's the difference between =, == and === operators in JavaScript?

While learning JavaScript, I started to see =, == and === operators. What's the difference between them?

3 answers  ·  posted 3y ago by Kevin M. Mansour‭  ·  last activity 3y ago by hkotsubo‭

77%
+5 −0
Meta Allow filtering search for only Meta (or any other category)

You can now add "category:###" to a search, where ### is the number in the URL for the category, to restrict the search to one category. For example, Software Dev Q&A is 38 and Code Review is ...

posted 3y ago by Monica Cellio‭  ·  edited 3y ago by Monica Cellio‭

Answer
77%
+5 −0
Q&A What's the difference between placing <script> in the <head> and placing in the <body>?

Placing <script> in the <head>: Placing <script> in the <head> might affect the performance since the content won't load until the browser complete downloading the JavaScri...

posted 3y ago by Kevin M. Mansour‭

Answer
77%
+5 −0
Meta Unfair accusation in a comment and consequent loss of *actual* reputation

I posted an answer here and IIRC received one or two upvotes. Then a user falsely accused me of copy-pasting from Wikipedia without citing my sources. To that accusation I replied here. However...

2 answers  ·  posted 3y ago by Lorenzo Donati‭  ·  edited 3y ago by Lorenzo Donati‭

Question discussion comments
77%
+5 −0
Q&A Use cases for raising a 'NotImplementedError' in Python

NotImplementedError should generally be viewed as indicating some design problem. You should not be reaching for it as a matter of course. Here are some potential times you might feel a desire to ...

posted 6mo ago by Derek Elkins‭

Answer
77%
+5 −0
Meta Closing self-answered question due to not being clear enough

A question should be closed when it cannot be meaningfully answered by someone who knows the topic. Which might indeed mean that the one(s) casting the close vote(s) would need domain knowledge. T...

posted 5mo ago by Lundin‭  ·  edited 3mo ago by Lundin‭

Answer
77%
+5 −0
Meta Where should I ask git questions?

Where should I ask questions about Git?

2 answers  ·  posted 5mo ago by matthewsnyder‭  ·  last activity 5mo ago by Monica Cellio‭

Question discussion
77%
+5 −0
Q&A Reusing HTML without rewriting it

I have a site hosted through GitHub and I'm using footers for special links and it also serves as my main navigation bar for now. I find it a little frustrating to manually copy-paste the footer's ...

3 answers  ·  posted 5mo ago by General Sebast1an‭  ·  last activity 4mo ago by matthewsnyder‭

Question html
77%
+5 −0
Q&A Reinstall old Python libraries after update

It depends. Pure Python is usually forward-compatible with newer minor versions, but this is not always the case. Features/modules that were available in a previous minor version may no longer be ...

posted 7mo ago by Hackysack‭

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

Recently, Python updated from 3.11 to 3.12 and now all my libraries are gone. Actually they're in the old 3.11 site-packages, but now that python points to 3.12 those are not active. Every time I r...

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

Question python-3
77%
+5 −0
Q&A Testing an opaque type's internals

First: What is an opaque pointer in C? Now when it comes to testing such a type, I know of 3 ways: Include the source file (the one containing the definition of the type and the functions tha...

2 answers  ·  posted 7mo ago by Melkor-1‭  ·  last activity 7mo ago by Alexei‭

77%
+5 −0
Code Reviews Github workflow for a C application

This is my first try at automating building and testing some C code for these platforms: Linux Windows MacOS OpenBSD (arm64 and x86-64) FreeBSD (arm64 and x86-64) NetBSD Oracle Solaris Om...

1 answer  ·  posted 8mo ago by Melkor-1‭  ·  last activity 5mo ago by zmzaps‭

Question yaml github ci/cd
77%
+5 −0
Q&A How and where does Python code start running? How can I control that?

Files with .py extension are scripts. You run them with python myscript.py. Python is an imperative language, so executing a file will run each line one by one, starting from the top, and exit whe...

posted 8mo ago by matthewsnyder‭  ·  edited 6mo ago by Michael‭

Answer
77%
+5 −0
Meta Is my question a duplicate? What now?

As part of a general effort to produce basic Q&As for Python, recently I've been focused on issues related to starting up an interpreter and running the code - so, questions about setting up an...

0 answers  ·  posted 6mo ago by Karl Knechtel‭

77%
+5 −0
Q&A Regex to get text outside brackets

Perhaps regex is not the best solution. Although it's possible, the expression will be so complicated that it won't be worth the trouble, IMO. But if you insist on using regex... I'm afraid w...

posted 6mo ago by hkotsubo‭  ·  edited 22d ago by hkotsubo‭

Answer
77%
+5 −0
Q&A How is this code "dividing" by a string?

I found a strange expression in some Python code: from library import HOME_DIRECTORY file = HOME_DIRECTORY / "file.json" It seems to be dividing a string by another string in order to do som...

3 answers  ·  posted 7mo ago by Andrew Ray‭  ·  edited 6mo ago by hkotsubo‭

77%
+5 −0
Q&A Json deserialization of enum, forbid int

I have a DTO that contains an enum field: @Getter @Setter static class Foo { Bar bar; } enum Bar { X, Y } When I deserialize a JSON, it allows int as values: var objectMapper ...

2 answers  ·  posted 3mo ago by talex‭  ·  edited 3mo ago by hkotsubo‭

Question java json jackson
77%
+5 −0
Q&A make: How to compile all files in a directory.

I am learning how to write makefile to compile a c program. I have a directory structure like this: . ├── include │   └── library.h ├── lib │   └── library.c ├── makefile └── obj My makef...

1 answer  ·  posted 2mo ago by Vanity Slug ❤️‭  ·  last activity 2mo ago by Vanity Slug ❤️‭

Question c make
77%
+5 −0
Q&A Differences between Haskell tools Stack and Cabal?

Haskell tooling can be confusing. Both Stack and Cabal appear to be build tools with similar goals. How do they differ? Why should you pick one over the other?

1 answer  ·  posted 3mo ago by Iizuki‭  ·  edited 2mo ago by Alexei‭

77%
+5 −0
Q&A C#: Performance hit from using calculated property instead of get-only property with initializer?

JetBrains Rider suggests that I change this (for example): public class Foo { public int OnePlusOne { get; } = 1 + 1; } to this: public class Foo { public int OnePlusOne => 1 + 1...

1 answer  ·  posted 3mo ago by LyndonGingerich‭  ·  last activity 2mo ago by Michael‭

Question c# attribute
77%
+5 −0
Q&A After git fetch, how to fast forward my branch?

The answer by hkotsubo is correct. But just in case you're being very specific about fast-forwarding, it's worth stressing that you can use --ff-only as an option on the merge to abort if it requir...

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

Answer
77%
+5 −0
Q&A How can I git checkout the previous HEAD?

After switching to a different branch, git checkout - can move me back to the branch I came from. This is handy for times when I wonder "wait, what was that last branch again?" But this does not w...

1 answer  ·  posted 4mo ago by matthewsnyder‭  ·  last activity 4mo ago by hkotsubo‭

Question git
77%
+5 −0
Q&A How do you implement polymorphism in C?

The topic of how to implement polymorphism in C tends to pop up now and then. Many programmers are used to OO design from higher level languages and supposedly OO is a "language-agnostic" way of pr...

1 answer  ·  posted 2mo ago by Lundin‭  ·  last activity 2mo ago by Lundin‭

77%
+5 −0
Q&A Understanding "logical OR" and "logical AND" in programming languages

They aren't actually that different from natural language. But more verbose. Given some generic pseudo code looking like one of the C family languages: if( !egg.boiled || !egg.peeled ) { do_no...

posted 1mo ago by Lundin‭

Answer