News for hackers. Stuff that matters.
Re: js-sequence-diagrams - Turns text into UML sequence diag... by skore on Wednesday July 10, 2013 @07:44AM (#6018786)
Previous discussion: https://news.ycombinator.com/item?id=5432110

Including this alternative, built in AngularJS: http://sullerandras.github.io/SVG-Sequence-Diagram/

Re: js-sequence-diagrams - Turns text into UML sequence diag... by exceptione on Wednesday July 10, 2013 @08:57AM (#6019148)
the angularjs seems to be broken, at least in FF 22.0
Re: js-sequence-diagrams - Turns text into UML sequence diag... by Heliosmaster on Wednesday July 10, 2013 @08:39AM (#6019064)
The first thing that comes to my mind is how this can be used to easily convey cryptographic protocols :)
Re: js-sequence-diagrams - Turns text into UML sequence diag... by junto on Wednesday July 10, 2013 @07:33AM (#6018735)
This is really cool. I hate drawing these diagrams but customers just love to them in their specifications!
Re: js-sequence-diagrams - Turns text into UML sequence diag... by k__ on Wednesday July 10, 2013 @06:36AM (#6018524)
I hoped it would turn my JavaScript code into UML sequence diagrams :(
Re: js-sequence-diagrams - Turns text into UML sequence diag... by honzzz on Wednesday July 10, 2013 @10:02AM (#6019578)
Yes, I would love to have something that would generate diagrams out of the code and hopefully could be 'live' so I could tweak it and for example provide initial value of some variable and observe where and how it changes things. I struggle every time when I am building something a bit more complex - visualisation like this would help me handle the mental model which is too big/complicated for my brain-RAM.
Re: js-sequence-diagrams - Turns text into UML sequence diag... by philbarr on Wednesday July 10, 2013 @11:03AM (#6020171)
Upvoted for judicious use of the phrase "brain-RAM". Me likey :).
Re: js-sequence-diagrams - Turns text into UML sequence diag... by Inviz on Wednesday July 10, 2013 @09:48AM (#6019440)
Nice. Doesnt let you use "Object" name though, errors out
Re: js-sequence-diagrams - Turns text into UML sequence diag... by thebramp on Wednesday July 10, 2013 @11:29AM (#6020366)
Wow, never seen that bug before. I've created a issue ticket ( https://github.com/bramp/js-sequence-diagrams/issues/39 ), and I will fix it shortly.
Re: js-sequence-diagrams - Turns text into UML sequence diag... by thebramp on Saturday July 13, 2013 @12:22PM (#6037887)
Fixed. Turns out to be a bug in Raphaël (the graphic library).
Re: js-sequence-diagrams - Turns text into UML sequence diag... by _ZeD_ on Wednesday July 10, 2013 @08:13AM (#6018945)
how is it different from http://www.websequencediagrams.com/ ?
Re: js-sequence-diagrams - Turns text into UML sequence diag... by exceptione on Wednesday July 10, 2013 @08:52AM (#6019132)
The difference is between server-side vs client-side afaik. From the article:

  Heavily inspired by websequencediagrams.com, who offer a 
  serverside solution. We use Jison to parse the text, and 
  Raphaël to draw the image.