News for hackers. Stuff that matters.
Re:The Simplicity of Prolog by guskel on Sunday January 26, 2025 @01:07AM (#42828095)
To each their own.

Others would say datalog elegant and makes it easy to compose statements whereas SQL has an ugly syntax. I mean, ORMs were invented to try to avoid writing SQL but they too have their own problems.

Re:The Simplicity of Prolog by sgarland on Sunday January 26, 2025 @08:16AM (#42829898)
> SQL has an ugly syntax

Speak for yourself. I’ve always found it to be very clear and concise.

    SELECT <tuples> FROM <table> [[type of] JOIN other_table ON ?, …] [WHERE ? [boolean operator], …] [ORDER BY ? [DESC]] [LIMIT ?]