hapijs.com front page uses h. What is h?

Created on 18 Feb 2019  Â·  7Comments  Â·  Source: hapijs/hapi

Just checking out Hapi. https://hapijs.com/ includes:

// Add the route
server.route({
    method:'GET',
    path:'/hello',
    handler:function(request,h) {

        return'hello world';
    }
});

As someone who hasn't used Hapi before: what is h?

If it's not used, it should be deleted. If it is used, it shouldn't be minified.

non issue

Most helpful comment

Please do not 'fix' this. I love the convention that something well explained in the docs, has single letter name as it's quicker to program and has that deep feeling of interconnectedness with the API. This h variable is reminding me of all the nice things in hapi, its conventions, features and down to earth attitude. I love hapi and I love h :)

All 7 comments

Why do you not follow the instructions in the issue template?

Please close this issue, and open one in the discussion repository.

Response Toolkit

It is named in the spirit of the RethinkDB r method, with h for hapi.

@k-j-kleist Why do you think I didn't read it? The issue isn't fixed - hapijs.com still uses the minified variable

Please do not 'fix' this. I love the convention that something well explained in the docs, has single letter name as it's quicker to program and has that deep feeling of interconnectedness with the API. This h variable is reminding me of all the nice things in hapi, its conventions, features and down to earth attitude. I love hapi and I love h :)

this issue is in the wrong place, and won't be fixed regardless as it follows hapi conventions

@zveljkovic a demo on a front page of a website shouldn't require further explanation. The purpose of a demo is to explain, not to save you typing three characters.

This h variable is reminding me of all the nice things in hapi, its conventions, features and down to earth attitude.

Nor is the purpose of a demo for exiting users to feel better about hapi.

But hey, I give up. Do what you want.

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andkazakov picture andkazakov  Â·  5Comments

AdriVanHoudt picture AdriVanHoudt  Â·  5Comments

shamsher31 picture shamsher31  Â·  5Comments

DrMabuse23 picture DrMabuse23  Â·  5Comments

jeremiahlee picture jeremiahlee  Â·  4Comments