UrbanPro

Learn Java Script Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

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  

Follow 1
Answer

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

IT Professional Trainer with 18 years of experience in IT Industry

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

Related Questions

Which language has the best future prospects: Python, Java, or JavaScript?
According to me, "Python" is the programming language having the best future prospect considering the current industry trend. Reason: Python is extensively used in advanced technologies such as Machine...
Atharva
0 0
5
I know HTML, CSS, and a bit of JavaScript. What should I learn next?
HTML,CSS and Javascript are Tools which are used for Front-End Web Development. The next step is to learn the following: 1)Learn Javascript Frameworks like node.js,react.js,angular.js etc. 2)Learn Back-End...
Inch By
How do I become better at JavaScript?
Go through JavaScript tutorials from w3schools.com site. They have good examples with description. Then learn some es6 and es7 syntax. You will be pro in JavaScript.
Pooja
0 0
5

What is an Array?

An array is a collection of (same or different type of) items.In Java and C#, etc., the elements inside the array should be of the same type (e.g. ) while in languages like JavaScript and Python. The elements can be different types also(e.g. )
M

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

Ask a Question

Related Lessons


Differences Between HashMap vs HashSet In Java.
HashSet HashMap HashSet implements Set interface. HashMap implements Map interface. HashSet stores the data as objects. HashMap stores the data as key-value pairs. HashSet...

Angular 1 vs Angular 2
Angular team has released the angular 2, which has drastically change the way programmers interact and work with Angular framework in the past. In this post I will tell you the common changes made by...

How can everyone prepare to clear any Java interview?
Java interview your java should be much strong then J2EE. core java and Advance java is the basic foundation for Interview. Some of the topic about which you should know before going for a java interview...

Web Technology Tutorial
Web Technology has 2 category Front End (HTML,CSS,JS Etc) Back End/Server Side (PHP,JSP,ASP,ROR Etc) Front End technologies are - HTML, CSS, Bootstrap, Javascript, jQuery etc. Using front end...

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 >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

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 >

Looking for Java Script Training classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Script Training Classes?

The best tutors for Java Script Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Script Training with the Best Tutors

The best Tutors for Java Script Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 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 7.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