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.3k 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 3y ago by Lundin‭  ·  last activity 3y ago by Lundin‭

83%
+8 −0
Q&A How are integers interpreted in contexts that expect a date?

SQL Server uses '1900-01-01' as a "zero-point" in DATEDIFF(dd, 0, some_date): select DATEDIFF(dd, 0, '1900-01-01') --> 0 select DATEDIFF(dd, 0, GETDATE()) --> 44066 days since the "zero-d...

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

Answer
80%
+6 −0
Meta Asking software architecture related questions on Software Development community

Personally, I'd say that it depends on the question. Over on that other site, this ban was instituted to avoid opinion-based questions. For instance, suppose you asked: Is Angular a great framewor...

posted 3y ago by meriton‭

Answer
80%
+6 −0
Q&A How are integers interpreted in contexts that expect a date?

I found a confusing construction in several stored procs in an MS SQL 2008 R2 database: DATEADD(dd, 0, DATEDIFF(dd, 0, some_date)) As I understand it, these are the relevant function signatures: D...

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

Question sql tsql sql-server
71%
+3 −0
Q&A Can renaming a MySQL column be sped up by dropping indexes or foreign keys?

I would simply turn off foreign key checks: SET FOREIGN_KEY_CHECKS=0; and make all the changes, and then turn foreign key checks back on: SET FOREIGN_KEY_CHECKS=1;

posted 3y ago by manassehkatz‭

Answer
83%
+8 −0
Q&A What are the pros and cons of a composite primary key versus a unique constraint?

Facts In relational theory, each row in a relation is uniquely identified by a primary key. That's why some purists say that every table should have a primary key. Foreign keys usually reference a ...

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

Answer
60%
+1 −0
Q&A Can renaming a MySQL column be sped up by dropping indexes or foreign keys?

I need to rename one column in 170 tables in a MySQL database and its going really slow. [...] Doesn't make much sense. A column name should be easy to rename and somewhat independent of the data...

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

Answer
71%
+3 −0
Q&A Can renaming a MySQL column be sped up by dropping indexes or foreign keys?

I need to rename one column in 170 tables in a MySQL database and its going really slow. The columns all have an index plus a foreign key on them, would dropping the index/temporarily removing the...

2 answers  ·  posted 3y ago by Charlie Brumbaugh‭  ·  last activity 3y ago by manassehkatz‭

60%
+4 −2
Q&A What are the pros and cons of a composite primary key versus a unique constraint?

One could either do a unique constraint on those foreign keys or a composite primary key on those columns. For elegance, canonicity, a primary key is necessary. You would initially have a primary...

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

Answer
75%
+10 −2
Q&A What are the pros and cons of a composite primary key versus a unique constraint?

Let's say we have two tables A and B and a join table C that has foreign keys to both A and B and the combination of those foreign keys is unique. One could either do a unique constraint or a comp...

2 answers  ·  posted 3y ago by Charlie Brumbaugh‭  ·  edited 3y ago by Alexei‭

77%
+5 −0
Q&A How does Caveat work?

One of the fonts available (to me) on Google Docs is Caveat. The following is in 18-point Caveat on Google Docs: I found that Caveat is available at https://github.com/googlefonts/caveat/tree/ma...

0 answers  ·  posted 3y ago by msh210‭  ·  edited 3y ago by Alexei‭

Question google-fonts fonts
66%
+2 −0
Q&A How to upgrade a recent (>= 8) Angular CLI?

I have recently upgraded Angular CLI from version 9 to version 10 and I simply installed it again. npm install -g @angular/cli Existing version λ ng version Angular CLI: 9.1.8 Node: 12.18.0 OS: w...

posted 3y ago by Alexei‭

Answer
60%
+1 −0
Q&A How to upgrade a recent (>= 8) Angular CLI?

Angular CLI official page indicated how to install the CLI, but provides no information about how to upgrade it. I am interested in how to upgrade the CLI.

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

66%
+2 −0
Meta Initial List of Tags

A good start would be the most popular tags from Stack Overflow. Another approach is to start from scratch and search for tags on Stack Overflow whenever needed. Those tags are already curated and ...

posted 3y ago by Alexei‭

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

Let's start with this perl at https://www.json.org/json-en.html: A number is very much like a C or Java number, except that the octal and hexadecimal formats are not used. That's an extremely imp...

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

Answer
83%
+8 −0
Meta Asking software architecture related questions on Software Development community

Context Over the years I had a hard time addressing questions about software architecture like these ones . Soon after posting them, they receive a couple of downvotes and close votes which set the...

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

77%
+5 −0
Q&A Mapping generic handler to generic query in MediatR

I am using MediatR in an ASP.NET Core 3.1 application and I want use a generic query and a generic request that deals with getting lists of some standard items I am using in drop-downs and similar:...

0 answers  ·  posted 3y ago by Alexei‭  ·  edited 2y ago by Alexei‭

50%
+1 −1
Q&A Should I cast to (void) when I do not use the return value

I saw at least one compiler (Codewarrior for HC12) warn me if I use a function without using it's return value. [...] Ye, for that's the right choice. [...] Other compilers (clang/gcc) do not is...

posted 3y ago by .                                                .‭

Answer
71%
+3 −0
Q&A Xcode, SDL app showing in a single quarter of the window.

Why SDL (the Simple Directmedia Layer) apps are showing in a single quarter of the window, while the other three are blacked out, and what can I do about it? I'm using Xcode. I think this started h...

0 answers  ·  posted 3y ago by .                                                .‭  ·  edited 3y ago by .                                                .‭

Question xcode sdl retina
71%
+3 −0
Q&A Error: 18456, Severity: 14, State: 5; SSMS > Network sever from PC

My team lead, pointed out the issue. As I could not find the issue/solution here, posting it for others. I knew I could not use windows authentication, so I was trying to use SQL Server Authentica...

posted 3y ago by James Jenkins‭

Answer
71%
+3 −0
Q&A Error: 18456, Severity: 14, State: 5; SSMS > Network sever from PC

I just completed my first install of SQL as a server-based, Enterprise Edition. I wanted to check it out using SSMS on PC using my Admin Access. But could not connect. For security reasons my adm...

1 answer  ·  posted 3y ago by James Jenkins‭  ·  edited 3y ago by Alexei‭

83%
+8 −0
Q&A How can I define a method on [&mut T] where T: MyTrait?

I'm trying to make a trait method callable on mutable slices of a type implementing that trait (see main). Rust doesn't like me for it. use core::convert::AsMut; trait A { type B; fn f(m: ...

1 answer  ·  posted 3y ago by wizzwizz4‭  ·  last activity 3y ago by r~~‭

80%
+6 −0
Meta "Review suggested edit" page doesn't display Markdown source correctly

I recently suggested an edit to an answer. Basically, I formatted some code, adding code fences around it: But at the "Review suggested edit" page, the differences are not clearly displayed. I...

1 answer  ·  posted 3y ago by hkotsubo‭  ·  edited 1y ago by Monica Cellio‭

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

JSON is a standard. Performance is implementation specific and dependent on what is being done with the data. The answer really depends on what your environment is. Some languages may have slight p...

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

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

Before doing any performance testing, I think you have already noticed that the payload is significantly smaller by missing those double quotes. However, what I think is more important, especially ...

posted 3y ago by Alexei‭

Answer