• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Practical hapi: positioning of hapi among other frameworks.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kanika,

congrats on your publication!

I was wondering what's your perspective on comparison between hapi vs. express(as the most popular one) and also other frameworks out there (for example Sails, Koa).

I'm in the beginning of the coding journey, having some grasp on express, but no experience with other frameworks.

Would your recommendation (for greenhorn) be to choose hapi as first framework to dive into deeper or you would say to really be able to use hapi potential you need strong express fundamentals?

Cheers!
 
Marshal
Posts: 80874
506
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

I am not familiar with hapi, so it might be useful to know its basics.
 
Author
Posts: 49
5
MySQL Database PHP Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mic Majewski wrote:Hi Kanika,

congrats on your publication!

I was wondering what's your perspective on comparison between hapi vs. express(as the most popular one) and also other frameworks out there (for example Sails, Koa).

I'm in the beginning of the coding journey, having some grasp on express, but no experience with other frameworks.

Would your recommendation (for greenhorn) be to choose hapi as first framework to dive into deeper or you would say to really be able to use hapi potential you need strong express fundamentals?

Cheers!



Hi Mic

I've answered the same question on other threads in the same forum.
What I keep telling professionals is to notice the context when choosing a framework. For an app with a large team, you'd not choose a framework like express because the same thing can be done in so many ways. Hapi though provides a guided, fixed approach to doing things.

When you are grasping a new language, don't stop at one framework, learn two or three. Because you're most likely to use them alternatively.

When performance is a key factor, use native node instead of a framework.

I come from a Java background, and I know that the pitfalls of Hapi are more often than not because of the nature of JavaScript engines. Nothing like Java.

For quick to launch apps, Hapi does give a lot of support with a good backing. I haven't observed pitfalls in performance when I used it for an app with 50,000 hits on the database because my performance was measured in terms of query optimization.

For me a good framework means a good backing(like Walmart in this case), a structured approach, stable versions, community support and structure in the Frame itself.many times the choice is governed by the nature of the app.
 
Kanika Sud
Author
Posts: 49
5
MySQL Database PHP Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One more thing

Always see how server requests and responses are chained in a framework. How database connectivity can be maintained.

I like the server object maintainability in Hapi. Provides quite a lot of options.
My only complaints with express are lack of community support, and too many ways to do the same thing - less maintainability.
 
Kanika Sud
Author
Posts: 49
5
MySQL Database PHP Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Mic

Similar question
https://coderanch.com/t/737598/languages/Practical-hapi-Hapi-Express
 
Mic Majewski
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Kanika, thanks a lot for your answer! Yeah I noticed there were similar questions asked after mine,
so thanks for your effort for answering here separately;)

Won the book (WOOOOOHOOO!) so definitely this will be my first framework which I will dig into.
Also gonna keep in mind your points about benefits from fixed approach to doing things.

Thanks a lot one more time!

Cheers
Mic
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic