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.

Architecture: Figure out how to get context

See original GitHub issue

Several issues are blocked, because I don’t know yet how to get context.

For example, SIM 201 prevents not a==b and suggests a != b. In general, this seems to be a good rule.

As an exception, I want to leave it like this when it’s in the context of throwing exceptions:

if not (a == b):
    return ValueError("Expected a==b")

But for this I need to know that the boolean operation not (a ==b) is in the context of an if-statement.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
MartinThomacommented, Jan 1, 2021
0reactions
Skylion007commented, Jan 4, 2021

Ah, nvm you are using dynamic attrs. Yeah, that will only work if you mark parent as an optional value and subclass them all. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is an Architectural Context Diagram? - Orbus Software
It is simply a visual that shows the complete context of a proposed architectural change. It must make that context sensible to a...
Read more >
How to get Context in Android MVVM ViewModel
If you need to load images, pass the View instance through arguments from the Databinding methods and use that View context. The MVVM...
Read more >
The Concept of Context in Architecture | by Sotiris Frankos
An architect's choice to integrate a work in its context or make it stand out from it is conscious. Architect and academic Jean...
Read more >
4.10 Architecture design using context diagrams - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
Context architecture examples - YouTube
Your browser can't play this video. Learn more. Switch camera.
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