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.

Posts by Moshi‭

51 posts
76%
+8 −1
Q&A Styling with classes vs styling with CSS

I've noticed that a lot of sites have something like this going on: <div class="has-margin-0 has-padding-4"> <div>...</div> <div>...</div> ... </div>...

1 answer  ·  posted 3y ago by Moshi‭  ·  last activity 3y ago by luap42‭

75%
+4 −0
Q&A Function call; `this` gets bound to unexpected value

Why parenthesis don't work as you expect You seem to have a rough idea how the this keyword is resolved, so I'll skip explaining that and go straight to your question. I was surprised to find that...

posted 3y ago by Moshi‭

Answer
75%
+4 −0
Q&A Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?

This question probably stems from misunderstanding what case sensitivity is. Being case insensitive does not mean only allowing one case - in fact, it implies the opposite! If one case was treated ...

posted 1mo ago by Moshi‭

Answer
75%
+4 −0
Meta interface and interface-type tags

My most recent question was tagged with interface-type. I had seen the interface tag when I was creating the question, but the usage information says Please avoid using this tag, as it is too g...

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

Question discussion tags
75%
+4 −0
Q&A Why does pushing to one array affect all the arrays in my two-dimensional array?

The problem is that the fill function is filling the array with references to the same empty array[1], and therefore modifying that array will affect every entry because all of them are actually th...

posted 2y ago by Moshi‭

Answer
75%
+4 −0
Q&A Hash sign as a path component in a user script's @match command prevents the script from running

The part after the hashtag is called a URI fragment. Unfortunately, Tampermonkey does not allow you to match hashtags. This is arguably for good reason. The hashtag can easily change (and for sing...

posted 2y ago by Moshi‭

Answer
75%
+4 −0
Meta Give actionable feedback when closing questions

This is a current limitation of the software. Right now, there is simply no way to add detailed feedback to the close reason. There is a list of pre-written close reasons (which can be set per site...

posted 3y ago by Moshi‭

Answer
71%
+3 −0
Q&A Is there an equivalent way of returning early in a MySQL stored procedure?

I don't know any SQL at all, so credits go to the top answer of Mysql - How to quit/exit from stored procedure on StackOverflow. You can simply wrap the code in a label and LEAVE the label, ex. CR...

posted 3y ago by Moshi‭

Answer
71%
+3 −0
Meta Code Reviews: ‘it's fine’

Put it in a comment if it's just "It's fine, no problems here". As with most answers that aren't substantial enough to warrant their own answer post, I'd say to just leave a comment. As you said, k...

posted 3y ago by Moshi‭

Answer
71%
+3 −0
Q&A VS Code: How to open a file and folder in a new window?

Use --add/-a to add a folder code <file> -n -a <folder>

posted 7mo ago by Moshi‭

Answer
71%
+3 −0
Q&A How to resolve the mypy error "Returning Any from function declared to return 'Dict[str, Any]'" in Python?

You can cast the result of the expression to the desired type def load_json_data(filepath: str) -> Dict[str, Any]: with open(filepath) as json_data: return cast(Dict[str, Any], js...

posted 9mo ago by Moshi‭

Answer
71%
+3 −0
Q&A Updating the database reverses previous changes

The Code using Microsoft.EntityFrameworkCore; public class BloggingContext : DbContext { public DbSet<Blog> Blogs { get; set; } public DbSet<Post> Posts { get; set; } ...

2 answers  ·  posted 1y ago by Moshi‭  ·  last activity 1y ago by FoggyFinder‭

71%
+3 −0
Q&A Why does pushing to one array affect all the arrays in my two-dimensional array?

I was trying to initialize a simple two dimensional array as follows: const arrays = Array(3).fill([]); However, when I tried to push an entry into one of the arrays, it seems like it gets push...

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

Question javascript array
71%
+3 −0
Q&A Adding elements to wrapper after calling wrap doesn't work

I'm trying to do some DOM manipulation in jQuery, but am having issues with creating wrapper elements. For some reason, prepending to the wrapper doesn't work after I call wrap. Code <html>...

1 answer  ·  posted 1y ago by Moshi‭  ·  last activity 1y ago by Mithical‭

71%
+3 −0
Meta Meaning of the tag software practices?

(The user who created the tag) The tag was to make it clear that (somewhat) opinion-based questions are allowed on site, with the [software-practices] marking which questions are about "best practi...

posted 3y ago by Moshi‭

Answer
66%
+2 −0
Q&A Will my implementation of a Spring Boot app work after being deployed on the Internet?

Now of course this will directly work only within my network. But if I upload this project to Heroku or something similar, would it still work as intended? I'll assume that you actually have the ...

posted 3y ago by Moshi‭

Answer
66%
+2 −0
Q&A VS Code can't find node installation due to dynamically setting the PATH

I installed Node.js using NVS to manage my node installations. This works great, except that I haven't been able to figure out how to debug using VS Code. When trying to launch, I receive this err...

0 answers  ·  posted 9mo ago by Moshi‭

66%
+4 −1
Q&A Create a list of Niven numbers in Python

Think of what your for loop is doing, specifically at iterations 11 and 12. for i in range(1,n+2): while not g(i): i+=1;continue a.append(i) In pseudo instructions: for-loop iterati...

posted 1y ago by Moshi‭

Answer
66%
+2 −0
Q&A Nodejs wrap async function in synchronous function

What are my options here? Do I need to switch the module I'm using to access the db? Do I need to write C code? Or is there a really clever technique to directly solve this problem, using only nod...

posted 3y ago by Moshi‭

Answer
66%
+2 −0
Q&A How to fire the change event for an input field?

You can use the dispatchEvent method. const inputField = document.querySelector("#example"); inputField.value = "X"; inputField.dispatchEvent(new Event('change')); jsfiddle

posted 2y ago by Moshi‭

Answer
66%
+2 −0
Q&A Change font-family with JavaScript

Without knowing your use case, the simplest modification would just be to target everything: document.querySelectorAll("*").forEach((e) => { e.style.fontFamily = "arial"; }); (As an as...

posted 2y ago by Moshi‭

Answer
60%
+1 −0
Q&A EF-core Find method doesn't include other entities

(Full code available for cloning here) I've run into some odd behavior of EF-core's Find method. It seems like the returned entity doesn't include the rest of the data. MWE Models using Micro...

1 answer  ·  posted 1y ago by Moshi‭  ·  last activity 11mo ago by Sylvester‭

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

An answer on a related Meta suggestion, Remove parent tags from a post where a child tag is present, provides a case where you might want to tag both. For example, if mammal is a parent of deer,...

posted 3y ago by Moshi‭

Answer
60%
+1 −0
Q&A Are hyphens and/or underscores valid in golang package names?

Disclaimer: I don't know Go. This is all just me reading the specification. In the Go specification under Packages, it defines PackageName. PackageName = identifier Under Identifiers identi...

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

Answer
60%
+4 −2
Meta Site scope - draft proposal

I don't really see the point of listing specific things as "on topic." Any such list is bound to either be incomplete or have a grey area overlap with things off-topic. I also disagree with some of...

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

Answer