6 ms·
The ninja code section is pure sarcasm, right? I'm not sure now which sections are and aren't.
by alfonsodev 6y ago
The ninja code section is pure sarcasm, right?
I'm not sure now which sections are and aren't.
- jeffmcmahan 6y agoIt has an alert at the top that says, "Irony Detected".
- Zhyl 6y agoThat page has an 'irony warning' so just watch out for those on other pages! It might just be my sense of humour (I'm the sort of person that doesn't need an '/s' tag and feels that it shouldn't be necessary if you told the joke properly), but it was pretty obvious to me even without the irony warning that the page was intended as a joke. It looks like it was heavily inspired by the classic 'Tao of Programming' [0]. It uses a very similar style and even quotes the actual Tao Te Ching. [0] http://www.mit.edu/~xela/tao.html http://www.mit.edu/~xela/tao.html
- hutzlibu 6y agoI am with you on not wanting or needing to see /s ... but on a tutorial, where people actually struggle to understand anything at first read, using unmarked irony is maybe not the most helpful for them. Oh and a second thought on /s. For some time I only got my news through satire sites like the onion. And after I switched back to "real news" sites, I could not believe it was not satire. I mean come on, the world and the internet was always full of dumb people, but when even very high ranking people and institution say really out of the world things in all seriousness - I came to the conclusion, marking irony as irony is sadly sometimes important, in those interesting times we live ...
- Sohcahtoa82 6y agoYeah, when we live in a world where people legitimately believe that Bill Gates is trying to use COVID vaccines to install microchips into people, you can't always be sure that someone giving an insane opinion isn being ironic or sarcastic.
- hutzlibu 6y agoI mean, we allways had flat earthers (even though I couldn't believe they were serious either, when I first stumbled upon them). But this new level is a bit unsettling.
- colmvp 6y agoThe section is clearly dripping with irony. They even have an "Irony detected" box at the very top which acts as the sarcasm/satire tag so many people seem to use to bang over our heads that it's not serious.
- speedgoose 6y agoInterestingly Golang encourages one letter variable names and it's not sarcasm this time : https://github.com/golang/go/wiki/CodeReviewComments#variable-names https://github.com/golang/go/wiki/CodeReviewComments#variabl... Golang's landscape is full of one letter variables and abbreviations and it's not great.
- Philip-J-Fry 6y agoIt's only encouraged within certain contexts. Like it says, short lived stuff can be named "x" or "i". We already do this in almost every language. "c" for "count" or "i" for "index" isn't specific to Go, I've seen and done that in every language I've used. Stuff that isn't easily understood should be named appropriately but shortness is encouraged. If you're storing an index in a global variable or a struct field then it should be called "index" not "i". Method receivers are usually always kept short because they're pretty self explanatory and the first thing you look at in a function.
- speedgoose 6y agoi and j are very understandle. I did browse the go code randomly and for example t, s, and b are terrible variable names in my opinion in this example : https://github.com/golang/go/blob/3ce865d7a0b88714cc433454ae2370a105210c01/src/html/template/template.go#L404-L441 https://github.com/golang/go/blob/3ce865d7a0b88714cc433454ae... You can find a lot of code like this.
- yarosv 6y agoThat's easy. `b` stands for file
- earthboundkid 6y agoThat strikes me as perfectly readable. t for template, b for bytes, and s for string. What else would you call them?
- yarosv 6y ago
- flixic 6y agoIt is hilarious. Lao Tzu quotes make it simply perfect.
- earthboundkid 6y agoIt is funnier to me because the quotes are actual historical quotes (to be fair, there probably was no "Laozi" historically), whereas you see fake quotes for Laozi/Confucius/Buddha all over the internet.
- wsc981 6y agoThe Ninja code section seem to have been largely based on this classic article, which I personally found more humorous to read: https://github.com/Droogans/unmaintainable-code?fbclid=IwAR1oOptBo03hr_aX6TwQm5ZfS6x4HpS71weBoMbN3IDo7XBmyF9jT12is18 https://github.com/Droogans/unmaintainable-code?fbclid=IwAR1...