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 meriton‭

63 posts
75%
+4 −0
Q&A Delete all occurrences of a character in a webpage with vanilla JavaScript

With the help of a little recursion, it's straightforward to go through all text nodes and replace their contents: function replaceIn(e) { if (e.nodeType == Node.TEXT_NODE) { e.nodeValue =...

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

Answer
55%
+3 −2
Q&A Java cannot find class within same package

eclipse has a built-in compiler. When developping in eclipse (or any other Java IDE), you can run from eclipse, you can package as a JAR file from eclipse, and even run a full fledged maven / gradl...

posted 2y ago by meriton‭

Answer
50%
+0 −0
Q&A Mocking methods with arguments

You mean, aside from giving the team that made B a stern talking to? ;-) You could introduce another layer of indirection, and mock that. For instance like this: interface MockFriendlyB { pu...

posted 2y ago by meriton‭

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 2y ago by meriton‭

Answer
80%
+6 −0
Q&A How to unittest method that involves contacting remote servers?

I'm actually mainly interested in testing foo() Ok, so let's do that. I could make it public, but I really don't want to do that just so that the test class can access it Java has 4 diff...

posted 2y ago by meriton‭

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 2y ago by meriton‭  ·  edited 2y ago by meriton‭

Answer
71%
+3 −0
Q&A Best practices in setting up a development & production environments

As a baseline, here's what we did in my last company: For tests, we used an in-memory database, whose schema was initialized by our object-relational mapper, with initial data loaded either from...

posted 2y ago by meriton‭

Answer
75%
+4 −0
Q&A Detecting if a user has stopped interacting with a web view for a certain time

The weakness of responding to idle state is that the app might be closed before the idle state is reached, and that a closing app might no longer be able to communicate with the outside world. Savi...

posted 2y ago by meriton‭

Answer
71%
+3 −0
Q&A How to prevent token from being refreshed

It's worth noting that logging out a user goes way beyond not fetching a token, because your UI needs to inform the user he is about to be (or has been) logged out. And if your UI closes or locks i...

posted 2y ago by meriton‭

Answer
75%
+4 −0
Q&A Can I set a memory limit for the .NET Core garbage collector to collect objects more aggressively?

Generally speaking, the frequency of garbage collection is a space / time tradeoff: collection effort live object size GC overhead ~ ----------------- = ---------------- ...

posted 2y ago by meriton‭

Answer
80%
+6 −0
Q&A Using nested paths vs. flat ones for API resources

Actually, while REST mandates a great many things, it does not constrain the structure of URLs. To wit: The paper that coined the term "REST" describes resource identifiers as black boxes, and make...

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

Answer
75%
+4 −0
Q&A Regarding the heap sort algorithm.

As you know, a max heap is a binary tree such that each parent is greater than its children. The most compact and efficient way to represent such a tree is an array, where each index corresponds t...

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

Answer
44%
+2 −3
Meta Questions easily answered by studying a beginner-level book

How to ask says: Do some research Before asking a new question, first take a look around. Has your question been asked before here on Software Development Codidact? You can do a search for keyw...

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

Answer
62%
+3 −1
Meta Specify framework / library version in the answer

We already have such a text field. In fact, we have several: The big one we type our answer into, and the small one we type our comments into. And this approach even allows to specifically express ...

posted 2y ago by meriton‭

Answer
60%
+1 −0
Meta Why did my question get a downvote?

I believe this should be answered by the downvoters on a case by case basis. Only they know the particular reason they downvoted that particular question. I am not a fan of canned feedback, becaus...

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

Answer
77%
+5 −0
Meta Are general questions (hopefully resulting in comprehensive, 'canonical' answers) in scope

I think that questions about programming paradigms fall under the umbrella of "questions about software design or software architecture" and are thus on topic. There have also been several questio...

posted 2y ago by meriton‭

Answer
71%
+3 −0
Q&A Retrieve user details from service in Angular

There are quite a few bugs there :-) Let's start with with the big one: In Angular (and most client side web frameworks) requests to the server happen asynchronously. That is, when a method does ...

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

Answer
33%
+0 −2
Q&A What are the disadvantages of using static methods in Java?

If it were always better to use static, the language would have been designed to always assume static, or at least default to static. That the language defaults to making methods not static indicat...

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

Answer
75%
+4 −0
Meta How much research effort is expected from the asker by the community?

Should someone be warned when their question lacks for effort? Actually, we don't know about their effort. Nor do we actually need effort, itself. What we need are particular results of effort...

posted 2y ago by meriton‭

Answer
63%
+5 −2
Meta How much research effort is expected from the asker by the community?

How much research effort is expected from the asker by the community? The kinds of research I expect varies with the question type. Before asking us ... about concepts or the meaning of wor...

posted 2y ago by meriton‭

Answer
84%
+9 −0
Q&A What's the correct way to merge a branch and its dependent branch back to master?

I think a branch is a set of commits and a commit is a set of deltas, so my concern is that merging feature-B to master would reflect only the work that is unique to feature-B Not quite: a bra...

posted 2y ago by meriton‭

Answer
83%
+8 −0
Q&A What is a good modern language to use for a Business Rules project?

Caveat When making a decision of such lasting impact, you should conduct your own evaluation according to the criteria that matter to you. This post does not attempt to replace such an evaluation,...

posted 2y ago by meriton‭

Answer
66%
+2 −0
Q&A Mixing "operational" database models with archiving ones in the database context

Generally speaking, switching data access technologies to avoid a naming conflict seems overkill. Doing that will increase the set of technologies contributors must be familiar with, and impede cod...

posted 3y ago by meriton‭

Answer
77%
+5 −0
Meta Do we need more specific up/down vote reasons for Software Development community?

I agree that these buttons should have tooltips explaining what the buttons are for. That would be far more useful than showing the result of a simple calculation on the displayed votes, and seems ...

posted 3y ago by meriton‭

Answer
75%
+4 −0
Q&A What are the risks of using iFrame as a temporary migration step for an internal web application?

I think a lot of the bad press about iframes stems from W3C deprecating them in HTML 4 strict mode, which caused the herd of web developers to internalize that iframes are bad and should be avoided...

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

Answer