Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 235743

Questions about problem solving and planning for a solution through software design.

6 votes

Sufficient conditions for refactoring

A significant factor is tooling used by the team and the proficiency with which developers use the tools. The concept of refactoring was originally developed in the Smalltalk context, and there were a …
Hans-Martin Mosner's user avatar
3 votes

Create a reporting service with no fixed pre defined reports

You've already mentioned the options and their pros/cons. You might also want to look at commercially available options for comparison. In any case, the decision should likely be one of economy - how …
Hans-Martin Mosner's user avatar
1 vote

Organize and maintain a lot of cron jobs

I would suggest combining jobs that should be run on the same schedule (hourly, twice daily etc.) but should not run in parallel into shell scripts which execute them in sequence, so if one job runs a …
Hans-Martin Mosner's user avatar
4 votes
Accepted

How to refactor parallel inheritance tree?

This sounds like a better approach would be to implement a list of business rules with validity date limits, section applicability, ordering key. Then for every section, you execute the applicable rul …
Hans-Martin Mosner's user avatar
2 votes

Process many types of work in parallel, but sequential for each type of work

Design an algorithm An algorithm can be designed and analysed for theoretical correctness without committing to a specific technology. …
Hans-Martin Mosner's user avatar
1 vote

How to automatically calculate the norm for users in our time registration application?

First of all, this sounds like a set of complicated and possibly inconsistent business rules, it's hard to implement such rules in software. The only thing you can be certain of is that someone's inte …
Hans-Martin Mosner's user avatar
0 votes

Dealing with multiple application instances

You're somewhat misinterpreting the Java documentation. It merely states that file locks may have somewhat different semantics on different operating systems and file systems. In general, if you treat …
Hans-Martin Mosner's user avatar
1 vote

Unsupported concurrent calls, throw exception or log a warning?

You should consider internal behavior and UX separately. Internally, an attempt to start a second navigation while there is an ongoing one should be handled just like you would handle other invalid na …
Hans-Martin Mosner's user avatar
1 vote

Best way to calculate profit/loss with historical data

If you can do only 50 requests per minute you'll never be able to provide individual charts per user if you use up your precious API requests to serve one user request. Your only chance is to gather h …
Hans-Martin Mosner's user avatar
1 vote

Replacing service implementation based on environment variables

As a first step, this is a reasonable approach (I can't vouch for DDD or Clean Architecture, just common sense and experience). However, in the long run you might want to keep the connection between t …
Hans-Martin Mosner's user avatar
1 vote

Options to maintain queue of resources that will be uniquely returned

Any queueing service supporting multiple consumers will do. REDIS lists are suitable for this, as are the various message brokers such as RabbitMQ or ActiveMQ. You need to consider how you handle cras …
Hans-Martin Mosner's user avatar
2 votes

Improving APIs that call 3rd party APIs

The classic approach to handling sluggish external accesses is caching. You might have heard of that :-) Caching does not help in every case (for example, if you access a resource for the first time, …
Hans-Martin Mosner's user avatar
2 votes
Accepted

SQL: Analytics event value that can be string or number

This approach looks reasonable, and incidentally I have done something similar to store polymorphic values in a relational database. The storage overhead for NULL columns is often negligible, and the …
Hans-Martin Mosner's user avatar
6 votes

Boneheaded exceptions should not be caught. Then how to provide fault tolerance and reliabil...

Your examples are both in the area of interfaces to systems that are not under your control, which is different from the interfaces between components that you control and where you can ensure that th …
Hans-Martin Mosner's user avatar
0 votes

Best way to display domain object summary information efficiently and in an OO way from a la...

The simple solution of implementing generateHTML() and overriding it in subclasses is indeed a common object oriented approach, but as noticed, it puts unrelated logic or functionality into business o …
Hans-Martin Mosner's user avatar

15 30 50 per page