this post was submitted on 01 Jul 2023
75 points (87.1% liked)

Programmer Humor

19176 readers
2066 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 1 year ago (1 children)

Add your image to the link rather than the body so we can see it while scrolling.

[–] [email protected] 8 points 1 year ago

Alright I will do that next time, this was one of my first posts

[–] [email protected] 14 points 1 year ago (3 children)

The tee program is also very useful!

[–] [email protected] 3 points 1 year ago

tee was one of those programs that really opened my eyes to how powerful the Unix-like command prompt could be

[–] [email protected] 1 points 1 year ago

That's amazing..

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

Never heard of tee I will have to look in to it

[–] [email protected] 9 points 1 year ago

You should add an exploding head 4th item to the meme with: app | tee log.txt

[–] [email protected] 7 points 1 year ago (1 children)

Well I chuckled so I would say it’s good!

[–] [email protected] 2 points 1 year ago

Good it's not just me

[–] [email protected] 4 points 1 year ago

Even better - redirect stdout to a file within the program!

[–] [email protected] 2 points 1 year ago

Congrats, you're the first federated post on my instance.

[–] Reckless 1 points 1 year ago* (last edited 1 year ago)

In Python logging.info() and the stream handler to redirect to a log file is my preferred settup for simultaneous terminal and file output.

[–] scri 1 points 1 year ago

app 2>&1 | tee log.txt is my usual go to.