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.7k posts
 
62%
+3 −1
Q&A Is this a known design pattern: a piece of code is responsible for acting as a central proxy for data distributed in various places?

I have several classes (C_1...C_n) and their instances (I_1....I_m). I have a "Registry" R of these. There are several pieces of data (d_1...d_k) spread across various instances. This much is set ...

1 answer  ·  posted 4y ago by peey‭  ·  last activity 4y ago by Alexei‭

Question design-patterns
62%
+3 −1
Meta Is it OK to use abusive content on code?

Yes, that particular post should be marked as abusive and the code replaced by. if(a==b){ print("We have a problem, a is equal to b") } Assuming that indeed the code is dealing with a sit...

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

Answer
62%
+3 −1
Q&A PHP emails are sent when $message is a string, but not when its an array

I host my website on a CentOS-Bash, PHP and MySQL environment; my local email client is engined by Roundcube. I don't know almost anything about PHP nuances. While my web domain registration is do...

2 answers  ·  posted 4y ago by deleted user  ·  last activity 4y ago by manassehkatz‭

Question php
62%
+3 −1
Q&A Reading contents of XML node

I'm writing some functions in C that parses a part of a XML file (using libxml), but instead of extracting the content of the XML node that has a specific name, it outputs a string that's not in UT...

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

62%
+3 −1
Q&A Are there practical reasons for designing a method-only class/object?

Are there practical reasons for designing/implementing a method(s)-only class/object? Follow-up background notes: This question is for languages that are not exclusively Object-Oriented, for exam...

3 answers  ·  posted 3y ago by CodeFarmer‭  ·  last activity 3y ago by hkotsubo‭

62%
+3 −1
Q&A How do I filter an array in C?

It looks like filter() effectively takes two arguments; the array to be filtered, and a predicate expression resulting in a boolean indicating whether the entry should be included in the output or ...

posted 3y ago by Canina‭

Answer
62%
+3 −1
Q&A C naming convention, module trigrams?

Personally, I don't like the first form (initCanDriver) at all. The routine name is supposed to present some information as to where/how the routine fits into the larger software world. Informati...

posted 2y ago by Olin Lathrop‭

Answer
62%
+3 −1
Meta Should asking about book recommendations directly connected to software development be on-topic?

Disclaimer: I am new here, I have not understood the overall policy of the site (yet), I can offer no moderator perspective, more a user and regular (unpaid) documentation contributor perspective. ...

posted 2y ago by sypets‭

Answer
61%
+6 −3
Q&A Why are commas not needed for modulo string formatting when printing?

Suppose I have two variables that are called animal and age, and print them as a string in the console like so: animal = "giraffe" age = 25 print("A %s can live up to %d years" %(animal,age)) ...

3 answers  ·  posted 2y ago by Bennshinpoes‭  ·  edited 1y ago by Karl Knechtel‭

60%
+7 −4
Q&A Why can parentheses cause exceptions in Python when using for loops?

Using parentheses in Javascript is always needed when you want to create functions, if/else statements and for/while loops. But in Python it has a function that is called tuples. When using an if s...

1 answer  ·  posted 2y ago by Bennshinpoes‭  ·  edited 2y ago by trichoplax‭

Question python syntax-error
60%
+1 −0
Q&A Ignore NPM Modules Digital Ocean App Platform

There may be a better way to manage website's with JavaScript deployments. I added jest to my repo simply to execute tests when I make PRs as part of a GitHub action. This requires a package-lock.j...

1 answer  ·  posted 2y ago by fausty‭  ·  last activity 2y ago by fausty‭

Question deployment npm
60%
+1 −0
Q&A Updating the database reverses previous changes

I did not find the exact cause of your issue, but inserts should not be treated as updates. One way to do this is the following: static void InsertPost(Post post) { using var context = new B...

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

Answer
60%
+1 −0
Q&A How to use ReactNative SDK with flexible sync using a code first approach

I am working on a React Native app using Realm, Atlas Flexible Sync, and MongoDB, and I'm super confused about how subscriptions work. I'm coming from a .NET SQL background, so I'm completely new t...

0 answers  ·  posted 2y ago by Scriptastrophe‭  ·  last activity 2y ago by Mithical‭

60%
+1 −0
Q&A Updating the database reverses previous changes

Disclaimer: I don't work with EF therefore not an expert. EF is tricky and has a lot of dark magic inside so if you're not sure how it all works best to use good old plain SQL or simple libraries....

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

Answer
60%
+1 −0
Meta Should asking about book recommendations directly connected to software development be on-topic?

Here is a slightly different suggestion, that may avoid the problems with open ended book recommendations. Book lists? No I'm not entirely against opinion based questions, but I am against opinio...

posted 2y ago by trichoplax‭

Answer
60%
+1 −0
Q&A Datagrid in MVVM saves edits but not inserts

I am writing a todolist application in WPF with MVVM. I display the goals in a datagrid and the editing works fine. Changes made in the grid are saved to the DB when I click save. However, adding a...

1 answer  ·  posted 2y ago by FrankLuke‭  ·  last activity 2y ago by Alexei‭

Question c# mvvm wpf
60%
+1 −0
Q&A Datagrid in MVVM saves edits but not inserts

Entity Framework is able to save the changes by using a tracking mechanism (i.e. what is added, deleted, removed). I guess _repository.GetAllGoals() implementation is something like _context.Goals...

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

Answer
60%
+1 −0
Q&A Any testimonials for any C++ units of measure library?

Looking for testimonials, so I'm going to self-promote. I had similar problems at work, and didn't like their homegrown solution. Well I mostly liked it, but I had some issues with it. Mostly, I ...

posted 2y ago by Ben‭

Answer
60%
+1 −0
Q&A Why OFFSET isn't working the way it is expected?

The script is read like this : SELECT * FROM `users` WHERE `gender`='Female' ORDER BY `birth_year` DESC LIMIT "take n rows" OFFSET "skip n rows" So when I wrote SELECT * FROM `users` WHERE `ge...

posted 2y ago by billy‭

Answer
60%
+1 −0
Q&A How to refer to the same class twice from one Entity Framework entity?

I tried to replicate your case and the only workable solution I could find is to use OnModelCreating configuration (fluent style) instead of attributes: public class Contestant { public int Id...

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

Answer
60%
+1 −0
Q&A How to refer to the same class twice from one Entity Framework entity?

I have two classes, Contestant and Picture, with the following setup: public class Contestant { ... public int AvatarID { get; set; } [ForeignKey(nameof(AvatarID))] public ...

1 answer  ·  posted 2y ago by FrankLuke‭  ·  edited 2y ago by Alexei‭

60%
+1 −0
Q&A Why is IntelliJ not finding these modules?

After removing eu.hansolo.tilesfx from the auto-generated module-info everything worked fine. It seems that tilesfx was dependent on the libraries that were "missing". I am not really sure why it w...

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

Answer
60%
+1 −0
Q&A highlight.js 3rd party plugin error: Cannot read properties of undefined

Answer from allejo (highlightjs contributor): In your language file, remove your empty Requires: line in the comment. After removing that, it should let you compile again. The comment is significa...

posted 2y ago by Razetime‭

Answer
60%
+1 −0
Q&A What can be used in react-native instead of an html label tag to achieve the same result?

I wanna make a form in React native. A field in this form in (non-native) React would be like this: <div> <label htmlFor="lastName">Last Name:</label> <input type="text...

0 answers  ·  posted 1y ago by andre‭  ·  edited 1y ago by andre‭

60%
+1 −0
Q&A Remove entries by two-column ID everywhere, that meet a condition somewhere

Answer After re-encountering this problem and searching for a solution with a less generic "pandas check if column pair is found in other df" (forgetting I had previously encountered this proble...

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

Answer