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.

Rename `schema::Object.builtin` to `is_builtin`

See original GitHub issue

We’re using an is_ prefix pretty consistently for bool flags. @vpetrovykh please fix this one and take a close look if we have other inconsistencies.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vpetrovykhcommented, Sep 19, 2020

To clarify what I mean by “my sense of formalism is in strong opposition of actual natural language use” I mean that consistent is_ prefixes for bool flags seem appealing to me, personally. However, having them as part of the names makes it awkward to write actual English sentences like “If the property in question is is_required …” and forces re-wording like “If the property has an is_required flag set to true …”. In spoken English it’s not a big deal, but in a written manual/example it becomes a bit awkward.

So 1 IF link.is_required ELSE 0 may look good in code, but it’s awkward in docs. I think I just made a case against is_ prefix…

0reactions
elpranscommented, Sep 19, 2020

sn’t that exactly the distinction between all of shcema and user-introspectible schema that @elprans talked about?

That’s correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rename builtin prototype method in javascript - Stack Overflow
There are 3 options: Creating an alias to the prototype: String.prototype.strRepeater = String.prototype.repeat;.
Read more >
Renaming Schema Objects
You can rename schema objects in either of the following ways: Drop and re-create the object. Rename the object using the RENAME statement....
Read more >
Built-in Functions — Python 3.11.1 documentation
Return a new array of bytes. The bytearray class is a mutable sequence of integers in the range 0 <= x < 256....
Read more >
Rename Schema Object returned · Issue #642 - GitHub
Hi. I have a generic type object for my controller response, Response, which I would like to rename on swagger.json generation to something ......
Read more >
Renaming and refactoring schemas in physical data models
In addition to this method, you can also rename schemas by highlighting a schema object in a physical data model and pressing F2,...
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