전체 글
-
Rust 처음 배우기: TypeScript 개발자의 도전기Rust 2024. 10. 21. 20:40
Rust 처음 배우기: TypeScript 개발자의 도전기안녕하세요! 프론트엔드 개발을 주로 하며 TypeScript를 사용하는 개발자입니다. 최근에 Rust를 배우기 시작했는데, 처음에는 어디서부터 시작해야 할지 막막했어요. 그래서 Rust를 처음 접하는 분들, 특히 TypeScript를 주로 사용하는 분들을 위해 이 글을 작성하게 되었는데요. Rust의 기초를 다루고 TypeScript와의 비교를 통해 더 쉽게 이해할 수 있도록 돕고자 합니다. 이 글이 Rust를 배우고자 하는 분들에게 도움이 되기를 바랍니다. Rust란 무엇인가?Rust는 메모리 안전성과 병행성을 보장하는 시스템 프로그래밍 언어인데요. Rust는 C/C++ 같은 저수준 언어의 성능을 가지면서도, 메모리 관리에서 발생할 수 있는 여러..
-
C++의 반격: Safe C++ 제안이 가져올 변화는?Codings 2024. 10. 21. 19:32
C++의 반격: Safe C++ 제안이 가져올 변화는?최근 C++ 커뮤니티는 메모리 안전성 문제를 해결하기 위해 Safe C++ Extensions 제안을 발표했습니다. 이 제안은 C++ 언어의 주요 취약점인 메모리 안전성 문제를 해결하기 위한 혁신적인 접근법을 제시하고 있는데요. 이번 글에서는 Safe C++ Extensions 제안이 무엇인지, 그리고 커뮤니티의 다양한 반응을 종합해 보겠습니다. Safe C++ Extensions 제안이란?Safe C++ Extensions 제안은 C++ 코드에서 메모리 안전성을 보장하기 위해 새로운 기능을 추가하는 것을 목표로 합니다. C++ Alliance의 회장 Vinnie Falco는 "이 제안은 C++ 생태계에서 중요한 이정표를 세우는 혁명적인 제안"이라고..
-
잘 모르는 JavaScript와 파생 언어의 세계Javascript 2024. 10. 18. 19:22
잘 모르는 JavaScript와 파생 언어의 세계JavaScript의 역사JavaScript는 1995년 Brendan Eich에 의해 개발되었습니다. 처음에는 Netscape Navigator라는 웹 브라우저에 포함되어, 인터랙티브한 웹 페이지를 만들기 위한 스크립트 언어로 설계되었습니다. 초기 이름은 "Mocha"였으나, 이후 "LiveScript"로 변경되었고, 최종적으로 "JavaScript"라는 이름이 되었습니다. 이 이름은 당시 인기 있었던 프로그래밍 언어 "Java"의 이름을 빌려 마케팅 효과를 노린 것입니다. 그러나 기술적으로 Java와는 다른 언어입니다. ECMAScript와의 관계JavaScript는 엄밀히 말하면 ECMAScript라는 표준 규격에 기반합니다. ECMAScript는 J..
-
Deno v2가 출시되었습니다! - Deno v1.0.0부터의 변화와 현재의 실무 관행Javascript 2024. 10. 18. 19:20
Deno v2가 출시되었습니다! - Deno v1.0.0부터의 변화와 현재의 실무 관행Deno v2가 정식으로 출시되었습니다 이번 글에서는 Deno v1.0.0 출시 시점부터 Deno v2.0.0까지의 주요 변화와 실무에서의 적용 사례를 정리해 보겠습니다. Go 스타일 API의 변화 - 웹 표준 준수 강화Deno v1.0.0 당시의 API 설계Deno v1.0.0 시점의 API와 명령어들은 Go의 영향을 많이 받았습니다.예를 들어:다양한 리소스에 대한 IO 인터페이스 (Deno.Reader/Deno.Writer)deno run 명령어 (스크립트 실행기)deno fmt 명령어 (포매터)deno doc 명령어 (API 문서화 도구)deno test 명령어 (테스트 실행기)Deno는 초기부터 웹 표준 준수를 ..
-
최신 React 폴더 구조: 5단계로 쉽게 알아보는 리액트 프로젝트 구성법Javascript 2024. 10. 18. 19:09
최신 React 폴더 구조: 5단계로 쉽게 알아보는 리액트 프로젝트 구성법리액트(React) 애플리케이션을 체계적으로 구성하는 것은 프로젝트가 커질수록 더 중요한 요소로 자리잡는데요. 특히 파일과 폴더를 어떻게 잘 정리하느냐가 프로젝트의 성공 여부에 큰 영향을 미치게 됩니다. 많은 분들이 이 부분에 대해 궁금해 하시더라고요. 그래서 이번 글에서는 제가 여러 해 동안 리액트 프로젝트를 진행하면서 자연스럽게 익힌 폴더 구조를 5단계로 정리해 보려고 합니다. 이 방법은 소규모 프로젝트부터 대규모 애플리케이션까지 모두 적용할 수 있는 실용적인 가이드인데요. 각 단계마다 어떻게 구성할지 알아보도록 할까요? 1. 하나의 React 파일에서 시작하기첫 번째 단계는 아주 간단합니다. 대부분의 리액트 프로젝트는 src/..
-
Next.js에서 알아보는 서버 컴포넌트, 클라이언트 컴포넌트, 정적/동적 라우트 & 캐싱Javascript 2024. 10. 18. 19:06
Next.js에서 알아보는 서버 컴포넌트, 클라이언트 컴포넌트, 정적/동적 라우트 & 캐싱Next.js의 서버 컴포넌트(Server Component)와 클라이언트 컴포넌트(Client Component), 그리고 정적(Static) 라우트와 동적(Dynamic) 라우트, 캐싱에 대해 혼란스러우신가요? React 개발자로서 Next.js와 React Server Components(RSC)에 입문하게 되면, 기존에 익숙했던 클라이언트 사이드 React와 서버 사이드 개념이 섞이면서 어떻게 접근해야 할지 막막할 수 있습니다. 이 글에서는 이러한 새로운 패러다임을 이해하기 위한 정신적 모델(Mental Model)을 구축해 나갈 텐데요, 중요한 내용들을 하나씩 간단하게 설명드리겠습니다. 서버 컴포넌트와 클라..
-
웹 퍼블리싱의 미래: 정적 사이트 vs 동적 사이트Etc 2024. 10. 9. 16:59
웹 퍼블리싱의 미래: 정적 사이트 vs 동적 사이트알아볼까요? 웹 퍼블리싱의 미래는 어떤 모습일까요? 커뮤니티 유저들의 생각을 들어보면, 웹 사이트를 만드는 방법에 대한 다양한 의견들이 나오네요. 일부는 정적 사이트 생성기(SSG)를 선호하며, 다른 일부는 동적 사이트와 관리 쉬운 CMS(콘텐츠 관리 시스템)를 추천합니다. 이 두 방법 각각의 장단점을 이해하는 것이 중요합니다. 정적 사이트 생성기(SSG)의 장점정적 사이트는 웹 사이트의 성능을 극대화할 수 있는 방법입니다. GitHub Pages, Netlify, Neocities 등의 서비스를 사용하면 거의 비용이 들지 않게 만들 수 있어요. 정적 사이트는 매우 빠르고 안전하며, 유지보수 비용이 낮습니다. 예를 들어, mkdocs는 매우 간단한 정적 ..
-
Rust 강좌 8 - anymapRust 2024. 10. 8. 22:20
Rust 강좌 8 - anymap이번 글에서는 Rust의 anymap 크레이트에 대해 다룰 건데요. 이 크레이트는 Rust-http와 teepee로 유명한 Chris Morgan이 만든 것인데요. 이 크레이트는 약간 특이하고 흥미로운 컨테이너인 AnyMap 타입을 제공해요. AnyMap 타입은 일반적인 맵과는 다릅니다. 예를 들어, Rust의 HashMap은 K(키의 타입)와 V(맵에 저장된 값의 타입)에 의해 매개변수화된 제네릭 타입이에요. (여기에는 해시 함수(hasher) 매개변수도 있지만, 이는 여기에서는 관련이 없어요.) 반면, AnyMap 자체는 제네릭 타입이 아니에요. 내부적으로 HashMap을 사용하지만, 그 사실을 알 필요는 없어요. 개념적으로, AnyMap은 타입에서 값으로 매핑합니다...