News for hackers. Stuff that matters.
Re:C Programming Guidelines by btrask on Wednesday September 02, 2015 @06:28PM (#10162326)
Thanks for for the comment. I'm the author of the article. I'd really appreciate some more specific feedback, particularly the parts that you think are dangerous or "not even wrong."

I'll take a look at the Silver Searcher's code and see what pearls of wisdom I can gain.

Re:C Programming Guidelines by ggreer on Thursday September 03, 2015 @02:50AM (#10163631)
In hindsight, my comment seems rather curt and dismissive. Thanks for taking my criticisms like a champ.

Honestly, I don't think ag is very good code. It's worth reading if you want to see optimizations like memory-mapped I/O, pthreads, Boyer-Moore strstr, etc. But if I had to grade the quality of the code, I'd give it a C-. Many parts have grown organically, and I haven't had time to restructure them. Also, ag's use-case is not exactly mission-critical. Nobody is going to die if it crashes or errors-out. Add my time constraints and… the result is some shoddy code.

I'll add "C Programming Guidelines" to my queue of blog posts to write, but I make no guarantees about when I'll get to it. Sorry.

Re:C Programming Guidelines by btrask on Thursday September 03, 2015 @06:25PM (#10167873)
Cool, I'm looking forward to it.