오블완 21

react native 질문사항 20241127

질문내용은 react native 한국 커뮤니티에서 발취(카카오톡 단톡방) 질문:일단 저희도 토스랑 비슷하게 이미 네이티브가 있는 상태에서 RN을 올리고 있어서 ios 프로젝트트가 아래와 같은 방식으로 돌아가고 있습니다.1. tuist로 의존성 fetch2. tuist로 프로젝트 생성3. pod install크게 이 세 단계로 되어 있습니다.여기서 2번에서 3번으로 넘어갈 때 - rn의 yarn.lock이 이전과 동일하면 3번을 스킵하고 pre build된 걸 사용하고- 이전과 달라졌으면 pre build를 다시 만드는 형태로 구성을 해볼려고 생각을 하고 있는데,문제가 기존 네이티브 앱과 소통하기 위해서 만들어 놓은 JSI같은건 yarn.lock이랑 무관하게 돌아가는 것 같아서 어떻게 자동화하면 좋을지 ..

카테고리 없음 2024.11.27

영업일 기준으로 날짜를 계산하는 방법

질문:영업일 기준으로 날짜를 계산하려면어떻게 할 수 있을까요?주말에 공휴일까지요!getDay() === 0 || 6 때로 주말은 계산되고,공휴일은 제공하는 api로 받아와야겠지요?공휴일은 매년 변경되니 정확한 정보를 위해서는 API로 땡겨와야겠죠? To calculate the date in business daysHow can you do that?With weekends and public holidays!getDay() === 0 || 6 Sometimes weekends are calculated,holidays are calculated by the API you provide, right?Holidays change every year, so we need to fetch them from t..

카테고리 없음 2024.11.26

api 폴더에 revalidate 파일을 만들어서 백엔드 개발자가 post 요청이 들어왔을 때 revalidate가 적용되도록 설정

질문:사용자가 목록 페이지에서 등록버튼 클릭 > 등록 양식 작성 > 등록 ( post 요청 )> 테이블 목록 페이지로 다시 전환 ( 새롭게 추가된 데이터를 확인 )하는 방식일 때 On-Demand ISR  방식이 좋을거라고 이해했는데요.강의 내용에서 API에 파일을 생성해주고 revalidate()함수에 ISR을 적용시켜주고 싶은 주소를 인수로 넣어주던데실제 서비스에서 front 개발자가 api 폴더에 revalidate 파일을 만들어서 원하는 페이지를 재검증 할 때 사용하는지 아니면 백엔드 개발자가 post 요청이 들어왔을 때 revalidate가 적용되도록 설정하는 것인지 궁금합니다. When the user clicks the register button on the list page > fills..

카테고리 없음 2024.11.25

[Python] tkinter 를 이용한 로그인 화면 만들기

[Python] tkinter 를 이용한 로그인 화면 만들기 from tkinter import *from tkinter import ttk# tkinter 객체 생성window = Tk()window.title("Login Screen")# 사용자 id, password, email, phone을 저장하는 변수 생성user_id, password, email, phone = StringVar(), StringVar(), StringVar(), StringVar()# 사용자 id와 password를 비교하는 함수def check_data(): if user_id.get() == "Passing" and password.get() == "Story": status_label.config(..

카테고리 없음 2024.11.24

프론트엔드 프로젝트의 폴더 구조를 최적화하는 기능 분할 디자인(FSD) 방법론에 대하여

질문1:프론트엔드 프로젝트의 폴더 구조를 최적화하는 기능 분할 디자인(FSD) 방법론에 대해 알고 계신가요?Are you aware of the Feature-Sliced Design (FSD) methodologyto optimize the folder structure of front-end projects? Yes, I'm familiar with Feature-Sliced Design (FSD), a methodology aimed at structuring front-end projects effectively by focusing on dividing the application based on features and layers. It promotes scalability, maintaina..

카테고리 없음 2024.11.23

React Native에서 사용하고있는 상태관리 라이브러리들

Choosing the best state management library for React Native often depends on your project's complexity, architecture, and specific needs. Here's a categorized breakdown of popular state management libraries in React Native and what they are best suited for: 프로젝트의 복잡성, 아키텍처 및 특정 요구사항에 따라 React Native에 가장 적합한 상태 관리 라이브러리를 선택하는 것은 종종 달라집니다. 다음은 React Native에서 인기 있는 상태 관리 라이브러리를 카테고리별로 분류하고 각 라이브러리가..

카테고리 없음 2024.11.22

세션 로그인 방식으로 구현된 api인데클라이언트에서 로그인 유뮤를 체크할 수 있는 방법이 어떤게 있을까요?

질문:세션 로그인 방식으로 구현된 api인데클라이언트에서 로그인 유뮤를 체크할 수 있는 방법이 어떤게 있을까요?The API is implemented as a session login.is there any way to check for login humor in the client? 답:If you're implementing a session-based login API and need to check the user's login status humorously (perhaps a playful way to detect or indicate if a user is logged in), you can creatively mix functional and humorous elements. Here a..

카테고리 없음 2024.11.20

CodeSnap 설치하기. (코드를 이미지느낌으로 만들기)

줄 번호와 구문 강조 표시가 있는 코드 스니펫을 Visual Studio Code(VS Code)에서 직접 효율적으로 캡처하고 공유하려면 CodeSnap 확장 기능을 활용하면 됩니다. 이 도구는 시각적으로 보기 좋은 코드 스크린샷을 만드는 과정을 간소화합니다.CodeSnap 설치하기:VS Code를 엽니다.사이드바에서 사각형 아이콘을 클릭하거나 Ctrl+Shift+X를 눌러 확장 프로그램 보기로 이동합니다.검색창에 CodeSnap을 입력합니다.adpyke에서 “CodeSnap”이라는 이름의 확장 프로그램을 찾아 “설치” 버튼을 클릭합니다.CodeSnap 사용하기:캡처하려는 코드 세그먼트를 강조 표시합니다.선택한 코드를 마우스 오른쪽 버튼으로 클릭하고 컨텍스트 메뉴에서 “CodeSnap”을 선택합니다.선택..

카테고리 없음 2024.11.19

값을 한 번 선언한 후 값을 추가할 수 있나요?상수 외에 E=2.7과 같은 새로운 상수를 추가할 수 있나요?

질문:Can I add values after declaring them once? Can you add a new one like E=2.7 in addition to the constants?값을 한 번 선언한 후 값을 추가할 수 있나요?상수 외에 E=2.7과 같은 새로운 상수를 추가할 수 있나요? from types import MappingProxyTypeclass ConstantManager: def __init__(self): self._constants = {} def add_constant(self, name: str, value): if name in self._constants: raise AttributeError(f"상수 '{n..

카테고리 없음 2024.11.18