true

Find the best tutors and institutes for Java Script Training

Find Best Java Script Training classes

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

At what point does learning JavaScript (possibly after the basic syntax) get messy enough to the point that programmers dislike it?

Asked by Last Modified  

IT Courses/Java Script Training

Follow 1
Answer

2 Answers

Please enter your answer

I'd say it can become messy during basic syntax itself (consider you get to work on someone's code where variable names make no sense, e.g. var t = 70932; no sense in this variable at all"). Let's come back to your question when it becomes messy. Considering that by basic syntax you are pointing to essential... read more

I'd say it can become messy during basic syntax itself (consider you get to work on someone's code where variable names make no sense, e.g. var t = 70932; no sense in this variable at all").
Let's come back to your question when it becomes messy. Considering that by basic syntax you are pointing to essential client-side interaction code (like calling some function on button click, getting and displaying input value tc.). After basic syntax, let's say your application needs to be connected with server to fetch data, at this moment you would jump the primary coding border and dive into all those ajax calls, validating data and rendering it to your UI for end-user consumption. Here you (or anyone for that matter) can make the code messy by:

1. Not commenting what each method is supposed to do (just like "t" variable example I gave above).

2. Writing function definition inside the loop. I've seen this many devs doing especially during "success" event handler where they run through the retrieved data and writing event handler inside the loop.

3. Adding dynamic nodes to DOM. It is another terrible thing you will see where (again) after getting server data, to display it on UI, developers start adding dynamic nodes to DOM (nothing wrong in it) but most of the time they ignore the fact that where these elements are getting attached. Where in DOM hierarchy they are supposed to be, about their sibling's nodes etc. and this ignorance comes back when your data starts appearing awkwardly on UI and dev start debugging CSS (setting position, z-index, margin etc.)

4. Not respective MVC guidelines. I feel that at times, the code becomes complicated because of situations like project escalations, early release, untimely delivery where the developer is forced to do the work in a hurry. That's where developers start ignoring the fact that not writing correct code at right place might backfire eventually (and most of the time it does happen, speaking by experience). Keep your objects, UI and logic separately. It helps a lot!

5. Naming conventions are ignored (most of the time). As project life increases, team size and faces change. Old people get shifted to other projects, or they leave, and new minds take place. A couple of KT (Knowledge Transfer) sessions are never enough to understand every bit of the code, and the only favour a new coder expects from the old one is to get logical naming conventions, be it a file, variable or function.

6. Last but not least, ignoring the power of "strict mode", these two words alone can do what lines and lines of code can't do; it tells you your sin's beforehand.

There are many more factors which cause messy code and practically not all of them can be thought of, but above are the essential parameters which if prevented can help you live quite easy life at your workplace.

I hope this helps!

read less
Comments

Trainer

It all depends on what are you trying to program and the intensity level of your code
Comments

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

JavaScript Arrow Function
Javascript Arrow Functions : JavaScript ES6 is a type or version which let us provide a way to write javascript syntax in a better way. ES6 version is having a feature or new method to use functions...

Abhay | 19 May

0 1
0

JavaScript Arrow Function.
Javascript Arrow Functions : JavaScript ES6 is a type or version which let us provide a way to write javascript syntax on a better way. ES6 version is having a feature or new method to use functions...

Ajay | 16 May

1 0
0

Advantage of Node.js over Angularjs
i. Nodejs helps a user to develop scalable network applications. It delivers efficiency along with with event-driven, non-blocking I/O model, which has been proved ideal for real-time data-intensive applications....

Suprio Dutta | 20/05/2019

0 0
0

Recommended Articles

Here are the top 6 must have skills for every Web Designer : Technical Skills Web designers undoubtedly require very strong technical skills. They must have hands on using Web designing software and tools, such as Adobe Dreamweaver, Fireworks, Photoshop, Flash etc. In addition to the knowledge of design...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today. In all of our lives, from the morning s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a significant" increase in demand for IT professionals in 2014 as compared to 2013, a steady demand for IT professionals is rest assured...

Read full article >

Looking for Java Script Training classes?

Find best Java Script Training classes in your locality on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Script Training Classes?

Find best tutors for Java Script Training Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for Java Script Training Classes?

Find best Java Script Training Classes in your locality on UrbanPro

Post your learning requirement

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 6.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more