고식지계

2025년 12월 4일 10:26분

package com.jesusbornd.genesis;

import java.util.*;

public class Genesis_34_Chapter_Lv1_V2 {

    // --- 1) 데이터 모델: Verse 객체 (초·중급 브릿지용) ---
    static class Verse {
        String ref;     // 성경 구절
        String krv;     // 개역한글
        String esv;     // ESV 영어
        int weight;     // 중요도(정렬/필터 데모용)

        Verse(String ref, String krv, String esv, int weight) {
            this.ref = ref;
            this.krv = krv;
            this.esv = esv;
            this.weight = weight;
        }
    }

    // --- 2) 대표 4절 데이터 ---
    private static final List<Verse> VERSES = List.of(
        new Verse(
            "창세기 34:7",
            "야곱의 아들들이 … 근심하고 심히 노하였으니 … 이스라엘에게 망령된 일을 행하였음이더라",
            "The sons of Jacob… were indignant and very angry… because he had done an outrageous thing in Israel.",
            3
        ),
        new Verse(
            "창세기 34:13",
            "야곱의 아들들이 … 속여 대답하였으니",
            "The sons of Jacob answered Shechem and his father Hamor deceitfully…",
            2
        ),
        new Verse(
            "창세기 34:25",
            "제 삼일에 … 시므온과 레위가 … 담대히 성읍을 쳐서 남자를 다 죽이고",
            "On the third day… Simeon and Levi, Dinah’s brothers, took their swords… and killed all the males.",
            4
        ),
        new Verse(
            "창세기 34:30",
            "야곱이 시므온과 레위에게 이르되 … 내가 수적에 얼마 안 되는즉 그들이 모여 나를 치면… 멸망하리라",
            "Then Jacob said… you have brought trouble on me… I and my household will be destroyed.",
            1
        )
    );

    public static void main(String[] args) {
        showTitle();
        List<Verse> sorted = getSortedImportantVerses();
        printVerses(sorted);
        showSummary();
        showPractice();
    }

    // --- Title ---
    private static void showTitle() {
        System.out.println("[Genesis 34 | KRV & ESV]");
        System.out.println("— Lv1_V2: 초·중급 브릿지 — 조건/정렬/메서드 분리 —");
        System.out.println();
    }

    // --- 3) ‘중요도(weight)’를 기준으로 정렬 후 반환 ---
    private static List<Verse> getSortedImportantVerses() {
        List<Verse> copy = new ArrayList<>(VERSES);
        copy.sort((a, b) -> Integer.compare(b.weight, a.weight)); // 중요도 높은 순
        return copy;
    }

    // --- 4) 출력 ---
    private static void printVerses(List<Verse> verses) {
        for (Verse v : verses) {
            System.out.println(v.ref);
            System.out.println("KRV: " + v.krv);
            System.out.println("ESV: " + v.esv);
            System.out.println();
        }
    }

    // --- Summary ---
    private static void showSummary() {
        System.out.println("[Summary]");
        System.out.println(
            "창세기 34장은 디나 사건을 둘러싼 ‘분노·속임·보복’의 악순환을 보여준다. " +
            "시므온과 레위의 복수는 즉각적 정의처럼 보이나, 야곱은 공동체 전체의 위기를 경고한다."
        );
        System.out.println();
    }

    // --- Practice ---
    private static void showPractice() {
        System.out.println("[Practice]");
        System.out.println(
            "즉각적 감정(분노)은 공동체에 큰 파장을 가져올 수 있다. " +
            "오늘, 감정보다 ‘지혜로운 절제’를 먼저 선택해보자."
        );
    }
}

# Genesis_34_Chapter_Lv1_V2.py
# KO/EN: 초·중급 브릿지 — 정렬·클래스·조건 분리

class Verse:
    def __init__(self, ref, krv, esv, weight):
        self.ref = ref
        self.krv = krv
        self.esv = esv
        self.weight = weight


# 대표 구절 4개
VERSES = [
    Verse(
        "창세기 34:7",
        "야곱의 아들들이 … 근심하고 심히 노하였으니 … 망령된 일을 행하였음이더라",
        "The sons of Jacob… were indignant and very angry…",
        3,
    ),
    Verse(
        "창세기 34:13",
        "야곱의 아들들이 … 속여 대답하였으니",
        "The sons of Jacob answered… deceitfully.",
        2,
    ),
    Verse(
        "창세기 34:25",
        "제 삼일에 … 시므온과 레위가 … 성읍을 쳐서 남자를 다 죽이고",
        "On the third day… Simeon and Levi… killed all the males.",
        4,
    ),
    Verse(
        "창세기 34:30",
        "야곱이 시므온과 레위에게… 내가 멸망하리라",
        "Jacob said… I and my household will be destroyed.",
        1,
    ),
]


def show_title():
    print("[Genesis 34 | KRV & ESV]")
    print("— Lv1_V2: 초·중급 브릿지 — 정렬/클래스/메서드 분리 —\n")


def get_sorted_verses():
    return sorted(VERSES, key=lambda v: v.weight, reverse=True)


def print_verses(rows):
    for v in rows:
        print(v.ref)
        print("KRV:", v.krv)
        print("ESV:", v.esv)
        print()


def show_summary():
    print("[Summary]")
    print(
        "디나 사건은 복수 vs 지혜의 갈림길을 드러낸다. "
        "즉각적 감정은 정의로 보일 수 있으나 공동체 전체를 위기로 몰아넣을 수 있다.\n"
    )


def show_practice():
    print("[Practice]")
    print("오늘 하루, 감정보다 지혜를 먼저 선택하는 작은 결정을 실천하자.")


def main():
    show_title()
    rows = get_sorted_verses()
    print_verses(rows)
    show_summary()
    show_practice()


if __name__ == "__main__":
    main()

Comments

Avatar
 2025년 12월 4일 10:29분

감정 폭발–속임–보복–야곱의 두려움까지 단계가 선명하게 보여서 34장의 혼란스러움이 오히려 더 또렷하게 읽힙니다. “감정보다 지혜”라는 정리가 오늘 마음에 깊이 남네요. 🙏



Search

← 목록으로