Live data from Hacker News

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

news.ycombinator.com

71–80 of 189 posts

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

#71
1. Polymorphism

2. Vendors are often pushing bad architecture

3. Architects often push things for the wrong reasons

4. Companies often push risk to their vendors, avoiding collaboration, inherently increasing risk

5. ORM's hide business logic, preventing a company from understanding its business and adapting to change

6. Relational Databases are an operational anti-pattern

7. Graph databases are excellent tools for common problems like security, social media

8. Document databases are excellent tools for Event Stores and CQRS

9. Cloud native development (FaaS) is awesome

10. Domain-Driven Design and Event Storming are excellent disciplines to add to a corporate development group

11. Corporations inherently don't understand Agile because they have to measure everything through strong process definition

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

#73

1. When I realized programming was hard That’s it. For a long time I thought I was good at programming and I kept making the same mistakes over and over. All nighters, leet coding, runtime hacks, etc... And then one day it struck me. It’s hard and my mind can’t keep up with yesterday’s cowboy coding. Slowly I started putting defense mechanisms everywhere - good type systems, immutability, compile type instead of runt…

> I started putting defense mechanisms everywhere

Just weeks ago, the software I had just finished writing complained to me at first run that I had forgotten to configure a setting. Defensive coding ftw.

> never overwork and sleep the best I can

Your best work can be done while not at your desk. Don't mind taking frequent breaks.

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

#74
1. When I realized programming was easy

That's it. For a long time, when I thought of the hardest stuff to program, I was thinking of computer games. Mind you, not the latest AAA billion dollar development budget 300+ people on the team kind of games. No - given my age, I was thinking about single-programming doing code and graphics and sounds on a C64 kind of games. To me, it was incomprehensible how one person alone could manage to do a machine, especially with the hardware limitations, do all that.

And then one day it struck me. I had started to dabble with programming in my early teens and then never stopped but, I guess, gotten better at it over time.

Like with every process that evolutionary rather then revolutionary, there's a good chance to lose track of your progress. I remember clearly after finishing college, I really though that everything I knew then about computers and programmers I had already known even before I entered university. But then one day, a freshman asked me a question about a programming assignment in their class, and it was completely trivial to me. Yet, when I was a freshman, I would have probably asked the same question to someone else.

And yet, that was not my aha moment. It still took many years for me to realize that my idolization of game programmers was perhaps a bit much. Mind you, I do realize of course that someone specialized in any area will be able to produce better code than someone who's not - for any definition of "better". I'm still not a game programmer and never will be, so I still have the highest respect for their profession. But I do realize now that there's not outer-worldly skill that separates the game coder from the crop of all other programmers. Anything is within reach - what you need is not some innate talent, it's just dedication.

Life is somewhat better now and I'll never go back to thinking I'm not good at programming.

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

#75
Using shell as a REPL for C.

I learned C on Windows, and before I learned any dynamic languages. And before I had ever written a unit test.

I knew all the rules, but I was not good at making a reasonably sized, correct program in a reasonable amount of time.

---

But then I developed a good workflow for writing Python, shell, etc., and then went back to writing C, and it helped immensely.

C is a dynamic language in many respects anyway!

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

#76
1. When I first learned to program (in Pascal)

2. When I learned event-driven programming using Windows Forms in C# and I was able to create programs that resembled the ones I used

3. When I took a course in POSIX, programmed using fork and pipes and learned about stuff like race conditions

4. When I spent a year learning everything there is to know about coding (including assembly, lisp, smalltalk, rust) and realized I would never feel as happy as I felt during 1-3 because I had changed as a person

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

#78

- when I read Clark Weissman's `LISP 1.5 Primer' in 1968 - when I finished a student programming assignment a year later and realised that a well-chosen set of procedures constituted what we'd now call a DSL - when I ported Martin Richards' very clean BCPL compiler and realized that you could write efficient code in something that wasn't Fortran - when I read the Thompson/Ritchie paper on Unix - when I completed my f…

SICP made me fall in love with Lisp even more. It taught me how powerful the tandem of function and closure can be.
Post reply on HN