News for hackers. Stuff that matters.
Re:The Command Line Crash Course (Zed Shaw) by liuhenry on Friday December 16, 2011 @05:29PM (#3362621)
This was posted yesterday: http://news.ycombinator.com/item?id=3358544 along with existing comment thread.
Re:The Command Line Crash Course (Zed Shaw) by zedshaw on Friday December 16, 2011 @05:31PM (#3362630)
Yes, I thought HN prevented this. Anyway, see the above discussion and keep in mind this is a first rough draft.
Re:The Command Line Crash Course (Zed Shaw) by liuhenry on Friday December 16, 2011 @05:34PM (#3362639)
It should, but it's only an exact url check.

Looks like the other submission links directly to the html file, while this one just goes to the parent directory.

Re:The Command Line Crash Course (Zed Shaw) by hsmyers on Friday December 16, 2011 @06:00PM (#3362723)
Insert plea for PDF here...when you're ready of course :)
Re:The Command Line Crash Course (Zed Shaw) by dlf on Friday December 16, 2011 @07:08PM (#3362896)
Thanks, Zed! I've been working through Learn Python the Hard Way, but I think getting this stuff under my belt first will help.
Re:The Command Line Crash Course (Zed Shaw) by itgoon on Friday December 16, 2011 @08:45PM (#3363089)
I missed the previous link, so I'm glad it came up.

I do a lot of powershell, Zed. Would you be interested in feedback? For example, while "type" still works, "get-content" is the powershell equivalent.

Nice work, one way or the other. Please keep it up.

Re:The Command Line Crash Course (Zed Shaw) by itgoon on Friday December 16, 2011 @08:48PM (#3363098)
Heh. I just checked. "Type" is an alias for "get-content".

I suspect bringing all that up would just confuse the issue, and detract from your goal.

Re:The Command Line Crash Course (Zed Shaw) by zedshaw on Saturday December 17, 2011 @03:18AM (#3363794)
Yep, I don't know much about powershell so I have to go through it tomorrow to do the Windows side.
Re:The Command Line Crash Course (Zed Shaw) by drewda on Friday December 16, 2011 @07:06PM (#3362888)
Oops, my bad. I actually put this URL into the form figuring it had already been posted and I was curious to see the discussion.
Re:The Command Line Crash Course (Zed Shaw) by jnbiche on Friday December 16, 2011 @06:40PM (#3362819)
Since I didn't get a chance to comment on yesterday's post on "The Hard Way" command line course, I want to mention today that Zed Shaw is also working on a very nice C course for experienced programmers. I've been looking unsuccessfully for an online C course like this one, that doesn't do things like explain what functions, primitives, etc. are. Starts out a little slow with compiling and setting up your development environment, but then reveals a very well-written introductory course on C programming for experienced programmers. As an experienced Python/Javascript/PHP programmer with an interest in C, I've been looking for an online course like this for a long time.

Zed: can we somehow compensate you for your works-in-progress? I've gotten a lot out of your C course. I can't wait until it's available in epub format.

Re:The Command Line Crash Course (Zed Shaw) by zedshaw on Saturday December 17, 2011 @03:22AM (#3363805)
Just tell me when you find errors so I can fix them, and then if you appreciate it buy a PDF/ePub when it becomes available. Actually selling something is way easier to explain to the tax man than a "donation".
Re:The Command Line Crash Course (Zed Shaw) by jnbiche on Tuesday December 20, 2011 @12:12PM (#3374182)
Will do. And I just purchased your udemy C course. And WOW! I'm looking ahead in the pdf and you're going to cover a lot. Perhaps the same is reflected in the HTML version -- I 've not yet looked ahead.

Folks, if you're a Python, Ruby, Javascript, etc. programmer and you're interested in learning C, this is the book for you.

Re:The Command Line Crash Course (Zed Shaw) by Joeboy on Saturday December 17, 2011 @03:25AM (#3363810)
> Just tell me when you find errors so I can fix them

http://learncodethehardway.org/cli/book/cli-crash-coursech4.... has 'diretories'.

Re:The Command Line Crash Course (Zed Shaw) by telemachos on Friday December 16, 2011 @07:55PM (#3362992)
>> [C]an we somehow compensate you for your works-in-progress? I've gotten a lot out of your C course. I can't wait until it's available in epub format.

No idea what Zed would suggest, but there's an in-progress Udemy video course[1] of Zed's on C that you can already purchase.

[1] http://www.udemy.com/learn-c-the-hard-way/

Re:The Command Line Crash Course (Zed Shaw) by jnbiche on Tuesday December 20, 2011 @12:09PM (#3374172)
Thanks for the suggestion -- I just purchased it. I'm not big one videos, but I'm getting so much out of the book I'm purchasing it in support of the book (and it looks like I'll receive a copy of the book whenever it's done along with the udemy purchase).
Re:The Command Line Crash Course (Zed Shaw) by LeafStorm on Friday December 16, 2011 @06:51PM (#3362851)
While I'm glad that you aren't dismissing Windows out of hand like some people, interleaving the Windows instructions with the POSIX instructions could get a bit confusing. It may be better to maintain separate builds of the book for POSIX and Windows.
Re:The Command Line Crash Course (Zed Shaw) by mechanical_fish on Friday December 16, 2011 @07:46PM (#3362969)
I thought this looked like an interesting, possibly-unique feature, not a bug.

Including Windows up-front ensures that whoever picks up the book can make use of it immediately, no matter which computer they happen to be sitting in front of.

Also, as one who knows the Unix command line pretty well but knows next-to-nothing about Windows, it's good to get exposed to a similar-yet-different style of command line.

And if I ever need to use Windows again I plan to try this book first: By covering both in parallel, the book might turn out to be a pretty good guide to learning one in terms of the other.

Re:The Command Line Crash Course (Zed Shaw) by dredmorbius on Friday December 16, 2011 @07:53PM (#3362990)
It's easy enough to get a POSIX/Linux toolkit via Cygwin.

Though this does assume the user is allowed/enabled to install software.

Barring that, bootable CD / USB distros are also highly tenable. The default Ubuntu installation disk includes this, though there are many other options.

Re:The Command Line Crash Course (Zed Shaw) by LeafStorm on Friday December 16, 2011 @08:11PM (#3363023)
...Except Zed's whole point with this is that you don't have to use the fancy Cygwin/POSIXy stuff or a Linux Live CD or whatever to do programming and the command line. POSIX environments are better for programming, but you don't need them, and a lot of the people who would benefit most from learning programming don't have Linux experience and wouldn't do it if they had to do something fancy to get a UNIX-y environment.
Re:The Command Line Crash Course (Zed Shaw) by dredmorbius on Saturday December 17, 2011 @02:02PM (#3364839)
For me it's more a matter of cognitive simplicity.

I can use a POSIX environment anywhere. It's one less hurdle if that's the tool I'm using.

I've learned (and forgotten) numerous proprietary system languages. I prefer sticking with stuff that will be around. POSIX/Unix/Linux have demonstrated staying power.

Re:The Command Line Crash Course (Zed Shaw) by zedshaw on Saturday December 17, 2011 @03:19AM (#3363800)
I'm going to try it this way and see if it helps a kind of a "CLI rosetta stone". If it doesn't work I'll just have dexy generate two separate docs.
Re:The Command Line Crash Course (Zed Shaw) by benatkin on Friday December 16, 2011 @06:13PM (#3362761)
It's been interesting to read your tweets about Windows. It's encouraging to see a fast learner get up to speed despite plenty of misgivings about the subject matter.

I think it will be less confusing to some if you mention Windows Vista here:

> If you don't have Windows 7, you should seriously consider upgrading. If you still insist on not upgrading then you can try installing it from the download center. You are on you're own though since I don't have Windows XP, but hopefully the PowerShell experience is the same.

Re:The Command Line Crash Course (Zed Shaw) by wyclif on Saturday December 17, 2011 @12:03PM (#3364562)
"Your" not "you're." I guess I'll submit some corrections.
Re:The Command Line Crash Course (Zed Shaw) by DanBC on Saturday December 17, 2011 @09:26AM (#3364268)
I'm not enjoying this much. I think the tone is a bit harsh. Compare to Learn Python THW:

(http://learnpythonthehardway.org/book/intro.html)

See, especially, "do not copy paste" which is firm but clearly explains why you don't copy paste.

Re:The Command Line Crash Course (Zed Shaw) by wyclif on Saturday December 17, 2011 @12:02PM (#3364561)
Don't forget, this is a first draft. Since the best predictor of future behaviour is past behaviour, expect the rough edges to be sanded down over time.
Re:The Command Line Crash Course (Zed Shaw) by ExpiredLink on Saturday December 17, 2011 @07:38AM (#3364134)
> Just like above, here's the same list but using the Windows versions:

> TODO: Need the windows version.

Is there an easy way to contribute to this book? Ideally people could submit patches to be merged by Zed at his own discretion.

Re:The Command Line Crash Course (Zed Shaw) by non123 on Saturday December 17, 2011 @06:36AM (#3364053)
I was aware that pushd and popd existed but never used it. I see how I can gain a lot of productivity from it, so I'll probably be using it from now on.