[SQL] SELECT i.*, u.name AS author_name, u.username AS author_username, u.avatar_url AS author_avatar FROM d_idea i left JOIN d_user u ON u.id = i.user_id WHERE i.id = ? AND i.is_draft = 0 | Params: [2865] [SQL] SELECT * FROM d_block WHERE idea_id = ? ORDER BY position ASC, id ASC | Params: [2865] [SQL] SELECT * FROM d_topic WHERE slug IN (?,?,?,?,?) ORDER BY name | Params: ["Productivity","Personal Development","Habits","Problem Solving","Time Management"] [SQL] SELECT i.*, u.name AS author_name, u.username AS author_username, u.avatar_url AS author_avatar FROM d_idea i left JOIN d_user u ON u.id = i.user_id WHERE i.is_draft = 0 AND i.id != ? AND i.hashtags LIKE CONCAT('%', ?, '%') ORDER BY i.total_reads DESC LIMIT ? | Params: [2865,"Productivity",3] [SQL] SELECT * FROM d_user WHERE id = ? | Params: [0] [SQL] UPDATE d_idea SET total_reads = total_reads + 1 WHERE id = ? | Params: [2865]
Curated from:
www.dansilvestre.com
Ideas, facts & insights covering these topics:
8 ideas · 204K reads
90% of your daily decisions happen automatically, many shaped by your environment. Thus, most decisions are a habit, not a deliberate choice.
To make smarter choices, design smarter defaults. And habits can be developed by shaping the invisible defaults of your life.
Design your life like a choice architect:
“First, never underestimate the power of inertia. Second, that power can be harnessed.”