11

So now I’m working with this code that is roughly documented because ”variable names are self-explanatory”.

Yeah, you just forgot that FORTRAN does not support utf-8 variable names...

Why utf-8? Because then if I see:

real :: 座標(3)

I would understand that you mean ”zahyō”, the usual 3D position array ”r(3)”, but no, I need to deal with:

real :: zah(3)

yeah...🙃🔫

Comments
  • 8
    imo anything but ascii in a code should be banned with exception of comments and string literals
  • 6
    FORTRAN? You must be nearing retirement, right? 😉
  • 3
    @AlmondSauce as far as I remember most of scientific algorithms on this planet use fortran (blas library). This includes weather simulation and prediction, ml frameworks and couple of most complicated programs I don’t remember now.
  • 1
    @jurion @vane oh absolutely, legacy stuff is everywhere. It's just rare to see someone go into it as a new language these days - most people I know who live in those languages are nearing retirement.
  • 2
    @AlmondSauce Well looks like it’s quite active and still under development.
    https://wg5-fortran.org
  • 3
    @vane mostly just maintenance for old but important projects. Physics students probably don't care about nice code, but really there can be hidden effects when the language doesn't protect you and sometimes results in incorrect implementation.
  • 2
    @beegC0de the language not protecting you could also be a plus as you could potentially do some weird shit with it that'd be otherwise not possible.
  • 2
    @Parzi true but I prefer to have a layer over the weird stuff and break it when I need it
  • 1
    @beegC0de overhead tho
  • 2
    @vane Sure, it's still under development. But it's still classed as a legacy language in all circles I've ever been in, and I've yet to meet anyone under the age of 50 who actively uses it (beyond playing around.)
  • 1
    @jurion Ah yes. VB6 is also still worryingly popular. I would have likely quit too.
  • 1
    @beegC0de @AlmondSauce ok ok I believe you guys 🙂
  • 2
    @Parzi use as many zero cost abstractions as you can and use tricks when you can't
  • 2
    Non-English source code WTF.
  • 2
    But why wouldn't you just... code it in english? This hurts so much 😭
  • 1
    @frickerg I wanted to ask the same thing...
Add Comment