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
Meta Long code lines are not wrapped

As Lundin points out, there are quite a few whitespace-sensitive programming languages out there, where automatic wrapping would change the apparent meaning of the code, such as Phython or JavaScri...

posted 3y 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
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
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
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
75%
+4 −0
Q&A How to properly deal with impersonation in a Web application? (security vs. usefulness for tech support)

My first instinct would be to track both identities, using one for access control, and the other for audit purposes. For instance, rather than storing: User createdBy; you'd store User create...

posted 3y ago by meriton‭

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

Answer
75%
+4 −0
Q&A How to reason about transaction isolation during development

Consider the following code: public class OnlineShoppingService { @Transactional public void cancelOrder(String id) { if (shipmentRepository.findShipmentForOrder(id) != null) { ...

1 answer  ·  posted 3y ago by meriton‭  ·  last activity 3y ago by Alexei‭

75%
+4 −0
Q&A Is it necessary for a build server to remove node_modules before an AOT build?

I suspect this is an outdated practice: Prior to npm 3, npm did not keep track of resolved dependencies, and npm install would try to reconcile the existing with the declared dependencies. Since no...

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

Answer
75%
+4 −0
Q&A Is there a way to estimate the execution time of a statement in MySQL?

The best way to estimate this is to measure it, for instance by importing a backup of the production database into a new instance and run your scripts there. Short of that, you could consult the ex...

posted 3y ago by meriton‭

Answer
72%
+6 −1
Meta How are we supposed to give feedback for poor questions if such comments are deleted?

The question https://software.codidact.com/posts/281517 is currently voted at -3. I wrote several comments to explain why, so the author can hopefully ask better questions in the future. This morn...

2 answers  ·  posted 3y ago by meriton‭  ·  last activity 3y ago by deleted user

Question discussion comments
71%
+3 −0
Meta Community feedback: What type of questions can I ask here?

questions asking for implementing a certain feature (or homework). You should include your (partially working) trials in the post asking to explain what a certain code does. A great many questi...

posted 3y ago by meriton‭

Answer
71%
+3 −0
Meta Give actionable feedback when closing questions

I think the best solution is to have specific canned close reasons, with vetted messages clearly communicating what was bad, why that is bad, and specific tips for improving it. Here are some attem...

posted 3y 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
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
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
70%
+5 −1
Q&A Is omitting braces for single statements bad practice?

Advantages of Mandatory Braces When in Rome, do as the Romans do. Since every popular coding standard for java mandates the use of braces, and every popular code style checking tool enforces their...

posted 3y ago by meriton‭

Answer
66%
+2 −0
Q&A What is the latest, efficient way to create a login page in JAVA?

A login page is but the tip of the iceberg. For a login page to function, you need a way to store users and their passwords, verify passwords in a safe way, prevent the login form from being bypass...

posted 3y ago by meriton‭

Answer
66%
+2 −0
Q&A How to enable or disable a bunch of reactive form controls?

Actually, TypeScript is perfectly able to type check the code you posted. Here's what the compiler thinks: const functionName = disable ? "disable" : "enable"; // inferred type: "disable" | "enabl...

posted 3y ago by meriton‭

Answer
66%
+2 −0
Code Reviews Setting the authentication token in an Angular application for generated API clients

Do you need to write this yourself? That is, are you sure there is no library that could do this for you? After all, the angular services generated by the typescript-angular language binding of the...

posted 3y ago by meriton‭  ·  edited 3y 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
66%
+6 −2
Meta Give actionable feedback when closing questions

Having had the dubious honor of experiencing the closing process from the perspective of a question author, it seems to me that closing does not adequately communicate why the question was closed, ...

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

Question discussion
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
62%
+3 −1
Meta The size of the code format window is much too small.

Seconded. This looks accidental, since the height is set to 20em, but the line-height is set to 1.5em, resulting in 20/1.5 = 13 lines being displayed. I wonder what that line-height is for? I know ...

posted 3y ago by meriton‭

Answer
62%
+3 −1
Q&A Would a MySQL database run more efficiently with smaller varchar lengths?

The manual writes: In contrast to CHAR, VARCHAR values are stored as a 1-byte or 2-byte length prefix plus data. The length prefix indicates the number of bytes in the value. A column uses one len...

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

Answer