Hacker News new | ask | show | jobs
by akamaozu 2319 days ago
Not all JavaScript devs.

Love the language, hate the popularity of anonymous functions and non-descriptive variable names.

My production code as a sample. http://designbymobi.us/wp-content/uploads/2020/02/rabbitmq-c...

1 comments

Your code sort of have the same issue. Why not define a function:

function someName(p1, p2) {}

and then when you need it for something, like a handler, just say:

handler: someName

Hoped to show that JavaScript can be easier to read than you described.

Obviously wrong. My mistake.