Day: January 29, 2019

Python

[Python Core] – Method Resolution Order (MRO) in Python OOP

Unlike Java which only has single inheritance, Python has multiple-inheritance. So the issue is how you would know the order of inheritance. The answer is simple (hopefully this post today is super short as well). Let’s make some code: class Parent: def do_something(self): print(“METHOD IN CLASS Parent”) class Child_A(Parent): def do_something(self): print(“METHOD IN CLASS Child_A”) […]

Read More
Django
Python

[Django Series] – Django Project Structure

I’m pretty sure that once you understand the mission of every single thing in a Django project, you’ll feel much better to roll up your sleeves and start coding. If you’re still not confident in creating a new Django project, have a look at my previous post at here. After creating a project, you’ll have […]

Read More