I make videos on all sorts of programming and computer science related topics. From animated sorting algorithms, to problem solving approaches, machine learning and full stack development.
I enjoy:
@3Blue1Brown: youtube.com/c/3blue1brown
@Fireship : youtube.com/c/fireship
bvdl․io
New video tomorrow :)
1 year ago | [YT] | 5
View 2 replies
bvdl․io
Thanks everyone! 😱🥳
1 year ago (edited) | [YT] | 8
View 2 replies
bvdl․io
What does this python code with 'metaclasses' output?
class Meta(type):
def __new__(cls, name, bases, dct):
x = super().__new__(cls, name, bases, dct)
x.attr = 100
return x
class MyClass(metaclass=Meta):
def __init__(self):
self.attr = 10
obj = MyClass()
print(obj.attr)
1 year ago | [YT] | 5
View 4 replies
bvdl․io
Guess the correct output:
import functools
def debug(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
args_repr = [repr(a) for a in args]
kwargs_repr = [f"{k}={v!r}" for k, v in kwargs.items()]
signature = ", ".join(args_repr + kwargs_repr)
print(f"Calling {func.__name__}({signature})")
result = func(*args, **kwargs)
print(f"{func.__name__} returned {result!r}")
return result
return wrapper
@debug
def add(x, y):
return x + y
print(add(3, y=4))
1 year ago | [YT] | 1
View 0 replies
bvdl․io
What is the correct output of this Python code?:
def uppercase_decorator(function):
def wrapper():
func = function()
make_uppercase = func.upper()
return make_uppercase
return wrapper
@uppercase_decorator
def greet():
return 'hello world'
print(greet())
1 year ago | [YT] | 5
View 0 replies
bvdl․io
Choose the correct output (for the python code):
class Animal:
def speak(self):
return "I'm an animal"
class Dog(Animal):
def speak(self):
return super().speak() + " and a dog"
my_dog = Dog()
print(my_dog.speak())
2 years ago | [YT] | 4
View 2 replies
bvdl․io
The video for the "Not a Little Language" interpreter is in the works. It'll be an interpreter for a programming language with variables, types, if-elif-else, loops, etc. & some spicy exclusive features.
Would you be interested in seeing how to make a VSCode extension that does syntax highlighting for the language?
2 years ago | [YT] | 3
View 0 replies
bvdl․io
What language do you use to program your backends these days?
2 years ago | [YT] | 2
View 10 replies
bvdl․io
Do you ever use PUT requests?
2 years ago | [YT] | 5
View 5 replies
bvdl․io
New video coming soon :)
2 years ago | [YT] | 10
View 2 replies
Load more