분류 전체보기 63

cpp_019: Basics of Functions, Methods, Static Methods, and Constructors in C++

This is a beginner-friendly lesson on four key programming ideas: functions, methods, static methods, and constructors. I’ll use the circle and square analogy to make it visual and simple, explain what an object is first, and compare to Python at the end for those familiar with it. No deep OOP yet — just the basics!1. Object (First, for Context)What is an Object?An object is a specific thing in ..

C++ Beginner 2025.04.05

cpp_016: Comparing C-Style Arrays, std::array, and std::vector in C++

1- IntroductionIn previous tutorials, we explored different ways to handle collections in C++. We started with traditional C-style arrays, then introduced the dynamic std::vector, and most recently discussed the modern std::array in cpp_015: STL Array in C++ (https://medium.com/@staytechrich/list/cpp-c-beginner-053ab9a0ecc3).We also examined how these types are passed to functions: C-style array..

C++ Beginner 2025.04.05

Python Intermediate_008: Understanding Generators in Python

In our previous tutorial (https://codeaddict.tistory.com/entry/Python-Intermediate007-Understanding-property-and-Setter-Decorators-in-Python), we explored how to use @property and @.setter to manage class attributes. Today, we’ll dive into generators in Python, a powerful tool for creating iterators in a memory-efficient way. We’ll cover the basics, syntax, and practical examples, and end with s..

Python Intermediate_007: Understanding @property and Setter Decorators in Python

In our last lesson (https://codeaddict.tistory.com/entry/Python-Intermediate006-Decorators-in-Python), we explored basic and practical decorators like access control. Today, we’ll dive into Python’s @property decorator and its companion @.setter, which transform methods into manageable attributes. These tools are key for encapsulation in object-oriented programming. We’ll cover syntax, execution..

cpp_014: Passing Arrays and Vectors to Functions in C++ - Syntax and Examples

IntroductionIn the previous lesson, we explored the differences between arrays and vectors in C++. Now, let’s dive deeper into how to pass arrays and vectors to functions in C++. Passing these data structures to functions is a common task in C++ programming, and understanding the syntax and usage is crucial for writing efficient and modular code.In this lesson, we’ll cover:The syntax for passing..

C++ Beginner 2025.03.09