pull down to refresh

Yes. So don't waste too much time. For your refactoring, especially in fortran, I'd go the way of 3, simply because you don't want to introduce sloppy architecture.

I posted a bit about this process yesterday, in #1452429.

If your software were something like openssl or the linux kernel or in general something considered best in class and has gotten a couple 100k installs, you want to be extremely careful. This is what 4 is for.

1 sat \ 4 replies \ @adlai 10h
Yes. So don't waste too much time. For your refactoring, especially in fortran, I'd go the way of 3, simply because you don't want to introduce sloppy architecture.

@south_korea_ln how's the weather, in any other language?

reply
program weather_report
  implicit none


  character(len=*), parameter :: msg = "날씨가 좋아요."

  call say_weather(msg)

contains

  subroutine say_weather(text)
    implicit none
    character(len=*), intent(in) :: text
    write(*,'(A)') trim(text)
  end subroutine say_weather

end program weather_report

Edit: I used to use this syntax, though:

PROGRAM WEATHER_REPORT

      CHARACTER*40 MSG
      INTEGER I

      MSG = '날씨가 좋아요.'

      I = 1
 10   IF (I .GT. 1) GOTO 20
      CALL SAYWEATHER(MSG)
      I = I + 1
      GOTO 10

 20   STOP
      END


      SUBROUTINE SAYWEATHER(TEXT)
      CHARACTER*40 TEXT

 30   PRINT *, TEXT
      GOTO 40

 40   RETURN
      END
reply
1 sat \ 2 replies \ @adlai 10h

no offense intended, are you trying to get muted?


riffing off "a rose by any other name" seemed nicer than "why the fuck are you coping with that old crap"

reply

Nope, not trying to get muted. I just played along with your jab at Fortran.

Seems like you take things literally, so let me do the same.

why the fuck are you coping with that old crap

Because it works, is faster than many other codes, and it is just not worth it to rewrite legacy code.

reply
1 sat \ 0 replies \ @adlai 9h
same.
why the fuck are you coping with that old crap
Because it works, is faster than many other codes, and it is just not worth it to rewrite legacy code.

my least favorite "just a chill dude" advice is "plan to throw one away; you will, anyway"

hearing that from a professional C++ barf cope artist, about a Common Lisp hairball, is honestly insulting.

please believe me, I honestly have a lot of respect for people who maintain codebases older than their children.

reply