Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7429643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:00:15+00:00 2026-05-29T09:00:15+00:00

So I read this guide a while ago and I stopped using semicolons after

  • 0

So I read this guide a while ago and I stopped using semicolons after every line statement in Javascript.

I want to show my SaaS application to a company hoping for some contract work. Most of the work is done in Javascript and I don’t want the company to simply copy my JS code (and figure out the rest). So I wanted to pack it (with Base62 encode).

Here is a sample of my code:

    var options = {
        averageCenter  : true,
        gridSize       : 40,
        maxZoom        : 16,
        imagePath      : 'common/images/m',
        imageExtension : 'png'
    }

    var marker_cluster = new MarkerClusterer( MAP, MARKERS, options )

    marker_cluster.setCalculator
    (
        function( markers, numStyles ) {
            var index = 0
            var count = markers.length.toString()

            if     ( count < 5  ) index = 1
            else if( count < 20 ) index = 2
            else if( count < 40 ) index = 3
            else if( count < 80 ) index = 4
            else                  index = 5

            return {
                text  : count,
                index : index
            }
        }
    )

But Dean Edwards’ Packer requires you to end every statement with a semicolon. Do I need to manually go back to insert a semicolon or is there another packer that doesn’t require a semicolon, then pack it with Dean Edward’s Packer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:00:17+00:00Added an answer on May 29, 2026 at 9:00 am

    Closure Compiler doesn’t seem to have any issue. However, I would note that neither this nor the Packer are obfuscators. Packer actually has decode functionality built-in, though you need a simple trick to use it.

    Even dedicated obfuscation tools are mostly a waste of time. Your code can still be recovered with enough effort.

    Finally, I recommend you do use semi-colons. Even that article admits that it caused him a problem several times. I also think the semi-colons do make the return statement problem much more obvious; further, in other languages I do sometimes put a line break there for long returns.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having this code from http://bash.cyberciti.biz/guide/While_loop , used to read line by line from
I'm doing some Javascript R&D and, while I've read Javascript: The Definitive Guide and
after read this article i tried generate EF model by System.Diagnostics.Process: Process myProcess =
I've just started out using ASP.NET MVC and TDD. I've read that while unit
I read this PHP RegEx page , but either I'm missing something, misreading something,
I read this answer and its comments and I'm curious: Are there any reasons
I read this post last night, and I noticed it was from 2006. I
I read This article and i found it interesting. To sum it up for
I read this story on slashdot today where they announce a new parallel programming
Having read this link on RBAR and this , my understanding of RBAR amounts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.