question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider Context naming

See original GitHub issue

Current

ctx.param("service-id") // path parameter
ctx.queryParam("service-id") // query parameter
ctx.formParam("service-id") // form parameter

Maybe

ctx.pathParam("service-id") // path parameter
ctx.queryParam("service-id") // query parameter
ctx.formParam("service-id") // form parameter

Or

ctx.path("service-id") // path parameter
ctx.query("service-id") // query parameter
ctx.form("service-id") // form parameter

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
se7kn8commented, Jun 8, 2018

I’m also for:

ctx.pathParam("service-id") // path parameter
ctx.queryParam("service-id") // query parameter
ctx.formParam("service-id") // form parameter

But if we change it, we should also be change WsSession.kt to have a consistent format.

0reactions
tipsycommented, Jun 9, 2018

I’m fine with this, I also prefer empty collections (at least in Java). I think I just returned null because that’s what the underlying request did.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Naming Context - Wikipedia
Active Directory naming context (NC) or directory partition, is a logical portion of the Microsoft's Active Directory (AD).
Read more >
Naming Context - an overview | ScienceDirect Topics
The configuration naming context holds configuration information from your environment (including information about the configuration of Exchange). The ...
Read more >
How to Improve on Naming Contexts in Domain-Driven Design
An in-depth look at how to tackle naming bounded contexts when utilizing domain-driven design architecture.
Read more >
asp.net - What, exactly, is the "Context" naming convention
I am trying to define when to name a class as a Context and I am having a very difficult time. Could someone...
Read more >
Context (Java Platform SE 7 ) - Oracle Help Center
This interface represents a naming context, which consists of a set of name-to-object bindings. It contains methods for examining and updating these ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found