Live data from Hacker News

Ask HN: As a developer what are your aha moments?

news.ycombinator.com

51–60 of 189 posts

Re: Ask HN: As a developer what are your aha moments?

#51
post #37

When I learned about the repl. For me 90% of debugging is about figuring out how to break at the crucial line and then shining the repl light on it. 75% of writing new code is about trying stuff in the repl and then stepping through the code in the repl and testing everything. For me that quick feedback loop makes coding as fun as gaming.

Out of curiosity, what language(s) are you working with?

Re: Ask HN: As a developer what are your aha moments?

#52
Not sure I can pinpoint it to a specific time or anything, but as of recent nothing feels like "magic anymore". Many years ago there were all sorts of classes of software, patterns, etc. that looked and sounded arcane and complex and I'd never understand how it worked. Now nothing really feels like that. I can typically get an "aha" moment by doing a bit of reading and understand from a very high level how something works. Not to say that I'm a good programmer and can't write and implement anything, because that's far from the truth, but I can typically understand stuff and lose the intrigue. Kinda sucks though because its killed the motivators that got me into the craft.

Re: Ask HN: As a developer what are your aha moments?

#54
1. My first job out of university, when I discovered you can do interesting things with programming.

2. Learning XForms, which can do most of what JavaScript is used for in a tiny amount of code.

3. Learning JetBrains IDEA, the only IDE that I ever enjoyed using.

4. Learning red-green-refactor TDD. Now refactoring is something I do as a matter of routine, not dread.

5. Understanding the fractal complexity of Bash. It's weird how a language can make stream processing and parallelization basically trivial, while making things looping over non-trivial sets of files reliably PhD-level tasks.

6. Doing pair programming, and then keep doing it for four years because it was brilliant.

7. Installing Arch Linux, the first distro where things weren't constantly broken because of version drift.

Re: Ask HN: As a developer what are your aha moments?

#56

Not sure I can pinpoint it to a specific time or anything, but as of recent nothing feels like "magic anymore". Many years ago there were all sorts of classes of software, patterns, etc. that looked and sounded arcane and complex and I'd never understand how it worked. Now nothing really feels like that. I can typically get an "aha" moment by doing a bit of reading and understand from a very high level how something…

I agree with this. Lots of aha's come from "hey why isn't this working", digging into library implementations or system internals, and figuring it out. It's stuff that's annoying at the time because you're working on something else, but each time it happens you learn more about what's going on under the hood. And eventually you realize these things you picture as dark arts are actually pretty straightforward, and roughly how you'd have guessed they were implemented if you'd thought about it hard enough.

Re: Ask HN: As a developer what are your aha moments?

#58

  [1]> (+ (expt 2 32) (expt 2 32))
  8589934592
Numeric overflow is a choice. Even a 16-bit program that might have had a 32-bit ALU could simply decide to support larger numbers rather than producing something meaningless and dangerous.

  def retry(block: =>T): T = ???
Half of what I missed about macros is being able to control (re)evaluation of an expression, and call by name handles that really well.

Re: Ask HN: As a developer what are your aha moments?

#59
My "aha" moment was realizing most of my ideas and most apps out there are complete garbage. Not needed. Damaging, even. 99.9% of all of it.

For example, most "cutting edge" web apps are better off as PHP monoliths. Facebook was a PHP file for a long time. But most apps in general should never make it past being shell scripts, which are better off staying as spreadsheets or better - text files which are better off as pieces of paper whenever possible. And all paper is better off left as thoughts whenever possible, and most thoughts should be forsaken.

Re: Ask HN: As a developer what are your aha moments?

#60

When I watched a world class software engineer build a real time data processing platform using only functional programming. At a major company, over ten teams were automated in a year. Beautiful and useful abstractions around data and data processing tasks that provided extreme value. I could never replicate it, but it reminded me about the power of software and the extreme ability that some have to weird it.

Could you share the video you mentioned?
Post reply on HN