10

Decided to replace batch with python.

It's like the difference between night and day.

Comments
  • 3
    I'd have said night and night, but then again, I'm a complete Python noob...
  • 5
    My big problems were

    1. Batch is not portable if I want to allow people to compile on *other platforms*

    2. It doesnt have a lot of general purpose structure and libraries for it. It does one thing, badly.

    3. Venv gives me enough environmental isolation for my purposes

    4. Python is trivial to pick up.

    I was also having trouble figuring out how I wanted to arrange the source code vs exports to different platforms, knowing there would have to be platform specific code. First time I had to do something like that, I'm a noob.

    In any case python gives me the flexibility that batch doesnt.

    Also, finally picked up git. Cant believe I ever lived doing version control by hand.

    I must be insane or something.
  • 5
    @Wisecrack you didn't use git until now?!! You must've been a masochist

    Regarding the batch to python switch. Ye, I agree. I still use both on occasion cause batch is still useful when you just need to chain a couple of terminal commands. But for actual processing, file downloading and even custom interfaces, python is like the perfect solution for me
  • 3
    @Wisecrack Wait ... you have lived this long without Git? 🤯
  • 2
    I can say that Linux shell language is similarly shitty in writing readable code.

    Replaced it with Python too ;b
    I know it well enough. Especially the best situation is made by inbuilt ArgeParse library, which is nice to make readable CLI interface with automade help in python without third party packages
  • 1
    @PonySlaystation yes. Hand managed my versioning and branching because that's perfectly doable on small one and two person teams.

    But building something that's multiplatform and highly moddable means doing everything correctly from the start.
  • 1
    @Hazarth In fact I am a masochist.

    Unfortunately I only seem to attract girls who are also masochists.

    Arguments over which has to do the chore of "whipping duty" can be a real pain.

    Almost as bad as arguments between two people who like to be on bottom.

    Two tops at least get the fun and sexy variation of wrestling as an excuse.
  • 1
    I read you post as "Bash"... And I thought, sure it's kind of clunky but not too bad for many ops tasks...

    But Batch... Holy shit. That's pure hell.
Add Comment