News for hackers. Stuff that matters.
Re:Found around 250 hilarious CS quotes while browsing Notep... by user_ on Tuesday November 08, 2022 @02:09AM (#33516650)
The first one is based on a Bruce Lee quote :)

> Empty your mind. Be formless, shapeless, like water. You put water into a cup; it becomes the cup. You put it into a teapot; it becomes the teapot. You put water into a bottle; it becomes the bottle. Now water can flow, or it can crash! Be water, my friend.

Re:Found around 250 hilarious CS quotes while browsing Notep... by swyx on Tuesday November 08, 2022 @03:15AM (#33517024)
really gotta wonder if he really said it or its misattributed to him.
Re:Found around 250 hilarious CS quotes while browsing Notep... by vincnetas on Tuesday November 08, 2022 @03:21AM (#33517072)
https://www.youtube.com/watch?v=cJMwBwFj5nQ

At least he said that. Not sure if he was first to say that though.

Re:Found around 250 hilarious CS quotes while browsing Notep... by prox on Tuesday November 08, 2022 @03:54AM (#33517272)
There are some zen quotes and teachings that compare our minds to the contents of a cup vs the vessel (body). In Daoism you have the yin/yang aspects. Afaik The quote seems to be his.
Re:Found around 250 hilarious CS quotes while browsing Notep... by roey2009 on Wednesday November 09, 2022 @01:39AM (#33528182)
That quote is indeed his. I listened to Shannon Lee's (his daughter) podcast, and she told the story of when he understood it.

Apparently when his martial arts teacher told him he was too forceful, to be more like water, and then banned him from practicing until he understood. Short story, he went on a boat ride, got angry, started punching the river, then he got that aha moment.

Bruce Lee was actually a really wise dude. I also highly recommend the podcast.

https://brucelee.com/podcast/

Re:Found around 250 hilarious CS quotes while browsing Notep... by ndr on Tuesday November 08, 2022 @03:20AM (#33517061)
Re:Found around 250 hilarious CS quotes while browsing Notep... by _the_inflator on Tuesday November 08, 2022 @03:23AM (#33517076)
I fixed it a litte: "You put water into a cpp; it becomes the cpp." ;)
Re:Found around 250 hilarious CS quotes while browsing Notep... by nyanpasu64 on Tuesday November 08, 2022 @04:00AM (#33517300)
Sadly C and C++ have aliasing rules, so casting a pointer to another type is often UB instead of having the underlying memory take the form of the new type.
Re:Found around 250 hilarious CS quotes while browsing Notep... by HPsquared on Tuesday November 08, 2022 @06:30AM (#33518065)
Hence it can flow, or it can crash!
Re:Found around 250 hilarious CS quotes while browsing Notep... by yakubin on Tuesday November 08, 2022 @11:25AM (#33520762)
Or it can just give someone root.
Re:Found around 250 hilarious CS quotes while browsing Notep... by rgoulter on Tuesday November 08, 2022 @09:53AM (#33519598)
Ahhh, I should have recognised it; it's used in this Melodysheep remix:

https://www.youtube.com/watch?v=1ZxGtvpp49M

Re:Found around 250 hilarious CS quotes while browsing Notep... by phaedrix on Tuesday November 08, 2022 @12:45PM (#33521858)
...And Bruce Lee is paraphrasing from the Tao Te Ching; chapter 8 on water.

https://www.taoistic.com/taoteching-laotzu/taoteching-08.htm

There's also a really good and short Ted Talk on it: https://www.ted.com/talks/raymond_tang_be_humble_and_other_l...