• Re: PSA/QUESTION: Porting Windows batch to Python for macOS/Linuxusers

    From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 19:32:30 2026
    From Newsgroup: comp.sys.mac.system

    On Sun, 22 Nov 2026 06:02:39 -0400, Maria Sophia wrote:

    There's a lot to unpack there on the "intuition", as you may not
    know I learned how to code in the 1970's on Fortran IV, IBM
    Assembly, COBOL, PL/I, etc., where, over time, I evolved to hate
    coding with a passion because every damn language does the same
    exact thing (more or less), in the end, but with frustratingly
    irrationally different syntax requirements.

    ...

    But I see that instead of writing cur = conn.cursor(),
    cur.execute(...), and cur.fetchall() in every query function, your
    suggestion allows us to create a cursor, run a cmd with bound
    values, and yield rows one at a time as a generator instead of
    loading everything into a list up front, where mapfn lets us
    optionally transform each row on the fly to pull a single column.

    You see why all languages are not the same. The concept of what is “high-level” has progressed somewhat since the 1970s.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 21:52:10 2026
    From Newsgroup: comp.sys.mac.system

    On Sun, 22 Nov 2026 17:45:34 -0400, Maria Sophia wrote:

    On Sun, 22 Nov 2026 19:32:30 -0000 (UTC), Lawrence D’Oliveiro wrote:

    But I see that instead of writing cur = conn.cursor(),
    cur.execute(...), and cur.fetchall() in every query function, your
    suggestion allows us to create a cursor, run a cmd with bound
    values, and yield rows one at a time as a generator instead of
    loading everything into a list up front, where mapfn lets us
    optionally transform each row on the fly to pull a single column.

    You see why all languages are not the same. The concept of what is “high-level” has progressed somewhat since the 1970s.

    This is about philosophy...

    I showed you an example where it was a bit more than just
    “philosophy”, did I not: Python offers constructs that let you do more
    with less code, than perhaps what you were used to. Less code to write
    means less effort and time required, less chance for bugs to get in,
    and less ongoing maintenance effort required into the future.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 21:56:14 2026
    From Newsgroup: comp.sys.mac.system

    On Sun, 22 Nov 2026 17:53:46 -0400, Maria Sophia wrote:

    C:\app\editor\android\scrcpy> dir adbfolder*
    Directory of C:\app\editor\android\scrcpy
    11/22/2026 06:27 AM 49,526 adbfolder.bat
    11/19/2026 10:59 PM 8,392 adbfolder.bat_v1p0.txt
    11/19/2026 11:17 PM 10,960 adbfolder.bat_v1p1.txt
    11/19/2026 11:20 PM 11,324 adbfolder.bat_v1p2.txt
    11/19/2026 11:23 PM 12,712 adbfolder.bat_v1p3.txt
    [etc, etc]

    Have you thought of using version control?
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Mon Nov 23 04:50:08 2026
    From Newsgroup: comp.sys.mac.system

    On Sun, 22 Nov 2026 22:12:18 -0400, Maria Sophia wrote:

    Git for Windows + TortoiseGit, with a very simple operating model
    is what I may consider.
    1. Git for Windows is the version-control engine
    2. TortoiseGit is the Windows GUI to it

    Any other suggestions?

    To me, watching someone try to do serious software development on
    Windows is like ... watching someone trying to swim in mud.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Chris@ithinkiam@gmail.com to alt.comp.os.windows-11,comp.lang.python,alt.os.linux,comp.sys.mac.system on Mon Nov 23 08:43:23 2026
    From Newsgroup: comp.sys.mac.system

    Maria Sophia <mariasophia@comprehension.com> wrote:
    Lawrence DขOliveiro wrote:
    On Sun, 22 Nov 2026 17:53:46 -0400, Maria Sophia wrote:

    C:\app\editor\android\scrcpy> dir adbfolder*
    Directory of C:\app\editor\android\scrcpy
    11/22/2026 06:27 AM 49,526 adbfolder.bat
    11/19/2026 10:59 PM 8,392 adbfolder.bat_v1p0.txt
    11/19/2026 11:17 PM 10,960 adbfolder.bat_v1p1.txt
    11/19/2026 11:20 PM 11,324 adbfolder.bat_v1p2.txt
    11/19/2026 11:23 PM 12,712 adbfolder.bat_v1p3.txt
    [etc, etc]

    Have you thought of using version control?

    Funny you mention data management version (DM) control... as I have to
    points on that rather extremely important topic...

    It is and one we've discussed before. It's also software version control
    not data management.

    I've recommended it to you many times with a view to sharing your workings
    on github which then allows people to help directly.

    1. I screwed up a lot!
    Quite a few times my fingermemory hit the gvim bangwritequit and then
    I would type the name but I'd type the wrong name 'cuz they're
    similar in both name and version numbering system.

    2. There is tons of DM in the comments, probably more than with most.

    But yes, a proper version-control system would be useful but I've never set one up. Is there a simple-to-use reasonably good free dm system available?

    Looking it up, there seems to be the following that may be of use:
    <https://tortoisegit.org/download/>
    <https://git-scm.com/install/windows>

    Git for Windows + TortoiseGit, with a very simple operating model
    is what I may consider.
    1. Git for Windows is the version-control engine
    2. TortoiseGit is the Windows GUI to it

    Any other suggestions?

    If you like a bash terminal there's gitbash and for good integration with github there's github desktop.

    Anything would likely be better'n this...

    C:\app\editor\android\scrcpy> dir adb*

    In one way, it's quite impressive that you managed so well. Most newbies
    either overwrite code or append things like "new" "workingversion"
    "new_new" etc.

    The real beauty with version control is that you can see the line-by-line differences between versions. And the real strength is that you can
    experiment with changes in a separate thread (aka branch) without affecting your main code until you're happy with it. If you're not happy with it you
    can ditch it with no pain.

    I'd recommend online tutorials like:
    https://www.w3schools.com/git/
    https://git-scm.com/learn

    However, the concepts are harder to learn than the commands and requires a
    fair bit of practice.

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Chris@ithinkiam@gmail.com to alt.comp.os.windows-11,comp.lang.python,alt.os.linux,comp.sys.mac.system on Mon Nov 23 08:43:25 2026
    From Newsgroup: comp.sys.mac.system

    Lawrence D´Oliveiro <ldo@nz.invalid> wrote:
    On Sun, 22 Nov 2026 22:12:18 -0400, Maria Sophia wrote:

    Git for Windows + TortoiseGit, with a very simple operating model
    is what I may consider.
    1. Git for Windows is the version-control engine
    2. TortoiseGit is the Windows GUI to it

    Any other suggestions?

    To me, watching someone try to do serious software development on
    Windows is like ... watching someone trying to swim in mud.

    Windows is used the world over for professional software development.

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From rbowman@bowman@montana.com to alt.comp.os.windows-11,comp.lang.python,alt.os.linux,comp.sys.mac.system on Mon Nov 23 19:38:50 2026
    From Newsgroup: comp.sys.mac.system

    On Mon, 23 Nov 2026 14:48:56 -0000 (UTC), Maria Sophia wrote:

    Someone just today also kindly & helpfully suggested "fossil" for DM
    (e.g., version control) on Windows (among other platforms).

    Over the years we used RCS, CVS, and finally Subversion:

    https://en.wikipedia.org/wiki/Apache_Subversion

    At one time we looked at moving to git but concluded there weren't enough advantages to offset the cost of moving. The pain of moving 25 years worth
    of code from CVS to Subversion was fresh in our minds.

    RCS was primitive. If a programmer checked out foo.c it was locked and
    others couldn't work on it until it was checked in. That sometimes led to heated discussions. CVS was a little better but SVN was quite good at
    merging edits.

    It's discontinued but a sister division used Visual SourceSafe. That was a real piece of work. Microsoft didn't even eat their own dog food with that one.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to alt.comp.os.windows-11,comp.lang.python,alt.os.linux,comp.sys.mac.system on Mon Nov 23 19:41:00 2026
    From Newsgroup: comp.sys.mac.system

    On Mon, 23 Nov 2026 08:43:25 -0000 (UTC), Chris wrote:

    Lawrence D´Oliveiro <ldo@nz.invalid> wrote:

    To me, watching someone try to do serious software development on
    Windows is like ... watching someone trying to swim in mud.

    Windows is used the world over for professional software
    development.

    “How to set up Windows for software development” <https://www.infoworld.com/article/4196853/how-to-set-up-windows-for-software-development.html>:
    “Step 1. Install Windows Subsystem for Linux”.
    --- Synchronet 3.21e-Linux NewsLink 1.2