Hacker News new | past | comments | ask | show | jobs | submit login

I've found that saving code, and refreshing the browser, then going back to code, then going back to the browser, is a terribly inefficient practice and horrible for flow. If you're finding yourself having to do this so often as to require a vim hack, you're doing something wrong.

Something like autotest for ruby projects, and cucumber / selenium etc should be making sure your code does what it is supposed to.




Horrible for code, maybe. For doing design with CSS(/Sass/etc) though it's essential.

I do :w, Alt-Tab, Ctrl-R constantly when I'm doing design. I'm constantly testing little changes. This looks like it could be quite a useful little hack.


Why not just do it all in firebug and then copy the final result over?


Thats like asking why not dig ditches with a spoon? Sure its possible but any one who has tried a Shovel or a back hoe is going to hate it.

see this slide: http://www.slideshare.net/c9s/perlhacksonvim


Because you have to remember what you did to copy it over. But FireDiff extension may help in this case.


Correct, I think for the most part it would be a bad way to test code. The only reason I included *.erb is for when I am editing the content/design of a page. Like changing a h2 to a h3 or something like that.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: