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
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 =...
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...
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...
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 ...
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...
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...
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...
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...
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...
Generally speaking, the frequency of garbage collection is a space / time tradeoff: collection effort live object size GC overhead ~ ----------------- = ---------------- ...
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...
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...
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...
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 ...
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...
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...
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 ...
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...
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...
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...
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...
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,...
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...
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 ...
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...