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
 
75%
+4 −0
Q&A C++ exit code -1073740940

C++ doesn't have error codes/exit codes other than return 0; / EXIT_SUCCESS / EXIT_FAILURE. The code you are getting is from the OS when your program crashes from a run-time error. -1073740940 is ...

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Q&A WPF MVVM ListBox not updating

List<T> is not observable. In other words, List<T> does not offer a mechanism through which it could signal that its content has changed. If it is possible/permissible to modify the De...

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

Answer
75%
+4 −0
Code Reviews A class to access dicts using attribute syntax

I like the idea, but more as an exercise or a demonstration what can be done with Python. I also like that the code comes with a set of test cases which are written in a way that they nicely serve...

posted 3y ago by Dirk Herrmann‭

Answer
75%
+4 −0
Q&A WPF MVVM ListBox not updating

I haven't worked in WPF for a long time, but you might try setting a new list (clone the old one and add the new element) instead of adding the element to the existing list: _demo.Value++; var ne...

posted 3y ago by Alexei‭

Answer
75%
+4 −0
Q&A WPF MVVM ListBox not updating

I am trying to combine MVVM in WPF using Microsoft.Toolkit.MVVM. Somethings are working as expected. The text boxes bind to fields and update in both directions. The button command executes and cha...

2 answers  ·  posted 3y ago by FrankLuke‭  ·  last activity 3y ago by elgonzo‭

Question c# binding mvvm wpf
75%
+4 −0
Q&A C++ exit code -1073740940

Nothing. Or anything. Or whatever you want it to mean. As a general rule of thumb: If you explicitly exit from a program with a specific exit status, then you know the meaning, or set of mean...

posted 3y ago by Canina‭

Answer
75%
+4 −0
Q&A Is it OK to use scanf with a void pointer?

From section 7.21.6.2 of this draft: [T]he result of the conversion is placed in the object pointed to by the first argument following the format argument that has not already received a conve...

posted 3y ago by r~~‭

Answer
75%
+4 −0
Q&A When does it not work to dereference the pointer for sizeof during malloc?

In addition to all the examples I gave in my answer to the linked post, all scenarios where p is a pointer to incomplete type fails. Not just the void* scenario, but also when p is a pointer to an ...

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Q&A How to create an object, call one of it's methods and pass it as an argument as a oneliner?

It seems to me that you are hobbling yourself by making design constraints more absolute than they need to be. For instance: You don't want to change the code under test, not even a tiny little ...

posted 3y ago by meriton‭

Answer
75%
+4 −0
Code Reviews stpecpy(): Design a better string copy function that truncates

Performance-wise, I'd benchmark this vs if(memchr(src,'\0',n)==src+n) memcpy(dst, src, n); because it isn't obvious at least to me if that's faster or slower than your custom function. Regarding...

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Q&A Why is my last input box not centering (class: powerwall-battery-input)?

To investigate such problems, open the developer tools of your browser, and use the inspect this element feature to inspect the bounding boxes of the various elements. in Chrome: press F12 to o...

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

Answer
75%
+7 −1
Q&A How to avoid "exception is never thrown" when commenting out a line while debugging

I have a code block like this: try { ... x.foo(); // This is the line that forces us to have the try block ... } catch (ArrayIndexOutOfBoundsException e) { logger.error(e.getM...

1 answer  ·  posted 3y ago by klutt‭  ·  last activity 3y ago by anatolyg‭

Question java exception
75%
+4 −0
Q&A Algorithmically generating the grid formed by the vertices of a dodecahedron (Hunt The Wumpus)

Here is an animation of a cube with faces subdivided into two rectangles, morphing into a rhombic dodecahedron, with the Platonic dodecahedron as an intermediate state. This demonstrates that the e...

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

Answer
75%
+4 −0
Q&A How do you add "Sign In with Google" to a Ruby on Rails web application that is using the Devise authentication framework?

I want to add the ability to "Sign in with Google" into a Ruby on Rails web application, that is using Devise to handle authentication. How do I do that?

1 answer  ·  posted 1y ago by Julius H.‭  ·  last activity 1y ago by Julius H.‭

Question ruby ruby-on-rails devise google-signin
75%
+4 −0
Q&A Why does `Zip` require `Semialign`

The Zip class from Data.Zip requires an implementation of Semialign: class Semialign f => Zip f In my mind: Zip takes the intersection of two shapes. Semialign takes the union of two sha...

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

Question haskell
75%
+4 −0
Q&A Should a salt be stored in the same database as the hash?

The other answers are correct, but over complicate things. Suppose you have a database with 1,000,000 email addresses and password hashes, 20% of whom are idiots and have used "password123" as the...

posted 1y ago by bencurthoys‭

Answer
75%
+4 −0
Q&A How to surround jinja expression with curly brackets?

You can separate the curly brackets with spaces, and instruct jinja to remove them afterwards: { {{- jinja_expression -}} }. That way the outer curly brackets are left untouched. The minus signs s...

posted 1y ago by Iizuki‭

Answer
75%
+4 −0
Q&A Simplest way of getting failure notification emails from kubernetes

What would be the simplest (and most lightweight) way of getting email notifications of failures in kubernetes clusters. Mostly interested in failing pods, so notifying on certain kubernetes event ...

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Iizuki‭

Question kubernetes monitoring
75%
+4 −0
Q&A Why does bash seem to parse `sh -c` commands differently when called via `execl`?

When I do this in a shell: $ /bin/sh -c 'echo hello world' hello world it's my understanding that I'm running a process with argv = {"/bin/sh", "-c", "echo hello world"}. That is, the quotes c...

1 answer  ·  posted 1y ago by Emily‭  ·  last activity 1y ago by Emily‭

Question bash execl
75%
+4 −0
Q&A Why does bash seem to parse `sh -c` commands differently when called via `execl`?

Because execl's first argument isn't argv[0]. execl("/bin/sh", "-c", ...) runs the executable /bin/sh, but sets its argv[0] to "-c", as if one had created a link called -c pointing at it and run t...

posted 1y ago by Emily‭

Answer
75%
+4 −0
Code Reviews Pattern / architecture for interfacing with components in C

Code review part: Design (important!) Global variables/external linkage are to be avoided (Why is global evil?). You don't actually have private encapsulation in this code since the inte...

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

Answer
75%
+4 −0
Q&A Why is global evil?

Many languages discourage global variables. Why is this?

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

Question software-practices language-agnostic
75%
+4 −0
Q&A When to use custom iterators versus pointers

I am working on a toy project where I have a container for which I would like to write an iterator that iterates over the values in the container. Because the values are stored in a (c-style) arra...

1 answer  ·  posted 12mo ago by mr Tsjolder‭  ·  last activity 12mo ago by Angew‭

Question c++ iterator
75%
+4 −0
Q&A VS code - stop reopening old tabs

When I open VS Code inside a project dir, it reopens all the tabs that were open last time, and re-expands all the folders that were unfolded last time. I find this annoying. Usually, when I close...

0 answers  ·  posted 1y ago by matthewsnyder‭

Question configuration vs-code
75%
+4 −0
Q&A What is a .gitkeep file?

They are not a part of git the way .gitignore files are. It's just a convention to add empty directories to git repositories. Normally git ignores empty directories altogether. Adding an empty fil...

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

Answer