Development 썸네일형 리스트형 Building and Deploying Web Components with Svelte In December, I embarked on a side project inspired by KakaoTalk ads, resulting in the creation of Adsense-Popover. This project features a Google AdSense advertisement that slides into view at the bottom right corner (or a position of your choice) of a webpage. Today, I'll discuss the technology behind this project, web components, and the process of creating and deploying them using Svelte... Read more Writing Python Code Like a Pro: A Deep Dive into Type Checking #5 Python is a versatile and popular programming language that has been in use for decades. However, many libraries developed over the years lack type annotations. In this final article of our series, we will explore techniques for handling typeless libraries in Python and mitigating the associated risks, while considering the potential drawbacks such as time consumption and cost. Throughout the se.. Read more Writing Python Code Like a Pro: A Deep Dive into Type Checking #4 In our previous post (Part 3), we discussed the basics of typing and introduced eight different types. In this post, we will explore more advanced typing concepts and how to use them effectively. 1. Specify only return type with typing.Callable[..., ReturnType] In our previous post, we briefly discussed the typing.Callable type and how to use it for functions that take arguments. However, it can.. Read more Writing Python Code Like a Pro: A Deep Dive into Type Checking #3 In Part 2, we introduced several basic types and showed how to use the typing module to specify function arguments and return types. In this part, we'll explore some more advanced types and how to use them in your code. 5. Using typing.Generator, typing.Iterable, typing.Iterator for generators and iterators When defining a function that acts as a generator, specify the return type as Generat.. Read more Writing Python Code Like a Pro: A Deep Dive into Type Checking #2 You can see #1 here! Dive into the world of Python typing with this in-depth guide. Learn how to use the typing module effectively and enhance your code's readability and maintainability. Get ready to become an expert in Python typing! 1. Using typing.Union for mutlple types typing.Union comes in handy when a single function argument can have multiple types. Using Union ensures that your cod.. Read more Writing Python Code Like a Pro: A Deep Dive into Type Checking #1 Python is a dynamically-typed language, which means that variable types don't need to be explicitly declared, and types can change at any point in the program. While this makes Python code more flexible and easier to write, it can also make it more prone to errors. To address this issue, Python introduced built-in support for type checking with version 3.5, allowing developers to specify the exp.. Read more Prev 1 Next