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

  • Home
  • SEARCH
  • 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 6558905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:15:27+00:00 2026-05-25T13:15:27+00:00

The basic idea for writing good code is that the code must be readable,

  • 0

The basic idea for writing good code is that the code must be readable, well-commented and documented.

Other basic facts for writing good code regarding all the program languages are structuring the code in directories and files and indentation of course.

In the case of javascript the things could be more complicated,
because the language allows you to use different style to accomplish similar task.

For example there are three different ways to define a JavaScript class.

Said that, which are the best resource (books/sites) or suggestion for writing good code (library) in javascript?

  • 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-25T13:15:27+00:00Added an answer on May 25, 2026 at 1:15 pm

    If you’re working for a company, is there a standards manual, or something jotted up saying “this is how we want things to be coded”? Yes, it’s kinda Dictatorial, but it helps keep things “neat”. —Now, if you do not have one at your company, be proactive, talk to a few higher ups if they think it’d be useful, tactfully get them to delegate it to yourself and then make it. Get some brownie points and a good thing for your resume —

    There’s ton’s of books on the subject, blogs, pod casts, and probably a radio station somewhere…. that all talk about this subject.

    But the #1 thing you will get from people is: Do not put many operations on the same line!

    How many times do you look at a script and see a kerfuffle of statements/commands/initiators/setters/getters on one line. Or 4 nested ternary statements.

    Sure, it “looks” cool if you’re 15, but it is counter productive, not intuitive and not helpful. (yes this is a sour point). Code/Script is supposed to be maintainable. The biggest cost to some companies is maintenance on a product. When you go back to something years/months/days/hours after something is written, you want to be able to understand it without having to tape your eye lids open.

    Here’s a couple good articles I’ve read about this. They’re not the most up-to-date but the information in them is still strong.

    http://amix.dk/blog/post/19496

    http://www.codinghorror.com/blog/2008/08/secrets-of-the-javascript-ninjas.html (yes from SO’s very own Jeff)

    http://www.bobbyvandersluis.com/articles/javascript_good_practices/index.html

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

Sidebar

Related Questions

Here's the basic idea: There is a java window (main) that opens another java
I'm a newbie with a little experience writing in BASIC, Python and, of all
The basic idea behind a Cancel button is to enable closing your window with
The basic idea of a masterpage is simple -- you have a block of
The basic idea is to take a string and evaluate it against an XML
Binary search is harder to implement than it looks. Although the basic idea of
Basic requests are: human readable / text format (for easy version control) online (for
I'm writing a unit test with Boost.Unit, and I would like to include basic
I am writing some code to update an application by fetching new dlls from
I am writing an application which is recording some 'basic' stats -- page views,

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.