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 Dye all label asterisks Red with vanilla JavaScript

While there might be some JavaScript "magic-like" solution I don't know of, my own solution was making the HTML a tiny bit more complex and adjusting the CSS to the change. I have inserted my labe...

posted 4y ago by deleted user  ·  edited 4y ago by deleted user

Answer
75%
+4 −0
Q&A Declaring interface members with generic return types: "The type parameter [generic type] cannot be used with type arguments"

I'm trying to write an interface to define the set of operations I expect my repositories' Unit of Work implementations to have, and I want this interface to be fulfilled by EF Core's DbContext cla...

2 answers  ·  posted 4y ago by Marc.2377‭  ·  last activity 4y ago by Marc.2377‭

Question c# generics .net interface .net-core
75%
+4 −0
Q&A Multiple catches with almost the same code.

There are many things we label as bad when programming, for various reasons. Repeating code is slightly bad. But writing function like-macros is extremely bad. You should not try to replace someth...

posted 4y ago by Lundin‭

Answer
75%
+4 −0
Q&A Declaring interface members with generic return types: "The type parameter [generic type] cannot be used with type arguments"

The short answer is that it can't be done. C# doesn't support type functions. https://github.com/dotnet/csharplang/issues/339 is probably the issue to follow if you want to track their progress. W...

posted 4y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A Update list based on presence of identifier in a second list

Adding to Peter Taylor's reply: The OP requested something "more LINQ". I guess it can't get any "more linq" than... MoreLINQ! That library also has a ForEach(). If you only need that, maybe it...

posted 4y ago by sktpin‭

Answer
75%
+4 −0
Q&A What should healthcheck of an Web API application actually check?

I am interested in a guideline to understand how dependencies are considered when building the healthcheck functionality for an API. Like any functionality, the implementation of this feature sho...

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

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 1y ago by mr Tsjolder‭  ·  last activity 1y 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
75%
+4 −0
Q&A Understanding mutable default arguments in Python

Workarounds Avoiding mutation Because problems are only caused by actually mutating the default argument, the simplest way to avoid problems is to... not do that. Pythonic code obeys command-quer...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
75%
+4 −0
Q&A Set transform of SVG element

I'm trying to set the transform attribute of a group within an SVG. Specifically, I'd like to set translate's value to 0 0. I tried using the set element for this but that didn't have an observab...

1 answer  ·  posted 1y ago by Matthias Braun‭  ·  edited 1y ago by Matthias Braun‭

Question svg
75%
+4 −0
Q&A How to pass command line arguments when using cargo run?

When developing a rust program you build and run using cargo run. However you cannot just append arguments to that as they will be caught (and likely rejected) by cargo itself. So how to pass argum...

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

Question rust rust-cargo
75%
+4 −0
Q&A How should open source forks, with a mix of upstreamable and non-upstreamable commits, be maintained?

The ideal way is to separate the upstreamable and non-upstreamable changes. For example you could maintain two branches: public and private. All upstreamable changes are cherry picked to public an...

posted 1y ago by matthewsnyder‭

Answer
75%
+4 −0
Q&A How to pass command line arguments when using cargo run?

Specify your arguments after --: cargo run --offline -- --my-argument 42 --offline is just an example of cargo's own argument. They are passed before --. --my-argument and 42 will be passed to...

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

Answer
75%
+4 −0
Q&A Is it possible to re-export types similar to JS?

I'm writing a library "MyLibrary". In there, I group code into sections that make sense. Let's say I have a folder "Reports" and a folder "Helpers". I would like to have my code separated while ...

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

Question c#
75%
+4 −0
Q&A Can you run Python code on text in VS Code?

In VS Code, is it possible to run Python code on the text being edited? I realize that I can save my text, create a .py file, switch to a terminal (including VS Code's own terminal) and run the .p...

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

Question python software-recommendation vs-code