go back Vanya's Website

14-445 from CMU

modified 20/04/2024 22:54

Intro

Author of learnaifromscratch swears that this course teaches you everything you need to know to get a job in OLAP. I’ll do it to learn about sql and how databases work internally. I don’t know modern c++ (did a course in c++ that was more like in college but that’s about it), so I’ll pick that up too as I go.

Lecture 1

C++ Primer

Project requires us to implement a copy-on-write trie (operations return new tries, instead of modifying by reference) by completing the implementation. This is really a test for your c++ abilities. I don’t have any so I’ll be picking everything up and writing about what I learn here as I go through it.

std::string_view

trailing return types (fun -> type)

template <class T>
auto Trie::Get(std::string_view key) const -> const T *
{
}
template <class T>
const T* Trie::Get(std::string_view key) const
{
}

i guess it’s more readable? not sure

std::dynamic_cast

explicit constructors

virtual functions

why we can’t use the copy constructor

pseudocode