TheMartianLife,
@TheMartianLife@aus.social avatar

Over time, I use more and more programming languages in my work. Most contracts I do require two or three, every so often I get to try one I haven’t used before. Most days lately I work across four or five in the same day. And yet, one of them is always Python.

Like sand, really does get everywhere... 🐍💪

TheMartianLife,
@TheMartianLife@aus.social avatar

Working on radar monitoring systems? JavaScript [and Python].

…telescope control systems? Perl, Java, FORTRAN [and Python].

…GPU-based signal processing? C, C++, CUDA [orchestrated via Python, then post-processed in Python].

…astrodynamics simulations? They’ll try to convince you to make it in IDL or something [but ignore them and just do it in Python].

…a nice document? LaTeX [with Python build steps].

…updating old MATLAB code? Well, nobody has licenses anymore [so you should probably port it to Python].

…a basic shell utility? ___ [Might as well make it Python, since anyone who uses it will have Python installed anyway and then at least they’ll know how to modify it for their needs].

juandesant,
@juandesant@astrodon.social avatar

@TheMartianLife why Python for building latex documents? What’s wrong with a shell script… or even a small Makefile?

TheMartianLife,
@TheMartianLife@aus.social avatar

@juandesant because there was a point where macOS has a breaking change from Bash to ZSH default shell so for a while there anything I would write a tiny shell script for I just did in Python, and I wanted to automate the creation of invoices for clients but I was too lazy to genericise a document class properly so I just inject arguments into the a template document and run the build.

But it ain’t broke, so…

juandesant,
@juandesant@astrodon.social avatar

@TheMartianLife now I understand it better. If you’re doing things like building the actual text to typeset then it makes more sense to use Python.

Any particular library/module that you find useful there?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • GTA5RPClips
  • magazineikmin
  • InstantRegret
  • everett
  • osvaldo12
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • kavyap
  • Durango
  • ngwrru68w68
  • thenastyranch
  • DreamBathrooms
  • JUstTest
  • khanakhh
  • Leos
  • cisconetworking
  • ethstaker
  • modclub
  • tester
  • cubers
  • tacticalgear
  • provamag3
  • normalnudes
  • anitta
  • megavids
  • lostlight
  • All magazines