News for hackers. Stuff that matters.
Re:A tour of the world in d3.js by neya on Saturday December 01, 2012 @05:40PM (#4859274)
To make animations like these on Flash, it's just a breeze, period. I own an Adobe creative suite in which Flash is available. The bundled Flash IDE (which was originally popularly called as Flash) is a lot lot better than say, writing hundreds of complex lines of mathematical lines to create just a 3d rotation or tween.
Re:A tour of the world in d3.js by Groxx on Saturday December 01, 2012 @05:47PM (#4859298)
Did you look at the source below the globe? That entire thing is 73 very short lines of code, plus a plain HTML wrapper and some super-simple CSS.
Re:A tour of the world in d3.js by neya on Saturday December 01, 2012 @06:25PM (#4859403)
If you consider 73 to be short, then I wonder what you would think of 10-15 lines of code. Not to exaggerate, but you can actually achieve this with 0 lines of code in Flash using just Movie clips.
Re:A tour of the world in d3.js by saraid216 on Saturday December 01, 2012 @07:52PM (#4859615)
> Not to exaggerate, but you can actually achieve this with 0 lines of code in Flash using just Movie clips.

And this is why your comparison is apples to oranges, at best.

Re:A tour of the world in d3.js by danso on Saturday December 01, 2012 @06:57PM (#4859486)
Uh...this is jus a basic demo. I'm betting this is far easier to work into an interactive mash up with data than Flash's movieclips
Re:A tour of the world in d3.js by neya on Saturday December 01, 2012 @07:18PM (#4859540)
No, wrong. I assume you haven't used the Flash platform. A movie clip is like a library that can be replicated and instances of which, as many as you want can be created. Similar to creating a variable and calling it how many ever times you want it. So, in an interactive mesh-up movie clips will help you stay well organized with fewer lines of code, comparatively.
Re:A tour of the world in d3.js by danso on Saturday December 01, 2012 @07:31PM (#4859562)
Nope, I programmed in AS for awhile though I left before Flex became well implemented.

I know about the movie clip system and don't deny what you claim. But now you're moving the goalposts as decoupling the elements from the Flash environment requires you to do more, well, hand coding. To do what you claim -- implement the same features with less code -- would require more handiwork inside the Flash authoring tool, which was never really a fun workflow even when Flash was more ubiquitous.

In any case, lowering the code count by relying on MovieClips, which as you say are basically libraries, hardly seems fair. I'm sure all the code in the OP could be reduced to about five lines, three of them being calls to external code and CSS files.

Re:A tour of the world in d3.js by neya on Saturday December 01, 2012 @07:56PM (#4859632)
Flex and Flash are two different things. Flash is a designer-friendly tool, while flex is more programmer-oriented. From what you describe, it looks like you've been doing more coding with the platform than designing.

Dude, you serious? I can build you something similar in just 5 mins with 0 lines of code with easier maintainability and no calls to external CSS or Code.

>which was never really a fun workflow

I am surprised, because it was one of the most powerful features of flash, just like layers were for Photoshop. Maybe it's a personal opinion, but I loved this workflow personally.

Re:A tour of the world in d3.js by killahpriest on Saturday December 01, 2012 @09:01PM (#4859790)
5 minutes, go!
Re:A tour of the world in d3.js by neya on Sunday December 02, 2012 @03:56AM (#4860617)
Serious? You want to do a screenshare with me, mate? I can do it \m/ :D
Re:A tour of the world in d3.js by danso on Saturday December 01, 2012 @11:08PM (#4860048)
So I think you and I are more or less in agreement: to make an animated globe, Flash may require less lines of code for the average developer.

But what I argue is that this D3 implementation, because of its code structure, is easier to build upon with even more data and interactivity. I would bet that whatever it takes you to build in 5 minutes with 0 lines of code, will take up many, many multiple times of work to do even trivial changes. Sure, you'd win in the scenario in which only a simple animated globe is called for, but I don't think that's what most of the OP's audience cars about.

And I wonder if you can even claim to do what you want in such a short time...for the simple matter that doing is in the Flash designer environment requires a lot of point and click (for 180+ MovieClips).

Re:A tour of the world in d3.js by neya on Sunday December 02, 2012 @03:28AM (#4860560)
Ok, for 180+ Movie clips, I agree with you :D Btw, you are the author of the bastards book for photography? Wow. I loved your work :) I'll shoot you an email sometime :)
Re:A tour of the world in d3.js by pothibo on Saturday December 01, 2012 @11:43PM (#4860122)
Yeah. Compare clicks on a WYSIWYG and LOC. Makes perfect sense.
Re:A tour of the world in d3.js by tinflute on Monday December 03, 2012 @03:56PM (#4867740)
Maybe since you're such an advocate for Flash you could post your Flash version of the same widget, and show us all how much better/cleaner/faster/easier-to-code your version is?