Live data from Hacker News

Draw SVG rope using JavaScript

muffinman.io

71–74 of 74 posts

Re: Draw SVG rope using JavaScript

#71
Nice work, but I have to say that it looks like a voronoi diagram, which triggers trypophobia for some internet people. I would make them assuming the robe as a segmented 3d cylinder object and tangle it with another one as we do in real life

Re: Draw SVG rope using JavaScript

#72

Nice work, but I have to say that it looks like a voronoi diagram, which triggers trypophobia for some internet people. I would make them assuming the robe as a segmented 3d cylinder object and tangle it with another one as we do in real life

Should be noted, a lot of phobias are common but trypophobia is not one of them. There are hardly any case studies where pattern-based imagery has actually sent someone into fight-or-flight the same way that spiders or heights can. Most of the time when it's discussed on the internet it's a rather mild disgust/horror reaction rather than a clinical phobia. It's possible the term has only gained popularity from internet communities where people intentionally share wacky images, which isn't exactly a useful support group.

That's not to say it's not possible, just so extremely rare that it's not a reasonable design consideration.

Re: Draw SVG rope using JavaScript

#73
post #35

> I'm a visual thinker. For me drawing things on paper makes any problem easier to solve. I would suggest you try the same. Keep a pen and paper near your computer and reach out for them before you start typing code. I feel the same way. Of course it's easier for visual tasks like this one, but I tend to think of programs developing in space and time as trees and graphs, even for abstract stuff like complex algorithm…

Same boat, checking in. My notebooks are full of scribbles even though I do lots of non-visual programming. It’s my primary thinking aid. I’ve found this to work out well for me: - Use languages and tools that let you defer correctness while prototyping. I lose track of “the bigger picture” if I have to context switch to thinking pedantically about syntax and type systems. That’s ok when everything is in place, but i…

Yeah, I've worked with dataflow languages and they're a very good fit for data transformations (not so much for complex runtime control flow). Functional-reactive languages like spreadsheets also make it way easier to reason about than imperative programming.

I like environments where you can keep visualization aids close to the code to which they apply; nowadays, that means using online notebooks a la Jupyter and ObservableHQ, or at least markdown files with a preview plugin integrated in your IDE. There you can represent diagrams as code, like Graphviz and Mermaid.

I long for the day that those visual representations can be accessed programmatically and used as part of the code itself, like VB6 interactive widgets were created graphically yet usable in the application; e.g. creating state machines visually by representing states and transitions as boxes and arrows, then compiling the diagram to add conditions and access their values from code (there are some libraries doing this in some environments and languages, but I'm not aware of one that is portable to many languages). I think we're really close to that being possible with modern languages.

Re: Draw SVG rope using JavaScript

#74

I see things like this and I think, "Wow, should I be calling myself a programmer?" ... even after ~40 years at it! But that feeling makes me love programming even more. I adore this project!

The fact that you are still reading Hacker News, and programming, STILL, says it all :D

37 years in myself

Post reply on HN