Click here to Skip to main content
15,845,330 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: How to store data to be able to report on it. Pin
Gerry Schmitz11-Feb-21 8:45
mveGerry Schmitz11-Feb-21 8:45 
GeneralRe: How to store data to be able to report on it. Pin
Mycroft Holmes11-Feb-21 11:07
professionalMycroft Holmes11-Feb-21 11:07 
QuestionWhat are some intuitive ways to visually show communication packets between several devices, as well as general debug information? Pin
arnold_w1-Feb-21 8:47
arnold_w1-Feb-21 8:47 
AnswerRe: What are some intuitive ways to visually show communication packets between several devices, as well as general debug information? Pin
Greg Utas1-Feb-21 9:05
professionalGreg Utas1-Feb-21 9:05 
GeneralRe: What are some intuitive ways to visually show communication packets between several devices, as well as general debug information? Pin
arnold_w1-Feb-21 9:30
arnold_w1-Feb-21 9:30 
QuestionSystem Monitoring Pin
aslamkazi24-Jan-21 21:53
aslamkazi24-Jan-21 21:53 
AnswerRe: System Monitoring Pin
Richard MacCutchan24-Jan-21 23:06
mveRichard MacCutchan24-Jan-21 23:06 
QuestionShould this be its own class? Pin
RobertSF18-Jan-21 8:23
professionalRobertSF18-Jan-21 8:23 
I'm working on a Windows forms application that shows a list of PDFs in a given folder, with a toolbar with buttons that carry out operations on the list of PDFs. The form has a data grid view that takes as its data source a list (PDFlist) of objects (PDFentry) that have properties file name, file date, file size, etc. (Like Windows Explorer).

Because the operations are carried out on the entire list of PDFs, the code for the various operations necessarily loops through PDFlist, acting on each item. That's a lot of code, so form.cs is pretty big (900+ lines). It seemed to me that PDFlist could be its own class, inheriting from List and adding methods for the various operations. Then form.cs would just have a line that said PDFlist.Compress(), or PDFlist.Print(), or whatever the operation was.

But then the red flag was that there's only ever one instance of PDFlist. It's not a singleton in the sense that I don't have to prevent a second instance from being created. It's just that the application only uses one PDFlist throughout.

Would this be a case where a static class is appropriate?
AnswerRe: Should this be its own class? Pin
Matthew Dennis18-Jan-21 8:40
sysadminMatthew Dennis18-Jan-21 8:40 
AnswerRe: Should this be its own class? Pin
Richard MacCutchan18-Jan-21 23:18
mveRichard MacCutchan18-Jan-21 23:18 
AnswerRe: Should this be its own class? Pin
Gerry Schmitz19-Jan-21 5:46
mveGerry Schmitz19-Jan-21 5:46 
Questionhtlm Pin
MBC Earth7-Jan-21 2:03
MBC Earth7-Jan-21 2:03 
AnswerRe: htlm Pin
Richard Deeming7-Jan-21 2:14
mveRichard Deeming7-Jan-21 2:14 
GeneralRe: htlm Pin
Pete O'Hanlon7-Jan-21 3:41
subeditorPete O'Hanlon7-Jan-21 3:41 
GeneralRe: htlm Pin
cmarble8-Feb-21 12:58
cmarble8-Feb-21 12:58 
GeneralRe: htlm Pin
Pete O'Hanlon8-Feb-21 22:56
subeditorPete O'Hanlon8-Feb-21 22:56 
GeneralRe: htlm Pin
cmarble8-Feb-21 23:39
cmarble8-Feb-21 23:39 
QuestionWhat version should I use Pin
Stevey T5-Jan-21 7:19
Stevey T5-Jan-21 7:19 
AnswerRe: What version should I use Pin
jsc428-Jan-21 3:48
professionaljsc428-Jan-21 3:48 
QuestionDistributed transactions within a microservices architecture Pin
Pelle3021-Dec-20 1:22
Pelle3021-Dec-20 1:22 
AnswerRe: Distributed transactions within a microservices architecture Pin
Gerry Schmitz21-Dec-20 10:19
mveGerry Schmitz21-Dec-20 10:19 
QuestionWhat technologies to use to build a site like Kaggle? Pin
SIDDHARTH_JAIN12-Dec-20 18:50
SIDDHARTH_JAIN12-Dec-20 18:50 
AnswerRe: What technologies to use to build a site like Kaggle? Pin
Gerry Schmitz13-Dec-20 7:11
mveGerry Schmitz13-Dec-20 7:11 
AnswerRe: What technologies to use to build a site like Kaggle? Pin
Richard MacCutchan13-Dec-20 7:34
mveRichard MacCutchan13-Dec-20 7:34 
QuestionShould we duplicate code? Pin
Member 44870839-Dec-20 10:24
Member 44870839-Dec-20 10:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.