News for hackers. Stuff that matters.
Re:The Tao of Programming (1987) by chrisweekly on Monday January 28, 2019 @10:14PM (#19023421)
Ha! I first came across this verse (7.2) early in my career, circa 2001 or so, and it always stuck with me.

> 7.2

In the East there is a shark which is larger than all other fish. It changes into a bird whose wings are like clouds filling the sky. When this bird moves across the land, it brings a message from Corporate Headquarters. This message it drops into the midst of the programmers, like a seagull making its mark upon the beach. Then the bird mounts on the wind and, with the blue sky at its back, returns home.

The novice programmer stares in wonder at the bird, for he understands it not. The average programmer dreads the coming of the bird, for he fears its message. The Master Programmer continues to work at his terminal, unaware that the bird has come and gone.

Re:The Tao of Programming (1987) by BossingAround on Tuesday January 29, 2019 @03:22AM (#19024693)
That feels like kind of a dangerous advice. Seems to me that means that if Google announces that they want to roll out a full cencorship in China so that they can enter the market over there, the most prominent developers will just silently continue to work on it..?
Re:The Tao of Programming (1987) by ppseafield on Tuesday January 29, 2019 @11:20AM (#19027532)
I think the context of where this came from helps explain the quote (beginning of chapter 1 of Zhuangzi):

> IN THE NORTHERN DARKNESS there is a fish and his name is K'un.1 The K'un is so huge I don't know how many thousand li he measures. He changes and becomes a bird whose name is P'eng. The back of the P'eng measures I don't know how many thousand li across and, when he rises up and flies off, his wings are like clouds all over the sky.

The big bird is so huge that it is alien to the smaller ecosystems below it. In the same way, CEOs and upper management are so "huge" (at the top of the hierarchy) that their choices seem incomprehensible from the point of e.g. a junior dev. Maybe they good or bad choices, but in any case their day-to-day choices are different from a single developer's.

> The cicada and the little dove laugh at this, saying, "When we make an effort and fly up, we can get as far as the elm or the sapanwood tree, but sometimes we don't make it and just fall down on the ground. Now how is anyone going to go ninety thousand li to the south!"

Here the small creatures make fun of the bird, not exactly understanding its world or experiences, but instead comparing the Peng's actions and natural inclinations to their own. A dove has no need to travel thousands of miles, which is a short trip for the Peng.

In the GP's comment, the novice programmer "stares in wonder at the bird" because - in the same way - his day-to-day experience is so different from the people who run Corporate Headquarters. The Master Programmer knows that CH is "doing it's thing" so to speak, or just following its own nature. Any attempt to understand the machinations and decisions of upper management from the viewpoint of a programmer simply doesn't work, so they do not bother to think about it.

Re:The Tao of Programming (1987) by sametmax on Tuesday January 29, 2019 @07:36AM (#19025799)
Like any general teaching, you are allowed to use your judgement to adapt to context, and choose exceptions.

There is not a single thing I know that is always true.

Those sentences are applicated to themself.

Re:The Tao of Programming (1987) by CraneWorm on Tuesday January 29, 2019 @01:16PM (#19028554)
They won't even start; theirs is the more important work.
Re:The Tao of Programming (1987) by paradoxparalax on Tuesday January 29, 2019 @01:21AM (#19024227)
Because the master can even hit the seagull with his Slingshot, that the Corp. H.Q. will not say anything to make him angry and make him think about the others H.Q.s that exist and make him wonder the salary there.
Re:The Tao of Programming (1987) by ConfusedDog on Tuesday January 29, 2019 @08:07AM (#19025946)
I am already loving it. "1.2

The Tao gave birth to machine language. Machine language gave birth to the assembler.

The assembler gave birth to the compiler. Now their are ten thousand languages.

Each language has its purpose, however humble. Each language expresses the Yin and Yang of software. Each language has its place within the Tao.

But do not program in COBOL if you can avoid it. "

Re:The Tao of Programming (1987) by peterwwillis on Monday January 28, 2019 @09:45PM (#19023275)
Re:The Tao of Programming (1987) by yellowapple on Monday January 28, 2019 @09:57PM (#19023335)
And without the various typos, to boot.
Re:The Tao of Programming (1987) by kiddico on Tuesday January 29, 2019 @12:20PM (#19028044)
Said typos are (for the most part) on purpose.

https://news.ycombinator.com/item?id=19024327

Re:The Tao of Programming (1987) by yellowapple on Tuesday January 29, 2019 @02:27PM (#19029131)
If they were deliberate, then that would imply that their existence is perfection. To recognize that the typos were accidental mistakes by the human typing them is to recognize the Tao.
Re:The Tao of Programming (1987) by venuur on Tuesday January 29, 2019 @06:11AM (#19025422)
Much better! The OP’s version was not very mobile friendly.
Re:The Tao of Programming (1987) by raphlinus on Tuesday January 29, 2019 @02:19AM (#19024452)
The Tao of programming is Nigel Tao, long one of the main people on the Go team. Not to be confused with the Tao of mathematics, who is of course Terence Tao, Nigel's brother.
Re:The Tao of Programming (1987) by synthmeat on Tuesday January 29, 2019 @05:25AM (#19025252)
Also not to be confused with another brother - Trevor, an autist savant with double degree in mathematics and music, as well as a chessmaster.

That's what you get when a pediatrician and a mathematics/physics teacher have kids. Who would've known. (Not trivializing at all. Complimenting, if anything.)

They're so cute too. https://media.gettyimages.com/photos/brilliant-brothers-dr-t...

Re:The Tao of Programming (1987) by cbanek on Tuesday January 29, 2019 @01:44AM (#19024327)
> Only a fool expects rational behavior from his fellow humans. Why do you expect it from a machine that humans have constructed? Computers simulate determinism; only Tao is prefect.

Spelling as plot device, so underrated.

Re:The Tao of Programming (1987) by harimau777 on Tuesday January 29, 2019 @10:40AM (#19027169)
That reminds me of a tagline I saw on a movie poster for a Sci Fi movie a long time ago. Something along the lines of: "The computer is in complete control, mistakes are impossble."

Hmm, can't recall what the name of the movie actually was.

Re:The Tao of Programming (1987) by alfonsodev on Tuesday January 29, 2019 @04:07AM (#19024901)
> "Spelling as plot device"

I'm curious, what do you mean ? could you point me somewhere to learn about it ? is it something like or related to a McGuffin ?

Re:The Tao of Programming (1987) by JetSpiegel on Tuesday January 29, 2019 @04:32AM (#19025020)
The typo "prefect" at the end is part of the plot, that nobody id perfect.
Re:The Tao of Programming (1987) by alfonsodev on Tuesday January 29, 2019 @05:44AM (#19025334)
Apparently the typo was "fixed" in the html version http://www.mit.edu/~xela/tao.html maybe whoever ported didn't catch the subtle double meaning ? Or was just a typo.
Re:The Tao of Programming (1987) by sevensor on Tuesday January 29, 2019 @10:04AM (#19026831)
Their/there/they're confusion is also an expression of the Tao.
Re:The Tao of Programming (1987) by forgotmypw2 on Monday January 28, 2019 @11:06PM (#19023669)
Re:The Tao of Programming (1987) by yellowapple on Tuesday January 29, 2019 @02:35PM (#19029176)
And for the best of both worlds: http://www.catb.org/jargon/html/koans.html

The first one's my favorite:

    A novice was trying to fix a broken Lisp machine by turning the power
    off and on.

    Knight, seeing what the student was doing, spoke sternly: “You cannot
    fix a machine by just power-cycling it with no understanding of what
    is going wrong.”

    Knight turned the machine off and on.

    The machine worked.
Re:The Tao of Programming (1987) by linsomniac on Monday January 28, 2019 @11:45PM (#19023843)
Another of my favorites.
Re:The Tao of Programming (1987) by hyperpallium on Monday January 28, 2019 @10:50PM (#19023591)
When the specification is defined by the program, it cannot have bugs.
Re:The Tao of Programming (1987) by coliveira on Monday January 28, 2019 @11:09PM (#19023684)
Did he know Python already in the 80s?
Re:The Tao of Programming (1987) by jonathanstrange on Tuesday January 29, 2019 @04:04AM (#19024880)
Yes, because Python is just a small subset of CommonLisp with bad syntax.
Re:The Tao of Programming (1987) by vram22 on Tuesday January 29, 2019 @02:34PM (#19029173)
Re:The Tao of Programming (1987) by amadio on Tuesday January 29, 2019 @01:58AM (#19024378)
I prefer "The UNIX Koans of Master Foo" http://catb.org/esr/writings/unix-koans/
Re:The Tao of Programming (1987) by grkvlt on Tuesday January 29, 2019 @08:13AM (#19025980)
Those are actually pretty terrible, probably written after reading GEB. ESR is trying to emulate Hofstadter but isn't clever enough, so they are all based on a one-trick pony, search-and-replace joke that wears thin quickly.

2/10, would have preferred bobcat?

Re:The Tao of Programming (1987) by glitchc on Tuesday January 29, 2019 @10:53AM (#19027292)
The housecat may mock the tiger, but it will not turn his purr into a roar.
Re:The Tao of Programming (1987) by teddyh on Tuesday January 29, 2019 @04:48AM (#19025088)
I was not until many years after I read this until I realized it was an actual book:

https://en.wikipedia.org/wiki/The_Tao_of_Programming

I now own a copy, and it is glorious.

Re:The Tao of Programming (1987) by _hardwaregeek on Monday January 28, 2019 @11:17PM (#19023723)
I really get 4.4 for some reason:

> True, sometimes there are difficult problems. I see them coming, I slow down, I watch silently. Then I change a single line of code and the difficulties vanish like puffs of idle smoke.

I've started to debug like this. Sure, I also actively debug by adding print statements and manipulating my code. But there's something to be said about just thinking and waiting for the answer.

Re:The Tao of Programming (1987) by BossingAround on Tuesday January 29, 2019 @03:25AM (#19024706)
Interesting. Generally, what I do as the first step is immediatelly connect a remote debugger and debug the piece of code that I think is problematic (which is correct in around 90% of the times for me). Then, the answer is generally trivial. I started doing this because it felt way more time efficient than staring into the code and trying to think what goes wrong over there.
Re:The Tao of Programming (1987) by yellowapple on Tuesday January 29, 2019 @03:00PM (#19029347)
I've found that sometimes there's additional benefit to the "take a step back and think about what the code is actually doing" step, in the sense that doing so helps gain better knowledge about how the code actually works and often reveals opportunities to simplify the design (sometimes in such a way that ends up inadvertently fixing the problem, though admittedly it'll more often just introduce more bugs ;) ).
Re:The Tao of Programming (1987) by jordanbeiber on Tuesday January 29, 2019 @11:19AM (#19027530)
I’ve stuggled with 7.1.

The shelter a massive enterprise with a sane middle-manager provides can be a beautiful place for innovation and creative freedom.

However, the older I’ve become the less corporate bs and re-orgs I’m prepared to live through.

Maybe my Tao is slipping...

Re:The Tao of Programming (1987) by yellowapple on Tuesday January 29, 2019 @09:37PM (#19032130)
The trick is to ignore the corporate BS and re-orgs, since they matter not in the grand scheme of things.

In the now-more-prescient-than-ever words of Grace Slick:

    Someone's always playing corporation games
    Who cares, they're always changing corporation names
Re:The Tao of Programming (1987) by dang on Monday January 28, 2019 @09:55PM (#19023322)
Lots of previous discussions: https://hn.algolia.com/?query=The%20Tao%20of%20Programming%2...

(Edit: I mention links like this just in case people are interested. If we were treating the post as a duplicate it would be marked [dupe].)

Re:The Tao of Programming (1987) by sifoobar on Tuesday January 29, 2019 @08:50AM (#19026225)
I used to own the book but left it at my desk when I quit a job in the hope that it would help the next poor victim for the same position.

Reading the whole thing, I'm again surprised at how much wisdom is hidden in there.

Shouldn't that be:

"Time for you to return."

though?

Re:The Tao of Programming (1987) by qu4z-2 on Tuesday January 29, 2019 @08:59PM (#19031923)
I'm not sure whether you're aware that "time for you to leave" is a reference to the old Kung Fu TV show[0].

I also don't know enough about systems programming to be sure whether RET or LEAVE is the right instruction there :P

[0]: https://www.youtube.com/watch?v=wQBVYko_uhQ#t=46s

Re:The Tao of Programming (1987) by emersonrsantos on Monday January 28, 2019 @11:08PM (#19023674)
> The Tao gave birth to machine language. Machine language gave birth to the assembler. The assembler gave birth to the compiler. Now there are ten thousand languages.

Heh, nothing changed.

Re:The Tao of Programming (1987) by deeg on Monday January 28, 2019 @11:23PM (#19023743)
You left out the most important line in the whole treatise :)

> But do not program in COBOL if you can avoid it.

Re:The Tao of Programming (1987) by pnw_hazor on Tuesday January 29, 2019 @04:23AM (#19024974)
Cobol does not look that bad given the mess we are in today.
Re:The Tao of Programming (1987) by mark_l_watson on Monday January 28, 2019 @10:34PM (#19023508)
nice, I haven't seen this in years.

I really laughed at the bit about 'structured programming.' As it turns out, long ago, structured programming was a thing.

Re:The Tao of Programming (1987) by aasasd on Tuesday January 29, 2019 @08:30AM (#19026081)
I remember a story about a professor: one student of his turned in a program neatly divided in functions for each bit of functionality, and ‘main’ consisted only of function calls. The professor was aghast at this waste of resources and sent the student back to rework the program.

This was related much later by the professor himself, and he was fully aware of how prescient the student was.

Re:The Tao of Programming (1987) by bitwize on Tuesday January 29, 2019 @09:17AM (#19026414)
It still is a thing. Today we just call it "programming".
Re:The Tao of Programming (1987) by paradoxparalax on Tuesday January 29, 2019 @04:16PM (#19029849)
And how do you call it if is Not structured nowadays?
Re:The Tao of Programming (1987) by yellowapple on Wednesday January 30, 2019 @11:03AM (#19036180)
Javascript.
Re:The Tao of Programming (1987) by beaconstudios on Wednesday January 30, 2019 @08:13AM (#19034735)
spaghetti.
Re:The Tao of Programming (1987) by Symbiote on Tuesday January 29, 2019 @01:44AM (#19024326)
Install the fortune package on Linux, and add "fortune" to your .bashrc file. You'll see them occasionally.
Re:The Tao of Programming (1987) by rblion on Tuesday January 29, 2019 @06:01PM (#19030731)
I really enjoy the synthesis of Eastern and Western, Ancient and Modern. Pulling up something from before I was born makes this post that much better.
Re:The Tao of Programming (1987) by hyperpallium on Monday January 28, 2019 @10:34PM (#19023501)
4.1 is like wtf/min https://www.osnews.com/story/19266/wtfsm/ (not xkcd)

It's not the law of no astonishment.

Re:The Tao of Programming (1987) by jamiewildehk on Tuesday January 29, 2019 @01:35AM (#19024287)
I bought a physical copy of this (still have it around somewhere) after reading many of the koans from /usr/bin/fortune
Re:The Tao of Programming (1987) by ghosthamlet on Tuesday January 29, 2019 @08:44PM (#19031816)
When i dreamed the code, Maybe it is the code dreamed me.

When Worlds end, The Rest Is Silence of Code.

Re:The Tao of Programming (1987) by jgamman on Wednesday January 30, 2019 @06:23PM (#19040699)
sheesh - wandered around the site and found angela.txt, an ascii nude (which i now know was/is a thing and wish i didn't). and people wonder why other people think on-line culture is a cesspool.
Re:The Tao of Programming (1987) by JHH_18 on Tuesday January 29, 2019 @12:47AM (#19024071)
I first read that on POTS with my '486 . Just now, rocked and laughed just like Chris Griffin when he noticed the Jingled keys. Thanks.
Re:The Tao of Programming (1987) by russaga_com on Wednesday January 30, 2019 @01:43PM (#19037907)
like
Re:The Tao of Programming (1987) by wpmoradi on Tuesday January 29, 2019 @11:16AM (#19027498)
awesome!!!