[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: Organizing desktop application
From: Maurizio Berti <maurizio.berti () gmail ! com>
Date: 2021-04-13 19:03:09
Message-ID: CAPn+-XQ1zKLDXeFVn=GKpJbgJmRJyniPaPWKsz0jufCR1vsRMw () mail ! gmail ! com
[Download RAW message or body]
Il giorno mar 13 apr 2021 alle ore 19:40 Patrick Stinson <
patrickkidd@gmail.com> ha scritto:
> I disagree with some of the comments above. There are a number of
> application project folder structures which mimic the MVC structure.
Keeping a well organized project structure is a very important aspect, I'd
never say the contrary, nor that there's no point in splitting MVC parts
into folders.
Some packages provide "MVC-ready" project templates, and, especially with
package management, some structures must be respected as much as possible,
but those are also often a requirement specific to "extra" files (images,
docs and other resources).
Some specific libraries *have* to respect the structure due to their
nature, even to the point of file naming (consider Django).
The point is: it's not a /strict/ requirement for Python (or Qt for what
matters), and it's important to understand the difference between knowing a
good practice and actually following it.
I've seen people trying to work their way out of a madness of complex
directory/file/object structure and insane cross references, just because
"it has a model, there's a view, so I need to respect the MVC pattern",
with the result that *any* benefit it could have provided was completely
nullified by an excessive and unnecessary complexity caused by wrong
assumptions on otherwise correct approaches.
To paraphrase a common quote (but, actually, about threads):
> You like salt, I like salt, we all like salt; but we eat more pasta.
The fact that a paradigm is good for a certain concept doesn't mean that if
that concept is met then that paradigm *must* be used.
Cheers,
Maurizio
--
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
[Attachment #3 (text/html)]
<div dir="ltr"><div dir="ltr">Il giorno mar 13 apr 2021 alle ore 19:40 Patrick \
Stinson <<a href="mailto:patrickkidd@gmail.com">patrickkidd@gmail.com</a>> ha \
scritto:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">I disagree with some of the comments above. There \
are a number of application project folder structures which mimic the MVC \
structure.</blockquote><div><br></div><div>Keeping a well organized project structure \
is a very important aspect, I'd never say the contrary, nor that there's no \
point in splitting MVC parts into folders.</div><div>Some packages provide \
"MVC-ready" project templates, and, especially with package management, \
some structures must be respected as much as possible, but those are also often a \
requirement specific to "extra" files (images, docs and other \
resources).</div><div>Some specific libraries *have* to respect the structure due to \
their nature, even to the point of file naming (consider Django).</div><div><br>The \
point is: it's not a /strict/ requirement for Python (or Qt for what matters), \
and it's important to understand the difference between knowing a good practice \
and actually following it.<br>I've seen people trying to work their way out of a \
madness of complex directory/file/object structure and insane cross references, just \
because "it has a model, there's a view, so I need to respect the MVC \
pattern", with the result that *any* benefit it could have provided was \
completely nullified by an excessive and unnecessary complexity caused by wrong \
assumptions on otherwise correct approaches.<br><br>To paraphrase a common quote \
(but, actually, about threads):</div><div><br></div><div>> You like salt, I like \
salt, we all like salt; but we eat more \
pasta.</div><div><br></div><div><br></div><div>The fact that a paradigm is good for a \
certain concept doesn't mean that if that concept is met then that paradigm \
*must* be used.</div><div><br></div></div>Cheers,<div>Maurizio<br \
clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">È difficile \
avere una convinzione precisa quando si parla delle ragioni del cuore. - \
"Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" \
target="_blank">http://www.jidesk.net</a></div></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic