coralineada / society Goto Github PK
View Code? Open in Web Editor NEWA social graph for Ruby objects.
License: Other
A social graph for Ruby objects.
License: Other
There may be a workaround for this but I have no idea. I just want you to point me in the right direction.
Thank You.
Hello
I am getting an error when using the gem:
*snip*
society-1.2.0/lib/society/edge.rb:14: syntax error, unexpected ',' (SyntaxError)
def initialize(to:, weight: 1)
*snip*
This does look like a syntax error?
Thanks!
I would love for someone to submit a PR that accomplishes this. I am envisioning a type-ahead text box or a dropdown of all classes that, when a single class is selected, narrows the scope of the graph down to that class and its relations.
I have talked to @theotherzach about implementing this, so have at it, Zach! :)
The classes get removed on mouseout and added on mouseover in normal mode. Turn that off in focus mode and back on again when out of focus mode.
As I look through screen caps from my society dive into my app from yesterday, I realize that I'm missing the ability to navigate "up" and "down" the depndency graph.
That is, I'm looking at a particular class for its dependencies. Then, I realize that, gee, I really wish I knew which classes dependended on this class that depend on my class; I want to "climb" one up the network graph. In this case, I happen to be thinking "I wonder which HTTP endpoint is calling this service object/mediator". And I can't easily.
Feels like it may be a useful addition to "focus mode". Let me "refocus" around another class that's in the current focus.
Having the option to visualize dependencies of dependencies by X many degrees.
Currently, Society defaults to 1. We could make this an input in the UI, fill in the default value, and make it user configurable.
Hi. Great gem!
I think it's worth noting in the README that it requires Ruby 2.1(.5+), and also a Rails 4(.1?) app. It caught me out. Thanks!
Red/green, currently used to indicate inbound/outbound dependencies, is the most common form of color blindness, but there are color combinations that can be distinguished by people with all variants. Blue/yellow seems to be the highest-contrast option.
Here's a palette: http://www.somersault1824.com/wp-content/uploads/2015/02/color-blindness-palette.png
Source: http://www.somersault1824.com/tips-for-designing-scientific-figures-for-color-blind-readers/
Given a class ProfileBioHeaderBuilder::Builder
that makes use of a class ProfileBioHeaderBuilder::Builder::Button
, but uses a relative name for the reference to that class, as
button = Button.build_native(edit_path) if current_user.name == user_name
both classes are listed in the graphs produced by society
, but there is no relationship shown between them (and thus no relationships at all to Button
). This catastrophically degrades the usefulness of the graphs.
So, when I run society from .
on my Rails app I get this graph:
That is of course not ideal. ๐ Of course this is one of those monolith apps where everything depends on everything. What I'm interested in seeing if there are clusters of classes that depend on each other a lot (i.e. A depends on B, B depends on C, A depends also on C, etc.) but don't depend a lot on classes from other clusters. The hope is that this could help visualise what changes to do to really separate one cluster of classes from the rest of the system. One idea for this would be to visualise it like this:
In that examples the classes A, B, C, and D depend a lot on each other. And classes X, Y, and Z do as well. But both clusters don't depend that much on each other.
I can already see two issues with this:
So I'm basically looking for an interactive version of graphviz neato for my Ruby class dependencies, I guess. If this is the best way to represent this data I have no idea.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.