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
 
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‭

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‭

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
86%
+11 −0
Meta Should posting on Meta affect reputation?

Codidact has already managed somewhat to separate domain knowledge from moderator suitability. So far so good, but reputation is also a measurement of activity. It might make sense that being acti...

posted 1y ago by Lundin‭

Answer
86%
+11 −0
Q&A When would one not want to return an interface?

Consider the following method as an example: List<int> Foo() { // ... } Are there any disadvantages of returning an interface instead of a concrete implementation in C#? IList<i...

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

86%
+11 −0
Q&A How to manage user-specific application data on Linux?

The traditional approach is to create either a single dotfile, or a single dot-directory, directly under the user's home directory, named for your application. Thus ~/.thromblemeisteradmin (which c...

posted 2y ago by Canina‭  ·  edited 2y ago by Canina‭

Answer
86%
+11 −0
Meta On self-answered questions, is it inappropriate to mark my own answer "Works for me" immediately?

Bear in mind that unlike on some other question and answer sites, the "Works for me" reaction is not restricted to the author of the question. Anyone can add that reaction, whether they posted the ...

posted 1y ago by trichoplax‭

Answer
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 3y ago by Monica Cellio‭  ·  last activity 3y ago by hkotsubo‭

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‭

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 3y ago by Alexei‭  ·  last activity 3y 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 3y 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 3y ago by hkotsubo‭  ·  edited 3y ago by hkotsubo‭

Answer
85%
+10 −0
Q&A What does the "\s" shorthand match?

I've seen some regular expressions (regex) using \s when they want to match a space, but I noticed that it also matches line breaks. Example: the regex [a-z]\s[0-9] (lowercase ASCII letter, follow...

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

Question regex whitespace
85%
+10 −0
Q&A Separation of password cookies from all other types of cookies

There is a fundamental misunderstanding at the root of this question. Websites do not store your password client-side When you login to a website, the website does NOT store your password in a co...

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

Answer
85%
+10 −0
Q&A Is *nix a formal term?

The term is cultural, not technical. From Wikipedia: There is no standard for defining the term, and some difference of opinion is possible as to the degree to which a given operating system or ...

posted 3y ago by r~~‭

Answer
85%
+10 −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
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 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
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 11mo ago by tarhalda‭  ·  edited 10mo ago by tmpod‭

Answer