Sponsored links
Python

Python Using Literal type to restrict the parameter

How can we restrict parameter values in Python? Use Literal. Enum can also be used for the same purpose but it can break the existing code. Let's learn how to use Literal together.
Golang

Golang How to mock an object by yourself for unit testing

It might be too big to introduce a mock framework. It's better to create a mock object by ourselves in this case.
Golang

Golang How to accept an arbitrary number of arguments

Are you searching for a way to accept an arbitrary number of parameters? Can the parameters have mixed data types? Then, this post is for you. Let's handle the parameter depending on the type.
Golang

Golang How to get value from any/interface

If a function has a parameter that is any or interface{}, it's not possible to access a property by a dot chain. How can we read a value in this case?
Python

Python How to create a missing key automatically

How can we create a dictionary in python? Once it's created, we need to add/delete/update/get value. This post covers all your needs.
Dart and Flutter

Flutter How to show selected area on Slider

How can we show the selected area on a slider widget? Using Stack is one of the solutions but it's necessary to consider the padding value to show the selected area accurately. Let's learn how to do it!
Dart and Flutter

Flutter How to get widget height, width, x, and y position

If the size and position of a widget need to be automatically determined by the Framework, a variable can't be used to know them for another widget. How can we get the width, height, x, and y positions in this case? Use GlobalKey.
Python

Python How to define a custom exception with parameters

How can a custom exception be defined in Python? If you check the error message to handle differently depending on the error, a different type of exception should be used. This post shows you some examples.
Other techs

Why does git submodule update not work!!

The following command didn't update the submodule. Huh?git submodule updateNeither of the following ones updated it.git ...
Other techs

Git How to show the current branch name on the terminal on WSL

Why isn't the current branch name shown on the Terminal? I don't want to run "git status" every time I want to check the current branch. Let's set it up!
Sponsored links