Live data from Hacker News

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

news.ycombinator.com

31–40 of 189 posts

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

#33
Some more recent ones of note...

0. When I learned how to model systems in TLA+

1. When I figured out how to structure programs using monad transformers... sort of the moment where I started reasoning algebraically about programs on my own

2. When I learned how to specify propositions in types and verify my designs and programs

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

#34
Powershell? (I've done windows most of my career, but "shell" would apply anywhere).

It always seemed so lame compared to neat new functional languages or distributed actor frameworks. And, not being much of an ops person, I almost wanted not to be any good at powershell (or any shell) so I wouldn't get ops assignments.

After getting familiar with it though, it's improved my workflows and ultimately quality of life. I'm not only more fluent in ops now, but I also get to spend less time on it, which is what the rationale for not learning it was (write a script once and never have to remember what I did when creating a new environment).

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

#35
post #12

Earlier quoted context omitted.

What is your favorite CSS framework/s?

Bootstrap - my one and only experience with a CSS framework. Love it, but can't compare to anything yet. I'll properly give Bulma, Tailwind or another popular framework a go for my next project - let me know if you can recommend any other.

You can give Halfmoon a try: https://www.gethalfmoon.com

Disclaimer: I built it.

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

#36
I think the simplest realization is that the compiler is always right. Yes, technically, compilers can have bugs but 99.99% of the time the bug is yours. I used to stare at non-working code and think "This should work!" But that's never true. If it doesn't work, I made a mistake.

My next realization was that a well-defined and clearly communicated product definition is 10x more important than good coding.

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

#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.

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

#40
I went from Ruby to JavaScript development. First, I’d like to say I think starting with Ruby/Rails is a bad idea. Ruby uses a lot of higher order functions, but it isn’t super clear from the syntax how that all works. Higher order functions in JS are much more clear, IMO, on account of having to use parens to call the function (in Ruby, you don’t need parens to call function, you can just name the function and delineate the arguments with spaces).

So with Ruby, I was just pattern matching—I never had an intuition of what lambdas were doing until I moved over to JS.

The Feynman Method was another aha moment. Learning how to learn, in my case, by writing down stuff in my own words as if I were teaching someone else was probably the most important thing. That helped me develop a much deeper understanding of important concepts.

Similarly, not trying to learn everything was a big deal. Don’t try to learn all the niche technologies you see in job listings expecting you need to know those things in order to qualify for the position. If you just do dozens of tutorials, you’ll end up knowing a lot of things very superficially. It’s much better to know a handful of ubiquitous, related technologies very well and have a strong foundation of programming fundamentals. Those things can transfer over to other technologies, when you need to pick them up.

Post reply on HN