묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결Vue.js + TypeScript 완벽 가이드
$store 인식이 안되요 😭
store 폴더 내에 세팅했던 파일들은 actions.ts, index.ts, types.ts 등등 정상적으로 추론이 잘 되었는데 app.vue에서 최종적으로 테스트할려고 할 때 프리뷰가 뜨지 않습니다. this.$store.getters.fetchdNews를 억지로 입력시 any 타입으로 뜨더라구요. 이유가 무엇일까요? 이것때메 6시간 고민하고 있습니다. 밑에 사진 첨부합니다!! 그 말고도 보고 싶은 영역이 있으시면 요청주시는대로 사진 업로드 하겠습니다. - 사진 위 사진 ) 경로 : src / store / index.ts 위 사진 ) 경로 : src / store / getters.ts 위 사진 ) 경로 : src / store / types.ts 위 사진 ) 경로 : src / app.vue ㄴ this. 쳤을 때 $store 프리뷰 안뜸 ㄴ this.$store. 쳤을 때 state / getters / dispatch 프리뷰 안뜸 ㄴ this.$store.state. 쳤을 때 news 프리뷰 안뜸 하지만 src / store / getters.ts 에서 " state. " 쳤을 때 news 프리뷰 잘 뜨고 타입도 잘 추론되어 있습니다. 이유가 무엇일까요.... 해답을 못찾아서 미칠것 같은 느낌이 있네요😭
-
미해결홍정모의 따라하며 배우는 C++
코드 최적화 관점에서 리터럴에 대해 질문이 있습니다.
강의 시간은 따로 없고 강의를 쭉 듣다가 궁금해져서 질문 주제와 관련된 것이 이 강의라서 여기서 질문 드리는데요 특정 계산을 반복하는 코드를 짰는데요 이것이 계산 속도가 중요한 부분이 있습니다. 그래서 최적화를 할려고 노력중인데 변수에 리터럴을 저장 해놓고 변수를 쓰는게 계산이 빠른지 아니면 그냥 변수 저장없이 리터럴 값을 바로 쓰는게 계산이 빠른지 궁금합니다. 변수가 반복이 된다면 변수를 쓰는게 좋다고 하시겠지만 2,3번 쓰는것도 그냥 변수로 쓸지 아니면 리터럴 상수 값으로 쓰는게 나을지 궁금합니다. 그만큼 속도가 중요해서 고민이 하고 있습니다. 값은 소수랑 정수가 있습니다.
-
미해결스프링 핵심 원리 - 기본편
OrderServiceImpl에 기본 생성자 작성 시 오류나는 이유
안녕하세요. 강의 잘 보고 있습니다. OrderServiceImpl 클래스에서 Autowired를 통해 생성자 주입을 받을 때, public OrderServiceImpl() { } 기본 생성자를 추가하면 오류가 나는 이유가 멤버 변수들이 final로 지정되어 있기 때문인가요? 즉, 멤버 변수들이 final로 지정되어 있기 때문에 클래스 private final MemberRepository memberRepository = new MemoryMemberRepository(); 이런 식으로 바로 값을 할당 받도록 코드를 짜거나 객체 생성 시 매개 변수로 값을 할당 받도록 짜야 하는데 기본 생성자가 있으면, 매개 변수 없이 객체를 생성할 수 있고, 그 경우 두 멤버 변수에 값이 들어가지 않는 일이 발생하므로 이를 방지하기 위해서 에러가 나는 건가요? 감사합니다.
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
재귀는 아니지만 이 방법은 어떠신지 여쭤볼 수 있을까요?
function solution(max,dogs) { let answer = ''; let sum = dogs.reduce((a,b)=>a+b,0); while(sum > max) { let min = Math.min(...dogs); let minIdx = dogs.splice(dogs.indexOf(min),1); sum = sum - minIdx; } answer = sum; return answer; } console.log(solution(259,[81,58,42,33,61]))
-
미해결Three.js로 시작하는 3D 인터랙티브 웹
개발 환경
비쥬얼 스튜디오 말고 다른 파일 에디터들로도 three.js 코딩 가능한가요? 참고로 전 웹팩을 안써요.
-
미해결실전! 스프링 데이터 JPA
Transaction commit 시 flush 자동호출, 그리고 DB commit 과 Transaction commit의 차이에 대해
안녕하세요 영한님. 질문하는 와중에도 용어자체에 혼동이 있어 매끄럽지 못한 점 미리 죄송합니다. Q1. DB commit과 Transaction commit 에는 어떤 차이가 있나요? Q2. A 사용자 a-1 쓰레드에서 정보 추가 em.flush() 를 하게되면 B사용자의 b-1 쓰레드에서 정보 조회가 가능해지는건가요? -> flush 가 수행되면 "쓰기 지연 SQL 저장소의 쿼리를 데이터베이스에 전송한다." 라고 알고 있는데 이 말이 DB 에 실제 commit 이 되어 쿼리가 반영이 되는건지 궁금합니다. Q3. 트랜잭션이 커밋되는 시점에 flush()를 호출하여 쓰기지연 SQL 저장소 -> DB 에 SQL 전송 이라고 이해했는데 맞나요? 감사합니다.
-
해결됨탄탄한 백엔드 NestJS, 기초부터 심화까지
만약 필요한 변수가 3개일 때
예를 들어 2개만 넣었을 경우 테스트 1개만 넣었을 경우 테스트 전부 안 넣었을 경우 테스트 이렇게 테스트를 쫙 만들어야 하나요? 성공 statusCode와 결과에 대한 것만 확인하는건가요?
-
미해결우리를 위한 프로그래밍 : 파이썬 중급 (Inflearn Original)
클래스메소드를 인스턴스로 호출하면 인스턴스의 클래스가 cls에 자동으로 대입이 되는지 궁금합니다.
클래스메소드를 인스턴스로 호출하면 어떻게 되나요?
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
Result class와 주문 조회에 대해 궁금증이 생겨 질문드립니다.
항상 친절하게 답변 주셔서 감사합니다 "회원조회 API" 강의에서 바로 Array로 반환을 하면 스펙이 굳어져 유연성이 떨어지기 때문에 임의의 Result class를 생성해 반환내용을 Result에 담아 반환하였는데, 주문 조회 시에는 이와 같은 방법으로 json을 반환할 필요가 없기 때문에 강의에서 다루지 않으신건지 궁금합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
join 메서드의 반환형
안녕하세요. 수업 듣던 중 궁금증이 생겨 질문을 남기게 되었습니다. 회원 서비스 개발 중 회원가입에 관련하여 public Long join(Member member)를 만드셨습니다. 1. 여기서 member.getId()를 반환하므로 반환형이 Long이 되었는데 여기서 멤버의 아이디를 반환하는 이유가 무엇인가요?
-
해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편
Oracle에서 IDENTITY 전략 사용 관련
안녕하세요. 강의를 듣고 다른 분들의 질문/답변을 확인하다가, 예전 질문에 대한 답변 중에 Oracle에서는 IDENTITY 전략을 사용하면 안 된다고 하신 것을 발견했습니다. Oracle 12c 이후로는 IDENTITY 컬럼을 지원하고 JPA에서도 IDENTITY 전략을 사용 가능한 것으로 아는데, 혹시 Oracle 최신 버전에서 IDENTITY 전략을 사용하면 안 되는 다른 이유가 있는 건가요? 오라클 클라우드 DB를 이용하다보니 최신 버전에서는 offset, limit, identity 같은 부분을 다 지원해줘서 개인 프로젝트에서 별 생각 없이 IDENTITY 전략을 쓰고 있었는데, 문제되는 부분이 있는지 궁금해서 질문을 남깁니다.
-
해결됨만들면서 배우는 리액트 : 기초
node를 설치했는데도 찾을 수 없다고 오류가 나옵니다.
안녕하세요! 좋은 강의 너무 감사합니다. 덕분에 극후반까지 잘 따라와서 이제 create-react-app 강의까지 오게 되었습니다. 그런데, 선생님 따라 명령어를 입력해보는데, cat-jjal-maker 소스코드를 작성했던 터미널에서 명령어를 입력했는데도 아래와 같이 node 명령어를 찾을 수 없다는 오류가 나옵니다... 안내해주신 node 설치 페이지로 가서 설치도 완료했는데도 node -v 명령어도 오류가 날 뿐 아니라 npx 명령어도 작동하지 않습니다. 무슨 문제가 있는 걸까요..? 항상 감사합니다!
-
미해결
기본 자바클래스를 실행했는데 저렇게 뜨면서 안됩니다. 알려주세요ㅠㅠ
-강의 보면서 따라하다가 기존 원래 있던 클래스를 실행했는데 저런 오류뜨면서 안됩니다. 1. 자바 jdk도 기존에있던거 삭제하고 다시 11깔아서 했는데도 안돼요 2. build and run에 들어가서 intellij IDEA를 Gradle로 바꿨는데도 안돼요
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
fullPost의 model에 대해 질문이요
const fullPost = await Post.findOne({ where: { id: post.id}, include: [{ model: Image, }, { model:Comment, }, { model:User, }] include에서 model User를 넣어주셨는데 로그인하면 user에 대한 정보가 브라우저에 전달되고 그 user를 가져다 쓰면 되지 않나요?? 안적어도 되는건지 궁금합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
DataSourceUtils 선언 오류
안녕하세요. DataSourcetils 부분에서 오류가 발생합니다. import추가시 지역변수가 선언되는데 그렇게 되면 올려주신 강의와 코드가 달라져서 어떻게 하면 좋을지 여쭤봅니다 ! 학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part2: 자료구조와 알고리즘
10:00 질문이요
if (Head == null ) Head = newRoom; if (Tail != null) { } 이부분에서 if (Tail != null) 을 if (Head != null )이라고 써도 되나요? Head가 존재하면 Tail은 무조건 존재하니까 그냥 else문 써도 될거 같은데 Tail != null 이라고 쓰신 이유가 궁금해요
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
로그인버튼 생성시간이 너무 오래걸립니다.
안녕하세요 홈페이지에 다른건 다 잘 뜨는데 로그인버튼이 너무 나중에 뜹니다. 어떻게 수정해야되나요? 그리고 회원정보입력후 다음창으로 이동이 안됩니다.
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
컴파일 에러가 발생합니다.
인텔리제이에서 돌릴때는 문제없이 돌아가는데 채점 사이트에서 컴파일 에러가 발생합니다. 왜이런가요? public class b_01 { public ArrayList<Integer> solution(int i, int arr[]){ ArrayList<Integer> answer = new ArrayList<>(); answer.add(arr[0]); for(int a =1; a<i; a++){ if(arr[a]>arr[a-1]) answer.add(arr[a]); } return answer; } public static void main(String args[]){ b_01 b = new b_01(); Scanner sc = new Scanner(System.in); int i = sc.nextInt(); int arr[] = new int[i]; for(int a = 0; a < i; a++){ arr[a] = sc.nextInt(); } for(int x : b.solution(i,arr)){ System.out.print(x+" "); } }}
-
미해결
What is the best Roadrunner email login procedure - RR login as different user
INTRODUCTION Of Roadrunner Email Account: This company of ROADRUNNER is an SP that is a service provider that has gained a large base of popularity in a very short span of time. But coming on to the services that customers can take benefit of, the TWC engagers have the full right to the services provided by the company of ROADRUNNER. In short, you guys only need to associate to the internet system via the modem of TWC, and then you can avail yourself of the advantage of signing up to the page of ROADRUNNER. But there is one thing specific and which is that only the people who have the account of TIME WARNER will be allowed to access the email login of ROADRUNNER. It can be availed via the online method by taking the help of the browser or even the program of E-MAIL. SECTION1.1: HOW TO LOGIN TO ROADRUNNER It is very crucial for all the users or even the ROADRUNNER’s latest page holders to gain knowledge about how to do the entire login procedure. It is very important to know about the due procedure because even your slightest mistake can do something you would not like. I know that you guys do not want to make any mistakes hence read this section of the article to know how to do the particular procedure with avoiding any mistakes possible. Follow up the given below steps to know about the same: Step 1: You have to enclose your preferred browser that you want to use. Step 2: By utilizing the search bar you need to navigate your way to the login page of ROADRUNNER E-MAIL. Step 3: Now choose the EMAIL account you prefer to use. Step 4: After following the previous step you have to enter the required details and type on your EMAIL ID and the key passcode. Step 5: Thereafter to get a sight of your MAIL you need to snap on the Roadrunner email login option. And voila done deal you have successfully logged in to your ROADRUNNER mail account. SECTION 1.2: LOG IN TO AN OLD ROADRUNNER EMAIL ACCOUNT: Every oldie that is the Original user of Spectrum Roadrunner Email should have knowledge that to avail the services of their mail they need to use the given link that is webmail. spectrum/mail. Now focus on the below-given steps to log in: Step 1: Unclose the browser you prefer. Step 2: Use the given link that is webmail. spectrum/mail to use it. Step 3: You need to know that your credentials will remain as equal as they were already. Step 4: Enter those credentials of TWC. Step 5: You need to hit twice on the option that says “I AM NOT A ROBOT”. Step 6: Now to avail the services of your mail you need to snap on the option “SIGN IN”. You now have the knowledge to sign in to an OG account, congratulations on that. Keep on reading the other sections of this article too to know more about the ROADRUNNER EMAIL service. SECTION 1.3: PROBLEMS YOU MIGHT WITNESS: 1. Wrong credentials may lead to errors in signing. 2. The internet system you have may not give out sufficient signals to carry out the entire procedure without any interruptions. 3. The browser you preferred may not be equally paired with the webmail of ROADRUNNER. 4. There are other EMAIL services that you might have availed and hence causing trouble for the ROADRUNNER mail service to work properly. 5. There may be any kind of virus that may lead to the inefficient working of the ROADRUNNER mail. SECTION 1.4: FEW SOLUTIONS AND TIPS THAT MIGHT WORK ACCORDING TO THE PROBLEM YOU ARE ENCOUNTERING: 1. You need to keep the browser’s memory clean. 2. Make sure that your internet is working at a good speed. 3. You should always keep a spare device in case you can’t log in from one so that you can try from the other one. 4. Ensure that no extra keys like the CAPS LOCK are turned ON, so that the credentials you would have entered would be damn correct. 5. How efficient your ROADRUNNER MAIL service will be dependent on the internet system too. A good and firm system will lead to a smooth procedure. 6. You should do the anti-virus tests as well to eradicate any kind of virus if present. 7. You might want to update the software you are using because there might be a few problems that can occur due to the usage of old software. 8. You might want to take a test to be thorough enough before shutting everything down via a different device, just so to be sure. 9. You need to clear out the bugs then and there if you face any issues at any point in time. Because waiting to remove it afterward might create a few issues that we would not want. So it would be better to get the things done at the correct time. 10. Do the installation of the server correctly because you would want to avoid having the wrong server. 11. You have to make sure that the client settings of EMAIL are correctly and rightly set as these are the ones that are prone to be wrongly set. SECTION 1.5: CONCLUSION: We as a company hope that you would love to avail of our services. We have prepared this article to help you out in every way possible so that your users do not have even a cent percent doubt. You have all the information needed in this article to help you all out with the issues you might face. The company of ROADRUNNER/Spectrum email login would be happy to help you out with anything. As a family of so many users, we know that there are certain doubts which remain unsolved even after reading descriptive articles so please feel free to contact our helpdesk team for any queries to be solved.
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
Vuex state 속성 적용 시 다음과 같은 오류가 발생합니다.
콘솔 창에서 다음과 같은 오류가 발생하는데 원인이 뭘까요? 구글링해도 자세한 내용이 안 나오네요 ㅠㅠ 코드는 다음과 같습니다. store.js 코드 TodoHeader.vue 코드