<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Juan Cruz,<br>
<br>
These are some notes I took while reviewing your code:<br>
- Having both #fileOutsDirectory and #fileOutsPathDirectory is
asking for trouble<br>
- Having both #fileOutsPathDirectory and #userPathDirectory meaning
the same is extra complexity<br>
- In userPathDirectory, the line<br>
UserBaseDirectory notNil ifTrue: [ ^ UserPathDirectory ] looks
wrong anyway.<br>
- Using a Preference means not needing to add a class var, and
making it easy to persist<br>
- And code may be refactored to make it more general and compact.<br>
<br>
The result is in updates #6873, #6874 and #6875 now at GitHub. You
can get them and compare with yours. I factored away the handling of
querying the user for custom path and file at once, and persisting
the file. The 15 senders are now simpler, not more complex. And it
is trivial to do the same for Logs, UserChanges, NewPackages and
Changesets.<br>
<br>
I hope you find this exercise useful, especially wrt thinking about
the broader possibilities and consequences of solving a specific
itch.<br>
<br>
Cheers,<br>
<br>
On 11/27/2024 2:45 PM, Juan Vuletich via Cuis-dev wrote:
<blockquote cite="mid:674776EB.60605@cuis.st" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
On 11/27/2024 7:45 AM, Juan Cruz Montero via Cuis-dev wrote:
<blockquote
cite="mid:CABG0+imxvEmYGtv9PB4TYpzGMJ-9DOsoDEg0O6vkVMgqSeYZmQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div class="gmail_default" style="font-family:
verdana,sans-serif;">Hello everyone, Hello Juan V.</div>
<p style="font-family: verdana,sans-serif;">My name is Juan
Cruz Montero, and I’m a student at the University of
Buenos Aires (UBA) in Argentina. While studying for my
classes, I realized it would be very useful if the <code>FileOut</code> functionality
allowed saving files to a custom folder instead of always
defaulting to the <code>Cuis7-0-main-UserFiles</code> directory.</p>
<p style="font-family: verdana,sans-serif;">With help from
some members of the Cuis community, I implemented a
feature that prompts the user to enter a directory path.
It then verifies if the path exists. If it doesn’t, a
pop-up menu appears with a message indicating that the
path is invalid. Once the path is confirmed, the method
proceeds to file out the content to the selected location.</p>
<p style="font-family: verdana,sans-serif;">I found this
feature especially helpful for tracking my projects using
GitHub, as it allows me to file out directly to my
repository folder.</p>
<p style="font-family: verdana,sans-serif;">I hope you find
this improvement useful! I’d love to hear your thoughts or
suggestions.</p>
<p style="font-family: verdana,sans-serif;">Thank you!</p>
<br clear="all">
</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr"><u>atentamente:</u> <i>Juan Cruz Montero <span></span><span></span></i></div>
</div>
</div>
</blockquote>
<br>
Hi Juan Cruz,<br>
<br>
This is a very good idea. I'm reviewing your code, and will have
feedback tomorrow, I guess.<br>
<br>
Thanks!<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>