Spyke

Replies

Comment on

sudo touch grass

The explanation is most likely incorrect though. A more obvious cause of this error is that the current working is the root directory (/) and that they’re logged in as a non-root user, thus trying to create the file /woman without sufficient permissions.

Comment on

Pure Evil

Reply in thread

Automatic Semicolon Insertion (ASI) has (sadly) been a part of JavaScript longer than 2016. I'm not sure exactly when it was introduced, but this document from 2009 already contains it: https://web.archive.org/web/20120418215856/https://ecma262-5.com/ELS5_Section_7.htm#Section_7.9

IMO it's bad practice to rely on ASI since the semicolons may not get inserted where you expected them to. The following snippet

const x = 0
const y = x
[1, 2, 3].forEach(console.log) 

is interpreted as

const x = 0;
const y = x[1, 2, 3].forEach(console.log);

which raises a TypeError.

There are more examples of ASI not doing the right thing on the web, so I don't agree with "Javascript doesn't need semicolon".

dach

Comment on

Metalldiebe sorgen für Zugausfälle zwischen Andernach - Mayen-Ost

Nett hier mal etwas aus der Region zu lesen. Fahre öfters mit der Bahn und habe mich letztens erst gefragt ob die Steuerung der Signale durch Ziehen von Drahtseilen nicht total störanfällig ist, vor allem wenn diese Drahtseile teilweise kilometerlang sind. Es ist aber definitiv ein netter Anblick diese alten, mechanischen Signale an der Strecke zu haben, statt der üblichen Lichtsignale.

Laut dem Artikel wurden hier ohnehin irgendwelche Kabel geklaut.