All Questions
7 questions
2
votes
4
answers
3k
views
I wrote a class with "init" method. Should I call it from other class methods? Or leave it to the object user? (Code Design)
I have a java class with an init method. It's different from the constructor. The constructor just initializes the variables/fields. The init method connects to a database and performs some ...
-1
votes
1
answer
1k
views
Function returning dynamic value [closed]
Imagine you have a chain of functions calls, in which each function is taking the previous function's output as input for the next calculation in the chain.
Make an assumption that you are leading ...
3
votes
1
answer
176
views
Is good or bad practice to share reporting modules between systems/apps?
At my new work, a few people want to share modules between systems/apps, and I'm a bit skeptical about it.
Context: we have a lot of little apps living in different servers, some of them are ...
0
votes
1
answer
2k
views
Best design pattern for Notification System => How to handle multiple languages and items
As always I came here to ask for some light in a design issue I am facing.
I have a system that issues some notifications :
PackageReceivedNotification
PackageSentNotification
...
3
votes
0
answers
88
views
Should my application call statsd directly or should I call statsd based off logs?
I'm planning on incrementing counters in statsd based of various events within my application. I have logging in place for these events. So, from my viewpoint I have two options:
Update the ...
5
votes
4
answers
2k
views
Is it normal to write all logs into a single file?
Our teamlead said that many files much worse than a single, despite of we are working on a big project.
He argued that our customers could more easily send logs to us if there will be just a single ...
0
votes
1
answer
83
views
How to record/store edits?
In many programs and web apps (stack exchange included) the program is able to backtrack what edits where made to the piece. My issue is similar: I want to be able to store a "timeline" of edits, ...