Of course, it’s weird logic if you are trained on Java, PHP or something else but if you can understand you can feel its awesomeness.
I know… Why I need to use as a callback instead of a simple variable assignment. Because everything around you isn’t synchronous. Please read Francois Zaninotto’s article about Event-driven programming… and pasta because it’s a really good post about it.
Yeah, it’s a little cause to love Node.js more than other languages. When I meet a seemingly unsolvable problem in PHP then I get a ton of solutions but some of them works and a lot of them doesn’t. In Ruby I get less solutions but the working/non-working ratio is better. When I ask about my Node.js problem, I get a ton of solutions. Some of them points to an npm package (or more), some of them tells me I can do it simpler and some of them just works. So I feel… Node.js community is more valuable for me than PHP or Ruby.
When I need a ready to use package in PHP then I need to include a library and I need to check if it conflicts with my system –or used framework– and need to search how can I integrate that. In Ruby I can use Gem’s and it’s nice. An npm package is similar to a gem package but I think it’s more flexible.