전체 글
-
Hono 웹 프레임워크 소개Javascript 2024. 3. 6. 20:30
안녕하세요? Cloudflare에서 밀고 있는 Hono에 대해 간단히 알아 보겠습니다. 공식 웹 사이트 Hono - Ultrafast web framework for the EdgesHono is a small, simple, and ultrafast web framework for the Edges. It works on Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Netlify, AWS Lambda, Lambda@Edge, and Node.js. Fast, but not only fast.hono.dev ** 목 차 **Hono 웹 프레임워크 소개create-hono 명령어Cloudflare Workers3분 내에 배포하기응답 보내기, 요청 처리하..
-
2024 React 리액트 치트 시트Javascript 2024. 3. 4. 22:43
안녕하세요? 오늘은 리액트 초보자가 볼 만한 치트 시트 개념으로 모던 리액트에서 다루는 내용을 빠르게 훑어 보도록 하겠습니다. ** 목 차 **React 요소 (Elements)리액트 요소 속성 (Element Attributes)리액트 요소 스타일 (Element Styles)React 프래그먼트 (Fragments)리액트 컴포넌트React PropsReact Children PropsReact 조건문 (Conditionals)리액트 리스트 (Lists)리액트 컨텍스트 (React Context)리액트 훅 (React Hooks)React useState 훅리액트 useEffect 훅React useRef리액트 useContextReact useCallbackReact useMemoReact 요소 (E..
-
Go 언어 개발 환경 설정 - go mod init과 그 필요성Go 2024. 3. 3. 21:44
안녕하세요? Go 언어에 푹 빠져서 요즘 계속 배우고 있는데요. Go 언어(일명 Golang)는 Google에서 개발한 정적 타입 언어로 빠르고 안전한 프로그램을 작성하는 데 많이 사용됩니다. 그러나 처음 Go 언어를 접할 때 go mod init이라는 명령어를 만나면 이게 뭔지 혼란스러울 수 있는데요. 이 글에서는 go mod init가 무엇이며 왜 필요한지 자세히 살펴 보겠습니다. ** 목차 **Go 모듈이란?go mod init이란?go mod init이 왜 필요한가요?Go 언어에서의 모듈 관리도구 체인이란?외부 패키지 github.com/gin-gonic/gin에 대하여Python의 의존성 관리와 모듈 관리Java의 의존성 관리와 모듈 관리결론Go 모듈이란?Go 언어에서는 코드 패키지를 구성하고 ..
-
zsh 쉘에서 편리한 fish 쉘로 기본 쉘 변경하기Codings 2024. 3. 3. 21:21
안녕하세요? M1 맥북 에어 구매 기념 기본 zsh 쉘에서 편리하다고 하는 fish 쉘로 변경했습니다. ** 목 차 ** Home Brew로 zsh 설치 설치가 완료되었지만 다음과 같은 경고 메시지가 표시된 경우 fish 설치 터미널의 기본 쉘을 fish로 변경하기 bobthefish 설치하여 편리하게 사용하기 fisher 설치 bobthefish 설치 터미널 환경 설정에서 폰트 변경 그 외에도 fish로 Home Brew 사용 가능하게 하기 Home Brew로 zsh 설치 $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” 설치가 완료되었지만 다음과 같은 경고 메시지가 표시된 경우..
-
Go 언어의 net/http 패키지의 http.HandleFunc이 실행되는 방식 이해하기Go 2024. 3. 3. 16:32
안녕하세요? 오늘은 Go 기본 문법을 알고 계시는 분 혹은 Request 요청이 들어왔을 때 함수가 어떻게 실행되는지 궁금하신 분, 또는 Go의 웹 응용 프레임워크를 능숙하게 활용하고 싶은 분들을 위해 조금은 지루한 글을 쓸까 합니다. 웹 응용 프로그램을 개발할 때, 요청이 들어오면 해당 경로에 따라 함수를 실행해야 합니다. 그런데 웹 응용 프레임워크를 사용하면 내부에서 어떤 처리가 이루어지는지 몰라도 동작시킬 수 있습니다. 하지만 웹 응용 프레임워크를 올바르게 활용하려면 내부 구현에 대한 이해가 필요합니다. 그래서 이번 기회에 Go의 net/http 패키지 문서를 참조하여 요청이 들어왔을 때 함수가 어떻게 실행되는지 조사해보았습니다. 특히 http.Handle과 http.HandleFunc과 같은 유사..
-
JSR: 새로운 Javascript 패키지 레지스트리Javascript 2024. 3. 2. 20:02
JSR: 새로운 Javascript 패키지 레지스트리 최근에 JSR이라는 용어가 화제가 되고 있습니다. JSR은 JavaScript Registry의 약자로, 다음 세대 JavaScript/TypeScript 패키지 레지스트리를 의미합니다.이 글은 JSR에 대한 작성자의 단편적인 정보를 모아 작성한 것입니다. 오류가 포함되어 있을 수 있습니다. 그럴 경우 지적해 주시면 감사하겠습니다.npm과 어떤 점이 다를까요?npm은 Node Package Manager의 약자로, 이름 그대로 Node.js용으로 개발된 패키지 매니저 및 해당 패키지 매니저가 사용하는 레지스트리입니다. 그 편리함 때문에 Node.js 이외의 브라우저나 다른 런타임에서도 사용됩니다. 예를 들어 Svelte는 브라우저용 패키지이지만, No..
-
Go 언어로 웹 애플리케이션 만든 경험담Go 2024. 3. 1. 20:12
시작하기Go 언어를 사용하여 웹 애플리케이션을 만들어 보았는데요. 스크래치에서부터 작성했기 때문에 작성 도중 계속된 시행착오를 겪으며 최종적으로는 웹 애플리케이션 모양새가 구현될 수 있었습니다. 그래서 MVC 애플리케이션을 구성할 때 특히 컨트롤러 계층을 중심으로 몇가지 생각을 정리해 볼까 합니다. ** 목 차 **시작하기ViewController리퀘스트 핸들러(Request Handler)라우팅(Routing)필터(Filter)리퀘스트 컨텍스트(Request Context)ModelView작성한 웹 애플리케이션은 API 서버였기 때문에 실제로 여기에 대한 지식은 많지 않습니다. 뷰가 있는 앱을 만든다면 개인적으로는 React 등을 사용하여 프론트엔드 애플리케이션으로 구현하고 Go 부분은 API 서버 역..
-
git switch와 git restore 알아보기Codings 2024. 3. 1. 09:08
안녕하세요? 오늘은 git checkout을 대체할 수 있는 새로운 git 명령어에 대해 알아 보겠습니다. git switch와 git restore: 새로운 Git 명령어 1. git switch git switch는 브랜치를 전환하는 명령어입니다. git checkout과 비슷하게 사용할 수 있지만, 더 직관적인 명령어 이름을 가지고 있습니다. 기본 사용법은 다음과 같습니다: 브랜치 전환: git switch 새로운 브랜치 생성 후 전환: git switch -c 브랜치를 덮어쓰고 전환: git switch -C 변경 사항을 저장하지 않고 브랜치 전환: git switch -d 강제로 새로운 브랜치로 전환: git switch -f 이전 브랜치로 전환: git switch - 2. git restor..