Aggregate Root 는 도메인 단위이자, 우리가 현실 세계를 기술하는 명세이기도 합니다. 정적인 코드가 동적인 세계와 결합 되어 변화하는 시점을 파악하고, 그것을 통해 모델을 도출하는 것은 서비스를 개발하는 개발자에게 있어 가장 큰 일입니다. 그러나, 이러한 도메인 객체 설계가 좋은 방향으로 동작하기 위해서는 사전에 많은 작업이 필요합니다. 올바르게 각 요소를 Aggregate Root로 쪼개고, 묶는 방법은 무엇일까요.
-
posts
-
도메인 주도 설계의 Aggregate Root를 설계하고 유지하는 법
-
Leetcode - Rotate Array
Given an array, rotate the array to the right by
k
steps, wherek
is non-negative. -
Leetcode - Merge Intervals
Given an array of
intervals
whereintervals[i] = [starti, endi]
, merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. -
Leetcode - Maximum Length of a Concatenated String with Unique Characters
You are given an array of strings
arr
. A strings
is formed by the concatenation of a subsequence ofarr
that has unique characters. -
Leetcode - Count Odd Numbers in an Interval Range
Given two non-negative integers
low
andhigh
. Return the count of odd numbers betweenlow
andhigh
(inclusive). -
Leetcode - Average Salary Excluding the Minimum and Maximum Salary
You are given an array of unique integers
salary
wheresalary[i]
is the salary of theith
employee. -
Leetcode - Swap Nodes In Pairs
Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list’s nodes (i.e., only nodes themselves may be changed.)
-
Leetcode - Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.
-
Leetcode - Add Strings
Given two non-negative integers,
num1
andnum2
represented as string, return the sum ofnum1
andnum2
as a string. -
Leetcode - Two Sum
Given an array of integers
nums
and an integertarget
, return indices of the two numbers such that they add up totarget
. -
Leetcode - Valid Sudoku
Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:
-
Leetcode - Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
You are given a rectangular cake of size h x w and two arrays of integers horizontalCuts and verticalCuts where:
-
Leetcode - Custom Sort String
You are given two strings order and s. All the words of
order
are unique and were sorted in some custom order previously. -
Leetcode - Container With Most Water
You are given an integer array
height
of lengthn
. There aren
vertical lines drawn such that the two endpoints of theith
line are(i, 0)
and(i, height[i])
. -
Leetcode - Longest Substring Without Repeating Charactes
문자열
s
가 주어졌을 때 겹치는 문자가 없는 부분 문자열의 길이를 반환하라. -
라라벨의 의존성 주입 컨테이너
Laravel 의 제어의 역전(Inversion of Control) / 의존성 주입 (Dependency Injection) 컨테이너는 매우 강력한 기능입니다. 안타깝게도, 라라벨의 공식 문서는 이 기능의 모든 면을 설명하고 있지 않습니다. 그런 이유로 저는 직접 이 기능들을 실험하여 본 문서를 작성했습니다. 이 문서는 Laravel 5.4.26 버전을 기준으로 작성되었으며, 그 외 버전은 기능이 다를 수 있습니다. 이 문서는 번역되었습니다. 번역한 문서는 이곳을 클릭하시면 이동하실 수 있습니다.