Better HN
topnewbestaskshowjobs
Log inSign up

padmi

1 karma · joined May 14, 2022 (4y ago) · 4 submissions

Submissions

comment 3y ago · link · parent

Of course option 3 but make "&" required. And ":is(aside) &" is ugly, should be just "aside &". Yes, it starts with letter, but it's the only way to be not ugly.

comment 4y ago · link · parent

oh, nevermind. the date is already sortable.

comment 4y ago · link · parent

2021-02-21 w07 Sun 10 ski with N

Why not use day-of-week number to make lines sortable?

2021-02-21 w07-7 Sun 10 ski with N

But, in my country, Sunday is first day of week, so

2021-02-21 w08-0 Sun 10 ski with N

comment 4y ago · link · parent

Friendlier sql is MySQL "insert into set".

Normal insert, hard to read:

INSERT INTO table1 ( field1, field2, field3, ... ) VALUES ('value1', 'value2', 'value3', ... );

vs

Easier to read:

INSERT INTO table1 SET field1='value1', field2='value2', field3='value3', ...