본문 바로가기

전체 글825

2022년 28주차 '전반기 회고' Weekly growth 클린 코더스 스터디 - 진행 중 백명석 님의 클린 코더스 강의 5강을 보고 정리한 후 사내 동료들과 의견을 나누었다. 정리한 내용을 동료들과 나누다 보니 내가 잘못 이해한 것들이나 놓쳤던 부분들을 다시 챙겨볼 수 있었다. '아. 이래서 혼자 공부하면 안 되는구나'를 새삼 다시 느꼈다... 주식 투자 자동화 튜토리얼 끝내기 - 실패(연장) 원래는 이번 주에 끝내려고 했으나.. 하지 못했다. 하려면 바로 행동으로 옮겨야 하는데 퇴근하고 집에 오면 막상 그러기가 쉽지 않았다... 프로젝트 회고 약 한 달간 진행했던 첫 실무 프로젝트. '저장소 패턴 도입기'에 대해 회고 글을 작성했다. 저장소 패턴(Repository Pattern) 도입기 *보안상 일부 명칭을 모호하게 표현하였으며 실.. 2022. 7. 11.
저장소 패턴(Repository Pattern) 도입기 *보안상 일부 명칭을 모호하게 표현하였으며 실제 소스코드가 아닌 설명을 위한 샘플 코드를 사용하였습니다. 저장소 패턴 도입 프로젝트 입사 후, 첫 실무 프로젝트로 저장소 패턴(Repository Pattern) 도입 프로젝트를 진행했다. 저장소 패턴이란? 저장소 패턴은 모든 데이터가 메모리상에 존재하는 것처럼 가정하고 이를 추상화하여 데이터 접근과 관련된 구현 사항을 감춘다. 저장소를 제외한 다른 레이어는 더 이상 저장소의 구현에 대해 신경 쓸 필요 없이 인터페이스로만 소통한다. 저장소 패턴을 도입한 이유는 기존 운영하던 ‘A’ 서버(보안상 ‘A’라 지칭)의 레이어가 Controller - Service 로만 구성되어 있었고 이와 관련하여 문제점을 가지고 있었기 때문이다. 기존 문제점 1. 비즈니스 로직.. 2022. 7. 10.
SQL Basics: Simple JOIN and RANK For this challenge you need to create a simple SELECT statement that will return all columns from the people table, and join to the sales table so that you can return the COUNT of all sales and RANK each person by their sale_count. people table schema id name sales table schema id people_id sale price You should return all people fields as well as the sale count as "sale_count" and the rank as ".. 2022. 7. 10.
SQL Basics: Simple EXISTS For this challenge you need to create a SELECT statement that will contain data about departments that had a sale with a price over 98.00 dollars. This SELECT statement will have to use an EXISTS to achieve the task. departments table schema id name sales table schema id department_id (department foreign key) name price card_name card_number transaction_date resultant table schema id name Soluti.. 2022. 7. 9.
GROCERY STORE: Real Price! You are the owner of the Grocery Store. All your products are in the database, that you have created after CodeWars SQL exercises! :) Customer often need to now how much really they pay for the products. Manufacturers make different sizes of same product so it is hard to compare prices, sometimes they make packages look big, but the weight of the product is small. Make a SELECT query which will .. 2022. 7. 8.
GROCERY STORE: Support Local Products You are the owner of the Grocery Store. All your products are in the database, that you have created after CodeWars SQL excercises!:) You care about local market, and want to check how many products come from United States of America or Canada. Please use SELECT statement and IN to filter out other origins. In the results show how many products are from United States of America and Canada respec.. 2022. 7. 7.