Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Copy only new files from SFTP to UNC path

To identify new files, I copied ... It sounds like you're unhappy with this means of identifying new files, given that such a copy operation can fail. Ideally you would periodically run a report ...
J_H's user avatar
  • 7,156
2 votes
Accepted

Dynamic configuration or static configuration for software not aimed to the general public?

Talk to your customer. The specifications should include details of what level of user accessible configuration is expected. If it does not, ask for clarifications. The best place for configurations ...
JonasH's user avatar
  • 5,544
0 votes

Dynamic configuration or static configuration for software not aimed to the general public?

A configuration file in an easily readable and editable format provides the most efficient method of keeping your IDs synchronized. It doesn't require a developer to make the change, and there's no ...
digimunk's user avatar
  • 159
0 votes

Best practice: keep DB models in one file or split into modules?

this is interesting. I have had my models in one single file but given my application needs to be expanded now from 4 models to 10, i figured i introduce a directory, "orm" and store all my ...
Gordon's user avatar
  • 1
5 votes

Do you re-include system headers in the implementation files?

When a header file A.h requires an include for <unordered_map>, and the related cpp file A.cpp (which includes A.h) contains some code dealing with objects of type unordered_map (regardless ...
Doc Brown's user avatar
  • 209k
0 votes
Accepted

Is it a bad idea to use NodeJS + Python for back end development?

The team has experience with NodeJS and NestJS, and some of us have experience with Python Your choice is made for you. Even if you should really use a proper language like c#, are you really all ...
Ewan's user avatar
  • 76.4k
1 vote

Who should build the RESTful client between two applications which both offer APIs?

In general, it's easier to pull data than to push it. If something goes wrong when pushing data, the side doing the pushing won't always know that the push wasn't successful. For example, if there's ...
JimmyJames's user avatar
  • 27.5k
0 votes

Who should build the RESTful client between two applications which both offer APIs?

All else being equal, it seems like it would be technically better for application A to push the data to B because it'll be more timely and avoid a polling interface.
John Bickers's user avatar
2 votes

Who should build the RESTful client between two applications which both offer APIs?

Each application should publish its own client* If you test your api, you need a client to connect to it for the test. So you have a client right there, publish it. If the calling code writes a client,...
Ewan's user avatar
  • 76.4k
2 votes

What is a good architecture / design pattern for giving multiple shared attributes in different combinations?

The basic approach for specifying arbitrary data fields arranged in arbitrary shapes, and for implementing algorithms which perform processing upon those fields and shapes, is nowadays called "...
Steve's user avatar
  • 8,959
5 votes
Accepted

What is a good architecture / design pattern for giving multiple shared attributes in different combinations?

Yes there is. It is called the entity component system. It is used mostly in gaming industry to avoid deep hierarchies and share "components" (attributes or behavior or both) between "...
Christophe's user avatar
  • 77.9k
6 votes

Is it good practice for object APIs to be required to be called in sequence to gather information?

Your coworker is right. Constructors should give you a fully initialized and usable object. I also understand why you don't want parsing to happen in the constructor, because it can throw an exception....
Greg Burghardt's user avatar
2 votes

What is the advantage of log file rotation?

The original reason for using size as the rotation criteria almost certainly came from the limitations of 32-bit operating systems, where most applications (and maybe the OS itself) couldn't handle ...
Barmar's user avatar
  • 344
3 votes

What is the advantage of log file rotation?

Limit total amount of resources on system In addition to some of the other points mentioned, I would like to highlight that some systems take care to limit the total number of resources. Not only disk ...
thomastiger's user avatar
0 votes

Why do many software developers violate the open/closed principle?

Several good answers have already been given, but I want to focus on another part of your question that's not been explicitly addressed. The source of your frustration stems from developers changing ...
Flater's user avatar
  • 51.7k
0 votes

Why do many software developers violate the open/closed principle?

You don’t or shouldn’t have the goal to conform to OCP at all. It is a tool that makes life easier if you use it properly, that’s all. And it comes at a cost. You will as a reasonable developer always ...
gnasher729's user avatar
  • 45.7k
6 votes

What is the advantage of log file rotation?

I worked on a bug last year where an action in production was suddenly failing due to a timeout. Fast, near instantaneous in dev and QA, failing in production. Took weeks of on again off again work ...
jmoreno's user avatar
  • 11k
15 votes

What is the advantage of log file rotation?

The other answers already provided very useful reasons, but there is one more I'm surprised I haven't seen outside of a comment yet: To be able to delete old log files to free disk space A very busy ...
Syndic's user avatar
  • 312

Top 50 recent answers are included