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.6k posts
 
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 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 3y ago by deleted user  ·  edited 3y ago by deleted user

Answer
75%
+4 −0
Q&A Interpreted language: What is its benefit for being written in that way ?

Some additional advantages of interpreted languages: Interpreted programs are basically scripts run by the interpreter. The interpreter can be embedded into other applications that want to provid...

posted 4y ago by Olin Lathrop‭  ·  edited 4y ago by Olin Lathrop‭

Answer
75%
+4 −0
Q&A How to read lines into an array in Bash

Your code adds all three elements to the list. You can see this if you add a line inside the while loop: echo "$line" However, if you give the command echo $my_array, it will only show you the...

posted 3y ago by FractionalRadix‭

Answer
75%
+4 −0
Q&A How do I configure log4net from an arbitrary data structure?

My assumption is that, internally, log4net loads its XML file into some data structure (maybe not a dict, but some equivalent of cfg_dict above) and then passes that structure to whatever code ma...

posted 3y ago by Peter Taylor‭  ·  edited 3y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A How to prompt a user for an expanded variable in Bash?

I work with CentOS operating system and my only shell is Bash. I want to create a script which prompts a user with a question like "What is your web application root?" The user should answer dire...

1 answer  ·  posted 4y ago by deleted user  ·  last activity 4y ago by Someone‭

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‭

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%
+7 −1
Meta Autocompleting usernames in comments does not seem to work

It seems like autocompleting usernames does not work. I wanted to answer a comment and started typing @ followed by the first letter in the username, but no suggestion appeared. I tried pressing ta...

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

75%
+4 −0
Code Reviews PHP script to create a KML square centred on a point.

echo "Enter Latitude\n"; $handle = fopen("php://stdin", "r"); $lat = deg2rad(trim(fgets($handle))); fclose($handle); echo "Enter Longitude\n"; $handle = fopen("php://stdin", "r"); $long = deg2rad(...

posted 4y ago by Peter Taylor‭

Answer
75%
+4 −0
Code Reviews Counting number of assignments that a `fscanf` format strings implies

I'm writing a function that counts the number of assignments for a fscanf format string. I studied the documentation in C standard 7.21.6.2 It looks like it works. It passes all test cases I have w...

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

75%
+4 −0
Meta What is the point of tagging a question with both a parent and a child tag?

On the old sites, if you wanted to tag something with [sql] and [mysql] that required two tags. However, because we have hierarchal tags where [mysql] is a child of [sql] you only need to tag it wi...

3 answers  ·  posted 4y ago by Charlie Brumbaugh‭  ·  last activity 4y ago by Peter Taylor‭

Question discussion
75%
+4 −0
Q&A How can I add "withCredentials:true" for HTTP requests generated by Swagger UI?

I have added Swagger UI for an ASP.NET Core 3.1 application and I have realized that all endpoints requiring Windows Authentication fail. This issue is created by the fact that generated HTTP reque...

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

75%
+4 −0
Meta Code Reviews: ‘it's fine’

(Elsewhere...) You look over a post on Code Reviews, and you don't find any problems. Should you post an ‘it's fine’ answer, stay silent, or do something else? Seems to me there's some value in hav...

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

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 10mo ago by Julius H.‭  ·  last activity 10mo ago by Julius H.‭

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 10mo ago by WheatWizard‭  ·  last activity 10mo 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 11mo 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 11mo 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 9mo ago by Iizuki‭  ·  last activity 9mo ago by Iizuki‭

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 9mo ago by Emily‭  ·  last activity 9mo 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 9mo 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 9mo ago by Lundin‭  ·  edited 9mo ago by Lundin‭

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

Many languages discourage global variables. Why is this?

3 answers  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 9mo ago by mavavilj‭

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 8mo ago by mr Tsjolder‭  ·  last activity 8mo 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 9mo ago by matthewsnyder‭