Re:Ask HN: Self-taught webdev with lots of free time. What s...
by bszupnick on Wednesday August 12, 2020 @08:37AM
(#24131411)
Any specific resources to recommend?
[ Parent
| on HN ]
Re:Ask HN: Self-taught webdev with lots of free time. What s...
by KiranRao0 on Wednesday August 12, 2020 @08:43AM
(#24131453)
My favorite has been https://pgexercises.com/. Instead of going through theory, you practice writing progressively more complex queries to achieve a specific result.
Re:Ask HN: Self-taught webdev with lots of free time. What s...
by cloverich on Wednesday August 12, 2020 @10:48AM
(#24132539)
I've only used it as a reference, but the art of postgresql is pretty solid. In general any webdev who isn't skilled at SQL is missing out on an easy way to level up. SQL is crazy powerful, versatile, and scalable, and takes a small amount of time to gain proficiency, and stays with you. I methodically read one 350 page book in 2012 and still feel I understand SQL better than most I come across. That's kind of silly. I recommend learning enough to understand the gist of aggregates and window functions. Once you understand what they can do, you can easily reference the syntax when needed.
Re:Ask HN: Self-taught webdev with lots of free time. What s...
by _benj on Wednesday August 12, 2020 @08:45AM
(#24131471)
The postgresql documentation is actually a pretty good start (and finish!).
I like learning by doing something so I took an old side project and I'm making it on PostgreSQL with PostgREST in front of it. It is crazy all the things that the DB can do! Triggers after an actions happens, virtual columns, JWT Tokens, Unit Testing...
Re:Ask HN: Self-taught webdev with lots of free time. What s...
by cpursley on Wednesday August 12, 2020 @09:24AM
(#24131815)
Using postgrest and combining postgres triggers with Elixir listeners, you can then do callback like actions on the data: https://blog.lelonek.me/listen-and-notify-postgresql-command...
Or do similar using Hasura's Event system but with webhooks.
Re:Ask HN: Self-taught webdev with lots of free time. What s...
by ioncube on Friday August 14, 2020 @04:25AM
(#24155306)
Theory:
Database Lessons by Dr. Daniel Soper (watch at x2 speed)
https://www.youtube.com/playlist?list=PL1LIXLIF50uXWJ9alDSXC...
Learn by watching short videos and practicing: Mastery with SQL (paid course, $49) - https://www.masterywithsql.com/
Re:Ask HN: Self-taught webdev with lots of free time. What s...
by dkubb on Wednesday August 12, 2020 @02:33PM
(#24135220)
I would recommend SQL and Relational Theory by CJ Date.
It completely changed how I use SQL. Before reading it, I had about a decade of experience with SQL. I didn't really understand the theory underneath. I also didn't understand how to write SQL in a way that adheres to the theory.
You can think of this book as being the closest we have to "SQL: The Good Parts".