Live data from Hacker News

Ask HN: your biggest Aha moment as a hacker?

news.ycombinator.com

1–10 of 34 posts

Ask HN: your biggest Aha moment as a hacker?

#1
Every now and then in every hacker's life, there comes a moment when you just solved a frustrating problem which you and may be others were working for a long time. Solving it gives you immense satisfaction, makes it all worth it, gets you a rush of energy and makes you love your life as a hacker/designer... a Peak Experience, aka Aha moment. Was curious as to what is the biggest peak experience fellow hackers had.

One such experience of mine was when I found the true cause of slowdown if a 31 thread implementation. We had tried a LOT of things without any luck. And finally when I found out the reason, it was like finding out Kaiser Soze's true identity! BTW, the reason was a lock taken by infinibnd firmware, and we were on track again with 0 code lines changed!

What's your biggest Aha moment as a hacker?

Re: Ask HN: your biggest Aha moment as a hacker?

#2
This was a long time ago, so I don't remember the particulars, but it was in a large Fortran-based CFD flow solver code. The code used a lot of dynamically-allocated arrays, and somewhere in there we had a bug that would occasionally manifest itself in a crash. The problem of course was that we couldn't consistently reproduce it. This was before the days of really good memory debuggers, or at least, before we discovered such tools, so the bug just kind of lingered on for a long time.

The day I finally tracked it down was a red-letter day, for me personally anyways.

Re: Ask HN: your biggest Aha moment as a hacker?

#7
A big "Aha" moment for me was that I could just grep the big scary tar.gz source code of a project. (And that the big scary tar.gz wasn't that scary)

Before that moment, I had to post a question to the project's forum or submit a bug report if I had a problem with a project. Then one day, all of a sudden, I realized I could just go ahead and grep the source myself and that the source wasn't scary. I realized that not only could I look at the code myself, but also that I had enough skills in general that I could follow along with other people's code.

Essentially, my "Aha" moment was actually exercising Freedom 1 from the four essential freedoms of free software.

Re: Ask HN: your biggest Aha moment as a hacker?

#8
It was my first programming assignment, actually. I was a co-op student, working in a factory. A database used to communicate between the fab area and the order/sales types, suddenly stopped working. The original author was no longer around. I have no idea why I got picked to fix it... desperation, I suppose. I vaguely remember that some poor secretary had to do everything by hand while I figured it out.

I plunged around stupidly for a long, long time. I called it a database, but really it was more like a process-- a collection of one-off tools, on a variety of machines, that slowly massaged factory data into a form useable by the front office.

Eventually I blundered my way to the solution. Reading the manual for one of the languages used, it mentioned using EBCDIC codes when writing characters. A little bell went off in my head-- somewhere I had read that another machine in the pipeline used ASCII encoding.

None of this meant anything to me, but I knew that all the programs assumed a certain line length, and defensively stuck in a line terminator character just to be certain. A little poking around revealed that, sure enough, somehow a single record of the wrong length had got into the original data file.

So in the end, changing a single character in a single program made the whole apparatus wheeze back to life.

It was a great moment for me, seeing how such a little thing could have such a huge impact. There was also a heady feeling to the fact that nobody around me seemed to have any idea what I was talking about-- they were just happy the thing finally worked again.

Re: Ask HN: your biggest Aha moment as a hacker?

#9
When I realized that I hadn't learned languages, I'd learned techniques, and I could just change languages given a bit of time to bootstrap and some common starting points.

Basically, paradigms were my Aha. Kinda lame, but apparently there are a lot of developers who haven't figured them out yet.

Re: Ask HN: your biggest Aha moment as a hacker?

#10
I am building my first web app and learning Ruby on Rails as I go, so I literally have Aha moments every single day. When I get something to work (that I've never done before) I literally jump up and down. The feeling of seeing an idea come to life is just unexplainable!
Post reply on HN