Click here to Skip to main content
15,867,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 7:45
mveGerry Schmitz11-Feb-21 7:45 
GeneralRe: How to store data to be able to report on it. Pin
Mycroft Holmes11-Feb-21 10:07
professionalMycroft Holmes11-Feb-21 10: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 7:47
arnold_w1-Feb-21 7: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 8:05
professionalGreg Utas1-Feb-21 8: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 8:30
arnold_w1-Feb-21 8:30 
QuestionSystem Monitoring Pin
aslamkazi24-Jan-21 20:53
aslamkazi24-Jan-21 20:53 
AnswerRe: System Monitoring Pin
Richard MacCutchan24-Jan-21 22:06
mveRichard MacCutchan24-Jan-21 22:06 
QuestionShould this be its own class? Pin
RobertSF18-Jan-21 7:23
professionalRobertSF18-Jan-21 7: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 7:40
sysadminMatthew Dennis18-Jan-21 7:40 
AnswerRe: Should this be its own class? Pin
Richard MacCutchan18-Jan-21 22:18
mveRichard MacCutchan18-Jan-21 22:18 
AnswerRe: Should this be its own class? Pin
Gerry Schmitz19-Jan-21 4:46
mveGerry Schmitz19-Jan-21 4:46 
Questionhtlm Pin
MBC Earth7-Jan-21 1:03
MBC Earth7-Jan-21 1:03 
AnswerRe: htlm Pin
Richard Deeming7-Jan-21 1:14
mveRichard Deeming7-Jan-21 1:14 
GeneralRe: htlm Pin
Pete O'Hanlon7-Jan-21 2:41
subeditorPete O'Hanlon7-Jan-21 2:41 
GeneralRe: htlm Pin
cmarble8-Feb-21 11:58
cmarble8-Feb-21 11:58 
GeneralRe: htlm Pin
Pete O'Hanlon8-Feb-21 21:56
subeditorPete O'Hanlon8-Feb-21 21:56 
GeneralRe: htlm Pin
cmarble8-Feb-21 22:39
cmarble8-Feb-21 22:39 
QuestionWhat version should I use Pin
Stevey T5-Jan-21 6:19
Stevey T5-Jan-21 6:19 
AnswerRe: What version should I use Pin
jsc428-Jan-21 2:48
professionaljsc428-Jan-21 2:48 
QuestionDistributed transactions within a microservices architecture Pin
Pelle3021-Dec-20 0:22
Pelle3021-Dec-20 0:22 
AnswerRe: Distributed transactions within a microservices architecture Pin
Gerry Schmitz21-Dec-20 9:19
mveGerry Schmitz21-Dec-20 9:19 
QuestionWhat technologies to use to build a site like Kaggle? Pin
SIDDHARTH_JAIN12-Dec-20 17:50
SIDDHARTH_JAIN12-Dec-20 17:50 
AnswerRe: What technologies to use to build a site like Kaggle? Pin
Gerry Schmitz13-Dec-20 6:11
mveGerry Schmitz13-Dec-20 6:11 
AnswerRe: What technologies to use to build a site like Kaggle? Pin
Richard MacCutchan13-Dec-20 6:34
mveRichard MacCutchan13-Dec-20 6:34 
QuestionShould we duplicate code? Pin
Member 44870839-Dec-20 9:24
Member 44870839-Dec-20 9: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.