Skip to content

Commit 254196a

Browse files
committed
WIP
1 parent c88ad19 commit 254196a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

episodes/7-refactoring-fortran/solution/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ project(
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
1515
add_executable("${PROJECT_NAME}" "${PROJ_SRC_FILES}")

episodes/7-refactoring-fortran/solution/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ cmake --build build
1515
1616
1. Replace magic numbers with constants
1717
2. 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

0 commit comments

Comments
 (0)