올 상반기 발표 자료입니다. 이클립스 기반으로 되어 있습니다.
https://bit.ly/oktdd2022 

* 개발환경 세팅
* Getting Started TDD
* TDD Concept
* TDD Misunderstood
* Test 단계와 유형
* assert 종류
* 리팩터링
* Maven

tdd

* GitLens: 해당 라인 커밋한 시점 등의 정보를 보여 줍니다. 

 

GitLens — Git supercharged - Visual Studio Marketplace

Extension for Visual Studio Code - Supercharge Git within VS Code — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerfu

marketplace.visualstudio.com

* Git Graph: 소스트리 대체할 만 합니다.

 

Git Graph - Visual Studio Marketplace

Extension for Visual Studio Code - View a Git Graph of your repository, and perform Git actions from the graph.

marketplace.visualstudio.com

* GitHub Copilot: 인공지능과 짝프로그래밍 하면 시간을 많이 줄일 수 있습니다. 경쟁자 tabnine

 

GitHub Copilot · Your AI pair programmer

GitHub Copilot works alongside you directly in your editor, suggesting whole lines or entire functions for you.

copilot.github.com

* Thunder Client: Postman보다 가볍고, 호환도 대부분 다 됩니다.

 

Thunder Client - Rest API Client Extension for VS Code

Thunder Client is a hand-crafted lightweight Rest API Client extension for Visual Studio Code

www.thunderclient.com

* Prettier: 코드 가독성은 중요합니다.

 

Prettier · Opinionated Code Formatter

Opinionated Code Formatter

prettier.io

 

추가로 하나 더, 새로 시작한 플러그인입니다.

* SonarLint: SonarQube 서버 없이도, 코드 정적분석이 코딩할 때 가능합니다. 팀 개발한다면 룰셋을 SonarQube 서버를 통해서 가능합니다.

 

SonarLint | Free and Open Source Code Quality & Security IDE Extension

Find and fix Code Quality and Security issues as you code, directly in your IDE of choice, including JetBrains, Eclipse, Visual Studio and VS Code.

www.sonarlint.org

 

typeof [ ] === 'object'

1. list.forEach(): 반복, 리턴값 없음 undefined

2. list.map(): 각 원소의 값 변경 가능, 리턴값 동일 갯수 배열

3. list.filter(): 조건에 따라 필터링, 갯수 필터된 배열

4. list.reduce(): 모든 원소의 총합 리턴, 단일값

5. list.includes():  포함 여부, true or false

more: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array

 

Array - JavaScript | MDN

JavaScript Array 클래스는 리스트 형태의 고수준 객체인 배열을 생성할 때 사용하는 전역 객체입니다.

developer.mozilla.org

 

리팩토링

  • Re + factor + ing = 재구성
  • 코드의 재구성

자주 사용하는 리팩토링

  • Rename Variable
  • Extract Variable
  • Extract Constant
  • Inline
  • Extract Method

YouTube

+ Recent posts