sundogplanets,
@sundogplanets@mastodon.social avatar

Time to run my horrifying python code that builds a bash script that I use to repeatedly call some fortran code and make output I pull back into python for calculating telescope pointings.

My deepest apologies to everyone here who actually has training in making good software. I'm doing science!

(And no, I'm not looking for advice. Hilariously, this dumpster fire of code works well enough, and I don't need to improve it right now.)

sundogplanets,
@sundogplanets@mastodon.social avatar

Ooo I like this piece of accidental Kuiper Belt art

grb090423,
@grb090423@mastodon.social avatar

@sundogplanets

Astronomy art is quite something ✨✨✨

Paxxi,
@Paxxi@hachyderm.io avatar

@sundogplanets the secret the industry doesn't want you to know is that this is exactly what the pros build 😂

piofthings,
@piofthings@mastodon.social avatar

@sundogplanets i firmly believe you are absolutely winning at devops! Kudos 🙇🏽‍♂️

jaymoore,
@jaymoore@genomic.social avatar

@sundogplanets OK if this is like fesshole, I once wrote an R script that generated 1000 bash scripts which called each other in a chain to download and process stuff from a public repo.

sundogplanets,
@sundogplanets@mastodon.social avatar

@jaymoore WOW that's amazing

vwbusguy,
@vwbusguy@mastodon.online avatar

@sundogplanets This is some very relatable content.

migurski,
@migurski@mastodon.social avatar
kyleejohnson,
@kyleejohnson@jawns.club avatar

@sundogplanets I’ve done Serious Programming. None of that sounds unreasonable.

Amy Mcgrath GIF by GIPHY News

drahardja,
@drahardja@sfba.social avatar

@sundogplanets “If it works, don’t touch it”

— devops

gwozniak,
@gwozniak@discuss.systems avatar

@sundogplanets Hopefully future you won't mind! 😃

sundogplanets,
@sundogplanets@mastodon.social avatar

@gwozniak I have hilariously detailed comments sprinkled throughout. Not sure anyone else could figure out what I was doing, but future me will (almost certainly) be able to!

cwjohan,
@cwjohan@mastodon.social avatar

@sundogplanets Necessity is the mother of invention!

jannem,
@jannem@fosstodon.org avatar

@sundogplanets
I support user software at an HPC center. This wouldn't even make the top ten of janky software setups :)

sundogplanets,
@sundogplanets@mastodon.social avatar

@jannem There should definitely be a an award for this: "Jankiest software setup"

jannem,
@jannem@fosstodon.org avatar

@sundogplanets
To be fair, few researchers have software development training, so jank is expected.

On the other hand, you could argue that this is becoming as essential as, say, statistics, and should be taught as a core skill along your actual field of study.

sundogplanets,
@sundogplanets@mastodon.social avatar

@jannem I did try to take computer science way back when I was a baby undergrad scientist, but Caltech wanted us to start in Scheme so I ended up dropping the class... that's why my code is really awful now! I blame Caltech :)

alter_unicorn,
@alter_unicorn@masto.bike avatar

@sundogplanets this is amazing.
Code that works, no BS.

digital_cowboy,
@digital_cowboy@mastodon.social avatar

@sundogplanets absolute cringe.. but if it works, it works 🤷‍♂️
“Don’t let perfect be the enemy of good enough” or something like that..

13pt8plus,
@13pt8plus@mastodon.social avatar

@sundogplanets omg! I'm definitely going to have nightmares from this!🤣

TMEubanks,
@TMEubanks@astrodon.social avatar

@sundogplanets Just be glad the fortran code doesn't call some Forth routines which interrogate a clockwork device simulating Ha-dec pointing to do the conversion to az-el.

Yes, I observed on a radio telescope that did that. Went there once and found it went into slow slew mode for dec < 0 which meant it never went on source down in the South. "Fix that? You must be kidding. Just don't observe down there."

sundogplanets,
@sundogplanets@mastodon.social avatar

@TMEubanks HA! Wow, that's amazing

TerryHancock,
@TerryHancock@realsocial.life avatar

@sundogplanets
That sounds horrifying to debug!
Hope it's short! 😅

sundogplanets,
@sundogplanets@mastodon.social avatar

@TerryHancock It is both short and horrifying to debug :)

agbuckley,
@agbuckley@mastodon.social avatar

@sundogplanets No problem detected here. Sometimes it doesn't need to be seamlessly engineered, it just has to work "enough"!

Thinking of some prototyping I did where C++ code run in parallel on our cluster made an occasional system() call to ssh, to run an ML Python script on the one machine that had a big GPU 😅 It didn't generate Fortran, admittedly, but I'm sure I've some of that lying around, too!

VE2UWY,
@VE2UWY@mastodon.radio avatar

@sundogplanets

I see no mention of Perl … what gives?

sundogplanets,
@sundogplanets@mastodon.social avatar

@VE2UWY If you average together fortran and python, you pretty much get perl, right?

VE2UWY,
@VE2UWY@mastodon.radio avatar

@sundogplanets

YOU'RE RIGHT! That's why you're the astronomer and I'm just a dude on the internet. :-D

sundogplanets,
@sundogplanets@mastodon.social avatar

@VE2UWY Clearly a PhD in astrophysics gives me the ability to average languages together. Underrated superpower

brouhaha, (edited )
@brouhaha@mastodon.social avatar

@sundogplanets @VE2UWY
When making that mix, be careful not to get Forthon. The mix will be difficult enough without also having to use postfix notation.

gpshewan,
@gpshewan@mastodon.social avatar

@sundogplanets I had to read that twice with a “Wait, what now?” In the middle

You’d be surprised at some gems in the commercial world. If it works for you, it works

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