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
 
86%
+11 −0
Q&A Why use an asterisk after a type?

Here I used asterisk after Node. Actually, why asterisk used for? What if I don't put any asterisk after Node (Both Node are structure). It's a pointer. A pointer, like its name implies, poin...

posted 3y ago by Moshi‭

Answer
86%
+11 −0
Meta We'd like to add another moderator -- who?

Several months ago we asked for temporary moderators for this community and two people stepped up. One of them later had to step back, leaving Alexei as a sole moderator. Alexei is doing a great ...

1 answer  ·  posted 4y ago by Monica Cellio‭  ·  last activity 3y ago by hkotsubo‭

Question discussion moderators
86%
+11 −0
Q&A How to do private encapsulation in C?

I'm using an object-oriented design for my C project and trying to implement classes with private encapsulation. How do I do this? Some things I've tried that are problematic: Using a struct f...

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

Question c oop struct opaque-type private-encapsulation
86%
+11 −0
Q&A how do I get markdown to render # as a shell prompt and not a comment?

Instead of sh, use shell or console. So this: ```shell # echo hi ``` ```console # echo hi ``` Is rendered as: # echo hi # echo hi While this: ```bash # echo hi ``` ```sh #...

posted 4mo ago by hkotsubo‭  ·  edited 4mo ago by hkotsubo‭

Answer
86%
+11 −0
Q&A Is `git pull` dangerous?

While any piece of software receiving input from an untrusted source is additional attack surface, generally speaking git pull is not a security threat. Three things happen when you git pull: a gi...

posted 8mo ago by Derek Elkins‭

Answer
86%
+11 −0
Q&A Can regex be used to check if input conforms to a very strict subset of HTML?

Tldr; I don't need to parse HTML, but I need to check if user submitted input conforms to a very strict subset of HTML. Can regex be a suitable tool for this? Details I have a frontend sanitiser th...

4 answers  ·  posted 4y ago by jla‭  ·  last activity 4y ago by Stephen C‭

Question javascript regex html
86%
+11 −0
Meta Are code troubleshooting posts allowed?

I assume "help my code isn't working"/troubleshooting posts - which make up much of SO questions - are allowed. However from reading the FAQ, it's not obvious to me that they are. The "on topic" bu...

4 answers  ·  posted 4y ago by 404‭  ·  last activity 2y ago by matthewsnyder‭

Question support
86%
+11 −0
Meta Are code troubleshooting posts allowed?

Yes Questions about troubleshooting your non-working code are on-topic, provided that you include enough information for the community to understand the context (SO names this minimal reproducible...

posted 4y ago by Alexei‭

Answer
86%
+11 −0
Q&A Does using an Integer have any speed/performance benefits over a string in JSON

I'm working on an API to respond some data about a bunch of orders and items. The order and item numbers are always an integer (it's the order.id and item.id value, respectively). Originally the re...

3 answers  ·  posted 4y ago by Welz‭  ·  last activity 4y ago by .                                                .‭

Question string integer json optimization
86%
+11 −0
Q&A How should we share some content between two otherwise-independent git repositories?

Generally speaking, if two groups of people collaborate on the same software, I'd recommend they put everything in a shared git repository: Documentation is intimately tied to the version of the ...

posted 4y ago by meriton‭

Answer
86%
+11 −0
Q&A What is undefined behavior and how does it work?

I have created this sensational program: #include <stdio.h> int* func (void) { int local=5; return &local; } int main (void) { printf("%d\n", *func()); } This prints 5 even thoug...

1 answer  ·  posted 4y ago by Lundin‭  ·  last activity 4y ago by Lundin‭

Question c undefined-behavior
86%
+11 −0
Q&A What gets allocated on the stack and the heap?

While Lundin has written a reasonably complete answer, I think it suffers a bit from the expert view: conflating core issues with implementation details related to modern hardware architecture. I'd...

posted 4y ago by dmckee‭  ·  edited 4y ago by Peter Mortensen‭

Answer
86%
+11 −0
Q&A What is CPU endianness?

This goes back to the various CPU architecture "wars" in the 1970s-1980s between the competitors Intel and Motorola (for example Intel 8086 vs Motorola 68000). For various reasons, CPUs from these ...

posted 4y ago by Lundin‭  ·  edited 4y ago by Lundin‭

Answer
86%
+11 −0
Q&A Alternatives to `EXPLAIN ANALYZE` for queries that won't complete

I have a large and complex PostgreSQL SELECT query that I would like to make faster. EXPLAIN suggests it should run quickly, with the worst parts being scans of a few thousand rows. When run, it do...

2 answers  ·  posted 1y ago by Emily‭  ·  last activity 1y ago by matthewsnyder‭

Question postgresql database-performance
86%
+11 −0
Q&A What is the point of pipx?

Background Many Python programs now recommend installing with pipx, and there is a sense that you shouldn't install with pip anymore, you should use tools like pipx. Main Question However, what ...

3 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by tripleee‭

Question python-3 package
86%
+11 −0
Q&A What is the point of pipx?

Well, to start, it is not an alternative to pip. It's built on top of pip and exclusively deals with applications. pip is more of a development tool, while pipx is aimed at end-users (who may also ...

posted 1y ago by Derek Elkins‭  ·  edited 1y ago by meta user‭

Answer
86%
+11 −0
Q&A Git: How to clone only a few recent commits?

How do I clone the repository with only part of the history? For example, let's say I want to download only the last 5 commits out of thousands.

2 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by hkotsubo‭

Question git-clone
85%
+10 −0
Q&A Git: How to clone only a few recent commits?

How do I clone the repository with only part of the history? It depends on what part you want. It's possible to have shallow clones (which is exactly what you need, only a part of the commit h...

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

Answer
85%
+10 −0
Q&A How can one import two classes with the same name in Java8?

While other JVM languages, such as Groovy, Kotlin and Scala have Python-like import aliasing, Java does not. It's not possible to 're-name' imports, however, when you call a class from a package, ...

posted 1y ago by tarhalda‭  ·  edited 1y ago by tmpod‭

Answer
85%
+10 −0
Meta Etiquette for posting comments

This question featured a quite heated discussion in the comments which led to some of them being removed. This action was discussed here and I have realized that our community lacks a guide about p...

5 answers  ·  posted 4y ago by Alexei‭  ·  last activity 4y ago by Estela‭

Question discussion comments
85%
+10 −0
Q&A How to set text-align for whole column of HTML table?

You cannot set text-align on a column element (Well, you can, but it won't have any effect) There are only a couple of properties that have an effect, namely border, background, width, and visibi...

posted 4y ago by Moshi‭

Answer
85%
+10 −0
Q&A What's the difference between Inheritance and Polymorphism?

What you're asking is a very broad topic, and it'd require entire books to cover everything. For the sake of simplicify, I'll just stick to the basics. Inheritance Inheritance can be explai...

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

Answer
85%
+10 −0
Q&A How to declare variable-length arrays correctly?

C programs are executed from top to bottom. You can't declare a VLA with an uninitialized variable as its size parameter. For the same reason at you can't do this: int x; printf("%d\n",x); scanf...

posted 3y ago by Lundin‭  ·  edited 1y ago by Lundin‭

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

I looked at your answer and those comments, skimmed the Wikipedia page, and I do not see direct copies. OOP is a fundamental topic, widely taught and widely written about. It's not surprising to ...

posted 3y ago by Monica Cellio‭

Answer
85%
+10 −0
Q&A Where did my proper divisor sum program went wrong?

When you do x=y=z=[], you're making x, y and z point to the same list. Example: x=y=z=[] # add element to x x.append(1) # add element to y y.append(2) # but x, y and z all point to the same l...

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

Answer