/    Sign up×
Community /Pin to ProfileBookmark

JavaScript vs. Flash

I’m a new developer and I’m at a cross-roads. I’ve got my first big project and I’m trying to do an advertisement that rolls through a set of images. My question is, between JavaScript and Flash, which is being used the most and why?

JavaScript can do the job and it loads nicely. But, when I’m programming it, if I make a mistake there is very little to troubleshoot with. It either works or it doesn’t. This can be VERY frustrating.

Flash can do the job but I worry about potential users and current version levels. Do users update when they see that they don’t have the latest greatest version of something or do they panic and navigate away?

I am going to have to make a choice as to which road to take. Any comments would be really appreciated.

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@slaughtersOct 27.2008 — "...if I make a mistake there is very little to troubleshoot with..."

Use Firefox and download the Firebug addon. It is an "excellent" JavaScript debugger.

JavaScript tends to be more flexible, so you see it used more often in different kinds of situations.

Flash is nice for high media content sites. Web developers should definitely learn to use it, but for most sites Flash can be overkill, so I tend to lean more heavily toward JavaScript/HTML/CSS.
Copy linkTweet thisAlerts:
@bntherauthorOct 28.2008 — slaughters

Thanks for the reply. Just out of curiosity, do you code from scratch or is there a generator that you use for JavaScript? I've seen some REALLY long functions and I'm always wondering if the developer actually wrote that from scratch or did it come from somewhere else.
Copy linkTweet thisAlerts:
@slaughtersOct 30.2008 — I really don't use a JavaScript generator. When you first start off they are a nice solution for small tasks. You can use them to generate code and get an idea of how it all works

It's just when you need to do something slightly different from what the generator creates you tend to spend a *LOT* of time trying to make a square peg fit a round hole.

What I've done is create several small examples and code snippets over the years (http://stansight.com/WordPress/2007/11/08/trim-spaces/ or http://stansight.com/WordPress/2007/10/15/replacing-history/ ) . When I need to start on a new project a lot of times I can copy/paste a chunk or a line from one of them to help me get started.

As for long code - well you start with small functions, snippets, and techniques and then add on to them, so in the end they get a bit long:

http://stansight.com/WordPress/2008/07/29/floating-table-titles/
Copy linkTweet thisAlerts:
@felgallOct 31.2008 — What JavaScript code that i have seen that was created by any sort of generator is generally at least five times as complicated as it needs to be.
×

Success!

Help @bnther spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...