This is why you are not confident in logic building
Summary
TLDRThe video script discusses the importance of logic building in programming and the challenges faced when confidence is lacking. It emphasizes the need for a strong foundation in programming concepts and the practice of visualizing code execution mentally before running it. The speaker suggests that relying solely on output to understand code can hinder the development of logical building skills, advocating for a shift in mindset and a more proactive approach to coding that includes mental visualization and understanding of code flow.
Takeaways
- 😀 The speaker is addressing an audience about a unique aspect of 'Tea and Code' and discusses the importance of confidence in logic building within programming.
- 🤔 The audience might not be feeling the excitement of logic building, which the speaker attributes to various reasons including unclear foundations in programming.
- 🏗️ There are many ways to practice and regions within logic building, and the speaker aims to discuss one such region to offer a new perspective.
- 🎯 The speaker sets a target of 400 comments for engagement within 24 hours, indicating an interactive approach to the discussion.
- 🛠️ Foundation clarity in programming is essential, and the lack of it can hinder the development of logical building skills.
- 🔄 The concept of 'Dry Run' is introduced as a method to execute code mentally before running it, which is a challenging but effective practice.
- 💡 The importance of visualizing the code's execution in one's mind before running it is emphasized for building strong logical understanding.
- 📝 The speaker criticizes the common practice of relying solely on output to understand code behavior, suggesting it leads to weak logic building skills.
- 🔍 Visualization of code execution, such as understanding loops and conditions without running the code, is crucial for advanced logic building.
- 🚀 For large-scale applications, the speaker points out that it's not always possible to test every function or line of code immediately after writing, thus mental execution becomes vital.
- 🧠 The speaker encourages a mindset change towards visualizing and predicting code behavior as a step towards enhanced logic building and confidence.
Q & A
What is the main topic discussed in the script?
-The main topic discussed in the script is the concept of logic building in programming and the challenges faced by programmers in developing the ability to visualize and predict code execution without running it.
Why might a programmer struggle with logic building?
-A programmer might struggle with logic building due to unclear foundations in programming, over-reliance on running code to see the output, and a lack of mental visualization of the code execution process.
What is the 'Dry Run' method mentioned in the script?
-The 'Dry Run' method refers to the practice of mentally executing code to predict its output without actually running it, which helps in building logic and understanding the flow of the program.
What is the significance of not running the code output during pattern printing exercises?
-The significance of not running the code output during pattern printing exercises is to encourage programmers to visualize the code execution in their mind, thus improving their logic building skills.
How can a programmer improve their logic building skills according to the script?
-A programmer can improve their logic building skills by practicing mental execution of code, visualizing the flow and output before running it, and understanding the dependencies and functionalities within large applications.
What is the role of visualization in programming as discussed in the script?
-Visualization plays a crucial role in programming as it helps programmers to predict the behavior of their code, understand complex logic, and build confidence in their coding abilities without needing to run the code repeatedly.
Why is it important for programmers to understand the logic behind loops and control structures?
-Understanding the logic behind loops and control structures is important because it allows programmers to effectively predict how their code will execute, which is essential for debugging, optimizing performance, and building complex applications.
What is the relationship between logic building and the ability to debug code?
-Logic building is closely related to the ability to debug code because it enables programmers to identify potential issues and understand the flow of execution, making it easier to pinpoint and fix bugs.
How does the script suggest changing the mindset of programmers who rely heavily on output to understand their code?
-The script suggests that programmers should shift their mindset to visualize and mentally execute their code before running it, which can help them to better understand the logic and improve their programming skills.
What are some potential pitfalls of always running code to check its output?
-Some potential pitfalls of always running code to check its output include a lack of deep understanding of the code's logic, difficulty in visualizing the execution flow, and an over-reliance on trial-and-error methods rather than logical reasoning.
How can the practice of 'Dry Run' be applied in real-world programming scenarios?
-The practice of 'Dry Run' can be applied in real-world programming scenarios by mentally walking through the code execution, predicting the output, and considering the impact of various control structures and dependencies before actually running the code.
Outlines
🤔 Building Logic and Overcoming Challenges in Coding
The speaker discusses the challenges faced in the process of 'logic building' within coding. They mention that many people struggle with the concept of logic building and may not feel confident in their code's execution. The speaker suggests that a lack of foundational knowledge in programming can lead to such issues. They also touch upon the idea of 'dry run', emphasizing the importance of visualizing code execution in one's mind before running it, as a method to improve logic building skills. The paragraph emphasizes the need for a shift in mindset from relying solely on output to understand code behavior to visualizing and predicting outcomes mentally.
📚 Adapting Mindset for Effective Coding Practices
In this paragraph, the speaker continues the discussion on coding practices, emphasizing the need to adapt one's mindset when writing code. They suggest that instead of running the code after every few lines to check the output, programmers should attempt to visualize the entire process in their mind first. This approach can help in building confidence and improving logic construction within the code. The speaker also mentions that this method may not apply to everyone and that different perspectives and journeys in coding exist. They encourage sharing such experiences and insights, as it can be beneficial for others, and ends with a call to action for viewers to engage with the content by commenting and subscribing.
Mindmap
Keywords
💡Logic Building
💡Dry Run
💡Pattern Printing
💡Visualization
💡Confidence
💡Programming Foundations
💡Execution
💡Code Reading
💡Large Scale Applications
💡Dependencies
Highlights
Welcome and introduction to the unique topic of logic building in 'chai and code'.
The importance of confidence in logic building and the feeling that it is missing.
Various methods and practices of logic building.
The concept of 'dry run' as a method for building logic without executing code.
The challenge of visualizing code execution in one's mind before running it.
The common practice of running code to see the output as a learning method.
The downside of relying solely on output to understand code behavior.
The need for programmers to build logic in their minds for effective coding.
The impact of foundational knowledge in programming on logic building.
The role of visualization in understanding loops, variables, and their flow in code.
The importance of not just writing code but also understanding its logic and flow.
The challenge of testing code in large applications with dependencies.
The necessity of changing the mindset from always depending on output to understand code.
The comparison of programming to mathematics, where understanding the steps is crucial.
The suggestion to visualize the entire process in the mind before executing the code.
The idea that understanding code logic can increase confidence and help in building logic.
The encouragement to try visualizing code flow in the mind as a practice for better logic building.
The closing remarks, hoping the discussion was helpful and encouraging further exploration of the topic.
Transcripts
हां जी कैसे हैं आप सभी स्वागत है आप सभी
का चाय और कोड में हमारा एक अनोखा
सर वो बात नहीं पता लग रही वो मजा नहीं आ
रहा लॉजिक बिल्डिंग में कॉन्फिडेंस नहीं आ
रहा तो लॉजिक बिल्डिंग के कई तरीके हैं और
कई तरीकों से इसको प्रैक्टिस भी किया जाता
है और उसके कई रीजन है कि आप शायद
कॉन्फिडेंस फील नहीं कर रहे हैं लॉजिक
बिल्डिंग के अंदर उसमें से एक रीजन मैं
यहां पे डिस्कस करने वाला हूं छोटा सा ही
है आपको बड़ा अच्छा लगेगा जान के और शायद
आप जो सुनते आए होंगे उसको एक नए
पर्सपेक्टिव से देखेंगे ज्यादा बड़ा कमेंट
टारगेट भी नहीं है सिर्फ 400 कमेंट्स का
टारगेट लेते हैं प्लीज कंप्लीट करवा
दीजिएगा 24 आवर्स में और डिस्कस करते हैं
अब कि लॉजिक बिल्डिंग क्यों नहीं आ पा रही
देखिए लॉजिक बिल्डिंग क्यों नहीं हो पा
रही इसके बहुत सारे रीजंस है कई बार
प्रोग्रामिंग के फाउंडेशन क्लियर नहीं है
कई बार फाउंडेशन क्लियर नहीं तो आपको लगता
है डीएसए करने से लॉजिक बिल्डिंग होगी कई
बार आपको लगता है लीड कोड करने से होगी
सीपी करने से होगी प्रोजेक्ट बनाने से
होगी जबकि ओबवियस सी बात है यह सब
फैक्टर्स हैं उसके अंदर कि यह सब लॉजिक
बिल्डिंग में हेल्प करते हैं लेकिन एक जो
मेजर फैक्टर मुझे पर्सनली लगता है और मैं
काफी टीचर्स को देखता हूं जो इस बात पे
फोकस भी करते हैं ऐसा नहीं है कि वो बुरा
कर रहे हैं वो फोकस करते हैं इस बात पे
इसको को बोला जाता है ड्राई रन अब ये
ड्राई जो है वो डोंट रिपीट योरसेल्फ नहीं
है वो भी एक अच्छा मेथड है अच्छी मेथोड
जीी है प्रोजेक्ट्स बिल्ड करने के लिए
एप्लीकेशंस बिल्ड करने के लिए लेकिन यहां
पे जो ड्रा रन की मैं बात कर रहा हूं वो
सिंपल सी बात है कि आपने एक कोड लिखा और
क्या वो कोड आपके माइंड के अंदर
एग्जीक्यूट होके उसका आउटपुट आप ला सकते
हो यह दिखने में बहुत आसान है लेकिन यह
बहुत चैलेंजिंग टास्क है बताता हूं कैसे
हम क्या है जिस एनवायरमेंट में कोड सीखते
हैं वहां पे हमें कोड इसी तरह से सीखा
जाता है कि हमेशा रन करो आउटपुट लाओ रन
करो आउटपुट लाओ ये अच्छी बात है कोड रन
होना भी चाहिए इसीलिए तो कोडिंग है वहां
पे लेकिन कई बार क्या है कि यह जो रन करो
आउटपुट लाओ रन करो आउटपुट लाओ इसका जो
डायलमाइट्रिप
में इसीलिए सबको जो पैटर्न प्रिंटिंग कराई
जाती है जो ऑड इवन फाइंड कराया जाता है वो
इसीलिए कराया जाता है ताकि कोड रन तो हो
लेकिन रन होने से पहले ही आप जब कोड को
देखें तो आप अपने माइंड में उसको
एग्जीक्यूट कर पाए कि अच्छा यह लूप यहां
से जा रहा है अच्छा थर्ड वेरिएबल थर्ड
इंस्टेंस के अंदर यह काम होगा फोर्थ में
होगा यह आना सबसे ज्यादा जरूरी है अभी आप
देखिए अगर आप हमेशा इस बात पर डिपेंडेंट
रहते हैं कि नहीं जब तक आउटपुट नहीं आता
या मैं एग्जीक्यूट नहीं करके देखता मेरे
को नहीं पता लगता कि कोड क्या कर रहा है
तो आई थिंक आप फ्यूचर में भी लॉजिक
बिल्डिंग के अंदर वीक ही रहने वाले हैं सो
सॉरी कहने के लिए बट यह फैक्ट है एक कोडर
एक प्रोग्रामर अगर अपने माइंड के अंदर उन
लॉजिस को बिल्ड नहीं कर पा रहा है उसका
मेन रीजन ये है कि उसका जो कोड लिखा है
उसको वो माइंड के अंदर एग्जीक्यूट नहीं कर
पा रहा है उसको बस वो आंख बंद करके अंदर
तड़ा तड़ ततर लिखे जा रहा है ये ठीक बात
नहीं है तो प्लीज इसको सुधारी जो स्पेशली
आपको जो काम दिया जाता है कि पैटर्न
प्रिंटिंग करिए उसमें मैंने देखा है जो
लोग ज्यादा वीक रहते हैं पैटर्न प्रिंटिंग
में वो इसीलिए वीक रहते हैं क्योंकि वो बस
कोड लिख रहे हैं उनको बस एक एक्स लूप है
एक वा लूप है एक आई लूप है एक जे लूप है
उनको समझ ही नहीं आ रहा कि वो लूप कहां जा
रहा है कौन सा लूप हमारा रो वाइज जा रहा
है कौन सा लूप लेंथ वाइज जा रहा है ये सब
नहीं उनको विजुलाइज हो रहा है और ये
विजुलाइज कभी भी नहीं होगा अगर आप आउटपुट
हिट कर देंगे हां जी ये एक फैक्ट बात है
आपको शायद सुनने में अजीब सा लगे लेकिन
स्पेशली जब आप पैटर्न प्रिंट कर रहे हैं
मैट्रिक्स प्रिंटिंग स्टार पैटर्न
प्रिंटिंग वहां पे आपका सबसे पहला गोल ये
होना चाहिए कि आउटपुट रन नहीं करना है अगर
बिना आउटपुट रन करें उस कोड को आप माइंड
में अगर एग्जीक्यूट करके देख पा रहे हो कि
अच्छा यहां पे यह कोड लिखा हुआ है तो इसका
मतलब टॉप पे एक पूरी लाइन बनेगी सेकंड रो
में एक कम बनेगा या फिर थर्ड में एक और कम
फिर फाइनली एक ही स्टार बनेगा या फिर इसका
अपोजिट होगा अगर यह विजुलाइज ब्रेन में
नहीं हो पा रहा है तो आप लॉजिक बिल्डिंग
में कभी भी आगे नहीं जा पाएंगे अच्छा एक
और इसका फैक्ट बताता हूं कि ये क्यों
जरूरी होता है देखिए कई बार जब आप बड़े
लेवल पे एप्लीकेशंस बिल्ड करेंगे बड़ी हाई
स्केल पे करेंगे वो कि ओबवियस सी बात आप
करेंगे ही कहीं नहीं जाने वाले आप बिल्कुल
करेंगे लेकिन उसके अंदर क्या होता है जब
आपने एक कंट्रोलर लिखा एक फंक्शनैलिटी
लिखी कई बार उस फंक्शनैलिटी को टेस्ट करना
पॉसिबल ही नहीं होता है उस जगह पे कई बार
वो फंक्शनैलिटी आगे जा के तीन-चार चीजों
पे डिपेंड होती है तो हर बार कोड को लिखने
के बाद उसको एग्जीक्यूट करा के दिखाओ उसको
रन करा के दिखाओ यह पॉसिबल ही नहीं होता
बड़ी एप्लीकेशंस में क्योंकि डिपेंडेंसीज
है आपको हो सकता है उसके साथ में कुछ और
कोड भी लिखना पड़े किसी और यूजर को उसका
कोड लिखना पड़े या आपके फ्रेंड को लिखना
पड़े कंपनी के अंदर तभी आप देख सकते हो कि
मेरा कोड चल पा रहा है या नहीं चल पा रहा
अब इसीलिए कई बार जब ट्यूटोरियल्स भी
बनाते हैं तो कई लोग उस पॉइंट पे वो
एग्जीक्यूट करके नहीं दिखाते हैं उसका
रीजन यही है कि अभी एग्जीक्यूट करा मतलब
पूरा कोड फटेगा गारंटीड है वहां पे एरर
आएगा लेकिन एक पॉइंट पे जाने के बाद एक
स्टेबलाइज होने के बाद ही आप उस प्रोजेक्ट
को रन करके थोड़ा टेस्ट करके देख सकते हो
हर एक 10 लाइन लिखने के बाद प्रोजेक्ट
टेस्ट नहीं किया जा सकता यह फैक्ट है
जिसने भी बड़ी एप्लीकेशंस बनाई उसको पता
है यह बात कि हर एक फंक्शन लिखने के बाद
हर एक 10 लाइन लिखने के बाद आप रन नहीं
करवा सकते कोड को तो इस माइंडसेट को हमें
थोड़ा सा बदलना पड़ेगा थोड़ा सा इस
पर्सपेक्टिव से देखना पड़ेगा कि हमेशा कोड
को लिखने के बाद आउटपुट ही डालना अगर इसी
फेज में आप हो तो आप शायद कोड को रीड नहीं
कर पा रहे हो अच्छे से उसका लॉजिक बिल्ड
यहां पे नहीं कर पा रहे और जब तक यहां
नहीं कर पा रहे हो तब तक वो जब क्योंकि
देखिए कोड का क्या होता है यह मैथ्स की
तरह होता है मैथ्स का आंसर एक बार पीछे
देख लिया ना अब तो पता ही है आंसर क्या है
एक बार किसी की में उठा के देख लिया कि
अच्छा इस तरह से करते हैं फिर तो पता ही
है लेकिन मैथ्स का मेन जो गोल था वो यही
था कि थोड़ा सा ब्रेन को परेशान किया जाए
आप खुद देखो करके कि ये स्टेप्स हो रहे
हैं क्या प्रोग्रामिंग भी उसी तरह से है
एक बार एग्जीक्यूट अगर आपका कोड हो गया ना
आप उस कोड को दोबारा नहीं देखने वाले ये
तो फैक्ट बात है लेकिन आपने एग्जीक्यूट ही
नहीं करा और पहले प्रिडिक्ट करके देख रहे
हो कि अच्छा इसका आउटपुट क्या आ सकता है
और फिर वो आप आपको प्रेडिक्शन मैच करता है
वो आपको कॉन्फिडेंस भी देगा वो आपसे लॉजिक
बिल्डिंग भी करवाएगा लेकिन हर बार आंख बंद
करके ऐसे एग्जीक्यूट एग्जीक्यूट
एग्जीक्यूट करोगे नहीं पढ़ोगे उससे आगे अब
यह जरूरी नहीं है कि ये जो बात मैंने बोली
है 100% लागू हो हो सकता है आप इस बात से
डिसएग्री करो करना भी चाहिए हो सकता है
आपके लिए फिट ना बैठे हो सकता है हो सकता
है कोई और टीचर जो पढ़ा रहा है उसके लिए
फिट ना बैठे हो सकता है कोई बात नहीं सबके
लिए अलग-अलग पर्सपेक्टिव है सबके लिए
अलग-अलग जर्नी है कोडिंग की मुझे लगा कि
यह वाली जर्नी और यह वाला इंसीडेंट आपके
साथ शेयर करना चाहिए रॉ टॉक पे और ये जो
रॉ चर्चाएं होती है आपको काफी पसंद भी आती
है तो हो सकता है इस वीडियो से थोड़ी सी
हेल्प मिली हो आपको और अब आप कोड लिखने के
बाद थोड़ा सा विजुलाइज करने की कोशिश
करेंगे ब्रेन में आप चाहे प्रोजेक्ट बना
रहे हैं चाहे आप रजिस्टर कंट्रोलर लिख रहे
हैं लॉगइन कंट्रोलर लिख रहे हैं या फिर आप
बेसिक स्टैक का फंक्शन लिख रहे हैं लिंक
लिस्ट लिख रहे हैं या फिर एक पैटर्न
प्रिंट कर रहे हैं एग्जीक्यूट करने से
पहले एक बार ब्रेन में पूरा लूप वगैरह सब
प्रोसेस करके देखो कि अच्छा यहां पे इस
तरह से हो रहा है ये हो रहा है इससे ही
आपको आगे जाके हेल्प मिलेगी ठीक है तो बस
इतना ही कहना था इस रॉ वीडियो के उम्मीद
है आपको पसंद आया होगा पसंद आया है तो
कमेंट टारगेट पूरा कर दीजिएगा और
सब्सक्राइब नहीं किया तो कर देना नहीं करा
तो कोई बात नहीं आगे कर देना कहीं नहीं जा
रहे हम आप भी यहीं पर हो यहीं पर ही आओगे
ठीक है चलिए जी मिलते हैं आपसे अगले ऐसे
किसी वीडियो में
Посмотреть больше похожих видео
What is Pseudocode? An Introduction.
"Clean Code" is bad. What makes code "maintainable"? part 1 of n
Introduction to Java Language | Lecture 1 | Complete Placement Course
How to Think like A GENIUS Programmer
The KEY To Thinking Like a Programmer (Fix This Or Keep Struggling)
You Don't Have To Be Smart To Code
5.0 / 5 (0 votes)