Hacker Newsnew | past | comments | ask | show | jobs | submit | McUsr's commentslogin

You're right I think.

Though some High school kid with interest might grasp the parts he/she is interested in.

There is a big lap from there to "Could be taught in High School".

The sheer amount of work is the main obstacle in addition to the lack of specialization in the courses is one of the obstacles I think, apart from the obvious one which is the lack of foundational skills.


I found the way of counting the number of permutations useful.

The Hockey stick identity was something long forgotten and fun re-discovering.

The way they are generated not so much.

So, Sedgewick has an algorithm for generating permutations that are highly efficient, and ijust as difficult to grasp. But there is a paper out there where he explains the algorithm graphically, which makes it understandable.

So I haven't worked through the way to get the composition that is the n'th permutation yet, but I guess I will suffer.

It is not well written, and for instance the wrong term for partition, versus composition is made in the explanatory graphic at the top of the article.

Still, I think it was worth reading, I have made several programs utilizing permutations, and I might improve one or two of them after having read this, with some new knowledge.


I look forward to the next blog post implementing the actual parser.


Thanks. I wasn't aware of this channel. :)


I'm glad you're fond of Sublime Text.

Personally I'm totally sold on 'Vim' I have lsp through 'YouCompleteMe', which works great for C-languages, and I have Automatic update of tags with 'GutenTagsPlus', And I also use 'c-scope', 'Git' and 'Id-utils', and I have 'ulti-snips' which I probably use too little. So yeah, this and the GCC toolchain, is pretty much the ultimate for me, and I have tried a lot of Editors through the years.


A cast iron skillet doesn't evolve.

The nice thing about Vim is that it evolves to your needs as you configure and reconfigure and tweak as you go along, exploring different itches.

I change my .vimrc ever so often, and the changes usually rewards me.


Using ed interactively, so you can work out some complex operation step by step, is a valid point for using ed instead of sed. Sometimes however, awk is the correct solution. (Why sit and mess with it, if awk provides a straight forward solution.)


Actually interactive editing with ed saved my ass once on my FreeBSD server once. Somehow, my terminal driver (actually I actually used my vt520 even for emails at the time) was totally broken so I only had a single line. I actually managed to edit the settings file with ed to get things straight and do a reboot. However, if you know sed you should be able to handle. However, this was 2001 or so and I somehow doubt that I it will happen again ...


Agreed, though you have to be careful not to rely on gawk (or mawk, etc.) specific features. To be fair, the exact same problem exists between sed and gsed.

I always install gnu-utils on Macs because I find them to be easier, but if I need to share with coworkers, I have to go back and ensure they’re portable.


:)


Nice to see a fellow Kraftwerk fan.


With classes and deference.

I look forward to checking it out.

<3


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: