News for hackers. Stuff that matters.

trippplezz

Re:21st Century C (new book) on Friday November 16, 2012 @11:46AM (#4794567)
I would recommend "C: A Modern Approach", 2nd ed by King (http://www.amazon.com/Programming-Modern-Approach-2nd-Editio...)

It's a hefty tome but that's not necessarily bad if you want to (re-)learn the language and the tricks in a proper way. Easily in my personal Top 5 books for C (The others are in no particular order: "Pointers on C", "Expert C Programming: Deep C Secrets", "The Standard C Library", "C Interfaces and Implementations".)

Re:Program above and beyond your actual ability by using FreeMind on Thursday September 27, 2012 @11:41AM (#4581159)
Good article. Your practices are so similar to my recent approach to learning and organizing knowledge that it's scary ;) The only difference are the actual tools which I think is non-essential.

So, when I'm faced with some bit of knowledge/howto/troubleshooting that I encounter for the first time (at least from memory), I do the following:

* Launch Zim desktop wiki (http://zim-wiki.org/) opened with my Dropbox synchronized notes

* Add a new page with some descriptive but not overly long title (using the same principles as for the title line for the version control commit messages)

  * For example: "Python command line arguments"
* Write the tags for this particular bit of knowledge. This may sound repetitive but the number of tags needed (at least in my frame of mind) are usually 2 to 5.

  * @howto @python
* The actual content is written by myself, no copy and paste allowed. In this way I'm the one re-wording/restating the knowledge, so that the search queries afterwards will result in almost 'perfect' matches:

<CONTENT>

The command line arguments are accessed using the list sys.argv:

import sys

# Prints the name of the script

print sys.argv[0]

# Prints all remaining command line arguments

print sys.argv[1:]

</CONTENT>

When searching:

* Open the search dialog (CTRL+F), and enter my search string, for instance: "command line arguments"

Recently I've started using Anki for adding similar bite-sized facts about Perl, bash, grep, sed, awk, etc. because in the past year or so I was gradually 'forced' to become programming polyglot (I'm not there yet, though). I was frustrated for the very same reasons described by the OP's article: forgetting the little details when occasionally have to come up with a little script or modify an existing one in a non-primary programming language.

Generally, I use Zim wiki for facts/articles that are not that small that will be better as a flash card question/answer.

Ask HN: Large Open Sourced Web Apps

Hi guys,Since I&#39;m eager to learn the latest technologies behind the &#39;cool&#39; web apps, lately I&#39;ve been researching about large AND relatively cutting edge open source web apps in the wild, not necessarily commercial.One striking example that I&#39;ve found (here at HN) was NewsBlur: https://github.com/samuelclay/NewsBlur (massive cudos to Samuel Clay for open sourcing it)The...

( Read More... | 1 comment | 3 points | on HN )

Ask HN: How and in what to specialize to become consultant?

Recently, I was thinking about how to become a consultant. I don&#39;t know anyone who is a consultant, I&#39;ve only read about these guys here and in some other entrepreneurial-is forums. In theory, I know that I have to specialize and acquire fairly advanced skill(s) in something that is somewhat a niche but at the same time relatively widely used in order to have consulting gigs at all....

( Read More... | 1 comment | 5 points | on HN )

Ask HN: Separate code and comments?

I have a really weird problem at work. The project that I workon was developed mainly by a single person, and for some strange reason he doesn&#39;t want any comments in the code, quite literally.Since I want to add comments in the code while I browse through the code making small modifications, basically getting accustommed to it, I was thinking about the possible solutions to this case:* add...

( Read More... | 4 comments | 2 points | on HN )

Ask HN: What personal projects for learning web scalability?

I&#39;m gradually becoming more and more fascinated by the big and/or just interesting web apps/sites that rely on massive amounts of trafic, data, queries, etc. To scratch the itch, I&#39;ve decided to start some personal project exercising some of the technologies and approaches to scalability ... BUT as you probably have guessed - it&#39;s hard to come up with ideas that are of the...

( Read More... | 1 comment | 5 points | on HN )

Ask HN: Learning HTTP - writing a web server in which language?

I&#39;ve been on a hiatus to study and prepare for web development jobs since I&#39;ve decided to switch half an year ago. I have appr. 8 years of prior programming experience with mainly C/C++ doing CAD-related and video games programming.In the past 6 months, I&#39;ve read numerous books and wrote I would say a lot of toy-ish and not so toy-ish code using plain vanilla PHP, Smarty templates,...

( Read More... | 1 comment | 3 points | on HN )