Live data from Hacker News

Gravit – Open-source design tool

hub.gravit.io

21–30 of 75 posts

Re: Gravit – Open-source design tool

#21
Nice work! It might be cool to allow people to share designs. So if I was creating a web page, I could browse through web pages other people have created and import one, then use that as a foundation for my own design. At any rate, this is pretty cool.

Re: Gravit – Open-source design tool

#26

Has anyone here manage to figure out the secrets behind this apps blazing fast performance ?

Load performance is mostly due to the few number of files that are being included, though minification also helps.

Application performance is typical of modern, hand-coded JS. Or rather, I should say, the only reason I can see for why people tolerate bloated frameworks is because they've just come to expect JS to be slow. There is a reason some of us insist on sticking to vanilla JS. It's not because we're crotchety, old, greybeards. We wouldn't be touching JS at all if that were the case.

It appears they might also be using layered canvases to render different parts of the workspace that update at different rates. So that prevents them from having to redraw the checkered background every time you move the drawing. And it prevents them from having to redraw the existing drawing every time you add a new element and are still adjusting it.

Pretty standard techniques for anyone with experience working with Canvas, actually.

Re: Gravit – Open-source design tool

#27

This may be the first time I try a web app that is as snappy as a desktop one. Congratulations! What front-end frameworks/technologies did you use?

>> "What front-end frameworks/technologies did you use?"

Why is that everyone's first question? I get this constantly when I demo my stuff at meetups and hackathons. None. The answer is none. And they look at me like I just admitted to being a person who prefers to breath water. Vanilla JS is not that hard. It's a sight easier to know one language than to have to relearn the darling framework of the year all the time.

Re: Gravit – Open-source design tool

#29

You might consider overriding the delete/backspace button. I tried to delete a spline and ended up back on hacker news :-)

It's definitely one of those web apps where I'd be totally fine with a `window.onbeforeunload` popup asking me whether I really want to leave.

Re: Gravit – Open-source design tool

#30

This may be the first time I try a web app that is as snappy as a desktop one. Congratulations! What front-end frameworks/technologies did you use?

>> "What front-end frameworks/technologies did you use?" Why is that everyone's first question? I get this constantly when I demo my stuff at meetups and hackathons. None. The answer is none. And they look at me like I just admitted to being a person who prefers to breath water. Vanilla JS is not that hard. It's a sight easier to know one language than to have to relearn the darling framework of the year all the time…

It's only been a year or two since major software is written in JavaScript. Why did you relearn the darling language of the year?
Post reply on HN