File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
episodes/7-refactoring-fortran/solution Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 99)
1010
1111# Define src files
12- file (GLOB PROJ_SRC_FILES "${PROJECT_SOURCE_DIR} /src/* .f90" )
12+ set ( PROJ_SRC_FILES "${PROJECT_SOURCE_DIR} /src/game_of_life .f90" )
1313
1414# Build src executables
1515add_executable ("${PROJECT_NAME} " "${PROJ_SRC_FILES} " )
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ cmake --build build
1515
16161 . Replace magic numbers with constants
17172 . Change of variable name
18- 3 . Replace global variables with function arguments
19- 4 . Break a large function into smaller units
20- 5 . Separate code concepts into files or modules
18+ 3 . Break large procedures into smaller units
19+ 4 . Wrap program functionality in procedures
20+ 5 . Replace repeated code with a procedure
21+ 6 . Replace global variables with procedure arguments
22+ 7 . Separate code concepts into files or modules
You can’t perform that action at this time.
0 commit comments