HNHacker News
TopNewBestAskShowJobs

McUsr

83 karma · joined February 17, 2013

submissionscomments
McUsr··on Discrete Mathematics: An Open Introduction [pdf]
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.

McUsr··on What Every Programmer Should Know About Enumerative Combinatorics
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.

McUsr··on Abusing C to implement JSON parsing with struct methods
I look forward to the next blog post implementing the actual parser.
McUsr··on Most-Watched Software Engineering Talks of 2024
Thanks. I wasn't aware of this channel. :)
McUsr··on I still like Sublime Text
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.

McUsr··on Vim is a cast iron skillet
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.

McUsr··on S/Sed/Ed
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.)
McUsr··on Window Maker: X11 window manager with the look and feel of the NeXTSTEP UI
:)
McUsr··on The Open Group Base Specifications Issue 8
Nice to see a fellow Kraftwerk fan.
McUsr··on Vim 9.1 Released
With classes and deference.

I look forward to checking it out.

<3

McUsr··on So you've installed `fzf` – now what?
I have used that for years, but there are downsides to the approach as well.

So, you revisit a window, and you want to start from where you left, but now, you might maybe wade through 100's of commands before you get back to that point in time. There are fixes for this too of course, my point is, that it doesn't come without side effects, and that is maybe why it isn't set as default behaviour. At least in a pre 'fzf/atuin/smenu' world.

I prefer smenu's history search, even if I consider myself a heavy fzf user.

McUsr··on D2, a diagram scripting language that turns text to diagrams, is now open source
Thank you, thank you, thank you.

I live well with your install.sh not beeing able to reckognize that I'm on Debian and have a slightly different layout than generic Linux. On the other hand, getting installations from outside repos into /usr/local/bin, isn't a bad choice over all.

Me not beeing used to using curl, I didn't realize that the dry run parameter to go at the end of install command. I guess most people who downloads from github gets that. A line or two on how you do a dry run, with the command line fully spelled out wouldn't hurt though.

Now that all the sour critique is out of the way, I want to repeat my thank you's, the comparative site was great, and so were the examples, and it came just in time!

I'm going to use this for small simple diagrams, and some views of ER models, I'm not into the call graph, or drawing 1000's of nodes thing at the moment, it will probably work well for that too.

My point is, that your graphs are actually simpler to define than using groff's pic macro package, or the stand-alone pic2graph utility.

So. Thank you!!

McUsr··on Ask HN: How's your drinking problem?
My problem is that I drink too little, sometimes, I guess I could have "optimized", by taking an evening/night off, and relaxed with a drink. Some "itchiness" in the morning, can be a good thing too, as I remember from school.
McUsr··on Current draft of The Art of Computer Programming pre-fascicle 6a [ps]
And if you don't be sure to have at least a good book on discrete mathematics handy.
McUsr··on Current draft of The Art of Computer Programming pre-fascicle 6a [ps]
On my Mac it opens directly in preview, after I clicked the link in Safari. I have not done anything for that functionality, so I'm pleased.
McUsr··on C Traps and Pitfalls (1988) [pdf]
Andrew Koenig, the author of this paper/book, is also co-author of Accellerated C++, which I can whole heartedly recommend. [Addison Wesley ISBN-10: 0-201-70353-X]
McUsr··on How a keyboard changed what I look for in an editor
I switch the capslock and the control key, so that I have a fairly standard 101 XT key keyboard layout. I also "flip" the function keys, so that I have to press fn-f12 to increase the volume. I do that through keyboard pane of System Preferences. ctrl-F4 is then a goodie, that switches windows through the z-window buffer, independendt of the App. You can also mod your keyboard layouot through the cocoa text system, and then you all of suddenly have keys like ctrl-shift a and ctrl-E, ctrl-G (cancel) that works every where. I basically have emulated most of emacs in my modification of the cocoa text system, so that it works in every app that uses the cocoa text system. I have also bound up a lot of automator services to the free combinations of function/modifier keys. I am a happy user.
McUsr··on What the Next Generation Needs Is Math, Not Programming
I don't know about critical thinking in general, or science, but you definetively need some math courses, in order to get the necessary problem solving skills to be able to come up with clever solutions. Some people are born with those skills, or think in a similiar way, so those people, doesn't need learn the ability of mathematical reasoning. Nevertheless, the mathematical reasoning is mandatory if you want to be an excellent programmer. Together with a lot of other skills. I am thinking about the skillset you get by solving excercises in Calculus. Having a solid understanding of Discrete Mathematics and Statistics doesn't hurt either, depending on your problem area.
McUsr··on The Hacker Shelf: Collection of free books for the intellectually curious
Thanks a lot. :) Well, I can see a couple of books here I wish I had time to read at the moment. I don't mind reading up on a topic in one book, and then later on switching to another more authorative one, should I feel I need to. However, there is always some luck involved in this. Some books covers what you need, others don't, whether they are authorative on the subject or not.
McUsr··on Self-Promoters Tend to Misjudge How Annoying They Are to Others
What I find personally annoying, is when "you" are in a "competetive pond", and then people drags in stuff from outside the pond, into the pond for competetive purposes. That is unedible, and "foul play" in my book. :)
McUsr··on Frequently Forgotten Fundamental Facts about Software Engineering (2001) [pdf]
I agree, totally worth reading, clear, concise, and probably very accurate. I liked the section about efficiency best. "Efficiency is more often a matter of design than of good coding".

Thanks for posting this.

McUsr··on Hash Collision Probabilities (2011)
I couldn't wrap my head around how to solve that.

Thanks

McUsr··on Lessons Learned in Software Development
It was really a great post, I haven't ranked any of the points he made. I liked especially the authors point of looking at the timestamps, and the lack of coincidence in stuff, and getting a good nights sleep.
McUsr··on The DCI Architecture: A New Vision of Object-Oriented Programming (2009)
IMO: This may be one of the important papers to read (also the link within it) because it gives such a good perspective on things. "Some sees the the Model View Controller model as some observer patterns, while it really is to map the datamodel of the program onto the users mind model" It provides a great perspective.
McUsr··on Writing Bug-Free C Code (1995)
Thanks a lot for the link. :)
McUsr··on OS X Reviewed
My favourites are Tiger, Snow Leopard and Mavericks. And I am more pleased with Mavericks than Snow Leopard which I am more pleased with than Tiger.

I agree about the testing, but still I think they have managed to keep the technical debt somewhat in control. I really yearn for the day they license Plan9, and port OS X on top of that. Because I believe that would give bigger opportunities, both with respect to hardware, but also with respect to a better foundation for developing more sophisticated features.

McUsr··on Regular Expression Matching Can Be Simple and Fast (2007)
I use groups, (look forward, and lookbehind) all the time, now that I have been comfortable with them, they are great in that I can write simpler regexps, or use fewer patterns. And I use perl for one liners, which is as far as I can go comfortably with perl. Thing is, I use regexps most for one-liners, and with perl, and grouping, it is simpler for me, than using sed for instance, where I then would have to think, (and test), substantially more, or filter the output through yet anoter sed expression. So grouping works for me. :) It is of course slower, but so far, the most critical time for me, has been the speed with which I can make a solution that works.
McUsr··on The Good Project Manager
I liked this write up on the overalls of being a project manager very much.

First of all, it was written in a not boring tone, and it also conveyed at least one point that gave me an "AHA" namely "you are just the PM".

The impression I am left with is that this is first of all written by someone who knows what they are doing, that are also capable of writing in such a way that grasps the attention of their audience (me).

I am going to read all the chapters, I am sure there are nuggets in there.

Thanks for sharing.

McUsr··on How Apple Makes the Watch
I agree, that was just amazing.

Thanks!

McUsr··on If programming languages were Harry Potter characters
AppleScript should have been Luna Lovegood and C should have been Dumbledore, I guess forth would have been so Harry Potter. :)

Allegories are interesting and funny.

Page 1 of 4Next →