this post was submitted on 27 Sep 2024
90 points (81.7% liked)

Showerthoughts

29288 readers
1645 users here now

A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The best ones are thoughts that many people can relate to and they find something funny or interesting in regular stuff.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] JackGreenEarth@lemm.ee 66 points 1 day ago (12 children)

Or a renamed txt. Eg, .js, .py, .css, .html, .json

[–] victorz@lemmy.world 57 points 1 day ago (11 children)

Thank God they went with file name extensions so we didn't have to preface every source .txt file with header content to instruct the editor about what kind of content it would have.

[–] JackGreenEarth@lemm.ee 7 points 1 day ago (7 children)

Why do I need to put that at the start of bash, desktop, and html files then?

[–] Revan343@lemmy.ca 3 points 4 hours ago

For shell scripts it's because bash isn't the only shell; if you leave out the shebang line, Ubuntu will run your script in Dash instead

load more comments (6 replies)
load more comments (9 replies)
load more comments (9 replies)