개발
-
[리팩토링] - (1) 리팩토링 원칙개발 2022. 6. 19. 16:02
리팩토링이란? 리팩토링은 기존의 기능을 보존하면서 디자인,구조를 개선하는 프로세스이다. Refactoring is a process of improving your codebase without creating new functionality. According to Martin fowler, author of two books on refactoring, Refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code yet improves its internal structure. It is a disciplined way to clean..
-
갑자기 API 호출 응답속도와 렌더링 속도가 늦어진다면?..개발/네트워크 2021. 12. 21. 14:19
재택하는데.. 평소 1초도 안걸리던 API 응답 속도가 3초를 넘어가고 ... 근데 또 url로 호출하면 응답속도 빨라서 미스테리.. 당연히 api 호출시 걸어놓은 타임아웃 걸려서 렌더링도 안되고 렌더링도 느리고 화딲지나서 vpn 이랑 와이파이 네트워크 문제인가 하고 출근했는데.. 알고보니 .. ㅎㅎ. . 어이 없을 무 .. -> 테스트를 위해 slow 3g 설정 후 캐시비우기&강력새로고침을 실행해야한다. 캐시가 없는 상태에서 브라우저가 강제로 모든 리소스들을 가져와야 느린 3g 환경에서 처음 웹페이지가 로딩되는 사용자 경험을 테스트해볼 수 있다.
-
-
-
[Codility] Binary Gap (javascript)개발/알고리즘 2021. 4. 8. 23:22
Coditilty - Binary Gap A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N. For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The number 529 has binary representation 1000010001 and contains two binary gaps: one of length 4 and one of length 3. The..
-
-