News for hackers. Stuff that matters.
Re:Programming for Cats by tigerlilythecat on Saturday February 06, 2021 @10:43AM (#26047249)
Author here. Looking to get feedback from programmers before publishing. You can download a sample chapter at: https://programmingforcats.com/download/
Re:Programming for Cats by Zhyl on Saturday February 06, 2021 @12:35PM (#26048175)
Firstly, this is frikking hilarious. I giggled so loudly while reading it that my girlfriend asked what I was laughing at and she was so captivated by it that I had to sit on the couch with her reading it, flicking to the next page of the downloadable whenever she'd finished.

Secondly, I applaud the style/premise of the book. Cats especially are aiming at an underserved demographic that would absolutely be interested in programming but do not have the same number of and level of quality of 'ins' (ways of getting into programming) as other demographics. Along the same lines I would love to see 'scripting for Sims 4 builders' or 'Love Calculator and other scriots for your next sleepover'.

Thirdly, I really like the way that this is pitched. I feel like so few tutorials give a high level overview of programming rather than diving into specifics of languages. I can only think of "Hello Ruby" as being analogous, although I'm sure others exist.

Finally, I love the art style. Not much more to be said than that.

I can't really think of anything critical to add.

Re:Programming for Cats by tigerlilythecat on Saturday February 06, 2021 @01:49PM (#26048806)
Thank you! I agree that cats are an underserved demographic! P.S. Tell your girlfriend to buy you the book for your birthday :)
Re:Programming for Cats by networkimprov on Saturday February 06, 2021 @02:21PM (#26049066)
As you liked this, you'll adore the original (?) entry in this genre, the delightful and pictorial

Why Cats Paint - A theory of feline aesthetics

http://www.monpa.com/wcp/

Re:Programming for Cats by pcthrowaway on Saturday February 06, 2021 @05:11PM (#26050490)
Are there any good resources for felines in tech?
Re:Programming for Cats by gostsamo on Saturday February 06, 2021 @11:55AM (#26047763)
So, there is already "The Naming of Cats", the book needs "The caching of Cats" and you have the two most difficult chapters covered.
Re:Programming for Cats by shagie on Saturday February 06, 2021 @12:59PM (#26048371)
If you like The Naming of Cats... check out RFC 2100
Re:Programming for Cats by based2 on Saturday February 06, 2021 @01:30PM (#26048646)
Re:Programming for Cats by bryanrasmussen on Saturday February 06, 2021 @12:19PM (#26048006)
We need a little discussion as to the best programming paradigms for cats - I'd call it "Cool for Cats"
Re:Programming for Cats by gostsamo on Saturday February 06, 2021 @12:38PM (#26048204)
It is interesting how cats will implement tail recursion.
Re:Programming for Cats by HowTheStoryEnds on Saturday February 06, 2021 @02:55PM (#26049364)
My cat still seems to run out of space when tail recursing when certain values get adjusted, I figure he needs to go into functional programming and no longer use shared and mutable positional values with what he uses to thread.
Re:Programming for Cats by giovannibonetti on Saturday February 06, 2021 @01:24PM (#26048593)
Awesome!
Re:Programming for Cats by troymc on Saturday February 06, 2021 @12:14PM (#26047952)
Don't forget "The Herding of Cats"!
Re:Programming for Cats by gostsamo on Saturday February 06, 2021 @12:40PM (#26048217)
Well, the two most difficult things with cats is how to name them, how to cache them, and the offset by one when counting the herd.
Re:Programming for Cats by tigerlily on Saturday February 06, 2021 @01:30PM (#26048647)
Would you like to have my username instead? If yes then I can message you my details via your site and we can mail hn together to request a change.
Re:Programming for Cats by tigerlilythecat on Saturday February 06, 2021 @01:55PM (#26048865)
Aww I'm touched! But no need, this is not my main account and I only use it for this book, while I see you have a lot of history already. But thank you!
Re:Programming for Cats by tigerlily on Saturday February 06, 2021 @02:32PM (#26049150)
No worries. I like your book sample and thoroughly enjoyed your illustrations :)
Re:Programming for Cats by timthorn on Saturday February 06, 2021 @10:58AM (#26047360)
Excellent work! Did your dog delete the sections on cat & mouse games, and em-cat-bedded programming? Oh, and making sure the code was appropriately tabbified?
Re:Programming for Cats by eitland on Saturday February 06, 2021 @11:55AM (#26047754)
I don't particularly like cats, but the intro is so well written I'd been tempted to read a little further.

A few folks have already vented that they don't like it. Don't care too much about it. A good bunch of people might love a book like this.

Re:Programming for Cats by swader999 on Saturday February 06, 2021 @11:29AM (#26047589)
Herding cats is always my go-to metaphor for software projects.
Re:Programming for Cats by jgoodknight on Saturday February 06, 2021 @12:06PM (#26047864)
this is purrfect, I love it can't wait to have the full book: good luck finishing it!
Re:Programming for Cats by vlowther on Saturday February 06, 2021 @12:03PM (#26047833)
It will look good on the bookshelf next to https://www.goodreads.com/en/book/show/3113099-mr-bunny-s-bi...
Re:Programming for Cats by tyingq on Saturday February 06, 2021 @11:26AM (#26047570)
Re:Programming for Cats by armoredkitten on Saturday February 06, 2021 @12:40PM (#26048222)
Ethics? I'm pretty sure cats are above such pedestrian concerns.
Re:Programming for Cats by HowTheStoryEnds on Saturday February 06, 2021 @02:50PM (#26049313)
Yeah violating ethics is something that happens when you get caught doing something others don't like and like any non-critical error a cat can just walk away from that or spend their time reprogramming the short-circuited device.
Re:Programming for Cats by HowTheStoryEnds on Saturday February 06, 2021 @02:47PM (#26049283)
Will there actually be basics of programming in there or is it just for cuteness?

Buying it either way but it might be a means to finally kindling an interest into it in my spouse. :P

Re:Programming for Cats by smlckz on Saturday February 06, 2021 @11:08AM (#26047433)
Meow. Mwahaha. Why Java? What made you think that cats would like OOP and lots of boilerplate?
Re:Programming for Cats by derefr on Saturday February 06, 2021 @12:01PM (#26047818)
To answer seriously: it might not be most people's favorite language, but it's probably one that the most practicing programmers today and people who ever took a programming language in school any time in the last 30 years, can read; and therefore it's probably the best choice as the basis for a humor book.

Java has so little syntax—and yet what little syntax it has is C-ish—that it's mutually intelligible to everybody from programmers who only know C, to programmers who only know Haskell. (Maybe not to programmers who only ever learned 6502 assembler, but they have their own humor books published 40 years ago.)

(Is there a term for this in linguistics? A measure of the eigenvector of mutual intelligibility a language has to all other spoken/written languages?)

Re:Programming for Cats by smlckz on Saturday February 06, 2021 @12:26PM (#26048084)
i don't know, but, why not, say, BASIC? (most programmers being able to understand) or, Smalltalk, (little syntax, that ''fits inside a postcard'') or a lisp?
Re:Programming for Cats by pmontra on Saturday February 06, 2021 @12:47PM (#26048271)
BASIC was commonly understood in the 80s despite lots of very different dialects and also in the 90s mostly because of Visual Basic. Is it still true that developers are familiar with BASIC? I would expect that JavaScript and maybe Python replaced BASIC as lingua franca. JavaScript looks simpler because it basically (pun intended) doesn't have a standard library to learn, with all the problems deriving from that.

Java doesn't seem a bad choice because if one sticks to the basics probably everybody can figure out what a simple program does. Smalltalk, I wonder how many people here ever read a Smalltalk source file [1]. Lisp, maybe more, at least to look once at all those funny parentheses (disclaimer, I wrote my fair share of Lisp but I know the effect it does on most people.)

[1] One random Smalltalk project from the list of trending Smalltalk repositories on GitHub https://github.com/svenvc/zinc

Re:Programming for Cats by xkriva11 on Saturday February 06, 2021 @03:18PM (#26049570)
What you see in the Zinc repository is (obsolete) serialization format, not the code the programmer works with.
Re:Programming for Cats by alisonkisk on Saturday February 06, 2021 @12:55PM (#26048336)
BASIC was commonly understood because it had no structure or boilerplate to learn, just a few commands.
Re:Programming for Cats by derefr on Sunday February 07, 2021 @12:15AM (#26052840)
I think you misinterpreted. It's not that more programmers know Java; it's that more programmers know a language with a syntax similar to Java.

I don't really know Java. But I know C, and Java looks enough like C that I can get what Java code is trying to do.

Personally, I've never learned any language with similar-enough syntax to BASIC, to understand what a (real, non-trivial) BASIC program is trying to do. Would I recognize a BASIC subroutine if I saw one? Probably not.

And it's not about a language having "less" syntax, either, but rather about it having very few syntactic features that're unfamiliar. Smalltalk is a rather large novelty the first time you see it. (`ifTrue`? You mean I've got to use closures to branch?)

Re:Programming for Cats by alexshendi on Saturday February 06, 2021 @12:06PM (#26047873)
"Java has so little syntax... ". I pronounce this the understatement of the (admittedly young) decade.
Re:Programming for Cats by nomdep on Saturday February 06, 2021 @12:15PM (#26047961)
I took Object Pascal, C, C++, and Visual Basic. Never Java
Re:Programming for Cats by systemvoltage on Saturday February 06, 2021 @02:33PM (#26049170)
Java is like an older brother. He gets all the work done, takes responsibility, accepts blame and still takes a lot of flak. Undetered.
Re:Programming for Cats by swader999 on Saturday February 06, 2021 @11:38AM (#26047651)
I was thinking cats would prefer scala.
Re:Programming for Cats by berkes on Saturday February 06, 2021 @12:04PM (#26047854)
Looking at my cats, I presume they ignore anything neat and impressive, prepared for them. And instead go for the first thing that satisfies their current whim.

So, a hodgepodge of bash, basic, Python, JavaScript and some C. Or Java if it happens to be just on top in some menu. And NIH: obviously theyr own ZiggyLang or ZazaScript.

Re:Programming for Cats by tigerlilythecat on Saturday February 06, 2021 @03:24PM (#26049619)
You are absolutely correct, because there is a great Scala library called "Cats"! https://typelevel.org/cats/
Re:Programming for Cats by ktpsns on Saturday February 06, 2021 @01:28PM (#26048629)
Think about a chapter about electronics! Soldering with cats is... Weird!