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
 
83%
+8 −0
Q&A constructor in C

The warnings just say that you can't pass a string literal with type char[] to a function taking a struct Book* parameter. The function should be declared as: void init_Book_types (const char* tit...

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

Answer
83%
+8 −0
Q&A Tools for debugging coredumps

For debugging running programs I often use whatever is integrated with the IDE I am using. QtDeveloper right now, but also used Eclipse, Netbeans and others. Most of them just use gdb under the hoo...

1 answer  ·  posted 4y ago by Estela‭  ·  last activity 11mo ago by Invisible Mender‭

Question c++ GNU/Linux debugging
83%
+8 −0
Code Reviews Counting Sundays without Python datetime module

First of all, I've added a print in your code to show the dates: if days % 7 == 0 and current_day == 1: print(f'{current_year}-{current_month:>02}-{current_day:>02}') sundays += 1 ...

posted 4y ago by hkotsubo‭

Answer
83%
+8 −0
Q&A How to delete contents of a specific field, if it matches a pattern and there is nothing else in the field

How do I delete contents of a specific field, if it matches a pattern, and there is nothing else in the field? I have a several GB tsv file, and I am interested in a specific field (72). If it cont...

3 answers  ·  posted 3y ago by LVx0‭  ·  last activity 3y ago by Dirk Herrmann‭

Question awk text-processing
83%
+8 −0
Q&A Vim: how to search for all instances of a string, except for those that are between two specific strings

As @Quasímodo‭ has shown, the search pattern \(abc.*\)\@<!bird\|bird\(.*xyz\)\@! solves your problem. But, why does it work, and why does your original approach not work? What you want to achi...

posted 3y ago by Dirk Herrmann‭

Answer
83%
+8 −0
Code Reviews Solving logical puzzle with negation and undefined aspects in Prolog

Assume this trivial logic puzzle which I have made up: There are three boys, Fred, John and Max. No two of the boys have the same age. Max is older than John. Fred is not the oldest one. Quest...

0 answers  ·  posted 3y ago by Dirk Herrmann‭  ·  edited 3y ago by Dirk Herrmann‭

Question prolog
83%
+8 −0
Q&A What is [{options}] in JavaScript?

Given the link where the code comes from (based on your other question), this is just a, let's say, "free-form/pseudo-code/documentation example". It's not a valid JavaScript code. It's more like...

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

Answer
83%
+8 −0
Q&A What is malloc's standard-defined behavior with respect to the amount of memory it allocates?

Since accessing the memory allocated by malloc beyond the size given to the call is undefined behaviour (which means that the standard poses no restriction to the behaviour of a program that does t...

posted 3y ago by celtschk‭  ·  edited 3y ago by elgonzo‭

Answer
83%
+8 −0
Q&A How to deeply clone an array in Angular / TypeScript?

By "deeply clone", I assume you mean "also make copies of whatever nested structures the object might have". And for those, I guess libraries like Lodash are more reliable and appropriate if you wa...

posted 3y ago by hkotsubo‭

Answer
83%
+8 −0
Q&A When stored procedures are preferred over application layer code?

There are a few reasons for wanting to move computation closer to data. One is performance, which you've mentioned. Another is security. Databases enforce their own security boundary, and data that...

posted 3y ago by r~~‭

Answer
83%
+8 −0
Meta Are general questions (hopefully resulting in comprehensive, 'canonical' answers) in scope

Co I'm a database/desktop dev venturing into programming web apps using Angular and I've been informed 'functional reactive programming' is something I should be aware of. Some other site has a ge...

3 answers  ·  posted 3y ago by mcalex‭  ·  last activity 3y ago by Monica Cellio‭

Question discussion scope
83%
+8 −0
Meta Why did my question get a downvote?

Currently, there is no consensus about whether to provide tooltips for the voting buttons (especially the downvote one). However, the community now includes quite a lot of questions that attracted ...

2 answers  ·  posted 3y ago by Alexei‭  ·  last activity 3y ago by meriton‭

Question discussion voting downvotes
82%
+12 −1
Meta How will you balance demanding high quality questions with maximising the number of users?

There is a well know trade-off between a site aiming for questions/answers that are of a high quality and useful for people who arrive from Google and a site being nice to new users who often only ...

3 answers  ·  posted 4y ago by Ringi‭  ·  edited 4y ago by Ayxan Haqverdili‭

Question discussion
82%
+12 −1
Q&A Why is it considered bad practice to use float for representing currency?

This is intended to be a canonical post for this problem which is pretty common. Especially among beginners. I've heard that I should avoid using floating point variables for representing curren...

2 answers  ·  posted 3y ago by klutt‭  ·  last activity 3y ago by klutt‭

Question integer floating-point currency
81%
+7 −0
Q&A How do I ask git-show-branch to display a commit range?

For some tasks, I find git show-branch easier to follow than git log. For example, inspecting the history on someone's PR before merging it. git show-branch master topic stops at the first common ...

1 answer  ·  posted 3y ago by ajv‭  ·  edited 3y ago by Alexei‭

Question git git-show-branch git-history
81%
+7 −0
Code Reviews A simple game with pygame

I've just started playing around with pygame and have written a small game in it, of which I'd like a review. Note that I'm not only a complete beginner in pygame, but I also have very little exper...

1 answer  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by Peter Taylor‭

Question python game-development
81%
+7 −0
Q&A How allocated memory is calculated?

The size of the "primitive data types" int, float etc is not defined by the standard. In practice, int is either 16 or 32 bits on all known systems. Because of the unspecified size leading to poor...

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

Answer
81%
+7 −0
Q&A Is it a good idea to have a permanent branch for a feature?

I'm rather new to using git, so I'm not sure about the best practices regarding it. I have a feature branch branched off, and periodically when the feature needs to be updated I will add some commi...

3 answers  ·  posted 3y ago by Moshi‭  ·  last activity 3y ago by Hyperlynx‭

Question git software-practices
81%
+7 −0
Code Reviews Detecting balanced parentheses in Python

The problem Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets are closed by ...

5 answers  ·  posted 4y ago by justanotherpilgrim‭  ·  last activity 1y ago by Dirk Herrmann‭

Question python
81%
+7 −0
Meta Why do I, a logged in user, have to solve a captcha to post?

You should know I am not a bot by now ;-)

1 answer  ·  posted 4y ago by meriton‭  ·  last activity 4y ago by ArtOfCode‭

Question bug
81%
+7 −0
Q&A How to properly deal with impersonation in a Web application? (security vs. usefulness for tech support)

Context Our team has begun migrating a pretty old internal application and one aspect that got my attention is the impersonation. This is implemented as follows: only administrators are allowed...

2 answers  ·  posted 4y ago by Alexei‭  ·  last activity 4y ago by meriton‭

Question asp.net-core security impersonation
81%
+7 −0
Q&A How can I find git branches where all branch-local commits are from specific people?

We have a bunch of dead branches in our git repository, and I'd like to clean them up. Ones that were merged (but not deleted at the time) are easy; we can see those in the branch list on Bitbucke...

2 answers  ·  posted 4y ago by Monica Cellio‭  ·  edited 4y ago by Alexei‭

Question git git-branch
81%
+7 −0
Q&A How can I find git branches where all branch-local commits are from specific people?

From the command line, the following command will give you a list of all authors who have made local-only commits to a branch some-branch: git log some-branch --not --remotes --format="%an" And...

posted 4y ago by r~~‭

Answer
81%
+7 −0
Q&A SQL timestamp for daylight saving day when clock goes 1 hour back.

This behaviour is documented here: "... an ambiguous timestamp that could fall on either side of a jump-back transition is assigned the UTC offset that prevailed just after the transition." S...

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

Answer
81%
+7 −0
Q&A SQL timestamp for daylight saving day when clock goes 1 hour back.

On 25th October 2020 in Europe/Berlin clocks where set back from 03:00 AM to 02:00 AM to change from summer time (CEDT) to winter time (CET). Which means there is a 1 hour separation between 02:30...

1 answer  ·  posted 4y ago by Estela‭  ·  last activity 4y ago by hkotsubo‭

Question sql timestamps postgresql datetime timezone