somebody32 / generate-svg-on-the-server-with-js

This repo contains the examples for my article about SVG generation on the server via JS
24 stars 13 forks source link

it seems diffcult to debug and adjust the code if put the processing which create svg at the server side, could you say some thing about it? #1

Open joostshao opened 10 years ago

joostshao commented 10 years ago

i have wandered for a long time about create svg at the browser server end. first, the javascript plugs or tools can all be used with "require" in the nodejs and phatomjs environment. it seems that the differences are the balance of client and server , used cpu time and memory used.

but i have forget the important thing: if put it to server end, i should coding at the server side (the create logic and fetch my data from dbms) and refresh my brower then check my svg .

it is not Humanization, create code at server side and debug at the client, it become more diffcult.

somebody32 commented 10 years ago

According to my experience debugging server-generated svg is no more complex than debugging server-generated html. And also do not forget that there is no need to have a separate remote machine for tests, you can everything try locally even with livereload

joostshao commented 10 years ago

LiveReload is great, thank you